@kong-ui-public/entities-certificates 1.3.9 → 1.3.10

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.
@@ -9547,10 +9547,10 @@ const Ue = {
9547
9547
  setup(e, { emit: t }) {
9548
9548
  const r = e;
9549
9549
  kp((k) => ({
9550
- "11ca2174": u.value ? "none" : `solid ${S(Cg)} ${S(Ag)}`,
9551
- "57a0f6a7": l.value && s.value ? "block" : "flex",
9552
- "66118e4e": l.value && s.value ? "100%" : r.slim ? "50%" : "25%",
9553
- "660d0298": l.value && s.value ? "100%" : r.slim ? "50%" : "75%"
9550
+ "77b12766": u.value ? "none" : `solid ${S(Cg)} ${S(Ag)}`,
9551
+ "500c4499": l.value && s.value ? "block" : "flex",
9552
+ "132371a7": l.value && s.value ? "100%" : r.slim ? "50%" : "25%",
9553
+ "1325b782": l.value && s.value ? "100%" : r.slim ? "50%" : "75%"
9554
9554
  }));
9555
9555
  const i = Rn(), { i18n: { t: n, formatUnixTimeStamp: o } } = Ue.useI18n(), s = M(() => r.item.value !== void 0 && r.item.value !== null && r.item.value !== ""), a = M(() => !!(r.item.tooltip || i["label-tooltip"])), l = M(() => r.item.type === me.Json || r.item.type === me.JsonArray), u = M(() => r.item.type === me.JsonArray), d = M(() => {
9556
9556
  switch (r.item.type) {
@@ -9671,7 +9671,7 @@ const Ue = {
9671
9671
  };
9672
9672
  default:
9673
9673
  return {
9674
- tag: "div",
9674
+ tag: "KTooltip",
9675
9675
  attrs: {
9676
9676
  "data-testid": `${r.item.key}-plain-text`
9677
9677
  },
@@ -9799,7 +9799,7 @@ const Ue = {
9799
9799
  ]);
9800
9800
  };
9801
9801
  }
9802
- }), Gi = /* @__PURE__ */ wt(Rg, [["__scopeId", "data-v-f68d4fa1"]]);
9802
+ }), Gi = /* @__PURE__ */ wt(Rg, [["__scopeId", "data-v-9465176b"]]);
9803
9803
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
9804
9804
  function gd(e) {
9805
9805
  return typeof e > "u" || e === null;
@@ -114,7 +114,7 @@ ${t.join(`
114
114
  `)}static pad(t=0){return"".padStart(2*t," ")}static serializeObj(t,r=0){const i=[];let o=this.pad(r++),s="";const a=t[ce.VALUE];a&&(s=` ${a}`),i.push(`${o}${t[ce.NAME]}:${s}`),o=this.pad(r);for(const c in t){if(typeof c=="symbol")continue;const l=t[c],d=c?`${c}: `:"";if(typeof l=="string"||typeof l=="number"||typeof l=="boolean")i.push(`${o}${d}${l}`);else if(l instanceof Date)i.push(`${o}${d}${l.toUTCString()}`);else if(Array.isArray(l))for(const p of l)p[ce.NAME]=c,i.push(...this.serializeObj(p,r));else if(l instanceof ce)l[ce.NAME]=c,i.push(...this.serializeObj(l,r));else if(V.isBufferSource(l))c?(i.push(`${o}${d}`),i.push(...this.serializeBufferSource(l,r+1))):i.push(...this.serializeBufferSource(l,r));else if("toTextObject"in l){const p=l.toTextObject();p[ce.NAME]=c,i.push(...this.serializeObj(p,r))}else throw new TypeError("Cannot serialize data in text format. Unsupported type.")}return i}static serializeBufferSource(t,r=0){const i=this.pad(r),o=V.toUint8Array(t),s=[];for(let a=0;a<o.length;){const c=[];for(let l=0;l<16&&a<o.length;l++){l===8&&c.push("");const d=o[a++].toString(16).padStart(2,"0");c.push(d)}s.push(`${i}${c.join(" ")}`)}return s}static serializeAlgorithm(t){return this.algorithmSerializer.toTextObject(t)}}er.oidSerializer=Tt,er.algorithmSerializer=gh;class Vt{constructor(...t){if(t.length===1){const r=t[0];this.rawData=M.serialize(r),this.onInit(r)}else{const r=M.parse(t[0],t[1]);this.rawData=V.toArrayBuffer(t[0]),this.onInit(r)}}equal(t){return t instanceof Vt?qa(t.rawData,this.rawData):!1}toString(t="text"){switch(t){case"asn":return M.toString(this.rawData);case"text":return er.serialize(this.toTextObject());case"hex":return P.ToHex(this.rawData);case"base64":return P.ToBase64(this.rawData);case"base64url":return P.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}getTextName(){return this.constructor.NAME}toTextObject(){const t=this.toTextObjectEmpty();return t[""]=this.rawData,t}toTextObjectEmpty(t){return new ce(this.getTextName(),{},t)}}Vt.NAME="ASN";class dt extends Vt{constructor(...t){let r;V.isBufferSource(t[0])?r=V.toArrayBuffer(t[0]):r=M.serialize(new it({extnID:t[0],critical:t[1],extnValue:new ie(V.toArrayBuffer(t[2]))})),super(r,it)}onInit(t){this.type=t.extnID,this.critical=t.critical,this.value=t.extnValue.buffer}toTextObject(){const t=this.toTextObjectWithoutValue();return t[""]=this.value,t}toTextObjectWithoutValue(){const t=this.toTextObjectEmpty(this.critical?"critical":void 0);return t[ce.NAME]===dt.NAME&&(t[ce.NAME]=Tt.toString(this.type)),t}}var Hu;class tr{static isCryptoKeyPair(t){return t&&t.privateKey&&t.publicKey}static isCryptoKey(t){return t&&t.usages&&t.type&&t.algorithm&&t.extractable!==void 0}constructor(){this.items=new Map,this[Hu]="CryptoProvider",typeof self<"u"&&typeof crypto<"u"&&this.set(tr.DEFAULT,crypto)}clear(){this.items.clear()}delete(t){return this.items.delete(t)}forEach(t,r){return this.items.forEach(t,r)}has(t){return this.items.has(t)}get size(){return this.items.size}entries(){return this.items.entries()}keys(){return this.items.keys()}values(){return this.items.values()}[Symbol.iterator](){return this.items[Symbol.iterator]()}get(t=tr.DEFAULT){const r=this.items.get(t.toLowerCase());if(!r)throw new Error(`Cannot get Crypto by name '${t}'`);return r}set(t,r){if(typeof t=="string"){if(!r)throw new TypeError("Argument 'value' is required");this.items.set(t.toLowerCase(),r)}else this.items.set(tr.DEFAULT,t);return this}}Hu=Symbol.toStringTag,tr.DEFAULT="default";const ze=new tr,bh=/^[0-2](?:\.[1-9][0-9]*)+$/;function wh(e){return new RegExp(bh).test(e)}class Fu{constructor(t={}){this.items={};for(const r in t)this.register(r,t[r])}get(t){return this.items[t]||null}findId(t){return wh(t)?t:this.get(t)}register(t,r){this.items[t]=r,this.items[r]=t}}const He=new Fu;He.register("CN","2.5.4.3"),He.register("L","2.5.4.7"),He.register("ST","2.5.4.8"),He.register("O","2.5.4.10"),He.register("OU","2.5.4.11"),He.register("C","2.5.4.6"),He.register("DC","0.9.2342.19200300.100.1.25"),He.register("E","1.2.840.113549.1.9.1"),He.register("G","2.5.4.42"),He.register("I","2.5.4.43"),He.register("SN","2.5.4.4"),He.register("T","2.5.4.12");function vh(e,t){return`\\${P.ToHex(P.FromUtf8String(t)).toUpperCase()}`}function kh(e){return e.replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,vh)}class jt{static isASCII(t){for(let r=0;r<t.length;r++)if(t.charCodeAt(r)>255)return!1;return!0}constructor(t,r={}){this.extraNames=new Fu,this.asn=new ke;for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)){const o=r[i];this.extraNames.register(i,o)}typeof t=="string"?this.asn=this.fromString(t):t instanceof ke?this.asn=t:V.isBufferSource(t)?this.asn=M.parse(t,ke):this.asn=this.fromJSON(t)}getField(t){const r=this.extraNames.findId(t)||He.findId(t),i=[];for(const o of this.asn)for(const s of o)s.type===r&&i.push(s.value.toString());return i}getName(t){return this.extraNames.get(t)||He.get(t)}toString(){return this.asn.map(t=>t.map(r=>{const i=this.getName(r.type)||r.type,o=r.value.anyValue?`#${P.ToHex(r.value.anyValue)}`:kh(r.value.toString());return`${i}=${o}`}).join("+")).join(", ")}toJSON(){var t;const r=[];for(const i of this.asn){const o={};for(const s of i){const a=this.getName(s.type)||s.type;(t=o[a])!==null&&t!==void 0||(o[a]=[]),o[a].push(s.value.anyValue?`#${P.ToHex(s.value.anyValue)}`:s.value.toString())}r.push(o)}return r}fromString(t){const r=new ke,i=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let o=null,s=",";for(;o=i.exec(`${t},`);){let[,a,c]=o;const l=c[c.length-1];(l===","||l==="+")&&(c=c.slice(0,c.length-1),o[3]=l);const d=o[3];if(/[\d.]+/.test(a)||(a=this.getName(a)||""),!a)throw new Error(`Cannot get OID for name type '${a}'`);const p=new Gr({type:a});if(c.charAt(0)==="#")p.value.anyValue=P.FromHex(c.slice(1));else{const y=/"(.*?[^\\])?"/.exec(c);y&&(c=y[1]),c=c.replace(/\\0a/ig,`
115
115
  `).replace(/\\0d/ig,"\r").replace(/\\0g/ig," ").replace(/\\(.)/g,"$1"),a===this.getName("E")||a===this.getName("DC")?p.value.ia5String=c:jt.isASCII(c)?p.value.printableString=c:p.value.utf8String=c}s==="+"?r[r.length-1].push(p):r.push(new fr([p])),s=d}return r}fromJSON(t){const r=new ke;for(const i of t){const o=new fr;for(const s in i){let a=s;if(/[\d.]+/.test(s)||(a=this.getName(s)||""),!a)throw new Error(`Cannot get OID for name type '${s}'`);const c=i[s];for(const l of c){const d=new Gr({type:a});if(typeof l=="object")for(const p in l)switch(p){case"ia5String":d.value.ia5String=l[p];break;case"utf8String":d.value.utf8String=l[p];break;case"universalString":d.value.universalString=l[p];break;case"bmpString":d.value.bmpString=l[p];break;case"printableString":d.value.printableString=l[p];break}else l[0]==="#"?d.value.anyValue=P.FromHex(l.slice(1)):a===this.getName("E")||a===this.getName("DC")?d.value.ia5String=l:d.value.printableString=l;o.push(d)}}r.push(o)}return r}toArrayBuffer(){return M.serialize(this.asn)}async getThumbprint(...t){var r;let i,o="SHA-1";return t.length>=1&&!(!((r=t[0])===null||r===void 0)&&r.subtle)?(o=t[0]||o,i=t[1]||ze.get()):i=t[0]||ze.get(),await i.subtle.digest(o,this.toArrayBuffer())}}const Ku="Cannot initialize GeneralName from ASN.1 data.",qu=`${Ku} Unsupported string format in use.`,Ch=`${Ku} Value doesn't match to GUID regular expression.`,zu=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,Gu="1.3.6.1.4.1.311.25.1",Wu="1.3.6.1.4.1.311.20.2.3",ua="dns",da="dn",fa="email",pa="ip",ha="url",ya="guid",ma="upn",Wn="id";class Ju extends Vt{constructor(...t){let r;if(t.length===2)switch(t[0]){case da:{const i=new jt(t[1]).toArrayBuffer(),o=M.parse(i,ke);r=new Q({directoryName:o});break}case ua:r=new Q({dNSName:t[1]});break;case fa:r=new Q({rfc822Name:t[1]});break;case ya:{const i=new RegExp(zu,"i").exec(t[1]);if(!i)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");const o=i.slice(1).map((s,a)=>a<3?P.ToHex(new Uint8Array(P.FromHex(s)).reverse()):s).join("");r=new Q({otherName:new Wr({typeId:Gu,value:M.serialize(new ie(P.FromHex(o)))})});break}case pa:r=new Q({iPAddress:t[1]});break;case Wn:r=new Q({registeredID:t[1]});break;case ma:{r=new Q({otherName:new Wr({typeId:Wu,value:M.serialize(Gc.toASN(t[1]))})});break}case ha:r=new Q({uniformResourceIdentifier:t[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else V.isBufferSource(t[0])?r=M.parse(t[0],Q):r=t[0];super(r)}onInit(t){if(t.dNSName!=null)this.type=ua,this.value=t.dNSName;else if(t.rfc822Name!=null)this.type=fa,this.value=t.rfc822Name;else if(t.iPAddress!=null)this.type=pa,this.value=t.iPAddress;else if(t.uniformResourceIdentifier!=null)this.type=ha,this.value=t.uniformResourceIdentifier;else if(t.registeredID!=null)this.type=Wn,this.value=t.registeredID;else if(t.directoryName!=null)this.type=da,this.value=new jt(t.directoryName).toString();else if(t.otherName!=null)if(t.otherName.typeId===Gu){this.type=ya;const r=M.parse(t.otherName.value,ie),i=new RegExp(zu,"i").exec(P.ToHex(r));if(!i)throw new Error(Ch);this.value=i.slice(1).map((o,s)=>s<3?P.ToHex(new Uint8Array(P.FromHex(o)).reverse()):o).join("-")}else if(t.otherName.typeId===Wu)this.type=ma,this.value=M.parse(t.otherName.value,Ie).toString();else throw new Error(qu);else throw new Error(qu)}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let t;switch(this.type){case da:case ua:case ya:case pa:case Wn:case ma:case ha:t=this.type.toUpperCase();break;case fa:t="Email";break;default:throw new Error("Unsupported GeneralName type")}let r=this.value;return this.type===Wn&&(r=Tt.toString(r)),new ce(t,void 0,r)}}class mi extends Vt{constructor(t){let r;if(t instanceof De)r=t;else if(Array.isArray(t)){const i=[];for(const o of t)if(o instanceof Q)i.push(o);else{const s=M.parse(new Ju(o.type,o.value).rawData,Q);i.push(s)}r=new De(i)}else if(V.isBufferSource(t))r=M.parse(t,De);else throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");super(r)}onInit(t){const r=[];for(const i of t){let o=null;try{o=new Ju(i)}catch{continue}r.push(o)}this.items=r}toJSON(){return this.items.map(t=>t.toJSON())}toTextObject(){const t=super.toTextObjectEmpty();for(const r of this.items){const i=r.toTextObject();let o=t[i[ce.NAME]];Array.isArray(o)||(o=[],t[i[ce.NAME]]=o),o.push(i)}return t}}mi.NAME="GeneralNames";const gi="-{5}",bi="\\n",Sh=`[^${bi}]+`,xh=`${gi}BEGIN (${Sh}(?=${gi}))${gi}`,Ah=`${gi}END \\1${gi}`,Tr="\\n",Bh=`[^:${bi}]+`,Ih=`(?:[^${bi}]+${Tr}(?: +[^${bi}]+${Tr})*)`,Eh=`(?:[a-zA-Z0-9=+/]+${Tr})+`,Yu=`${xh}${Tr}(?:((?:${Bh}: ${Ih})+))?${Tr}?(${Eh})${Ah}`;class Ge{static isPem(t){return typeof t=="string"&&new RegExp(Yu,"g").test(t)}static decodeWithHeaders(t){t=t.replace(/\r/g,"");const r=new RegExp(Yu,"g"),i=[];let o=null;for(;o=r.exec(t);){const s=o[3].replace(new RegExp(`[${bi}]+`,"g"),""),a={type:o[1],headers:[],rawData:P.FromBase64(s)},c=o[2];if(c){const l=c.split(new RegExp(Tr,"g"));let d=null;for(const p of l){const[y,x]=p.split(/:(.*)/);if(x===void 0){if(!d)throw new Error("Cannot parse PEM string. Incorrect header value");d.value+=y.trim()}else d&&a.headers.push(d),d={key:y,value:x.trim()}}d&&a.headers.push(d)}i.push(a)}return i}static decode(t){return this.decodeWithHeaders(t).map(i=>i.rawData)}static decodeFirst(t){const r=this.decode(t);if(!r.length)throw new RangeError("PEM string doesn't contain any objects");return r[0]}static encode(t,r){if(Array.isArray(t)){const i=new Array;return r?t.forEach(o=>{if(!V.isBufferSource(o))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");i.push(this.encodeStruct({type:r,rawData:V.toArrayBuffer(o)}))}):t.forEach(o=>{if(!("type"in o))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");i.push(this.encodeStruct(o))}),i.join(`
116
116
  `)}else{if(!r)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:r,rawData:V.toArrayBuffer(t)})}}static encodeStruct(t){var r;const i=t.type.toLocaleUpperCase(),o=[];if(o.push(`-----BEGIN ${i}-----`),!((r=t.headers)===null||r===void 0)&&r.length){for(const d of t.headers)o.push(`${d.key}: ${d.value}`);o.push("")}const s=P.ToBase64(t.rawData);let a,c=0;const l=Array();for(;c<s.length&&(s.length-c<64?a=s.substring(c):(a=s.substring(c,c+64),c+=64),a.length!==0);)if(l.push(a),a.length<64)break;return o.push(...l),o.push(`-----END ${i}-----`),o.join(`
117
- `)}}Ge.CertificateTag="CERTIFICATE",Ge.CrlTag="CRL",Ge.CertificateRequestTag="CERTIFICATE REQUEST",Ge.PublicKeyTag="PUBLIC KEY",Ge.PrivateKeyTag="PRIVATE KEY";class Bt extends Vt{static isAsnEncoded(t){return V.isBufferSource(t)||typeof t=="string"}static toArrayBuffer(t){if(typeof t=="string"){if(Ge.isPem(t))return Ge.decode(t)[0];if(P.isHex(t))return P.FromHex(t);if(P.isBase64(t))return P.FromBase64(t);if(P.isBase64Url(t))return P.FromBase64Url(t);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}else{const r=P.ToBinary(t);return Ge.isPem(r)?Ge.decode(r)[0]:P.isHex(r)?P.FromHex(r):P.isBase64(r)?P.FromBase64(r):P.isBase64Url(r)?P.FromBase64Url(r):V.toArrayBuffer(t)}}constructor(...t){Bt.isAsnEncoded(t[0])?super(Bt.toArrayBuffer(t[0]),t[1]):super(t[0])}toString(t="pem"){switch(t){case"pem":return Ge.encode(this.rawData,this.tag);default:return super.toString(t)}}}class rr extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,Ct):super(t),this.tag=Ge.PublicKeyTag}async export(...t){let r,i=["verify"],o={hash:"SHA-256",...this.algorithm};return t.length>1?(o=t[0]||o,i=t[1]||i,r=t[2]||ze.get()):r=t[0]||ze.get(),r.subtle.importKey("spki",this.rawData,o,!0,i)}onInit(t){const r=Qe.resolve(zn),i=this.algorithm=r.toWebAlgorithm(t.algorithm);switch(t.algorithm.algorithm){case Nr:{const o=M.parse(t.subjectPublicKey,Ms),s=V.toUint8Array(o.modulus);i.publicExponent=V.toUint8Array(o.publicExponent),i.modulusLength=(s[0]?s:s.slice(1)).byteLength<<3;break}}}async getThumbprint(...t){var r;let i,o="SHA-1";return t.length>=1&&!(!((r=t[0])===null||r===void 0)&&r.subtle)?(o=t[0]||o,i=t[1]||ze.get()):i=t[0]||ze.get(),await i.subtle.digest(o,this.rawData)}async getKeyIdentifier(t){t||(t=ze.get());const r=M.parse(this.rawData,Ct);return await t.subtle.digest("SHA-1",r.subjectPublicKey)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,Ct);switch(t.Algorithm=er.serializeAlgorithm(r.algorithm),r.algorithm.algorithm){case li:t["EC Point"]=r.subjectPublicKey;break;case Nr:default:t["Raw Data"]=r.subjectPublicKey}return t}}class ft{static register(t,r){this.items.set(t,r)}static create(t){const r=new dt(t),i=this.items.get(r.type);return i?new i(t):r}}ft.items=new Map;const Jn="crypto.signatureFormatter";class Nh{toAsnSignature(t,r){return V.toArrayBuffer(r)}toWebSignature(t,r){return V.toArrayBuffer(r)}}class Yn extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,mr):super(t),this.tag=Ge.CertificateTag}onInit(t){const r=t.tbsCertificate;this.tbs=M.serialize(r),this.serialNumber=P.ToHex(r.serialNumber),this.subjectName=new jt(r.subject),this.subject=new jt(r.subject).toString(),this.issuerName=new jt(r.issuer),this.issuer=this.issuerName.toString();const i=Qe.resolve(zn);this.signatureAlgorithm=i.toWebAlgorithm(t.signatureAlgorithm),this.signature=t.signatureValue;const o=r.validity.notBefore.utcTime||r.validity.notBefore.generalTime;if(!o)throw new Error("Cannot get 'notBefore' value");this.notBefore=o;const s=r.validity.notAfter.utcTime||r.validity.notAfter.generalTime;if(!s)throw new Error("Cannot get 'notAfter' value");this.notAfter=s,this.extensions=[],r.extensions&&(this.extensions=r.extensions.map(a=>ft.create(M.serialize(a)))),this.publicKey=new rr(r.subjectPublicKeyInfo)}getExtension(t){for(const r of this.extensions)if(typeof t=="string"){if(r.type===t)return r}else if(r instanceof t)return r;return null}getExtensions(t){return this.extensions.filter(r=>typeof t=="string"?r.type===t:r instanceof t)}async verify(t={},r=ze.get()){let i,o;const s=t.publicKey;try{if(!s)i={...this.publicKey.algorithm,...this.signatureAlgorithm},o=await this.publicKey.export(i,["verify"],r);else if("publicKey"in s)i={...s.publicKey.algorithm,...this.signatureAlgorithm},o=await s.publicKey.export(i,["verify"],r);else if(s instanceof rr)i={...s.algorithm,...this.signatureAlgorithm},o=await s.export(i,["verify"],r);else if(V.isBufferSource(s)){const d=new rr(s);i={...d.algorithm,...this.signatureAlgorithm},o=await d.export(i,["verify"],r)}else i={...s.algorithm,...this.signatureAlgorithm},o=s}catch{return!1}const a=Qe.resolveAll(Jn).reverse();let c=null;for(const d of a)if(c=d.toWebSignature(i,this.signature),c)break;if(!c)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const l=await r.subtle.verify(this.signatureAlgorithm,o,c,this.tbs);if(t.signatureOnly)return l;{const p=(t.date||new Date).getTime();return l&&this.notBefore.getTime()<p&&p<this.notAfter.getTime()}}async getThumbprint(...t){let r,i="SHA-1";return t[0]&&(t[0].subtle?r=t[0]:(i=t[0]||i,r=t[1])),r??(r=ze.get()),await r.subtle.digest(i,this.rawData)}async isSelfSigned(t=ze.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},t)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,mr),i=r.tbsCertificate,o=new ce("",{Version:`${yr[i.version]} (${i.version})`,"Serial Number":i.serialNumber,"Signature Algorithm":er.serializeAlgorithm(i.signature),Issuer:this.issuer,Validity:new ce("",{"Not Before":i.validity.notBefore.getTime(),"Not After":i.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(i.issuerUniqueID&&(o["Issuer Unique ID"]=i.issuerUniqueID),i.subjectUniqueID&&(o["Subject Unique ID"]=i.subjectUniqueID),this.extensions.length){const s=new ce("");for(const a of this.extensions){const c=a.toTextObject();s[c[ce.NAME]]=c}o.Extensions=s}return t.Data=o,t.Signature=new ce("",{Algorithm:er.serializeAlgorithm(r.signatureAlgorithm),"":r.signatureValue}),t}}Yn.NAME="Certificate";class wi extends dt{static async create(t,r=!1,i=ze.get()){if(t instanceof Yn||tr.isCryptoKey(t)){const o=t instanceof Yn?await t.publicKey.export(i):t,s=await i.subtle.exportKey("spki",o),c=await new rr(s).getKeyIdentifier(i);return new wi(P.ToHex(c),r)}else return new wi(t,r)}constructor(...t){if(V.isBufferSource(t[0]))super(t[0]);else if(typeof t[0]=="string"){const r=new Gt({keyIdentifier:new jo(P.FromHex(t[0]))});super(Vo,t[1],M.serialize(r))}else{const r=t[0],i=r.name instanceof mi?M.parse(r.name.rawData,De):r.name,o=new Gt({authorityCertIssuer:i,authorityCertSerialNumber:P.FromHex(r.serialNumber)});super(Vo,t[1],M.serialize(o))}}onInit(t){super.onInit(t);const r=M.parse(t.extnValue,Gt);r.keyIdentifier&&(this.keyId=P.ToHex(r.keyIdentifier)),r.authorityCertIssuer&&r.authorityCertSerialNumber&&(this.certId={name:r.authorityCertIssuer,serialNumber:P.ToHex(r.authorityCertSerialNumber)})}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,Gt);return r.authorityCertIssuer&&(t["Authority Issuer"]=new mi(r.authorityCertIssuer).toTextObject()),r.authorityCertSerialNumber&&(t["Authority Serial Number"]=r.authorityCertSerialNumber),r.keyIdentifier&&(t[""]=r.keyIdentifier),t}}wi.NAME="Authority Key Identifier";class Zu extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,Ji);this.ca=r.cA,this.pathLength=r.pathLenConstraint}else{const r=new Ji({cA:t[0],pathLenConstraint:t[1]});super(el,t[2],M.serialize(r)),this.ca=t[0],this.pathLength=t[1]}}toTextObject(){const t=this.toTextObjectWithoutValue();return this.ca&&(t.CA=this.ca),this.pathLength!==void 0&&(t["Path Length"]=this.pathLength),t}}Zu.NAME="Basic Constraints";var Qu;(function(e){e.serverAuth="1.3.6.1.5.5.7.3.1",e.clientAuth="1.3.6.1.5.5.7.3.2",e.codeSigning="1.3.6.1.5.5.7.3.3",e.emailProtection="1.3.6.1.5.5.7.3.4",e.timeStamping="1.3.6.1.5.5.7.3.8",e.ocspSigning="1.3.6.1.5.5.7.3.9"})(Qu||(Qu={}));class Xu extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,en);this.usages=r.map(i=>i)}else{const r=new en(t[0]);super(sl,t[1],M.serialize(r)),this.usages=t[0]}}toTextObject(){const t=this.toTextObjectWithoutValue();return t[""]=this.usages.map(r=>Tt.toString(r)).join(", "),t}}Xu.NAME="Extended Key Usages";var ga;(function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"})(ga||(ga={}));class ba extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,Jo);this.usages=r.toNumber()}else{const r=new Jo(t[0]);super(cl,t[1],M.serialize(r)),this.usages=t[0]}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,Jo);return t[""]=r.toJSON().join(", "),t}}ba.NAME="Key Usages";class Zn extends dt{static async create(t,r=!1,i=ze.get()){let o;t instanceof rr?o=t.rawData:"publicKey"in t?o=t.publicKey.rawData:V.isBufferSource(t)?o=t:o=await i.subtle.exportKey("spki",t);const a=await new rr(o).getKeyIdentifier(i);return new Zn(P.ToHex(a),r)}constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,_t);this.keyId=P.ToHex(r)}else{const r=typeof t[0]=="string"?P.FromHex(t[0]):t[0],i=new _t(r);super(hl,t[1],M.serialize(i)),this.keyId=P.ToHex(r)}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,_t);return t[""]=r,t}}Zn.NAME="Subject Key Identifier";class wa extends dt{constructor(...t){V.isBufferSource(t[0])?super(t[0]):super(fl,t[1],new mi(t[0]||[]).rawData)}onInit(t){super.onInit(t);const r=M.parse(t.extnValue,es);this.names=new mi(r)}toTextObject(){const t=this.toTextObjectWithoutValue(),r=this.names.toTextObject();for(const i in r)t[i]=r[i];return t}}wa.NAME="Subject Alternative Name";class ed extends dt{constructor(...t){var r;if(V.isBufferSource(t[0])){super(t[0]);const i=M.parse(this.value,Qi);this.policies=i.map(o=>o.policyIdentifier)}else{const i=t[0],o=(r=t[1])!==null&&r!==void 0?r:!1,s=new Qi(i.map(a=>new Zi({policyIdentifier:a})));super(rl,o,M.serialize(s)),this.policies=i}}toTextObject(){const t=this.toTextObjectWithoutValue();return t.Policy=this.policies.map(r=>new ce("",{},Tt.toString(r))),t}}ed.NAME="Certificate Policies",ft.register(rl,ed);class Vr extends Vt{constructor(...t){let r;if(V.isBufferSource(t[0]))r=V.toArrayBuffer(t[0]);else{const i=t[0],o=Array.isArray(t[1])?t[1].map(s=>V.toArrayBuffer(s)):[];r=M.serialize(new kt({type:i,values:o}))}super(r,kt)}onInit(t){this.type=t.type,this.values=t.values}toTextObject(){const t=this.toTextObjectWithoutValue();return t.Value=this.values.map(r=>new ce("",{"":r})),t}toTextObjectWithoutValue(){const t=this.toTextObjectEmpty();return t[ce.NAME]===Vr.NAME&&(t[ce.NAME]=Tt.toString(this.type)),t}}Vr.NAME="Attribute";class td extends Vr{constructor(...t){var r;if(V.isBufferSource(t[0]))super(t[0]);else{const i=new Fn({printableString:t[0]});super(Ql,[M.serialize(i)])}(r=this.password)!==null&&r!==void 0||(this.password="")}onInit(t){if(super.onInit(t),this.values[0]){const r=M.parse(this.values[0],Fn);this.password=r.toString()}}toTextObject(){const t=this.toTextObjectWithoutValue();return t[ce.VALUE]=this.password,t}}td.NAME="Challenge Password";class va extends Vr{constructor(...t){var r;if(V.isBufferSource(t[0]))super(t[0]);else{const i=t[0],o=new Wt;for(const s of i)o.push(M.parse(s.rawData,it));super(ta,[M.serialize(o)])}(r=this.items)!==null&&r!==void 0||(this.items=[])}onInit(t){if(super.onInit(t),this.values[0]){const r=M.parse(this.values[0],Wt);this.items=r.map(i=>ft.create(M.serialize(i)))}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=this.items.map(i=>i.toTextObject());for(const i of r)t[i[ce.NAME]]=i;return t}}va.NAME="Extensions";class Qn{static register(t,r){this.items.set(t,r)}static create(t){const r=new Vr(t),i=this.items.get(r.type);return i?new i(t):r}}Qn.items=new Map;let ka=class{toAsnAlgorithm(t){switch(t.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in t){let r;if(typeof t.hash=="string")r=t.hash;else if(t.hash&&typeof t.hash=="object"&&"name"in t.hash&&typeof t.hash.name=="string")r=t.hash.name.toUpperCase();else throw new Error("Cannot get hash algorithm name");switch(r.toLowerCase()){case"sha-1":return new $({algorithm:In,parameters:null});case"sha-256":return new $({algorithm:Ds,parameters:null});case"sha-384":return new $({algorithm:En,parameters:null});case"sha-512":return new $({algorithm:Nn,parameters:null})}}else return new $({algorithm:Nr,parameters:null})}return null}toWebAlgorithm(t){switch(t.algorithm){case Nr:return{name:"RSASSA-PKCS1-v1_5"};case In:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case Ds:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case En:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case Nn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}};ka=u([qs()],ka),Qe.registerSingleton(qn,ka);class Xe{addPadding(t,r){const i=V.toUint8Array(r),o=new Uint8Array(t);return o.set(i,t-i.length),o}removePadding(t,r=!1){let i=V.toUint8Array(t);for(let o=0;o<i.length;o++)if(i[o]){i=i.slice(o);break}if(r&&i[0]>127){const o=new Uint8Array(i.length+1);return o.set(i,1),o.buffer}return i.buffer}toAsnSignature(t,r){if(t.name==="ECDSA"){const i=t.namedCurve,o=Xe.namedCurveSize.get(i)||Xe.defaultNamedCurveSize,s=new Bn,a=V.toUint8Array(r);return s.r=this.removePadding(a.slice(0,o),!0),s.s=this.removePadding(a.slice(o,o+o),!0),M.serialize(s)}return null}toWebSignature(t,r){if(t.name==="ECDSA"){const i=M.parse(r,Bn),o=t.namedCurve,s=Xe.namedCurveSize.get(o)||Xe.defaultNamedCurveSize,a=this.addPadding(s,this.removePadding(i.r)),c=this.addPadding(s,this.removePadding(i.s));return qf(a,c)}return null}}Xe.namedCurveSize=new Map,Xe.defaultNamedCurveSize=32;const rd="1.3.101.110",id="1.3.101.111",nd="1.3.101.112",od="1.3.101.113";let Ca=class{toAsnAlgorithm(t){let r=null;switch(t.name.toLowerCase()){case"eddsa":switch(t.namedCurve.toLowerCase()){case"ed25519":r=nd;break;case"ed448":r=od;break}break;case"ecdh-es":switch(t.namedCurve.toLowerCase()){case"x25519":r=rd;break;case"x448":r=id;break}}return r?new $({algorithm:r}):null}toWebAlgorithm(t){switch(t.algorithm){case nd:return{name:"EdDSA",namedCurve:"Ed25519"};case od:return{name:"EdDSA",namedCurve:"Ed448"};case rd:return{name:"ECDH-ES",namedCurve:"X25519"};case id:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};Ca=u([qs()],Ca),Qe.registerSingleton(qn,Ca);class _h extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,hi):super(t),this.tag=Ge.CertificateRequestTag}onInit(t){this.tbs=M.serialize(t.certificationRequestInfo),this.publicKey=new rr(t.certificationRequestInfo.subjectPKInfo);const r=Qe.resolve(zn);this.signatureAlgorithm=r.toWebAlgorithm(t.signatureAlgorithm),this.signature=t.signature,this.attributes=t.certificationRequestInfo.attributes.map(o=>Qn.create(M.serialize(o)));const i=this.getAttribute(ta);this.extensions=[],i instanceof va&&(this.extensions=i.items),this.subjectName=new jt(t.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(t){for(const r of this.attributes)if(r.type===t)return r;return null}getAttributes(t){return this.attributes.filter(r=>r.type===t)}getExtension(t){for(const r of this.extensions)if(r.type===t)return r;return null}getExtensions(t){return this.extensions.filter(r=>r.type===t)}async verify(t=ze.get()){const r={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(r,["verify"],t),o=Qe.resolveAll(Jn).reverse();let s=null;for(const c of o)if(s=c.toWebSignature(r,this.signature),s)break;if(!s)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await t.subtle.verify(this.signatureAlgorithm,i,s,this.tbs)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,hi),i=r.certificationRequestInfo,o=new ce("",{Version:`${yr[i.version]} (${i.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const s=new ce("");for(const a of this.attributes){const c=a.toTextObject();s[c[ce.NAME]]=c}o.Attributes=s}return t.Data=o,t.Signature=new ce("",{Algorithm:er.serializeAlgorithm(r.signatureAlgorithm),"":r.signature}),t}}_h.NAME="PKCS#10 Certificate Request";var sd;(function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"})(sd||(sd={})),ft.register(el,Zu),ft.register(sl,Xu),ft.register(cl,ba),ft.register(hl,Zn),ft.register(Vo,wi),ft.register(fl,wa),Qn.register(Ql,td),Qn.register(ta,va),Qe.registerSingleton(Jn,Nh),Qe.registerSingleton(Jn,Xe),Xe.namedCurveSize.set("P-256",32),Xe.namedCurveSize.set("K-256",32),Xe.namedCurveSize.set("P-384",48),Xe.namedCurveSize.set("P-521",66);function ad(){return{parseMetaCertificateData:t=>{if(/{vault:\/\/.*}/g.test(t))throw new Error("not a X.509 certificate");const r=new Yn(t),i={subject:r.subjectName.toString(),issuer:r.issuer,notAfter:r.notAfter};for(const o of r.extensions)if(o instanceof wa){const s=o.names.toJSON(),c=Object.entries(s).map(l=>({type:l[1].type,value:l[1].value})).reduce((l,d)=>{const p=d.type,y=l[p]??[];return{...l,[p]:[...y,d.value]}},{});for(const l in c)i.subjectAltName=`${l}=${c[l].join(", ")}`}else if(o instanceof ba){const s=Object.values(ga),a=Array(s.length/2).fill(null).reduce((c,l,d)=>{const p=s[s.length/2+d];if(o.usages&p){const y=s[d];c.push(y)}return c},[]);i.keyUsage=a}return i}}}function Oh(){const e=ad(),t=n.ref({}),r=o=>{if(!(o.id in t.value))try{t.value[o.id]=e.parseMetaCertificateData(o.cert)}catch{t.value[o.id]=void 0}return t.value[o.id]};return{certificateDataCache:t,getCertificateData:o=>{const s=r(o);return{schemaIssuer:(s==null?void 0:s.issuer)||"",schemaSubject:(s==null?void 0:s.subject)||"",schemaExpiry:(s==null?void 0:s.notAfter)instanceof Date?s.notAfter.getTime()/1e3:0,schemaSanNames:(s==null?void 0:s.subjectAltName)||"",schemaKeyUsages:(s==null?void 0:s.keyUsage)||[]}}}}const Th={certificates:{title:"Certificates",list:{toolbar_actions:{new_certificate:"New Certificate"},table_headers:{subject:"Subject",expiry:"Expiry",san:"SAN",cert:"Cert",tags:"Tags",issuer:"Issuer",snis:"SNIs"},empty_state:{title:"Configure a New Certificate",description:"Certificates handle SSL/TLS termination for encrypted requests."}},form:{sections:{ssl:{title:"SSL Key Pair",description:"The PEM-encoded public certificate chain and private key of the SSL key pair and the alternate."},general:{title:"General Information",description:"General information will help identify and manage this key."}},fields:{cert:{label:"Cert",tooltip:"PEM-encoded public certificate chain of the SSL key pair. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},key:{label:"Key",tooltip:"PEM-encoded private key of the SSL key pair. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},cert_alt:{label:"Cert Alt",tooltip:"PEM-encoded public certificate chain of the alternate SSL key pair. This should only be set if you have both RSA and ECDSA types of certificate available and would like Kong to prefer serving using ECDSA certs when client advertises support for it. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},key_alt:{label:"Key Alt",tooltip:"PEM-encoded private key of the alternate SSL key pair. This should only be set if you have both RSA and ECDSA types of certificate available and would like Kong to prefer serving using ECDSA certs when client advertises support for it. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}},actions:{create:"New Certificate",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",addSni:"Add to New SNI",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact ID"},delete:{title:"Delete a Certificate",description:"Your organization's original certificate {bolded-text}.",boldedText:"will not be affected",description2:"This action cannot be reversed so make sure to check the certificate usage before deleting."},errors:{general:"Certificates could not be retrieved",delete:"The certificate could not be deleted at this time",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}},"ca-certificates":{title:"CA Certificates",list:{toolbar_actions:{new_ca_certificate:"New CA Certificate"},table_headers:{issuer:"Issuer",expiry:"Expiry",tags:"Tags"},empty_state:{title:"Configure a New CA Certificate",description:"CA certificates validate client or server certificates."}},form:{sections:{cert:{title:"Public Certificate",description:"The PEM-encoded public certificate of the CA and it’s SHA256 hex digest."},general:{title:"General Information",description:"General information will help identify and manage this key."}},fields:{cert:{label:"Cert",tooltip:"PEM-encoded public certificate of the CA."},cert_digest:{label:"Cert Digest",tooltip:"SHA256 hex digest of the public certificate"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}},actions:{create:"New CA Certificate",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact ID"},delete:{title:"Delete a CA Certificate",description:"Your organization's original certificate {bolded-text}.",boldedText:"will not be affected",description2:"This action cannot be reversed so make sure to check the certificate usage before deleting."},errors:{general:"CA Certificates could not be retrieved",delete:"The CA Certificate could not be deleted at this time",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}},general:{"key-usages":{KEY_USAGE_TYPE_KEY_CERT_SIGN:"keyCertSign",KEY_USAGE_TYPE_CRL_SIGN:"cRLSign",KEY_USAGE_TYPE_ENCIPHER_ONLY:"encipherOnly",KEY_USAGE_TYPE_DIGITAL_SIGNATURE:"digitalSignature",KEY_USAGE_TYPE_KEY_ENCIPHERMENT:"keyEncipherment",KEY_USAGE_TYPE_DATA_ENCIPHERMENT:"dataEncipherment",KEY_USAGE_TYPE_KEY_AGREEMENT:"keyAgreement",KEY_USAGE_TYPE_CONTENT_COMMITMENT:"nonRepudiation"}}};function Vh(){const e=ar.createI18n("en-us",Th);return{i18n:e,i18nT:ar.i18nTComponent(e)}}const pt={useCertificate:Oh,useI18n:Vh,useX509:ad},vi={list:{konnect:"/api/runtime_groups/{controlPlaneId}/certificates",kongManager:"/{workspace}/certificates"},form:{konnect:{create:"/api/runtime_groups/{controlPlaneId}/certificates",edit:"/api/runtime_groups/{controlPlaneId}/certificates/{id}",validate:"/api/runtime_groups/{controlPlaneId}/v1/schemas/json/certificate/validate"},kongManager:{create:"/{workspace}/certificates",edit:"/{workspace}/certificates/{id}",validate:"/{workspace}/schemas/certificates/validate"}}},jh={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},Dh="Copy to clipboard",Ph={message:jh,iconTitle:Dh},$h="kong-ui-copy-uuid-notify",Rh={class:"kong-ui-copy-uuid"},Mh=["onClick"],cd=15,Uh=n.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:t}){const r=e,{t:i}=ar.createI18n("en-us",Ph),o=r.notify||n.inject($h,()=>{}),s=n.computed(()=>r.idTooltip?{label:r.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:r.uuid}),a=n.computed(()=>!!(r.tooltip&&r.successTooltip)),c=n.ref(r.tooltip),l=n.computed(()=>r.tooltip?{label:c.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=n.computed(()=>r.format==="redacted"?"*****":r.format==="deleted"?`*${r.uuid.substring(0,5)}`:r.uuid),p=x=>{c.value=x,setTimeout(()=>{c.value=r.tooltip},1800)},y=x=>{if(!x(r.uuid)){typeof o=="function"&&o({type:"error",message:i("message.fail")}),a.value?p(i("message.fail")):t("error",r.uuid);return}const C=r.uuid.length>cd,h=r.format==="hidden"||r.format==="redacted"?i("message.success.prefix"):`"${r.uuid.substring(0,cd)+(C?"...":"")}"`;typeof o=="function"&&o({type:"success",message:`${h}${i("message.success.content")}`}),a.value?p(r.successTooltip):t("success",r.uuid)};return(x,C)=>{const h=n.resolveComponent("KIcon"),g=n.resolveComponent("KClipboardProvider");return n.openBlock(),n.createElementBlock("div",Rh,[e.format!=="hidden"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),n.mergeProps({key:0},s.value,{"data-testid":"copy-id"}),{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},n.toDisplayString(d.value),3)]),_:1},16)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),n.mergeProps(l.value,{class:"uuid-icon-wrapper"}),{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(({copyToClipboard:w})=>[n.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:n.withModifiers(v=>y(w),["stop"])},[n.createVNode(h,{class:"uuid-icon",color:e.iconColor,"hide-title":!!e.tooltip||void 0,icon:"copy",size:"16",title:n.unref(i)("iconTitle")},null,8,["color","hide-title","title"])],8,Mh)]),_:1})]),_:1},16))])}}}),Lh=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Hh=Lh(Uh,[["__scopeId","data-v-bfdaf6f7"]]);var Sa=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(Sa||{}),ir=(e=>(e.Edit="edit",e.Create="create",e))(ir||{}),Dt=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(Dt||{}),ne=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(ne||{}),le=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(le||{});function xa(e={}){return{axiosInstance:Mf.create({withCredentials:!0,timeout:3e4,...e})}}function Fh(){return{debounce:(e,t)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},t)}}}}const Aa="khcp-user-table-preferences",Kh={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function qh(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},t=()=>{const r=e(localStorage.getItem(Aa));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=t();o.set(r,i),localStorage.setItem(Aa,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:r=>{const i=t();return(i==null?void 0:i.get(r))||void 0||Kh},deleteAllTablePreferences:()=>{localStorage.removeItem(Aa)}}}const zh={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Gh={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},Wh={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Jh={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Yh={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Zh={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Qh={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Xh={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},ey={deleteModal:zh,baseForm:Gh,baseTable:Wh,baseConfigCard:Jh,filter:Yh,debouncedFilter:Zh,errors:Qh,toggleModal:Xh};function Ba(){const e=ar.createI18n("en-us",ey);return{i18n:e,i18nT:ar.i18nTComponent(e)}}function ty(e,t,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:o}=xa({headers:e.requestHeaders}),{i18n:{t:s}}=Ba(),{debounce:a}=Fh(),c=a(async b=>{await v(b)},200),l=n.ref(!1),d=n.ref(""),p=n.ref(""),y=n.ref([]),x=n.ref(void 0),C=n.unref(t);let h=`${e.apiBaseUrl}${C}`;e.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const g=async()=>{try{l.value=!0;const{data:b}=await o.get(`${h}?size=${r}`);b!=null&&b.next||(x.value=i.fetchedItemsKey in b?b[i.fetchedItemsKey]:[]),y.value=i.fetchedItemsKey in b?b[i.fetchedItemsKey]:[]}catch{y.value=[],d.value=s("debouncedFilter.errors.fetch")}finally{l.value=!1}},w=n.ref(""),v=async b=>{var m,B;if(w.value!==b)if(w.value=b||"",x.value===void 0)try{l.value=!0,d.value="",p.value="";let q=h+"";b&&(q+=`/${b}`);const{data:J}=await o.get(`${q}?size=${r}`);i.fetchedItemsKey in J?y.value=J[i.fetchedItemsKey]:J!=null&&J.id?y.value=[J]:y.value=[]}catch(q){((m=q==null?void 0:q.response)==null?void 0:m.status)===404?p.value=s("debouncedFilter.errors.invalid"):(y.value=[],d.value=s("debouncedFilter.errors.fetch"))}finally{l.value=!1}else l.value=!0,p.value="",b?(y.value=(B=x.value)==null?void 0:B.filter(q=>{var J;let I=!1;for(const _ of i.searchKeys){const H=typeof q[_]=="string"?(J=q[_])==null?void 0:J.toLowerCase():q[_];H!=null&&H.includes(b.toLowerCase())&&(I=!0)}return I}),(!y.value||!y.value.length)&&(p.value=s("debouncedFilter.errors.invalid"))):y.value=x.value,l.value=!1};return{loading:l,error:d,validationError:p,results:y,allRecords:x,loadItems:g,debouncedQueryChange:c}}function ry(e,t){const r=n.unref(t),i=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function iy(){const{i18n:{t:e}}=Ba();return{getMessageFromError:t=>{var r,i,o;if(!t)return e("errors.unexpected");if((r=t==null?void 0:t.response)!=null&&r.data){if(t.response.data.detail)return t.response.data.detail;if((i=t.response.data.details)!=null&&i.length)return t.response.data.details.map(s=>{let a=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(a=s.messages.join(", ")),s.field?`${s.field} - ${a}`:a}).join("; ");if(t.response.data.message){const{message:s}=t.response.data;return Array.isArray(s)?(o=s[0])!=null&&o.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(s=>`${s} ${t.response.data[s]}`).join(", ")}return t.message||e("errors.unexpected")}}}function ld(e,t){const r=n.ref(n.unref(e)),i=n.ref(n.unref(t)),o=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),s=n.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:c,pageSize:l,offset:d,sortColumnKey:p,sortColumnOrder:y,query:x}=a;try{let C=new URL(s.value.href);return o.value&&x?(C.search="",C=new URL(`${C.href}/${x}/`)):(o.value||new URLSearchParams(x).forEach((h,g)=>{C.searchParams.append(g,h)}),p&&C.searchParams.append("sort_by",p),y==="desc"&&C.searchParams.append("sort_desc","1"),C.searchParams.append("size",String(l))),d&&c!==1&&C.searchParams.append("offset",String(d)),C.href}catch(C){return console.error("RouteList(fetcher)",C),i.value}}}function ny(e,t,r="data"){const i=n.unref(t),{axiosInstance:o}=xa({headers:e.requestHeaders}),s=ld(e,i),a=n.ref({status:Dt.Idle});return{fetcher:async c=>{try{a.value={status:Dt.Loading};const l=s(c),{data:d}=await o.get(l),p=r&&r.replace(/[^\w-_]/gi,"");let y;d[p]&&Array.isArray(d[p])?y=d[p]:y=Object.keys(d).length?[d]:[];const x={data:y,total:y.length,...d.offset?{pagination:{offset:d.offset}}:null};return a.value={status:Dt.Idle,response:x},x}catch(l){const d={data:[],total:0};return c.query&&l.response.status===404?(a.value={status:Dt.NoResults,response:d,error:l},d):(a.value={status:Dt.Error,response:d,error:l},d)}},fetcherState:a}}function oy(){return{getPropValue:(e,t)=>(t==null?void 0:t[e])??void 0}}function sy(){return{convertKeyToTitle:(e,t="_")=>e?e.split(t).map(r=>r.toLowerCase()==="id"?r.toUpperCase():r.charAt(0).toUpperCase()+r.substring(1)).join(" "):""}}const ud=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,dd=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ud);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},fd=e=>e==="*"||e==="x"||e==="X",pd=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},ay=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],cy=(e,t)=>{if(fd(e)||fd(t))return 0;const[r,i]=ay(pd(e),pd(t));return r>i?1:r<i?-1:0},hd=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const i=cy(e[r]||"0",t[r]||"0");if(i!==0)return i}return 0},ly=(e,t)=>{const r=dd(e),i=dd(t),o=r.pop(),s=i.pop(),a=hd(r,i);return a!==0?a:o&&s?hd(o.split("."),s.split(".")):o||s?o?-1:1:0},yd=(e,t,r)=>{uy(r);const i=ly(e,t);return md[r].includes(i)},md={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},gd=Object.keys(md),uy=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(gd.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${gd.join("|")}`)},dy=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ud.test(e);function fy(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:i,version:o}=t;if(!dy(o))return console.error("Invalid version"),!1;const s=r[i];if(!s)return!1;const[a,c]=s;return!(a&&yd(o,a,"<")||c&&yd(o,c,">"))}function py(e){const t=n.ref(0),r=n.ref(0),i=n.ref(!1);return n.watch(e,o=>{o&&!i.value&&(t.value=o.offsetWidth,r.value=o.scrollWidth,i.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}const Ae={useAxios:xa,useDebouncedFilter:ty,useDeleteUrlBuilder:ry,useErrors:iy,useFetcher:ny,useFetchUrlBuilder:ld,useHelpers:oy,useStringHelpers:sy,useI18n:Ba,useGatewayFeatureSupported:fy,useTruncationDetector:py},hy={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},yy="Copy to clipboard",my={message:hy,iconTitle:yy},gy="kong-ui-copy-uuid-notify",by={class:"kong-ui-copy-uuid"},wy=["onClick"],bd=15,vy=n.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:t}){const r=e,{t:i}=ar.createI18n("en-us",my),o=r.notify||n.inject(gy,()=>{}),s=n.computed(()=>r.idTooltip?{label:r.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:r.uuid}),a=n.computed(()=>!!(r.tooltip&&r.successTooltip)),c=n.ref(r.tooltip),l=n.computed(()=>r.tooltip?{label:c.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=n.computed(()=>r.format==="redacted"?"*****":r.format==="deleted"?`*${r.uuid.substring(0,5)}`:r.uuid),p=x=>{c.value=x,setTimeout(()=>{c.value=r.tooltip},1800)},y=x=>{if(!x(r.uuid)){typeof o=="function"&&o({type:"error",message:i("message.fail")}),a.value?p(i("message.fail")):t("error",r.uuid);return}const C=r.uuid.length>bd,h=r.format==="hidden"||r.format==="redacted"?i("message.success.prefix"):`"${r.uuid.substring(0,bd)+(C?"...":"")}"`;typeof o=="function"&&o({type:"success",message:`${h}${i("message.success.content")}`}),a.value?p(r.successTooltip):t("success",r.uuid)};return(x,C)=>{const h=n.resolveComponent("KIcon"),g=n.resolveComponent("KClipboardProvider");return n.openBlock(),n.createElementBlock("div",by,[e.format!=="hidden"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),n.mergeProps({key:0},s.value,{"data-testid":"copy-id"}),{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},n.toDisplayString(d.value),3)]),_:1},16)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),n.mergeProps(l.value,{class:"uuid-icon-wrapper"}),{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(({copyToClipboard:w})=>[n.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:n.withModifiers(v=>y(w),["stop"])},[n.createVNode(h,{class:"uuid-icon",color:e.iconColor,"hide-title":!!e.tooltip||void 0,icon:"copy",size:"16",title:n.unref(i)("iconTitle")},null,8,["color","hide-title","title"])],8,wy)]),_:1})]),_:1},16))])}}}),ky=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},wd=ky(vy,[["__scopeId","data-v-bfdaf6f7"]]),Cy={key:0,class:"config-card-fieldset-title"},Sy=n.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const t=e,{i18n:{t:r}}=Ae.useI18n(),{convertKeyToTitle:i}=Ae.useStringHelpers(),o=n.computed(()=>t.item.key??"json-array-item"),s=n.computed(()=>t.item.value??t.item),a=n.computed(()=>{const l=JSON.parse(JSON.stringify(s.value));return t.isArrayItem&&delete l.name,l}),c=n.computed(()=>{var l;return t.isArrayItem?(l=s.value)!=null&&l.name?i(s.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:t.index}):""});return(l,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:n.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:n.withCtx(()=>[e.isArrayItem?(n.openBlock(),n.createElementBlock("legend",Cy,[n.createElementVNode("b",null,n.toDisplayString(c.value),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(a.value),(p,y)=>(n.openBlock(),n.createBlock(ki,{key:`${o.value}-property-${y}`,item:{key:p,label:n.unref(i)(p),value:a.value[p]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),ot=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},vd=ot(Sy,[["__scopeId","data-v-68ca83ec"]]),xy=ot(n.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t}}=Ae.useI18n();return(r,i)=>{const o=n.resolveComponent("KButton");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(o,{appearance:"btn-link",class:"navigation-button",onClick:i[0]||(i[0]=s=>r.$emit("navigation-click",e.item))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.item.value||n.unref(t)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-7410504d"]]),Ay=n.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t}}=Ae.useI18n();return(r,i)=>{const o=n.resolveComponent("KBadge");return n.openBlock(),n.createBlock(o,{appearance:e.status?"success":"neutral"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.status?n.unref(t)("baseConfigCard.statusBadge.enabledLabel"):n.unref(t)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),By="#0044f4",Iy="#e0e4ea",Ey="#3a3f51",Ny="1px",_y="20px",Oy={class:"config-card-details-row"},Ty=["data-testid"],Vy=["data-testid"],jy=["data-testid"],Dy=["data-testid"],Py={key:1},$y=["data-testid"],Ry=["data-testid"],My=["data-testid"],Uy=["data-testid"],Ly={name:"ConfigCardItem",components:{CopyUuid:wd,JsonCardItem:vd,StatusBadge:Ay,InternalLinkItem:xy}},Hy=n.defineComponent({...Ly,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:t}){const r=e;n.useCssVars(C=>({"11ca2174":d.value?"none":`solid ${n.unref(Ny)} ${n.unref(Iy)}`,"57a0f6a7":l.value&&a.value?"block":"flex","66118e4e":l.value&&a.value?"100%":r.slim?"50%":"25%","660d0298":l.value&&a.value?"100%":r.slim?"50%":"75%"}));const i=n.useSlots(),{i18n:{t:o,formatUnixTimeStamp:s}}=Ae.useI18n(),a=n.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),c=n.computed(()=>!!(r.item.tooltip||i["label-tooltip"])),l=n.computed(()=>r.item.type===ne.Json||r.item.type===ne.JsonArray),d=n.computed(()=>r.item.type===ne.JsonArray),p=n.computed(()=>{switch(r.item.type){case ne.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,uuid:r.item.value,notify:()=>{}}};case ne.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,notify:()=>{}}};case ne.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,uuid:r.item.value,notify:()=>{}}};case ne.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,notify:()=>{}}};case ne.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:s(r.item.value)};case ne.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case ne.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case ne.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case ne.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:C=>{t("navigation-click",C)}}};case ne.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case ne.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case ne.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return{tag:"div",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),y=n.ref(),{isTruncated:x}=Ae.useTruncationDetector(y);return(C,h)=>{const g=n.resolveComponent("KLabel"),w=n.resolveComponent("KBadge"),v=n.resolveComponent("KMethodBadge"),b=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("div",Oy,[n.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[n.renderSlot(C.$slots,"label",{item:e.item},()=>[n.createVNode(g,{"tooltip-attributes":{maxWidth:"500px"}},n.createSlots({default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.item.label)+" ",1)]),_:2},[c.value?{name:"tooltip",fn:n.withCtx(()=>[n.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[n.renderSlot(C.$slots,"label-tooltip",{},()=>[n.createTextVNode(n.toDisplayString(e.item.tooltip),1)],!0)],8,Vy)]),key:"0"}:void 0]),1024)],!0)],8,Ty),n.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[n.renderSlot(C.$slots,e.item.key,{rowValue:e.item.value},()=>[a.value?(n.openBlock(),n.createElementBlock("div",Py,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.value.tag),n.normalizeProps(n.guardReactiveProps(p.value.attrs)),{default:n.withCtx(()=>[p.value.additionalComponent==="KBadge"?(n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(w,{key:`${e.item.key}-badge-tag-${B}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${B}`,"truncation-tooltip":m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["data-testid","truncation-tooltip"]))),128))],8,$y)):n.createCommentVNode("",!0),p.value.additionalComponent==="CopyUuid"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(n.unref(wd),n.mergeProps(p.value.childAttrs,{key:`${e.item.key}-copy-uuid-${B}`,"data-testid":`${e.item.key}-copy-uuid-${B}`,uuid:m}),null,16,["data-testid","uuid"]))),128))],8,Ry)):p.value.additionalComponent==="KMethodBadge"?(n.openBlock(),n.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(v,{key:`${e.item.key}-badge-method-${B}`,class:"config-badge","data-testid":`${e.item.key}-badge-method-${B}`,"is-rounded":"",label:m,method:n.unref(Uf.MethodsArray).includes(m.toLowerCase())?m.toLowerCase():"custom"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["data-testid","label","method"]))),128))],8,My)):n.createCommentVNode("",!0),p.value.additionalComponent==="JsonCardItem"?(n.openBlock(),n.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(vd,{key:`json-array-item-${B}`,index:B,"is-array-item":"",item:m},null,8,["index","item"]))),128))],8,Uy)):(n.openBlock(),n.createBlock(b,{key:4,label:n.unref(x)&&e.item.value},{default:n.withCtx(()=>[n.createElementVNode("span",{ref_key:"textContent",ref:y,class:n.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},n.toDisplayString(p.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Dy))],!0)],8,jy)])}}}),ki=ot(Hy,[["__scopeId","data-v-f68d4fa1"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kd(e){return typeof e>"u"||e===null}function Fy(e){return typeof e=="object"&&e!==null}function Ky(e){return Array.isArray(e)?e:kd(e)?[]:[e]}function qy(e,t){var r,i,o,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)o=s[r],e[o]=t[o];return e}function zy(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function Gy(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Wy=kd,Jy=Fy,Yy=Ky,Zy=zy,Qy=Gy,Xy=qy,Se={isNothing:Wy,isObject:Jy,toArray:Yy,repeat:Zy,isNegativeZero:Qy,extend:Xy};function Cd(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
117
+ `)}}Ge.CertificateTag="CERTIFICATE",Ge.CrlTag="CRL",Ge.CertificateRequestTag="CERTIFICATE REQUEST",Ge.PublicKeyTag="PUBLIC KEY",Ge.PrivateKeyTag="PRIVATE KEY";class Bt extends Vt{static isAsnEncoded(t){return V.isBufferSource(t)||typeof t=="string"}static toArrayBuffer(t){if(typeof t=="string"){if(Ge.isPem(t))return Ge.decode(t)[0];if(P.isHex(t))return P.FromHex(t);if(P.isBase64(t))return P.FromBase64(t);if(P.isBase64Url(t))return P.FromBase64Url(t);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}else{const r=P.ToBinary(t);return Ge.isPem(r)?Ge.decode(r)[0]:P.isHex(r)?P.FromHex(r):P.isBase64(r)?P.FromBase64(r):P.isBase64Url(r)?P.FromBase64Url(r):V.toArrayBuffer(t)}}constructor(...t){Bt.isAsnEncoded(t[0])?super(Bt.toArrayBuffer(t[0]),t[1]):super(t[0])}toString(t="pem"){switch(t){case"pem":return Ge.encode(this.rawData,this.tag);default:return super.toString(t)}}}class rr extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,Ct):super(t),this.tag=Ge.PublicKeyTag}async export(...t){let r,i=["verify"],o={hash:"SHA-256",...this.algorithm};return t.length>1?(o=t[0]||o,i=t[1]||i,r=t[2]||ze.get()):r=t[0]||ze.get(),r.subtle.importKey("spki",this.rawData,o,!0,i)}onInit(t){const r=Qe.resolve(zn),i=this.algorithm=r.toWebAlgorithm(t.algorithm);switch(t.algorithm.algorithm){case Nr:{const o=M.parse(t.subjectPublicKey,Ms),s=V.toUint8Array(o.modulus);i.publicExponent=V.toUint8Array(o.publicExponent),i.modulusLength=(s[0]?s:s.slice(1)).byteLength<<3;break}}}async getThumbprint(...t){var r;let i,o="SHA-1";return t.length>=1&&!(!((r=t[0])===null||r===void 0)&&r.subtle)?(o=t[0]||o,i=t[1]||ze.get()):i=t[0]||ze.get(),await i.subtle.digest(o,this.rawData)}async getKeyIdentifier(t){t||(t=ze.get());const r=M.parse(this.rawData,Ct);return await t.subtle.digest("SHA-1",r.subjectPublicKey)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,Ct);switch(t.Algorithm=er.serializeAlgorithm(r.algorithm),r.algorithm.algorithm){case li:t["EC Point"]=r.subjectPublicKey;break;case Nr:default:t["Raw Data"]=r.subjectPublicKey}return t}}class ft{static register(t,r){this.items.set(t,r)}static create(t){const r=new dt(t),i=this.items.get(r.type);return i?new i(t):r}}ft.items=new Map;const Jn="crypto.signatureFormatter";class Nh{toAsnSignature(t,r){return V.toArrayBuffer(r)}toWebSignature(t,r){return V.toArrayBuffer(r)}}class Yn extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,mr):super(t),this.tag=Ge.CertificateTag}onInit(t){const r=t.tbsCertificate;this.tbs=M.serialize(r),this.serialNumber=P.ToHex(r.serialNumber),this.subjectName=new jt(r.subject),this.subject=new jt(r.subject).toString(),this.issuerName=new jt(r.issuer),this.issuer=this.issuerName.toString();const i=Qe.resolve(zn);this.signatureAlgorithm=i.toWebAlgorithm(t.signatureAlgorithm),this.signature=t.signatureValue;const o=r.validity.notBefore.utcTime||r.validity.notBefore.generalTime;if(!o)throw new Error("Cannot get 'notBefore' value");this.notBefore=o;const s=r.validity.notAfter.utcTime||r.validity.notAfter.generalTime;if(!s)throw new Error("Cannot get 'notAfter' value");this.notAfter=s,this.extensions=[],r.extensions&&(this.extensions=r.extensions.map(a=>ft.create(M.serialize(a)))),this.publicKey=new rr(r.subjectPublicKeyInfo)}getExtension(t){for(const r of this.extensions)if(typeof t=="string"){if(r.type===t)return r}else if(r instanceof t)return r;return null}getExtensions(t){return this.extensions.filter(r=>typeof t=="string"?r.type===t:r instanceof t)}async verify(t={},r=ze.get()){let i,o;const s=t.publicKey;try{if(!s)i={...this.publicKey.algorithm,...this.signatureAlgorithm},o=await this.publicKey.export(i,["verify"],r);else if("publicKey"in s)i={...s.publicKey.algorithm,...this.signatureAlgorithm},o=await s.publicKey.export(i,["verify"],r);else if(s instanceof rr)i={...s.algorithm,...this.signatureAlgorithm},o=await s.export(i,["verify"],r);else if(V.isBufferSource(s)){const d=new rr(s);i={...d.algorithm,...this.signatureAlgorithm},o=await d.export(i,["verify"],r)}else i={...s.algorithm,...this.signatureAlgorithm},o=s}catch{return!1}const a=Qe.resolveAll(Jn).reverse();let c=null;for(const d of a)if(c=d.toWebSignature(i,this.signature),c)break;if(!c)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const l=await r.subtle.verify(this.signatureAlgorithm,o,c,this.tbs);if(t.signatureOnly)return l;{const p=(t.date||new Date).getTime();return l&&this.notBefore.getTime()<p&&p<this.notAfter.getTime()}}async getThumbprint(...t){let r,i="SHA-1";return t[0]&&(t[0].subtle?r=t[0]:(i=t[0]||i,r=t[1])),r??(r=ze.get()),await r.subtle.digest(i,this.rawData)}async isSelfSigned(t=ze.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},t)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,mr),i=r.tbsCertificate,o=new ce("",{Version:`${yr[i.version]} (${i.version})`,"Serial Number":i.serialNumber,"Signature Algorithm":er.serializeAlgorithm(i.signature),Issuer:this.issuer,Validity:new ce("",{"Not Before":i.validity.notBefore.getTime(),"Not After":i.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(i.issuerUniqueID&&(o["Issuer Unique ID"]=i.issuerUniqueID),i.subjectUniqueID&&(o["Subject Unique ID"]=i.subjectUniqueID),this.extensions.length){const s=new ce("");for(const a of this.extensions){const c=a.toTextObject();s[c[ce.NAME]]=c}o.Extensions=s}return t.Data=o,t.Signature=new ce("",{Algorithm:er.serializeAlgorithm(r.signatureAlgorithm),"":r.signatureValue}),t}}Yn.NAME="Certificate";class wi extends dt{static async create(t,r=!1,i=ze.get()){if(t instanceof Yn||tr.isCryptoKey(t)){const o=t instanceof Yn?await t.publicKey.export(i):t,s=await i.subtle.exportKey("spki",o),c=await new rr(s).getKeyIdentifier(i);return new wi(P.ToHex(c),r)}else return new wi(t,r)}constructor(...t){if(V.isBufferSource(t[0]))super(t[0]);else if(typeof t[0]=="string"){const r=new Gt({keyIdentifier:new jo(P.FromHex(t[0]))});super(Vo,t[1],M.serialize(r))}else{const r=t[0],i=r.name instanceof mi?M.parse(r.name.rawData,De):r.name,o=new Gt({authorityCertIssuer:i,authorityCertSerialNumber:P.FromHex(r.serialNumber)});super(Vo,t[1],M.serialize(o))}}onInit(t){super.onInit(t);const r=M.parse(t.extnValue,Gt);r.keyIdentifier&&(this.keyId=P.ToHex(r.keyIdentifier)),r.authorityCertIssuer&&r.authorityCertSerialNumber&&(this.certId={name:r.authorityCertIssuer,serialNumber:P.ToHex(r.authorityCertSerialNumber)})}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,Gt);return r.authorityCertIssuer&&(t["Authority Issuer"]=new mi(r.authorityCertIssuer).toTextObject()),r.authorityCertSerialNumber&&(t["Authority Serial Number"]=r.authorityCertSerialNumber),r.keyIdentifier&&(t[""]=r.keyIdentifier),t}}wi.NAME="Authority Key Identifier";class Zu extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,Ji);this.ca=r.cA,this.pathLength=r.pathLenConstraint}else{const r=new Ji({cA:t[0],pathLenConstraint:t[1]});super(el,t[2],M.serialize(r)),this.ca=t[0],this.pathLength=t[1]}}toTextObject(){const t=this.toTextObjectWithoutValue();return this.ca&&(t.CA=this.ca),this.pathLength!==void 0&&(t["Path Length"]=this.pathLength),t}}Zu.NAME="Basic Constraints";var Qu;(function(e){e.serverAuth="1.3.6.1.5.5.7.3.1",e.clientAuth="1.3.6.1.5.5.7.3.2",e.codeSigning="1.3.6.1.5.5.7.3.3",e.emailProtection="1.3.6.1.5.5.7.3.4",e.timeStamping="1.3.6.1.5.5.7.3.8",e.ocspSigning="1.3.6.1.5.5.7.3.9"})(Qu||(Qu={}));class Xu extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,en);this.usages=r.map(i=>i)}else{const r=new en(t[0]);super(sl,t[1],M.serialize(r)),this.usages=t[0]}}toTextObject(){const t=this.toTextObjectWithoutValue();return t[""]=this.usages.map(r=>Tt.toString(r)).join(", "),t}}Xu.NAME="Extended Key Usages";var ga;(function(e){e[e.digitalSignature=1]="digitalSignature",e[e.nonRepudiation=2]="nonRepudiation",e[e.keyEncipherment=4]="keyEncipherment",e[e.dataEncipherment=8]="dataEncipherment",e[e.keyAgreement=16]="keyAgreement",e[e.keyCertSign=32]="keyCertSign",e[e.cRLSign=64]="cRLSign",e[e.encipherOnly=128]="encipherOnly",e[e.decipherOnly=256]="decipherOnly"})(ga||(ga={}));class ba extends dt{constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,Jo);this.usages=r.toNumber()}else{const r=new Jo(t[0]);super(cl,t[1],M.serialize(r)),this.usages=t[0]}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,Jo);return t[""]=r.toJSON().join(", "),t}}ba.NAME="Key Usages";class Zn extends dt{static async create(t,r=!1,i=ze.get()){let o;t instanceof rr?o=t.rawData:"publicKey"in t?o=t.publicKey.rawData:V.isBufferSource(t)?o=t:o=await i.subtle.exportKey("spki",t);const a=await new rr(o).getKeyIdentifier(i);return new Zn(P.ToHex(a),r)}constructor(...t){if(V.isBufferSource(t[0])){super(t[0]);const r=M.parse(this.value,_t);this.keyId=P.ToHex(r)}else{const r=typeof t[0]=="string"?P.FromHex(t[0]):t[0],i=new _t(r);super(hl,t[1],M.serialize(i)),this.keyId=P.ToHex(r)}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=M.parse(this.value,_t);return t[""]=r,t}}Zn.NAME="Subject Key Identifier";class wa extends dt{constructor(...t){V.isBufferSource(t[0])?super(t[0]):super(fl,t[1],new mi(t[0]||[]).rawData)}onInit(t){super.onInit(t);const r=M.parse(t.extnValue,es);this.names=new mi(r)}toTextObject(){const t=this.toTextObjectWithoutValue(),r=this.names.toTextObject();for(const i in r)t[i]=r[i];return t}}wa.NAME="Subject Alternative Name";class ed extends dt{constructor(...t){var r;if(V.isBufferSource(t[0])){super(t[0]);const i=M.parse(this.value,Qi);this.policies=i.map(o=>o.policyIdentifier)}else{const i=t[0],o=(r=t[1])!==null&&r!==void 0?r:!1,s=new Qi(i.map(a=>new Zi({policyIdentifier:a})));super(rl,o,M.serialize(s)),this.policies=i}}toTextObject(){const t=this.toTextObjectWithoutValue();return t.Policy=this.policies.map(r=>new ce("",{},Tt.toString(r))),t}}ed.NAME="Certificate Policies",ft.register(rl,ed);class Vr extends Vt{constructor(...t){let r;if(V.isBufferSource(t[0]))r=V.toArrayBuffer(t[0]);else{const i=t[0],o=Array.isArray(t[1])?t[1].map(s=>V.toArrayBuffer(s)):[];r=M.serialize(new kt({type:i,values:o}))}super(r,kt)}onInit(t){this.type=t.type,this.values=t.values}toTextObject(){const t=this.toTextObjectWithoutValue();return t.Value=this.values.map(r=>new ce("",{"":r})),t}toTextObjectWithoutValue(){const t=this.toTextObjectEmpty();return t[ce.NAME]===Vr.NAME&&(t[ce.NAME]=Tt.toString(this.type)),t}}Vr.NAME="Attribute";class td extends Vr{constructor(...t){var r;if(V.isBufferSource(t[0]))super(t[0]);else{const i=new Fn({printableString:t[0]});super(Ql,[M.serialize(i)])}(r=this.password)!==null&&r!==void 0||(this.password="")}onInit(t){if(super.onInit(t),this.values[0]){const r=M.parse(this.values[0],Fn);this.password=r.toString()}}toTextObject(){const t=this.toTextObjectWithoutValue();return t[ce.VALUE]=this.password,t}}td.NAME="Challenge Password";class va extends Vr{constructor(...t){var r;if(V.isBufferSource(t[0]))super(t[0]);else{const i=t[0],o=new Wt;for(const s of i)o.push(M.parse(s.rawData,it));super(ta,[M.serialize(o)])}(r=this.items)!==null&&r!==void 0||(this.items=[])}onInit(t){if(super.onInit(t),this.values[0]){const r=M.parse(this.values[0],Wt);this.items=r.map(i=>ft.create(M.serialize(i)))}}toTextObject(){const t=this.toTextObjectWithoutValue(),r=this.items.map(i=>i.toTextObject());for(const i of r)t[i[ce.NAME]]=i;return t}}va.NAME="Extensions";class Qn{static register(t,r){this.items.set(t,r)}static create(t){const r=new Vr(t),i=this.items.get(r.type);return i?new i(t):r}}Qn.items=new Map;let ka=class{toAsnAlgorithm(t){switch(t.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in t){let r;if(typeof t.hash=="string")r=t.hash;else if(t.hash&&typeof t.hash=="object"&&"name"in t.hash&&typeof t.hash.name=="string")r=t.hash.name.toUpperCase();else throw new Error("Cannot get hash algorithm name");switch(r.toLowerCase()){case"sha-1":return new $({algorithm:In,parameters:null});case"sha-256":return new $({algorithm:Ds,parameters:null});case"sha-384":return new $({algorithm:En,parameters:null});case"sha-512":return new $({algorithm:Nn,parameters:null})}}else return new $({algorithm:Nr,parameters:null})}return null}toWebAlgorithm(t){switch(t.algorithm){case Nr:return{name:"RSASSA-PKCS1-v1_5"};case In:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case Ds:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case En:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case Nn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}}}return null}};ka=u([qs()],ka),Qe.registerSingleton(qn,ka);class Xe{addPadding(t,r){const i=V.toUint8Array(r),o=new Uint8Array(t);return o.set(i,t-i.length),o}removePadding(t,r=!1){let i=V.toUint8Array(t);for(let o=0;o<i.length;o++)if(i[o]){i=i.slice(o);break}if(r&&i[0]>127){const o=new Uint8Array(i.length+1);return o.set(i,1),o.buffer}return i.buffer}toAsnSignature(t,r){if(t.name==="ECDSA"){const i=t.namedCurve,o=Xe.namedCurveSize.get(i)||Xe.defaultNamedCurveSize,s=new Bn,a=V.toUint8Array(r);return s.r=this.removePadding(a.slice(0,o),!0),s.s=this.removePadding(a.slice(o,o+o),!0),M.serialize(s)}return null}toWebSignature(t,r){if(t.name==="ECDSA"){const i=M.parse(r,Bn),o=t.namedCurve,s=Xe.namedCurveSize.get(o)||Xe.defaultNamedCurveSize,a=this.addPadding(s,this.removePadding(i.r)),c=this.addPadding(s,this.removePadding(i.s));return qf(a,c)}return null}}Xe.namedCurveSize=new Map,Xe.defaultNamedCurveSize=32;const rd="1.3.101.110",id="1.3.101.111",nd="1.3.101.112",od="1.3.101.113";let Ca=class{toAsnAlgorithm(t){let r=null;switch(t.name.toLowerCase()){case"eddsa":switch(t.namedCurve.toLowerCase()){case"ed25519":r=nd;break;case"ed448":r=od;break}break;case"ecdh-es":switch(t.namedCurve.toLowerCase()){case"x25519":r=rd;break;case"x448":r=id;break}}return r?new $({algorithm:r}):null}toWebAlgorithm(t){switch(t.algorithm){case nd:return{name:"EdDSA",namedCurve:"Ed25519"};case od:return{name:"EdDSA",namedCurve:"Ed448"};case rd:return{name:"ECDH-ES",namedCurve:"X25519"};case id:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};Ca=u([qs()],Ca),Qe.registerSingleton(qn,Ca);class _h extends Bt{constructor(t){Bt.isAsnEncoded(t)?super(t,hi):super(t),this.tag=Ge.CertificateRequestTag}onInit(t){this.tbs=M.serialize(t.certificationRequestInfo),this.publicKey=new rr(t.certificationRequestInfo.subjectPKInfo);const r=Qe.resolve(zn);this.signatureAlgorithm=r.toWebAlgorithm(t.signatureAlgorithm),this.signature=t.signature,this.attributes=t.certificationRequestInfo.attributes.map(o=>Qn.create(M.serialize(o)));const i=this.getAttribute(ta);this.extensions=[],i instanceof va&&(this.extensions=i.items),this.subjectName=new jt(t.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(t){for(const r of this.attributes)if(r.type===t)return r;return null}getAttributes(t){return this.attributes.filter(r=>r.type===t)}getExtension(t){for(const r of this.extensions)if(r.type===t)return r;return null}getExtensions(t){return this.extensions.filter(r=>r.type===t)}async verify(t=ze.get()){const r={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(r,["verify"],t),o=Qe.resolveAll(Jn).reverse();let s=null;for(const c of o)if(s=c.toWebSignature(r,this.signature),s)break;if(!s)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await t.subtle.verify(this.signatureAlgorithm,i,s,this.tbs)}toTextObject(){const t=this.toTextObjectEmpty(),r=M.parse(this.rawData,hi),i=r.certificationRequestInfo,o=new ce("",{Version:`${yr[i.version]} (${i.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const s=new ce("");for(const a of this.attributes){const c=a.toTextObject();s[c[ce.NAME]]=c}o.Attributes=s}return t.Data=o,t.Signature=new ce("",{Algorithm:er.serializeAlgorithm(r.signatureAlgorithm),"":r.signature}),t}}_h.NAME="PKCS#10 Certificate Request";var sd;(function(e){e[e.unspecified=0]="unspecified",e[e.keyCompromise=1]="keyCompromise",e[e.cACompromise=2]="cACompromise",e[e.affiliationChanged=3]="affiliationChanged",e[e.superseded=4]="superseded",e[e.cessationOfOperation=5]="cessationOfOperation",e[e.certificateHold=6]="certificateHold",e[e.removeFromCRL=8]="removeFromCRL",e[e.privilegeWithdrawn=9]="privilegeWithdrawn",e[e.aACompromise=10]="aACompromise"})(sd||(sd={})),ft.register(el,Zu),ft.register(sl,Xu),ft.register(cl,ba),ft.register(hl,Zn),ft.register(Vo,wi),ft.register(fl,wa),Qn.register(Ql,td),Qn.register(ta,va),Qe.registerSingleton(Jn,Nh),Qe.registerSingleton(Jn,Xe),Xe.namedCurveSize.set("P-256",32),Xe.namedCurveSize.set("K-256",32),Xe.namedCurveSize.set("P-384",48),Xe.namedCurveSize.set("P-521",66);function ad(){return{parseMetaCertificateData:t=>{if(/{vault:\/\/.*}/g.test(t))throw new Error("not a X.509 certificate");const r=new Yn(t),i={subject:r.subjectName.toString(),issuer:r.issuer,notAfter:r.notAfter};for(const o of r.extensions)if(o instanceof wa){const s=o.names.toJSON(),c=Object.entries(s).map(l=>({type:l[1].type,value:l[1].value})).reduce((l,d)=>{const p=d.type,y=l[p]??[];return{...l,[p]:[...y,d.value]}},{});for(const l in c)i.subjectAltName=`${l}=${c[l].join(", ")}`}else if(o instanceof ba){const s=Object.values(ga),a=Array(s.length/2).fill(null).reduce((c,l,d)=>{const p=s[s.length/2+d];if(o.usages&p){const y=s[d];c.push(y)}return c},[]);i.keyUsage=a}return i}}}function Oh(){const e=ad(),t=n.ref({}),r=o=>{if(!(o.id in t.value))try{t.value[o.id]=e.parseMetaCertificateData(o.cert)}catch{t.value[o.id]=void 0}return t.value[o.id]};return{certificateDataCache:t,getCertificateData:o=>{const s=r(o);return{schemaIssuer:(s==null?void 0:s.issuer)||"",schemaSubject:(s==null?void 0:s.subject)||"",schemaExpiry:(s==null?void 0:s.notAfter)instanceof Date?s.notAfter.getTime()/1e3:0,schemaSanNames:(s==null?void 0:s.subjectAltName)||"",schemaKeyUsages:(s==null?void 0:s.keyUsage)||[]}}}}const Th={certificates:{title:"Certificates",list:{toolbar_actions:{new_certificate:"New Certificate"},table_headers:{subject:"Subject",expiry:"Expiry",san:"SAN",cert:"Cert",tags:"Tags",issuer:"Issuer",snis:"SNIs"},empty_state:{title:"Configure a New Certificate",description:"Certificates handle SSL/TLS termination for encrypted requests."}},form:{sections:{ssl:{title:"SSL Key Pair",description:"The PEM-encoded public certificate chain and private key of the SSL key pair and the alternate."},general:{title:"General Information",description:"General information will help identify and manage this key."}},fields:{cert:{label:"Cert",tooltip:"PEM-encoded public certificate chain of the SSL key pair. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},key:{label:"Key",tooltip:"PEM-encoded private key of the SSL key pair. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},cert_alt:{label:"Cert Alt",tooltip:"PEM-encoded public certificate chain of the alternate SSL key pair. This should only be set if you have both RSA and ECDSA types of certificate available and would like Kong to prefer serving using ECDSA certs when client advertises support for it. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},key_alt:{label:"Key Alt",tooltip:"PEM-encoded private key of the alternate SSL key pair. This should only be set if you have both RSA and ECDSA types of certificate available and would like Kong to prefer serving using ECDSA certs when client advertises support for it. This field is {emphasis}, which means it can be securely stored as a secret in a vault. References must follow a specific format.",emphasis:"referenceable"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}},actions:{create:"New Certificate",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",addSni:"Add to New SNI",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact ID"},delete:{title:"Delete a Certificate",description:"Your organization's original certificate {bolded-text}.",boldedText:"will not be affected",description2:"This action cannot be reversed so make sure to check the certificate usage before deleting."},errors:{general:"Certificates could not be retrieved",delete:"The certificate could not be deleted at this time",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}},"ca-certificates":{title:"CA Certificates",list:{toolbar_actions:{new_ca_certificate:"New CA Certificate"},table_headers:{issuer:"Issuer",expiry:"Expiry",tags:"Tags"},empty_state:{title:"Configure a New CA Certificate",description:"CA certificates validate client or server certificates."}},form:{sections:{cert:{title:"Public Certificate",description:"The PEM-encoded public certificate of the CA and it’s SHA256 hex digest."},general:{title:"General Information",description:"General information will help identify and manage this key."}},fields:{cert:{label:"Cert",tooltip:"PEM-encoded public certificate of the CA."},cert_digest:{label:"Cert Digest",tooltip:"SHA256 hex digest of the public certificate"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings for grouping and filtering, separated by commas."}}},actions:{create:"New CA Certificate",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details"},search:{placeholder:"Filter by exact ID"},delete:{title:"Delete a CA Certificate",description:"Your organization's original certificate {bolded-text}.",boldedText:"will not be affected",description2:"This action cannot be reversed so make sure to check the certificate usage before deleting."},errors:{general:"CA Certificates could not be retrieved",delete:"The CA Certificate could not be deleted at this time",copy:"Failed to copy to clipboard"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"}},general:{"key-usages":{KEY_USAGE_TYPE_KEY_CERT_SIGN:"keyCertSign",KEY_USAGE_TYPE_CRL_SIGN:"cRLSign",KEY_USAGE_TYPE_ENCIPHER_ONLY:"encipherOnly",KEY_USAGE_TYPE_DIGITAL_SIGNATURE:"digitalSignature",KEY_USAGE_TYPE_KEY_ENCIPHERMENT:"keyEncipherment",KEY_USAGE_TYPE_DATA_ENCIPHERMENT:"dataEncipherment",KEY_USAGE_TYPE_KEY_AGREEMENT:"keyAgreement",KEY_USAGE_TYPE_CONTENT_COMMITMENT:"nonRepudiation"}}};function Vh(){const e=ar.createI18n("en-us",Th);return{i18n:e,i18nT:ar.i18nTComponent(e)}}const pt={useCertificate:Oh,useI18n:Vh,useX509:ad},vi={list:{konnect:"/api/runtime_groups/{controlPlaneId}/certificates",kongManager:"/{workspace}/certificates"},form:{konnect:{create:"/api/runtime_groups/{controlPlaneId}/certificates",edit:"/api/runtime_groups/{controlPlaneId}/certificates/{id}",validate:"/api/runtime_groups/{controlPlaneId}/v1/schemas/json/certificate/validate"},kongManager:{create:"/{workspace}/certificates",edit:"/{workspace}/certificates/{id}",validate:"/{workspace}/schemas/certificates/validate"}}},jh={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},Dh="Copy to clipboard",Ph={message:jh,iconTitle:Dh},$h="kong-ui-copy-uuid-notify",Rh={class:"kong-ui-copy-uuid"},Mh=["onClick"],cd=15,Uh=n.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:t}){const r=e,{t:i}=ar.createI18n("en-us",Ph),o=r.notify||n.inject($h,()=>{}),s=n.computed(()=>r.idTooltip?{label:r.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:r.uuid}),a=n.computed(()=>!!(r.tooltip&&r.successTooltip)),c=n.ref(r.tooltip),l=n.computed(()=>r.tooltip?{label:c.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=n.computed(()=>r.format==="redacted"?"*****":r.format==="deleted"?`*${r.uuid.substring(0,5)}`:r.uuid),p=x=>{c.value=x,setTimeout(()=>{c.value=r.tooltip},1800)},y=x=>{if(!x(r.uuid)){typeof o=="function"&&o({type:"error",message:i("message.fail")}),a.value?p(i("message.fail")):t("error",r.uuid);return}const C=r.uuid.length>cd,h=r.format==="hidden"||r.format==="redacted"?i("message.success.prefix"):`"${r.uuid.substring(0,cd)+(C?"...":"")}"`;typeof o=="function"&&o({type:"success",message:`${h}${i("message.success.content")}`}),a.value?p(r.successTooltip):t("success",r.uuid)};return(x,C)=>{const h=n.resolveComponent("KIcon"),g=n.resolveComponent("KClipboardProvider");return n.openBlock(),n.createElementBlock("div",Rh,[e.format!=="hidden"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),n.mergeProps({key:0},s.value,{"data-testid":"copy-id"}),{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},n.toDisplayString(d.value),3)]),_:1},16)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),n.mergeProps(l.value,{class:"uuid-icon-wrapper"}),{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(({copyToClipboard:w})=>[n.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:n.withModifiers(v=>y(w),["stop"])},[n.createVNode(h,{class:"uuid-icon",color:e.iconColor,"hide-title":!!e.tooltip||void 0,icon:"copy",size:"16",title:n.unref(i)("iconTitle")},null,8,["color","hide-title","title"])],8,Mh)]),_:1})]),_:1},16))])}}}),Lh=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},Hh=Lh(Uh,[["__scopeId","data-v-bfdaf6f7"]]);var Sa=(e=>(e.GatewayService="service",e.Route="route",e.Consumer="consumer",e.ConsumerGroup="consumer group",e.Plugin="plugin",e.Upstream="upstream",e.Certificate="certificate",e.CACertificate="ca certificate",e.SNI="SNI",e.Key="key",e.KeySet="key set",e.Vault="vault",e.Application="application",e.Developer="developer",e.acls="ACL Credential",e["basic-auth"]="Basic Auth Credential",e["key-auth"]="Key Auth Credential",e["key-auth-enc"]="Key Auth Encrypted Credential",e.oauth2="OAuth 2.0 Credential",e["hmac-auth"]="HMAC Credential",e.jwt="JWT Credential",e.Target="target",e.Policy="policy",e))(Sa||{}),ir=(e=>(e.Edit="edit",e.Create="create",e))(ir||{}),Dt=(e=>(e[e.Loading=0]="Loading",e[e.Idle=1]="Idle",e[e.NoResults=2]="NoResults",e[e.Error=3]="Error",e))(Dt||{}),ne=(e=>(e.ID="id",e.IdArray="id-array",e.Text="plain-text",e.Date="date",e.Redacted="redacted",e.RedactedArray="redacted-array",e.Json="json",e.JsonArray="json-array",e.BadgeTag="badge-tag",e.BadgeStatus="badge-status",e.BadgeMethod="badge-method",e.LinkInternal="link-internal",e.LinkExternal="link-external",e))(ne||{}),le=(e=>(e.Basic="basic",e.Advanced="advanced",e.Plugin="plugin",e))(le||{});function xa(e={}){return{axiosInstance:Mf.create({withCredentials:!0,timeout:3e4,...e})}}function Fh(){return{debounce:(e,t)=>{let r;return(...i)=>{clearTimeout(r),r=window==null?void 0:window.setTimeout(()=>{e(...i)},t)}}}}const Aa="khcp-user-table-preferences",Kh={pageSize:30,sortColumnKey:void 0,sortColumnOrder:void 0};function qh(){const e=r=>{if(typeof r=="string")try{return JSON.parse(r)}catch(i){console.error("useTablePreferences(tryParseJson)",i);return}},t=()=>{const r=e(localStorage.getItem(Aa));return!r||!Object.keys(r).length?new Map:new Map(Object.entries(r))};return{setTablePreferences:(r,i)=>{try{const o=t();o.set(r,i),localStorage.setItem(Aa,JSON.stringify(Object.fromEntries(o.entries())))}catch(o){console.error("useTablePreferences(setTablePreferences)",o)}},getTablePreferences:r=>{const i=t();return(i==null?void 0:i.get(r))||void 0||Kh},deleteAllTablePreferences:()=>{localStorage.removeItem(Aa)}}}const zh={message:"Are you sure you want to delete this {entityType}?",messageWithName:"Are you sure you want to delete this {entityType} {entityName}?"},Gh={actions:{save:"Save",cancel:"Cancel",back:"Back"},errors:{edit:"The entity could not be edited at this time."}},Wh={emptyState:{noSearchResultsTitle:"No results found",noSearchResultsMessage:"Please adjust the criteria and try again.",noSearchResultsCtaText:"Clear"}},Jh={title:"Configuration",actions:{copy:"Copy JSON"},sections:{advanced:"Advanced",plugin:"Plugin Specific Configuration"},commonFields:{id_label:"ID",name_label:"Name",enabled_label:"Enabled",enabled_tooltip:"Enabled is FTW",updated_at_label:"Last Updated",created_at_label:"Created",tags_label:"Tags",link:"Link"},statusBadge:{enabledLabel:"Enabled",disabledLabel:"Disabled"},copy:{tooltip:"Copy {label}",success:"Copied!"},errors:{load:"The entity configuration data could not be loaded at this time.",copy:"Failed to copy to clipboard"},general:{entryTitle:"Entry {index}",structuredFormat:"Structured"}},Yh={filterButtonText:"Filter",fieldLabel:"Filter by:",inputPlaceholder:"Enter a value",selectPlaceholder:"Select an item",applyButtonText:"Apply",clearButtonText:"Clear",clearAllButtonText:"Clear all filters"},Zh={errors:{fetch:"Could not fetch available items",invalid:"Please select a valid value"}},Qh={unexpected:"An unexpected error has occurred",dataKeyUndefined:'The data key "{dataKey}" does not exist in the response.'},Xh={enable:{title:"Enable {entityType}",message:"Are you sure you want to enable the {entityType} {entityName}?",confirmText:"Yes, enable"},disable:{title:"Disable {entityType}",message:"Are you sure you want to disable the {entityType} {entityName}?",confirmText:"Yes, disable"}},ey={deleteModal:zh,baseForm:Gh,baseTable:Wh,baseConfigCard:Jh,filter:Yh,debouncedFilter:Zh,errors:Qh,toggleModal:Xh};function Ba(){const e=ar.createI18n("en-us",ey);return{i18n:e,i18nT:ar.i18nTComponent(e)}}function ty(e,t,r,i={fetchedItemsKey:"data",searchKeys:["id"]}){r||(r="100");const{axiosInstance:o}=xa({headers:e.requestHeaders}),{i18n:{t:s}}=Ba(),{debounce:a}=Fh(),c=a(async b=>{await v(b)},200),l=n.ref(!1),d=n.ref(""),p=n.ref(""),y=n.ref([]),x=n.ref(void 0),C=n.unref(t);let h=`${e.apiBaseUrl}${C}`;e.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,(e==null?void 0:e.controlPlaneId)||""):e.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,e!=null&&e.workspace?`/${e.workspace}`:""));const g=async()=>{try{l.value=!0;const{data:b}=await o.get(`${h}?size=${r}`);b!=null&&b.next||(x.value=i.fetchedItemsKey in b?b[i.fetchedItemsKey]:[]),y.value=i.fetchedItemsKey in b?b[i.fetchedItemsKey]:[]}catch{y.value=[],d.value=s("debouncedFilter.errors.fetch")}finally{l.value=!1}},w=n.ref(""),v=async b=>{var m,B;if(w.value!==b)if(w.value=b||"",x.value===void 0)try{l.value=!0,d.value="",p.value="";let q=h+"";b&&(q+=`/${b}`);const{data:J}=await o.get(`${q}?size=${r}`);i.fetchedItemsKey in J?y.value=J[i.fetchedItemsKey]:J!=null&&J.id?y.value=[J]:y.value=[]}catch(q){((m=q==null?void 0:q.response)==null?void 0:m.status)===404?p.value=s("debouncedFilter.errors.invalid"):(y.value=[],d.value=s("debouncedFilter.errors.fetch"))}finally{l.value=!1}else l.value=!0,p.value="",b?(y.value=(B=x.value)==null?void 0:B.filter(q=>{var J;let I=!1;for(const _ of i.searchKeys){const H=typeof q[_]=="string"?(J=q[_])==null?void 0:J.toLowerCase():q[_];H!=null&&H.includes(b.toLowerCase())&&(I=!0)}return I}),(!y.value||!y.value.length)&&(p.value=s("debouncedFilter.errors.invalid"))):y.value=x.value,l.value=!1};return{loading:l,error:d,validationError:p,results:y,allRecords:x,loadItems:g,debouncedQueryChange:c}}function ry(e,t){const r=n.unref(t),i=n.computed(()=>e.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${r}`):new URL(r));return i.value.search="",o=>`${i.value.href}/${o}`}function iy(){const{i18n:{t:e}}=Ba();return{getMessageFromError:t=>{var r,i,o;if(!t)return e("errors.unexpected");if((r=t==null?void 0:t.response)!=null&&r.data){if(t.response.data.detail)return t.response.data.detail;if((i=t.response.data.details)!=null&&i.length)return t.response.data.details.map(s=>{let a=e("errors.unexpected");return s.messages&&typeof s.messages=="object"&&s.messages.length&&(a=s.messages.join(", ")),s.field?`${s.field} - ${a}`:a}).join("; ");if(t.response.data.message){const{message:s}=t.response.data;return Array.isArray(s)?(o=s[0])!=null&&o.constraints?Object.values(s[0].constraints)[0]:s[0]:s}if(typeof t.response.data=="string")return t.response.data;if(typeof t.response.data=="object")return Object.keys(t.response.data).map(s=>`${s} ${t.response.data[s]}`).join(", ")}return t.message||e("errors.unexpected")}}}function ld(e,t){const r=n.ref(n.unref(e)),i=n.ref(n.unref(t)),o=n.computed(()=>!!(r.value.app==="konnect"||r.value.isExactMatch)),s=n.computed(()=>i.value.startsWith("/")?new URL(`${window.location.origin}${i.value}`):new URL(i.value));return a=>{const{page:c,pageSize:l,offset:d,sortColumnKey:p,sortColumnOrder:y,query:x}=a;try{let C=new URL(s.value.href);return o.value&&x?(C.search="",C=new URL(`${C.href}/${x}/`)):(o.value||new URLSearchParams(x).forEach((h,g)=>{C.searchParams.append(g,h)}),p&&C.searchParams.append("sort_by",p),y==="desc"&&C.searchParams.append("sort_desc","1"),C.searchParams.append("size",String(l))),d&&c!==1&&C.searchParams.append("offset",String(d)),C.href}catch(C){return console.error("RouteList(fetcher)",C),i.value}}}function ny(e,t,r="data"){const i=n.unref(t),{axiosInstance:o}=xa({headers:e.requestHeaders}),s=ld(e,i),a=n.ref({status:Dt.Idle});return{fetcher:async c=>{try{a.value={status:Dt.Loading};const l=s(c),{data:d}=await o.get(l),p=r&&r.replace(/[^\w-_]/gi,"");let y;d[p]&&Array.isArray(d[p])?y=d[p]:y=Object.keys(d).length?[d]:[];const x={data:y,total:y.length,...d.offset?{pagination:{offset:d.offset}}:null};return a.value={status:Dt.Idle,response:x},x}catch(l){const d={data:[],total:0};return c.query&&l.response.status===404?(a.value={status:Dt.NoResults,response:d,error:l},d):(a.value={status:Dt.Error,response:d,error:l},d)}},fetcherState:a}}function oy(){return{getPropValue:(e,t)=>(t==null?void 0:t[e])??void 0}}function sy(){return{convertKeyToTitle:(e,t="_")=>e?e.split(t).map(r=>r.toLowerCase()==="id"?r.toUpperCase():r.charAt(0).toUpperCase()+r.substring(1)).join(" "):""}}const ud=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,dd=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(ud);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},fd=e=>e==="*"||e==="x"||e==="X",pd=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},ay=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],cy=(e,t)=>{if(fd(e)||fd(t))return 0;const[r,i]=ay(pd(e),pd(t));return r>i?1:r<i?-1:0},hd=(e,t)=>{for(let r=0;r<Math.max(e.length,t.length);r++){const i=cy(e[r]||"0",t[r]||"0");if(i!==0)return i}return 0},ly=(e,t)=>{const r=dd(e),i=dd(t),o=r.pop(),s=i.pop(),a=hd(r,i);return a!==0?a:o&&s?hd(o.split("."),s.split(".")):o||s?o?-1:1:0},yd=(e,t,r)=>{uy(r);const i=ly(e,t);return md[r].includes(i)},md={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},gd=Object.keys(md),uy=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(gd.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${gd.join("|")}`)},dy=e=>typeof e=="string"&&/^[v\d]/.test(e)&&ud.test(e);function fy(e){const{gatewayInfo:t,supportedRange:r}=e;if(!t)return!0;const{edition:i,version:o}=t;if(!dy(o))return console.error("Invalid version"),!1;const s=r[i];if(!s)return!1;const[a,c]=s;return!(a&&yd(o,a,"<")||c&&yd(o,c,">"))}function py(e){const t=n.ref(0),r=n.ref(0),i=n.ref(!1);return n.watch(e,o=>{o&&!i.value&&(t.value=o.offsetWidth,r.value=o.scrollWidth,i.value=!0)}),{isTruncated:n.computed(()=>t.value<r.value)}}const Ae={useAxios:xa,useDebouncedFilter:ty,useDeleteUrlBuilder:ry,useErrors:iy,useFetcher:ny,useFetchUrlBuilder:ld,useHelpers:oy,useStringHelpers:sy,useI18n:Ba,useGatewayFeatureSupported:fy,useTruncationDetector:py},hy={fail:"Failed to copy id to clipboard",success:{prefix:"Successfully",content:" copied to clipboard"}},yy="Copy to clipboard",my={message:hy,iconTitle:yy},gy="kong-ui-copy-uuid-notify",by={class:"kong-ui-copy-uuid"},wy=["onClick"],bd=15,vy=n.defineComponent({__name:"CopyUuid",props:{uuid:{type:String,required:!0},idTooltip:{type:String,default:""},truncated:{type:Boolean,default:!0},useMono:{type:Boolean,default:!0},notify:{type:Function,default:void 0},iconColor:{type:String,default:"rgba(0, 0, 0, 0.45)"},tooltip:{type:String,default:""},successTooltip:{type:String,default:""},format:{type:String,required:!1,default:"uuid",validator:e=>["uuid","hidden","redacted","deleted"].includes(e)}},emits:["success","error"],setup(e,{emit:t}){const r=e,{t:i}=ar.createI18n("en-us",my),o=r.notify||n.inject(gy,()=>{}),s=n.computed(()=>r.idTooltip?{label:r.idTooltip,positionFixed:!0,placement:"bottomStart"}:{title:r.uuid}),a=n.computed(()=>!!(r.tooltip&&r.successTooltip)),c=n.ref(r.tooltip),l=n.computed(()=>r.tooltip?{label:c.value,positionFixed:!0,maxWidth:"500px",placement:"bottomStart"}:{}),d=n.computed(()=>r.format==="redacted"?"*****":r.format==="deleted"?`*${r.uuid.substring(0,5)}`:r.uuid),p=x=>{c.value=x,setTimeout(()=>{c.value=r.tooltip},1800)},y=x=>{if(!x(r.uuid)){typeof o=="function"&&o({type:"error",message:i("message.fail")}),a.value?p(i("message.fail")):t("error",r.uuid);return}const C=r.uuid.length>bd,h=r.format==="hidden"||r.format==="redacted"?i("message.success.prefix"):`"${r.uuid.substring(0,bd)+(C?"...":"")}"`;typeof o=="function"&&o({type:"success",message:`${h}${i("message.success.content")}`}),a.value?p(r.successTooltip):t("success",r.uuid)};return(x,C)=>{const h=n.resolveComponent("KIcon"),g=n.resolveComponent("KClipboardProvider");return n.openBlock(),n.createElementBlock("div",by,[e.format!=="hidden"?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.idTooltip?"KTooltip":"div"),n.mergeProps({key:0},s.value,{"data-testid":"copy-id"}),{default:n.withCtx(()=>[n.createElementVNode("div",{class:n.normalizeClass(["uuid-container",e.truncated?"truncated-uuid":null,e.useMono?"mono":null])},n.toDisplayString(d.value),3)]),_:1},16)):n.createCommentVNode("",!0),(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.tooltip?"KTooltip":"div"),n.mergeProps(l.value,{class:"uuid-icon-wrapper"}),{default:n.withCtx(()=>[n.createVNode(g,null,{default:n.withCtx(({copyToClipboard:w})=>[n.createElementVNode("span",{"data-testid":"copy-to-clipboard",role:"button",tabindex:"0",onClick:n.withModifiers(v=>y(w),["stop"])},[n.createVNode(h,{class:"uuid-icon",color:e.iconColor,"hide-title":!!e.tooltip||void 0,icon:"copy",size:"16",title:n.unref(i)("iconTitle")},null,8,["color","hide-title","title"])],8,wy)]),_:1})]),_:1},16))])}}}),ky=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},wd=ky(vy,[["__scopeId","data-v-bfdaf6f7"]]),Cy={key:0,class:"config-card-fieldset-title"},Sy=n.defineComponent({__name:"JsonCardItem",props:{item:{type:Object,required:!0},index:{type:Number,default:-1},isArrayItem:{type:Boolean,default:!1}},setup(e){const t=e,{i18n:{t:r}}=Ae.useI18n(),{convertKeyToTitle:i}=Ae.useStringHelpers(),o=n.computed(()=>t.item.key??"json-array-item"),s=n.computed(()=>t.item.value??t.item),a=n.computed(()=>{const l=JSON.parse(JSON.stringify(s.value));return t.isArrayItem&&delete l.name,l}),c=n.computed(()=>{var l;return t.isArrayItem?(l=s.value)!=null&&l.name?i(s.value.name,"_"):r("baseConfigCard.general.entryTitle",{index:t.index}):""});return(l,d)=>(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.isArrayItem?"fieldset":"div"),{class:n.normalizeClass(e.isArrayItem?"config-card-fieldset":"config-card-json-item")},{default:n.withCtx(()=>[e.isArrayItem?(n.openBlock(),n.createElementBlock("legend",Cy,[n.createElementVNode("b",null,n.toDisplayString(c.value),1)])):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(a.value),(p,y)=>(n.openBlock(),n.createBlock(ki,{key:`${o.value}-property-${y}`,item:{key:p,label:n.unref(i)(p),value:a.value[p]}},null,8,["item"]))),128))]),_:1},8,["class"]))}}),ot=(e,t)=>{const r=e.__vccOpts||e;for(const[i,o]of t)r[i]=o;return r},vd=ot(Sy,[["__scopeId","data-v-68ca83ec"]]),xy=ot(n.defineComponent({__name:"InternalLinkItem",props:{item:{type:Object,required:!0}},emits:["navigation-click"],setup(e){const{i18n:{t}}=Ae.useI18n();return(r,i)=>{const o=n.resolveComponent("KButton");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(o,{appearance:"btn-link",class:"navigation-button",onClick:i[0]||(i[0]=s=>r.$emit("navigation-click",e.item))},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.item.value||n.unref(t)("baseConfigCard.commonFields.link")),1)]),_:1})])}}}),[["__scopeId","data-v-7410504d"]]),Ay=n.defineComponent({__name:"StatusBadge",props:{status:{type:Boolean,default:!1}},setup(e){const{i18n:{t}}=Ae.useI18n();return(r,i)=>{const o=n.resolveComponent("KBadge");return n.openBlock(),n.createBlock(o,{appearance:e.status?"success":"neutral"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.status?n.unref(t)("baseConfigCard.statusBadge.enabledLabel"):n.unref(t)("baseConfigCard.statusBadge.disabledLabel")),1)]),_:1},8,["appearance"])}}}),By="#0044f4",Iy="#e0e4ea",Ey="#3a3f51",Ny="1px",_y="20px",Oy={class:"config-card-details-row"},Ty=["data-testid"],Vy=["data-testid"],jy=["data-testid"],Dy=["data-testid"],Py={key:1},$y=["data-testid"],Ry=["data-testid"],My=["data-testid"],Uy=["data-testid"],Ly={name:"ConfigCardItem",components:{CopyUuid:wd,JsonCardItem:vd,StatusBadge:Ay,InternalLinkItem:xy}},Hy=n.defineComponent({...Ly,props:{item:{type:Object,required:!0},slim:{type:Boolean,required:!1,default:!1},truncated:{type:Boolean,required:!1,default:!1}},emits:["navigation-click"],setup(e,{emit:t}){const r=e;n.useCssVars(C=>({"77b12766":d.value?"none":`solid ${n.unref(Ny)} ${n.unref(Iy)}`,"500c4499":l.value&&a.value?"block":"flex","132371a7":l.value&&a.value?"100%":r.slim?"50%":"25%","1325b782":l.value&&a.value?"100%":r.slim?"50%":"75%"}));const i=n.useSlots(),{i18n:{t:o,formatUnixTimeStamp:s}}=Ae.useI18n(),a=n.computed(()=>r.item.value!==void 0&&r.item.value!==null&&r.item.value!==""),c=n.computed(()=>!!(r.item.tooltip||i["label-tooltip"])),l=n.computed(()=>r.item.type===ne.Json||r.item.type===ne.JsonArray),d=n.computed(()=>r.item.type===ne.JsonArray),p=n.computed(()=>{switch(r.item.type){case ne.ID:return{tag:"CopyUuid",attrs:{"data-testid":`${r.item.key}-copy-uuid`,"success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,uuid:r.item.value,notify:()=>{}}};case ne.IdArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{"success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,notify:()=>{}}};case ne.Redacted:return{tag:"CopyUuid",attrs:{"data-testid":`${r.item.key}-copy-uuid-redacted`,format:"redacted","success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,uuid:r.item.value,notify:()=>{}}};case ne.RedactedArray:return{tag:"div",additionalComponent:"CopyUuid",childAttrs:{format:"redacted","success-tooltip":o("baseConfigCard.copy.success"),tooltip:o("baseConfigCard.copy.tooltip",{label:r.item.label}),truncated:!1,notify:()=>{}}};case ne.Date:return{tag:"div",attrs:{"data-testid":`${r.item.key}-date`},text:s(r.item.value)};case ne.BadgeStatus:return{tag:"StatusBadge",attrs:{"data-testid":`${r.item.key}-badge-status`,status:r.item.value}};case ne.BadgeTag:return{tag:"div",additionalComponent:"KBadge"};case ne.BadgeMethod:return{tag:"div",additionalComponent:"KMethodBadge"};case ne.LinkInternal:return{tag:"InternalLinkItem",attrs:{"data-testid":`${r.item.key}-internal-link`,item:r.item,onNavigationClick:C=>{t("navigation-click",C)}}};case ne.LinkExternal:return{tag:"KExternalLink",attrs:{"data-testid":`${r.item.key}-external-link`,href:r.item.value},text:r.item.value};case ne.Json:return{tag:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-content`,item:r.item}};case ne.JsonArray:return{tag:"div",additionalComponent:"JsonCardItem",attrs:{"data-testid":`${r.item.key}-json-array-content`,item:r.item}};default:return{tag:"KTooltip",attrs:{"data-testid":`${r.item.key}-plain-text`},text:r.item.value}}}),y=n.ref(),{isTruncated:x}=Ae.useTruncationDetector(y);return(C,h)=>{const g=n.resolveComponent("KLabel"),w=n.resolveComponent("KBadge"),v=n.resolveComponent("KMethodBadge"),b=n.resolveComponent("KTooltip");return n.openBlock(),n.createElementBlock("div",Oy,[n.createElementVNode("div",{class:"config-card-details-label","data-testid":`${e.item.key}-label`},[n.renderSlot(C.$slots,"label",{item:e.item},()=>[n.createVNode(g,{"tooltip-attributes":{maxWidth:"500px"}},n.createSlots({default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(e.item.label)+" ",1)]),_:2},[c.value?{name:"tooltip",fn:n.withCtx(()=>[n.createElementVNode("div",{"data-testid":`${e.item.key}-label-tooltip`},[n.renderSlot(C.$slots,"label-tooltip",{},()=>[n.createTextVNode(n.toDisplayString(e.item.tooltip),1)],!0)],8,Vy)]),key:"0"}:void 0]),1024)],!0)],8,Ty),n.createElementVNode("div",{class:"config-card-details-value","data-testid":`${e.item.key}-property-value`},[n.renderSlot(C.$slots,e.item.key,{rowValue:e.item.value},()=>[a.value?(n.openBlock(),n.createElementBlock("div",Py,[(n.openBlock(),n.createBlock(n.resolveDynamicComponent(p.value.tag),n.normalizeProps(n.guardReactiveProps(p.value.attrs)),{default:n.withCtx(()=>[p.value.additionalComponent==="KBadge"?(n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-badge-tags`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(w,{key:`${e.item.key}-badge-tag-${B}`,class:"config-badge","data-testid":`${e.item.key}-badge-tag-${B}`,"truncation-tooltip":m},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["data-testid","truncation-tooltip"]))),128))],8,$y)):n.createCommentVNode("",!0),p.value.additionalComponent==="CopyUuid"?(n.openBlock(),n.createElementBlock("div",{key:1,class:"copy-uuid-array","data-testid":`${e.item.key}-copy-uuid-array`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(n.unref(wd),n.mergeProps(p.value.childAttrs,{key:`${e.item.key}-copy-uuid-${B}`,"data-testid":`${e.item.key}-copy-uuid-${B}`,uuid:m}),null,16,["data-testid","uuid"]))),128))],8,Ry)):p.value.additionalComponent==="KMethodBadge"?(n.openBlock(),n.createElementBlock("div",{key:2,class:"method-badge-array","data-testid":`${e.item.key}-badge-methods`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(v,{key:`${e.item.key}-badge-method-${B}`,class:"config-badge","data-testid":`${e.item.key}-badge-method-${B}`,"is-rounded":"",label:m,method:n.unref(Uf.MethodsArray).includes(m.toLowerCase())?m.toLowerCase():"custom"},{default:n.withCtx(()=>[n.createTextVNode(n.toDisplayString(m),1)]),_:2},1032,["data-testid","label","method"]))),128))],8,My)):n.createCommentVNode("",!0),p.value.additionalComponent==="JsonCardItem"?(n.openBlock(),n.createElementBlock("div",{key:3,"data-testid":`${r.item.key}-json-array-content`},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(e.item.value,(m,B)=>(n.openBlock(),n.createBlock(vd,{key:`json-array-item-${B}`,index:B,"is-array-item":"",item:m},null,8,["index","item"]))),128))],8,Uy)):(n.openBlock(),n.createBlock(b,{key:4,label:n.unref(x)&&e.item.value},{default:n.withCtx(()=>[n.createElementVNode("span",{ref_key:"textContent",ref:y,class:n.normalizeClass(["attrs-data-text",{truncated:e.truncated}])},n.toDisplayString(p.value.text),3)]),_:1},8,["label"]))]),_:1},16))])):(n.openBlock(),n.createElementBlock("div",{key:0,"data-testid":`${e.item.key}-no-value`}," – ",8,Dy))],!0)],8,jy)])}}}),ki=ot(Hy,[["__scopeId","data-v-9465176b"]]);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function kd(e){return typeof e>"u"||e===null}function Fy(e){return typeof e=="object"&&e!==null}function Ky(e){return Array.isArray(e)?e:kd(e)?[]:[e]}function qy(e,t){var r,i,o,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)o=s[r],e[o]=t[o];return e}function zy(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function Gy(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Wy=kd,Jy=Fy,Yy=Ky,Zy=zy,Qy=Gy,Xy=qy,Se={isNothing:Wy,isObject:Jy,toArray:Yy,repeat:Zy,isNegativeZero:Qy,extend:Xy};function Cd(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
118
118
 
119
119
  `+e.mark.snippet),i+" "+r):i}function Ci(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Cd(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ci.prototype=Object.create(Error.prototype),Ci.prototype.constructor=Ci,Ci.prototype.toString=function(e){return this.name+": "+Cd(this,e)};var Pe=Ci;function Ia(e,t,r,i,o){var s="",a="",c=Math.floor(o/2)-1;return i-t>c&&(s=" ... ",t=i-c+s.length),r-i>c&&(a=" ...",r=i+c-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:i-t+s.length}}function Ea(e,t){return Se.repeat(" ",t-e.length)+e}function em(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],o=[],s,a=-1;s=r.exec(e.buffer);)o.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);var c="",l,d,p=Math.min(e.line+t.linesAfter,o.length).toString().length,y=t.maxLength-(t.indent+p+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)d=Ia(e.buffer,i[a-l],o[a-l],e.position-(i[a]-i[a-l]),y),c=Se.repeat(" ",t.indent)+Ea((e.line-l+1).toString(),p)+" | "+d.str+`
120
120
  `+c;for(d=Ia(e.buffer,i[a],o[a],e.position,y),c+=Se.repeat(" ",t.indent)+Ea((e.line+1).toString(),p)+" | "+d.str+`
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-7410504d] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-f68d4fa1]{border-bottom:var(--11ca2174);display:var(--57a0f6a7);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-f68d4fa1]{width:var(--66118e4e)}.config-card-details-row .config-card-details-label label[data-v-f68d4fa1]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-f68d4fa1]{width:var(--660d0298)}.config-card-details-row .config-card-details-value .truncated[data-v-f68d4fa1]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-f68d4fa1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-f68d4fa1] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-f68d4fa1]{display:flex}.config-card-details-row .config-badge[data-v-f68d4fa1]{margin-right:4px}.config-card-details-row[data-v-f68d4fa1] .k-input-label{margin-bottom:0}.config-card-details-row[data-v-f68d4fa1] .k-input-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-f68d4fa1] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-6c45e9e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-64349aa2]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-64349aa2]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-64349aa2]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-64349aa2]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-44a90aae]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-44a90aae]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-44a90aae] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-f8a220e9] [role=button]{display:inline}.kong-ui-entity-base-table .toolbar-container[data-v-6bf92df6]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-6bf92df6]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6]{float:right}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-6bf92df6]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-745f38c0]{width:100%}.kong-ui-entity-filter[data-v-745f38c0]{display:flex;position:relative}.kong-ui-entity-filter[data-v-745f38c0] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-745f38c0] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-745f38c0]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-745f38c0]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-745f38c0]{align-items:center;display:flex}.menu-item-indicator[data-v-745f38c0]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-745f38c0]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-745f38c0] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-745f38c0] .k-input-wrapper{width:100%}.menu-item-body[data-v-745f38c0] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-745f38c0] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-745f38c0]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-745f38c0]{display:flex;justify-content:space-between;margin:10px 0 6px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-copy-uuid[data-v-bfdaf6f7]{display:flex}.kong-ui-copy-uuid .uuid-container[data-v-bfdaf6f7]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-bfdaf6f7]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-bfdaf6f7]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-bfdaf6f7]{display:flex}.kong-ui-entities-certificates-list[data-v-7079e57f]{width:100%}.kong-ui-entities-certificates-list .kong-ui-entity-filter-input[data-v-7079e57f]{width:300px}.kong-ui-entities-certificates-form[data-v-ba62e0cc],.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-ba62e0cc]{width:100%}.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-ba62e0cc] .k-tooltip{max-width:300px}.kong-ui-ca-certificate-entity-config-card[data-v-5110105b] .config-badge{margin-right:4px}.kong-ui-ca-certificate-entity-config-card .metadata-label[data-v-5110105b]{font-size:16px}.kong-ui-entities-ca-certificates-list[data-v-d539b808]{width:100%}.kong-ui-entities-ca-certificates-list .kong-ui-entity-filter-input[data-v-d539b808]{width:300px}.kong-ui-entities-ca-certificates-form[data-v-a1cf8ed1],.kong-ui-entities-ca-certificates-form .certificate-form-textarea[data-v-a1cf8ed1]{width:100%}.kong-ui-certificate-entity-config-card[data-v-69ded264] .config-badge{margin-right:4px}.kong-ui-certificate-entity-config-card .metadata-label[data-v-69ded264]{font-size:16px}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-7410504d] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-9465176b]{border-bottom:var(--77b12766);display:var(--500c4499);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-9465176b]{width:var(--132371a7)}.config-card-details-row .config-card-details-label label[data-v-9465176b]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-9465176b]{width:var(--1325b782)}.config-card-details-row .config-card-details-value .truncated[data-v-9465176b]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-9465176b]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-9465176b] .kong-ui-copy-uuid:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-9465176b]{display:flex}.config-card-details-row .config-badge[data-v-9465176b]{margin-right:4px}.config-card-details-row[data-v-9465176b] .k-input-label{margin-bottom:0}.config-card-details-row[data-v-9465176b] .k-input-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-9465176b] .config-card-details-row{width:auto}.config-card-display-json #config-card-codeblock .k-highlighted-code-block code,.config-card-display-yaml #config-card-codeblock .k-highlighted-code-block code{background-color:#232633}.config-card-prop-section-title[data-v-6c45e9e4]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .k-card-content .k-card-body{font-size:14px}.kong-ui-entity-base-config-card .config-card-actions[data-v-64349aa2]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-64349aa2]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-64349aa2]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-64349aa2] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-64349aa2]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-44a90aae]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-44a90aae]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-44a90aae] .k-button:last-of-type{margin-left:16px}.content-wrapper[data-v-f8a220e9] [role=button]{display:inline}.kong-ui-entity-base-table .toolbar-container[data-v-6bf92df6]{align-items:center}.kong-ui-entity-base-table .toolbar-button-container[data-v-6bf92df6]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6]{float:right}.kong-ui-entity-base-table .actions-container[data-v-6bf92df6] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-6bf92df6]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.k-tabs>.tab-container>.kong-ui-entity-base-table,.k-tabs>.tab-container>[class^=kong-ui-entities-]>.kong-ui-entity-base-table{border-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-1c9a2a07],.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-1c9a2a07]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-1c9a2a07]{margin-top:32px}.kong-ui-entity-delete-error[data-v-1c9a2a07]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-745f38c0]{width:100%}.kong-ui-entity-filter[data-v-745f38c0]{display:flex;position:relative}.kong-ui-entity-filter[data-v-745f38c0] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-745f38c0] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-745f38c0]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-745f38c0]{box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;position:absolute;top:100%;z-index:1060}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus{box-shadow:none}.kong-ui-entity-filter-menu[data-v-745f38c0] .k-menu-item .menu-button:focus-visible{box-shadow:0 0 0 1px #bee2ff}.menu-item-title[data-v-745f38c0]{align-items:center;display:flex}.menu-item-indicator[data-v-745f38c0]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-745f38c0]{align-items:center;display:flex;justify-content:space-between}.menu-item-body[data-v-745f38c0] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-745f38c0] .k-input-wrapper{width:100%}.menu-item-body[data-v-745f38c0] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-745f38c0] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-745f38c0]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-745f38c0]{display:flex;justify-content:space-between;margin:10px 0 6px}fieldset[data-v-8b6dc312]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-8b6dc312]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-8b6dc312]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-8b6dc312]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-8b6dc312]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-8b6dc312]{color:#000933;font-size:18px;font-weight:600;line-height:24px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-8b6dc312],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-8b6dc312] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-8b6dc312]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-8b6dc312]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-8b6dc312]{border-bottom:1px solid #e0e4ea}.kong-ui-copy-uuid[data-v-bfdaf6f7]{display:flex}.kong-ui-copy-uuid .uuid-container[data-v-bfdaf6f7]{margin-right:12px;white-space:nowrap}.kong-ui-copy-uuid .truncated-uuid[data-v-bfdaf6f7]{margin-right:1ch;max-width:10ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-copy-uuid .uuid-icon-wrapper[data-v-bfdaf6f7]{align-items:center;cursor:pointer;display:flex}.kong-ui-copy-uuid .uuid-icon[data-v-bfdaf6f7]{display:flex}.kong-ui-entities-certificates-list[data-v-7079e57f]{width:100%}.kong-ui-entities-certificates-list .kong-ui-entity-filter-input[data-v-7079e57f]{width:300px}.kong-ui-entities-certificates-form[data-v-ba62e0cc],.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-ba62e0cc]{width:100%}.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-ba62e0cc] .k-tooltip{max-width:300px}.kong-ui-ca-certificate-entity-config-card[data-v-5110105b] .config-badge{margin-right:4px}.kong-ui-ca-certificate-entity-config-card .metadata-label[data-v-5110105b]{font-size:16px}.kong-ui-entities-ca-certificates-list[data-v-d539b808]{width:100%}.kong-ui-entities-ca-certificates-list .kong-ui-entity-filter-input[data-v-d539b808]{width:300px}.kong-ui-entities-ca-certificates-form[data-v-a1cf8ed1],.kong-ui-entities-ca-certificates-form .certificate-form-textarea[data-v-a1cf8ed1]{width:100%}.kong-ui-certificate-entity-config-card[data-v-69ded264] .config-badge{margin-right:4px}.kong-ui-certificate-entity-config-card .metadata-label[data-v-69ded264]{font-size:16px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-certificates",
3
- "version": "1.3.9",
3
+ "version": "1.3.10",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-certificates.umd.js",
6
6
  "module": "./dist/entities-certificates.es.js",
@@ -48,7 +48,7 @@
48
48
  "dependencies": {
49
49
  "@peculiar/x509": "^1.9.5",
50
50
  "@kong-ui-public/copy-uuid": "^1.3.4",
51
- "@kong-ui-public/entities-shared": "^1.6.7"
51
+ "@kong-ui-public/entities-shared": "^1.6.8"
52
52
  },
53
53
  "distSizeChecker": {
54
54
  "errorLimit": "1.5MB"