@kong-ui-public/entities-certificates 3.7.0 → 3.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -114,4 +114,4 @@ ${e.join(`
114
114
  `)}static pad(e=0){return"".padStart(2*e," ")}static serializeObj(e,t=0){const i=[];let n=this.pad(t++),s="";const c=e[oe.VALUE];c&&(s=` ${c}`),i.push(`${n}${e[oe.NAME]}:${s}`),n=this.pad(t);for(const u in e){if(typeof u=="symbol")continue;const f=e[u],p=u?`${u}: `:"";if(typeof f=="string"||typeof f=="number"||typeof f=="boolean")i.push(`${n}${p}${f}`);else if(f instanceof Date)i.push(`${n}${p}${f.toUTCString()}`);else if(Array.isArray(f))for(const b of f)b[oe.NAME]=u,i.push(...this.serializeObj(b,t));else if(f instanceof oe)f[oe.NAME]=u,i.push(...this.serializeObj(f,t));else if(_.isBufferSource(f))u?(i.push(`${n}${p}`),i.push(...this.serializeBufferSource(f,t+1))):i.push(...this.serializeBufferSource(f,t));else if("toTextObject"in f){const b=f.toTextObject();b[oe.NAME]=u,i.push(...this.serializeObj(b,t))}else throw new TypeError("Cannot serialize data in text format. Unsupported type.")}return i}static serializeBufferSource(e,t=0){const i=this.pad(t),n=_.toUint8Array(e),s=[];for(let c=0;c<n.length;){const u=[];for(let f=0;f<16&&c<n.length;f++){f===8&&u.push("");const p=n[c++].toString(16).padStart(2,"0");u.push(p)}s.push(`${i}${u.join(" ")}`)}return s}static serializeAlgorithm(e){return this.algorithmSerializer.toTextObject(e)}}Qt.oidSerializer=It,Qt.algorithmSerializer=Od;class Nt{constructor(...e){if(e.length===1){const t=e[0];this.rawData=j.serialize(t),this.onInit(t)}else{const t=j.parse(e[0],e[1]);this.rawData=_.toArrayBuffer(e[0]),this.onInit(t)}}equal(e){return e instanceof Nt?xa(e.rawData,this.rawData):!1}toString(e="text"){switch(e){case"asn":return j.toString(this.rawData);case"text":return Qt.serialize(this.toTextObject());case"hex":return L.ToHex(this.rawData);case"base64":return L.ToBase64(this.rawData);case"base64url":return L.ToBase64Url(this.rawData);default:throw TypeError("Argument 'format' is unsupported value")}}getTextName(){return this.constructor.NAME}toTextObject(){const e=this.toTextObjectEmpty();return e[""]=this.rawData,e}toTextObjectEmpty(e){return new oe(this.getTextName(),{},e)}}Nt.NAME="ASN";class Ke extends Nt{constructor(...e){let t;_.isBufferSource(e[0])?t=_.toArrayBuffer(e[0]):t=j.serialize(new Qe({extnID:e[0],critical:e[1],extnValue:new ne(_.toArrayBuffer(e[2]))})),super(t,Qe)}onInit(e){this.type=e.extnID,this.critical=e.critical,this.value=e.extnValue.buffer}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.value,e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty(this.critical?"critical":void 0);return e[oe.NAME]===Ke.NAME&&(e[oe.NAME]=It.toString(this.type)),e}}var ku;class Ot{static isCryptoKeyPair(e){return e&&e.privateKey&&e.publicKey}static isCryptoKey(e){return e&&e.usages&&e.type&&e.algorithm&&e.extractable!==void 0}constructor(){this.items=new Map,this[ku]="CryptoProvider",typeof self<"u"&&typeof crypto<"u"?this.set(Ot.DEFAULT,crypto):typeof global<"u"&&global.crypto&&global.crypto.subtle&&this.set(Ot.DEFAULT,global.crypto)}clear(){this.items.clear()}delete(e){return this.items.delete(e)}forEach(e,t){return this.items.forEach(e,t)}has(e){return this.items.has(e)}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(e=Ot.DEFAULT){const t=this.items.get(e.toLowerCase());if(!t)throw new Error(`Cannot get Crypto by name '${e}'`);return t}set(e,t){if(typeof e=="string"){if(!t)throw new TypeError("Argument 'value' is required");this.items.set(e.toLowerCase(),t)}else this.items.set(Ot.DEFAULT,e);return this}}ku=Symbol.toStringTag,Ot.DEFAULT="default";const Ne=new Ot,Td=/^[0-2](?:\.[1-9][0-9]*)+$/;function Vd(r){return new RegExp(Td).test(r)}class Cu{constructor(e={}){this.items={};for(const t in e)this.register(t,e[t])}get(e){return this.items[e]||null}findId(e){return Vd(e)?e:this.get(e)}register(e,t){this.items[e]=t,this.items[t]=e}}const Pe=new Cu;Pe.register("CN","2.5.4.3"),Pe.register("L","2.5.4.7"),Pe.register("ST","2.5.4.8"),Pe.register("O","2.5.4.10"),Pe.register("OU","2.5.4.11"),Pe.register("C","2.5.4.6"),Pe.register("DC","0.9.2342.19200300.100.1.25"),Pe.register("E","1.2.840.113549.1.9.1"),Pe.register("G","2.5.4.42"),Pe.register("I","2.5.4.43"),Pe.register("SN","2.5.4.4"),Pe.register("T","2.5.4.12");function _d(r,e){return`\\${L.ToHex(L.FromUtf8String(e)).toUpperCase()}`}function jd(r){return r.replace(/([,+"\\<>;])/g,"\\$1").replace(/^([ #])/,"\\$1").replace(/([ ]$)/,"\\$1").replace(/([\r\n\t])/,_d)}class Tt{static isASCII(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>255)return!1;return!0}static isPrintableString(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/g.test(e)}constructor(e,t={}){this.extraNames=new Cu,this.asn=new he;for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)){const n=t[i];this.extraNames.register(i,n)}typeof e=="string"?this.asn=this.fromString(e):e instanceof he?this.asn=e:_.isBufferSource(e)?this.asn=j.parse(e,he):this.asn=this.fromJSON(e)}getField(e){const t=this.extraNames.findId(e)||Pe.findId(e),i=[];for(const n of this.asn)for(const s of n)s.type===t&&i.push(s.value.toString());return i}getName(e){return this.extraNames.get(e)||Pe.get(e)}toString(){return this.asn.map(e=>e.map(t=>{const i=this.getName(t.type)||t.type,n=t.value.anyValue?`#${L.ToHex(t.value.anyValue)}`:jd(t.value.toString());return`${i}=${n}`}).join("+")).join(", ")}toJSON(){var e;const t=[];for(const i of this.asn){const n={};for(const s of i){const c=this.getName(s.type)||s.type;(e=n[c])!==null&&e!==void 0||(n[c]=[]),n[c].push(s.value.anyValue?`#${L.ToHex(s.value.anyValue)}`:s.value.toString())}t.push(n)}return t}fromString(e){const t=new he,i=/(\d\.[\d.]*\d|[A-Za-z]+)=((?:"")|(?:".*?[^\\]")|(?:[^,+].*?(?:[^\\][,+]))|(?:))([,+])?/g;let n=null,s=",";for(;n=i.exec(`${e},`);){let[,c,u]=n;const f=u[u.length-1];(f===","||f==="+")&&(u=u.slice(0,u.length-1),n[3]=f);const p=n[3];c=this.getTypeOid(c);const b=this.createAttribute(c,u);s==="+"?t[t.length-1].push(b):t.push(new nr([b])),s=p}return t}fromJSON(e){const t=new he;for(const i of e){const n=new nr;for(const s in i){const c=this.getTypeOid(s),u=i[s];for(const f of u){const p=this.createAttribute(c,f);n.push(p)}}t.push(n)}return t}getTypeOid(e){if(/[\d.]+/.test(e)||(e=this.getName(e)||""),!e)throw new Error(`Cannot get OID for name type '${e}'`);return e}createAttribute(e,t){const i=new _i({type:e});if(typeof t=="object")for(const n in t)switch(n){case"ia5String":i.value.ia5String=t[n];break;case"utf8String":i.value.utf8String=t[n];break;case"universalString":i.value.universalString=t[n];break;case"bmpString":i.value.bmpString=t[n];break;case"printableString":i.value.printableString=t[n];break}else if(t[0]==="#")i.value.anyValue=L.FromHex(t.slice(1));else{const n=this.processStringValue(t);e===this.getName("E")||e===this.getName("DC")?i.value.ia5String=n:Tt.isPrintableString(n)?i.value.printableString=n:i.value.utf8String=n}return i}processStringValue(e){const t=/"(.*?[^\\])?"/.exec(e);return t&&(e=t[1]),e.replace(/\\0a/ig,`
115
115
  `).replace(/\\0d/ig,"\r").replace(/\\0g/ig," ").replace(/\\(.)/g,"$1")}toArrayBuffer(){return j.serialize(this.asn)}async getThumbprint(...e){var t;let i,n="SHA-1";return e.length>=1&&!(!((t=e[0])===null||t===void 0)&&t.subtle)?(n=e[0]||n,i=e[1]||Ne.get()):i=e[0]||Ne.get(),await i.subtle.digest(n,this.toArrayBuffer())}}const xu="Cannot initialize GeneralName from ASN.1 data.",Bu=`${xu} Unsupported string format in use.`,Pd=`${xu} Value doesn't match to GUID regular expression.`,Eu=/^([0-9a-f]{8})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{4})-?([0-9a-f]{12})$/i,Iu="1.3.6.1.4.1.311.25.1",Nu="1.3.6.1.4.1.311.20.2.3",ea="dns",ta="dn",ra="email",ia="ip",na="url",oa="guid",sa="upn",Un="id";class Vt extends Nt{constructor(...e){let t;if(e.length===2)switch(e[0]){case ta:{const i=new Tt(e[1]).toArrayBuffer(),n=j.parse(i,he);t=new Z({directoryName:n});break}case ea:t=new Z({dNSName:e[1]});break;case ra:t=new Z({rfc822Name:e[1]});break;case oa:{const i=new RegExp(Eu,"i").exec(e[1]);if(!i)throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");const n=i.slice(1).map((s,c)=>c<3?L.ToHex(new Uint8Array(L.FromHex(s)).reverse()):s).join("");t=new Z({otherName:new Rr({typeId:Iu,value:j.serialize(new ne(L.FromHex(n)))})});break}case ia:t=new Z({iPAddress:e[1]});break;case Un:t=new Z({registeredID:e[1]});break;case sa:{t=new Z({otherName:new Rr({typeId:Nu,value:j.serialize(Ec.toASN(e[1]))})});break}case na:t=new Z({uniformResourceIdentifier:e[1]});break;default:throw new Error("Cannot create GeneralName. Unsupported type of the name")}else _.isBufferSource(e[0])?t=j.parse(e[0],Z):t=e[0];super(t)}onInit(e){if(e.dNSName!=null)this.type=ea,this.value=e.dNSName;else if(e.rfc822Name!=null)this.type=ra,this.value=e.rfc822Name;else if(e.iPAddress!=null)this.type=ia,this.value=e.iPAddress;else if(e.uniformResourceIdentifier!=null)this.type=na,this.value=e.uniformResourceIdentifier;else if(e.registeredID!=null)this.type=Un,this.value=e.registeredID;else if(e.directoryName!=null)this.type=ta,this.value=new Tt(e.directoryName).toString();else if(e.otherName!=null)if(e.otherName.typeId===Iu){this.type=oa;const t=j.parse(e.otherName.value,ne),i=new RegExp(Eu,"i").exec(L.ToHex(t));if(!i)throw new Error(Pd);this.value=i.slice(1).map((n,s)=>s<3?L.ToHex(new Uint8Array(L.FromHex(n)).reverse()):n).join("-")}else if(e.otherName.typeId===Nu)this.type=sa,this.value=j.parse(e.otherName.value,we).toString();else throw new Error(Bu);else throw new Error(Bu)}toJSON(){return{type:this.type,value:this.value}}toTextObject(){let e;switch(this.type){case ta:case ea:case oa:case ia:case Un:case sa:case na:e=this.type.toUpperCase();break;case ra:e="Email";break;default:throw new Error("Unsupported GeneralName type")}let t=this.value;return this.type===Un&&(t=It.toString(t)),new oe(e,void 0,t)}}class oi extends Nt{constructor(e){let t;if(e instanceof Ee)t=e;else if(Array.isArray(e)){const i=[];for(const n of e)if(n instanceof Z)i.push(n);else{const s=j.parse(new Vt(n.type,n.value).rawData,Z);i.push(s)}t=new Ee(i)}else if(_.isBufferSource(e))t=j.parse(e,Ee);else throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");super(t)}onInit(e){const t=[];for(const i of e){let n=null;try{n=new Vt(i)}catch{continue}t.push(n)}this.items=t}toJSON(){return this.items.map(e=>e.toJSON())}toTextObject(){const e=super.toTextObjectEmpty();for(const t of this.items){const i=t.toTextObject();let n=e[i[oe.NAME]];Array.isArray(n)||(n=[],e[i[oe.NAME]]=n),n.push(i)}return e}}oi.NAME="GeneralNames";const si="-{5}",ai="\\n",Rd=`[^${ai}]+`,Dd=`${si}BEGIN (${Rd}(?=${si}))${si}`,$d=`${si}END \\1${si}`,Br="\\n",Md=`[^:${ai}]+`,Ud=`(?:[^${ai}]+${Br}(?: +[^${ai}]+${Br})*)`,Ld=`(?:[a-zA-Z0-9=+/]+${Br})+`,Ou=`${Dd}${Br}(?:((?:${Md}: ${Ud})+))?${Br}?(${Ld})${$d}`;class Me{static isPem(e){return typeof e=="string"&&new RegExp(Ou,"g").test(e)}static decodeWithHeaders(e){e=e.replace(/\r/g,"");const t=new RegExp(Ou,"g"),i=[];let n=null;for(;n=t.exec(e);){const s=n[3].replace(new RegExp(`[${ai}]+`,"g"),""),c={type:n[1],headers:[],rawData:L.FromBase64(s)},u=n[2];if(u){const f=u.split(new RegExp(Br,"g"));let p=null;for(const b of f){const[y,K]=b.split(/:(.*)/);if(K===void 0){if(!p)throw new Error("Cannot parse PEM string. Incorrect header value");p.value+=y.trim()}else p&&c.headers.push(p),p={key:y,value:K.trim()}}p&&c.headers.push(p)}i.push(c)}return i}static decode(e){return this.decodeWithHeaders(e).map(i=>i.rawData)}static decodeFirst(e){const t=this.decode(e);if(!t.length)throw new RangeError("PEM string doesn't contain any objects");return t[0]}static encode(e,t){if(Array.isArray(e)){const i=new Array;return t?e.forEach(n=>{if(!_.isBufferSource(n))throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");i.push(this.encodeStruct({type:t,rawData:_.toArrayBuffer(n)}))}):e.forEach(n=>{if(!("type"in n))throw new TypeError("Cannot encode array of PemStruct in PEM format. Not all items of the array are PemStrut");i.push(this.encodeStruct(n))}),i.join(`
116
116
  `)}else{if(!t)throw new Error("Required argument 'tag' is missed");return this.encodeStruct({type:t,rawData:_.toArrayBuffer(e)})}}static encodeStruct(e){var t;const i=e.type.toLocaleUpperCase(),n=[];if(n.push(`-----BEGIN ${i}-----`),!((t=e.headers)===null||t===void 0)&&t.length){for(const p of e.headers)n.push(`${p.key}: ${p.value}`);n.push("")}const s=L.ToBase64(e.rawData);let c,u=0;const f=Array();for(;u<s.length&&(s.length-u<64?c=s.substring(u):(c=s.substring(u,u+64),u+=64),c.length!==0);)if(f.push(c),c.length<64)break;return n.push(...f),n.push(`-----END ${i}-----`),n.join(`
117
- `)}}Me.CertificateTag="CERTIFICATE",Me.CrlTag="CRL",Me.CertificateRequestTag="CERTIFICATE REQUEST",Me.PublicKeyTag="PUBLIC KEY",Me.PrivateKeyTag="PRIVATE KEY";class wt extends Nt{static isAsnEncoded(e){return _.isBufferSource(e)||typeof e=="string"}static toArrayBuffer(e){if(typeof e=="string"){if(Me.isPem(e))return Me.decode(e)[0];if(L.isHex(e))return L.FromHex(e);if(L.isBase64(e))return L.FromBase64(e);if(L.isBase64Url(e))return L.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}else{const t=L.ToBinary(e);return Me.isPem(t)?Me.decode(t)[0]:L.isHex(t)?L.FromHex(t):L.isBase64(t)?L.FromBase64(t):L.isBase64Url(t)?L.FromBase64Url(t):_.toArrayBuffer(e)}}constructor(...e){wt.isAsnEncoded(e[0])?super(wt.toArrayBuffer(e[0]),e[1]):super(e[0])}toString(e="pem"){switch(e){case"pem":return Me.encode(this.rawData,this.tag);default:return super.toString(e)}}}class lt extends wt{static async create(e,t=Ne.get()){if(e instanceof lt)return e;if(Ot.isCryptoKey(e)){if(e.type!=="public")throw new TypeError("Public key is required");const i=await t.subtle.exportKey("spki",e);return new lt(i)}else{if(e.publicKey)return e.publicKey;if(_.isBufferSource(e))return new lt(e);throw new TypeError("Unsupported PublicKeyType")}}constructor(e){wt.isAsnEncoded(e)?super(e,ot):super(e),this.tag=Me.PublicKeyTag}async export(...e){let t,i=["verify"],n={hash:"SHA-256",...this.algorithm};e.length>1?(n=e[0]||n,i=e[1]||i,t=e[2]||Ne.get()):t=e[0]||Ne.get();let s=this.rawData;const c=j.parse(this.rawData,ot);return c.algorithm.algorithm===Xr&&(s=Hd(c,s)),t.subtle.importKey("spki",s,n,!0,i)}onInit(e){const t=Ie.resolve(xr),i=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case Wt:{const n=j.parse(e.subjectPublicKey,Os),s=_.toUint8Array(n.modulus);i.publicExponent=_.toUint8Array(n.publicExponent),i.modulusLength=(s[0]?s:s.slice(1)).byteLength<<3;break}}}async getThumbprint(...e){var t;let i,n="SHA-1";return e.length>=1&&!(!((t=e[0])===null||t===void 0)&&t.subtle)?(n=e[0]||n,i=e[1]||Ne.get()):i=e[0]||Ne.get(),await i.subtle.digest(n,this.rawData)}async getKeyIdentifier(...e){let t,i="SHA-1";e.length===1?typeof e[0]=="string"?(i=e[0],t=Ne.get()):t=e[0]:e.length===2?(i=e[0],t=e[1]):t=Ne.get();const n=j.parse(this.rawData,ot);return await t.subtle.digest(i,n.subjectPublicKey)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ot);switch(e.Algorithm=Qt.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case Yr:e["EC Point"]=t.subjectPublicKey;break;case Wt:default:e["Raw Data"]=t.subjectPublicKey}return e}}function Hd(r,e){return r.algorithm=new R({algorithm:Wt,parameters:null}),e=j.serialize(r),e}class ci extends Ke{static async create(e,t=!1,i=Ne.get()){if("name"in e&&"serialNumber"in e)return new ci(e,t);const s=await(await lt.create(e,i)).getKeyIdentifier(i);return new ci(L.ToHex(s),t)}constructor(...e){if(_.isBufferSource(e[0]))super(e[0]);else if(typeof e[0]=="string"){const t=new Ht({keyIdentifier:new Bo(L.FromHex(e[0]))});super(xo,e[1],j.serialize(t))}else{const t=e[0],i=t.name instanceof oi?j.parse(t.name.rawData,Ee):t.name,n=new Ht({authorityCertIssuer:i,authorityCertSerialNumber:L.FromHex(t.serialNumber)});super(xo,e[1],j.serialize(n))}}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,Ht);t.keyIdentifier&&(this.keyId=L.ToHex(t.keyIdentifier)),(t.authorityCertIssuer||t.authorityCertSerialNumber)&&(this.certId={name:t.authorityCertIssuer||[],serialNumber:t.authorityCertSerialNumber?L.ToHex(t.authorityCertSerialNumber):""})}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,Ht);return t.authorityCertIssuer&&(e["Authority Issuer"]=new oi(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}ci.NAME="Authority Key Identifier";class Tu extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Pi);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{const t=new Pi({cA:e[0],pathLenConstraint:e[1]});super(Dc,e[2],j.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),this.pathLength!==void 0&&(e["Path Length"]=this.pathLength),e}}Tu.NAME="Basic Constraints";var Vu;(function(r){r.serverAuth="1.3.6.1.5.5.7.3.1",r.clientAuth="1.3.6.1.5.5.7.3.2",r.codeSigning="1.3.6.1.5.5.7.3.3",r.emailProtection="1.3.6.1.5.5.7.3.4",r.timeStamping="1.3.6.1.5.5.7.3.8",r.ocspSigning="1.3.6.1.5.5.7.3.9"})(Vu||(Vu={}));class _u extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Ui);this.usages=t.map(i=>i)}else{const t=new Ui(e[0]);super(Fc,e[1],j.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(t=>It.toString(t)).join(", "),e}}_u.NAME="Extended Key Usages";var aa;(function(r){r[r.digitalSignature=1]="digitalSignature",r[r.nonRepudiation=2]="nonRepudiation",r[r.keyEncipherment=4]="keyEncipherment",r[r.dataEncipherment=8]="dataEncipherment",r[r.keyAgreement=16]="keyAgreement",r[r.keyCertSign=32]="keyCertSign",r[r.cRLSign=64]="cRLSign",r[r.encipherOnly=128]="encipherOnly",r[r.decipherOnly=256]="decipherOnly"})(aa||(aa={}));class ca extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Lo);this.usages=t.toNumber()}else{const t=new Lo(e[0]);super(Kc,e[1],j.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,Lo);return e[""]=t.toJSON().join(", "),e}}ca.NAME="Key Usages";class Ln extends Ke{static async create(e,t=!1,i=Ne.get()){const s=await(await lt.create(e,i)).getKeyIdentifier(i);return new Ln(L.ToHex(s),t)}constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,xt);this.keyId=L.ToHex(t)}else{const t=typeof e[0]=="string"?L.FromHex(e[0]):e[0],i=new xt(t);super(Zc,e[1],j.serialize(i)),this.keyId=L.ToHex(t)}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,xt);return e[""]=t,e}}Ln.NAME="Subject Key Identifier";class la extends Ke{constructor(...e){_.isBufferSource(e[0])?super(e[0]):super(Jc,e[1],new oi(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,zo);this.names=new oi(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const i in t)e[i]=t[i];return e}}la.NAME="Subject Alternative Name";class ze{static register(e,t){this.items.set(e,t)}static create(e){const t=new Ke(e),i=this.items.get(t.type);return i?new i(e):t}}ze.items=new Map;class ju extends Ke{constructor(...e){var t;if(_.isBufferSource(e[0])){super(e[0]);const i=j.parse(this.value,$i);this.policies=i.map(n=>n.policyIdentifier)}else{const i=e[0],n=(t=e[1])!==null&&t!==void 0?t:!1,s=new $i(i.map(c=>new Di({policyIdentifier:c})));super(Mc,n,j.serialize(s)),this.policies=i}}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(t=>new oe("",{},It.toString(t))),e}}ju.NAME="Certificate Policies",ze.register(Mc,ju);class Pu extends Ke{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else if(Array.isArray(e[0])&&typeof e[0][0]=="string"){const n=e[0].map(c=>new ar({distributionPoint:new Ft({fullName:[new Z({uniformResourceIdentifier:c})]})})),s=new cr(n);super(jo,e[1],j.serialize(s))}else{const i=new cr(e[0]);super(jo,e[1],j.serialize(i))}(t=this.distributionPoints)!==null&&t!==void 0||(this.distributionPoints=[])}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,cr);this.distributionPoints=t}toTextObject(){const e=this.toTextObjectWithoutValue();return e["Distribution Point"]=this.distributionPoints.map(t=>{var i;const n={};return t.distributionPoint&&(n[""]=(i=t.distributionPoint.fullName)===null||i===void 0?void 0:i.map(s=>new Vt(s).toString()).join(", ")),t.reasons&&(n.Reasons=t.reasons.toString()),t.cRLIssuer&&(n["CRL Issuer"]=t.cRLIssuer.map(s=>s.toString()).join(", ")),n}),e}}Pu.NAME="CRL Distribution Points";class Ru extends Ke{constructor(...e){var t,i,n,s;if(_.isBufferSource(e[0]))super(e[0]);else if(e[0]instanceof sr){const c=new sr(e[0]);super(Co,e[1],j.serialize(c))}else{const c=e[0],u=new sr;Fn(u,c,_c,"ocsp"),Fn(u,c,jc,"caIssuers"),Fn(u,c,Pc,"timeStamping"),Fn(u,c,Rc,"caRepository"),super(Co,e[1],j.serialize(u))}(t=this.ocsp)!==null&&t!==void 0||(this.ocsp=[]),(i=this.caIssuers)!==null&&i!==void 0||(this.caIssuers=[]),(n=this.timeStamping)!==null&&n!==void 0||(this.timeStamping=[]),(s=this.caRepository)!==null&&s!==void 0||(this.caRepository=[])}onInit(e){super.onInit(e),this.ocsp=[],this.caIssuers=[],this.timeStamping=[],this.caRepository=[],j.parse(e.extnValue,sr).forEach(i=>{switch(i.accessMethod){case _c:this.ocsp.push(new Vt(i.accessLocation));break;case jc:this.caIssuers.push(new Vt(i.accessLocation));break;case Pc:this.timeStamping.push(new Vt(i.accessLocation));break;case Rc:this.caRepository.push(new Vt(i.accessLocation));break}})}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ocsp.length&&Hn(e,"OCSP",this.ocsp),this.caIssuers.length&&Hn(e,"CA Issuers",this.caIssuers),this.timeStamping.length&&Hn(e,"Time Stamping",this.timeStamping),this.caRepository.length&&Hn(e,"CA Repository",this.caRepository),e}}Ru.NAME="Authority Info Access";function Hn(r,e,t){if(t.length===1)r[e]=t[0].toTextObject();else{const i=new oe("");t.forEach((n,s)=>{const c=n.toTextObject(),u=`${c[oe.NAME]} ${s+1}`;let f=i[u];Array.isArray(f)||(f=[],i[u]=f),f.push(c)}),r[e]=i}}function Fn(r,e,t,i){const n=e[i];n&&(Array.isArray(n)?n:[n]).forEach(c=>{typeof c=="string"&&(c=new Vt("url",c)),r.push(new Dr({accessMethod:t,accessLocation:j.parse(c.rawData,Z)}))})}class Er extends Nt{constructor(...e){let t;if(_.isBufferSource(e[0]))t=_.toArrayBuffer(e[0]);else{const i=e[0],n=Array.isArray(e[1])?e[1].map(s=>_.toArrayBuffer(s)):[];t=j.serialize(new gt({type:i,values:n}))}super(t,gt)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Value=this.values.map(t=>new oe("",{"":t})),e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty();return e[oe.NAME]===Er.NAME&&(e[oe.NAME]=It.toString(this.type)),e}}Er.NAME="Attribute";class Du extends Er{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else{const i=new Dn({printableString:e[0]});super(_l,[j.serialize(i)])}(t=this.password)!==null&&t!==void 0||(this.password="")}onInit(e){if(super.onInit(e),this.values[0]){const t=j.parse(this.values[0],Dn);this.password=t.toString()}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[oe.VALUE]=this.password,e}}Du.NAME="Challenge Password";class ua extends Er{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else{const i=e[0],n=new qt;for(const s of i)n.push(j.parse(s.rawData,Qe));super(Ks,[j.serialize(n)])}(t=this.items)!==null&&t!==void 0||(this.items=[])}onInit(e){if(super.onInit(e),this.values[0]){const t=j.parse(this.values[0],qt);this.items=t.map(i=>ze.create(j.serialize(i)))}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.items.map(i=>i.toTextObject());for(const i of t)e[i[oe.NAME]]=i;return e}}ua.NAME="Extensions";class qn{static register(e,t){this.items.set(e,t)}static create(e){const t=new Er(e),i=this.items.get(t.type);return i?new i(e):t}}qn.items=new Map;const Kn="crypto.signatureFormatter";class Fd{toAsnSignature(e,t){return _.toArrayBuffer(t)}toWebSignature(e,t){return _.toArrayBuffer(t)}}var zn;let fa=zn=class{static createPssParams(e,t){const i=zn.getHashAlgorithm(e);return i?new Yt({hashAlgorithm:i,maskGenAlgorithm:new R({algorithm:An,parameters:j.serialize(i)}),saltLength:t}):null}static getHashAlgorithm(e){const t=Ie.resolve(xr);return typeof e=="string"?t.toAsnAlgorithm({name:e}):typeof e=="object"&&e&&"name"in e?t.toAsnAlgorithm(e):null}toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in e){let t;if(typeof e.hash=="string")t=e.hash;else if(e.hash&&typeof e.hash=="object"&&"name"in e.hash&&typeof e.hash.name=="string")t=e.hash.name.toUpperCase();else throw new Error("Cannot get hash algorithm name");switch(t.toLowerCase()){case"sha-1":return new R({algorithm:yn,parameters:null});case"sha-256":return new R({algorithm:Es,parameters:null});case"sha-384":return new R({algorithm:gn,parameters:null});case"sha-512":return new R({algorithm:mn,parameters:null})}}else return new R({algorithm:Wt,parameters:null});break;case"rsa-pss":if("hash"in e){if(!("saltLength"in e&&typeof e.saltLength=="number"))throw new Error("Cannot get 'saltLength' from 'alg' argument");const t=zn.createPssParams(e.hash,e.saltLength);if(!t)throw new Error("Cannot create PSS parameters");return new R({algorithm:Xr,parameters:j.serialize(t)})}else return new R({algorithm:Xr,parameters:null})}return null}toWebAlgorithm(e){switch(e.algorithm){case Wt:return{name:"RSASSA-PKCS1-v1_5"};case yn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case Es:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case gn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case mn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}};case Xr:if(e.parameters){const t=j.parse(e.parameters,Yt);return{name:"RSA-PSS",hash:Ie.resolve(xr).toWebAlgorithm(t.hashAlgorithm),saltLength:t.saltLength}}else return{name:"RSA-PSS"}}return null}};fa=zn=a([On()],fa),Ie.registerSingleton(ii,fa);let da=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"sha-1":return new R({algorithm:bn});case"sha-256":return new R({algorithm:vn});case"sha-384":return new R({algorithm:wn});case"sha-512":return new R({algorithm:Sn})}return null}toWebAlgorithm(e){switch(e.algorithm){case bn:return{name:"SHA-1"};case vn:return{name:"SHA-256"};case wn:return{name:"SHA-384"};case Sn:return{name:"SHA-512"}}return null}};da=a([On()],da),Ie.registerSingleton(ii,da);class Ge{addPadding(e,t){const i=_.toUint8Array(t),n=new Uint8Array(e);return n.set(i,e-i.length),n}removePadding(e,t=!1){let i=_.toUint8Array(e);for(let n=0;n<i.length;n++)if(i[n]){i=i.slice(n);break}if(t&&i[0]>127){const n=new Uint8Array(i.length+1);return n.set(i,1),n.buffer}return i.buffer}toAsnSignature(e,t){if(e.name==="ECDSA"){const i=e.namedCurve,n=Ge.namedCurveSize.get(i)||Ge.defaultNamedCurveSize,s=new hn,c=_.toUint8Array(t);return s.r=this.removePadding(c.slice(0,n),!0),s.s=this.removePadding(c.slice(n,n+n),!0),j.serialize(s)}return null}toWebSignature(e,t){if(e.name==="ECDSA"){const i=j.parse(t,hn),n=e.namedCurve,s=Ge.namedCurveSize.get(n)||Ge.defaultNamedCurveSize,c=this.addPadding(s,this.removePadding(i.r)),u=this.addPadding(s,this.removePadding(i.s));return rf(c,u)}return null}}Ge.namedCurveSize=new Map,Ge.defaultNamedCurveSize=32;const pa="1.3.101.110",$u="1.3.101.111",ha="1.3.101.112",Mu="1.3.101.113";let ya=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"ed25519":t=ha;break;case"x25519":t=pa;break;case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t=ha;break;case"ed448":t=Mu;break}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t=pa;break;case"x448":t=$u;break}}return t?new R({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case ha:return{name:"Ed25519"};case Mu:return{name:"EdDSA",namedCurve:"Ed448"};case pa:return{name:"X25519"};case $u:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};ya=a([On()],ya),Ie.registerSingleton(ii,ya);class qd extends wt{constructor(e){wt.isAsnEncoded(e)?super(e,ri):super(e),this.tag=Me.CertificateRequestTag}onInit(e){this.tbs=j.serialize(e.certificationRequestInfo),this.publicKey=new lt(e.certificationRequestInfo.subjectPKInfo);const t=Ie.resolve(xr);this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(n=>qn.create(j.serialize(n)));const i=this.getAttribute(Ks);this.extensions=[],i instanceof ua&&(this.extensions=i.items),this.subjectName=new Tt(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(e){for(const t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(const t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=Ne.get()){const t={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(t,["verify"],e),n=Ie.resolveAll(Kn).reverse();let s=null;for(const u of n)if(s=u.toWebSignature(t,this.signature),s)break;if(!s)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await e.subtle.verify(this.signatureAlgorithm,i,s,this.tbs)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ri),i=t.certificationRequestInfo,n=new oe("",{Version:`${lr[i.version]} (${i.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const s=new oe("");for(const c of this.attributes){const u=c.toTextObject();s[u[oe.NAME]]=u}n.Attributes=s}return e.Data=n,e.Signature=new oe("",{Algorithm:Qt.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}qd.NAME="PKCS#10 Certificate Request";class Uu extends wt{constructor(e){wt.isAsnEncoded(e)?super(e,ur):super(e),this.tag=Me.CertificateTag}onInit(e){const t=e.tbsCertificate;this.tbs=j.serialize(t),this.serialNumber=L.ToHex(t.serialNumber),this.subjectName=new Tt(t.subject),this.subject=new Tt(t.subject).toString(),this.issuerName=new Tt(t.issuer),this.issuer=this.issuerName.toString();const i=Ie.resolve(xr);this.signatureAlgorithm=i.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;const n=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!n)throw new Error("Cannot get 'notBefore' value");this.notBefore=n;const s=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!s)throw new Error("Cannot get 'notAfter' value");this.notAfter=s,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(c=>ze.create(j.serialize(c)))),this.publicKey=new lt(t.subjectPublicKeyInfo)}getExtension(e){for(const t of this.extensions)if(typeof e=="string"){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>typeof e=="string"?t.type===e:t instanceof e)}async verify(e={},t=Ne.get()){let i,n;const s=e.publicKey;try{if(!s)i={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(i,["verify"],t);else if("publicKey"in s)i={...s.publicKey.algorithm,...this.signatureAlgorithm},n=await s.publicKey.export(i,["verify"],t);else if(s instanceof lt)i={...s.algorithm,...this.signatureAlgorithm},n=await s.export(i,["verify"],t);else if(_.isBufferSource(s)){const p=new lt(s);i={...p.algorithm,...this.signatureAlgorithm},n=await p.export(i,["verify"],t)}else i={...s.algorithm,...this.signatureAlgorithm},n=s}catch{return!1}const c=Ie.resolveAll(Kn).reverse();let u=null;for(const p of c)if(u=p.toWebSignature(i,this.signature),u)break;if(!u)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const f=await t.subtle.verify(this.signatureAlgorithm,n,u,this.tbs);if(e.signatureOnly)return f;{const b=(e.date||new Date).getTime();return f&&this.notBefore.getTime()<b&&b<this.notAfter.getTime()}}async getThumbprint(...e){let t,i="SHA-1";return e[0]&&(e[0].subtle?t=e[0]:(i=e[0]||i,t=e[1])),t??(t=Ne.get()),await t.subtle.digest(i,this.rawData)}async isSelfSigned(e=Ne.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ur),i=t.tbsCertificate,n=new oe("",{Version:`${lr[i.version]} (${i.version})`,"Serial Number":i.serialNumber,"Signature Algorithm":Qt.serializeAlgorithm(i.signature),Issuer:this.issuer,Validity:new oe("",{"Not Before":i.validity.notBefore.getTime(),"Not After":i.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(i.issuerUniqueID&&(n["Issuer Unique ID"]=i.issuerUniqueID),i.subjectUniqueID&&(n["Subject Unique ID"]=i.subjectUniqueID),this.extensions.length){const s=new oe("");for(const c of this.extensions){const u=c.toTextObject();s[u[oe.NAME]]=u}n.Extensions=s}return e.Data=n,e.Signature=new oe("",{Algorithm:Qt.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}Uu.NAME="Certificate";var Lu;(function(r){r[r.unspecified=0]="unspecified",r[r.keyCompromise=1]="keyCompromise",r[r.cACompromise=2]="cACompromise",r[r.affiliationChanged=3]="affiliationChanged",r[r.superseded=4]="superseded",r[r.cessationOfOperation=5]="cessationOfOperation",r[r.certificateHold=6]="certificateHold",r[r.removeFromCRL=8]="removeFromCRL",r[r.privilegeWithdrawn=9]="privilegeWithdrawn",r[r.aACompromise=10]="aACompromise"})(Lu||(Lu={})),ze.register(Dc,Tu),ze.register(Fc,_u),ze.register(Kc,ca),ze.register(Zc,Ln),ze.register(xo,ci),ze.register(Jc,la),ze.register(jo,Pu),ze.register(Co,Ru),qn.register(_l,Du),qn.register(Ks,ua),Ie.registerSingleton(Kn,Fd),Ie.registerSingleton(Kn,Ge),Ge.namedCurveSize.set("P-256",32),Ge.namedCurveSize.set("K-256",32),Ge.namedCurveSize.set("P-384",48),Ge.namedCurveSize.set("P-521",66);function Hu(){return{parseMetaCertificateData:e=>{if(/{vault:\/\/.*}/g.test(e))throw new Error("not a X.509 certificate");const t=new Uu(e),i={subject:t.subjectName.toString(),issuer:t.issuer,notAfter:t.notAfter};for(const n of t.extensions)if(n instanceof la){const s=n.names.toJSON(),u=Object.entries(s).map(f=>({type:f[1].type,value:f[1].value})).reduce((f,p)=>{const b=p.type,y=f[b]??[];return{...f,[b]:[...y,p.value]}},{});for(const f in u)i.subjectAltName=`${f}=${u[f].join(", ")}`}else if(n instanceof ca){const s=Object.values(aa),c=Array(s.length/2).fill(null).reduce((u,f,p)=>{const b=s[s.length/2+p];if(n.usages&b){const y=s[p];u.push(y)}return u},[]);i.keyUsage=c}return i}}}function Kd(){const r=Hu(),e=o.ref({}),t=n=>{if(!(n.id in e.value))try{e.value[n.id]=r.parseMetaCertificateData(n.cert)}catch{e.value[n.id]=void 0}return e.value[n.id]};return{certificateDataCache:e,getCertificateData:n=>{const s=t(n);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 zd={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."},empty_state_v2:{create:"New certificate",title:"Configure your first certificate",description:"Certificates manage SSL/TLS encryption, ensuring secure communication between clients and your API services."}},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"},snis:{label:"SNIs",placeholder:"Enter an SNI",add:"Add an SNI",tooltip:"Zero or more hostnames to associate with this certificate as SNIs",editingTip:"To manage SNIs for this certificate, click {link}.",editingTipLink:"here"},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."},empty_state_v2:{create:"New CA certificate",title:"Configure your first CA certificate",description:"CA Certificates validate the authenticity of client and server certificates, reinforcing the trust and security of your API communications."}},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 Gd(){const r=wa.createI18n("en-us",zd);return{i18n:r,i18nT:wa.i18nTComponent(r)}}const et={useCertificate:Kd,useI18n:Gd,useX509:Hu},Gn="/v2/control-planes/{controlPlaneId}/core-entities",Wn="/{workspace}",li={list:{konnect:`${Gn}/certificates`,kongManager:`${Wn}/certificates`},form:{konnect:{create:`${Gn}/certificates`,edit:`${Gn}/certificates/{id}`,validate:`${Gn}/v1/schemas/json/certificate/validate`},kongManager:{create:`${Wn}/certificates`,edit:`${Wn}/certificates/{id}`,validate:`${Wn}/schemas/certificates/validate`}}},Wd={class:"kong-ui-entities-certificates-list"},Jd={class:"button-row"},Yd={class:"empty-state-icon-gateway"},Zd={key:0},Qd={key:1},Xd={key:0},ep={key:1},tp={key:0},rp={key:1},ip={key:1},np=o.defineComponent({__name:"CertificateList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canCreateSni:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:e}){var F;const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),u=di.useRouter(),{axiosInstance:f}=N.useAxios((F=i.config)==null?void 0:F.axiosRequestConfig),{hideTableToolbar:p,handleStateChange:b}=N.useTableState(()=>g.value),y=o.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),O={subject:{label:n("certificates.list.table_headers.subject"),hidable:!1},expiry:{label:n("certificates.list.table_headers.expiry")},san:{label:n("certificates.list.table_headers.san")},cert:{label:n("certificates.list.table_headers.cert")},tags:{label:n("certificates.list.table_headers.tags"),sortable:!0}},d=o.computed(()=>{var Y,ie;let U=`${i.config.apiBaseUrl}${li.list[i.config.app]}`;return i.config.app==="konnect"?U=U.replace(/{controlPlaneId}/gi,((Y=i.config)==null?void 0:Y.controlPlaneId)||""):i.config.app==="kongManager"&&(U=U.replace(/\/{workspace}/gi,(ie=i.config)!=null&&ie.workspace?`/${i.config.workspace}`:"")),U}),g=o.ref(""),S=o.computed(()=>{const U=i.config.app==="konnect"||i.config.isExactMatch;return U?{isExactMatch:U,placeholder:n("certificates.search.placeholder")}:{isExactMatch:U,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:E,fetcherCacheKey:k}=N.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},d.value),I=()=>{g.value=""},Q=()=>{k.value++},ee=o.ref(null),$=(U,Y)=>{const ie=U.id;if(!Y(ie)){t("copy:error",{entity:U,field:"id",message:n("certificates.errors.copy")});return}t("copy:success",{entity:U,field:"id",message:n("certificates.copy.success",{val:ie})})},x=(U,Y)=>{const ie=JSON.stringify(U);if(!Y(ie)){t("copy:error",{entity:U,message:n("certificates.errors.copy")});return}t("copy:success",{entity:U,message:n("certificates.copy.success_brief")})},T=async U=>{var ie;await((ie=i.canRetrieve)==null?void 0:ie.call(i,U))&&u.push(i.config.getViewRoute(U.id))},ge=U=>({label:n("certificates.actions.view"),to:i.config.getViewRoute(U)}),ce=U=>({label:n("certificates.actions.edit"),to:i.config.getEditRoute(U)}),Ue=U=>{if(i.config.getCreateSniRoute)return{label:n("certificates.actions.addSni"),to:i.config.getCreateSniRoute(U)}},ae=o.ref(void 0),le=o.ref(!1),Re=o.ref(!1),re=o.ref(""),Ir=N.useDeleteUrlBuilder(i.config,d.value),{certificateDataCache:_t,getCertificateData:St}=et.useCertificate(),Nr=U=>{ae.value=U,le.value=!0},Or=()=>{le.value=!1},G=async()=>{var U,Y,ie;if((U=ae.value)!=null&&U.id){Re.value=!0;try{await f.delete(Ir(ae.value.id)),Re.value=!1,le.value=!1,k.value++,t("delete:success",ae.value)}catch(Le){re.value=((ie=(Y=Le.response)==null?void 0:Y.data)==null?void 0:ie.message)||Le.message||n("certificates.errors.delete"),t("error",Le)}finally{Re.value=!1}}},We=()=>{u.push(i.config.createRoute)};o.watch(E,U=>{var Y,ie,Le;if(U.status===N.FetcherStatus.Error){ee.value={title:n("certificates.errors.general")},(Le=(ie=(Y=U.error)==null?void 0:Y.response)==null?void 0:ie.data)!=null&&Le.message&&(ee.value.message=U.error.response.data.message),t("error",U.error);return}_t.value={},ee.value=null});const jt=o.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:n("certificates.title")});return o.onBeforeMount(async()=>{await i.canCreate()&&(jt.value.title=n("certificates.list.empty_state.title"),jt.value.ctaText=n("certificates.actions.create"))}),(U,Y)=>{const ie=o.resolveComponent("KButton"),Le=o.resolveComponent("KCopy"),J=o.resolveComponent("KDropdownItem"),Ce=o.resolveComponent("KClipboardProvider");return o.openBlock(),o.createElementBlock("div",Wd,[o.createVNode(o.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":y.value,"empty-state-options":jt.value,"enable-entity-actions":"","error-message":ee.value,fetcher:o.unref(w),"fetcher-cache-key":o.unref(k),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-certificates-list",query:g.value,"table-headers":o.unref(O),onClearSearchInput:I,"onClick:row":Y[3]||(Y[3]=W=>T(W)),onSort:Q,onState:o.unref(b)},o.createSlots({"toolbar-filter":o.withCtx(()=>[o.createVNode(o.unref(N.EntityFilter),{modelValue:g.value,"onUpdate:modelValue":Y[0]||(Y[0]=W=>g.value=W),config:S.value},null,8,["modelValue","config"])]),"toolbar-button":o.withCtx(()=>[(o.openBlock(),o.createBlock(o.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[o.createElementVNode("div",Jd,[!o.unref(p)&&r.config.app==="konnect"?(o.openBlock(),o.createBlock(ie,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"certificates-learn-more-button",icon:"",onClick:Y[1]||(Y[1]=W=>U.$emit("click:learn-more"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.BookIcon),{decorative:""})]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:o.withCtx(()=>[o.createVNode(ie,{appearance:"primary","data-testid":"toolbar-add-certificate",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon)),o.createTextVNode(" "+o.toDisplayString(o.unref(n)("certificates.list.toolbar_actions.new_certificate")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),subject:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("b",Zd,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.subject?W.metadata.subject:"-"),1)):(o.openBlock(),o.createElementBlock("b",Qd,o.toDisplayString(o.unref(St)(W).schemaSubject||"-"),1))]}),expiry:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",Xd,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.expiry?o.unref(s)(W.metadata.expiry):"-"),1)):(o.openBlock(),o.createElementBlock("span",ep,o.toDisplayString(o.unref(St)(W).schemaExpiry?o.unref(s)(o.unref(St)(W).schemaExpiry):"-"),1))]}),san:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",tp,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.dns_names?`dns=${W.metadata.dns_names.join(", ")}`:"-"),1)):(o.openBlock(),o.createElementBlock("span",rp,o.toDisplayString(o.unref(St)(W).schemaSanNames||"-"),1))]}),cert:o.withCtx(({row:W})=>[W!=null&&W.cert?(o.openBlock(),o.createBlock(Le,{key:0,"data-testid":"copy-certificate-cert",text:W.cert,truncate:""},null,8,["text"])):(o.openBlock(),o.createElementBlock("span",ip,"-"))]),tags:o.withCtx(({row:W})=>[o.createVNode(o.unref(N.TableTags),{tags:W==null?void 0:W.tags},null,8,["tags"])]),actions:o.withCtx(({row:W})=>[o.createVNode(Ce,null,{default:o.withCtx(({copyToClipboard:xe})=>[o.createVNode(J,{"data-testid":"action-entity-copy-id",onClick:ga=>$(W,xe)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(Ce,null,{default:o.withCtx(({copyToClipboard:xe})=>[o.createVNode(J,{"data-testid":"action-entity-copy-json",onClick:ga=>x(W,xe)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(W)},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-view","has-divider":"",item:ge(W.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(W)},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-edit",item:ce(W.id)},null,8,["item"])]),_:2},1032,["auth-function"]),r.config.getCreateSniRoute?(o.openBlock(),o.createBlock(o.unref(N.PermissionsWrapper),{key:0,"auth-function":()=>r.canCreateSni()},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-add-sni",item:Ue(W.id)},null,8,["item"])]),_:2},1032,["auth-function"])):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(W)},{default:o.withCtx(()=>[o.createVNode(J,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:xe=>Nr(W)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:o.withCtx(()=>[o.createVNode(o.unref(N.EntityEmptyState),{"action-button-text":o.unref(n)("certificates.list.empty_state_v2.create"),appearance:"secondary","can-create":()=>r.canCreate(),description:o.unref(n)("certificates.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:o.unref(n)("certificates.list.empty_state_v2.title"),"onClick:create":We,"onClick:learnMore":Y[2]||(Y[2]=W=>U.$emit("click:learn-more"))},{image:o.withCtx(()=>[o.createElementVNode("div",Yd,[o.createVNode(o.unref(At.ServiceDocumentIcon),{color:o.unref(Sa),size:o.unref(Aa)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),o.createVNode(o.unref(N.EntityDeleteModal),{"action-pending":Re.value,"entity-type":o.unref(N.EntityTypes).Certificate,error:re.value,title:o.unref(n)("certificates.delete.title"),visible:le.value,onCancel:Or,onProceed:G},{description:o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.delete.description",scope:"global"},{"bolded-text":o.withCtx(()=>[o.createElementVNode("b",null,o.toDisplayString(o.unref(n)("certificates.delete.boldedText")),1)]),_:1}),o.createElementVNode("p",null,o.toDisplayString(o.unref(n)("certificates.delete.description2")),1)]),_:1},8,["action-pending","entity-type","error","title","visible"])])}}}),Xt=(r,e)=>{const t=r.__vccOpts||r;for(const[i,n]of e)t[i]=n;return t},op=Xt(np,[["__scopeId","data-v-8d022f6e"]]),sp={class:"sni-field-container"},ap={key:1,class:"sni-field-controls-container"},cp={key:0},lp=Xt(o.defineComponent({__name:"CertificateFormSniField",props:{isEditing:{type:Boolean,default:!1},modelValue:{type:Array,required:!0},sniListRoute:{type:Object,required:!0}},emits:["add","remove","update:modelValue"],setup(r,{emit:e}){const t=r,i=e,{i18nT:n,i18n:{t:s}}=et.useI18n(),c=o.ref([]);return o.watch(t.modelValue,u=>{c.value=[...u]},{immediate:!0,deep:!0}),o.watch(c,u=>{i("update:modelValue",u)},{deep:!0}),(u,f)=>{const p=o.resolveComponent("KLabel"),b=o.resolveComponent("KInput"),y=o.resolveComponent("KButton"),K=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("div",sp,[o.createVNode(p,{info:o.unref(s)("certificates.form.fields.snis.tooltip")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.label")),1)]),_:1},8,["info"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(O,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"sni-field-input"},[!r.isEditing||c.value[d]?(o.openBlock(),o.createBlock(b,{key:0,modelValue:c.value[d],"onUpdate:modelValue":g=>c.value[d]=g,modelModifiers:{trim:!0},"data-testid":`sni-field-input-${d+1}`,disabled:r.isEditing,placeholder:o.unref(s)("certificates.form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","placeholder"])):o.createCommentVNode("",!0),r.isEditing?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ap,[o.createVNode(y,{appearance:"tertiary",class:"remove-button","data-testid":"remove-sni",icon:"",onClick:g=>u.$emit("remove",d)},{default:o.withCtx(()=>[o.createVNode(o.unref(At.TrashIcon),{color:o.unref(Zu)},null,8,["color"])]),_:2},1032,["onClick"]),o.createVNode(y,{appearance:"tertiary","data-testid":"add-sni",disabled:d!==c.value.length-1,icon:"",onClick:f[0]||(f[0]=g=>u.$emit("add"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon))]),_:2},1032,["disabled"])]))]))),128)),c.value.length===0?(o.openBlock(),o.createElementBlock("div",cp,[o.createVNode(y,{onClick:f[1]||(f[1]=O=>u.$emit("add"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.add")),1)]),_:1})])):o.createCommentVNode("",!0),r.isEditing?(o.openBlock(),o.createBlock(o.unref(n),{key:1,keypath:"certificates.form.fields.snis.editingTip"},{link:o.withCtx(()=>[o.createVNode(K,{to:r.sniListRoute},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.editingTipLink")),1)]),_:1},8,["to"])]),_:1})):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-543a45f0"]]),up={class:"kong-ui-entities-certificates-form"},fp=Xt(o.defineComponent({__name:"CertificateForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.cancelRoute)},certificateId:{type:String,required:!1,default:""},showSnisField:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading"],setup(r,{emit:e}){var ee;const t=e,i=r,n=di.useRouter(),{i18nT:s,i18n:{t:c}}=et.useI18n(),{getMessageFromError:u}=N.useErrors(),{axiosInstance:f}=N.useAxios((ee=i.config)==null?void 0:ee.axiosRequestConfig),p=o.computed(()=>li.form[i.config.app].edit),b=o.computed(()=>i.certificateId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),y=o.reactive({fields:{cert:"",key:"",certAlt:"",keyAlt:"",snis:[""],tags:""},isReadonly:!1,errorMessage:""}),K=o.reactive({cert:"",key:"",certAlt:"",keyAlt:"",snis:[""],tags:""}),O=o.computed(()=>(b.value===N.EntityBaseFormType.Create||JSON.stringify(y.fields)!==JSON.stringify(K))&&!!y.fields.cert&&!!y.fields.key),d=$=>{var x,T;y.fields.cert=($==null?void 0:$.cert)||"",y.fields.key=($==null?void 0:$.key)||"",y.fields.certAlt=($==null?void 0:$.cert_alt)||"",y.fields.keyAlt=($==null?void 0:$.key_alt)||"",y.fields.snis=(x=$==null?void 0:$.snis)!=null&&x.length?$.snis:[""],y.fields.tags=((T=$==null?void 0:$.tags)==null?void 0:T.join(", "))||"",Object.assign(K,y.fields)},g=()=>{n.push(i.config.cancelRoute)},S=()=>{y.fields.snis.push("")},w=$=>{y.fields.snis.splice($,1)},E=o.computed(()=>{var x,T;let $=`${i.config.apiBaseUrl}${li.form[i.config.app].validate}`;return i.config.app==="konnect"?$=$.replace(/{controlPlaneId}/gi,((x=i.config)==null?void 0:x.controlPlaneId)||""):i.config.app==="kongManager"&&($=$.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),$=$.replace(/{id}/gi,i.certificateId),$}),k=o.computed(()=>{var x,T;let $=`${i.config.apiBaseUrl}${li.form[i.config.app][b.value]}`;return i.config.app==="konnect"?$=$.replace(/{controlPlaneId}/gi,((x=i.config)==null?void 0:x.controlPlaneId)||""):i.config.app==="kongManager"&&($=$.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),$=$.replace(/{id}/gi,i.certificateId),$}),I=o.computed(()=>{var $,x;return{cert:y.fields.cert,key:y.fields.key,cert_alt:y.fields.certAlt||null,key_alt:y.fields.keyAlt||null,...i.showSnisField?{snis:y.fields.snis.filter(Boolean)}:{},tags:(x=($=y.fields.tags.split(","))==null?void 0:$.map(T=>String(T||"").trim()))==null?void 0:x.filter(T=>T!=="")}}),Q=async()=>{var $,x,T,ge,ce,Ue,ae,le,Re;try{y.isReadonly=!0;let re;await f.post(E.value,I.value),b.value==="create"?re=await f.post(k.value,I.value):b.value==="edit"&&(re=(($=i.config)==null?void 0:$.app)==="konnect"?await f.put(k.value,I.value):await f.patch(k.value,I.value)),y.fields.cert=((x=re==null?void 0:re.data)==null?void 0:x.cert)||"",y.fields.key=((T=re==null?void 0:re.data)==null?void 0:T.key)||"",y.fields.certAlt=((ge=re==null?void 0:re.data)==null?void 0:ge.cert_alt)||"",y.fields.keyAlt=((ce=re==null?void 0:re.data)==null?void 0:ce.key_alt)||"",y.fields.snis=(ae=(Ue=re==null?void 0:re.data)==null?void 0:Ue.snis)!=null&&ae.length?re.data.snis:[""],y.fields.tags=((Re=(le=re==null?void 0:re.data)==null?void 0:le.tags)==null?void 0:Re.join(", "))||"",Object.assign(K,y.fields),t("update",re==null?void 0:re.data)}catch(re){y.errorMessage=u(re),t("error",re)}finally{y.isReadonly=!1}};return($,x)=>{const T=o.resolveComponent("KTextArea"),ge=o.resolveComponent("KInput");return o.openBlock(),o.createElementBlock("div",up,[o.createVNode(o.unref(N.EntityBaseForm),{"can-submit":O.value,config:r.config,"edit-id":r.certificateId,"entity-type":o.unref(N.SupportedEntityType).Certificate,"error-message":y.errorMessage,"fetch-url":p.value,"form-fields":I.value,"is-readonly":y.isReadonly,onCancel:g,"onFetch:error":x[7]||(x[7]=ce=>$.$emit("error",ce)),"onFetch:success":d,onLoading:x[8]||(x[8]=ce=>$.$emit("loading",ce)),onSubmit:Q},{default:o.withCtx(()=>[o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(c)("certificates.form.sections.ssl.description"),title:o.unref(c)("certificates.form.sections.ssl.title")},{default:o.withCtx(()=>[o.createVNode(T,{modelValue:y.fields.cert,"onUpdate:modelValue":x[0]||(x[0]=ce=>y.fields.cert=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-cert",label:o.unref(c)("certificates.form.fields.cert.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly,required:""},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.cert.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.cert.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.key,"onUpdate:modelValue":x[1]||(x[1]=ce=>y.fields.key=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-key",label:o.unref(c)("certificates.form.fields.key.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly,required:""},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.key.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.key.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.certAlt,"onUpdate:modelValue":x[2]||(x[2]=ce=>y.fields.certAlt=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-cert-alt",label:o.unref(c)("certificates.form.fields.cert_alt.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.cert_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.cert_alt.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.keyAlt,"onUpdate:modelValue":x[3]||(x[3]=ce=>y.fields.keyAlt=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-key-alt",label:o.unref(c)("certificates.form.fields.key_alt.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.key_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.key_alt.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),r.showSnisField&&r.config.sniListRoute?(o.openBlock(),o.createBlock(lp,{key:0,modelValue:y.fields.snis,"onUpdate:modelValue":x[4]||(x[4]=ce=>y.fields.snis=ce),"is-editing":b.value===o.unref(N.EntityBaseFormType).Edit,"sni-list-route":r.config.sniListRoute,onAdd:S,onRemove:x[5]||(x[5]=ce=>w(ce))},null,8,["modelValue","is-editing","sni-list-route"])):o.createCommentVNode("",!0)]),_:1},8,["description","title"]),o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(c)("certificates.form.sections.general.description"),title:o.unref(c)("certificates.form.sections.general.title")},{default:o.withCtx(()=>[o.createVNode(ge,{modelValue:y.fields.tags,"onUpdate:modelValue":x[6]||(x[6]=ce=>y.fields.tags=ce),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"certificate-form-tags",help:o.unref(c)("certificates.form.fields.tags.help"),label:o.unref(c)("certificates.form.fields.tags.label"),"label-attributes":{info:o.unref(c)("certificates.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:o.unref(c)("certificates.form.fields.tags.placeholder"),readonly:y.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-fc596de1"]]),Jn="/v2/control-planes/{controlPlaneId}/core-entities",Yn="/{workspace}",ui={list:{konnect:`${Jn}/ca_certificates`,kongManager:`${Yn}/ca_certificates`},form:{konnect:{create:`${Jn}/ca_certificates`,edit:`${Jn}/ca_certificates/{id}`,validate:`${Jn}/v1/schemas/json/ca-certificate/validate`},kongManager:{create:`${Yn}/ca_certificates`,edit:`${Yn}/ca_certificates/{id}`,validate:`${Yn}/schemas/ca_certificates/validate`}}},dp={class:"kong-ui-ca-certificate-entity-config-card"},pp={key:0},hp=Xt(o.defineComponent({__name:"CACertificateConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r,{emit:e}){const t=["dns_names","san_names","subject"],i=e,n=r,{i18n:{t:s,formatUnixTimeStamp:c}}=et.useI18n(),{convertKeyToTitle:u}=N.useStringHelpers(),{getPropValue:f}=N.useHelpers(),{getCertificateData:p}=et.useCertificate(),b=o.computed(()=>ui.form[n.config.app].edit),y=o.ref(),K=o.computed(()=>{if(y.value)return p(y.value)}),O=o.computed(()=>{var k;return((k=K.value)==null?void 0:k.schemaIssuer)||""}),d=o.computed(()=>{var k,I;return(k=K.value)!=null&&k.schemaExpiry?c((I=K.value)==null?void 0:I.schemaExpiry):""}),g=o.computed(()=>{var k;return((k=K.value)==null?void 0:k.schemaKeyUsages)||[]}),S=(k,I)=>{const Q=f("rowValue",I);if(k==="expiry")return d.value;if(k==="key_usages")return g.value;if(Q)return Q[k]},w=k=>{y.value=k,i("fetch:success",k)},E=o.ref({id:{},updated_at:{},created_at:{},cert:{section:N.ConfigurationSchemaSection.Basic,label:s("ca-certificates.form.fields.cert.label"),tooltip:s("ca-certificates.form.fields.cert.tooltip"),order:5},cert_digest:{section:N.ConfigurationSchemaSection.Basic,label:s("ca-certificates.form.fields.cert_digest.label"),tooltip:s("ca-certificates.form.fields.cert_digest.tooltip"),order:6},metadata:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Json,order:7},...n.config.app==="kongManager"&&{expiry:{label:s("certificates.list.table_headers.expiry"),section:N.ConfigurationSchemaSection.Basic,order:1.7,forceShow:!0},issuer:{section:N.ConfigurationSchemaSection.Basic,order:1.5,forceShow:!0},key_usages:{section:N.ConfigurationSchemaSection.Basic,forceShow:!0}},tags:{tooltip:s("ca-certificates.form.fields.tags.tooltip")}});return(k,I)=>{const Q=o.resolveComponent("KCodeBlock"),ee=o.resolveComponent("KLabel"),$=o.resolveComponent("KBadge");return o.openBlock(),o.createElementBlock("div",dp,[o.createVNode(o.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":E.value,"entity-type":o.unref(N.SupportedEntityType).CaCertificate,"fetch-url":b.value,"hide-title":r.hideTitle,"onFetch:error":I[0]||(I[0]=x=>k.$emit("fetch:error",x)),"onFetch:success":w,onLoading:I[1]||(I[1]=x=>k.$emit("loading",x))},{cert:o.withCtx(x=>[o.unref(f)("rowValue",x)?(o.openBlock(),o.createBlock(Q,{key:0,id:`ca-cert-${r.config.entityId}-cert-codeblock`,code:o.unref(f)("rowValue",x),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),"metadata-label":o.withCtx(()=>[o.createVNode(ee,{class:"metadata-label"},{default:o.withCtx(()=>I[2]||(I[2]=[o.createTextVNode(" Metadata ")])),_:1})]),metadata:o.withCtx(x=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(o.unref(f)("rowValue",x)).filter(T=>!t.includes(T)),T=>(o.openBlock(),o.createBlock(o.unref(N.ConfigCardItem),{key:T,"data-testid":`ca-cert-metadata-${T}`,item:{key:T,label:o.unref(u)(T),value:S(T,x),type:T==="key_usages"?o.unref(N.ConfigurationSchemaType).BadgeTag:o.unref(N.ConfigurationSchemaType).Text}},null,8,["data-testid","item"]))),128))]),expiry:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value||"–"),1)]),issuer:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.value||"–"),1)]),key_usages:o.withCtx(()=>[g.value.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",pp,o.toDisplayString("–"))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,T)=>(o.openBlock(),o.createBlock($,{key:`key_usages-badge-tag-${T}`,class:"config-badge","data-testid":`key_usages-badge-tag-${T}`,tooltip:x,"truncation-tooltip":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(x),1)]),_:2},1032,["data-testid","tooltip"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),[["__scopeId","data-v-1d42f61b"]]),yp={class:"kong-ui-entities-ca-certificates-list"},gp={class:"button-row"},mp={class:"empty-state-icon-gateway"},bp={key:0},vp={key:1},wp={key:0},Sp={key:1},Ap=Xt(o.defineComponent({__name:"CACertificateList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:e}){var jt;const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),u=di.useRouter(),{axiosInstance:f}=N.useAxios((jt=i.config)==null?void 0:jt.axiosRequestConfig),{hideTableToolbar:p,handleStateChange:b}=N.useTableState(()=>g.value),y=o.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),O={issuer:{label:n("ca-certificates.list.table_headers.issuer"),hidable:!1},expiry:{label:n("ca-certificates.list.table_headers.expiry")},tags:{label:n("ca-certificates.list.table_headers.tags"),sortable:!0}},d=o.computed(()=>{var U,Y;let F=`${i.config.apiBaseUrl}${ui.list[i.config.app]}`;return i.config.app==="konnect"?F=F.replace(/{controlPlaneId}/gi,((U=i.config)==null?void 0:U.controlPlaneId)||""):i.config.app==="kongManager"&&(F=F.replace(/\/{workspace}/gi,(Y=i.config)!=null&&Y.workspace?`/${i.config.workspace}`:"")),F}),g=o.ref(""),S=o.computed(()=>{const F=i.config.app==="konnect"||i.config.isExactMatch;return F?{isExactMatch:F,placeholder:n("ca-certificates.search.placeholder")}:{isExactMatch:F,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:E,fetcherCacheKey:k}=N.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},d.value),I=()=>{g.value=""},Q=()=>{k.value++},ee=o.ref(null),$=(F,U)=>{const Y=F.id;if(!U(Y)){t("copy:error",{entity:F,field:"id",message:n("ca-certificates.errors.copy")});return}t("copy:success",{entity:F,field:"id",message:n("ca-certificates.copy.success",{val:Y})})},x=(F,U)=>{const Y=JSON.stringify(F);if(!U(Y)){t("copy:error",{entity:F,message:n("ca-certificates.errors.copy")});return}t("copy:success",{entity:F,message:n("ca-certificates.copy.success_brief")})},T=async F=>{var Y;await((Y=i.canRetrieve)==null?void 0:Y.call(i,F))&&u.push(i.config.getViewRoute(F.id))},ge=F=>({label:n("ca-certificates.actions.view"),to:i.config.getViewRoute(F)}),ce=F=>({label:n("ca-certificates.actions.edit"),to:i.config.getEditRoute(F)}),Ue=o.ref(void 0),ae=o.ref(!1),le=o.ref(!1),Re=o.ref(""),re=N.useDeleteUrlBuilder(i.config,d.value),{certificateDataCache:Ir,getCertificateData:_t}=et.useCertificate(),St=F=>{Ue.value=F,ae.value=!0},Nr=()=>{ae.value=!1},Or=async()=>{var F,U,Y;if((F=Ue.value)!=null&&F.id){le.value=!0;try{await f.delete(re(Ue.value.id)),le.value=!1,ae.value=!1,k.value++,t("delete:success",Ue.value)}catch(ie){Re.value=((Y=(U=ie.response)==null?void 0:U.data)==null?void 0:Y.message)||ie.message||n("ca-certificates.errors.delete"),t("error",ie)}finally{le.value=!1}}},G=()=>{u.push(i.config.createRoute)};o.watch(E,F=>{var U,Y,ie;if(F.status===N.FetcherStatus.Error){ee.value={title:n("ca-certificates.errors.general")},(ie=(Y=(U=F.error)==null?void 0:U.response)==null?void 0:Y.data)!=null&&ie.message&&(ee.value.message=F.error.response.data.message),t("error",F.error);return}Ir.value={},ee.value=null});const We=o.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:n("ca-certificates.title")});return o.onBeforeMount(async()=>{await i.canCreate()&&(We.value.title=n("ca-certificates.list.empty_state.title"),We.value.ctaText=n("ca-certificates.actions.create"))}),(F,U)=>{const Y=o.resolveComponent("KButton"),ie=o.resolveComponent("KDropdownItem"),Le=o.resolveComponent("KClipboardProvider");return o.openBlock(),o.createElementBlock("div",yp,[o.createVNode(o.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":y.value,"empty-state-options":We.value,"enable-entity-actions":"","error-message":ee.value,fetcher:o.unref(w),"fetcher-cache-key":o.unref(k),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-ca-certificates-list",query:g.value,"table-headers":o.unref(O),onClearSearchInput:I,"onClick:row":U[3]||(U[3]=J=>T(J)),onSort:Q,onState:o.unref(b)},o.createSlots({"toolbar-filter":o.withCtx(()=>[o.createVNode(o.unref(N.EntityFilter),{modelValue:g.value,"onUpdate:modelValue":U[0]||(U[0]=J=>g.value=J),config:S.value},null,8,["modelValue","config"])]),"toolbar-button":o.withCtx(()=>[(o.openBlock(),o.createBlock(o.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[o.createElementVNode("div",gp,[!o.unref(p)&&r.config.app==="konnect"?(o.openBlock(),o.createBlock(Y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"ca-certificates-learn-more-button",icon:"",onClick:U[1]||(U[1]=J=>F.$emit("click:learn-more"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.BookIcon),{decorative:""})]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:o.withCtx(()=>[o.createVNode(Y,{appearance:"primary","data-testid":"toolbar-add-ca-certificate",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon)),o.createTextVNode(" "+o.toDisplayString(o.unref(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),issuer:o.withCtx(({row:J})=>{var Ce;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("b",bp,o.toDisplayString((Ce=J==null?void 0:J.metadata)!=null&&Ce.issuer?J.metadata.issuer:"-"),1)):(o.openBlock(),o.createElementBlock("b",vp,o.toDisplayString(o.unref(_t)(J).schemaIssuer||"-"),1))]}),expiry:o.withCtx(({row:J})=>{var Ce;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",wp,o.toDisplayString((Ce=J==null?void 0:J.metadata)!=null&&Ce.expiry?o.unref(s)(J.metadata.expiry):"-"),1)):(o.openBlock(),o.createElementBlock("span",Sp,o.toDisplayString(o.unref(_t)(J).schemaExpiry?o.unref(s)(o.unref(_t)(J).schemaExpiry):"-"),1))]}),tags:o.withCtx(({row:J})=>[o.createVNode(o.unref(N.TableTags),{tags:J==null?void 0:J.tags},null,8,["tags"])]),actions:o.withCtx(({row:J})=>[o.createVNode(Le,null,{default:o.withCtx(({copyToClipboard:Ce})=>[o.createVNode(ie,{"data-testid":"action-entity-copy-id",onClick:W=>$(J,Ce)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(Le,null,{default:o.withCtx(({copyToClipboard:Ce})=>[o.createVNode(ie,{"data-testid":"action-entity-copy-json",onClick:W=>x(J,Ce)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(J)},{default:o.withCtx(()=>[o.createVNode(ie,{"data-testid":"action-entity-view","has-divider":"",item:ge(J.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(J)},{default:o.withCtx(()=>[o.createVNode(ie,{"data-testid":"action-entity-edit",item:ce(J.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(J)},{default:o.withCtx(()=>[o.createVNode(ie,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:Ce=>St(J)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:o.withCtx(()=>[o.createVNode(o.unref(N.EntityEmptyState),{"action-button-text":o.unref(n)("ca-certificates.list.empty_state_v2.create"),appearance:"secondary","can-create":()=>r.canCreate(),description:o.unref(n)("ca-certificates.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:o.unref(n)("ca-certificates.list.empty_state_v2.title"),"onClick:create":G,"onClick:learnMore":U[2]||(U[2]=J=>F.$emit("click:learn-more"))},{image:o.withCtx(()=>[o.createElementVNode("div",mp,[o.createVNode(o.unref(At.ServiceDocumentIcon),{color:o.unref(Sa),size:o.unref(Aa)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),o.createVNode(o.unref(N.EntityDeleteModal),{"action-pending":le.value,"entity-type":o.unref(N.EntityTypes).CACertificate,error:Re.value,title:o.unref(n)("ca-certificates.delete.title"),visible:ae.value,onCancel:Nr,onProceed:Or},{description:o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"ca-certificates.delete.description",scope:"global"},{"bolded-text":o.withCtx(()=>[o.createElementVNode("b",null,o.toDisplayString(o.unref(n)("ca-certificates.delete.boldedText")),1)]),_:1}),o.createElementVNode("p",null,o.toDisplayString(o.unref(n)("ca-certificates.delete.description2")),1)]),_:1},8,["action-pending","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-da844cfa"]]),kp={class:"kong-ui-entities-ca-certificates-form"},Cp=Xt(o.defineComponent({__name:"CACertificateForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.cancelRoute)},certificateId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:e}){var k;const t=e,i=r,n=di.useRouter(),{i18n:{t:s}}=et.useI18n(),{getMessageFromError:c}=N.useErrors(),{axiosInstance:u}=N.useAxios((k=i.config)==null?void 0:k.axiosRequestConfig),f=o.computed(()=>ui.form[i.config.app].edit),p=o.computed(()=>i.certificateId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),b=o.reactive({fields:{cert:"",certDigest:"",tags:""},isReadonly:!1,errorMessage:""}),y=o.reactive({cert:"",certDigest:"",tags:""}),K=o.computed(()=>(p.value===N.EntityBaseFormType.Create||JSON.stringify(b.fields)!==JSON.stringify(y))&&!!b.fields.cert),O=I=>{var Q;b.fields.cert=(I==null?void 0:I.cert)||"",b.fields.certDigest=(I==null?void 0:I.cert_digest)||"",b.fields.tags=((Q=I==null?void 0:I.tags)==null?void 0:Q.join(", "))||"",Object.assign(y,b.fields)},d=()=>{n.push(i.config.cancelRoute)},g=o.computed(()=>{var Q,ee;let I=`${i.config.apiBaseUrl}${ui.form[i.config.app].validate}`;return i.config.app==="konnect"?I=I.replace(/{controlPlaneId}/gi,((Q=i.config)==null?void 0:Q.controlPlaneId)||""):i.config.app==="kongManager"&&(I=I.replace(/\/{workspace}/gi,(ee=i.config)!=null&&ee.workspace?`/${i.config.workspace}`:"")),I=I.replace(/{id}/gi,i.certificateId),I}),S=o.computed(()=>{var Q,ee;let I=`${i.config.apiBaseUrl}${ui.form[i.config.app][p.value]}`;return i.config.app==="konnect"?I=I.replace(/{controlPlaneId}/gi,((Q=i.config)==null?void 0:Q.controlPlaneId)||""):i.config.app==="kongManager"&&(I=I.replace(/\/{workspace}/gi,(ee=i.config)!=null&&ee.workspace?`/${i.config.workspace}`:"")),I=I.replace(/{id}/gi,i.certificateId),I}),w=o.computed(()=>{var I,Q;return{cert:b.fields.cert,cert_digest:b.fields.certDigest||null,tags:(Q=(I=b.fields.tags.split(","))==null?void 0:I.map(ee=>String(ee||"").trim()))==null?void 0:Q.filter(ee=>ee!=="")}}),E=async()=>{var I,Q,ee,$,x;try{b.isReadonly=!0;let T;await u.post(g.value,w.value),p.value==="create"?T=await u.post(S.value,w.value):p.value==="edit"&&(T=((I=i.config)==null?void 0:I.app)==="konnect"?await u.put(S.value,w.value):await u.patch(S.value,w.value)),b.fields.cert=((Q=T==null?void 0:T.data)==null?void 0:Q.cert)||"",b.fields.certDigest=((ee=T==null?void 0:T.data)==null?void 0:ee.cert_digest)||"",b.fields.tags=((x=($=T==null?void 0:T.data)==null?void 0:$.tags)==null?void 0:x.join(", "))||"",Object.assign(y,b.fields),t("update",T==null?void 0:T.data)}catch(T){b.errorMessage=c(T),t("error",T)}finally{b.isReadonly=!1}};return(I,Q)=>{const ee=o.resolveComponent("KTextArea"),$=o.resolveComponent("KInput");return o.openBlock(),o.createElementBlock("div",kp,[o.createVNode(o.unref(N.EntityBaseForm),{"can-submit":K.value,config:r.config,"edit-id":r.certificateId,"entity-type":o.unref(N.SupportedEntityType).CaCertificate,"error-message":b.errorMessage,"fetch-url":f.value,"form-fields":w.value,"is-readonly":b.isReadonly,onCancel:d,"onFetch:error":Q[3]||(Q[3]=x=>I.$emit("error",x)),"onFetch:success":O,onLoading:Q[4]||(Q[4]=x=>I.$emit("loading",x)),onSubmit:E},{default:o.withCtx(()=>[o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(s)("ca-certificates.form.sections.cert.description"),title:o.unref(s)("ca-certificates.form.sections.cert.title")},{default:o.withCtx(()=>[o.createVNode(ee,{modelValue:b.fields.cert,"onUpdate:modelValue":Q[0]||(Q[0]=x=>b.fields.cert=x),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"ca-certificate-form-cert",label:o.unref(s)("ca-certificates.form.fields.cert.label"),"label-attributes":{info:o.unref(s)("ca-certificates.form.fields.cert.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:b.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),o.createVNode($,{modelValue:b.fields.certDigest,"onUpdate:modelValue":Q[1]||(Q[1]=x=>b.fields.certDigest=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"ca-certificate-form-cert-digest",label:o.unref(s)("ca-certificates.form.fields.cert_digest.label"),readonly:b.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])]),_:1},8,["description","title"]),o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(s)("ca-certificates.form.sections.general.description"),title:o.unref(s)("ca-certificates.form.sections.general.title")},{default:o.withCtx(()=>[o.createVNode($,{modelValue:b.fields.tags,"onUpdate:modelValue":Q[2]||(Q[2]=x=>b.fields.tags=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"ca-certificate-form-tags",help:o.unref(s)("ca-certificates.form.fields.tags.help"),label:o.unref(s)("ca-certificates.form.fields.tags.label"),"label-attributes":{info:o.unref(s)("ca-certificates.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:o.unref(s)("ca-certificates.form.fields.tags.placeholder"),readonly:b.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-2a3f488f"]]),xp={class:"kong-ui-certificate-entity-config-card"},Bp={key:0},Ep=Xt(o.defineComponent({__name:"CertificateConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r,{emit:e}){const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),{convertKeyToTitle:u}=N.useStringHelpers(),{getPropValue:f}=N.useHelpers(),{getCertificateData:p}=et.useCertificate(),b=o.computed(()=>li.form[i.config.app].edit),y=o.ref(),K=o.ref({id:{},cert:{section:N.ConfigurationSchemaSection.Basic},key:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Redacted},metadata:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Json},snis:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.BadgeTag,label:n("certificates.list.table_headers.snis")},updated_at:{},created_at:{},tags:{tooltip:n("certificates.form.fields.tags.tooltip")},...i.config.app==="kongManager"&&{expiry:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.expiry"),forceShow:!0},issuer:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.issuer"),forceShow:!0},san_names:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.san"),forceShow:!0},subject:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.subject"),forceShow:!0},key_usages:{forceShow:!0}},cert_alt:{section:N.ConfigurationSchemaSection.Advanced},key_alt:{section:N.ConfigurationSchemaSection.Advanced,type:N.ConfigurationSchemaType.Redacted}}),O=x=>{y.value=x,t("fetch:success",x)},d=(x,T)=>{const ge=f("rowValue",T);if(x==="expiry")return S.value;if(x==="key_usages")return I.value;if(x==="san_names")return E.value;if(ge)return ge[x]},g=o.computed(()=>{if(y.value)return p(y.value)}),S=o.computed(()=>{var x,T;return(x=g.value)!=null&&x.schemaExpiry?s((T=g.value)==null?void 0:T.schemaExpiry):""}),w=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaIssuer)||""}),E=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaSanNames)||""}),k=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaSubject)||""}),I=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaKeyUsages)||[]}),Q=o.computed(()=>{var x,T;return((T=(x=y==null?void 0:y.value)==null?void 0:x.snis)==null?void 0:T.length)>0}),ee=o.computed(()=>{var x;return!!((x=y==null?void 0:y.value)!=null&&x.cert_alt)}),$=x=>{var T,ge;return x==="san_names"?n("certificates.list.table_headers.san"):((ge=(T=K.value)==null?void 0:T[x])==null?void 0:ge.label)||u(x)};return(x,T)=>{const ge=o.resolveComponent("KCodeBlock"),ce=o.resolveComponent("KLabel"),Ue=o.resolveComponent("KBadge");return o.openBlock(),o.createElementBlock("div",xp,[o.createVNode(o.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":K.value,"entity-type":o.unref(N.SupportedEntityType).Certificate,"fetch-url":b.value,"hide-title":r.hideTitle,"onFetch:error":T[0]||(T[0]=ae=>x.$emit("fetch:error",ae)),"onFetch:success":O,onLoading:T[1]||(T[1]=ae=>x.$emit("loading",ae))},o.createSlots({"cert-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.cert.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.cert.emphasis")),1)]),_:1})]),cert:o.withCtx(ae=>[o.unref(f)("rowValue",ae)?(o.openBlock(),o.createBlock(ge,{key:0,id:`certificate-${r.config.entityId}-cert-codeblock`,code:o.unref(f)("rowValue",ae),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),"key-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.key.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.key.emphasis")),1)]),_:1})]),"metadata-label":o.withCtx(()=>[o.createVNode(ce,{class:"metadata-label"},{default:o.withCtx(()=>T[2]||(T[2]=[o.createTextVNode(" Metadata ")])),_:1})]),metadata:o.withCtx(ae=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(o.unref(f)("rowValue",ae)),le=>(o.openBlock(),o.createBlock(o.unref(N.ConfigCardItem),{key:le,item:{key:le,value:d(le,ae),label:$(le),type:le==="key_usages"||le==="snis"||le==="dns_names"?o.unref(N.ConfigurationSchemaType).BadgeTag:o.unref(N.ConfigurationSchemaType).Text}},null,8,["item"]))),128))]),expiry:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(S.value||"–"),1)]),issuer:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(w.value||"–"),1)]),san_names:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.value||"–"),1)]),subject:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(k.value||"–"),1)]),"cert_alt-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.cert_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.cert_alt.emphasis")),1)]),_:1})]),"key_alt-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.key_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.key_alt.emphasis")),1)]),_:1})]),key_usages:o.withCtx(()=>[I.value.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Bp,o.toDisplayString("–"))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,(ae,le)=>(o.openBlock(),o.createBlock(Ue,{key:`key_usages-badge-tag-${le}`,class:"config-badge","data-testid":`key_usages-badge-tag-${le}`,tooltip:ae,"truncation-tooltip":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(ae),1)]),_:2},1032,["data-testid","tooltip"]))),128))]),_:2},[Q.value?void 0:{name:"snis",fn:o.withCtx(()=>[T[3]||(T[3]=o.createTextVNode(" – "))]),key:"0"},ee.value?{name:"cert_alt",fn:o.withCtx(ae=>[T[4]||(T[4]=o.createTextVNode(" > ")),o.unref(f)("rowValue",ae)?(o.openBlock(),o.createBlock(ge,{key:0,id:`certificate-${r.config.entityId}-cert-alt-codeblock`,code:o.unref(f)("rowValue",ae),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),key:"1"}:void 0]),1032,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),[["__scopeId","data-v-401d92d6"]]);Ae.CACertificateConfigCard=hp,Ae.CACertificateForm=Cp,Ae.CACertificateList=Ap,Ae.CertificateConfigCard=Ep,Ae.CertificateForm=fp,Ae.CertificateList=op,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
117
+ `)}}Me.CertificateTag="CERTIFICATE",Me.CrlTag="CRL",Me.CertificateRequestTag="CERTIFICATE REQUEST",Me.PublicKeyTag="PUBLIC KEY",Me.PrivateKeyTag="PRIVATE KEY";class wt extends Nt{static isAsnEncoded(e){return _.isBufferSource(e)||typeof e=="string"}static toArrayBuffer(e){if(typeof e=="string"){if(Me.isPem(e))return Me.decode(e)[0];if(L.isHex(e))return L.FromHex(e);if(L.isBase64(e))return L.FromBase64(e);if(L.isBase64Url(e))return L.FromBase64Url(e);throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url")}else{const t=L.ToBinary(e);return Me.isPem(t)?Me.decode(t)[0]:L.isHex(t)?L.FromHex(t):L.isBase64(t)?L.FromBase64(t):L.isBase64Url(t)?L.FromBase64Url(t):_.toArrayBuffer(e)}}constructor(...e){wt.isAsnEncoded(e[0])?super(wt.toArrayBuffer(e[0]),e[1]):super(e[0])}toString(e="pem"){switch(e){case"pem":return Me.encode(this.rawData,this.tag);default:return super.toString(e)}}}class lt extends wt{static async create(e,t=Ne.get()){if(e instanceof lt)return e;if(Ot.isCryptoKey(e)){if(e.type!=="public")throw new TypeError("Public key is required");const i=await t.subtle.exportKey("spki",e);return new lt(i)}else{if(e.publicKey)return e.publicKey;if(_.isBufferSource(e))return new lt(e);throw new TypeError("Unsupported PublicKeyType")}}constructor(e){wt.isAsnEncoded(e)?super(e,ot):super(e),this.tag=Me.PublicKeyTag}async export(...e){let t,i=["verify"],n={hash:"SHA-256",...this.algorithm};e.length>1?(n=e[0]||n,i=e[1]||i,t=e[2]||Ne.get()):t=e[0]||Ne.get();let s=this.rawData;const c=j.parse(this.rawData,ot);return c.algorithm.algorithm===Xr&&(s=Hd(c,s)),t.subtle.importKey("spki",s,n,!0,i)}onInit(e){const t=Ie.resolve(xr),i=this.algorithm=t.toWebAlgorithm(e.algorithm);switch(e.algorithm.algorithm){case Wt:{const n=j.parse(e.subjectPublicKey,Os),s=_.toUint8Array(n.modulus);i.publicExponent=_.toUint8Array(n.publicExponent),i.modulusLength=(s[0]?s:s.slice(1)).byteLength<<3;break}}}async getThumbprint(...e){var t;let i,n="SHA-1";return e.length>=1&&!(!((t=e[0])===null||t===void 0)&&t.subtle)?(n=e[0]||n,i=e[1]||Ne.get()):i=e[0]||Ne.get(),await i.subtle.digest(n,this.rawData)}async getKeyIdentifier(...e){let t,i="SHA-1";e.length===1?typeof e[0]=="string"?(i=e[0],t=Ne.get()):t=e[0]:e.length===2?(i=e[0],t=e[1]):t=Ne.get();const n=j.parse(this.rawData,ot);return await t.subtle.digest(i,n.subjectPublicKey)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ot);switch(e.Algorithm=Qt.serializeAlgorithm(t.algorithm),t.algorithm.algorithm){case Yr:e["EC Point"]=t.subjectPublicKey;break;case Wt:default:e["Raw Data"]=t.subjectPublicKey}return e}}function Hd(r,e){return r.algorithm=new R({algorithm:Wt,parameters:null}),e=j.serialize(r),e}class ci extends Ke{static async create(e,t=!1,i=Ne.get()){if("name"in e&&"serialNumber"in e)return new ci(e,t);const s=await(await lt.create(e,i)).getKeyIdentifier(i);return new ci(L.ToHex(s),t)}constructor(...e){if(_.isBufferSource(e[0]))super(e[0]);else if(typeof e[0]=="string"){const t=new Ht({keyIdentifier:new Bo(L.FromHex(e[0]))});super(xo,e[1],j.serialize(t))}else{const t=e[0],i=t.name instanceof oi?j.parse(t.name.rawData,Ee):t.name,n=new Ht({authorityCertIssuer:i,authorityCertSerialNumber:L.FromHex(t.serialNumber)});super(xo,e[1],j.serialize(n))}}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,Ht);t.keyIdentifier&&(this.keyId=L.ToHex(t.keyIdentifier)),(t.authorityCertIssuer||t.authorityCertSerialNumber)&&(this.certId={name:t.authorityCertIssuer||[],serialNumber:t.authorityCertSerialNumber?L.ToHex(t.authorityCertSerialNumber):""})}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,Ht);return t.authorityCertIssuer&&(e["Authority Issuer"]=new oi(t.authorityCertIssuer).toTextObject()),t.authorityCertSerialNumber&&(e["Authority Serial Number"]=t.authorityCertSerialNumber),t.keyIdentifier&&(e[""]=t.keyIdentifier),e}}ci.NAME="Authority Key Identifier";class Tu extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Pi);this.ca=t.cA,this.pathLength=t.pathLenConstraint}else{const t=new Pi({cA:e[0],pathLenConstraint:e[1]});super(Dc,e[2],j.serialize(t)),this.ca=e[0],this.pathLength=e[1]}}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ca&&(e.CA=this.ca),this.pathLength!==void 0&&(e["Path Length"]=this.pathLength),e}}Tu.NAME="Basic Constraints";var Vu;(function(r){r.serverAuth="1.3.6.1.5.5.7.3.1",r.clientAuth="1.3.6.1.5.5.7.3.2",r.codeSigning="1.3.6.1.5.5.7.3.3",r.emailProtection="1.3.6.1.5.5.7.3.4",r.timeStamping="1.3.6.1.5.5.7.3.8",r.ocspSigning="1.3.6.1.5.5.7.3.9"})(Vu||(Vu={}));class _u extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Ui);this.usages=t.map(i=>i)}else{const t=new Ui(e[0]);super(Fc,e[1],j.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[""]=this.usages.map(t=>It.toString(t)).join(", "),e}}_u.NAME="Extended Key Usages";var aa;(function(r){r[r.digitalSignature=1]="digitalSignature",r[r.nonRepudiation=2]="nonRepudiation",r[r.keyEncipherment=4]="keyEncipherment",r[r.dataEncipherment=8]="dataEncipherment",r[r.keyAgreement=16]="keyAgreement",r[r.keyCertSign=32]="keyCertSign",r[r.cRLSign=64]="cRLSign",r[r.encipherOnly=128]="encipherOnly",r[r.decipherOnly=256]="decipherOnly"})(aa||(aa={}));class ca extends Ke{constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,Lo);this.usages=t.toNumber()}else{const t=new Lo(e[0]);super(Kc,e[1],j.serialize(t)),this.usages=e[0]}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,Lo);return e[""]=t.toJSON().join(", "),e}}ca.NAME="Key Usages";class Ln extends Ke{static async create(e,t=!1,i=Ne.get()){const s=await(await lt.create(e,i)).getKeyIdentifier(i);return new Ln(L.ToHex(s),t)}constructor(...e){if(_.isBufferSource(e[0])){super(e[0]);const t=j.parse(this.value,xt);this.keyId=L.ToHex(t)}else{const t=typeof e[0]=="string"?L.FromHex(e[0]):e[0],i=new xt(t);super(Zc,e[1],j.serialize(i)),this.keyId=L.ToHex(t)}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=j.parse(this.value,xt);return e[""]=t,e}}Ln.NAME="Subject Key Identifier";class la extends Ke{constructor(...e){_.isBufferSource(e[0])?super(e[0]):super(Jc,e[1],new oi(e[0]||[]).rawData)}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,zo);this.names=new oi(t)}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.names.toTextObject();for(const i in t)e[i]=t[i];return e}}la.NAME="Subject Alternative Name";class ze{static register(e,t){this.items.set(e,t)}static create(e){const t=new Ke(e),i=this.items.get(t.type);return i?new i(e):t}}ze.items=new Map;class ju extends Ke{constructor(...e){var t;if(_.isBufferSource(e[0])){super(e[0]);const i=j.parse(this.value,$i);this.policies=i.map(n=>n.policyIdentifier)}else{const i=e[0],n=(t=e[1])!==null&&t!==void 0?t:!1,s=new $i(i.map(c=>new Di({policyIdentifier:c})));super(Mc,n,j.serialize(s)),this.policies=i}}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Policy=this.policies.map(t=>new oe("",{},It.toString(t))),e}}ju.NAME="Certificate Policies",ze.register(Mc,ju);class Pu extends Ke{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else if(Array.isArray(e[0])&&typeof e[0][0]=="string"){const n=e[0].map(c=>new ar({distributionPoint:new Ft({fullName:[new Z({uniformResourceIdentifier:c})]})})),s=new cr(n);super(jo,e[1],j.serialize(s))}else{const i=new cr(e[0]);super(jo,e[1],j.serialize(i))}(t=this.distributionPoints)!==null&&t!==void 0||(this.distributionPoints=[])}onInit(e){super.onInit(e);const t=j.parse(e.extnValue,cr);this.distributionPoints=t}toTextObject(){const e=this.toTextObjectWithoutValue();return e["Distribution Point"]=this.distributionPoints.map(t=>{var i;const n={};return t.distributionPoint&&(n[""]=(i=t.distributionPoint.fullName)===null||i===void 0?void 0:i.map(s=>new Vt(s).toString()).join(", ")),t.reasons&&(n.Reasons=t.reasons.toString()),t.cRLIssuer&&(n["CRL Issuer"]=t.cRLIssuer.map(s=>s.toString()).join(", ")),n}),e}}Pu.NAME="CRL Distribution Points";class Ru extends Ke{constructor(...e){var t,i,n,s;if(_.isBufferSource(e[0]))super(e[0]);else if(e[0]instanceof sr){const c=new sr(e[0]);super(Co,e[1],j.serialize(c))}else{const c=e[0],u=new sr;Fn(u,c,_c,"ocsp"),Fn(u,c,jc,"caIssuers"),Fn(u,c,Pc,"timeStamping"),Fn(u,c,Rc,"caRepository"),super(Co,e[1],j.serialize(u))}(t=this.ocsp)!==null&&t!==void 0||(this.ocsp=[]),(i=this.caIssuers)!==null&&i!==void 0||(this.caIssuers=[]),(n=this.timeStamping)!==null&&n!==void 0||(this.timeStamping=[]),(s=this.caRepository)!==null&&s!==void 0||(this.caRepository=[])}onInit(e){super.onInit(e),this.ocsp=[],this.caIssuers=[],this.timeStamping=[],this.caRepository=[],j.parse(e.extnValue,sr).forEach(i=>{switch(i.accessMethod){case _c:this.ocsp.push(new Vt(i.accessLocation));break;case jc:this.caIssuers.push(new Vt(i.accessLocation));break;case Pc:this.timeStamping.push(new Vt(i.accessLocation));break;case Rc:this.caRepository.push(new Vt(i.accessLocation));break}})}toTextObject(){const e=this.toTextObjectWithoutValue();return this.ocsp.length&&Hn(e,"OCSP",this.ocsp),this.caIssuers.length&&Hn(e,"CA Issuers",this.caIssuers),this.timeStamping.length&&Hn(e,"Time Stamping",this.timeStamping),this.caRepository.length&&Hn(e,"CA Repository",this.caRepository),e}}Ru.NAME="Authority Info Access";function Hn(r,e,t){if(t.length===1)r[e]=t[0].toTextObject();else{const i=new oe("");t.forEach((n,s)=>{const c=n.toTextObject(),u=`${c[oe.NAME]} ${s+1}`;let f=i[u];Array.isArray(f)||(f=[],i[u]=f),f.push(c)}),r[e]=i}}function Fn(r,e,t,i){const n=e[i];n&&(Array.isArray(n)?n:[n]).forEach(c=>{typeof c=="string"&&(c=new Vt("url",c)),r.push(new Dr({accessMethod:t,accessLocation:j.parse(c.rawData,Z)}))})}class Er extends Nt{constructor(...e){let t;if(_.isBufferSource(e[0]))t=_.toArrayBuffer(e[0]);else{const i=e[0],n=Array.isArray(e[1])?e[1].map(s=>_.toArrayBuffer(s)):[];t=j.serialize(new gt({type:i,values:n}))}super(t,gt)}onInit(e){this.type=e.type,this.values=e.values}toTextObject(){const e=this.toTextObjectWithoutValue();return e.Value=this.values.map(t=>new oe("",{"":t})),e}toTextObjectWithoutValue(){const e=this.toTextObjectEmpty();return e[oe.NAME]===Er.NAME&&(e[oe.NAME]=It.toString(this.type)),e}}Er.NAME="Attribute";class Du extends Er{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else{const i=new Dn({printableString:e[0]});super(_l,[j.serialize(i)])}(t=this.password)!==null&&t!==void 0||(this.password="")}onInit(e){if(super.onInit(e),this.values[0]){const t=j.parse(this.values[0],Dn);this.password=t.toString()}}toTextObject(){const e=this.toTextObjectWithoutValue();return e[oe.VALUE]=this.password,e}}Du.NAME="Challenge Password";class ua extends Er{constructor(...e){var t;if(_.isBufferSource(e[0]))super(e[0]);else{const i=e[0],n=new qt;for(const s of i)n.push(j.parse(s.rawData,Qe));super(Ks,[j.serialize(n)])}(t=this.items)!==null&&t!==void 0||(this.items=[])}onInit(e){if(super.onInit(e),this.values[0]){const t=j.parse(this.values[0],qt);this.items=t.map(i=>ze.create(j.serialize(i)))}}toTextObject(){const e=this.toTextObjectWithoutValue(),t=this.items.map(i=>i.toTextObject());for(const i of t)e[i[oe.NAME]]=i;return e}}ua.NAME="Extensions";class qn{static register(e,t){this.items.set(e,t)}static create(e){const t=new Er(e),i=this.items.get(t.type);return i?new i(e):t}}qn.items=new Map;const Kn="crypto.signatureFormatter";class Fd{toAsnSignature(e,t){return _.toArrayBuffer(t)}toWebSignature(e,t){return _.toArrayBuffer(t)}}var zn;let fa=zn=class{static createPssParams(e,t){const i=zn.getHashAlgorithm(e);return i?new Yt({hashAlgorithm:i,maskGenAlgorithm:new R({algorithm:An,parameters:j.serialize(i)}),saltLength:t}):null}static getHashAlgorithm(e){const t=Ie.resolve(xr);return typeof e=="string"?t.toAsnAlgorithm({name:e}):typeof e=="object"&&e&&"name"in e?t.toAsnAlgorithm(e):null}toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"rsassa-pkcs1-v1_5":if("hash"in e){let t;if(typeof e.hash=="string")t=e.hash;else if(e.hash&&typeof e.hash=="object"&&"name"in e.hash&&typeof e.hash.name=="string")t=e.hash.name.toUpperCase();else throw new Error("Cannot get hash algorithm name");switch(t.toLowerCase()){case"sha-1":return new R({algorithm:yn,parameters:null});case"sha-256":return new R({algorithm:Es,parameters:null});case"sha-384":return new R({algorithm:gn,parameters:null});case"sha-512":return new R({algorithm:mn,parameters:null})}}else return new R({algorithm:Wt,parameters:null});break;case"rsa-pss":if("hash"in e){if(!("saltLength"in e&&typeof e.saltLength=="number"))throw new Error("Cannot get 'saltLength' from 'alg' argument");const t=zn.createPssParams(e.hash,e.saltLength);if(!t)throw new Error("Cannot create PSS parameters");return new R({algorithm:Xr,parameters:j.serialize(t)})}else return new R({algorithm:Xr,parameters:null})}return null}toWebAlgorithm(e){switch(e.algorithm){case Wt:return{name:"RSASSA-PKCS1-v1_5"};case yn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-1"}};case Es:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};case gn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-384"}};case mn:return{name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-512"}};case Xr:if(e.parameters){const t=j.parse(e.parameters,Yt);return{name:"RSA-PSS",hash:Ie.resolve(xr).toWebAlgorithm(t.hashAlgorithm),saltLength:t.saltLength}}else return{name:"RSA-PSS"}}return null}};fa=zn=a([On()],fa),Ie.registerSingleton(ii,fa);let da=class{toAsnAlgorithm(e){switch(e.name.toLowerCase()){case"sha-1":return new R({algorithm:bn});case"sha-256":return new R({algorithm:vn});case"sha-384":return new R({algorithm:wn});case"sha-512":return new R({algorithm:Sn})}return null}toWebAlgorithm(e){switch(e.algorithm){case bn:return{name:"SHA-1"};case vn:return{name:"SHA-256"};case wn:return{name:"SHA-384"};case Sn:return{name:"SHA-512"}}return null}};da=a([On()],da),Ie.registerSingleton(ii,da);class Ge{addPadding(e,t){const i=_.toUint8Array(t),n=new Uint8Array(e);return n.set(i,e-i.length),n}removePadding(e,t=!1){let i=_.toUint8Array(e);for(let n=0;n<i.length;n++)if(i[n]){i=i.slice(n);break}if(t&&i[0]>127){const n=new Uint8Array(i.length+1);return n.set(i,1),n.buffer}return i.buffer}toAsnSignature(e,t){if(e.name==="ECDSA"){const i=e.namedCurve,n=Ge.namedCurveSize.get(i)||Ge.defaultNamedCurveSize,s=new hn,c=_.toUint8Array(t);return s.r=this.removePadding(c.slice(0,n),!0),s.s=this.removePadding(c.slice(n,n+n),!0),j.serialize(s)}return null}toWebSignature(e,t){if(e.name==="ECDSA"){const i=j.parse(t,hn),n=e.namedCurve,s=Ge.namedCurveSize.get(n)||Ge.defaultNamedCurveSize,c=this.addPadding(s,this.removePadding(i.r)),u=this.addPadding(s,this.removePadding(i.s));return rf(c,u)}return null}}Ge.namedCurveSize=new Map,Ge.defaultNamedCurveSize=32;const pa="1.3.101.110",$u="1.3.101.111",ha="1.3.101.112",Mu="1.3.101.113";let ya=class{toAsnAlgorithm(e){let t=null;switch(e.name.toLowerCase()){case"ed25519":t=ha;break;case"x25519":t=pa;break;case"eddsa":switch(e.namedCurve.toLowerCase()){case"ed25519":t=ha;break;case"ed448":t=Mu;break}break;case"ecdh-es":switch(e.namedCurve.toLowerCase()){case"x25519":t=pa;break;case"x448":t=$u;break}}return t?new R({algorithm:t}):null}toWebAlgorithm(e){switch(e.algorithm){case ha:return{name:"Ed25519"};case Mu:return{name:"EdDSA",namedCurve:"Ed448"};case pa:return{name:"X25519"};case $u:return{name:"ECDH-ES",namedCurve:"X448"}}return null}};ya=a([On()],ya),Ie.registerSingleton(ii,ya);class qd extends wt{constructor(e){wt.isAsnEncoded(e)?super(e,ri):super(e),this.tag=Me.CertificateRequestTag}onInit(e){this.tbs=j.serialize(e.certificationRequestInfo),this.publicKey=new lt(e.certificationRequestInfo.subjectPKInfo);const t=Ie.resolve(xr);this.signatureAlgorithm=t.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signature,this.attributes=e.certificationRequestInfo.attributes.map(n=>qn.create(j.serialize(n)));const i=this.getAttribute(Ks);this.extensions=[],i instanceof ua&&(this.extensions=i.items),this.subjectName=new Tt(e.certificationRequestInfo.subject),this.subject=this.subjectName.toString()}getAttribute(e){for(const t of this.attributes)if(t.type===e)return t;return null}getAttributes(e){return this.attributes.filter(t=>t.type===e)}getExtension(e){for(const t of this.extensions)if(t.type===e)return t;return null}getExtensions(e){return this.extensions.filter(t=>t.type===e)}async verify(e=Ne.get()){const t={...this.publicKey.algorithm,...this.signatureAlgorithm},i=await this.publicKey.export(t,["verify"],e),n=Ie.resolveAll(Kn).reverse();let s=null;for(const u of n)if(s=u.toWebSignature(t,this.signature),s)break;if(!s)throw Error("Cannot convert WebCrypto signature value to ASN.1 format");return await e.subtle.verify(this.signatureAlgorithm,i,s,this.tbs)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ri),i=t.certificationRequestInfo,n=new oe("",{Version:`${lr[i.version]} (${i.version})`,Subject:this.subject,"Subject Public Key Info":this.publicKey});if(this.attributes.length){const s=new oe("");for(const c of this.attributes){const u=c.toTextObject();s[u[oe.NAME]]=u}n.Attributes=s}return e.Data=n,e.Signature=new oe("",{Algorithm:Qt.serializeAlgorithm(t.signatureAlgorithm),"":t.signature}),e}}qd.NAME="PKCS#10 Certificate Request";class Uu extends wt{constructor(e){wt.isAsnEncoded(e)?super(e,ur):super(e),this.tag=Me.CertificateTag}onInit(e){const t=e.tbsCertificate;this.tbs=j.serialize(t),this.serialNumber=L.ToHex(t.serialNumber),this.subjectName=new Tt(t.subject),this.subject=new Tt(t.subject).toString(),this.issuerName=new Tt(t.issuer),this.issuer=this.issuerName.toString();const i=Ie.resolve(xr);this.signatureAlgorithm=i.toWebAlgorithm(e.signatureAlgorithm),this.signature=e.signatureValue;const n=t.validity.notBefore.utcTime||t.validity.notBefore.generalTime;if(!n)throw new Error("Cannot get 'notBefore' value");this.notBefore=n;const s=t.validity.notAfter.utcTime||t.validity.notAfter.generalTime;if(!s)throw new Error("Cannot get 'notAfter' value");this.notAfter=s,this.extensions=[],t.extensions&&(this.extensions=t.extensions.map(c=>ze.create(j.serialize(c)))),this.publicKey=new lt(t.subjectPublicKeyInfo)}getExtension(e){for(const t of this.extensions)if(typeof e=="string"){if(t.type===e)return t}else if(t instanceof e)return t;return null}getExtensions(e){return this.extensions.filter(t=>typeof e=="string"?t.type===e:t instanceof e)}async verify(e={},t=Ne.get()){let i,n;const s=e.publicKey;try{if(!s)i={...this.publicKey.algorithm,...this.signatureAlgorithm},n=await this.publicKey.export(i,["verify"],t);else if("publicKey"in s)i={...s.publicKey.algorithm,...this.signatureAlgorithm},n=await s.publicKey.export(i,["verify"],t);else if(s instanceof lt)i={...s.algorithm,...this.signatureAlgorithm},n=await s.export(i,["verify"],t);else if(_.isBufferSource(s)){const p=new lt(s);i={...p.algorithm,...this.signatureAlgorithm},n=await p.export(i,["verify"],t)}else i={...s.algorithm,...this.signatureAlgorithm},n=s}catch{return!1}const c=Ie.resolveAll(Kn).reverse();let u=null;for(const p of c)if(u=p.toWebSignature(i,this.signature),u)break;if(!u)throw Error("Cannot convert ASN.1 signature value to WebCrypto format");const f=await t.subtle.verify(this.signatureAlgorithm,n,u,this.tbs);if(e.signatureOnly)return f;{const b=(e.date||new Date).getTime();return f&&this.notBefore.getTime()<b&&b<this.notAfter.getTime()}}async getThumbprint(...e){let t,i="SHA-1";return e[0]&&(e[0].subtle?t=e[0]:(i=e[0]||i,t=e[1])),t??(t=Ne.get()),await t.subtle.digest(i,this.rawData)}async isSelfSigned(e=Ne.get()){return this.subject===this.issuer&&await this.verify({signatureOnly:!0},e)}toTextObject(){const e=this.toTextObjectEmpty(),t=j.parse(this.rawData,ur),i=t.tbsCertificate,n=new oe("",{Version:`${lr[i.version]} (${i.version})`,"Serial Number":i.serialNumber,"Signature Algorithm":Qt.serializeAlgorithm(i.signature),Issuer:this.issuer,Validity:new oe("",{"Not Before":i.validity.notBefore.getTime(),"Not After":i.validity.notAfter.getTime()}),Subject:this.subject,"Subject Public Key Info":this.publicKey});if(i.issuerUniqueID&&(n["Issuer Unique ID"]=i.issuerUniqueID),i.subjectUniqueID&&(n["Subject Unique ID"]=i.subjectUniqueID),this.extensions.length){const s=new oe("");for(const c of this.extensions){const u=c.toTextObject();s[u[oe.NAME]]=u}n.Extensions=s}return e.Data=n,e.Signature=new oe("",{Algorithm:Qt.serializeAlgorithm(t.signatureAlgorithm),"":t.signatureValue}),e}}Uu.NAME="Certificate";var Lu;(function(r){r[r.unspecified=0]="unspecified",r[r.keyCompromise=1]="keyCompromise",r[r.cACompromise=2]="cACompromise",r[r.affiliationChanged=3]="affiliationChanged",r[r.superseded=4]="superseded",r[r.cessationOfOperation=5]="cessationOfOperation",r[r.certificateHold=6]="certificateHold",r[r.removeFromCRL=8]="removeFromCRL",r[r.privilegeWithdrawn=9]="privilegeWithdrawn",r[r.aACompromise=10]="aACompromise"})(Lu||(Lu={})),ze.register(Dc,Tu),ze.register(Fc,_u),ze.register(Kc,ca),ze.register(Zc,Ln),ze.register(xo,ci),ze.register(Jc,la),ze.register(jo,Pu),ze.register(Co,Ru),qn.register(_l,Du),qn.register(Ks,ua),Ie.registerSingleton(Kn,Fd),Ie.registerSingleton(Kn,Ge),Ge.namedCurveSize.set("P-256",32),Ge.namedCurveSize.set("K-256",32),Ge.namedCurveSize.set("P-384",48),Ge.namedCurveSize.set("P-521",66);function Hu(){return{parseMetaCertificateData:e=>{if(/{vault:\/\/.*}/g.test(e))throw new Error("not a X.509 certificate");const t=new Uu(e),i={subject:t.subjectName.toString(),issuer:t.issuer,notAfter:t.notAfter};for(const n of t.extensions)if(n instanceof la){const s=n.names.toJSON(),u=Object.entries(s).map(f=>({type:f[1].type,value:f[1].value})).reduce((f,p)=>{const b=p.type,y=f[b]??[];return{...f,[b]:[...y,p.value]}},{});for(const f in u)i.subjectAltName=`${f}=${u[f].join(", ")}`}else if(n instanceof ca){const s=Object.values(aa),c=Array(s.length/2).fill(null).reduce((u,f,p)=>{const b=s[s.length/2+p];if(n.usages&b){const y=s[p];u.push(y)}return u},[]);i.keyUsage=c}return i}}}function Kd(){const r=Hu(),e=o.ref({}),t=n=>{if(!(n.id in e.value))try{e.value[n.id]=r.parseMetaCertificateData(n.cert)}catch{e.value[n.id]=void 0}return e.value[n.id]};return{certificateDataCache:e,getCertificateData:n=>{const s=t(n);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 zd={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."},empty_state_v2:{create:"New certificate",title:"Configure your first certificate",description:"Certificates manage SSL/TLS encryption, ensuring secure communication between clients and your API services."}},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"},snis:{label:"SNIs",placeholder:"Enter an SNI",add:"Add an SNI",tooltip:"Zero or more hostnames to associate with this certificate as SNIs",editingTip:"To manage SNIs for this certificate, click {link}.",editingTipLink:"here"},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."},empty_state_v2:{create:"New CA certificate",title:"Configure your first CA certificate",description:"CA Certificates validate the authenticity of client and server certificates, reinforcing the trust and security of your API communications."}},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 Gd(){const r=wa.createI18n("en-us",zd);return{i18n:r,i18nT:wa.i18nTComponent(r)}}const et={useCertificate:Kd,useI18n:Gd,useX509:Hu},Gn="/v2/control-planes/{controlPlaneId}/core-entities",Wn="/{workspace}",li={list:{konnect:`${Gn}/certificates`,kongManager:`${Wn}/certificates`},form:{konnect:{create:`${Gn}/certificates`,edit:`${Gn}/certificates/{id}`,validate:`${Gn}/v1/schemas/json/certificate/validate`},kongManager:{create:`${Wn}/certificates`,edit:`${Wn}/certificates/{id}`,validate:`${Wn}/schemas/certificates/validate`}}},Wd={class:"kong-ui-entities-certificates-list"},Jd={class:"button-row"},Yd={class:"empty-state-icon-gateway"},Zd={key:0},Qd={key:1},Xd={key:0},ep={key:1},tp={key:0},rp={key:1},ip={key:1},np=o.defineComponent({__name:"CertificateList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canCreateSni:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:e}){var F;const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),u=di.useRouter(),{axiosInstance:f}=N.useAxios((F=i.config)==null?void 0:F.axiosRequestConfig),{hideTableToolbar:p,handleStateChange:b}=N.useTableState(()=>g.value),y=o.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),O={subject:{label:n("certificates.list.table_headers.subject"),hidable:!1},expiry:{label:n("certificates.list.table_headers.expiry")},san:{label:n("certificates.list.table_headers.san")},cert:{label:n("certificates.list.table_headers.cert")},tags:{label:n("certificates.list.table_headers.tags"),sortable:!0}},d=o.computed(()=>{var Y,ie;let U=`${i.config.apiBaseUrl}${li.list[i.config.app]}`;return i.config.app==="konnect"?U=U.replace(/{controlPlaneId}/gi,((Y=i.config)==null?void 0:Y.controlPlaneId)||""):i.config.app==="kongManager"&&(U=U.replace(/\/{workspace}/gi,(ie=i.config)!=null&&ie.workspace?`/${i.config.workspace}`:"")),U}),g=o.ref(""),S=o.computed(()=>{const U=i.config.app==="konnect"||i.config.isExactMatch;return U?{isExactMatch:U,placeholder:n("certificates.search.placeholder")}:{isExactMatch:U,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:E,fetcherCacheKey:k}=N.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},d.value),I=()=>{g.value=""},Q=()=>{k.value++},ee=o.ref(null),$=(U,Y)=>{const ie=U.id;if(!Y(ie)){t("copy:error",{entity:U,field:"id",message:n("certificates.errors.copy")});return}t("copy:success",{entity:U,field:"id",message:n("certificates.copy.success",{val:ie})})},x=(U,Y)=>{const ie=JSON.stringify(U);if(!Y(ie)){t("copy:error",{entity:U,message:n("certificates.errors.copy")});return}t("copy:success",{entity:U,message:n("certificates.copy.success_brief")})},T=async U=>{var ie;await((ie=i.canRetrieve)==null?void 0:ie.call(i,U))&&u.push(i.config.getViewRoute(U.id))},ge=U=>({label:n("certificates.actions.view"),to:i.config.getViewRoute(U)}),ce=U=>({label:n("certificates.actions.edit"),to:i.config.getEditRoute(U)}),Ue=U=>{if(i.config.getCreateSniRoute)return{label:n("certificates.actions.addSni"),to:i.config.getCreateSniRoute(U)}},ae=o.ref(void 0),le=o.ref(!1),Re=o.ref(!1),re=o.ref(""),Ir=N.useDeleteUrlBuilder(i.config,d.value),{certificateDataCache:_t,getCertificateData:St}=et.useCertificate(),Nr=U=>{ae.value=U,le.value=!0},Or=()=>{le.value=!1},G=async()=>{var U,Y,ie;if((U=ae.value)!=null&&U.id){Re.value=!0;try{await f.delete(Ir(ae.value.id)),Re.value=!1,le.value=!1,k.value++,t("delete:success",ae.value)}catch(Le){re.value=((ie=(Y=Le.response)==null?void 0:Y.data)==null?void 0:ie.message)||Le.message||n("certificates.errors.delete"),t("error",Le)}finally{Re.value=!1}}},We=()=>{u.push(i.config.createRoute)};o.watch(E,U=>{var Y,ie,Le;if(U.status===N.FetcherStatus.Error){ee.value={title:n("certificates.errors.general")},(Le=(ie=(Y=U.error)==null?void 0:Y.response)==null?void 0:ie.data)!=null&&Le.message&&(ee.value.message=U.error.response.data.message),t("error",U.error);return}_t.value={},ee.value=null});const jt=o.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${n("certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:n("certificates.title")});return o.onBeforeMount(async()=>{await i.canCreate()&&(jt.value.title=n("certificates.list.empty_state.title"),jt.value.ctaText=n("certificates.actions.create"))}),(U,Y)=>{const ie=o.resolveComponent("KButton"),Le=o.resolveComponent("KCopy"),J=o.resolveComponent("KDropdownItem"),Ce=o.resolveComponent("KClipboardProvider");return o.openBlock(),o.createElementBlock("div",Wd,[o.createVNode(o.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":y.value,"empty-state-options":jt.value,"enable-entity-actions":"","error-message":ee.value,fetcher:o.unref(w),"fetcher-cache-key":o.unref(k),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-certificates-list",query:g.value,"table-headers":o.unref(O),onClearSearchInput:I,"onClick:row":Y[3]||(Y[3]=W=>T(W)),onSort:Q,onState:o.unref(b)},o.createSlots({"toolbar-filter":o.withCtx(()=>[o.createVNode(o.unref(N.EntityFilter),{modelValue:g.value,"onUpdate:modelValue":Y[0]||(Y[0]=W=>g.value=W),config:S.value},null,8,["modelValue","config"])]),"toolbar-button":o.withCtx(()=>[(o.openBlock(),o.createBlock(o.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[o.createElementVNode("div",Jd,[r.enableV2EmptyStates&&!o.unref(p)&&r.config.app==="konnect"?(o.openBlock(),o.createBlock(ie,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"certificates-learn-more-button",icon:"",onClick:Y[1]||(Y[1]=W=>U.$emit("click:learn-more"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.BookIcon),{decorative:""})]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:o.withCtx(()=>[o.createVNode(ie,{appearance:"primary","data-testid":"toolbar-add-certificate",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon)),o.createTextVNode(" "+o.toDisplayString(o.unref(n)("certificates.list.toolbar_actions.new_certificate")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),subject:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("b",Zd,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.subject?W.metadata.subject:"-"),1)):(o.openBlock(),o.createElementBlock("b",Qd,o.toDisplayString(o.unref(St)(W).schemaSubject||"-"),1))]}),expiry:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",Xd,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.expiry?o.unref(s)(W.metadata.expiry):"-"),1)):(o.openBlock(),o.createElementBlock("span",ep,o.toDisplayString(o.unref(St)(W).schemaExpiry?o.unref(s)(o.unref(St)(W).schemaExpiry):"-"),1))]}),san:o.withCtx(({row:W})=>{var xe;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",tp,o.toDisplayString((xe=W==null?void 0:W.metadata)!=null&&xe.dns_names?`dns=${W.metadata.dns_names.join(", ")}`:"-"),1)):(o.openBlock(),o.createElementBlock("span",rp,o.toDisplayString(o.unref(St)(W).schemaSanNames||"-"),1))]}),cert:o.withCtx(({row:W})=>[W!=null&&W.cert?(o.openBlock(),o.createBlock(Le,{key:0,"data-testid":"copy-certificate-cert",text:W.cert,truncate:""},null,8,["text"])):(o.openBlock(),o.createElementBlock("span",ip,"-"))]),tags:o.withCtx(({row:W})=>[o.createVNode(o.unref(N.TableTags),{tags:W==null?void 0:W.tags},null,8,["tags"])]),actions:o.withCtx(({row:W})=>[o.createVNode(Ce,null,{default:o.withCtx(({copyToClipboard:xe})=>[o.createVNode(J,{"data-testid":"action-entity-copy-id",onClick:ga=>$(W,xe)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(Ce,null,{default:o.withCtx(({copyToClipboard:xe})=>[o.createVNode(J,{"data-testid":"action-entity-copy-json",onClick:ga=>x(W,xe)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(W)},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-view","has-divider":"",item:ge(W.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(W)},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-edit",item:ce(W.id)},null,8,["item"])]),_:2},1032,["auth-function"]),r.config.getCreateSniRoute?(o.openBlock(),o.createBlock(o.unref(N.PermissionsWrapper),{key:0,"auth-function":()=>r.canCreateSni()},{default:o.withCtx(()=>[o.createVNode(J,{"data-testid":"action-entity-add-sni",item:Ue(W.id)},null,8,["item"])]),_:2},1032,["auth-function"])):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(W)},{default:o.withCtx(()=>[o.createVNode(J,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:xe=>Nr(W)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("certificates.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:o.withCtx(()=>[o.createVNode(o.unref(N.EntityEmptyState),{"action-button-text":o.unref(n)("certificates.list.empty_state_v2.create"),appearance:"secondary","can-create":()=>r.canCreate(),description:o.unref(n)("certificates.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:o.unref(n)("certificates.list.empty_state_v2.title"),"onClick:create":We,"onClick:learnMore":Y[2]||(Y[2]=W=>U.$emit("click:learn-more"))},{image:o.withCtx(()=>[o.createElementVNode("div",Yd,[o.createVNode(o.unref(At.ServiceDocumentIcon),{color:o.unref(Sa),size:o.unref(Aa)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),o.createVNode(o.unref(N.EntityDeleteModal),{"action-pending":Re.value,"entity-type":o.unref(N.EntityTypes).Certificate,error:re.value,title:o.unref(n)("certificates.delete.title"),visible:le.value,onCancel:Or,onProceed:G},{description:o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.delete.description",scope:"global"},{"bolded-text":o.withCtx(()=>[o.createElementVNode("b",null,o.toDisplayString(o.unref(n)("certificates.delete.boldedText")),1)]),_:1}),o.createElementVNode("p",null,o.toDisplayString(o.unref(n)("certificates.delete.description2")),1)]),_:1},8,["action-pending","entity-type","error","title","visible"])])}}}),Xt=(r,e)=>{const t=r.__vccOpts||r;for(const[i,n]of e)t[i]=n;return t},op=Xt(np,[["__scopeId","data-v-e1169961"]]),sp={class:"sni-field-container"},ap={key:1,class:"sni-field-controls-container"},cp={key:0},lp=Xt(o.defineComponent({__name:"CertificateFormSniField",props:{isEditing:{type:Boolean,default:!1},modelValue:{type:Array,required:!0},sniListRoute:{type:Object,required:!0}},emits:["add","remove","update:modelValue"],setup(r,{emit:e}){const t=r,i=e,{i18nT:n,i18n:{t:s}}=et.useI18n(),c=o.ref([]);return o.watch(t.modelValue,u=>{c.value=[...u]},{immediate:!0,deep:!0}),o.watch(c,u=>{i("update:modelValue",u)},{deep:!0}),(u,f)=>{const p=o.resolveComponent("KLabel"),b=o.resolveComponent("KInput"),y=o.resolveComponent("KButton"),K=o.resolveComponent("router-link");return o.openBlock(),o.createElementBlock("div",sp,[o.createVNode(p,{info:o.unref(s)("certificates.form.fields.snis.tooltip")},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.label")),1)]),_:1},8,["info"]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,(O,d)=>(o.openBlock(),o.createElementBlock("div",{key:d,class:"sni-field-input"},[!r.isEditing||c.value[d]?(o.openBlock(),o.createBlock(b,{key:0,modelValue:c.value[d],"onUpdate:modelValue":g=>c.value[d]=g,modelModifiers:{trim:!0},"data-testid":`sni-field-input-${d+1}`,disabled:r.isEditing,placeholder:o.unref(s)("certificates.form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","placeholder"])):o.createCommentVNode("",!0),r.isEditing?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",ap,[o.createVNode(y,{appearance:"tertiary",class:"remove-button","data-testid":"remove-sni",icon:"",onClick:g=>u.$emit("remove",d)},{default:o.withCtx(()=>[o.createVNode(o.unref(At.TrashIcon),{color:o.unref(Zu)},null,8,["color"])]),_:2},1032,["onClick"]),o.createVNode(y,{appearance:"tertiary","data-testid":"add-sni",disabled:d!==c.value.length-1,icon:"",onClick:f[0]||(f[0]=g=>u.$emit("add"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon))]),_:2},1032,["disabled"])]))]))),128)),c.value.length===0?(o.openBlock(),o.createElementBlock("div",cp,[o.createVNode(y,{onClick:f[1]||(f[1]=O=>u.$emit("add"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.add")),1)]),_:1})])):o.createCommentVNode("",!0),r.isEditing?(o.openBlock(),o.createBlock(o.unref(n),{key:1,keypath:"certificates.form.fields.snis.editingTip"},{link:o.withCtx(()=>[o.createVNode(K,{to:r.sniListRoute},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(s)("certificates.form.fields.snis.editingTipLink")),1)]),_:1},8,["to"])]),_:1})):o.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-543a45f0"]]),up={class:"kong-ui-entities-certificates-form"},fp=Xt(o.defineComponent({__name:"CertificateForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.cancelRoute)},certificateId:{type:String,required:!1,default:""},showSnisField:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading"],setup(r,{emit:e}){var ee;const t=e,i=r,n=di.useRouter(),{i18nT:s,i18n:{t:c}}=et.useI18n(),{getMessageFromError:u}=N.useErrors(),{axiosInstance:f}=N.useAxios((ee=i.config)==null?void 0:ee.axiosRequestConfig),p=o.computed(()=>li.form[i.config.app].edit),b=o.computed(()=>i.certificateId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),y=o.reactive({fields:{cert:"",key:"",certAlt:"",keyAlt:"",snis:[""],tags:""},isReadonly:!1,errorMessage:""}),K=o.reactive({cert:"",key:"",certAlt:"",keyAlt:"",snis:[""],tags:""}),O=o.computed(()=>(b.value===N.EntityBaseFormType.Create||JSON.stringify(y.fields)!==JSON.stringify(K))&&!!y.fields.cert&&!!y.fields.key),d=$=>{var x,T;y.fields.cert=($==null?void 0:$.cert)||"",y.fields.key=($==null?void 0:$.key)||"",y.fields.certAlt=($==null?void 0:$.cert_alt)||"",y.fields.keyAlt=($==null?void 0:$.key_alt)||"",y.fields.snis=(x=$==null?void 0:$.snis)!=null&&x.length?$.snis:[""],y.fields.tags=((T=$==null?void 0:$.tags)==null?void 0:T.join(", "))||"",Object.assign(K,y.fields)},g=()=>{n.push(i.config.cancelRoute)},S=()=>{y.fields.snis.push("")},w=$=>{y.fields.snis.splice($,1)},E=o.computed(()=>{var x,T;let $=`${i.config.apiBaseUrl}${li.form[i.config.app].validate}`;return i.config.app==="konnect"?$=$.replace(/{controlPlaneId}/gi,((x=i.config)==null?void 0:x.controlPlaneId)||""):i.config.app==="kongManager"&&($=$.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),$=$.replace(/{id}/gi,i.certificateId),$}),k=o.computed(()=>{var x,T;let $=`${i.config.apiBaseUrl}${li.form[i.config.app][b.value]}`;return i.config.app==="konnect"?$=$.replace(/{controlPlaneId}/gi,((x=i.config)==null?void 0:x.controlPlaneId)||""):i.config.app==="kongManager"&&($=$.replace(/\/{workspace}/gi,(T=i.config)!=null&&T.workspace?`/${i.config.workspace}`:"")),$=$.replace(/{id}/gi,i.certificateId),$}),I=o.computed(()=>{var $,x;return{cert:y.fields.cert,key:y.fields.key,cert_alt:y.fields.certAlt||null,key_alt:y.fields.keyAlt||null,...i.showSnisField?{snis:y.fields.snis.filter(Boolean)}:{},tags:(x=($=y.fields.tags.split(","))==null?void 0:$.map(T=>String(T||"").trim()))==null?void 0:x.filter(T=>T!=="")}}),Q=async()=>{var $,x,T,ge,ce,Ue,ae,le,Re;try{y.isReadonly=!0;let re;await f.post(E.value,I.value),b.value==="create"?re=await f.post(k.value,I.value):b.value==="edit"&&(re=(($=i.config)==null?void 0:$.app)==="konnect"?await f.put(k.value,I.value):await f.patch(k.value,I.value)),y.fields.cert=((x=re==null?void 0:re.data)==null?void 0:x.cert)||"",y.fields.key=((T=re==null?void 0:re.data)==null?void 0:T.key)||"",y.fields.certAlt=((ge=re==null?void 0:re.data)==null?void 0:ge.cert_alt)||"",y.fields.keyAlt=((ce=re==null?void 0:re.data)==null?void 0:ce.key_alt)||"",y.fields.snis=(ae=(Ue=re==null?void 0:re.data)==null?void 0:Ue.snis)!=null&&ae.length?re.data.snis:[""],y.fields.tags=((Re=(le=re==null?void 0:re.data)==null?void 0:le.tags)==null?void 0:Re.join(", "))||"",Object.assign(K,y.fields),t("update",re==null?void 0:re.data)}catch(re){y.errorMessage=u(re),t("error",re)}finally{y.isReadonly=!1}};return($,x)=>{const T=o.resolveComponent("KTextArea"),ge=o.resolveComponent("KInput");return o.openBlock(),o.createElementBlock("div",up,[o.createVNode(o.unref(N.EntityBaseForm),{"can-submit":O.value,config:r.config,"edit-id":r.certificateId,"entity-type":o.unref(N.SupportedEntityType).Certificate,"error-message":y.errorMessage,"fetch-url":p.value,"form-fields":I.value,"is-readonly":y.isReadonly,onCancel:g,"onFetch:error":x[7]||(x[7]=ce=>$.$emit("error",ce)),"onFetch:success":d,onLoading:x[8]||(x[8]=ce=>$.$emit("loading",ce)),onSubmit:Q},{default:o.withCtx(()=>[o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(c)("certificates.form.sections.ssl.description"),title:o.unref(c)("certificates.form.sections.ssl.title")},{default:o.withCtx(()=>[o.createVNode(T,{modelValue:y.fields.cert,"onUpdate:modelValue":x[0]||(x[0]=ce=>y.fields.cert=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-cert",label:o.unref(c)("certificates.form.fields.cert.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly,required:""},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.cert.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.cert.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.key,"onUpdate:modelValue":x[1]||(x[1]=ce=>y.fields.key=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-key",label:o.unref(c)("certificates.form.fields.key.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly,required:""},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.key.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.key.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.certAlt,"onUpdate:modelValue":x[2]||(x[2]=ce=>y.fields.certAlt=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-cert-alt",label:o.unref(c)("certificates.form.fields.cert_alt.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.cert_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.cert_alt.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),o.createVNode(T,{modelValue:y.fields.keyAlt,"onUpdate:modelValue":x[3]||(x[3]=ce=>y.fields.keyAlt=ce),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"certificate-form-key-alt",label:o.unref(c)("certificates.form.fields.key_alt.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},readonly:y.isReadonly},{"label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(s),{keypath:"certificates.form.fields.key_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("em",null,o.toDisplayString(o.unref(c)("certificates.form.fields.key_alt.emphasis")),1)]),_:1})]),_:1},8,["modelValue","label","readonly"]),r.showSnisField&&r.config.sniListRoute?(o.openBlock(),o.createBlock(lp,{key:0,modelValue:y.fields.snis,"onUpdate:modelValue":x[4]||(x[4]=ce=>y.fields.snis=ce),"is-editing":b.value===o.unref(N.EntityBaseFormType).Edit,"sni-list-route":r.config.sniListRoute,onAdd:S,onRemove:x[5]||(x[5]=ce=>w(ce))},null,8,["modelValue","is-editing","sni-list-route"])):o.createCommentVNode("",!0)]),_:1},8,["description","title"]),o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(c)("certificates.form.sections.general.description"),title:o.unref(c)("certificates.form.sections.general.title")},{default:o.withCtx(()=>[o.createVNode(ge,{modelValue:y.fields.tags,"onUpdate:modelValue":x[6]||(x[6]=ce=>y.fields.tags=ce),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"certificate-form-tags",help:o.unref(c)("certificates.form.fields.tags.help"),label:o.unref(c)("certificates.form.fields.tags.label"),"label-attributes":{info:o.unref(c)("certificates.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:o.unref(c)("certificates.form.fields.tags.placeholder"),readonly:y.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-fc596de1"]]),Jn="/v2/control-planes/{controlPlaneId}/core-entities",Yn="/{workspace}",ui={list:{konnect:`${Jn}/ca_certificates`,kongManager:`${Yn}/ca_certificates`},form:{konnect:{create:`${Jn}/ca_certificates`,edit:`${Jn}/ca_certificates/{id}`,validate:`${Jn}/v1/schemas/json/ca-certificate/validate`},kongManager:{create:`${Yn}/ca_certificates`,edit:`${Yn}/ca_certificates/{id}`,validate:`${Yn}/schemas/ca_certificates/validate`}}},dp={class:"kong-ui-ca-certificate-entity-config-card"},pp={key:0},hp=Xt(o.defineComponent({__name:"CACertificateConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r,{emit:e}){const t=["dns_names","san_names","subject"],i=e,n=r,{i18n:{t:s,formatUnixTimeStamp:c}}=et.useI18n(),{convertKeyToTitle:u}=N.useStringHelpers(),{getPropValue:f}=N.useHelpers(),{getCertificateData:p}=et.useCertificate(),b=o.computed(()=>ui.form[n.config.app].edit),y=o.ref(),K=o.computed(()=>{if(y.value)return p(y.value)}),O=o.computed(()=>{var k;return((k=K.value)==null?void 0:k.schemaIssuer)||""}),d=o.computed(()=>{var k,I;return(k=K.value)!=null&&k.schemaExpiry?c((I=K.value)==null?void 0:I.schemaExpiry):""}),g=o.computed(()=>{var k;return((k=K.value)==null?void 0:k.schemaKeyUsages)||[]}),S=(k,I)=>{const Q=f("rowValue",I);if(k==="expiry")return d.value;if(k==="key_usages")return g.value;if(Q)return Q[k]},w=k=>{y.value=k,i("fetch:success",k)},E=o.ref({id:{},updated_at:{},created_at:{},cert:{section:N.ConfigurationSchemaSection.Basic,label:s("ca-certificates.form.fields.cert.label"),tooltip:s("ca-certificates.form.fields.cert.tooltip"),order:5},cert_digest:{section:N.ConfigurationSchemaSection.Basic,label:s("ca-certificates.form.fields.cert_digest.label"),tooltip:s("ca-certificates.form.fields.cert_digest.tooltip"),order:6},metadata:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Json,order:7},...n.config.app==="kongManager"&&{expiry:{label:s("certificates.list.table_headers.expiry"),section:N.ConfigurationSchemaSection.Basic,order:1.7,forceShow:!0},issuer:{section:N.ConfigurationSchemaSection.Basic,order:1.5,forceShow:!0},key_usages:{section:N.ConfigurationSchemaSection.Basic,forceShow:!0}},tags:{tooltip:s("ca-certificates.form.fields.tags.tooltip")}});return(k,I)=>{const Q=o.resolveComponent("KCodeBlock"),ee=o.resolveComponent("KLabel"),$=o.resolveComponent("KBadge");return o.openBlock(),o.createElementBlock("div",dp,[o.createVNode(o.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":E.value,"entity-type":o.unref(N.SupportedEntityType).CaCertificate,"fetch-url":b.value,"hide-title":r.hideTitle,"onFetch:error":I[0]||(I[0]=x=>k.$emit("fetch:error",x)),"onFetch:success":w,onLoading:I[1]||(I[1]=x=>k.$emit("loading",x))},{cert:o.withCtx(x=>[o.unref(f)("rowValue",x)?(o.openBlock(),o.createBlock(Q,{key:0,id:`ca-cert-${r.config.entityId}-cert-codeblock`,code:o.unref(f)("rowValue",x),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),"metadata-label":o.withCtx(()=>[o.createVNode(ee,{class:"metadata-label"},{default:o.withCtx(()=>I[2]||(I[2]=[o.createTextVNode(" Metadata ")])),_:1})]),metadata:o.withCtx(x=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(o.unref(f)("rowValue",x)).filter(T=>!t.includes(T)),T=>(o.openBlock(),o.createBlock(o.unref(N.ConfigCardItem),{key:T,"data-testid":`ca-cert-metadata-${T}`,item:{key:T,label:o.unref(u)(T),value:S(T,x),type:T==="key_usages"?o.unref(N.ConfigurationSchemaType).BadgeTag:o.unref(N.ConfigurationSchemaType).Text}},null,8,["data-testid","item"]))),128))]),expiry:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(d.value||"–"),1)]),issuer:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(O.value||"–"),1)]),key_usages:o.withCtx(()=>[g.value.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",pp,o.toDisplayString("–"))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(x,T)=>(o.openBlock(),o.createBlock($,{key:`key_usages-badge-tag-${T}`,class:"config-badge","data-testid":`key_usages-badge-tag-${T}`,tooltip:x,"truncation-tooltip":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(x),1)]),_:2},1032,["data-testid","tooltip"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),[["__scopeId","data-v-1d42f61b"]]),yp={class:"kong-ui-entities-ca-certificates-list"},gp={class:"button-row"},mp={class:"empty-state-icon-gateway"},bp={key:0},vp={key:1},wp={key:0},Sp={key:1},Ap=Xt(o.defineComponent({__name:"CACertificateList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:e}){var jt;const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),u=di.useRouter(),{axiosInstance:f}=N.useAxios((jt=i.config)==null?void 0:jt.axiosRequestConfig),{hideTableToolbar:p,handleStateChange:b}=N.useTableState(()=>g.value),y=o.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),O={issuer:{label:n("ca-certificates.list.table_headers.issuer"),hidable:!1},expiry:{label:n("ca-certificates.list.table_headers.expiry")},tags:{label:n("ca-certificates.list.table_headers.tags"),sortable:!0}},d=o.computed(()=>{var U,Y;let F=`${i.config.apiBaseUrl}${ui.list[i.config.app]}`;return i.config.app==="konnect"?F=F.replace(/{controlPlaneId}/gi,((U=i.config)==null?void 0:U.controlPlaneId)||""):i.config.app==="kongManager"&&(F=F.replace(/\/{workspace}/gi,(Y=i.config)!=null&&Y.workspace?`/${i.config.workspace}`:"")),F}),g=o.ref(""),S=o.computed(()=>{const F=i.config.app==="konnect"||i.config.isExactMatch;return F?{isExactMatch:F,placeholder:n("ca-certificates.search.placeholder")}:{isExactMatch:F,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:E,fetcherCacheKey:k}=N.useFetcher({...i.config,cacheIdentifier:i.cacheIdentifier},d.value),I=()=>{g.value=""},Q=()=>{k.value++},ee=o.ref(null),$=(F,U)=>{const Y=F.id;if(!U(Y)){t("copy:error",{entity:F,field:"id",message:n("ca-certificates.errors.copy")});return}t("copy:success",{entity:F,field:"id",message:n("ca-certificates.copy.success",{val:Y})})},x=(F,U)=>{const Y=JSON.stringify(F);if(!U(Y)){t("copy:error",{entity:F,message:n("ca-certificates.errors.copy")});return}t("copy:success",{entity:F,message:n("ca-certificates.copy.success_brief")})},T=async F=>{var Y;await((Y=i.canRetrieve)==null?void 0:Y.call(i,F))&&u.push(i.config.getViewRoute(F.id))},ge=F=>({label:n("ca-certificates.actions.view"),to:i.config.getViewRoute(F)}),ce=F=>({label:n("ca-certificates.actions.edit"),to:i.config.getEditRoute(F)}),Ue=o.ref(void 0),ae=o.ref(!1),le=o.ref(!1),Re=o.ref(""),re=N.useDeleteUrlBuilder(i.config,d.value),{certificateDataCache:Ir,getCertificateData:_t}=et.useCertificate(),St=F=>{Ue.value=F,ae.value=!0},Nr=()=>{ae.value=!1},Or=async()=>{var F,U,Y;if((F=Ue.value)!=null&&F.id){le.value=!0;try{await f.delete(re(Ue.value.id)),le.value=!1,ae.value=!1,k.value++,t("delete:success",Ue.value)}catch(ie){Re.value=((Y=(U=ie.response)==null?void 0:U.data)==null?void 0:Y.message)||ie.message||n("ca-certificates.errors.delete"),t("error",ie)}finally{le.value=!1}}},G=()=>{u.push(i.config.createRoute)};o.watch(E,F=>{var U,Y,ie;if(F.status===N.FetcherStatus.Error){ee.value={title:n("ca-certificates.errors.general")},(ie=(Y=(U=F.error)==null?void 0:U.response)==null?void 0:Y.data)!=null&&ie.message&&(ee.value.message=F.error.response.data.message),t("error",F.error);return}Ir.value={},ee.value=null});const We=o.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${n("ca-certificates.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:n("ca-certificates.title")});return o.onBeforeMount(async()=>{await i.canCreate()&&(We.value.title=n("ca-certificates.list.empty_state.title"),We.value.ctaText=n("ca-certificates.actions.create"))}),(F,U)=>{const Y=o.resolveComponent("KButton"),ie=o.resolveComponent("KDropdownItem"),Le=o.resolveComponent("KClipboardProvider");return o.openBlock(),o.createElementBlock("div",yp,[o.createVNode(o.unref(N.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":y.value,"empty-state-options":We.value,"enable-entity-actions":"","error-message":ee.value,fetcher:o.unref(w),"fetcher-cache-key":o.unref(k),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-ca-certificates-list",query:g.value,"table-headers":o.unref(O),onClearSearchInput:I,"onClick:row":U[3]||(U[3]=J=>T(J)),onSort:Q,onState:o.unref(b)},o.createSlots({"toolbar-filter":o.withCtx(()=>[o.createVNode(o.unref(N.EntityFilter),{modelValue:g.value,"onUpdate:modelValue":U[0]||(U[0]=J=>g.value=J),config:S.value},null,8,["modelValue","config"])]),"toolbar-button":o.withCtx(()=>[(o.openBlock(),o.createBlock(o.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[o.createElementVNode("div",gp,[r.enableV2EmptyStates&&!o.unref(p)&&r.config.app==="konnect"?(o.openBlock(),o.createBlock(Y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"ca-certificates-learn-more-button",icon:"",onClick:U[1]||(U[1]=J=>F.$emit("click:learn-more"))},{default:o.withCtx(()=>[o.createVNode(o.unref(At.BookIcon),{decorative:""})]),_:1})):o.createCommentVNode("",!0),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:o.withCtx(()=>[o.createVNode(Y,{appearance:"primary","data-testid":"toolbar-add-ca-certificate",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:o.withCtx(()=>[o.createVNode(o.unref(At.AddIcon)),o.createTextVNode(" "+o.toDisplayString(o.unref(n)("ca-certificates.list.toolbar_actions.new_ca_certificate")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),issuer:o.withCtx(({row:J})=>{var Ce;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("b",bp,o.toDisplayString((Ce=J==null?void 0:J.metadata)!=null&&Ce.issuer?J.metadata.issuer:"-"),1)):(o.openBlock(),o.createElementBlock("b",vp,o.toDisplayString(o.unref(_t)(J).schemaIssuer||"-"),1))]}),expiry:o.withCtx(({row:J})=>{var Ce;return[r.config.app==="konnect"?(o.openBlock(),o.createElementBlock("span",wp,o.toDisplayString((Ce=J==null?void 0:J.metadata)!=null&&Ce.expiry?o.unref(s)(J.metadata.expiry):"-"),1)):(o.openBlock(),o.createElementBlock("span",Sp,o.toDisplayString(o.unref(_t)(J).schemaExpiry?o.unref(s)(o.unref(_t)(J).schemaExpiry):"-"),1))]}),tags:o.withCtx(({row:J})=>[o.createVNode(o.unref(N.TableTags),{tags:J==null?void 0:J.tags},null,8,["tags"])]),actions:o.withCtx(({row:J})=>[o.createVNode(Le,null,{default:o.withCtx(({copyToClipboard:Ce})=>[o.createVNode(ie,{"data-testid":"action-entity-copy-id",onClick:W=>$(J,Ce)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(Le,null,{default:o.withCtx(({copyToClipboard:Ce})=>[o.createVNode(ie,{"data-testid":"action-entity-copy-json",onClick:W=>x(J,Ce)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(J)},{default:o.withCtx(()=>[o.createVNode(ie,{"data-testid":"action-entity-view","has-divider":"",item:ge(J.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canEdit(J)},{default:o.withCtx(()=>[o.createVNode(ie,{"data-testid":"action-entity-edit",item:ce(J.id)},null,8,["item"])]),_:2},1032,["auth-function"]),o.createVNode(o.unref(N.PermissionsWrapper),{"auth-function":()=>r.canDelete(J)},{default:o.withCtx(()=>[o.createVNode(ie,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:Ce=>St(J)},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("ca-certificates.actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[r.enableV2EmptyStates&&r.config.app==="konnect"?{name:"empty-state",fn:o.withCtx(()=>[o.createVNode(o.unref(N.EntityEmptyState),{"action-button-text":o.unref(n)("ca-certificates.list.empty_state_v2.create"),appearance:"secondary","can-create":()=>r.canCreate(),description:o.unref(n)("ca-certificates.list.empty_state_v2.description"),"learn-more":r.config.app==="konnect",title:o.unref(n)("ca-certificates.list.empty_state_v2.title"),"onClick:create":G,"onClick:learnMore":U[2]||(U[2]=J=>F.$emit("click:learn-more"))},{image:o.withCtx(()=>[o.createElementVNode("div",mp,[o.createVNode(o.unref(At.ServiceDocumentIcon),{color:o.unref(Sa),size:o.unref(Aa)},null,8,["color","size"])])]),_:1},8,["action-button-text","can-create","description","learn-more","title"])]),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),o.createVNode(o.unref(N.EntityDeleteModal),{"action-pending":le.value,"entity-type":o.unref(N.EntityTypes).CACertificate,error:Re.value,title:o.unref(n)("ca-certificates.delete.title"),visible:ae.value,onCancel:Nr,onProceed:Or},{description:o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"ca-certificates.delete.description",scope:"global"},{"bolded-text":o.withCtx(()=>[o.createElementVNode("b",null,o.toDisplayString(o.unref(n)("ca-certificates.delete.boldedText")),1)]),_:1}),o.createElementVNode("p",null,o.toDisplayString(o.unref(n)("ca-certificates.delete.description2")),1)]),_:1},8,["action-pending","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-315989fa"]]),kp={class:"kong-ui-entities-ca-certificates-form"},Cp=Xt(o.defineComponent({__name:"CACertificateForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.cancelRoute)},certificateId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:e}){var k;const t=e,i=r,n=di.useRouter(),{i18n:{t:s}}=et.useI18n(),{getMessageFromError:c}=N.useErrors(),{axiosInstance:u}=N.useAxios((k=i.config)==null?void 0:k.axiosRequestConfig),f=o.computed(()=>ui.form[i.config.app].edit),p=o.computed(()=>i.certificateId?N.EntityBaseFormType.Edit:N.EntityBaseFormType.Create),b=o.reactive({fields:{cert:"",certDigest:"",tags:""},isReadonly:!1,errorMessage:""}),y=o.reactive({cert:"",certDigest:"",tags:""}),K=o.computed(()=>(p.value===N.EntityBaseFormType.Create||JSON.stringify(b.fields)!==JSON.stringify(y))&&!!b.fields.cert),O=I=>{var Q;b.fields.cert=(I==null?void 0:I.cert)||"",b.fields.certDigest=(I==null?void 0:I.cert_digest)||"",b.fields.tags=((Q=I==null?void 0:I.tags)==null?void 0:Q.join(", "))||"",Object.assign(y,b.fields)},d=()=>{n.push(i.config.cancelRoute)},g=o.computed(()=>{var Q,ee;let I=`${i.config.apiBaseUrl}${ui.form[i.config.app].validate}`;return i.config.app==="konnect"?I=I.replace(/{controlPlaneId}/gi,((Q=i.config)==null?void 0:Q.controlPlaneId)||""):i.config.app==="kongManager"&&(I=I.replace(/\/{workspace}/gi,(ee=i.config)!=null&&ee.workspace?`/${i.config.workspace}`:"")),I=I.replace(/{id}/gi,i.certificateId),I}),S=o.computed(()=>{var Q,ee;let I=`${i.config.apiBaseUrl}${ui.form[i.config.app][p.value]}`;return i.config.app==="konnect"?I=I.replace(/{controlPlaneId}/gi,((Q=i.config)==null?void 0:Q.controlPlaneId)||""):i.config.app==="kongManager"&&(I=I.replace(/\/{workspace}/gi,(ee=i.config)!=null&&ee.workspace?`/${i.config.workspace}`:"")),I=I.replace(/{id}/gi,i.certificateId),I}),w=o.computed(()=>{var I,Q;return{cert:b.fields.cert,cert_digest:b.fields.certDigest||null,tags:(Q=(I=b.fields.tags.split(","))==null?void 0:I.map(ee=>String(ee||"").trim()))==null?void 0:Q.filter(ee=>ee!=="")}}),E=async()=>{var I,Q,ee,$,x;try{b.isReadonly=!0;let T;await u.post(g.value,w.value),p.value==="create"?T=await u.post(S.value,w.value):p.value==="edit"&&(T=((I=i.config)==null?void 0:I.app)==="konnect"?await u.put(S.value,w.value):await u.patch(S.value,w.value)),b.fields.cert=((Q=T==null?void 0:T.data)==null?void 0:Q.cert)||"",b.fields.certDigest=((ee=T==null?void 0:T.data)==null?void 0:ee.cert_digest)||"",b.fields.tags=((x=($=T==null?void 0:T.data)==null?void 0:$.tags)==null?void 0:x.join(", "))||"",Object.assign(y,b.fields),t("update",T==null?void 0:T.data)}catch(T){b.errorMessage=c(T),t("error",T)}finally{b.isReadonly=!1}};return(I,Q)=>{const ee=o.resolveComponent("KTextArea"),$=o.resolveComponent("KInput");return o.openBlock(),o.createElementBlock("div",kp,[o.createVNode(o.unref(N.EntityBaseForm),{"can-submit":K.value,config:r.config,"edit-id":r.certificateId,"entity-type":o.unref(N.SupportedEntityType).CaCertificate,"error-message":b.errorMessage,"fetch-url":f.value,"form-fields":w.value,"is-readonly":b.isReadonly,onCancel:d,"onFetch:error":Q[3]||(Q[3]=x=>I.$emit("error",x)),"onFetch:success":O,onLoading:Q[4]||(Q[4]=x=>I.$emit("loading",x)),onSubmit:E},{default:o.withCtx(()=>[o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(s)("ca-certificates.form.sections.cert.description"),title:o.unref(s)("ca-certificates.form.sections.cert.title")},{default:o.withCtx(()=>[o.createVNode(ee,{modelValue:b.fields.cert,"onUpdate:modelValue":Q[0]||(Q[0]=x=>b.fields.cert=x),modelModifiers:{trim:!0},"character-limit":!1,class:"certificate-form-textarea","data-testid":"ca-certificate-form-cert",label:o.unref(s)("ca-certificates.form.fields.cert.label"),"label-attributes":{info:o.unref(s)("ca-certificates.form.fields.cert.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:b.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),o.createVNode($,{modelValue:b.fields.certDigest,"onUpdate:modelValue":Q[1]||(Q[1]=x=>b.fields.certDigest=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"ca-certificate-form-cert-digest",label:o.unref(s)("ca-certificates.form.fields.cert_digest.label"),readonly:b.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])]),_:1},8,["description","title"]),o.createVNode(o.unref(N.EntityFormSection),{description:o.unref(s)("ca-certificates.form.sections.general.description"),title:o.unref(s)("ca-certificates.form.sections.general.title")},{default:o.withCtx(()=>[o.createVNode($,{modelValue:b.fields.tags,"onUpdate:modelValue":Q[2]||(Q[2]=x=>b.fields.tags=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"ca-certificate-form-tags",help:o.unref(s)("ca-certificates.form.fields.tags.help"),label:o.unref(s)("ca-certificates.form.fields.tags.label"),"label-attributes":{info:o.unref(s)("ca-certificates.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:o.unref(s)("ca-certificates.form.fields.tags.placeholder"),readonly:b.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-2a3f488f"]]),xp={class:"kong-ui-certificate-entity-config-card"},Bp={key:0},Ep=Xt(o.defineComponent({__name:"CertificateConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r,{emit:e}){const t=e,i=r,{i18n:{t:n,formatUnixTimeStamp:s},i18nT:c}=et.useI18n(),{convertKeyToTitle:u}=N.useStringHelpers(),{getPropValue:f}=N.useHelpers(),{getCertificateData:p}=et.useCertificate(),b=o.computed(()=>li.form[i.config.app].edit),y=o.ref(),K=o.ref({id:{},cert:{section:N.ConfigurationSchemaSection.Basic},key:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Redacted},metadata:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.Json},snis:{section:N.ConfigurationSchemaSection.Basic,type:N.ConfigurationSchemaType.BadgeTag,label:n("certificates.list.table_headers.snis")},updated_at:{},created_at:{},tags:{tooltip:n("certificates.form.fields.tags.tooltip")},...i.config.app==="kongManager"&&{expiry:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.expiry"),forceShow:!0},issuer:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.issuer"),forceShow:!0},san_names:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.san"),forceShow:!0},subject:{section:N.ConfigurationSchemaSection.Basic,label:n("certificates.list.table_headers.subject"),forceShow:!0},key_usages:{forceShow:!0}},cert_alt:{section:N.ConfigurationSchemaSection.Advanced},key_alt:{section:N.ConfigurationSchemaSection.Advanced,type:N.ConfigurationSchemaType.Redacted}}),O=x=>{y.value=x,t("fetch:success",x)},d=(x,T)=>{const ge=f("rowValue",T);if(x==="expiry")return S.value;if(x==="key_usages")return I.value;if(x==="san_names")return E.value;if(ge)return ge[x]},g=o.computed(()=>{if(y.value)return p(y.value)}),S=o.computed(()=>{var x,T;return(x=g.value)!=null&&x.schemaExpiry?s((T=g.value)==null?void 0:T.schemaExpiry):""}),w=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaIssuer)||""}),E=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaSanNames)||""}),k=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaSubject)||""}),I=o.computed(()=>{var x;return((x=g.value)==null?void 0:x.schemaKeyUsages)||[]}),Q=o.computed(()=>{var x,T;return((T=(x=y==null?void 0:y.value)==null?void 0:x.snis)==null?void 0:T.length)>0}),ee=o.computed(()=>{var x;return!!((x=y==null?void 0:y.value)!=null&&x.cert_alt)}),$=x=>{var T,ge;return x==="san_names"?n("certificates.list.table_headers.san"):((ge=(T=K.value)==null?void 0:T[x])==null?void 0:ge.label)||u(x)};return(x,T)=>{const ge=o.resolveComponent("KCodeBlock"),ce=o.resolveComponent("KLabel"),Ue=o.resolveComponent("KBadge");return o.openBlock(),o.createElementBlock("div",xp,[o.createVNode(o.unref(N.EntityBaseConfigCard),{config:r.config,"config-card-doc":r.configCardDoc,"config-schema":K.value,"entity-type":o.unref(N.SupportedEntityType).Certificate,"fetch-url":b.value,"hide-title":r.hideTitle,"onFetch:error":T[0]||(T[0]=ae=>x.$emit("fetch:error",ae)),"onFetch:success":O,onLoading:T[1]||(T[1]=ae=>x.$emit("loading",ae))},o.createSlots({"cert-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.cert.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.cert.emphasis")),1)]),_:1})]),cert:o.withCtx(ae=>[o.unref(f)("rowValue",ae)?(o.openBlock(),o.createBlock(ge,{key:0,id:`certificate-${r.config.entityId}-cert-codeblock`,code:o.unref(f)("rowValue",ae),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),"key-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.key.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.key.emphasis")),1)]),_:1})]),"metadata-label":o.withCtx(()=>[o.createVNode(ce,{class:"metadata-label"},{default:o.withCtx(()=>T[2]||(T[2]=[o.createTextVNode(" Metadata ")])),_:1})]),metadata:o.withCtx(ae=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(Object.keys(o.unref(f)("rowValue",ae)),le=>(o.openBlock(),o.createBlock(o.unref(N.ConfigCardItem),{key:le,item:{key:le,value:d(le,ae),label:$(le),type:le==="key_usages"||le==="snis"||le==="dns_names"?o.unref(N.ConfigurationSchemaType).BadgeTag:o.unref(N.ConfigurationSchemaType).Text}},null,8,["item"]))),128))]),expiry:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(S.value||"–"),1)]),issuer:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(w.value||"–"),1)]),san_names:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(E.value||"–"),1)]),subject:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(k.value||"–"),1)]),"cert_alt-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.cert_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.cert_alt.emphasis")),1)]),_:1})]),"key_alt-label-tooltip":o.withCtx(()=>[o.createVNode(o.unref(c),{keypath:"certificates.form.fields.key_alt.tooltip",scope:"global"},{emphasis:o.withCtx(()=>[o.createElementVNode("i",null,o.toDisplayString(o.unref(n)("certificates.form.fields.key_alt.emphasis")),1)]),_:1})]),key_usages:o.withCtx(()=>[I.value.length?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Bp,o.toDisplayString("–"))),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(I.value,(ae,le)=>(o.openBlock(),o.createBlock(Ue,{key:`key_usages-badge-tag-${le}`,class:"config-badge","data-testid":`key_usages-badge-tag-${le}`,tooltip:ae,"truncation-tooltip":""},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(ae),1)]),_:2},1032,["data-testid","tooltip"]))),128))]),_:2},[Q.value?void 0:{name:"snis",fn:o.withCtx(()=>[T[3]||(T[3]=o.createTextVNode(" – "))]),key:"0"},ee.value?{name:"cert_alt",fn:o.withCtx(ae=>[T[4]||(T[4]=o.createTextVNode(" > ")),o.unref(f)("rowValue",ae)?(o.openBlock(),o.createBlock(ge,{key:0,id:`certificate-${r.config.entityId}-cert-alt-codeblock`,code:o.unref(f)("rowValue",ae),language:"plaintext","single-line":""},null,8,["id","code"])):o.createCommentVNode("",!0)]),key:"1"}:void 0]),1032,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),[["__scopeId","data-v-401d92d6"]]);Ae.CACertificateConfigCard=hp,Ae.CACertificateForm=Cp,Ae.CACertificateList=Ap,Ae.CertificateConfigCard=Ep,Ae.CertificateForm=fp,Ae.CertificateList=op,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-fd0bbca2]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-fd0bbca2]{margin-left:auto}.kong-ui-entity-base-table[data-v-fd0bbca2] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-775534d4]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{width:640px}}.button-row[data-v-8d022f6e]{align-items:center;display:flex;gap:12px}.kong-ui-entities-certificates-list[data-v-8d022f6e]{width:100%}.kong-ui-entities-certificates-list .kong-ui-entity-filter-input[data-v-8d022f6e]{margin-right:12px}.sni-field-container .sni-field-input[data-v-543a45f0]{align-items:center;display:flex;gap:24px}.sni-field-container .sni-field-input[data-v-543a45f0]:not(:last-child){margin-bottom:16px}.sni-field-container .sni-field-controls-container[data-v-543a45f0]{display:flex;gap:4px}.kong-ui-entities-certificates-form[data-v-fc596de1],.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-fc596de1]{width:100%}.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-fc596de1] .k-tooltip{max-width:300px}.kong-ui-ca-certificate-entity-config-card[data-v-1d42f61b] .config-badge{margin-right:4px}.kong-ui-ca-certificate-entity-config-card .metadata-label[data-v-1d42f61b]{font-size:16px}.button-row[data-v-da844cfa]{align-items:center;display:flex;gap:12px}.kong-ui-entities-ca-certificates-list[data-v-da844cfa]{width:100%}.kong-ui-entities-ca-certificates-list .kong-ui-entity-filter-input[data-v-da844cfa]{margin-right:12px}.kong-ui-entities-ca-certificates-form[data-v-2a3f488f],.kong-ui-entities-ca-certificates-form .certificate-form-textarea[data-v-2a3f488f]{width:100%}.kong-ui-certificate-entity-config-card[data-v-401d92d6] .config-badge{margin-right:4px}.kong-ui-certificate-entity-config-card .metadata-label[data-v-401d92d6]{font-size:16px}
1
+ .config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{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-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-2e2c07e5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-2e2c07e5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-2e2c07e5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-2e2c07e5]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-2e2c07e5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-2e2c07e5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-775534d4]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-775534d4]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-775534d4]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-775534d4]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-775534d4]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-775534d4]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-775534d4],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-775534d4]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-775534d4]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-775534d4]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-775534d4]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-775534d4] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-775534d4] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-775534d4]{width:640px}}.button-row[data-v-e1169961]{align-items:center;display:flex;gap:12px}.kong-ui-entities-certificates-list[data-v-e1169961]{width:100%}.kong-ui-entities-certificates-list .kong-ui-entity-filter-input[data-v-e1169961]{margin-right:12px}.sni-field-container .sni-field-input[data-v-543a45f0]{align-items:center;display:flex;gap:24px}.sni-field-container .sni-field-input[data-v-543a45f0]:not(:last-child){margin-bottom:16px}.sni-field-container .sni-field-controls-container[data-v-543a45f0]{display:flex;gap:4px}.kong-ui-entities-certificates-form[data-v-fc596de1],.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-fc596de1]{width:100%}.kong-ui-entities-certificates-form .certificate-form-textarea[data-v-fc596de1] .k-tooltip{max-width:300px}.kong-ui-ca-certificate-entity-config-card[data-v-1d42f61b] .config-badge{margin-right:4px}.kong-ui-ca-certificate-entity-config-card .metadata-label[data-v-1d42f61b]{font-size:16px}.button-row[data-v-315989fa]{align-items:center;display:flex;gap:12px}.kong-ui-entities-ca-certificates-list[data-v-315989fa]{width:100%}.kong-ui-entities-ca-certificates-list .kong-ui-entity-filter-input[data-v-315989fa]{margin-right:12px}.kong-ui-entities-ca-certificates-form[data-v-2a3f488f],.kong-ui-entities-ca-certificates-form .certificate-form-textarea[data-v-2a3f488f]{width:100%}.kong-ui-certificate-entity-config-card[data-v-401d92d6] .config-badge{margin-right:4px}.kong-ui-certificate-entity-config-card .metadata-label[data-v-401d92d6]{font-size:16px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-certificates",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-certificates.umd.js",
6
6
  "module": "./dist/entities-certificates.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.7.7",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/entities-shared": "^3.16.0",
30
- "@kong-ui-public/i18n": "^2.2.10"
29
+ "@kong-ui-public/i18n": "^2.2.10",
30
+ "@kong-ui-public/entities-shared": "^3.17.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.17.2",
@@ -36,7 +36,7 @@
36
36
  "axios": "^1.7.7",
37
37
  "vue": "^3.5.12",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/entities-shared": "^3.16.0",
39
+ "@kong-ui-public/entities-shared": "^3.17.0",
40
40
  "@kong-ui-public/i18n": "^2.2.10"
41
41
  },
42
42
  "repository": {