@kong-ui-public/spec-renderer 2.5.19-pr.2790.95b70759b.0 → 2.5.20

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.
@@ -47832,7 +47832,7 @@ const qU = ["application-registration-enabled", "current-version", "essentials-o
47832
47832
  for (const [Cn, Jt] of go)
47833
47833
  Oo[Cn] = Jt;
47834
47834
  return Oo;
47835
- }, WU = /* @__PURE__ */ cm(VU, [["__scopeId", "data-v-5244b202"]]), gs = [];
47835
+ }, WU = /* @__PURE__ */ cm(VU, [["__scopeId", "data-v-a1538e9b"]]), gs = [];
47836
47836
  for (let ur = 0; ur < 256; ++ur)
47837
47837
  gs.push((ur + 256).toString(16).slice(1));
47838
47838
  function JU(ur, go = 0) {
@@ -48381,7 +48381,7 @@ const a1 = /* @__PURE__ */ eK(tK), im = "default", rK = "#3a3f51", oK = "#afb7c5
48381
48381
  }, Lu(ur.description), 9, sK)
48382
48382
  ], 10, aK));
48383
48383
  }
48384
- }), S8 = /* @__PURE__ */ cm(lK, [["__scopeId", "data-v-db90d33c"]]), cK = ["data-testid"], uK = ["title"], pK = { class: "details" }, dK = ["aria-label", "title"], gK = /* @__PURE__ */ lm({
48384
+ }), S8 = /* @__PURE__ */ cm(lK, [["__scopeId", "data-v-3f1b0d9c"]]), cK = ["data-testid"], uK = ["title"], pK = { class: "details" }, dK = ["aria-label", "title"], gK = /* @__PURE__ */ lm({
48385
48385
  __name: "OperationsListItem",
48386
48386
  props: {
48387
48387
  item: {
@@ -48445,7 +48445,7 @@ const a1 = /* @__PURE__ */ eK(tK), im = "default", rK = "#3a3f51", oK = "#afb7c5
48445
48445
  ], 10, cK);
48446
48446
  };
48447
48447
  }
48448
- }), _8 = /* @__PURE__ */ cm(gK, [["__scopeId", "data-v-becd496e"]]), hK = ["aria-label"], fK = { key: 0 }, mK = {
48448
+ }), _8 = /* @__PURE__ */ cm(gK, [["__scopeId", "data-v-5aa4cc51"]]), hK = ["aria-label"], fK = { key: 0 }, mK = {
48449
48449
  key: 0,
48450
48450
  class: "filter-wrapper"
48451
48451
  }, bK = { key: 1 }, vK = ["data-testid"], yK = ["id"], wK = {
@@ -48649,7 +48649,7 @@ const a1 = /* @__PURE__ */ eK(tK), im = "default", rK = "#3a3f51", oK = "#afb7c5
48649
48649
  ], 12, hK);
48650
48650
  };
48651
48651
  }
48652
- }), OK = /* @__PURE__ */ cm(AK, [["__scopeId", "data-v-0776f5ad"]]), jK = { class: "kong-ui-public-spec-renderer" }, CK = {
48652
+ }), OK = /* @__PURE__ */ cm(AK, [["__scopeId", "data-v-414f8e91"]]), jK = { class: "kong-ui-public-spec-renderer" }, CK = {
48653
48653
  key: 0,
48654
48654
  class: "spec-container"
48655
48655
  }, PK = {
@@ -314,4 +314,4 @@ div#sidebar {
314
314
  top: unset;
315
315
  left: unset;
316
316
  }
317
- `,o.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(o)}Ma(this,Au)&&j4.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:Ma(this,bp),applicationRegistrationEnabled:Ma(this,zg),currentVersion:{version:Ma(this,Ng)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},...Ma(this,Tg)};yc(this,hl,d0({url:Ma(this,fd),spec:Ma(this,mp),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[d0.presets.apis,d0.SwaggerUIStandalonePreset],plugins:[d0.plugins.DownloadUrl,yR.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!Ma(this,hl))return!1;const o=_k(r);return Ma(this,hl).layoutActions.show(o,!0),!0}hideOperation(r){if(!Ma(this,hl))return!1;const o=_k(r);return Ma(this,hl).layoutActions.show(o,!1),!0}scrollToOperation(r){if(!Ma(this,hl))return!1;const o=_R(r);let s=this.shadowRoot.getElementById(o);if(!s){const B=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!B||(B.click(),s=this.shadowRoot.getElementById(o),!s))return!1}const E=window.matchMedia("(prefers-reduced-motion: no-preference)");let D;E&&E.matches&&(D="smooth"),s.scrollIntoView({behavior:D})}get autoInit(){return Ma(this,Ig)}set autoInit(r){yc(this,Ig,Nf(r))}get hasSidebar(){return Ma(this,bp)}set hasSidebar(r){yc(this,bp,Nf(r))}get relativeSidebar(){return Ma(this,md)}set relativeSidebar(r){yc(this,md,Nf(r))}get essentialsOnly(){return Ma(this,Au)}set essentialsOnly(r){yc(this,Au,Nf(r))}get instance(){return Ma(this,hl)}get spec(){return Ma(this,mp)}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),yc(this,mp,o),Ma(this,hl)&&Ma(this,hl).getSystem().specActions.updateJsonSpec(Ma(this,mp))}get url(){return Ma(this,fd)}set url(r){yc(this,fd,r)}get themeOverrides(){return Ma(this,Tg)}set themeOverrides(r){yc(this,Tg,r)}get applicationRegistrationEnabled(){return Ma(this,zg)}set applicationRegistrationEnabled(r){yc(this,zg,Nf(r))}get currentVersion(){return Ma(this,Ng)}set currentVersion(r){yc(this,Ng,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}Ig=new WeakMap,mp=new WeakMap,fd=new WeakMap,bp=new WeakMap,md=new WeakMap,Au=new WeakMap,hl=new WeakMap,Tg=new WeakMap,zg=new WeakMap,Ng=new WeakMap,St(Bf,"name","kong-swagger-ui"),customElements.get(Bf.name)?console.warn(`Cannot register ${Bf.name}. Element is already defined, ignoring`):customElements.define(Bf.name,Bf)})()})();const v8=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],y8={key:1,"data-testid":"kong-public-ui-spec-details-error"},w8=Qt.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(Pr,{expose:Vo}){const Qo=Pr,{i18n:Wn}=wp.useI18n(),Jt=Qt.ref(null);Vo({swaggerInstance:Jt});const O=Qt.computed(()=>!!(Qo.document||Qo.url)),C=Qt.ref(!1),n=()=>{if(!Jt.value)return;const m={...Qo.activeOperation};if(m&&m.tag){const w=decodeURIComponent(m.tag.trim().replaceAll(/\s/g,"%20"));m.tag=w}Jt.value.showOperation(m),Jt.value.scrollToOperation(m),C.value=!0};return Qt.onMounted(()=>{Qo.activeOperation&&n()}),Qt.watch(()=>Qo.activeOperation,()=>{Qo.activeOperation&&n()}),(m,w)=>(Qt.openBlock(),Qt.createElementBlock("div",{class:Qt.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":C.value}])},[O.value?(Qt.openBlock(),Qt.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:Jt,"application-registration-enabled":Pr.applicationRegistrationEnabled,"current-version":Pr.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":Pr.essentialsOnly,"has-sidebar":Pr.hasSidebar,"relative-sidebar":Pr.relativeSidebar,spec:Pr.document,"theme-overrides":encodeURIComponent(JSON.stringify(Pr.themeOverrides)),url:Pr.url},null,8,v8)):(Qt.openBlock(),Qt.createElementBlock("div",y8,Qt.toDisplayString(Qt.unref(Wn).t("specDetails.error")),1))],2))}}),Vg=(Pr,Vo)=>{const Qo=Pr.__vccOpts||Pr;for(const[Wn,Jt]of Vo)Qo[Wn]=Jt;return Qo},Jx=Vg(w8,[["__scopeId","data-v-5244b202"]]),rs=[];for(let Pr=0;Pr<256;++Pr)rs.push((Pr+256).toString(16).slice(1));function k8(Pr,Vo=0){return(rs[Pr[Vo+0]]+rs[Pr[Vo+1]]+rs[Pr[Vo+2]]+rs[Pr[Vo+3]]+"-"+rs[Pr[Vo+4]]+rs[Pr[Vo+5]]+"-"+rs[Pr[Vo+6]]+rs[Pr[Vo+7]]+"-"+rs[Pr[Vo+8]]+rs[Pr[Vo+9]]+"-"+rs[Pr[Vo+10]]+rs[Pr[Vo+11]]+rs[Pr[Vo+12]]+rs[Pr[Vo+13]]+rs[Pr[Vo+14]]+rs[Pr[Vo+15]]).toLowerCase()}let zv;const x8=new Uint8Array(16);function E8(){if(!zv){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");zv=crypto.getRandomValues.bind(crypto)}return zv(x8)}const Wg={};function S8(Pr,Vo,Qo){let Wn;{const Jt=Date.now(),O=E8();_8(Wg,Jt,O),Wn=A8(O,Wg.msecs,Wg.nsecs,Wg.clockseq,Wg.node,Vo,Qo)}return Vo??k8(Wn)}function _8(Pr,Vo,Qo){return Pr.msecs??(Pr.msecs=-1/0),Pr.nsecs??(Pr.nsecs=0),Vo===Pr.msecs?(Pr.nsecs++,Pr.nsecs>=1e4&&(Pr.node=void 0,Pr.nsecs=0)):Vo>Pr.msecs?Pr.nsecs=0:Vo<Pr.msecs&&(Pr.node=void 0),Pr.node||(Pr.node=Qo.slice(10,16),Pr.node[0]|=1,Pr.clockseq=(Qo[8]<<8|Qo[9])&16383),Pr.msecs=Vo,Pr}function A8(Pr,Vo,Qo,Wn,Jt,O,C=0){if(Pr.length<16)throw new Error("Random bytes length must be >= 16");if(!O)O=new Uint8Array(16),C=0;else if(C<0||C+16>O.length)throw new RangeError(`UUID byte range ${C}:${C+15} is out of buffer bounds`);Vo??(Vo=Date.now()),Qo??(Qo=0),Wn??(Wn=(Pr[8]<<8|Pr[9])&16383),Jt??(Jt=Pr.slice(10,16)),Vo+=122192928e5;const n=((Vo&268435455)*1e4+Qo)%4294967296;O[C++]=n>>>24&255,O[C++]=n>>>16&255,O[C++]=n>>>8&255,O[C++]=n&255;const m=Vo/4294967296*1e4&268435455;O[C++]=m>>>8&255,O[C++]=m&255,O[C++]=m>>>24&15|16,O[C++]=m>>>16&255,O[C++]=Wn>>>8|128,O[C++]=Wn&255;for(let w=0;w<6;++w)O[C++]=Jt[w];return O}var om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O8(Pr){return Pr&&Pr.__esModule&&Object.prototype.hasOwnProperty.call(Pr,"default")?Pr.default:Pr}var am={exports:{}};am.exports,function(Pr,Vo){var Qo=200,Wn="__lodash_hash_undefined__",Jt=9007199254740991,O="[object Arguments]",C="[object Array]",n="[object Boolean]",m="[object Date]",w="[object Error]",A="[object Function]",k="[object GeneratorFunction]",I="[object Map]",T="[object Number]",b="[object Object]",a="[object Promise]",u="[object RegExp]",p="[object Set]",i="[object String]",g="[object Symbol]",x="[object WeakMap]",_="[object ArrayBuffer]",v="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",R="[object Int8Array]",U="[object Int16Array]",q="[object Int32Array]",K="[object Uint8Array]",$="[object Uint8ClampedArray]",H="[object Uint16Array]",J="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,se=/\w*$/,te=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,ae={};ae[O]=ae[C]=ae[_]=ae[v]=ae[n]=ae[m]=ae[j]=ae[z]=ae[R]=ae[U]=ae[q]=ae[I]=ae[T]=ae[b]=ae[u]=ae[p]=ae[i]=ae[g]=ae[K]=ae[$]=ae[H]=ae[J]=!0,ae[w]=ae[A]=ae[x]=!1;var me=typeof om=="object"&&om&&om.Object===Object&&om,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=me||de||Function("return this")(),ke=Vo&&!Vo.nodeType&&Vo,be=ke&&!0&&Pr&&!Pr.nodeType&&Pr,ze=be&&be.exports===ke;function Me(rt,ir){return rt.set(ir[0],ir[1]),rt}function Ze(rt,ir){return rt.add(ir),rt}function et(rt,ir){for(var Fr=-1,mo=rt?rt.length:0;++Fr<mo&&ir(rt[Fr],Fr,rt)!==!1;);return rt}function Le(rt,ir){for(var Fr=-1,mo=ir.length,en=rt.length;++Fr<mo;)rt[en+Fr]=ir[Fr];return rt}function Te(rt,ir,Fr,mo){for(var en=-1,Rn=rt?rt.length:0;++en<Rn;)Fr=ir(Fr,rt[en],en,rt);return Fr}function ct(rt,ir){for(var Fr=-1,mo=Array(rt);++Fr<rt;)mo[Fr]=ir(Fr);return mo}function dt(rt,ir){return rt==null?void 0:rt[ir]}function Pt(rt){var ir=!1;if(rt!=null&&typeof rt.toString!="function")try{ir=!!(rt+"")}catch{}return ir}function Gt(rt){var ir=-1,Fr=Array(rt.size);return rt.forEach(function(mo,en){Fr[++ir]=[en,mo]}),Fr}function tr(rt,ir){return function(Fr){return rt(ir(Fr))}}function Ft(rt){var ir=-1,Fr=Array(rt.size);return rt.forEach(function(mo){Fr[++ir]=mo}),Fr}var pr=Array.prototype,dr=Function.prototype,ur=Object.prototype,nr=fe["__core-js_shared__"],Zt=function(){var rt=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return rt?"Symbol(src)_1."+rt:""}(),Bt=dr.toString,Xe=ur.hasOwnProperty,ht=ur.toString,$e=RegExp("^"+Bt.call(Xe).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ze?fe.Buffer:void 0,tt=fe.Symbol,It=fe.Uint8Array,zt=tr(Object.getPrototypeOf,Object),Lt=Object.create,Q=ur.propertyIsEnumerable,we=pr.splice,Se=Object.getOwnPropertySymbols,lt=Be?Be.isBuffer:void 0,xt=tr(Object.keys,Object),_t=Cn(fe,"DataView"),ut=Cn(fe,"Map"),Yt=Cn(fe,"Promise"),vr=Cn(fe,"Set"),gr=Cn(fe,"WeakMap"),Ge=Cn(Object,"create"),nt=Qn(_t),gt=Qn(ut),Nt=Qn(Yt),jr=Qn(vr),Hr=Qn(gr),oo=tt?tt.prototype:void 0,eo=oo?oo.valueOf:void 0;function mr(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function Ht(){this.__data__=Ge?Ge(null):{}}function Or(rt){return this.has(rt)&&delete this.__data__[rt]}function ro(rt){var ir=this.__data__;if(Ge){var Fr=ir[rt];return Fr===Wn?void 0:Fr}return Xe.call(ir,rt)?ir[rt]:void 0}function yr(rt){var ir=this.__data__;return Ge?ir[rt]!==void 0:Xe.call(ir,rt)}function no(rt,ir){var Fr=this.__data__;return Fr[rt]=Ge&&ir===void 0?Wn:ir,this}mr.prototype.clear=Ht,mr.prototype.delete=Or,mr.prototype.get=ro,mr.prototype.has=yr,mr.prototype.set=no;function ho(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function Oo(){this.__data__=[]}function Wo(rt){var ir=this.__data__,Fr=$t(ir,rt);if(Fr<0)return!1;var mo=ir.length-1;return Fr==mo?ir.pop():we.call(ir,Fr,1),!0}function wa(rt){var ir=this.__data__,Fr=$t(ir,rt);return Fr<0?void 0:ir[Fr][1]}function Na(rt){return $t(this.__data__,rt)>-1}function hn(rt,ir){var Fr=this.__data__,mo=$t(Fr,rt);return mo<0?Fr.push([rt,ir]):Fr[mo][1]=ir,this}ho.prototype.clear=Oo,ho.prototype.delete=Wo,ho.prototype.get=wa,ho.prototype.has=Na,ho.prototype.set=hn;function Ca(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function ea(){this.__data__={hash:new mr,map:new(ut||ho),string:new mr}}function Va(rt){return Yn(this,rt).delete(rt)}function ka(rt){return Yn(this,rt).get(rt)}function Po(rt){return Yn(this,rt).has(rt)}function Oa(rt,ir){return Yn(this,rt).set(rt,ir),this}Ca.prototype.clear=ea,Ca.prototype.delete=Va,Ca.prototype.get=ka,Ca.prototype.has=Po,Ca.prototype.set=Oa;function lo(rt){this.__data__=new ho(rt)}function xo(){this.__data__=new ho}function Xa(rt){return this.__data__.delete(rt)}function La(rt){return this.__data__.get(rt)}function Fo(rt){return this.__data__.has(rt)}function yt(rt,ir){var Fr=this.__data__;if(Fr instanceof ho){var mo=Fr.__data__;if(!ut||mo.length<Qo-1)return mo.push([rt,ir]),this;Fr=this.__data__=new Ca(mo)}return Fr.set(rt,ir),this}lo.prototype.clear=xo,lo.prototype.delete=Xa,lo.prototype.get=La,lo.prototype.has=Fo,lo.prototype.set=yt;function Ye(rt,ir){var Fr=as(rt)||Yi(rt)?ct(rt.length,String):[],mo=Fr.length,en=!!mo;for(var Rn in rt)Xe.call(rt,Rn)&&!(en&&(Rn=="length"||Ds(Rn,mo)))&&Fr.push(Rn);return Fr}function mt(rt,ir,Fr){var mo=rt[ir];(!(Xe.call(rt,ir)&&os(mo,Fr))||Fr===void 0&&!(ir in rt))&&(rt[ir]=Fr)}function $t(rt,ir){for(var Fr=rt.length;Fr--;)if(os(rt[Fr][0],ir))return Fr;return-1}function Er(rt,ir){return rt&&Sa(ir,Mi(ir),rt)}function Dr(rt,ir,Fr,mo,en,Rn,ai){var Un;if(mo&&(Un=Rn?mo(rt,en,Rn,ai):mo(rt)),Un!==void 0)return Un;if(!oi(rt))return rt;var ys=as(rt);if(ys){if(Un=Gi(rt),!ir)return vo(rt,Un)}else{var Dn=Ua(rt),ns=Dn==A||Dn==k;if(Pi(rt))return Ro(rt,ir);if(Dn==b||Dn==O||ns&&!Rn){if(Pt(rt))return Rn?rt:{};if(Un=fn(ns?{}:rt),!ir)return un(rt,Er(Un,rt))}else{if(!ae[Dn])return Rn?rt:{};Un=ma(rt,Dn,Dr,ir)}}ai||(ai=new lo);var ws=ai.get(rt);if(ws)return ws;if(ai.set(rt,Un),!ys)var Ei=Fr?jn(rt):Mi(rt);return et(Ei||rt,function(Ia,Qi){Ei&&(Qi=Ia,Ia=rt[Qi]),mt(Un,Qi,Dr(Ia,ir,Fr,mo,Qi,rt,ai))}),Un}function At(rt){return oi(rt)?Lt(rt):{}}function Mt(rt,ir,Fr){var mo=ir(rt);return as(rt)?mo:Le(mo,Fr(rt))}function Br(rt){return ht.call(rt)}function zr(rt){if(!oi(rt)||sn(rt))return!1;var ir=qa(rt)||Pt(rt)?$e:te;return ir.test(Qn(rt))}function ao(rt){if(!pi(rt))return xt(rt);var ir=[];for(var Fr in Object(rt))Xe.call(rt,Fr)&&Fr!="constructor"&&ir.push(Fr);return ir}function Ro(rt,ir){if(ir)return rt.slice();var Fr=new rt.constructor(rt.length);return rt.copy(Fr),Fr}function ra(rt){var ir=new rt.constructor(rt.byteLength);return new It(ir).set(new It(rt)),ir}function ua(rt,ir){var Fr=ir?ra(rt.buffer):rt.buffer;return new rt.constructor(Fr,rt.byteOffset,rt.byteLength)}function Ya(rt,ir,Fr){var mo=ir?Fr(Gt(rt),!0):Gt(rt);return Te(mo,Me,new rt.constructor)}function nn(rt){var ir=new rt.constructor(rt.source,se.exec(rt));return ir.lastIndex=rt.lastIndex,ir}function Wa(rt,ir,Fr){var mo=ir?Fr(Ft(rt),!0):Ft(rt);return Te(mo,Ze,new rt.constructor)}function ha(rt){return eo?Object(eo.call(rt)):{}}function Ja(rt,ir){var Fr=ir?ra(rt.buffer):rt.buffer;return new rt.constructor(Fr,rt.byteOffset,rt.length)}function vo(rt,ir){var Fr=-1,mo=rt.length;for(ir||(ir=Array(mo));++Fr<mo;)ir[Fr]=rt[Fr];return ir}function Sa(rt,ir,Fr,mo){Fr||(Fr={});for(var en=-1,Rn=ir.length;++en<Rn;){var ai=ir[en],Un=void 0;mt(Fr,ai,Un===void 0?rt[ai]:Un)}return Fr}function un(rt,ir){return Sa(rt,Pa(rt),ir)}function jn(rt){return Mt(rt,Mi,Pa)}function Yn(rt,ir){var Fr=rt.__data__;return hs(ir)?Fr[typeof ir=="string"?"string":"hash"]:Fr.map}function Cn(rt,ir){var Fr=dt(rt,ir);return zr(Fr)?Fr:void 0}var Pa=Se?tr(Se,Object):xa,Ua=Br;(_t&&Ua(new _t(new ArrayBuffer(1)))!=v||ut&&Ua(new ut)!=I||Yt&&Ua(Yt.resolve())!=a||vr&&Ua(new vr)!=p||gr&&Ua(new gr)!=x)&&(Ua=function(rt){var ir=ht.call(rt),Fr=ir==b?rt.constructor:void 0,mo=Fr?Qn(Fr):void 0;if(mo)switch(mo){case nt:return v;case gt:return I;case Nt:return a;case jr:return p;case Hr:return x}return ir});function Gi(rt){var ir=rt.length,Fr=rt.constructor(ir);return ir&&typeof rt[0]=="string"&&Xe.call(rt,"index")&&(Fr.index=rt.index,Fr.input=rt.input),Fr}function fn(rt){return typeof rt.constructor=="function"&&!pi(rt)?At(zt(rt)):{}}function ma(rt,ir,Fr,mo){var en=rt.constructor;switch(ir){case _:return ra(rt);case n:case m:return new en(+rt);case v:return ua(rt,mo);case j:case z:case R:case U:case q:case K:case $:case H:case J:return Ja(rt,mo);case I:return Ya(rt,mo,Fr);case T:case i:return new en(rt);case u:return nn(rt);case p:return Wa(rt,mo,Fr);case g:return ha(rt)}}function Ds(rt,ir){return ir=ir??Jt,!!ir&&(typeof rt=="number"||he.test(rt))&&rt>-1&&rt%1==0&&rt<ir}function hs(rt){var ir=typeof rt;return ir=="string"||ir=="number"||ir=="symbol"||ir=="boolean"?rt!=="__proto__":rt===null}function sn(rt){return!!Zt&&Zt in rt}function pi(rt){var ir=rt&&rt.constructor,Fr=typeof ir=="function"&&ir.prototype||ur;return rt===Fr}function Qn(rt){if(rt!=null){try{return Bt.call(rt)}catch{}try{return rt+""}catch{}}return""}function vs(rt){return Dr(rt,!0,!0)}function os(rt,ir){return rt===ir||rt!==rt&&ir!==ir}function Yi(rt){return Ka(rt)&&Xe.call(rt,"callee")&&(!Q.call(rt,"callee")||ht.call(rt)==O)}var as=Array.isArray;function di(rt){return rt!=null&&kl(rt.length)&&!qa(rt)}function Ka(rt){return Ii(rt)&&di(rt)}var Pi=lt||Zn;function qa(rt){var ir=oi(rt)?ht.call(rt):"";return ir==A||ir==k}function kl(rt){return typeof rt=="number"&&rt>-1&&rt%1==0&&rt<=Jt}function oi(rt){var ir=typeof rt;return!!rt&&(ir=="object"||ir=="function")}function Ii(rt){return!!rt&&typeof rt=="object"}function Mi(rt){return di(rt)?Ye(rt):ao(rt)}function xa(){return[]}function Zn(){return!1}Pr.exports=vs}(am,am.exports);var j8=am.exports;const Nv=O8(j8),Od="default",C8="#3a3f51",P8="#afb7c5",Gx="20px",I8=["aria-controls","aria-expanded","aria-label"],T8={"aria-hidden":"true",class:"icon-wrapper"},z8={"aria-hidden":"true",class:"label truncated"},N8=["title"],Yx=Vg(Qt.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(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>Vo.isCollapsed?Qo.t("specOperationsList.section.expandAriaLabel",{section:`"${Vo.name}"`}):Qo.t("specOperationsList.section.collapseAriaLabel",{section:`"${Vo.name}"`}));return(Jt,O)=>(Qt.openBlock(),Qt.createElementBlock("button",{"aria-controls":Pr.contentElementId,"aria-expanded":Pr.isCollapsed?"false":"true","aria-label":Wn.value,class:Qt.normalizeClass(["header",{"header--collapsed":Pr.isCollapsed}]),type:"button",onClick:O[0]||(O[0]=C=>Jt.$emit("toggle"))},[Qt.createElementVNode("div",T8,[Pr.isCollapsed?(Qt.openBlock(),Qt.createBlock(Qt.unref(Ad.ChevronRightIcon),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${Qt.unref(P8)})`,size:Qt.unref(Gx)},null,8,["color","size"])):(Qt.openBlock(),Qt.createBlock(Qt.unref(Ad.ChevronDownIcon),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${Qt.unref(C8)})`,size:Qt.unref(Gx)},null,8,["color","size"]))]),Qt.createElementVNode("h1",z8,Qt.toDisplayString(Pr.name),1),Qt.createElementVNode("div",{class:"description truncated",title:Pr.description},Qt.toDisplayString(Pr.description),9,N8)],10,I8))}}),[["__scopeId","data-v-db90d33c"]]),R8=["data-testid"],D8=["title"],B8={class:"details"},M8=["aria-label","title"],Qx=Vg(Qt.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:Pr=>Pr.method!==void 0&&Pr.summary!==void 0&&Pr.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>{var O,C;return`spec-operations-list-item-${(O=Vo.item.method)==null?void 0:O.toLowerCase()}${(C=Vo.item.path)==null?void 0:C.replaceAll("/","-")}-${Vo.item.tag||"-"}`}),Jt=Qt.computed(()=>Vo.item.method||"");return(O,C)=>{const n=Qt.resolveComponent("KBadge");return Qt.openBlock(),Qt.createElementBlock("button",{class:Qt.normalizeClass(["spec-operations-list-item",{"item--selected":Pr.isSelected,[`item--method-${Pr.item.method}`]:!0,disabled:Pr.disableSelection}]),"data-testid":Wn.value,type:"button",onClick:C[0]||(C[0]=m=>O.$emit("click",Pr.item))},[Pr.item.summary?(Qt.openBlock(),Qt.createElementBlock("h2",{key:0,class:"summary truncated",title:Pr.item.summary},Qt.toDisplayString(Pr.item.summary),9,D8)):Qt.createCommentVNode("",!0),Qt.createElementVNode("div",B8,[Qt.createVNode(n,{appearance:Jt.value,"aria-label":Qt.unref(Qo).t("specOperationsList.item.methodAriaLabel",{method:Jt.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:Qt.withCtx(()=>[Qt.createTextVNode(Qt.toDisplayString(Jt.value.toUpperCase()),1)]),_:1},8,["appearance","aria-label"]),Qt.createElementVNode("span",{"aria-label":Qt.unref(Qo).t("specOperationsList.item.pathAriaLabel",{path:Pr.item.path}),class:"path truncated",title:Pr.item.path},Qt.toDisplayString(Pr.item.path),9,M8)])],10,R8)}}}),[["__scopeId","data-v-becd496e"]]),L8=["aria-label"],$8={key:0},F8={key:0,class:"filter-wrapper"},U8={key:1},K8=["data-testid"],q8=["id"],H8={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},V8=["id"],W8={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},J8={class:"center"},G8={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Y8,hasRequiredProps:Zx}=wp.useUtilities(),Xx=Vg(Qt.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:Pr=>!Pr.length||Zx(Pr,["method","path"])},tags:{type:Array,default:()=>[],validator:Pr=>!Pr.length||Zx(Pr,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:Pr,query:Vo})=>(Vo=Vo.toLowerCase(),Pr.filter(Qo=>Qo.tag&&String(Qo.tag).toLowerCase().includes(Vo))),validator:Pr=>!!Pr&&typeof Pr=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(Pr,{emit:Vo}){const Qo=Pr,Wn=Vo,{i18n:Jt}=wp.useI18n(),O=Qt.computed(()=>S8()),C=Qt.ref(""),n=Qt.ref([]),m=Qt.ref(),w=Qt.ref([]),A=()=>{const x=n.value;if(!Qo.isFilterable){w.value=x;return}if(!Qo.filterFunction||typeof Qo.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof Qo.filterFunction}`);w.value=Qo.filterFunction({items:x,query:C.value})},k=Qt.computed(()=>Y8(Qo.width)),I=Qt.computed(()=>{const x=[];return w.value.forEach(_=>{_.tag&&!x.includes(_.tag)&&x.push(String(_.tag))}),x}),T=Qt.computed(()=>n.value.filter(x=>!x.tag)),b=x=>{if(!Qo.tags||!Array.isArray(Qo.tags))return"";const _=Qo.tags.find(v=>v.name===x);return(_==null?void 0:_.description)||""},a=x=>w.value.filter(_=>_.tag===x),u=x=>{const _=m.value;return!!_&&_.path===x.path&&_.method===x.method&&_.operationId===x.operationId&&_.tag===x.tag},p=x=>`${O.value}-section-${x.toLowerCase()}`,i=x=>{Qo.disableSelection||(m.value=x,Wn("selected",x))},g=()=>{n.value=[],Qo.operations&&(Qo.operations.forEach(x=>{var v;const _=Nv(x);(v=x.tags)!=null&&v.length?x.tags.forEach(j=>{delete _.tags,_.tag=j,n.value.push(Nv(_))}):(delete _.tags,_.tag=null,n.value.push(Nv(_)))}),A())};return Qt.watch(()=>Qo.deselect,()=>{Qo.deselect&&(m.value=void 0)}),Qt.watch(()=>Qo.operations,()=>g()),Qt.watch(C,()=>A()),Qt.onMounted(()=>{g()}),(x,_)=>{const v=Qt.resolveComponent("KInput"),j=Qt.resolveComponent("KCollapse");return Qt.openBlock(),Qt.createElementBlock("section",{"aria-label":Qt.unref(Jt).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:Qt.normalizeStyle({width:k.value})},[Pr.operations?(Qt.openBlock(),Qt.createElementBlock("div",$8,[Pr.isFilterable?(Qt.openBlock(),Qt.createElementBlock("div",F8,[Qt.createVNode(v,{modelValue:C.value,"onUpdate:modelValue":_[0]||(_[0]=z=>C.value=z),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:Qt.unref(Jt).t("specOperationsList.filterPlaceholder")},{before:Qt.withCtx(()=>[Qt.createVNode(Qt.unref(Ad.FilterIcon),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):Qt.createCommentVNode("",!0),w.value.length?(Qt.openBlock(),Qt.createElementBlock("div",U8,[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(I.value,z=>(Qt.openBlock(),Qt.createElementBlock("div",{key:z,class:"section-wrapper","data-testid":`spec-operations-list-section-${z.toLowerCase().replaceAll(" ","-")}`},[Qt.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:Qt.withCtx(({isCollapsed:R,toggle:U})=>[Qt.createVNode(Yx,{"content-element-id":p(z),"data-testid":`spec-operations-list-section-${z.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:b(z),"is-collapsed":R,name:z,onToggle:U},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:Qt.withCtx(()=>[Qt.createElementVNode("div",{id:p(z)},[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(a(z),R=>Qt.renderSlot(x.$slots,"item",{key:`${R.path}-${R.method}`,item:R,section:z,select:()=>i(R)},()=>[Qt.createVNode(Qx,{"disable-selection":Pr.disableSelection,"is-selected":u(R),item:R,section:z,onClick:i},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,q8)]),_:2},1024)],8,K8))),128)),(!Pr.isFilterable||!C.value)&&T.value.length?(Qt.openBlock(),Qt.createElementBlock("div",H8,[Qt.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:Qt.withCtx(({isCollapsed:z,toggle:R})=>[Qt.createVNode(Yx,{"content-element-id":p(Qt.unref(Od)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:b(Qt.unref(Od)),"is-collapsed":z,name:Qt.unref(Od),onToggle:R},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:Qt.withCtx(()=>[Qt.createElementVNode("div",{id:p(Qt.unref(Od))},[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(T.value,z=>Qt.renderSlot(x.$slots,"untagged-item",{key:`${z.path}-${z.method}`,item:z,section:Qt.unref(Od),select:()=>i(z)},()=>[Qt.createVNode(Qx,{"disable-selection":Pr.disableSelection,"is-selected":u(z),item:z,onClick:i},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,V8)]),_:3})])):Qt.createCommentVNode("",!0)])):(Qt.openBlock(),Qt.createElementBlock("div",W8,[Qt.renderSlot(x.$slots,"empty-state",{},()=>[Qt.createElementVNode("div",J8,Qt.toDisplayString(Qt.unref(Jt).t("specOperationsList.noResults")),1)],!0)]))])):(Qt.openBlock(),Qt.createElementBlock("div",G8,[Qt.renderSlot(x.$slots,"error-state",{},()=>[Qt.createTextVNode(Qt.toDisplayString(Qt.unref(Jt).t("specOperationsList.error")),1)],!0)]))],12,L8)}}}),[["__scopeId","data-v-0776f5ad"]]),Q8={class:"kong-ui-public-spec-renderer"},Z8={key:0,class:"spec-container"},X8={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},eE={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:e1}=wp.useUtilities(),tE=Vg(Qt.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:Pr=>!Pr.length||e1(Pr,["method","path"])},tags:{type:Array,default:()=>[],validator:Pr=>!Pr.length||e1(Pr,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>!!(Vo.spec&&Vo.operationsList)),Jt=Qt.ref(),O=C=>{Jt.value=C};return(C,n)=>{const m=Qt.resolveComponent("KEmptyState");return Qt.openBlock(),Qt.createElementBlock("div",Q8,[Wn.value?(Qt.openBlock(),Qt.createElementBlock("div",Z8,[Qt.createVNode(Xx,{"data-testid":"spec-renderer-ops-list-content",deselect:Pr.deselect,operations:Pr.operationsList,tags:Pr.tags,width:Pr.navWidth,onSelected:O},{"empty-state":Qt.withCtx(()=>[Qt.createElementVNode("div",X8,[Qt.renderSlot(C.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),Qt.createVNode(Jx,{"active-operation":Jt.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:Pr.spec,"essentials-only":Pr.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(Qt.openBlock(),Qt.createElementBlock("div",eE,[Qt.renderSlot(C.$slots,"error-state",{},()=>[Qt.createVNode(m,{"action-button-visible":!1,"icon-variant":"error"},{title:Qt.withCtx(()=>[Qt.createTextVNode(Qt.toDisplayString(Qt.unref(Qo).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-4cfc670e"]]);cn.DEFAULT_UNTAGGED_SECTION_NAME=Od,cn.SpecDetails=Jx,cn.SpecOperationsList=Xx,cn.SpecRenderer=tE,Object.defineProperty(cn,Symbol.toStringTag,{value:"Module"})});
317
+ `,o.setAttribute("data-testid","relative-sidebar-styles"),this.shadowRoot.appendChild(o)}Ma(this,Au)&&j4.use({target:this.shadowRoot,testId:"hide-essentials-styles"});const r={hasSidebar:Ma(this,bp),applicationRegistrationEnabled:Ma(this,zg),currentVersion:{version:Ma(this,Ng)},onViewSpecClick:()=>{this.dispatchEvent(new CustomEvent("clicked-view-spec",{bubbles:!0}))},onRegisterClick:()=>{this.dispatchEvent(new CustomEvent("clicked-register",{bubbles:!0}))},...Ma(this,Tg)};yc(this,hl,d0({url:Ma(this,fd),spec:Ma(this,mp),domNode:this.rootElement,deepLinking:!0,filter:!0,presets:[d0.presets.apis,d0.SwaggerUIStandalonePreset],plugins:[d0.plugins.DownloadUrl,yR.SwaggerUIKongTheme],layout:"KongLayout",theme:r}))}showOperation(r){if(!Ma(this,hl))return!1;const o=_k(r);return Ma(this,hl).layoutActions.show(o,!0),!0}hideOperation(r){if(!Ma(this,hl))return!1;const o=_k(r);return Ma(this,hl).layoutActions.show(o,!1),!0}scrollToOperation(r){if(!Ma(this,hl))return!1;const o=_R(r);let s=this.shadowRoot.getElementById(o);if(!s){const B=this.shadowRoot.querySelector(`[data-tag='${r.tag}']`);if(!B||(B.click(),s=this.shadowRoot.getElementById(o),!s))return!1}const E=window.matchMedia("(prefers-reduced-motion: no-preference)");let D;E&&E.matches&&(D="smooth"),s.scrollIntoView({behavior:D})}get autoInit(){return Ma(this,Ig)}set autoInit(r){yc(this,Ig,Nf(r))}get hasSidebar(){return Ma(this,bp)}set hasSidebar(r){yc(this,bp,Nf(r))}get relativeSidebar(){return Ma(this,md)}set relativeSidebar(r){yc(this,md,Nf(r))}get essentialsOnly(){return Ma(this,Au)}set essentialsOnly(r){yc(this,Au,Nf(r))}get instance(){return Ma(this,hl)}get spec(){return Ma(this,mp)}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),yc(this,mp,o),Ma(this,hl)&&Ma(this,hl).getSystem().specActions.updateJsonSpec(Ma(this,mp))}get url(){return Ma(this,fd)}set url(r){yc(this,fd,r)}get themeOverrides(){return Ma(this,Tg)}set themeOverrides(r){yc(this,Tg,r)}get applicationRegistrationEnabled(){return Ma(this,zg)}set applicationRegistrationEnabled(r){yc(this,zg,Nf(r))}get currentVersion(){return Ma(this,Ng)}set currentVersion(r){yc(this,Ng,r)}static get observedAttributes(){return["url","spec","auto-init","has-sidebar","relative-sidebar","essentials-only","application-registration-enabled","current-version","theme-overrides"]}}Ig=new WeakMap,mp=new WeakMap,fd=new WeakMap,bp=new WeakMap,md=new WeakMap,Au=new WeakMap,hl=new WeakMap,Tg=new WeakMap,zg=new WeakMap,Ng=new WeakMap,St(Bf,"name","kong-swagger-ui"),customElements.get(Bf.name)?console.warn(`Cannot register ${Bf.name}. Element is already defined, ignoring`):customElements.define(Bf.name,Bf)})()})();const v8=["application-registration-enabled","current-version","essentials-only","has-sidebar","relative-sidebar","spec","theme-overrides","url"],y8={key:1,"data-testid":"kong-public-ui-spec-details-error"},w8=Qt.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(Pr,{expose:Vo}){const Qo=Pr,{i18n:Wn}=wp.useI18n(),Jt=Qt.ref(null);Vo({swaggerInstance:Jt});const O=Qt.computed(()=>!!(Qo.document||Qo.url)),C=Qt.ref(!1),n=()=>{if(!Jt.value)return;const m={...Qo.activeOperation};if(m&&m.tag){const w=decodeURIComponent(m.tag.trim().replaceAll(/\s/g,"%20"));m.tag=w}Jt.value.showOperation(m),Jt.value.scrollToOperation(m),C.value=!0};return Qt.onMounted(()=>{Qo.activeOperation&&n()}),Qt.watch(()=>Qo.activeOperation,()=>{Qo.activeOperation&&n()}),(m,w)=>(Qt.openBlock(),Qt.createElementBlock("div",{class:Qt.normalizeClass(["kong-public-ui-spec-details",{"active-op-focused":C.value}])},[O.value?(Qt.openBlock(),Qt.createElementBlock("kong-swagger-ui",{key:0,ref_key:"swaggerRef",ref:Jt,"application-registration-enabled":Pr.applicationRegistrationEnabled,"current-version":Pr.currentVersion,"data-testid":"kong-public-ui-spec-details-swagger","essentials-only":Pr.essentialsOnly,"has-sidebar":Pr.hasSidebar,"relative-sidebar":Pr.relativeSidebar,spec:Pr.document,"theme-overrides":encodeURIComponent(JSON.stringify(Pr.themeOverrides)),url:Pr.url},null,8,v8)):(Qt.openBlock(),Qt.createElementBlock("div",y8,Qt.toDisplayString(Qt.unref(Wn).t("specDetails.error")),1))],2))}}),Vg=(Pr,Vo)=>{const Qo=Pr.__vccOpts||Pr;for(const[Wn,Jt]of Vo)Qo[Wn]=Jt;return Qo},Jx=Vg(w8,[["__scopeId","data-v-a1538e9b"]]),rs=[];for(let Pr=0;Pr<256;++Pr)rs.push((Pr+256).toString(16).slice(1));function k8(Pr,Vo=0){return(rs[Pr[Vo+0]]+rs[Pr[Vo+1]]+rs[Pr[Vo+2]]+rs[Pr[Vo+3]]+"-"+rs[Pr[Vo+4]]+rs[Pr[Vo+5]]+"-"+rs[Pr[Vo+6]]+rs[Pr[Vo+7]]+"-"+rs[Pr[Vo+8]]+rs[Pr[Vo+9]]+"-"+rs[Pr[Vo+10]]+rs[Pr[Vo+11]]+rs[Pr[Vo+12]]+rs[Pr[Vo+13]]+rs[Pr[Vo+14]]+rs[Pr[Vo+15]]).toLowerCase()}let zv;const x8=new Uint8Array(16);function E8(){if(!zv){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");zv=crypto.getRandomValues.bind(crypto)}return zv(x8)}const Wg={};function S8(Pr,Vo,Qo){let Wn;{const Jt=Date.now(),O=E8();_8(Wg,Jt,O),Wn=A8(O,Wg.msecs,Wg.nsecs,Wg.clockseq,Wg.node,Vo,Qo)}return Vo??k8(Wn)}function _8(Pr,Vo,Qo){return Pr.msecs??(Pr.msecs=-1/0),Pr.nsecs??(Pr.nsecs=0),Vo===Pr.msecs?(Pr.nsecs++,Pr.nsecs>=1e4&&(Pr.node=void 0,Pr.nsecs=0)):Vo>Pr.msecs?Pr.nsecs=0:Vo<Pr.msecs&&(Pr.node=void 0),Pr.node||(Pr.node=Qo.slice(10,16),Pr.node[0]|=1,Pr.clockseq=(Qo[8]<<8|Qo[9])&16383),Pr.msecs=Vo,Pr}function A8(Pr,Vo,Qo,Wn,Jt,O,C=0){if(Pr.length<16)throw new Error("Random bytes length must be >= 16");if(!O)O=new Uint8Array(16),C=0;else if(C<0||C+16>O.length)throw new RangeError(`UUID byte range ${C}:${C+15} is out of buffer bounds`);Vo??(Vo=Date.now()),Qo??(Qo=0),Wn??(Wn=(Pr[8]<<8|Pr[9])&16383),Jt??(Jt=Pr.slice(10,16)),Vo+=122192928e5;const n=((Vo&268435455)*1e4+Qo)%4294967296;O[C++]=n>>>24&255,O[C++]=n>>>16&255,O[C++]=n>>>8&255,O[C++]=n&255;const m=Vo/4294967296*1e4&268435455;O[C++]=m>>>8&255,O[C++]=m&255,O[C++]=m>>>24&15|16,O[C++]=m>>>16&255,O[C++]=Wn>>>8|128,O[C++]=Wn&255;for(let w=0;w<6;++w)O[C++]=Jt[w];return O}var om=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function O8(Pr){return Pr&&Pr.__esModule&&Object.prototype.hasOwnProperty.call(Pr,"default")?Pr.default:Pr}var am={exports:{}};am.exports,function(Pr,Vo){var Qo=200,Wn="__lodash_hash_undefined__",Jt=9007199254740991,O="[object Arguments]",C="[object Array]",n="[object Boolean]",m="[object Date]",w="[object Error]",A="[object Function]",k="[object GeneratorFunction]",I="[object Map]",T="[object Number]",b="[object Object]",a="[object Promise]",u="[object RegExp]",p="[object Set]",i="[object String]",g="[object Symbol]",x="[object WeakMap]",_="[object ArrayBuffer]",v="[object DataView]",j="[object Float32Array]",z="[object Float64Array]",R="[object Int8Array]",U="[object Int16Array]",q="[object Int32Array]",K="[object Uint8Array]",$="[object Uint8ClampedArray]",H="[object Uint16Array]",J="[object Uint32Array]",le=/[\\^$.*+?()[\]{}|]/g,se=/\w*$/,te=/^\[object .+?Constructor\]$/,he=/^(?:0|[1-9]\d*)$/,ae={};ae[O]=ae[C]=ae[_]=ae[v]=ae[n]=ae[m]=ae[j]=ae[z]=ae[R]=ae[U]=ae[q]=ae[I]=ae[T]=ae[b]=ae[u]=ae[p]=ae[i]=ae[g]=ae[K]=ae[$]=ae[H]=ae[J]=!0,ae[w]=ae[A]=ae[x]=!1;var me=typeof om=="object"&&om&&om.Object===Object&&om,de=typeof self=="object"&&self&&self.Object===Object&&self,fe=me||de||Function("return this")(),ke=Vo&&!Vo.nodeType&&Vo,be=ke&&!0&&Pr&&!Pr.nodeType&&Pr,ze=be&&be.exports===ke;function Me(rt,ir){return rt.set(ir[0],ir[1]),rt}function Ze(rt,ir){return rt.add(ir),rt}function et(rt,ir){for(var Fr=-1,mo=rt?rt.length:0;++Fr<mo&&ir(rt[Fr],Fr,rt)!==!1;);return rt}function Le(rt,ir){for(var Fr=-1,mo=ir.length,en=rt.length;++Fr<mo;)rt[en+Fr]=ir[Fr];return rt}function Te(rt,ir,Fr,mo){for(var en=-1,Rn=rt?rt.length:0;++en<Rn;)Fr=ir(Fr,rt[en],en,rt);return Fr}function ct(rt,ir){for(var Fr=-1,mo=Array(rt);++Fr<rt;)mo[Fr]=ir(Fr);return mo}function dt(rt,ir){return rt==null?void 0:rt[ir]}function Pt(rt){var ir=!1;if(rt!=null&&typeof rt.toString!="function")try{ir=!!(rt+"")}catch{}return ir}function Gt(rt){var ir=-1,Fr=Array(rt.size);return rt.forEach(function(mo,en){Fr[++ir]=[en,mo]}),Fr}function tr(rt,ir){return function(Fr){return rt(ir(Fr))}}function Ft(rt){var ir=-1,Fr=Array(rt.size);return rt.forEach(function(mo){Fr[++ir]=mo}),Fr}var pr=Array.prototype,dr=Function.prototype,ur=Object.prototype,nr=fe["__core-js_shared__"],Zt=function(){var rt=/[^.]+$/.exec(nr&&nr.keys&&nr.keys.IE_PROTO||"");return rt?"Symbol(src)_1."+rt:""}(),Bt=dr.toString,Xe=ur.hasOwnProperty,ht=ur.toString,$e=RegExp("^"+Bt.call(Xe).replace(le,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=ze?fe.Buffer:void 0,tt=fe.Symbol,It=fe.Uint8Array,zt=tr(Object.getPrototypeOf,Object),Lt=Object.create,Q=ur.propertyIsEnumerable,we=pr.splice,Se=Object.getOwnPropertySymbols,lt=Be?Be.isBuffer:void 0,xt=tr(Object.keys,Object),_t=Cn(fe,"DataView"),ut=Cn(fe,"Map"),Yt=Cn(fe,"Promise"),vr=Cn(fe,"Set"),gr=Cn(fe,"WeakMap"),Ge=Cn(Object,"create"),nt=Qn(_t),gt=Qn(ut),Nt=Qn(Yt),jr=Qn(vr),Hr=Qn(gr),oo=tt?tt.prototype:void 0,eo=oo?oo.valueOf:void 0;function mr(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function Ht(){this.__data__=Ge?Ge(null):{}}function Or(rt){return this.has(rt)&&delete this.__data__[rt]}function ro(rt){var ir=this.__data__;if(Ge){var Fr=ir[rt];return Fr===Wn?void 0:Fr}return Xe.call(ir,rt)?ir[rt]:void 0}function yr(rt){var ir=this.__data__;return Ge?ir[rt]!==void 0:Xe.call(ir,rt)}function no(rt,ir){var Fr=this.__data__;return Fr[rt]=Ge&&ir===void 0?Wn:ir,this}mr.prototype.clear=Ht,mr.prototype.delete=Or,mr.prototype.get=ro,mr.prototype.has=yr,mr.prototype.set=no;function ho(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function Oo(){this.__data__=[]}function Wo(rt){var ir=this.__data__,Fr=$t(ir,rt);if(Fr<0)return!1;var mo=ir.length-1;return Fr==mo?ir.pop():we.call(ir,Fr,1),!0}function wa(rt){var ir=this.__data__,Fr=$t(ir,rt);return Fr<0?void 0:ir[Fr][1]}function Na(rt){return $t(this.__data__,rt)>-1}function hn(rt,ir){var Fr=this.__data__,mo=$t(Fr,rt);return mo<0?Fr.push([rt,ir]):Fr[mo][1]=ir,this}ho.prototype.clear=Oo,ho.prototype.delete=Wo,ho.prototype.get=wa,ho.prototype.has=Na,ho.prototype.set=hn;function Ca(rt){var ir=-1,Fr=rt?rt.length:0;for(this.clear();++ir<Fr;){var mo=rt[ir];this.set(mo[0],mo[1])}}function ea(){this.__data__={hash:new mr,map:new(ut||ho),string:new mr}}function Va(rt){return Yn(this,rt).delete(rt)}function ka(rt){return Yn(this,rt).get(rt)}function Po(rt){return Yn(this,rt).has(rt)}function Oa(rt,ir){return Yn(this,rt).set(rt,ir),this}Ca.prototype.clear=ea,Ca.prototype.delete=Va,Ca.prototype.get=ka,Ca.prototype.has=Po,Ca.prototype.set=Oa;function lo(rt){this.__data__=new ho(rt)}function xo(){this.__data__=new ho}function Xa(rt){return this.__data__.delete(rt)}function La(rt){return this.__data__.get(rt)}function Fo(rt){return this.__data__.has(rt)}function yt(rt,ir){var Fr=this.__data__;if(Fr instanceof ho){var mo=Fr.__data__;if(!ut||mo.length<Qo-1)return mo.push([rt,ir]),this;Fr=this.__data__=new Ca(mo)}return Fr.set(rt,ir),this}lo.prototype.clear=xo,lo.prototype.delete=Xa,lo.prototype.get=La,lo.prototype.has=Fo,lo.prototype.set=yt;function Ye(rt,ir){var Fr=as(rt)||Yi(rt)?ct(rt.length,String):[],mo=Fr.length,en=!!mo;for(var Rn in rt)Xe.call(rt,Rn)&&!(en&&(Rn=="length"||Ds(Rn,mo)))&&Fr.push(Rn);return Fr}function mt(rt,ir,Fr){var mo=rt[ir];(!(Xe.call(rt,ir)&&os(mo,Fr))||Fr===void 0&&!(ir in rt))&&(rt[ir]=Fr)}function $t(rt,ir){for(var Fr=rt.length;Fr--;)if(os(rt[Fr][0],ir))return Fr;return-1}function Er(rt,ir){return rt&&Sa(ir,Mi(ir),rt)}function Dr(rt,ir,Fr,mo,en,Rn,ai){var Un;if(mo&&(Un=Rn?mo(rt,en,Rn,ai):mo(rt)),Un!==void 0)return Un;if(!oi(rt))return rt;var ys=as(rt);if(ys){if(Un=Gi(rt),!ir)return vo(rt,Un)}else{var Dn=Ua(rt),ns=Dn==A||Dn==k;if(Pi(rt))return Ro(rt,ir);if(Dn==b||Dn==O||ns&&!Rn){if(Pt(rt))return Rn?rt:{};if(Un=fn(ns?{}:rt),!ir)return un(rt,Er(Un,rt))}else{if(!ae[Dn])return Rn?rt:{};Un=ma(rt,Dn,Dr,ir)}}ai||(ai=new lo);var ws=ai.get(rt);if(ws)return ws;if(ai.set(rt,Un),!ys)var Ei=Fr?jn(rt):Mi(rt);return et(Ei||rt,function(Ia,Qi){Ei&&(Qi=Ia,Ia=rt[Qi]),mt(Un,Qi,Dr(Ia,ir,Fr,mo,Qi,rt,ai))}),Un}function At(rt){return oi(rt)?Lt(rt):{}}function Mt(rt,ir,Fr){var mo=ir(rt);return as(rt)?mo:Le(mo,Fr(rt))}function Br(rt){return ht.call(rt)}function zr(rt){if(!oi(rt)||sn(rt))return!1;var ir=qa(rt)||Pt(rt)?$e:te;return ir.test(Qn(rt))}function ao(rt){if(!pi(rt))return xt(rt);var ir=[];for(var Fr in Object(rt))Xe.call(rt,Fr)&&Fr!="constructor"&&ir.push(Fr);return ir}function Ro(rt,ir){if(ir)return rt.slice();var Fr=new rt.constructor(rt.length);return rt.copy(Fr),Fr}function ra(rt){var ir=new rt.constructor(rt.byteLength);return new It(ir).set(new It(rt)),ir}function ua(rt,ir){var Fr=ir?ra(rt.buffer):rt.buffer;return new rt.constructor(Fr,rt.byteOffset,rt.byteLength)}function Ya(rt,ir,Fr){var mo=ir?Fr(Gt(rt),!0):Gt(rt);return Te(mo,Me,new rt.constructor)}function nn(rt){var ir=new rt.constructor(rt.source,se.exec(rt));return ir.lastIndex=rt.lastIndex,ir}function Wa(rt,ir,Fr){var mo=ir?Fr(Ft(rt),!0):Ft(rt);return Te(mo,Ze,new rt.constructor)}function ha(rt){return eo?Object(eo.call(rt)):{}}function Ja(rt,ir){var Fr=ir?ra(rt.buffer):rt.buffer;return new rt.constructor(Fr,rt.byteOffset,rt.length)}function vo(rt,ir){var Fr=-1,mo=rt.length;for(ir||(ir=Array(mo));++Fr<mo;)ir[Fr]=rt[Fr];return ir}function Sa(rt,ir,Fr,mo){Fr||(Fr={});for(var en=-1,Rn=ir.length;++en<Rn;){var ai=ir[en],Un=void 0;mt(Fr,ai,Un===void 0?rt[ai]:Un)}return Fr}function un(rt,ir){return Sa(rt,Pa(rt),ir)}function jn(rt){return Mt(rt,Mi,Pa)}function Yn(rt,ir){var Fr=rt.__data__;return hs(ir)?Fr[typeof ir=="string"?"string":"hash"]:Fr.map}function Cn(rt,ir){var Fr=dt(rt,ir);return zr(Fr)?Fr:void 0}var Pa=Se?tr(Se,Object):xa,Ua=Br;(_t&&Ua(new _t(new ArrayBuffer(1)))!=v||ut&&Ua(new ut)!=I||Yt&&Ua(Yt.resolve())!=a||vr&&Ua(new vr)!=p||gr&&Ua(new gr)!=x)&&(Ua=function(rt){var ir=ht.call(rt),Fr=ir==b?rt.constructor:void 0,mo=Fr?Qn(Fr):void 0;if(mo)switch(mo){case nt:return v;case gt:return I;case Nt:return a;case jr:return p;case Hr:return x}return ir});function Gi(rt){var ir=rt.length,Fr=rt.constructor(ir);return ir&&typeof rt[0]=="string"&&Xe.call(rt,"index")&&(Fr.index=rt.index,Fr.input=rt.input),Fr}function fn(rt){return typeof rt.constructor=="function"&&!pi(rt)?At(zt(rt)):{}}function ma(rt,ir,Fr,mo){var en=rt.constructor;switch(ir){case _:return ra(rt);case n:case m:return new en(+rt);case v:return ua(rt,mo);case j:case z:case R:case U:case q:case K:case $:case H:case J:return Ja(rt,mo);case I:return Ya(rt,mo,Fr);case T:case i:return new en(rt);case u:return nn(rt);case p:return Wa(rt,mo,Fr);case g:return ha(rt)}}function Ds(rt,ir){return ir=ir??Jt,!!ir&&(typeof rt=="number"||he.test(rt))&&rt>-1&&rt%1==0&&rt<ir}function hs(rt){var ir=typeof rt;return ir=="string"||ir=="number"||ir=="symbol"||ir=="boolean"?rt!=="__proto__":rt===null}function sn(rt){return!!Zt&&Zt in rt}function pi(rt){var ir=rt&&rt.constructor,Fr=typeof ir=="function"&&ir.prototype||ur;return rt===Fr}function Qn(rt){if(rt!=null){try{return Bt.call(rt)}catch{}try{return rt+""}catch{}}return""}function vs(rt){return Dr(rt,!0,!0)}function os(rt,ir){return rt===ir||rt!==rt&&ir!==ir}function Yi(rt){return Ka(rt)&&Xe.call(rt,"callee")&&(!Q.call(rt,"callee")||ht.call(rt)==O)}var as=Array.isArray;function di(rt){return rt!=null&&kl(rt.length)&&!qa(rt)}function Ka(rt){return Ii(rt)&&di(rt)}var Pi=lt||Zn;function qa(rt){var ir=oi(rt)?ht.call(rt):"";return ir==A||ir==k}function kl(rt){return typeof rt=="number"&&rt>-1&&rt%1==0&&rt<=Jt}function oi(rt){var ir=typeof rt;return!!rt&&(ir=="object"||ir=="function")}function Ii(rt){return!!rt&&typeof rt=="object"}function Mi(rt){return di(rt)?Ye(rt):ao(rt)}function xa(){return[]}function Zn(){return!1}Pr.exports=vs}(am,am.exports);var j8=am.exports;const Nv=O8(j8),Od="default",C8="#3a3f51",P8="#afb7c5",Gx="20px",I8=["aria-controls","aria-expanded","aria-label"],T8={"aria-hidden":"true",class:"icon-wrapper"},z8={"aria-hidden":"true",class:"label truncated"},N8=["title"],Yx=Vg(Qt.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(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>Vo.isCollapsed?Qo.t("specOperationsList.section.expandAriaLabel",{section:`"${Vo.name}"`}):Qo.t("specOperationsList.section.collapseAriaLabel",{section:`"${Vo.name}"`}));return(Jt,O)=>(Qt.openBlock(),Qt.createElementBlock("button",{"aria-controls":Pr.contentElementId,"aria-expanded":Pr.isCollapsed?"false":"true","aria-label":Wn.value,class:Qt.normalizeClass(["header",{"header--collapsed":Pr.isCollapsed}]),type:"button",onClick:O[0]||(O[0]=C=>Jt.$emit("toggle"))},[Qt.createElementVNode("div",T8,[Pr.isCollapsed?(Qt.openBlock(),Qt.createBlock(Qt.unref(Ad.ChevronRightIcon),{key:0,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-collapsed, ${Qt.unref(P8)})`,size:Qt.unref(Gx)},null,8,["color","size"])):(Qt.openBlock(),Qt.createBlock(Qt.unref(Ad.ChevronDownIcon),{key:1,color:`var(--kong-ui-spec-renderer-operations-list-section-icon-color-expanded, ${Qt.unref(C8)})`,size:Qt.unref(Gx)},null,8,["color","size"]))]),Qt.createElementVNode("h1",z8,Qt.toDisplayString(Pr.name),1),Qt.createElementVNode("div",{class:"description truncated",title:Pr.description},Qt.toDisplayString(Pr.description),9,N8)],10,I8))}}),[["__scopeId","data-v-3f1b0d9c"]]),R8=["data-testid"],D8=["title"],B8={class:"details"},M8=["aria-label","title"],Qx=Vg(Qt.defineComponent({__name:"OperationsListItem",props:{item:{type:Object,required:!0,validator:Pr=>Pr.method!==void 0&&Pr.summary!==void 0&&Pr.path!==void 0},isSelected:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1}},emits:["click"],setup(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>{var O,C;return`spec-operations-list-item-${(O=Vo.item.method)==null?void 0:O.toLowerCase()}${(C=Vo.item.path)==null?void 0:C.replaceAll("/","-")}-${Vo.item.tag||"-"}`}),Jt=Qt.computed(()=>Vo.item.method||"");return(O,C)=>{const n=Qt.resolveComponent("KBadge");return Qt.openBlock(),Qt.createElementBlock("button",{class:Qt.normalizeClass(["spec-operations-list-item",{"item--selected":Pr.isSelected,[`item--method-${Pr.item.method}`]:!0,disabled:Pr.disableSelection}]),"data-testid":Wn.value,type:"button",onClick:C[0]||(C[0]=m=>O.$emit("click",Pr.item))},[Pr.item.summary?(Qt.openBlock(),Qt.createElementBlock("h2",{key:0,class:"summary truncated",title:Pr.item.summary},Qt.toDisplayString(Pr.item.summary),9,D8)):Qt.createCommentVNode("",!0),Qt.createElementVNode("div",B8,[Qt.createVNode(n,{appearance:Jt.value,"aria-label":Qt.unref(Qo).t("specOperationsList.item.methodAriaLabel",{method:Jt.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:Qt.withCtx(()=>[Qt.createTextVNode(Qt.toDisplayString(Jt.value.toUpperCase()),1)]),_:1},8,["appearance","aria-label"]),Qt.createElementVNode("span",{"aria-label":Qt.unref(Qo).t("specOperationsList.item.pathAriaLabel",{path:Pr.item.path}),class:"path truncated",title:Pr.item.path},Qt.toDisplayString(Pr.item.path),9,M8)])],10,R8)}}}),[["__scopeId","data-v-5aa4cc51"]]),L8=["aria-label"],$8={key:0},F8={key:0,class:"filter-wrapper"},U8={key:1},K8=["data-testid"],q8=["id"],H8={key:0,class:"section","data-testid":"spec-operations-list-untagged-items"},V8=["id"],W8={key:2,"data-testid":"kong-ui-public-spec-operations-list-empty"},J8={class:"center"},G8={key:1,"data-testid":"kong-ui-public-spec-operations-list-error"},{getSizeFromString:Y8,hasRequiredProps:Zx}=wp.useUtilities(),Xx=Vg(Qt.defineComponent({__name:"SpecOperationsList",props:{operations:{type:Array,required:!0,validator:Pr=>!Pr.length||Zx(Pr,["method","path"])},tags:{type:Array,default:()=>[],validator:Pr=>!Pr.length||Zx(Pr,["name"])},isFilterable:{type:Boolean,default:!0},filterFunction:{type:Function,default:({items:Pr,query:Vo})=>(Vo=Vo.toLowerCase(),Pr.filter(Qo=>Qo.tag&&String(Qo.tag).toLowerCase().includes(Vo))),validator:Pr=>!!Pr&&typeof Pr=="function"},deselect:{type:Boolean,default:!1},disableSelection:{type:Boolean,default:!1},width:{type:String,default:"210"}},emits:["selected"],setup(Pr,{emit:Vo}){const Qo=Pr,Wn=Vo,{i18n:Jt}=wp.useI18n(),O=Qt.computed(()=>S8()),C=Qt.ref(""),n=Qt.ref([]),m=Qt.ref(),w=Qt.ref([]),A=()=>{const x=n.value;if(!Qo.isFilterable){w.value=x;return}if(!Qo.filterFunction||typeof Qo.filterFunction!="function")throw new Error(`filterFunction property must be a function, got ${typeof Qo.filterFunction}`);w.value=Qo.filterFunction({items:x,query:C.value})},k=Qt.computed(()=>Y8(Qo.width)),I=Qt.computed(()=>{const x=[];return w.value.forEach(_=>{_.tag&&!x.includes(_.tag)&&x.push(String(_.tag))}),x}),T=Qt.computed(()=>n.value.filter(x=>!x.tag)),b=x=>{if(!Qo.tags||!Array.isArray(Qo.tags))return"";const _=Qo.tags.find(v=>v.name===x);return(_==null?void 0:_.description)||""},a=x=>w.value.filter(_=>_.tag===x),u=x=>{const _=m.value;return!!_&&_.path===x.path&&_.method===x.method&&_.operationId===x.operationId&&_.tag===x.tag},p=x=>`${O.value}-section-${x.toLowerCase()}`,i=x=>{Qo.disableSelection||(m.value=x,Wn("selected",x))},g=()=>{n.value=[],Qo.operations&&(Qo.operations.forEach(x=>{var v;const _=Nv(x);(v=x.tags)!=null&&v.length?x.tags.forEach(j=>{delete _.tags,_.tag=j,n.value.push(Nv(_))}):(delete _.tags,_.tag=null,n.value.push(Nv(_)))}),A())};return Qt.watch(()=>Qo.deselect,()=>{Qo.deselect&&(m.value=void 0)}),Qt.watch(()=>Qo.operations,()=>g()),Qt.watch(C,()=>A()),Qt.onMounted(()=>{g()}),(x,_)=>{const v=Qt.resolveComponent("KInput"),j=Qt.resolveComponent("KCollapse");return Qt.openBlock(),Qt.createElementBlock("section",{"aria-label":Qt.unref(Jt).t("specOperationsList.ariaLabel"),class:"kong-ui-public-spec-operations-list","data-testid":"kong-ui-public-spec-operations-list",role:"navigation",style:Qt.normalizeStyle({width:k.value})},[Pr.operations?(Qt.openBlock(),Qt.createElementBlock("div",$8,[Pr.isFilterable?(Qt.openBlock(),Qt.createElementBlock("div",F8,[Qt.createVNode(v,{modelValue:C.value,"onUpdate:modelValue":_[0]||(_[0]=z=>C.value=z),class:"filter-input","data-testid":"spec-operations-list-filter",placeholder:Qt.unref(Jt).t("specOperationsList.filterPlaceholder")},{before:Qt.withCtx(()=>[Qt.createVNode(Qt.unref(Ad.FilterIcon),{decorative:""})]),_:1},8,["modelValue","placeholder"])])):Qt.createCommentVNode("",!0),w.value.length?(Qt.openBlock(),Qt.createElementBlock("div",U8,[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(I.value,z=>(Qt.openBlock(),Qt.createElementBlock("div",{key:z,class:"section-wrapper","data-testid":`spec-operations-list-section-${z.toLowerCase().replaceAll(" ","-")}`},[Qt.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:Qt.withCtx(({isCollapsed:R,toggle:U})=>[Qt.createVNode(Yx,{"content-element-id":p(z),"data-testid":`spec-operations-list-section-${z.toLowerCase().replaceAll(" ","-")}-collapse-trigger`,description:b(z),"is-collapsed":R,name:z,onToggle:U},null,8,["content-element-id","data-testid","description","is-collapsed","name","onToggle"])]),default:Qt.withCtx(()=>[Qt.createElementVNode("div",{id:p(z)},[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(a(z),R=>Qt.renderSlot(x.$slots,"item",{key:`${R.path}-${R.method}`,item:R,section:z,select:()=>i(R)},()=>[Qt.createVNode(Qx,{"disable-selection":Pr.disableSelection,"is-selected":u(R),item:R,section:z,onClick:i},null,8,["disable-selection","is-selected","item","section"])],!0)),128))],8,q8)]),_:2},1024)],8,K8))),128)),(!Pr.isFilterable||!C.value)&&T.value.length?(Qt.openBlock(),Qt.createElementBlock("div",H8,[Qt.createVNode(j,{"model-value":!1,"trigger-alignment":"leading"},{trigger:Qt.withCtx(({isCollapsed:z,toggle:R})=>[Qt.createVNode(Yx,{"content-element-id":p(Qt.unref(Od)),"data-testid":"spec-operations-list-section-untagged-collapse-trigger",description:b(Qt.unref(Od)),"is-collapsed":z,name:Qt.unref(Od),onToggle:R},null,8,["content-element-id","description","is-collapsed","name","onToggle"])]),default:Qt.withCtx(()=>[Qt.createElementVNode("div",{id:p(Qt.unref(Od))},[(Qt.openBlock(!0),Qt.createElementBlock(Qt.Fragment,null,Qt.renderList(T.value,z=>Qt.renderSlot(x.$slots,"untagged-item",{key:`${z.path}-${z.method}`,item:z,section:Qt.unref(Od),select:()=>i(z)},()=>[Qt.createVNode(Qx,{"disable-selection":Pr.disableSelection,"is-selected":u(z),item:z,onClick:i},null,8,["disable-selection","is-selected","item"])],!0)),128))],8,V8)]),_:3})])):Qt.createCommentVNode("",!0)])):(Qt.openBlock(),Qt.createElementBlock("div",W8,[Qt.renderSlot(x.$slots,"empty-state",{},()=>[Qt.createElementVNode("div",J8,Qt.toDisplayString(Qt.unref(Jt).t("specOperationsList.noResults")),1)],!0)]))])):(Qt.openBlock(),Qt.createElementBlock("div",G8,[Qt.renderSlot(x.$slots,"error-state",{},()=>[Qt.createTextVNode(Qt.toDisplayString(Qt.unref(Jt).t("specOperationsList.error")),1)],!0)]))],12,L8)}}}),[["__scopeId","data-v-414f8e91"]]),Q8={class:"kong-ui-public-spec-renderer"},Z8={key:0,class:"spec-container"},X8={class:"spec-renderer-ops-list-empty-state","data-testid":"spec-renderer-ops-list-empty-state"},eE={key:1,"data-testid":"kong-ui-public-spec-renderer-error"},{hasRequiredProps:e1}=wp.useUtilities(),tE=Vg(Qt.defineComponent({__name:"SpecRenderer",props:{spec:{type:Object,required:!0},essentialsOnly:{type:Boolean,default:!1},operationsList:{type:Array,required:!0,validator:Pr=>!Pr.length||e1(Pr,["method","path"])},tags:{type:Array,default:()=>[],validator:Pr=>!Pr.length||e1(Pr,["name"])},navWidth:{type:String,default:"310"},deselect:{type:Boolean,default:!1}},setup(Pr){const Vo=Pr,{i18n:Qo}=wp.useI18n(),Wn=Qt.computed(()=>!!(Vo.spec&&Vo.operationsList)),Jt=Qt.ref(),O=C=>{Jt.value=C};return(C,n)=>{const m=Qt.resolveComponent("KEmptyState");return Qt.openBlock(),Qt.createElementBlock("div",Q8,[Wn.value?(Qt.openBlock(),Qt.createElementBlock("div",Z8,[Qt.createVNode(Xx,{"data-testid":"spec-renderer-ops-list-content",deselect:Pr.deselect,operations:Pr.operationsList,tags:Pr.tags,width:Pr.navWidth,onSelected:O},{"empty-state":Qt.withCtx(()=>[Qt.createElementVNode("div",X8,[Qt.renderSlot(C.$slots,"ops-list-empty-state",{},void 0,!0)])]),_:3},8,["deselect","operations","tags","width"]),Qt.createVNode(Jx,{"active-operation":Jt.value,class:"spec-renderer-details","data-testid":"spec-renderer-details-content",document:Pr.spec,"essentials-only":Pr.essentialsOnly,"has-sidebar":!1},null,8,["active-operation","document","essentials-only"])])):(Qt.openBlock(),Qt.createElementBlock("div",eE,[Qt.renderSlot(C.$slots,"error-state",{},()=>[Qt.createVNode(m,{"action-button-visible":!1,"icon-variant":"error"},{title:Qt.withCtx(()=>[Qt.createTextVNode(Qt.toDisplayString(Qt.unref(Qo).t("specRenderer.error")),1)]),_:1})],!0)]))])}}}),[["__scopeId","data-v-4cfc670e"]]);cn.DEFAULT_UNTAGGED_SECTION_NAME=Od,cn.SpecDetails=Jx,cn.SpecOperationsList=Xx,cn.SpecRenderer=tE,Object.defineProperty(cn,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .kong-public-ui-spec-details[data-v-5244b202]{color:#000933;color:var(--kui-color-text, #000933);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);font-size:16px;font-size:var(--kui-font-size-40, 16px)}main{--kui-operation-summary-path-display: block;--kui-operation-summary-path-overflow: hidden;--kui-operation-summary-path-text-overflow: ellipsis;--kui-operation-summary-path-white-space: nowrap;--kui-operation-summary-path-word-wrap: normal;--kui-operation-summary-path-max-width: 30ch}@media screen and (min-width: 768px){main{--kui-operation-summary-path-max-width: 40ch}}@media screen and (min-width: 1536px){main{--kui-operation-summary-path-max-width: 100ch}}.header[data-v-db90d33c]{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;background:var(--kong-ui-spec-renderer-operations-list-section-background, transparent);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-disabled, #e0e4ea);border-top-left-radius:4px;border-top-left-radius:var(--kui-border-radius-20, 4px);border-top-right-radius:4px;border-top-right-radius:var(--kui-border-radius-20, 4px);color:currentColor;cursor:pointer;display:flex;padding:8px;padding:var(--kui-space-40, 8px);width:100%}.header--collapsed[data-v-db90d33c]{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px)}.label[data-v-db90d33c]{color:currentColor;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color, currentColor);font-family:inherit;font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0 8px 0 0;margin:var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-0, 0px)}.label[data-v-db90d33c]:first-letter{text-transform:capitalize}.header--collapsed .label[data-v-db90d33c]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51)}.description[data-v-db90d33c]{font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-section-description-font-family, var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace));line-height:1;margin-left:auto;margin-left:var(--kui-space-auto, auto);max-width:65%}.icon-wrapper[data-v-db90d33c]{height:18px;margin-right:8px;margin-right:var(--kui-space-40, 8px)}.truncated[data-v-db90d33c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spec-operations-list-item[data-v-becd496e]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);cursor:pointer;display:block;padding:8px;padding:var(--kui-space-40, 8px);position:relative;text-align:left;width:100%}.spec-operations-list-item.disabled[data-v-becd496e]{cursor:default}.spec-operations-list-item[data-v-becd496e]:hover{background:#f9fafb;background:var(--kui-color-background-neutral-weakest, #f9fafb)}.spec-operations-list-item:hover .summary[data-v-becd496e],.spec-operations-list-item:hover .path[data-v-becd496e]{color:#000933;color:var(--kui-color-text, #000933)}.spec-operations-list-item[data-v-becd496e]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kui-border-radius-20, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kui-border-radius-20, 4px)}.item--selected[data-v-becd496e]{background:#eefaff;background:var(--kui-color-background-primary-weakest, #eefaff)}.item--selected[data-v-becd496e]:before{background:#0044f4;background:var(--kui-color-background-primary, #0044f4);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px;width:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-width, 4px)}.item--selected .summary[data-v-becd496e],.item--selected .path[data-v-becd496e]{color:#0b172d;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-selected, #0B172D)}.item--method-get[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-get, $kui-method-color-text-get);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-get, $kui-method-color-background-get)}.item--method-post[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-post, $kui-method-color-text-post);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-post, $kui-method-color-background-post)}.item--method-put[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-put, $kui-method-color-text-put);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-put, $kui-method-color-background-put)}.item--method-patch[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-patch, $kui-method-color-text-patch);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-patch, $kui-method-color-background-patch)}.item--method-delete[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-delete, $kui-method-color-text-delete);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-delete, $kui-method-color-background-delete)}.item--method-options[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-options, $kui-method-color-text-options);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-options, $kui-method-color-background-options)}.item--method-head[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-head, $kui-method-color-text-head);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-head, $kui-method-color-background-head)}.item--method-connect[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-connect, $kui-method-color-text-connect);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-connect, $kui-method-color-background-connect)}.item--method-trace[data-v-becd496e]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kui-method-color-text-trace, $kui-method-color-text-trace);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kui-method-color-background-trace, $kui-method-color-background-trace)}.summary[data-v-becd496e]{color:#000933;color:var(--kui-color-text, #000933);font-family:inherit;font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);margin:0 0 4px;margin:var(--kui-space-0, 0px) var(--kui-space-0, 0px) var(--kui-space-20, 4px)}.details[data-v-becd496e]{display:flex}.truncated[data-v-becd496e]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method-badge[data-v-becd496e]{font-size:12px;font-size:var(--kui-font-size-20, 12px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.path[data-v-becd496e]{align-self:center;color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-item-path-font-family, var(--kui-font-family-code, "JetBrains Mono", Consolas, monospace));font-size:12px;font-size:var(--kui-font-size-20, 12px)}.kong-ui-public-spec-operations-list[data-v-0776f5ad]{color:#000933;color:var(--kong-ui-kong-spec-renderer-operations-list-text-color, var(--kui-color-text, #000933));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-spec-renderer-operations-list-font-family, var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif));font-size:16px;font-size:var(--kong-ui-spec-renderer-operations-list-font-size, var(--kui-font-size-40, 16px))}.kong-ui-public-spec-operations-list .filter-wrapper[data-v-0776f5ad]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);position:relative}.kong-ui-public-spec-operations-list .filter-input[data-v-0776f5ad]{width:100%}.kong-ui-public-spec-operations-list .filter-input[data-v-0776f5ad] .input{padding-left:32px;padding-left:var(--kui-space-90, 32px)}.kong-ui-public-spec-operations-list .section-wrapper[data-v-0776f5ad]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-spec-operations-list .section-wrapper[data-v-0776f5ad]:last-of-type{margin-bottom:0}.kong-ui-public-spec-operations-list .center[data-v-0776f5ad]{text-align:center}.kong-ui-public-spec-operations-list[data-v-0776f5ad] .k-collapse .k-collapse-heading{margin:0!important;margin:var(--kui-space-0, 0px)!important}.kong-ui-public-spec-renderer .spec-container[data-v-4cfc670e]{display:flex}.kong-ui-public-spec-renderer .spec-renderer-details[data-v-4cfc670e]{position:relative;width:100%}
1
+ .kong-public-ui-spec-details[data-v-a1538e9b]{color:#000933;color:var(--kong-ui-portal-spec-details-text-color, #000933);font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-portal-spec-details-font-family-default, "Inter", Roboto, Helvetica, sans-serif);font-size:16px;font-size:var(--kong-ui-portal-spec-details-font-size, 16px)}main{--kui-operation-summary-path-display: block;--kui-operation-summary-path-overflow: hidden;--kui-operation-summary-path-text-overflow: ellipsis;--kui-operation-summary-path-white-space: nowrap;--kui-operation-summary-path-word-wrap: normal;--kui-operation-summary-path-max-width: 30ch}@media screen and (min-width: 768px){main{--kui-operation-summary-path-max-width: 40ch}}@media screen and (min-width: 1536px){main{--kui-operation-summary-path-max-width: 100ch}}.header[data-v-3f1b0d9c]{align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;background:var(--kong-ui-spec-renderer-operations-list-section-background, transparent);border:1px solid #e0e4ea;border:1px solid var(--kong-ui-spec-renderer-operations-list-section-border-color, #e0e4ea);border-top-left-radius:4px;border-top-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-top-right-radius:4px;border-top-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);color:currentColor;cursor:pointer;display:flex;padding:8px;padding:var(--kong-ui-spec-renderer-operations-list-section-padding, 8px);width:100%}.header--collapsed[data-v-3f1b0d9c]{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px)}.label[data-v-3f1b0d9c]{color:currentColor;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color, currentColor);font-family:inherit;font-size:16px;font-size:var(--kong-ui-spec-renderer-operations-list-section-label-font-size, 16px);font-weight:600;line-height:24px;margin:0 8px 0 0}.label[data-v-3f1b0d9c]:first-letter{text-transform:capitalize}.header--collapsed .label[data-v-3f1b0d9c]{color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-section-label-text-color-collapsed, #3a3f51)}.description[data-v-3f1b0d9c]{font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-section-description-font-family, var(--kong-ui-spec-renderer-font-monospace, "JetBrains Mono", Consolas, monospace));line-height:1;margin-left:auto;max-width:65%}.icon-wrapper[data-v-3f1b0d9c]{height:18px;margin-right:8px}.truncated[data-v-3f1b0d9c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.spec-operations-list-item[data-v-5aa4cc51]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:1px solid #e0e4ea;border:1px solid var(--kong-ui-spec-renderer-operations-list-item-border-color, #e0e4ea);cursor:pointer;display:block;padding:8px 16px;padding:var(--kong-ui-spec-renderer-operations-list-item-padding, 8px 16px);position:relative;text-align:left;width:100%}.spec-operations-list-item.disabled[data-v-5aa4cc51]{cursor:default}.spec-operations-list-item[data-v-5aa4cc51]:hover{background:#f9fafb;background:var(--kong-ui-spec-renderer-operations-list-item-background-hover, #f9fafb)}.spec-operations-list-item:hover .summary[data-v-5aa4cc51],.spec-operations-list-item:hover .path[data-v-5aa4cc51]{color:#000933;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-hover, #000933)}.spec-operations-list-item[data-v-5aa4cc51]:last-of-type{border-bottom-left-radius:4px;border-bottom-left-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--kong-ui-spec-renderer-operations-list-section-border-radius, 4px)}.item--selected[data-v-5aa4cc51]{background:#eefaff;background:var(--kong-ui-spec-renderer-operations-list-item-background-selected, #eefaff)}.item--selected[data-v-5aa4cc51]:before{background:#0044f4;background:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-background, #0044f4);bottom:0;content:"";display:block;left:0;position:absolute;top:0;width:4px;width:var(--kong-ui-spec-renderer-operations-list-item-selected-bar-width, 4px)}.item--selected .summary[data-v-5aa4cc51],.item--selected .path[data-v-5aa4cc51]{color:#0b172d;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color-selected, #0B172D)}.item--method-get[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-get, #0044f4);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-get, #eefaff)}.item--method-post[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-post, #007d60);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-post, #ecfffb)}.item--method-put[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-put, #995c00);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-put, #fffce0)}.item--method-patch[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-patch, #00819d);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-patch, #ecfcff)}.item--method-delete[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-delete, #d60027);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-delete, #ffe5e5)}.item--method-options[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-options, #52596e);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-options, #e0e4ea)}.item--method-head[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-head, #e0e4ea);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-head, #52596e)}.item--method-connect[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-connect, #6f28ff);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-connect, #f1f0ff)}.item--method-trace[data-v-5aa4cc51]{--kong-ui-spec-renderer-operations-list-item-method-color: var(--kong-ui-spec-renderer-method-color-trace, #d60067);--kong-ui-spec-renderer-operations-list-item-method-background: var(--kong-ui-spec-renderer-method-background-trace, #fff0f7)}.summary[data-v-5aa4cc51]{color:#000933;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, #000933);font-family:inherit;font-size:12px;font-weight:700;margin:0 0 4px}.details[data-v-5aa4cc51]{display:flex}.truncated[data-v-5aa4cc51]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.method-badge[data-v-5aa4cc51]{font-size:12px;margin-right:8px}.path[data-v-5aa4cc51]{align-self:center;color:#3a3f51;color:var(--kong-ui-spec-renderer-operations-list-item-summary-text-color, #3a3f51);font-family:JetBrains Mono,Consolas,monospace;font-family:var(--kong-ui-spec-renderer-operations-list-item-path-font-family, var(--kong-ui-spec-renderer-font-family-monospace, "JetBrains Mono", Consolas, monospace));font-size:12px}.kong-ui-public-spec-operations-list[data-v-414f8e91]{color:#000933;color:var(--kong-ui-kong-spec-renderer-operations-list-text-color, var(--kong-ui-spec-renderer-text-color, #000933));font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kong-ui-spec-renderer-operations-list-font-family, var(--kong-ui-spec-renderer-font-family, "Inter", Roboto, Helvetica, sans-serif));font-size:16px;font-size:var(--kong-ui-spec-renderer-operations-list-font-size, var(--kong-ui-spec-renderer-font-size, 16px))}.kong-ui-public-spec-operations-list .filter-wrapper[data-v-414f8e91]{margin-bottom:8px;position:relative}.kong-ui-public-spec-operations-list .filter-input[data-v-414f8e91]{width:100%}.kong-ui-public-spec-operations-list .filter-input[data-v-414f8e91] .input{padding-left:32px}.kong-ui-public-spec-operations-list .section-wrapper[data-v-414f8e91]{margin-bottom:8px}.kong-ui-public-spec-operations-list .section-wrapper[data-v-414f8e91]:last-of-type{margin-bottom:0}.kong-ui-public-spec-operations-list .center[data-v-414f8e91]{text-align:center}.kong-ui-public-spec-operations-list[data-v-414f8e91] .k-collapse .k-collapse-heading{margin:0!important}.kong-ui-public-spec-renderer .spec-container[data-v-4cfc670e]{display:flex}.kong-ui-public-spec-renderer .spec-renderer-details[data-v-4cfc670e]{position:relative;width:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/spec-renderer",
3
- "version": "2.5.19-pr.2790.95b70759b.0",
3
+ "version": "2.5.20",
4
4
  "type": "module",
5
5
  "main": "./dist/spec-renderer.umd.js",
6
6
  "module": "./dist/spec-renderer.es.js",
@@ -21,13 +21,13 @@
21
21
  "access": "public"
22
22
  },
23
23
  "peerDependencies": {
24
- "@kong/kongponents": "^9.48.8",
24
+ "@kong/kongponents": "^9.49.0",
25
25
  "vue": ">= 3.3.13 < 4",
26
26
  "@kong-ui-public/i18n": "^2.4.5"
27
27
  },
28
28
  "devDependencies": {
29
- "@kong/design-tokens": "1.18.3-pr.613.f4a145c.0",
30
- "@kong/kongponents": "9.48.8",
29
+ "@kong/design-tokens": "1.18.2",
30
+ "@kong/kongponents": "9.49.0",
31
31
  "@modyfi/vite-plugin-yaml": "^1.1.1",
32
32
  "@types/lodash.clonedeep": "^4.5.9",
33
33
  "@types/uuid": "^11.0.0",