@kong-ui-public/entities-redis-configurations 1.3.6 → 1.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-redis-configurations.es.js +4 -3
- package/dist/entities-redis-configurations.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/RedisConfigurationForm.vue.d.ts +3 -0
- package/dist/types/components/RedisConfigurationForm.vue.d.ts.map +1 -1
- package/dist/types/helpers.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -1732,7 +1732,8 @@ const Le = (e) => {
|
|
|
1732
1732
|
* Teleport target for the actions
|
|
1733
1733
|
*/
|
|
1734
1734
|
actionTeleportTarget: {
|
|
1735
|
-
type: String
|
|
1735
|
+
type: String,
|
|
1736
|
+
default: null
|
|
1736
1737
|
},
|
|
1737
1738
|
/**
|
|
1738
1739
|
* Top offset for the slideout
|
|
@@ -2317,7 +2318,7 @@ const Le = (e) => {
|
|
|
2317
2318
|
], 64);
|
|
2318
2319
|
};
|
|
2319
2320
|
}
|
|
2320
|
-
}), Ya = /* @__PURE__ */ ae(ba, [["__scopeId", "data-v-
|
|
2321
|
+
}), Ya = /* @__PURE__ */ ae(ba, [["__scopeId", "data-v-dc0b9178"]]), ya = "#00abd2", va = "24px", ha = {
|
|
2321
2322
|
class: "linked-plugins",
|
|
2322
2323
|
"data-testid": "linked-plugins-inline"
|
|
2323
2324
|
}, at = 7, Ta = /* @__PURE__ */ Q({
|
|
@@ -2894,7 +2895,7 @@ const Le = (e) => {
|
|
|
2894
2895
|
]);
|
|
2895
2896
|
};
|
|
2896
2897
|
}
|
|
2897
|
-
}), Qa = /* @__PURE__ */ ae(Ma, [["__scopeId", "data-v-
|
|
2898
|
+
}), Qa = /* @__PURE__ */ ae(Ma, [["__scopeId", "data-v-970009ba"]]), Da = { class: "kong-ui-consumer-group-entity-config-card" }, Xa = /* @__PURE__ */ Q({
|
|
2898
2899
|
__name: "RedisConfigurationConfigCard",
|
|
2899
2900
|
props: {
|
|
2900
2901
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(V,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared/dist/style.css"),require("@kong-ui-public/entities-vaults/dist/style.css"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/entities-vaults"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-plugins-icon")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared/dist/style.css","@kong-ui-public/entities-vaults/dist/style.css","@kong-ui-public/entities-shared","@kong-ui-public/entities-vaults","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-plugins-icon"],e):(V=typeof globalThis<"u"?globalThis:V||self,e(V["kong-ui-public-entities-redis-configurations"]={},V.Vue,null,null,V["kong-ui-public-entities-shared"],V["kong-ui-public-entities-vaults"],V.VueRouter,V.KongIcons,V["kong-ui-public-i18n"],V["kong-ui-public-entities-plugins-icon"]))})(this,function(V,e,xi,Ii,f,pe,Qe,ee,Xe,Ze){"use strict";var C=(t=>(t[t.HOST_PORT_CE=0]="HOST_PORT_CE",t[t.HOST_PORT_EE=1]="HOST_PORT_EE",t[t.SENTINEL=2]="SENTINEL",t[t.CLUSTER=3]="CLUSTER",t))(C||{}),D=(t=>(t.REDIS_CE="redis-ce",t.REDIS_EE="redis-ee",t))(D||{}),et=typeof global=="object"&&global&&global.Object===Object&&global,zt=typeof self=="object"&&self&&self.Object===Object&&self,H=et||zt||Function("return this")(),ie=H.Symbol,tt=Object.prototype,Wt=tt.hasOwnProperty,Gt=tt.toString,me=ie?ie.toStringTag:void 0;function Jt(t){var n=Wt.call(t,me),r=t[me];try{t[me]=void 0;var i=!0}catch{}var o=Gt.call(t);return i&&(n?t[me]=r:delete t[me]),o}var Yt=Object.prototype,Qt=Yt.toString;function Xt(t){return Qt.call(t)}var Zt="[object Null]",en="[object Undefined]",nt=ie?ie.toStringTag:void 0;function ge(t){return t==null?t===void 0?en:Zt:nt&&nt in Object(t)?Jt(t):Xt(t)}function _e(t){return t!=null&&typeof t=="object"}var Ee=Array.isArray;function rt(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var tn="[object AsyncFunction]",nn="[object Function]",rn="[object GeneratorFunction]",on="[object Proxy]";function ot(t){if(!rt(t))return!1;var n=ge(t);return n==nn||n==rn||n==tn||n==on}var $e=H["__core-js_shared__"],it=function(){var t=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function an(t){return!!it&&it in t}var ln=Function.prototype,sn=ln.toString;function te(t){if(t!=null){try{return sn.call(t)}catch{}try{return t+""}catch{}}return""}var dn=/[\\^$.*+?()[\]{}|]/g,cn=/^\[object .+?Constructor\]$/,fn=Function.prototype,un=Object.prototype,pn=fn.toString,mn=un.hasOwnProperty,gn=RegExp("^"+pn.call(mn).replace(dn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _n(t){if(!rt(t)||an(t))return!1;var n=ot(t)?gn:cn;return n.test(te(t))}function yn(t,n){return t==null?void 0:t[n]}function ae(t,n){var r=yn(t,n);return _n(r)?r:void 0}var Be=ae(H,"WeakMap"),bn=9007199254740991,hn=/^(?:0|[1-9]\d*)$/;function Cn(t,n){var r=typeof t;return n=n??bn,!!n&&(r=="number"||r!="symbol"&&hn.test(t))&&t>-1&&t%1==0&&t<n}function at(t,n){return t===n||t!==t&&n!==n}var Tn=9007199254740991;function lt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tn}function wn(t){return t!=null&<(t.length)&&!ot(t)}var En=Object.prototype;function kn(t){var n=t&&t.constructor,r=typeof n=="function"&&n.prototype||En;return t===r}function Sn(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}var Vn="[object Arguments]";function st(t){return _e(t)&&ge(t)==Vn}var dt=Object.prototype,xn=dt.hasOwnProperty,In=dt.propertyIsEnumerable,Rn=st(function(){return arguments}())?st:function(t){return _e(t)&&xn.call(t,"callee")&&!In.call(t,"callee")};function On(){return!1}var ct=typeof V=="object"&&V&&!V.nodeType&&V,ft=ct&&typeof module=="object"&&module&&!module.nodeType&&module,Nn=ft&&ft.exports===ct,ut=Nn?H.Buffer:void 0,Pn=ut?ut.isBuffer:void 0,De=Pn||On,An="[object Arguments]",$n="[object Array]",Bn="[object Boolean]",Dn="[object Date]",Ln="[object Error]",Mn="[object Function]",Un="[object Map]",vn="[object Number]",jn="[object Object]",Fn="[object RegExp]",Hn="[object Set]",Kn="[object String]",qn="[object WeakMap]",zn="[object ArrayBuffer]",Wn="[object DataView]",Gn="[object Float32Array]",Jn="[object Float64Array]",Yn="[object Int8Array]",Qn="[object Int16Array]",Xn="[object Int32Array]",Zn="[object Uint8Array]",er="[object Uint8ClampedArray]",tr="[object Uint16Array]",nr="[object Uint32Array]",I={};I[Gn]=I[Jn]=I[Yn]=I[Qn]=I[Xn]=I[Zn]=I[er]=I[tr]=I[nr]=!0,I[An]=I[$n]=I[zn]=I[Bn]=I[Wn]=I[Dn]=I[Ln]=I[Mn]=I[Un]=I[vn]=I[jn]=I[Fn]=I[Hn]=I[Kn]=I[qn]=!1;function rr(t){return _e(t)&<(t.length)&&!!I[ge(t)]}function or(t){return function(n){return t(n)}}var pt=typeof V=="object"&&V&&!V.nodeType&&V,ye=pt&&typeof module=="object"&&module&&!module.nodeType&&module,ir=ye&&ye.exports===pt,Le=ir&&et.process,mt=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||Le&&Le.binding&&Le.binding("util")}catch{}}(),gt=mt&&mt.isTypedArray,_t=gt?or(gt):rr,ar=Object.prototype,lr=ar.hasOwnProperty;function sr(t,n){var r=Ee(t),i=!r&&Rn(t),o=!r&&!i&&De(t),a=!r&&!i&&!o&&_t(t),m=r||i||o||a,_=m?Sn(t.length,String):[],l=_.length;for(var c in t)lr.call(t,c)&&!(m&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cn(c,l)))&&_.push(c);return _}function dr(t,n){return function(r){return t(n(r))}}var cr=dr(Object.keys,Object),fr=Object.prototype,ur=fr.hasOwnProperty;function pr(t){if(!kn(t))return cr(t);var n=[];for(var r in Object(t))ur.call(t,r)&&r!="constructor"&&n.push(r);return n}function mr(t){return wn(t)?sr(t):pr(t)}var be=ae(Object,"create");function gr(){this.__data__=be?be(null):{},this.size=0}function _r(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var yr="__lodash_hash_undefined__",br=Object.prototype,hr=br.hasOwnProperty;function Cr(t){var n=this.__data__;if(be){var r=n[t];return r===yr?void 0:r}return hr.call(n,t)?n[t]:void 0}var Tr=Object.prototype,wr=Tr.hasOwnProperty;function Er(t){var n=this.__data__;return be?n[t]!==void 0:wr.call(n,t)}var kr="__lodash_hash_undefined__";function Sr(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=be&&n===void 0?kr:n,this}function ne(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}ne.prototype.clear=gr,ne.prototype.delete=_r,ne.prototype.get=Cr,ne.prototype.has=Er,ne.prototype.set=Sr;function Vr(){this.__data__=[],this.size=0}function ke(t,n){for(var r=t.length;r--;)if(at(t[r][0],n))return r;return-1}var xr=Array.prototype,Ir=xr.splice;function Rr(t){var n=this.__data__,r=ke(n,t);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():Ir.call(n,r,1),--this.size,!0}function Or(t){var n=this.__data__,r=ke(n,t);return r<0?void 0:n[r][1]}function Nr(t){return ke(this.__data__,t)>-1}function Pr(t,n){var r=this.__data__,i=ke(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}function K(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}K.prototype.clear=Vr,K.prototype.delete=Rr,K.prototype.get=Or,K.prototype.has=Nr,K.prototype.set=Pr;var he=ae(H,"Map");function Ar(){this.size=0,this.__data__={hash:new ne,map:new(he||K),string:new ne}}function $r(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Se(t,n){var r=t.__data__;return $r(n)?r[typeof n=="string"?"string":"hash"]:r.map}function Br(t){var n=Se(this,t).delete(t);return this.size-=n?1:0,n}function Dr(t){return Se(this,t).get(t)}function Lr(t){return Se(this,t).has(t)}function Mr(t,n){var r=Se(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}function re(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}re.prototype.clear=Ar,re.prototype.delete=Br,re.prototype.get=Dr,re.prototype.has=Lr,re.prototype.set=Mr;function Ur(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}function vr(){this.__data__=new K,this.size=0}function jr(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}function Fr(t){return this.__data__.get(t)}function Hr(t){return this.__data__.has(t)}var Kr=200;function qr(t,n){var r=this.__data__;if(r instanceof K){var i=r.__data__;if(!he||i.length<Kr-1)return i.push([t,n]),this.size=++r.size,this;r=this.__data__=new re(i)}return r.set(t,n),this.size=r.size,this}function G(t){var n=this.__data__=new K(t);this.size=n.size}G.prototype.clear=vr,G.prototype.delete=jr,G.prototype.get=Fr,G.prototype.has=Hr,G.prototype.set=qr;function zr(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var m=t[r];n(m,r,t)&&(a[o++]=m)}return a}function Wr(){return[]}var Gr=Object.prototype,Jr=Gr.propertyIsEnumerable,yt=Object.getOwnPropertySymbols,Yr=yt?function(t){return t==null?[]:(t=Object(t),zr(yt(t),function(n){return Jr.call(t,n)}))}:Wr;function Qr(t,n,r){var i=n(t);return Ee(t)?i:Ur(i,r(t))}function bt(t){return Qr(t,mr,Yr)}var Me=ae(H,"DataView"),Ue=ae(H,"Promise"),ve=ae(H,"Set"),ht="[object Map]",Xr="[object Object]",Ct="[object Promise]",Tt="[object Set]",wt="[object WeakMap]",Et="[object DataView]",Zr=te(Me),eo=te(he),to=te(Ue),no=te(ve),ro=te(Be),J=ge;(Me&&J(new Me(new ArrayBuffer(1)))!=Et||he&&J(new he)!=ht||Ue&&J(Ue.resolve())!=Ct||ve&&J(new ve)!=Tt||Be&&J(new Be)!=wt)&&(J=function(t){var n=ge(t),r=n==Xr?t.constructor:void 0,i=r?te(r):"";if(i)switch(i){case Zr:return Et;case eo:return ht;case to:return Ct;case no:return Tt;case ro:return wt}return n});var kt=H.Uint8Array,oo="__lodash_hash_undefined__";function io(t){return this.__data__.set(t,oo),this}function ao(t){return this.__data__.has(t)}function Ve(t){var n=-1,r=t==null?0:t.length;for(this.__data__=new re;++n<r;)this.add(t[n])}Ve.prototype.add=Ve.prototype.push=io,Ve.prototype.has=ao;function lo(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}function so(t,n){return t.has(n)}var co=1,fo=2;function St(t,n,r,i,o,a){var m=r&co,_=t.length,l=n.length;if(_!=l&&!(m&&l>_))return!1;var c=a.get(t),b=a.get(n);if(c&&b)return c==n&&b==t;var w=-1,y=!0,E=r&fo?new Ve:void 0;for(a.set(t,n),a.set(n,t);++w<_;){var h=t[w],s=n[w];if(i)var S=m?i(s,h,w,n,t,a):i(h,s,w,t,n,a);if(S!==void 0){if(S)continue;y=!1;break}if(E){if(!lo(n,function(O,p){if(!so(E,p)&&(h===O||o(h,O,r,i,a)))return E.push(p)})){y=!1;break}}else if(!(h===s||o(h,s,r,i,a))){y=!1;break}}return a.delete(t),a.delete(n),y}function uo(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}function po(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}var mo=1,go=2,_o="[object Boolean]",yo="[object Date]",bo="[object Error]",ho="[object Map]",Co="[object Number]",To="[object RegExp]",wo="[object Set]",Eo="[object String]",ko="[object Symbol]",So="[object ArrayBuffer]",Vo="[object DataView]",Vt=ie?ie.prototype:void 0,je=Vt?Vt.valueOf:void 0;function xo(t,n,r,i,o,a,m){switch(r){case Vo:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case So:return!(t.byteLength!=n.byteLength||!a(new kt(t),new kt(n)));case _o:case yo:case Co:return at(+t,+n);case bo:return t.name==n.name&&t.message==n.message;case To:case Eo:return t==n+"";case ho:var _=uo;case wo:var l=i&mo;if(_||(_=po),t.size!=n.size&&!l)return!1;var c=m.get(t);if(c)return c==n;i|=go,m.set(t,n);var b=St(_(t),_(n),i,o,a,m);return m.delete(t),b;case ko:if(je)return je.call(t)==je.call(n)}return!1}var Io=1,Ro=Object.prototype,Oo=Ro.hasOwnProperty;function No(t,n,r,i,o,a){var m=r&Io,_=bt(t),l=_.length,c=bt(n),b=c.length;if(l!=b&&!m)return!1;for(var w=l;w--;){var y=_[w];if(!(m?y in n:Oo.call(n,y)))return!1}var E=a.get(t),h=a.get(n);if(E&&h)return E==n&&h==t;var s=!0;a.set(t,n),a.set(n,t);for(var S=m;++w<l;){y=_[w];var O=t[y],p=n[y];if(i)var u=m?i(p,O,y,n,t,a):i(O,p,y,t,n,a);if(!(u===void 0?O===p||o(O,p,r,i,a):u)){s=!1;break}S||(S=y=="constructor")}if(s&&!S){var B=t.constructor,N=n.constructor;B!=N&&"constructor"in t&&"constructor"in n&&!(typeof B=="function"&&B instanceof B&&typeof N=="function"&&N instanceof N)&&(s=!1)}return a.delete(t),a.delete(n),s}var Po=1,xt="[object Arguments]",It="[object Array]",xe="[object Object]",Ao=Object.prototype,Rt=Ao.hasOwnProperty;function $o(t,n,r,i,o,a){var m=Ee(t),_=Ee(n),l=m?It:J(t),c=_?It:J(n);l=l==xt?xe:l,c=c==xt?xe:c;var b=l==xe,w=c==xe,y=l==c;if(y&&De(t)){if(!De(n))return!1;m=!0,b=!1}if(y&&!b)return a||(a=new G),m||_t(t)?St(t,n,r,i,o,a):xo(t,n,l,r,i,o,a);if(!(r&Po)){var E=b&&Rt.call(t,"__wrapped__"),h=w&&Rt.call(n,"__wrapped__");if(E||h){var s=E?t.value():t,S=h?n.value():n;return a||(a=new G),o(s,S,r,i,a)}}return y?(a||(a=new G),No(t,n,r,i,o,a)):!1}function Ot(t,n,r,i,o){return t===n?!0:t==null||n==null||!_e(t)&&!_e(n)?t!==t&&n!==n:$o(t,n,r,i,Ot,o)}function Bo(t,n){return Ot(t,n)}const $=[];for(let t=0;t<256;++t)$.push((t+256).toString(16).slice(1));function Do(t,n=0){return($[t[n+0]]+$[t[n+1]]+$[t[n+2]]+$[t[n+3]]+"-"+$[t[n+4]]+$[t[n+5]]+"-"+$[t[n+6]]+$[t[n+7]]+"-"+$[t[n+8]]+$[t[n+9]]+"-"+$[t[n+10]]+$[t[n+11]]+$[t[n+12]]+$[t[n+13]]+$[t[n+14]]+$[t[n+15]]).toLowerCase()}let Fe;const Lo=new Uint8Array(16);function Mo(){if(!Fe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fe=crypto.getRandomValues.bind(crypto)}return Fe(Lo)}const Nt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Uo(t,n,r){var o;if(Nt.randomUUID&&!t)return Nt.randomUUID();t=t||{};const i=t.random??((o=t.rng)==null?void 0:o.call(t))??Mo();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Do(i)}const Pt={ip:"127.0.0.1",port:6379},At={host:"127.0.0.1",port:6379},le=C.HOST_PORT_EE,$t={port:6379,host:"127.0.0.1",database:0,username:"",password:"",ssl:!1,ssl_verify:!1,server_name:"",connect_timeout:2e3,send_timeout:2e3,read_timeout:2e3,sentinel_username:"",sentinel_password:"",keepalive_pool_size:256,keepalive_backlog:0,sentinel_master:"",sentinel_nodes:[],cluster_nodes:[],cluster_max_redirections:0,connection_is_proxied:!1,timeout:2e3},vo=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_CLUSTER_NODE:Pt,DEFAULT_FIELDS:$t,DEFAULT_REDIS_TYPE:le,DEFAULT_SENTINEL_NODE:At},Symbol.toStringTag,{value:"Module"})),Ce=t=>({...t,id:Uo()}),He=t=>{const{id:n,...r}=t;return r},Bt=()=>Ce(At),Dt=()=>Ce(Pt),Ie=t=>{var n,r;return t.type===D.REDIS_CE?C.HOST_PORT_CE:(n=t.config.sentinel_nodes)!=null&&n.length?C.SENTINEL:(r=t.config.cluster_nodes)!=null&&r.length?C.CLUSTER:C.HOST_PORT_EE},Re=t=>t===C.HOST_PORT_CE?D.REDIS_CE:D.REDIS_EE,T={int(t,n){return t==null?n:parseInt(t.toString(),10)},str(t,n){return t==null||t===""?n:t.toString()},removeIdClusterNodes(t){return t.map(n=>({...He(n),port:T.int(n.port)}))},removeIdFromSentinelNodes(t){return t.map(n=>({...He(n),port:T.int(n.port)}))},addIdToClusterNodes(t){return t.map(Ce)},addIdToSentinelNodes(t){return t.map(Ce)},removeNullValues(t){const n={...t};for(const r in n)n[r]===null&&delete n[r];return n},stringToArray(t,n=","){return t?t.split(n).map(r=>String(r||"").trim()).filter(r=>r!==""):[]},arrayToString(t,n=", "){return t?t.join(n):""}},jo=Object.freeze(Object.defineProperty({__proto__:null,genDefaultClusterNode:Dt,genDefaultSentinelNode:Bt,getRedisType:Ie,mapRedisTypeToPartialType:Re,shallowCopyWithId:Ce,shallowCopyWithoutId:He,standardize:T},Symbol.toStringTag,{value:"Module"})),Oe="/v2/control-planes/{controlPlaneId}/core-entities",Ne="/{workspace}",Te={list:{konnect:`${Oe}/partials`,kongManager:`${Ne}/partials`},form:{konnect:{create:`${Oe}/partials`,edit:`${Oe}/partials/{id}`},kongManager:{create:`${Ne}/partials`,edit:`${Ne}/partials/{id}`}},links:{konnect:`${Oe}/partials/{id}/links`,kongManager:`${Ne}/partials/{id}/links`}},Fo=t=>{const{partialId:n,config:r,defaultRedisType:i=le}=t,o=!!n,{axiosInstance:a}=f.useAxios(r.axiosRequestConfig),{getMessageFromError:m}=f.useErrors(),_=e.computed(()=>n?f.EntityBaseFormType.Edit:f.EntityBaseFormType.Create),l=e.reactive({fields:{name:"",tags:"",type:Re(i),config:JSON.parse(JSON.stringify($t))},readonly:!1,errorMessage:""}),c=e.ref(),b=e.ref(i),w=e.computed(()=>b.value===C.HOST_PORT_EE||b.value===C.CLUSTER||b.value===C.SENTINEL);e.watch(b,p=>{l.fields.type=Re(p)});const y=e.computed(()=>{var u;if(o&&Bo(c.value,E.value)||!l.fields.name.length)return!1;const{config:p}=l.fields;switch(b.value){case C.HOST_PORT_CE:case C.HOST_PORT_EE:return!!p.host&&p.host.length>0&&!!p.port&&p.port>0;case C.CLUSTER:return!!p.cluster_nodes.length&&p.cluster_nodes.every(B=>B.ip.length>0);case C.SENTINEL:return!!p.sentinel_nodes.length&&p.sentinel_nodes.every(B=>B.host.length>0)&&!!((u=p.sentinel_master)!=null&&u.length)&&p.sentinel_role&&!!p.sentinel_role.length;default:throw new Error("Invalid redis type")}}),E=e.computed(()=>{switch(b.value){case C.HOST_PORT_CE:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{host:l.fields.config.host,port:T.int(l.fields.config.port),timeout:T.int(l.fields.config.timeout),username:T.str(l.fields.config.username,null),database:T.int(l.fields.config.database),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null)}};case C.HOST_PORT_EE:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{connect_timeout:T.int(l.fields.config.connect_timeout),connection_is_proxied:l.fields.config.connection_is_proxied,database:T.int(l.fields.config.database),host:l.fields.config.host,keepalive_backlog:T.int(l.fields.config.keepalive_backlog),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),password:T.str(l.fields.config.password,null),port:T.int(l.fields.config.port),read_timeout:T.int(l.fields.config.read_timeout),send_timeout:T.int(l.fields.config.send_timeout),server_name:T.str(l.fields.config.server_name,null),ssl_verify:l.fields.config.ssl_verify,ssl:l.fields.config.ssl,username:T.str(l.fields.config.username,null),cluster_nodes:null,cluster_max_redirections:null,sentinel_master:null,sentinel_role:null,sentinel_nodes:null,sentinel_username:null,sentinel_password:null}};case C.CLUSTER:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{cluster_nodes:T.removeIdClusterNodes(l.fields.config.cluster_nodes),cluster_max_redirections:T.int(l.fields.config.cluster_max_redirections),username:T.str(l.fields.config.username,null),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null),connect_timeout:T.int(l.fields.config.connect_timeout),database:T.int(l.fields.config.database),send_timeout:T.int(l.fields.config.send_timeout),read_timeout:T.int(l.fields.config.read_timeout),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),keepalive_backlog:T.int(l.fields.config.keepalive_backlog),connection_is_proxied:null,sentinel_master:null,sentinel_role:null,sentinel_nodes:null,sentinel_username:null,sentinel_password:null,host:null,port:null}};case C.SENTINEL:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{sentinel_master:T.str(l.fields.config.sentinel_master,null),sentinel_nodes:T.removeIdFromSentinelNodes(l.fields.config.sentinel_nodes),sentinel_role:T.str(l.fields.config.sentinel_role,null),sentinel_username:T.str(l.fields.config.sentinel_username,null),sentinel_password:T.str(l.fields.config.sentinel_password,null),username:T.str(l.fields.config.username,null),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null),database:T.int(l.fields.config.database),connect_timeout:T.int(l.fields.config.connect_timeout),send_timeout:T.int(l.fields.config.send_timeout),read_timeout:T.int(l.fields.config.read_timeout),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),keepalive_backlog:T.int(l.fields.config.keepalive_backlog),connection_is_proxied:null,cluster_nodes:null,cluster_max_redirections:null,host:null,port:null}};default:throw new Error("Invalid redis type")}}),h=e.computed(()=>{let p=`${r.apiBaseUrl}${Te.form[r.app][_.value]}`;return r.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,(r==null?void 0:r.controlPlaneId)||""):r.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,r!=null&&r.workspace?`/${r.workspace}`:"")),p=p.replace(/{id}/gi,n||""),p}),s=e.computed(()=>{var p;return(p=Te.form[r==null?void 0:r.app])==null?void 0:p.edit});return{form:l,canSubmit:y,payload:E,isEdit:o,redisType:b,redisTypeIsEnterprise:w,formType:_,fetchUrl:s,submit:async()=>{try{l.readonly=!0,l.errorMessage="";let p=E.value;return r.app==="konnect"&&(p={...p,config:T.removeNullValues(p.config)}),_.value===f.EntityBaseFormType.Create?await a.post(h.value,p):r.app==="konnect"?await a.put(h.value,p):await a.patch(h.value,p)}catch(p){throw l.errorMessage=m(p),l.readonly=!1,p}},setInitialFormValues:p=>{l.fields.config=Object.assign({},l.fields.config,T.removeNullValues(p.config)),l.fields.config.sentinel_nodes=T.addIdToSentinelNodes(p.config.sentinel_nodes??[]),l.fields.config.cluster_nodes=T.addIdToClusterNodes(p.config.cluster_nodes??[]),l.fields.name=p.name,l.fields.type=p.type,l.fields.tags=T.arrayToString(p.tags),b.value=Ie(p),c.value=JSON.parse(JSON.stringify(E.value))}}},Ho={class:"array-card-container"},Ko=e.defineComponent({__name:"FieldArrayCardContainer",props:{model:{type:Object,default:()=>null},schema:{type:Object,default:()=>null},index:{type:Number,default:void 0},disabled:{type:Boolean,default:!1}},emits:["remove-item"],setup(t){return(n,r)=>{const i=e.resolveComponent("KCard"),o=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Ho,[e.createVNode(i,{class:"card"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3}),e.createVNode(o,{appearance:"tertiary",class:"array-card-remove-button",disabled:t.disabled,onClick:r[0]||(r[0]=a=>n.$emit("remove-item"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon))]),_:1},8,["disabled"])])}}}),q=(t,n)=>{const r=t.__vccOpts||t;for(const[i,o]of n)r[i]=o;return r},Lt=q(Ko,[["__scopeId","data-v-a0b2e4fb"]]),qo={actions:{create:"New Redis Configuration",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",done:"Done",view:"View Details",loading:"Loading...",view_plugin:"View Plugin",close:"Close"},search:{placeholder:"Filter by name",placeholder_for_exact_match:"Filter by exact ID",no_results:"No results found"},delete:{title:"Delete Redis configuration",description:"You’re about to delete this item. Are you sure you want to proceed?",warning:"To delete this configuration, first remove it from all associated plugins."},errors:{copy:"Failed to copy to clipboard",general:"Redis configuration could not be retrieved",delete:"The redis configuration could not be deleted at this time."},copy:{success:"Copied {val} to clipboard"},form:{sections:{type:{title:"Redis type",description:"Both Enterprise and Open Source plugins support Redis. Enterprise plugins can connect to a standalone Redis instance (host/port), Cluster, or Sentinel, while Open Source plugins support only a simplified host/port configuration."},general:{title:"General information",description:"Name your Redis configuration."},connection:{title:"Connection settings",description:"Define the Redis server’s host, port, authentication, and timeout options for establishing a connection."},cluster:{title:"Cluster configuration",description:"Enables data sharding and distribution across multiple Redis nodes, allowing for scalability and load balancing."},tls:{title:"TLS settings",description:"Configure secure connections to Redis, including SSL and verification options."},keepalive:{title:"Keepalive configuration",description:"Keepalive reuses active connections to Redis, improving performance and efficiency."},read_write_configuration:{title:"Read/Write configuration",description:"Set timeouts for reading from and writing to the Redis server to control data transmission reliability."},sentinel_configuration:{title:"Sentinel configuration",description:"Manages Redis failover and high availability by connecting to Sentinel nodes that monitor and switch masters."}},fields:{type:{label:"Redis type"},name:{label:"Name",placeholder:"Enter unique name"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Route for grouping and filtering."},host:{label:"Host",tooltip:"A string representing a host name, such as example.com."},port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."},database:{label:"Database",tooltip:"Database to use for the Redis connection."},password:{label:"Password",tooltip:"Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis."},username:{label:"Username",tooltip:"Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`."},ssl:{label:"SSL",description:"If set to true, uses SSL to connect to Redis.",tooltip:"If set to true, uses SSL to connect to Redis."},ssl_verify:{label:"SSL Verify",description:"If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure lua_ssl_trusted_certificate in kong. conf to specify the CA (or server) certificate used by your Redis server. You may also need to configure lua_ss1_verify_depth accordingly.",tooltip:"If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure lua_ssl_trusted_certificate in kong.conf to specify the CA (or server) certificate used by your Redis server. You may also need to configure lua_ssl_verify_depth accordingly."},server_name:{label:"Server name",tooltip:"A string representing an SNI (server name indication) value for TLS."},keepalive_backlog:{label:"Keepalive backlog",tooltip:"Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`."},keepalive_pool_size:{label:"Keepalive pool size",tooltip:"The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low."},read_timeout:{label:"Read timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},send_timeout:{label:"Send timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},connect_timeout:{label:"Connect timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},sentinel_master:{label:"Sentinel master",tooltip:"Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel."},sentinel_role:{label:"Sentinel role",tooltip:"Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel."},sentinel_username:{label:"Sentinel username",tooltip:"Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+."},sentinel_password:{label:"Sentinel password",tooltip:"Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels."},cluster_node_ip:{label:"IP",tooltip:"A string representing a host name, such as example.com."},cluster_node_port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."},cluster_max_redirections:{label:"Cluster max redirections",tooltip:"Maximum retry attempts for redirection."},timeout:{label:"Timeout",tooltip:"redis schema field `timeout` is deprecated, use `connect_timeout`, `send_timeout` and `read_timeout`"},connection_is_proxied:{label:"Connection is proxied",tooltip:"If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address."},cluster_nodes:{title:"Cluster nodes",tooltip:"Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.",add_button:"New item"},sentinel_nodes:{title:"Sentinel nodes",tooltip:"Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.",add_button:"New item"},sentinel_node_host:{label:"Host",tooltip:"A string representing a host name, such as example.com."},sentinel_node_port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."}},options:{type:{host_port:"Host/Port",cluster:"Cluster",sentinel:"Sentinel",open_source:"Open Source",enterprise:"Enterprise",suffix_open_source:" (Open Source)",suffix_enterprise:" (Enterprise)"},sentinel_role:{master:"master",slave:"slave",any:"any"}},edit_warning_modal:{title:"Edit Redis configuration",description:"This Redis configuration is connected to {pluginCount}. Any updates will take effect across all associated instances.",plugin_count:"{count} plugin(s)",confirm:"Confirm"}},linked_plugins_modal:{title:"Associated plugins ({count})",headers:{plugin:"Plugin",instance_name:"Name"}},redis:{title:"Redis Configurations",empty_state:{title:"Configure a Redis Configuration",description:"Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."}},list:{action:"New configuration",table_headers:{name:"Name",type:"Type",plugins:"Plugins",tags:"Tags"},empty_state:{description:"Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing.",feature_1:{title:"Store your Redis configurations",description:"Define a Redis configuration once and use it across multiple plugins."},feature_2:{title:"Sync across plugins",description:"Edits to your configuration will be cascaded automatically to all associated plugins."}}}};function zo(){const t=Xe.createI18n("en-us",qo);return{i18n:t,i18nT:Xe.i18nTComponent(t)}}const Y={useI18n:zo},Wo={class:"cluster-node-items"},Go=q(e.defineComponent({__name:"ClusterNodes",props:e.mergeModels({readonly:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{i18n:{t:r}}=Y.useI18n(),i=()=>{n.value.push(Dt())},o=a=>{n.value.splice(a,1)};return(a,m)=>{const _=e.resolveComponent("KLabel"),l=e.resolveComponent("KInput"),c=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(_,{class:"required",info:e.unref(r)("form.fields.cluster_nodes.tooltip"),"tooltip-attributes":{maxWidth:"400"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("form.fields.cluster_nodes.title")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,w)=>(e.openBlock(),e.createBlock(Lt,{key:`${w}`,"data-testid":"redis-cluster-nodes",disabled:a.readonly,onRemoveItem:y=>o(w)},{default:e.withCtx(()=>[e.createElementVNode("div",Wo,[e.createVNode(l,{modelValue:b.ip,"onUpdate:modelValue":y=>b.ip=y,modelModifiers:{trim:!0},label:e.unref(r)("form.fields.cluster_node_ip.label"),"label-attributes":{info:e.unref(r)("form.fields.cluster_node_ip.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"ip",readonly:a.readonly,required:""},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"]),e.createVNode(l,{modelValue:b.port,"onUpdate:modelValue":y=>b.port=y,label:e.unref(r)("form.fields.cluster_node_port.label"),"label-attributes":{info:e.unref(r)("form.fields.cluster_node_port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",readonly:a.readonly,type:"number"},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"])])]),_:2},1032,["disabled","onRemoveItem"]))),128)),e.createVNode(c,{appearance:"tertiary","data-testid":"redis-add-cluster-node-button",disabled:a.readonly,onClick:i},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddCircleIcon)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("form.fields.cluster_nodes.add_button")),1)]),_:1},8,["disabled"])])])}}}),[["__scopeId","data-v-776a626d"]]),Jo={class:"sentinel-node-items"},Yo=q(e.defineComponent({__name:"SentinelNodes",props:e.mergeModels({readonly:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{i18n:{t:r}}=Y.useI18n(),i=()=>{n.value.push(Bt())},o=a=>{n.value.splice(a,1)};return(a,m)=>{const _=e.resolveComponent("KLabel"),l=e.resolveComponent("KInput"),c=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(_,{class:"required",info:e.unref(r)("form.fields.sentinel_nodes.tooltip"),"tooltip-attributes":{maxWidth:"400"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("form.fields.sentinel_nodes.title")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,w)=>(e.openBlock(),e.createBlock(Lt,{key:b.id,"data-testid":"redis-sentinel-nodes",disabled:a.readonly,onRemoveItem:y=>o(w)},{default:e.withCtx(()=>[e.createElementVNode("div",Jo,[e.createVNode(l,{modelValue:b.host,"onUpdate:modelValue":y=>b.host=y,modelModifiers:{trim:!0},label:e.unref(r)("form.fields.sentinel_node_host.label"),"label-attributes":{info:e.unref(r)("form.fields.sentinel_node_host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",readonly:a.readonly,required:""},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"]),e.createVNode(l,{modelValue:b.port,"onUpdate:modelValue":y=>b.port=y,label:e.unref(r)("form.fields.sentinel_node_port.label"),"label-attributes":{info:e.unref(r)("form.fields.sentinel_node_port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",readonly:a.readonly,type:"number"},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"])])]),_:2},1032,["disabled","onRemoveItem"]))),128)),e.createVNode(c,{appearance:"tertiary","data-testid":"redis-add-sentinel-node-button",disabled:a.readonly,onClick:i},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddCircleIcon)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("form.fields.sentinel_nodes.add_button")),1)]),_:1},8,["disabled"])])])}}}),[["__scopeId","data-v-cd1c07e2"]]);var Ke=new WeakMap,Mt=0;function Qo(t){if(!t.length)return"";for(var n="arg",r=0;r<t.length;++r){var i=void 0;t[r]===null||typeof t[r]!="object"&&typeof t[r]!="function"?typeof t[r]=="string"?i='"'+t[r]+'"':i=String(t[r]):Ke.has(t[r])?i=Ke.get(t[r]):(i=Mt,Ke.set(t[r],Mt++)),n+="@"+i}return n}function Xo(t){if(typeof t=="function")try{t=t()}catch{t=""}return Array.isArray(t)?t=Qo(t):t=String(t||""),t}var qe=function(){function t(n){n===void 0&&(n=0),this.items=new Map,this.ttl=n}return t.prototype.serializeKey=function(n){return Xo(n)},t.prototype.get=function(n){var r=this.serializeKey(n);return this.items.get(r)},t.prototype.set=function(n,r,i){var o=this.serializeKey(n),a=i||this.ttl,m=Date.now(),_={data:r,createdAt:m,expiresAt:a?m+a:1/0};this.dispatchExpire(a,_,o),this.items.set(o,_)},t.prototype.dispatchExpire=function(n,r,i){var o=this;n&&setTimeout(function(){var a=Date.now(),m=a>=r.expiresAt;m&&o.delete(i)},n)},t.prototype.delete=function(n){this.items.delete(n)},t}();function Zo(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function ei(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var ti=function(t){return fetch(t).then(function(n){return n.json()})};const ze={isOnline:Zo,isDocumentVisible:ei,fetcher:ti};var z=function(){return z=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},z.apply(this,arguments)},se=function(t,n,r,i){function o(a){return a instanceof r?a:new r(function(m){m(a)})}return new(r||(r=Promise))(function(a,m){function _(b){try{c(i.next(b))}catch(w){m(w)}}function l(b){try{c(i.throw(b))}catch(w){m(w)}}function c(b){b.done?a(b.value):o(b.value).then(_,l)}c((i=i.apply(t,n||[])).next())})},de=function(t,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,m;return m={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function _(c){return function(b){return l([c,b])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=n.call(t,r)}catch(b){c=[6,b],o=0}finally{i=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ni=function(t,n){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,a=[],m;try{for(;(n===void 0||n-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(_){m={error:_}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(m)throw m.error}}return a},ri=function(t,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return t.concat(a||Array.prototype.slice.call(n))},Ut=new qe,Pe=new qe,We=new qe,vt={cache:Ut,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:ze.fetcher,isOnline:ze.isOnline,isDocumentVisible:ze.isDocumentVisible};function oi(t,n,r){var i=Pe.get(t);if(i)i.data.push(n);else{var o=5e3;Pe.set(t,[n],r>0?r+o:r)}}function ii(t,n,r){if(r.isDocumentVisible()&&!(r.errorRetryCount!==void 0&&n>r.errorRetryCount)){var i=Math.min(n||0,r.errorRetryCount),o=i*r.errorRetryInterval;setTimeout(function(){t(null,{errorRetryCount:i+1,shouldRetryOnError:!0})},o)}}var jt=function(t,n,r,i){return r===void 0&&(r=Ut),i===void 0&&(i=vt.ttl),se(void 0,void 0,void 0,function(){var o,a,m,_,l,c,b;return de(this,function(w){switch(w.label){case 0:if(!li(n))return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,n];case 2:return o=w.sent(),[3,4];case 3:return _=w.sent(),a=_,[3,4];case 4:return[3,6];case 5:o=n,w.label=6;case 6:if(m=!1,l={data:o,error:a,isValidating:m},typeof o<"u")try{r.set(t,l,i)}catch(y){console.error("swrv(mutate): failed to set cache",y)}return c=Pe.get(t),c&&c.data.length&&(b=c.data.filter(function(y){return y.key===t}),b.forEach(function(y,E){typeof l.data<"u"&&(y.data=l.data),y.error=l.error,y.isValidating=l.isValidating,y.isLoading=l.isValidating;var h=E===b.length-1;h||delete b[E]}),b=b.filter(Boolean)),[2,l]}})})};function ai(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o,a=z({},vt),m=!1,_=!1,l=e.getCurrentInstance(),c=(l==null?void 0:l.proxy)||l;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var b=(c==null?void 0:c.$isServer)||!1;n.length>=1&&(i=n[0]),n.length>=2&&(o=n[1]),n.length>2&&(a=z(z({},a),n[2]));var w=b?a.serverTTL:a.ttl,y=typeof i=="function"?i:e.ref(i);typeof o>"u"&&(o=a.fetcher);var E=null;E||(E=e.reactive({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var h=function(p,u){return se(t,void 0,void 0,function(){var B,N,L,j,Q,M,W,F=this;return de(this,function(X){switch(X.label){case 0:return B=E.data===void 0,N=y.value,N?(L=a.cache.get(N),j=L&&L.data,E.isValidating=!0,E.isLoading=!j,j&&(E.data=j.data,E.error=j.error),Q=p||o,!Q||!a.isDocumentVisible()&&!B||(u==null?void 0:u.forceRevalidate)!==void 0&&!(u!=null&&u.forceRevalidate)?(E.isValidating=!1,E.isLoading=!1,[2]):L&&(M=!!(Date.now()-L.createdAt>=a.dedupingInterval||u!=null&&u.forceRevalidate),!M)?(E.isValidating=!1,E.isLoading=!1,[2]):(W=function(){return se(F,void 0,void 0,function(){var U,ce,oe,fe;return de(this,function(Z){switch(Z.label){case 0:return U=We.get(N),U?[3,2]:(ce=Array.isArray(N)?N:[N],oe=Q.apply(void 0,ri([],ni(ce),!1)),We.set(N,oe,a.dedupingInterval),[4,jt(N,oe,a.cache,w)]);case 1:return Z.sent(),[3,4];case 2:return[4,jt(N,U.data,a.cache,w)];case 3:Z.sent(),Z.label=4;case 4:return E.isValidating=!1,E.isLoading=!1,We.delete(N),E.error!==void 0&&(fe=!m&&a.shouldRetryOnError&&(u?u.shouldRetryOnError:!0),fe&&ii(h,u?u.errorRetryCount:1,a)),[2]}})})},j&&a.revalidateDebounce?(setTimeout(function(){return se(F,void 0,void 0,function(){return de(this,function(U){switch(U.label){case 0:return m?[3,2]:[4,W()];case 1:U.sent(),U.label=2;case 2:return[2]}})})},a.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,W()];case 2:X.sent(),X.label=3;case 3:return[2]}})})},s=function(){return se(t,void 0,void 0,function(){return de(this,function(p){return[2,h(null,{shouldRetryOnError:!1})]})})},S=null;e.onMounted(function(){var p=function(){return se(t,void 0,void 0,function(){return de(this,function(u){switch(u.label){case 0:return!E.error&&a.isOnline()?[4,h()]:[3,2];case 1:return u.sent(),[3,3];case 2:S&&clearTimeout(S),u.label=3;case 3:return a.refreshInterval&&!m&&(S=setTimeout(p,a.refreshInterval)),[2]}})})};a.refreshInterval&&(S=setTimeout(p,a.refreshInterval)),a.revalidateOnFocus&&(document.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1))}),e.onUnmounted(function(){m=!0,S&&clearTimeout(S),a.revalidateOnFocus&&(document.removeEventListener("visibilitychange",s,!1),window.removeEventListener("focus",s,!1));var p=Pe.get(y.value);p&&(p.data=p.data.filter(function(u){return u!==E}))});try{e.watch(y,function(p){e.isReadonly(y)||(y.value=p),E.key=p,E.isValidating=!!p,oi(y.value,E,w),!b&&!_&&y.value&&h(),_=!1},{immediate:!0})}catch{}var O=z(z({},e.toRefs(E)),{mutate:function(p,u){return h(p,z(z({},u),{forceRevalidate:!0}))}});return O}function li(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function Ft(t){return`redis-partial-links-${t}`}const we=t=>{const{axiosInstance:n}=f.useAxios(t.axiosRequestConfig);return{fetcher:async r=>{const{partialId:i,size:o,offset:a,query:m}=r;let _=`${t.apiBaseUrl}${Te.links[t.app]}`;t.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,(t==null?void 0:t.controlPlaneId)||""):t.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,t!=null&&t.workspace?`/${t.workspace}`:"")),_=_.replace(/{id}/gi,i||""),m&&(_=`${_}?${m}`);const{data:l}=await n.get(_,{params:{size:o,offset:a}});return l}}},Ht=t=>{const{partialId:n,config:r}=t,{fetcher:i}=we(r),o=e.ref([]),{data:a}=ai(Ft(n),()=>i({partialId:n}),{revalidateOnFocus:!1});return e.watch(a,()=>{var m;o.value=((m=a.value)==null?void 0:m.data)??[]}),o},si={class:"kong-ui-entities-redis-configurations-form"},di=q(e.defineComponent({__name:"RedisConfigurationForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||(t==null?void 0:t.app)==="konnect"&&!(t!=null&&t.controlPlaneId)||(t==null?void 0:t.app)==="kongManager"&&typeof(t==null?void 0:t.workspace)!="string")},partialId:{type:String,required:!1,default:""},actionTeleportTarget:{type:String},slidoutTopOffset:{type:Number,default:60},disabledPartialType:{type:String,default:""}},emits:["update","error","loading","cancel"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o},i18nT:a}=Y.useI18n(),m=Qe.useRouter(),_=e.ref(),l=e.ref(),c=(P,g)=>{_.value=P??"",l.value=g},b=P=>{var g;(g=l.value)==null||g.call(l,P),_.value=!1},w=e.computed(()=>[{label:o("form.options.type.host_port"),group:o("form.options.type.enterprise"),value:C.HOST_PORT_EE,selected:u.value===C.HOST_PORT_EE,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.cluster"),group:o("form.options.type.enterprise"),value:C.CLUSTER,selected:u.value===C.CLUSTER,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.sentinel"),group:o("form.options.type.enterprise"),value:C.SENTINEL,selected:u.value===C.SENTINEL,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.host_port"),group:o("form.options.type.open_source"),value:C.HOST_PORT_CE,selected:u.value===C.HOST_PORT_CE,disabled:p&&B.value||!p&&r.disabledPartialType===D.REDIS_CE}]),y=[{label:o("form.options.sentinel_role.master"),value:"master"},{label:o("form.options.sentinel_role.slave"),value:"slave"},{label:o("form.options.sentinel_role.any"),value:"any"}],E=P=>{const g=P.value===C.HOST_PORT_CE?o("form.options.type.suffix_open_source"):o("form.options.type.suffix_enterprise");return`${P.label}${g}`},h=()=>r.disabledPartialType&&Re(le)===r.disabledPartialType?r.disabledPartialType===D.REDIS_CE?C.HOST_PORT_EE:C.HOST_PORT_CE:le,{form:s,canSubmit:S,payload:O,isEdit:p,redisType:u,redisTypeIsEnterprise:B,fetchUrl:N,submit:L,setInitialFormValues:j}=Fo({partialId:r.partialId,defaultRedisType:h(),config:r.config}),{fetcher:Q}=we(r.config),M=e.ref(!1),W=e.ref(!1),F=e.ref(0),X=async()=>{try{if(p&&!W.value){const{count:g}=await Q({partialId:r.partialId});if(F.value=g,g>0){M.value=!0;return}}const{data:P}=await L();i("update",P)}catch(P){i("error",P)}},U=()=>{M.value=!1,W.value=!0,X()},ce=()=>{r.config.cancelRoute&&m.push(r.config.cancelRoute),i("cancel")},oe=P=>{i("loading",P)},fe=P=>{i("error",P)},Z=P=>{j(P)};return e.onBeforeMount(async()=>{if(p){const{count:P}=await Q({partialId:r.partialId});F.value=P}}),(P,g)=>{const Je=e.resolveComponent("KAlert"),Ae=e.resolveComponent("KSelect"),A=e.resolveComponent("KInput"),ue=e.resolveComponent("KCheckbox"),k=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",si,[e.createVNode(e.unref(f.EntityBaseForm),{"action-teleport-target":t.actionTeleportTarget,"can-submit":e.unref(S),config:t.config,"edit-id":t.partialId,"entity-type":e.unref(f.SupportedEntityType).RedisConfiguration,"error-message":e.unref(s).errorMessage,"fetch-url":e.unref(N),"form-fields":e.unref(O),"is-readonly":e.unref(s).readonly,"slidout-top-offset":t.slidoutTopOffset,onCancel:ce,"onFetch:error":fe,"onFetch:success":Z,onLoading:oe,onSubmit:X},{default:e.withCtx(()=>[F.value>0&&e.unref(p)?(e.openBlock(),e.createBlock(Je,{key:0,appearance:"warning",class:"warning-alert","data-testid":"redis-update-warning-alert"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:"form.edit_warning_modal.description",tag:"div"},{pluginCount:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(o)("form.edit_warning_modal.plugin_count",{count:F.value})),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-type-section",description:e.unref(o)("form.sections.type.description"),title:e.unref(o)("form.sections.type.title")},{default:e.withCtx(()=>[e.createVNode(Ae,{modelValue:e.unref(u),"onUpdate:modelValue":g[0]||(g[0]=d=>e.isRef(u)?u.value=d:null),"data-testid":"redis-type-select",disabled:e.unref(p)&&e.unref(u)===e.unref(C).HOST_PORT_CE,items:w.value,"kpop-attributes":{"data-testid":"redis-type-select-popover"},label:e.unref(o)("form.fields.type.label"),readonly:e.unref(s).readonly,required:""},{"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(E(d)),1)]),_:1},8,["modelValue","disabled","items","label","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-general-section",description:e.unref(o)("form.sections.general.description"),title:e.unref(o)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.name,"onUpdate:modelValue":g[1]||(g[1]=d=>e.unref(s).fields.name=d),modelModifiers:{trim:!0},"data-testid":"redis-name-input",disabled:e.unref(p),label:e.unref(o)("form.fields.name.label"),placeholder:e.unref(o)("form.fields.name.placeholder"),readonly:e.unref(s).readonly,required:""},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.tags,"onUpdate:modelValue":g[2]||(g[2]=d=>e.unref(s).fields.tags=d),modelModifiers:{trim:!0},"data-testid":"redis-tags-input",help:e.unref(o)("form.fields.tags.help"),label:e.unref(o)("form.fields.tags.label"),"label-attributes":{info:e.unref(o)("form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(o)("form.fields.tags.placeholder"),readonly:e.unref(s).readonly},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.unref(u)===e.unref(C).SENTINEL?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:1,"data-testid":"redis-sentinel-configuration-section",description:e.unref(o)("form.sections.sentinel_configuration.description"),title:e.unref(o)("form.sections.sentinel_configuration.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_master,"onUpdate:modelValue":g[3]||(g[3]=d=>e.unref(s).fields.config.sentinel_master=d),"data-testid":"redis-sentinel-master-input",label:e.unref(o)("form.fields.sentinel_master.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_master.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Ae,{modelValue:e.unref(s).fields.config.sentinel_role,"onUpdate:modelValue":g[4]||(g[4]=d=>e.unref(s).fields.config.sentinel_role=d),"data-testid":"redis-sentinel-role-select",items:y,"kpop-attributes":{"data-testid":"redis-sentinel-role-select-popover"},label:e.unref(o)("form.fields.sentinel_role.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Yo,{modelValue:e.unref(s).fields.config.sentinel_nodes,"onUpdate:modelValue":g[5]||(g[5]=d=>e.unref(s).fields.config.sentinel_nodes=d),readonly:e.unref(s).readonly},null,8,["modelValue","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_username,"onUpdate:modelValue":g[6]||(g[6]=d=>e.unref(s).fields.config.sentinel_username=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.sentinel_username.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_username.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.sentinel_username=d,value:e.unref(s).fields.config.sentinel_username,onOpen:g[7]||(g[7]=(d,x)=>c(d,x))},null,8,["disabled","update","value"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_password,"onUpdate:modelValue":g[8]||(g[8]=d=>e.unref(s).fields.config.sentinel_password=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.sentinel_password.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_password.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.sentinel_password=d,value:e.unref(s).fields.config.sentinel_password,onOpen:g[9]||(g[9]=(d,x)=>c(d,x))},null,8,["disabled","update","value"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).CLUSTER?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:2,"data-testid":"redis-cluster-configuration-section",description:e.unref(o)("form.sections.cluster.description"),title:e.unref(o)("form.sections.cluster.title")},{default:e.withCtx(()=>[e.createVNode(Go,{modelValue:e.unref(s).fields.config.cluster_nodes,"onUpdate:modelValue":g[10]||(g[10]=d=>e.unref(s).fields.config.cluster_nodes=d),readonly:e.unref(s).readonly},null,8,["modelValue","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.cluster_max_redirections,"onUpdate:modelValue":g[11]||(g[11]=d=>e.unref(s).fields.config.cluster_max_redirections=d),"data-testid":"redis-cluster-max-redirections-input",label:e.unref(o)("form.fields.cluster_max_redirections.label"),"label-attributes":{info:e.unref(o)("form.fields.cluster_max_redirections.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-connection-configuration-section",description:e.unref(o)("form.sections.connection.description"),title:e.unref(o)("form.sections.connection.title")},{default:e.withCtx(()=>[e.unref(u)===e.unref(C).HOST_PORT_CE||e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(A,{key:0,modelValue:e.unref(s).fields.config.host,"onUpdate:modelValue":g[12]||(g[12]=d=>e.unref(s).fields.config.host=d),modelModifiers:{trim:!0},"data-testid":"redis-host-input",label:e.unref(o)("form.fields.host.label"),"label-attributes":{info:e.unref(o)("form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_CE||e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(A,{key:1,modelValue:e.unref(s).fields.config.port,"onUpdate:modelValue":g[13]||(g[13]=d=>e.unref(s).fields.config.port=d),modelModifiers:{trim:!0},"data-testid":"redis-port-input",label:e.unref(o)("form.fields.port.label"),"label-attributes":{info:e.unref(o)("form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(ue,{key:2,modelValue:e.unref(s).fields.config.connection_is_proxied,"onUpdate:modelValue":g[14]||(g[14]=d=>e.unref(s).fields.config.connection_is_proxied=d),"data-testid":"redis-connection-is-proxied-checkbox",disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.connection_is_proxied.label"),"label-attributes":{info:e.unref(o)("form.fields.connection_is_proxied.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","disabled","label","label-attributes"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(A,{key:3,modelValue:e.unref(s).fields.config.timeout,"onUpdate:modelValue":g[15]||(g[15]=d=>e.unref(s).fields.config.timeout=d),modelModifiers:{trim:!0},"data-testid":"redis-timeout-input",label:e.unref(o)("form.fields.timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(A,{modelValue:e.unref(s).fields.config.database,"onUpdate:modelValue":g[16]||(g[16]=d=>e.unref(s).fields.config.database=d),modelModifiers:{trim:!0},"data-testid":"redis-database-input",label:e.unref(o)("form.fields.database.label"),"label-attributes":{info:e.unref(o)("form.fields.database.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.username,"onUpdate:modelValue":g[17]||(g[17]=d=>e.unref(s).fields.config.username=d),modelModifiers:{trim:!0},"data-testid":"redis-username-input",label:e.unref(o)("form.fields.username.label"),"label-attributes":{info:e.unref(o)("form.fields.username.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.username=d,value:e.unref(s).fields.config.username,onOpen:g[18]||(g[18]=(d,x)=>c(d,x))},null,8,["disabled","update","value"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.password,"onUpdate:modelValue":g[19]||(g[19]=d=>e.unref(s).fields.config.password=d),modelModifiers:{trim:!0},"data-testid":"redis-password-input",label:e.unref(o)("form.fields.password.label"),"label-attributes":{info:e.unref(o)("form.fields.password.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.password=d,value:e.unref(s).fields.config.password,onOpen:g[20]||(g[20]=(d,x)=>c(d,x))},null,8,["disabled","update","value"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-tls-configuration-section",description:e.unref(o)("form.sections.tls.description"),title:e.unref(o)("form.sections.tls.title")},{default:e.withCtx(()=>[e.createVNode(ue,{modelValue:e.unref(s).fields.config.ssl,"onUpdate:modelValue":g[21]||(g[21]=d=>e.unref(s).fields.config.ssl=d),"data-testid":"redis-ssl-checkbox",description:e.unref(o)("form.fields.ssl.description"),disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.ssl.label"),"label-attributes":{info:e.unref(o)("form.fields.ssl.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","description","disabled","label","label-attributes"]),e.createVNode(ue,{modelValue:e.unref(s).fields.config.ssl_verify,"onUpdate:modelValue":g[22]||(g[22]=d=>e.unref(s).fields.config.ssl_verify=d),"data-testid":"redis-ssl-verify-checkbox",description:e.unref(o)("form.fields.ssl_verify.description"),disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.ssl_verify.label"),"label-attributes":{info:e.unref(o)("form.fields.ssl_verify.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","description","disabled","label","label-attributes"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.server_name,"onUpdate:modelValue":g[23]||(g[23]=d=>e.unref(s).fields.config.server_name=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.server_name.label"),"label-attributes":{info:e.unref(o)("form.fields.server_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"]),e.unref(u)!==e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:3,"data-testid":"redis-keepalive-section",description:e.unref(o)("form.sections.keepalive.description"),title:e.unref(o)("form.sections.keepalive.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.keepalive_backlog,"onUpdate:modelValue":g[24]||(g[24]=d=>e.unref(s).fields.config.keepalive_backlog=d),"data-testid":"redis-keepalive-backlog-input",label:e.unref(o)("form.fields.keepalive_backlog.label"),"label-attributes":{info:e.unref(o)("form.fields.keepalive_backlog.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.keepalive_pool_size,"onUpdate:modelValue":g[25]||(g[25]=d=>e.unref(s).fields.config.keepalive_pool_size=d),"data-testid":"redis-keepalive-pool-size-input",label:e.unref(o)("form.fields.keepalive_pool_size.label"),"label-attributes":{info:e.unref(o)("form.fields.keepalive_pool_size.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.unref(u)!==e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:4,"data-testid":"redis-read-write-configuration-section",description:e.unref(o)("form.sections.read_write_configuration.description"),title:e.unref(o)("form.sections.read_write_configuration.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.read_timeout,"onUpdate:modelValue":g[26]||(g[26]=d=>e.unref(s).fields.config.read_timeout=d),"data-testid":"redis-read-timeout-input",label:e.unref(o)("form.fields.read_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.send_timeout,"onUpdate:modelValue":g[27]||(g[27]=d=>e.unref(s).fields.config.send_timeout=d),"data-testid":"redis-send-timeout-input",label:e.unref(o)("form.fields.send_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.send_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.connect_timeout,"onUpdate:modelValue":g[28]||(g[28]=d=>e.unref(s).fields.config.connect_timeout=d),"data-testid":"redis-connect-timeout-input",label:e.unref(o)("form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0)]),_:1},8,["action-teleport-target","can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly","slidout-top-offset"])]),e.createVNode(e.unref(pe.VaultSecretPicker),{config:r.config,setup:_.value,onCancel:g[29]||(g[29]=()=>_.value=!1),onProceed:b},null,8,["config","setup"]),e.createVNode(k,{"action-button-text":e.unref(o)("form.edit_warning_modal.confirm"),"data-testid":"redis-update-warning-modal","hide-cancel-button":"","max-width":"640",title:e.unref(o)("form.edit_warning_modal.title"),visible:M.value,onCancel:g[30]||(g[30]=d=>M.value=!1),onProceed:U},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:"form.edit_warning_modal.description",tag:"div"},{pluginCount:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(o)("form.edit_warning_modal.plugin_count",{count:F.value})),1)]),_:1})]),_:1},8,["action-button-text","title","visible"])],64)}}}),[["__scopeId","data-v-6f2877e0"]]),ci="#00abd2",fi="24px",ui={class:"linked-plugins","data-testid":"linked-plugins-inline"},Ge=7,pi=q(e.defineComponent({__name:"LinkedPluginsInline",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},partialId:{type:String,required:!0}},setup(t){const n=t,r=Ht({config:n.config,partialId:n.partialId});return(i,o)=>{const a=e.resolveComponent("KBadge");return e.openBlock(),e.createElementBlock("div",ui,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).slice(0,Ge),m=>(e.openBlock(),e.createBlock(e.unref(Ze.PluginIcon),{key:m.id,name:m.name,size:24},null,8,["name"]))),128)),e.unref(r).length-Ge>0?(e.openBlock(),e.createBlock(a,{key:0,appearance:"info"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(e.unref(r).length-Ge),1)]),_:1})):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c39556bc"]]),mi={class:"plugin-item"},gi=q(e.defineComponent({__name:"PluginItem",props:{pluginName:{}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",mi,[e.createVNode(e.unref(Ze.PluginIcon),{name:n.pluginName,size:24},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n.pluginName),1)]))}}),[["__scopeId","data-v-de964dc4"]]),_i={class:"toolbar-container"},Kt=q(e.defineComponent({__name:"LinkedPluginList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},isExactMatch:{type:Boolean,default:!1},filterBarEnabled:{type:Boolean,default:!1},partialId:{type:String,required:!0}},emits:["view-plugin","load"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o}}=Y.useI18n(),a=[{key:"name",label:o("linked_plugins_modal.headers.plugin")},{key:"instance_name",label:o("linked_plugins_modal.headers.instance_name")},{key:"actions",hideLabel:!0}],{fetcher:m}=we(r.config),_=e.ref(0),l=async y=>{const{data:E,count:h}=await m({partialId:r.partialId,size:y.pageSize,offset:y.offset,query:y.query});_.value=h;const s={total:h,data:E};return i("load",s),s},c=e.ref(""),b=e.computed(()=>r.config.app==="konnect"||r.isExactMatch?{isExactMatch:!0}:{isExactMatch:!1,fields:{name:{searchable:!0}},schema:{name:{type:"text"}}}),w=y=>{i("view-plugin",{id:y.id,plugin:y.name})};return(y,E)=>{const h=e.resolveComponent("KDropdownItem"),s=e.resolveComponent("KTableData");return e.openBlock(),e.createBlock(s,{"cache-identifier":e.unref(Ft)(t.partialId),fetcher:l,headers:a,"hide-pagination-when-optional":"","pagination-attributes":{totalCount:_.value,disablePageJump:!0},"search-input":c.value},e.createSlots({name:e.withCtx(({rowValue:S})=>[e.createVNode(gi,{"plugin-name":S},null,8,["plugin-name"])]),"action-items":e.withCtx(({row:S})=>[e.createVNode(h,{onClick:O=>w(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("actions.view_plugin")),1)]),_:2},1032,["onClick"])]),_:2},[t.filterBarEnabled?{name:"toolbar",fn:e.withCtx(()=>[e.createElementVNode("div",_i,[e.createVNode(e.unref(f.EntityFilter),{modelValue:c.value,"onUpdate:modelValue":E[0]||(E[0]=S=>c.value=S),config:b.value},null,8,["modelValue","config"])])]),key:"0"}:void 0]),1032,["cache-identifier","pagination-attributes","search-input"])}}}),[["__scopeId","data-v-50856d03"]]),yi={class:"linked-plugins-modal","data-testid":"linked-plugins-modal"},bi=q(e.defineComponent({__name:"LinkedPluginListModal",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},redisConfigurationId:{type:String,required:!0},visible:{type:Boolean,required:!0,default:!1}},emits:["cancel","proceed","view-plugin"],setup(t,{emit:n}){const r=n,{i18n:{t:i}}=Y.useI18n(),o=e.ref(0),a=e.computed(()=>i("linked_plugins_modal.title",{count:o.value})),m=()=>{r("cancel")},_=()=>{r("proceed")};return(l,c)=>{const b=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock("div",yi,[e.createVNode(b,{"action-button-text":e.unref(i)("actions.done"),"hide-cancel-button":"",title:a.value,visible:t.visible,onCancel:m,onProceed:_},{default:e.withCtx(()=>[e.createVNode(Kt,{config:t.config,"partial-id":t.redisConfigurationId,onLoad:c[0]||(c[0]=({total:w})=>o.value=w),onViewPlugin:c[1]||(c[1]=w=>r("view-plugin",w))},null,8,["config","partial-id"])]),_:1},8,["action-button-text","title","visible"])])}}}),[["__scopeId","data-v-6148b8bd"]]),qt=e.defineComponent({__name:"DeleteWarningModal",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(t,{emit:n}){const{i18n:{t:r}}=Y.useI18n(),i=n,o=()=>{i("close")};return(a,m)=>{const _=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(_,{"action-button-text":e.unref(r)("actions.close"),"data-testid":"remove-links-modal","hide-cancel-button":"","max-width":"640",title:e.unref(r)("delete.title"),visible:t.visible,onCancel:o,onProceed:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("delete.warning")),1)]),_:1},8,["action-button-text","title","visible"])}}}),hi={class:"kong-ui-entities-partials-list"},Ci={class:"empty-state-icon-gateway"},Ti=1e3,wi=q(e.defineComponent({__name:"RedisConfigurationList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||!t.createRoute||!t.getViewRoute||!t.getEditRoute)},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}},emits:["click:learn-more","click:plugin","copy:error","copy:success","delete:success","error"],setup(t,{emit:n}){var ue;const r=n,i=t,o=e.computed(()=>{var d,x;let k=`${i.config.apiBaseUrl}${Te.list[i.config.app]}`;return i.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((d=i.config)==null?void 0:d.controlPlaneId)||""):i.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(x=i.config)!=null&&x.workspace?`/${i.config.workspace}`:"")),k}),a=e.ref(!1),m=e.ref(""),_=e.ref(null),l=e.ref(void 0),c=e.ref(!1),b=e.ref(!1),w=e.ref(""),y=e.ref(!1),E=f.useDeleteUrlBuilder(i.config,o.value),h=e.ref(1),s=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),{fetcher:S,fetcherState:O}=f.useFetcher(i.config,o);async function p(k){const d=await S({...k,pageSize:Ti});return d.data=d.data.filter(x=>x.type===D.REDIS_CE||x.type===D.REDIS_EE),d}const{i18n:{t:u}}=Y.useI18n(),{axiosInstance:B}=f.useAxios((ue=i.config)==null?void 0:ue.axiosRequestConfig),N=Qe.useRouter(),L=e.ref(""),j=e.computed(()=>{const k=i.config.app==="konnect"||i.config.isExactMatch;if(k)return{isExactMatch:!0,placeholder:u("search.placeholder_for_exact_match")};const{name:d}=W;return{isExactMatch:k,fields:{name:d},schema:i.config.filterSchema}}),{fetcher:Q}=we(i.config),M=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${u("redis.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:u("redis.title")}),W={name:{label:u("list.table_headers.name"),searchable:!0,hidable:!1,sortable:!0},type:{label:u("list.table_headers.type")},tags:{label:u("list.table_headers.tags")},plugins:{label:u("list.table_headers.plugins")}},F=k=>({label:u("actions.view"),to:i.config.getViewRoute(k)}),X=k=>({label:u("actions.edit"),to:i.config.getEditRoute(k)}),U=async k=>{const{count:d}=await Q({partialId:k.id});d>0?y.value=!0:(l.value=k,c.value=!0)},ce=()=>{L.value=""},oe=async k=>{var x;await((x=i.canRetrieve)==null?void 0:x.call(i,k))&&N.push(i.config.getViewRoute(k.id))},fe=()=>{c.value=!1},Z=k=>{m.value=k,a.value=!0},P=async()=>{var k,d,x;if((k=l.value)!=null&&k.id){b.value=!0;try{await B.delete(E(l.value.id)),b.value=!1,c.value=!1,g(),r("delete:success",l.value)}catch(v){w.value=((x=(d=v.response)==null?void 0:d.data)==null?void 0:x.message)||v.message||u("errors.delete"),r("error",v)}finally{b.value=!1}}},g=()=>{h.value++},Je=k=>{switch(Ie(k)){case C.HOST_PORT_CE:return`${u("form.options.type.host_port")}${u("form.options.type.suffix_open_source")}`;case C.HOST_PORT_EE:return`${u("form.options.type.host_port")}${u("form.options.type.suffix_enterprise")}`;case C.SENTINEL:return`${u("form.options.type.sentinel")}${u("form.options.type.suffix_enterprise")}`;case C.CLUSTER:return`${u("form.options.type.cluster")}${u("form.options.type.suffix_enterprise")}`}},Ae=()=>{N.push(i.config.createRoute)},A=async(k,d)=>{const x=k.id;if(!await d(x)){r("copy:error",{entity:k,field:"id",message:u("errors.copy")});return}r("copy:success",{entity:k,field:"id",message:u("copy.success",{val:x})})};return e.watch(O,k=>{var d,x,v;if(k.status===f.FetcherStatus.Error){_.value={title:u("errors.general")},(v=(x=(d=k.error)==null?void 0:d.response)==null?void 0:x.data)!=null&&v.message&&(_.value.message=k.error.response.data.message),r("error",k.error);return}_.value=null}),e.watch(i.canCreate,async k=>{await k?M.value.ctaText=u("actions.create"):M.value.ctaText=void 0},{immediate:!0}),(k,d)=>{const x=e.resolveComponent("KButton"),v=e.resolveComponent("KDropdownItem"),Vi=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(e.unref(f.EntityBaseTable),{"cache-identifier":t.cacheIdentifier,"disable-sorting":s.value,"empty-state-options":M.value,"enable-entity-actions":"","error-message":_.value,fetcher:p,"fetcher-cache-key":h.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-redis-configuration-list",query:L.value,"table-headers":W,onClearSearchInput:ce,"onClick:row":d[2]||(d[2]=R=>oe(R)),onSort:g},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(f.EntityFilter),{modelValue:L.value,"onUpdate:modelValue":d[0]||(d[0]=R=>L.value=R),config:j.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!t.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":t.canCreate},{default:e.withCtx(()=>[e.createVNode(x,{appearance:"primary","data-testid":"toolbar-add-redis-configuration",size:"large",to:t.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("actions.create")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:R})=>[e.createElementVNode("b",null,e.toDisplayString(R??"-"),1)]),type:e.withCtx(({row:R})=>[e.createTextVNode(e.toDisplayString(Je(R)),1)]),tags:e.withCtx(({rowValue:R})=>[e.createVNode(e.unref(f.TableTags),{tags:R},null,8,["tags"])]),plugins:e.withCtx(({row:R})=>[e.createVNode(pi,{config:t.config,"partial-id":R.id,onClick:e.withModifiers(Ye=>Z(R.id),["stop"])},null,8,["config","partial-id","onClick"])]),actions:e.withCtx(({row:R})=>[e.createVNode(Vi,null,{default:e.withCtx(({copyToClipboard:Ye})=>[e.createVNode(v,{"data-testid":"action-entity-copy-id",onClick:zi=>A(R,Ye)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canRetrieve(R)},{default:e.withCtx(()=>[e.createVNode(v,{"data-testid":"action-entity-view","has-divider":"",item:F(R.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canEdit(R)},{default:e.withCtx(()=>[e.createVNode(v,{"data-testid":"action-entity-edit",item:X(R.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canDelete(R)},{default:e.withCtx(()=>[e.createVNode(v,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:Ye=>U(R)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),"empty-state":e.withCtx(()=>[e.createVNode(e.unref(f.EntityEmptyState),{"action-button-text":e.unref(u)("list.action"),appearance:"secondary","can-create":()=>t.canCreate(),"data-testid":"redis-entity-empty-state",description:e.unref(u)("list.empty_state.description"),features:[{title:e.unref(u)("list.empty_state.feature_1.title"),description:e.unref(u)("list.empty_state.feature_1.description")},{title:e.unref(u)("list.empty_state.feature_2.title"),description:e.unref(u)("list.empty_state.feature_2.description")}],title:e.unref(u)("redis.title"),"onClick:create":Ae,"onClick:learnMore":d[1]||(d[1]=()=>r("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",Ci,[e.createVNode(e.unref(ee.DeployIcon),{color:e.unref(ci),size:e.unref(fi)},null,8,["color","size"])])]),"feature-0-icon":e.withCtx(()=>[e.createVNode(e.unref(ee.ClipboardIcon))]),"feature-1-icon":e.withCtx(()=>[e.createVNode(e.unref(ee.RefreshIcon))]),_:1},8,["action-button-text","can-create","description","features","title"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher-cache-key","query"]),e.createVNode(qt,{visible:y.value,onClose:d[3]||(d[3]=R=>y.value=!1)},null,8,["visible"]),e.createVNode(e.unref(f.EntityDeleteModal),{"action-pending":b.value,description:e.unref(u)("delete.description"),"entity-name":l.value&&(l.value.name||l.value.id),"entity-type":e.unref(f.EntityTypes).RedisConfiguration,error:w.value,"need-confirmation":!0,title:e.unref(u)("delete.title"),visible:c.value,onCancel:fe,onProceed:P},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"]),e.createVNode(bi,{config:t.config,"redis-configuration-id":m.value,visible:a.value,onCancel:d[4]||(d[4]=R=>a.value=!1),onProceed:d[5]||(d[5]=R=>a.value=!1),onViewPlugin:d[6]||(d[6]=R=>r("click:plugin",R))},null,8,["config","redis-configuration-id","visible"])])}}}),[["__scopeId","data-v-7d07fb48"]]),Ei={class:"kong-ui-consumer-group-entity-config-card"},ki=e.defineComponent({__name:"RedisConfigurationConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!0}},emits:["loading","fetch:error","fetch:success"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o}}=Y.useI18n(),a=e.computed(()=>Te.form[r.config.app].edit),m=e.ref(le),_=h=>{m.value=Ie(h),i("fetch:success",h)},l=e.computed(()=>{const h=m.value===C.HOST_PORT_CE?o("form.options.type.suffix_open_source"):o("form.options.type.suffix_enterprise");let s="";switch(m.value){case C.HOST_PORT_CE:s=o("form.options.type.host_port");break;case C.HOST_PORT_EE:s=o("form.options.type.host_port");break;case C.CLUSTER:s=o("form.options.type.cluster");break;case C.SENTINEL:s=o("form.options.type.sentinel");break}return`${s}${h}`}),c=h=>({id:h.id,name:h.name,tags:h.tags,created_at:h.created_at,updated_at:h.updated_at,type:h.type,...h.config}),b=h=>{const{id:s,name:S,created_at:O,updated_at:p,type:u,tags:B,...N}=h;return{id:s,name:S,tags:B,created_at:O,updated_at:p,type:u,config:N}},w={id:{},name:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.name.label")},tags:{type:f.ConfigurationSchemaType.BadgeTag,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.tags.label"),tooltip:o("form.fields.tags.tooltip")},updated_at:{},created_at:{},type:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.type.label")},cluster_max_redirections:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,tooltip:o("form.fields.cluster_max_redirections.tooltip"),label:o("form.fields.cluster_max_redirections.label")},cluster_nodes:{type:f.ConfigurationSchemaType.JsonArray,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.cluster_nodes.title"),tooltip:o("form.fields.cluster_nodes.tooltip")},connect_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.connect_timeout.label"),tooltip:o("form.fields.connect_timeout.tooltip")},connection_is_proxied:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.connection_is_proxied.label"),tooltip:o("form.fields.connection_is_proxied.tooltip")},database:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.database.label"),tooltip:o("form.fields.database.tooltip")},host:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.host.label"),tooltip:o("form.fields.host.tooltip")},keepalive_backlog:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.keepalive_backlog.label"),tooltip:o("form.fields.keepalive_backlog.tooltip")},keepalive_pool_size:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.keepalive_pool_size.label"),tooltip:o("form.fields.keepalive_pool_size.tooltip")},password:{type:f.ConfigurationSchemaType.Redacted,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.password.label"),tooltip:o("form.fields.password.tooltip")},port:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.port.label"),tooltip:o("form.fields.port.tooltip")},read_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.read_timeout.label"),tooltip:o("form.fields.read_timeout.tooltip")},send_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.send_timeout.label"),tooltip:o("form.fields.send_timeout.tooltip")},sentinel_master:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_master.label"),tooltip:o("form.fields.sentinel_master.tooltip")},sentinel_nodes:{type:f.ConfigurationSchemaType.JsonArray,section:f.ConfigurationSchemaSection.Basic,tooltip:o("form.fields.sentinel_nodes.tooltip")},sentinel_password:{type:f.ConfigurationSchemaType.Redacted,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_password.label"),tooltip:o("form.fields.sentinel_password.tooltip")},sentinel_role:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_role.label"),tooltip:o("form.fields.sentinel_role.tooltip")},sentinel_username:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_username.label"),tooltip:o("form.fields.sentinel_username.tooltip")},server_name:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.server_name.label"),tooltip:o("form.fields.server_name.tooltip")},ssl_verify:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.ssl_verify.label"),tooltip:o("form.fields.ssl_verify.tooltip")},ssl:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.ssl.label"),tooltip:o("form.fields.ssl.tooltip")},timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.timeout.label"),tooltip:o("form.fields.timeout.tooltip")},username:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.username.label"),tooltip:o("form.fields.username.tooltip")}},y=h=>{const s={},S=Object.keys(w);for(const O of S)h.includes(O)?s[O]={...w[O],order:h.indexOf(O)+1}:s[O]={...w[O],hidden:!0};return s},E=e.computed(()=>{const h=["id","name","tags","type","updated_at","created_at"];switch(m.value){case C.HOST_PORT_CE:return y([...h,"host","port","timeout","database","username","password","ssl","ssl_verify","server_name"]);case C.HOST_PORT_EE:return y([...h,"host","port","connection_is_proxied","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);case C.CLUSTER:return y([...h,"cluster_nodes","cluster_max_redirections","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);case C.SENTINEL:return y([...h,"sentinel_master","sentinel_role","sentinel_nodes","sentinel_username","sentinel_password","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);default:throw new Error("Invalid Redis type")}});return(h,s)=>(e.openBlock(),e.createElementBlock("div",Ei,[e.createVNode(e.unref(f.EntityBaseConfigCard),{"code-block-record-formatter":b,config:t.config,"config-card-doc":t.configCardDoc,"config-schema":E.value,"entity-type":e.unref(f.SupportedEntityType).RedisConfiguration,"fetch-url":a.value,"hide-title":t.hideTitle,"record-resolver":c,"onFetch:error":s[0]||(s[0]=S=>h.$emit("fetch:error",S)),"onFetch:success":_,onLoading:s[1]||(s[1]=S=>h.$emit("loading",S))},{type:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(l.value),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),Si={useLinkedPlugins:Ht,useLinkedPluginsFetcher:we};V.DeleteWarningModal=qt,V.LinkedPlugins=Kt,V.PartialType=D,V.RedisConfigurationConfigCard=ki,V.RedisConfigurationForm=di,V.RedisConfigurationList=wi,V.RedisType=C,V.composables=Si,V.constants=vo,V.helpers=jo,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(V,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("@kong-ui-public/entities-shared/dist/style.css"),require("@kong-ui-public/entities-vaults/dist/style.css"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/entities-vaults"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-plugins-icon")):typeof define=="function"&&define.amd?define(["exports","vue","@kong-ui-public/entities-shared/dist/style.css","@kong-ui-public/entities-vaults/dist/style.css","@kong-ui-public/entities-shared","@kong-ui-public/entities-vaults","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-plugins-icon"],e):(V=typeof globalThis<"u"?globalThis:V||self,e(V["kong-ui-public-entities-redis-configurations"]={},V.Vue,null,null,V["kong-ui-public-entities-shared"],V["kong-ui-public-entities-vaults"],V.VueRouter,V.KongIcons,V["kong-ui-public-i18n"],V["kong-ui-public-entities-plugins-icon"]))})(this,function(V,e,xi,Ii,f,pe,Qe,ee,Xe,Ze){"use strict";var C=(t=>(t[t.HOST_PORT_CE=0]="HOST_PORT_CE",t[t.HOST_PORT_EE=1]="HOST_PORT_EE",t[t.SENTINEL=2]="SENTINEL",t[t.CLUSTER=3]="CLUSTER",t))(C||{}),D=(t=>(t.REDIS_CE="redis-ce",t.REDIS_EE="redis-ee",t))(D||{}),et=typeof global=="object"&&global&&global.Object===Object&&global,zt=typeof self=="object"&&self&&self.Object===Object&&self,H=et||zt||Function("return this")(),ie=H.Symbol,tt=Object.prototype,Wt=tt.hasOwnProperty,Gt=tt.toString,me=ie?ie.toStringTag:void 0;function Jt(t){var n=Wt.call(t,me),r=t[me];try{t[me]=void 0;var i=!0}catch{}var o=Gt.call(t);return i&&(n?t[me]=r:delete t[me]),o}var Yt=Object.prototype,Qt=Yt.toString;function Xt(t){return Qt.call(t)}var Zt="[object Null]",en="[object Undefined]",nt=ie?ie.toStringTag:void 0;function ge(t){return t==null?t===void 0?en:Zt:nt&&nt in Object(t)?Jt(t):Xt(t)}function _e(t){return t!=null&&typeof t=="object"}var Ee=Array.isArray;function rt(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}var tn="[object AsyncFunction]",nn="[object Function]",rn="[object GeneratorFunction]",on="[object Proxy]";function ot(t){if(!rt(t))return!1;var n=ge(t);return n==nn||n==rn||n==tn||n==on}var $e=H["__core-js_shared__"],it=function(){var t=/[^.]+$/.exec($e&&$e.keys&&$e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function an(t){return!!it&&it in t}var ln=Function.prototype,sn=ln.toString;function te(t){if(t!=null){try{return sn.call(t)}catch{}try{return t+""}catch{}}return""}var dn=/[\\^$.*+?()[\]{}|]/g,cn=/^\[object .+?Constructor\]$/,fn=Function.prototype,un=Object.prototype,pn=fn.toString,mn=un.hasOwnProperty,gn=RegExp("^"+pn.call(mn).replace(dn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _n(t){if(!rt(t)||an(t))return!1;var n=ot(t)?gn:cn;return n.test(te(t))}function yn(t,n){return t==null?void 0:t[n]}function ae(t,n){var r=yn(t,n);return _n(r)?r:void 0}var Be=ae(H,"WeakMap"),bn=9007199254740991,hn=/^(?:0|[1-9]\d*)$/;function Cn(t,n){var r=typeof t;return n=n??bn,!!n&&(r=="number"||r!="symbol"&&hn.test(t))&&t>-1&&t%1==0&&t<n}function at(t,n){return t===n||t!==t&&n!==n}var Tn=9007199254740991;function lt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Tn}function wn(t){return t!=null&<(t.length)&&!ot(t)}var En=Object.prototype;function kn(t){var n=t&&t.constructor,r=typeof n=="function"&&n.prototype||En;return t===r}function Sn(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}var Vn="[object Arguments]";function st(t){return _e(t)&&ge(t)==Vn}var dt=Object.prototype,xn=dt.hasOwnProperty,In=dt.propertyIsEnumerable,Rn=st(function(){return arguments}())?st:function(t){return _e(t)&&xn.call(t,"callee")&&!In.call(t,"callee")};function On(){return!1}var ct=typeof V=="object"&&V&&!V.nodeType&&V,ft=ct&&typeof module=="object"&&module&&!module.nodeType&&module,Nn=ft&&ft.exports===ct,ut=Nn?H.Buffer:void 0,Pn=ut?ut.isBuffer:void 0,De=Pn||On,An="[object Arguments]",$n="[object Array]",Bn="[object Boolean]",Dn="[object Date]",Ln="[object Error]",Mn="[object Function]",Un="[object Map]",vn="[object Number]",jn="[object Object]",Fn="[object RegExp]",Hn="[object Set]",Kn="[object String]",qn="[object WeakMap]",zn="[object ArrayBuffer]",Wn="[object DataView]",Gn="[object Float32Array]",Jn="[object Float64Array]",Yn="[object Int8Array]",Qn="[object Int16Array]",Xn="[object Int32Array]",Zn="[object Uint8Array]",er="[object Uint8ClampedArray]",tr="[object Uint16Array]",nr="[object Uint32Array]",I={};I[Gn]=I[Jn]=I[Yn]=I[Qn]=I[Xn]=I[Zn]=I[er]=I[tr]=I[nr]=!0,I[An]=I[$n]=I[zn]=I[Bn]=I[Wn]=I[Dn]=I[Ln]=I[Mn]=I[Un]=I[vn]=I[jn]=I[Fn]=I[Hn]=I[Kn]=I[qn]=!1;function rr(t){return _e(t)&<(t.length)&&!!I[ge(t)]}function or(t){return function(n){return t(n)}}var pt=typeof V=="object"&&V&&!V.nodeType&&V,ye=pt&&typeof module=="object"&&module&&!module.nodeType&&module,ir=ye&&ye.exports===pt,Le=ir&&et.process,mt=function(){try{var t=ye&&ye.require&&ye.require("util").types;return t||Le&&Le.binding&&Le.binding("util")}catch{}}(),gt=mt&&mt.isTypedArray,_t=gt?or(gt):rr,ar=Object.prototype,lr=ar.hasOwnProperty;function sr(t,n){var r=Ee(t),i=!r&&Rn(t),o=!r&&!i&&De(t),a=!r&&!i&&!o&&_t(t),m=r||i||o||a,_=m?Sn(t.length,String):[],l=_.length;for(var c in t)lr.call(t,c)&&!(m&&(c=="length"||o&&(c=="offset"||c=="parent")||a&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cn(c,l)))&&_.push(c);return _}function dr(t,n){return function(r){return t(n(r))}}var cr=dr(Object.keys,Object),fr=Object.prototype,ur=fr.hasOwnProperty;function pr(t){if(!kn(t))return cr(t);var n=[];for(var r in Object(t))ur.call(t,r)&&r!="constructor"&&n.push(r);return n}function mr(t){return wn(t)?sr(t):pr(t)}var be=ae(Object,"create");function gr(){this.__data__=be?be(null):{},this.size=0}function _r(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var yr="__lodash_hash_undefined__",br=Object.prototype,hr=br.hasOwnProperty;function Cr(t){var n=this.__data__;if(be){var r=n[t];return r===yr?void 0:r}return hr.call(n,t)?n[t]:void 0}var Tr=Object.prototype,wr=Tr.hasOwnProperty;function Er(t){var n=this.__data__;return be?n[t]!==void 0:wr.call(n,t)}var kr="__lodash_hash_undefined__";function Sr(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=be&&n===void 0?kr:n,this}function ne(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}ne.prototype.clear=gr,ne.prototype.delete=_r,ne.prototype.get=Cr,ne.prototype.has=Er,ne.prototype.set=Sr;function Vr(){this.__data__=[],this.size=0}function ke(t,n){for(var r=t.length;r--;)if(at(t[r][0],n))return r;return-1}var xr=Array.prototype,Ir=xr.splice;function Rr(t){var n=this.__data__,r=ke(n,t);if(r<0)return!1;var i=n.length-1;return r==i?n.pop():Ir.call(n,r,1),--this.size,!0}function Or(t){var n=this.__data__,r=ke(n,t);return r<0?void 0:n[r][1]}function Nr(t){return ke(this.__data__,t)>-1}function Pr(t,n){var r=this.__data__,i=ke(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}function K(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}K.prototype.clear=Vr,K.prototype.delete=Rr,K.prototype.get=Or,K.prototype.has=Nr,K.prototype.set=Pr;var he=ae(H,"Map");function Ar(){this.size=0,this.__data__={hash:new ne,map:new(he||K),string:new ne}}function $r(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Se(t,n){var r=t.__data__;return $r(n)?r[typeof n=="string"?"string":"hash"]:r.map}function Br(t){var n=Se(this,t).delete(t);return this.size-=n?1:0,n}function Dr(t){return Se(this,t).get(t)}function Lr(t){return Se(this,t).has(t)}function Mr(t,n){var r=Se(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this}function re(t){var n=-1,r=t==null?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}re.prototype.clear=Ar,re.prototype.delete=Br,re.prototype.get=Dr,re.prototype.has=Lr,re.prototype.set=Mr;function Ur(t,n){for(var r=-1,i=n.length,o=t.length;++r<i;)t[o+r]=n[r];return t}function vr(){this.__data__=new K,this.size=0}function jr(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}function Fr(t){return this.__data__.get(t)}function Hr(t){return this.__data__.has(t)}var Kr=200;function qr(t,n){var r=this.__data__;if(r instanceof K){var i=r.__data__;if(!he||i.length<Kr-1)return i.push([t,n]),this.size=++r.size,this;r=this.__data__=new re(i)}return r.set(t,n),this.size=r.size,this}function G(t){var n=this.__data__=new K(t);this.size=n.size}G.prototype.clear=vr,G.prototype.delete=jr,G.prototype.get=Fr,G.prototype.has=Hr,G.prototype.set=qr;function zr(t,n){for(var r=-1,i=t==null?0:t.length,o=0,a=[];++r<i;){var m=t[r];n(m,r,t)&&(a[o++]=m)}return a}function Wr(){return[]}var Gr=Object.prototype,Jr=Gr.propertyIsEnumerable,yt=Object.getOwnPropertySymbols,Yr=yt?function(t){return t==null?[]:(t=Object(t),zr(yt(t),function(n){return Jr.call(t,n)}))}:Wr;function Qr(t,n,r){var i=n(t);return Ee(t)?i:Ur(i,r(t))}function bt(t){return Qr(t,mr,Yr)}var Me=ae(H,"DataView"),Ue=ae(H,"Promise"),ve=ae(H,"Set"),ht="[object Map]",Xr="[object Object]",Ct="[object Promise]",Tt="[object Set]",wt="[object WeakMap]",Et="[object DataView]",Zr=te(Me),eo=te(he),to=te(Ue),no=te(ve),ro=te(Be),J=ge;(Me&&J(new Me(new ArrayBuffer(1)))!=Et||he&&J(new he)!=ht||Ue&&J(Ue.resolve())!=Ct||ve&&J(new ve)!=Tt||Be&&J(new Be)!=wt)&&(J=function(t){var n=ge(t),r=n==Xr?t.constructor:void 0,i=r?te(r):"";if(i)switch(i){case Zr:return Et;case eo:return ht;case to:return Ct;case no:return Tt;case ro:return wt}return n});var kt=H.Uint8Array,oo="__lodash_hash_undefined__";function io(t){return this.__data__.set(t,oo),this}function ao(t){return this.__data__.has(t)}function Ve(t){var n=-1,r=t==null?0:t.length;for(this.__data__=new re;++n<r;)this.add(t[n])}Ve.prototype.add=Ve.prototype.push=io,Ve.prototype.has=ao;function lo(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}function so(t,n){return t.has(n)}var co=1,fo=2;function St(t,n,r,i,o,a){var m=r&co,_=t.length,l=n.length;if(_!=l&&!(m&&l>_))return!1;var c=a.get(t),b=a.get(n);if(c&&b)return c==n&&b==t;var w=-1,y=!0,E=r&fo?new Ve:void 0;for(a.set(t,n),a.set(n,t);++w<_;){var h=t[w],s=n[w];if(i)var S=m?i(s,h,w,n,t,a):i(h,s,w,t,n,a);if(S!==void 0){if(S)continue;y=!1;break}if(E){if(!lo(n,function(O,p){if(!so(E,p)&&(h===O||o(h,O,r,i,a)))return E.push(p)})){y=!1;break}}else if(!(h===s||o(h,s,r,i,a))){y=!1;break}}return a.delete(t),a.delete(n),y}function uo(t){var n=-1,r=Array(t.size);return t.forEach(function(i,o){r[++n]=[o,i]}),r}function po(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}var mo=1,go=2,_o="[object Boolean]",yo="[object Date]",bo="[object Error]",ho="[object Map]",Co="[object Number]",To="[object RegExp]",wo="[object Set]",Eo="[object String]",ko="[object Symbol]",So="[object ArrayBuffer]",Vo="[object DataView]",Vt=ie?ie.prototype:void 0,je=Vt?Vt.valueOf:void 0;function xo(t,n,r,i,o,a,m){switch(r){case Vo:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case So:return!(t.byteLength!=n.byteLength||!a(new kt(t),new kt(n)));case _o:case yo:case Co:return at(+t,+n);case bo:return t.name==n.name&&t.message==n.message;case To:case Eo:return t==n+"";case ho:var _=uo;case wo:var l=i&mo;if(_||(_=po),t.size!=n.size&&!l)return!1;var c=m.get(t);if(c)return c==n;i|=go,m.set(t,n);var b=St(_(t),_(n),i,o,a,m);return m.delete(t),b;case ko:if(je)return je.call(t)==je.call(n)}return!1}var Io=1,Ro=Object.prototype,Oo=Ro.hasOwnProperty;function No(t,n,r,i,o,a){var m=r&Io,_=bt(t),l=_.length,c=bt(n),b=c.length;if(l!=b&&!m)return!1;for(var w=l;w--;){var y=_[w];if(!(m?y in n:Oo.call(n,y)))return!1}var E=a.get(t),h=a.get(n);if(E&&h)return E==n&&h==t;var s=!0;a.set(t,n),a.set(n,t);for(var S=m;++w<l;){y=_[w];var O=t[y],p=n[y];if(i)var u=m?i(p,O,y,n,t,a):i(O,p,y,t,n,a);if(!(u===void 0?O===p||o(O,p,r,i,a):u)){s=!1;break}S||(S=y=="constructor")}if(s&&!S){var B=t.constructor,N=n.constructor;B!=N&&"constructor"in t&&"constructor"in n&&!(typeof B=="function"&&B instanceof B&&typeof N=="function"&&N instanceof N)&&(s=!1)}return a.delete(t),a.delete(n),s}var Po=1,xt="[object Arguments]",It="[object Array]",xe="[object Object]",Ao=Object.prototype,Rt=Ao.hasOwnProperty;function $o(t,n,r,i,o,a){var m=Ee(t),_=Ee(n),l=m?It:J(t),c=_?It:J(n);l=l==xt?xe:l,c=c==xt?xe:c;var b=l==xe,w=c==xe,y=l==c;if(y&&De(t)){if(!De(n))return!1;m=!0,b=!1}if(y&&!b)return a||(a=new G),m||_t(t)?St(t,n,r,i,o,a):xo(t,n,l,r,i,o,a);if(!(r&Po)){var E=b&&Rt.call(t,"__wrapped__"),h=w&&Rt.call(n,"__wrapped__");if(E||h){var s=E?t.value():t,S=h?n.value():n;return a||(a=new G),o(s,S,r,i,a)}}return y?(a||(a=new G),No(t,n,r,i,o,a)):!1}function Ot(t,n,r,i,o){return t===n?!0:t==null||n==null||!_e(t)&&!_e(n)?t!==t&&n!==n:$o(t,n,r,i,Ot,o)}function Bo(t,n){return Ot(t,n)}const $=[];for(let t=0;t<256;++t)$.push((t+256).toString(16).slice(1));function Do(t,n=0){return($[t[n+0]]+$[t[n+1]]+$[t[n+2]]+$[t[n+3]]+"-"+$[t[n+4]]+$[t[n+5]]+"-"+$[t[n+6]]+$[t[n+7]]+"-"+$[t[n+8]]+$[t[n+9]]+"-"+$[t[n+10]]+$[t[n+11]]+$[t[n+12]]+$[t[n+13]]+$[t[n+14]]+$[t[n+15]]).toLowerCase()}let Fe;const Lo=new Uint8Array(16);function Mo(){if(!Fe){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Fe=crypto.getRandomValues.bind(crypto)}return Fe(Lo)}const Nt={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Uo(t,n,r){var o;if(Nt.randomUUID&&!t)return Nt.randomUUID();t=t||{};const i=t.random??((o=t.rng)==null?void 0:o.call(t))??Mo();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,Do(i)}const Pt={ip:"127.0.0.1",port:6379},At={host:"127.0.0.1",port:6379},le=C.HOST_PORT_EE,$t={port:6379,host:"127.0.0.1",database:0,username:"",password:"",ssl:!1,ssl_verify:!1,server_name:"",connect_timeout:2e3,send_timeout:2e3,read_timeout:2e3,sentinel_username:"",sentinel_password:"",keepalive_pool_size:256,keepalive_backlog:0,sentinel_master:"",sentinel_nodes:[],cluster_nodes:[],cluster_max_redirections:0,connection_is_proxied:!1,timeout:2e3},vo=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_CLUSTER_NODE:Pt,DEFAULT_FIELDS:$t,DEFAULT_REDIS_TYPE:le,DEFAULT_SENTINEL_NODE:At},Symbol.toStringTag,{value:"Module"})),Ce=t=>({...t,id:Uo()}),He=t=>{const{id:n,...r}=t;return r},Bt=()=>Ce(At),Dt=()=>Ce(Pt),Ie=t=>{var n,r;return t.type===D.REDIS_CE?C.HOST_PORT_CE:(n=t.config.sentinel_nodes)!=null&&n.length?C.SENTINEL:(r=t.config.cluster_nodes)!=null&&r.length?C.CLUSTER:C.HOST_PORT_EE},Re=t=>t===C.HOST_PORT_CE?D.REDIS_CE:D.REDIS_EE,T={int(t,n){return t==null?n:parseInt(t.toString(),10)},str(t,n){return t==null||t===""?n:t.toString()},removeIdClusterNodes(t){return t.map(n=>({...He(n),port:T.int(n.port)}))},removeIdFromSentinelNodes(t){return t.map(n=>({...He(n),port:T.int(n.port)}))},addIdToClusterNodes(t){return t.map(Ce)},addIdToSentinelNodes(t){return t.map(Ce)},removeNullValues(t){const n={...t};for(const r in n)n[r]===null&&delete n[r];return n},stringToArray(t,n=","){return t?t.split(n).map(r=>String(r||"").trim()).filter(r=>r!==""):[]},arrayToString(t,n=", "){return t?t.join(n):""}},jo=Object.freeze(Object.defineProperty({__proto__:null,genDefaultClusterNode:Dt,genDefaultSentinelNode:Bt,getRedisType:Ie,mapRedisTypeToPartialType:Re,shallowCopyWithId:Ce,shallowCopyWithoutId:He,standardize:T},Symbol.toStringTag,{value:"Module"})),Oe="/v2/control-planes/{controlPlaneId}/core-entities",Ne="/{workspace}",Te={list:{konnect:`${Oe}/partials`,kongManager:`${Ne}/partials`},form:{konnect:{create:`${Oe}/partials`,edit:`${Oe}/partials/{id}`},kongManager:{create:`${Ne}/partials`,edit:`${Ne}/partials/{id}`}},links:{konnect:`${Oe}/partials/{id}/links`,kongManager:`${Ne}/partials/{id}/links`}},Fo=t=>{const{partialId:n,config:r,defaultRedisType:i=le}=t,o=!!n,{axiosInstance:a}=f.useAxios(r.axiosRequestConfig),{getMessageFromError:m}=f.useErrors(),_=e.computed(()=>n?f.EntityBaseFormType.Edit:f.EntityBaseFormType.Create),l=e.reactive({fields:{name:"",tags:"",type:Re(i),config:JSON.parse(JSON.stringify($t))},readonly:!1,errorMessage:""}),c=e.ref(),b=e.ref(i),w=e.computed(()=>b.value===C.HOST_PORT_EE||b.value===C.CLUSTER||b.value===C.SENTINEL);e.watch(b,p=>{l.fields.type=Re(p)});const y=e.computed(()=>{var u;if(o&&Bo(c.value,E.value)||!l.fields.name.length)return!1;const{config:p}=l.fields;switch(b.value){case C.HOST_PORT_CE:case C.HOST_PORT_EE:return!!p.host&&p.host.length>0&&!!p.port&&p.port>0;case C.CLUSTER:return!!p.cluster_nodes.length&&p.cluster_nodes.every(B=>B.ip.length>0);case C.SENTINEL:return!!p.sentinel_nodes.length&&p.sentinel_nodes.every(B=>B.host.length>0)&&!!((u=p.sentinel_master)!=null&&u.length)&&p.sentinel_role&&!!p.sentinel_role.length;default:throw new Error("Invalid redis type")}}),E=e.computed(()=>{switch(b.value){case C.HOST_PORT_CE:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{host:l.fields.config.host,port:T.int(l.fields.config.port),timeout:T.int(l.fields.config.timeout),username:T.str(l.fields.config.username,null),database:T.int(l.fields.config.database),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null)}};case C.HOST_PORT_EE:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{connect_timeout:T.int(l.fields.config.connect_timeout),connection_is_proxied:l.fields.config.connection_is_proxied,database:T.int(l.fields.config.database),host:l.fields.config.host,keepalive_backlog:T.int(l.fields.config.keepalive_backlog),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),password:T.str(l.fields.config.password,null),port:T.int(l.fields.config.port),read_timeout:T.int(l.fields.config.read_timeout),send_timeout:T.int(l.fields.config.send_timeout),server_name:T.str(l.fields.config.server_name,null),ssl_verify:l.fields.config.ssl_verify,ssl:l.fields.config.ssl,username:T.str(l.fields.config.username,null),cluster_nodes:null,cluster_max_redirections:null,sentinel_master:null,sentinel_role:null,sentinel_nodes:null,sentinel_username:null,sentinel_password:null}};case C.CLUSTER:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{cluster_nodes:T.removeIdClusterNodes(l.fields.config.cluster_nodes),cluster_max_redirections:T.int(l.fields.config.cluster_max_redirections),username:T.str(l.fields.config.username,null),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null),connect_timeout:T.int(l.fields.config.connect_timeout),database:T.int(l.fields.config.database),send_timeout:T.int(l.fields.config.send_timeout),read_timeout:T.int(l.fields.config.read_timeout),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),keepalive_backlog:T.int(l.fields.config.keepalive_backlog),connection_is_proxied:null,sentinel_master:null,sentinel_role:null,sentinel_nodes:null,sentinel_username:null,sentinel_password:null,host:null,port:null}};case C.SENTINEL:return{name:l.fields.name,type:l.fields.type,tags:T.stringToArray(l.fields.tags),config:{sentinel_master:T.str(l.fields.config.sentinel_master,null),sentinel_nodes:T.removeIdFromSentinelNodes(l.fields.config.sentinel_nodes),sentinel_role:T.str(l.fields.config.sentinel_role,null),sentinel_username:T.str(l.fields.config.sentinel_username,null),sentinel_password:T.str(l.fields.config.sentinel_password,null),username:T.str(l.fields.config.username,null),password:T.str(l.fields.config.password,null),ssl:l.fields.config.ssl,ssl_verify:l.fields.config.ssl_verify,server_name:T.str(l.fields.config.server_name,null),database:T.int(l.fields.config.database),connect_timeout:T.int(l.fields.config.connect_timeout),send_timeout:T.int(l.fields.config.send_timeout),read_timeout:T.int(l.fields.config.read_timeout),keepalive_pool_size:T.int(l.fields.config.keepalive_pool_size),keepalive_backlog:T.int(l.fields.config.keepalive_backlog),connection_is_proxied:null,cluster_nodes:null,cluster_max_redirections:null,host:null,port:null}};default:throw new Error("Invalid redis type")}}),h=e.computed(()=>{let p=`${r.apiBaseUrl}${Te.form[r.app][_.value]}`;return r.app==="konnect"?p=p.replace(/{controlPlaneId}/gi,(r==null?void 0:r.controlPlaneId)||""):r.app==="kongManager"&&(p=p.replace(/\/{workspace}/gi,r!=null&&r.workspace?`/${r.workspace}`:"")),p=p.replace(/{id}/gi,n||""),p}),s=e.computed(()=>{var p;return(p=Te.form[r==null?void 0:r.app])==null?void 0:p.edit});return{form:l,canSubmit:y,payload:E,isEdit:o,redisType:b,redisTypeIsEnterprise:w,formType:_,fetchUrl:s,submit:async()=>{try{l.readonly=!0,l.errorMessage="";let p=E.value;return r.app==="konnect"&&(p={...p,config:T.removeNullValues(p.config)}),_.value===f.EntityBaseFormType.Create?await a.post(h.value,p):r.app==="konnect"?await a.put(h.value,p):await a.patch(h.value,p)}catch(p){throw l.errorMessage=m(p),l.readonly=!1,p}},setInitialFormValues:p=>{l.fields.config=Object.assign({},l.fields.config,T.removeNullValues(p.config)),l.fields.config.sentinel_nodes=T.addIdToSentinelNodes(p.config.sentinel_nodes??[]),l.fields.config.cluster_nodes=T.addIdToClusterNodes(p.config.cluster_nodes??[]),l.fields.name=p.name,l.fields.type=p.type,l.fields.tags=T.arrayToString(p.tags),b.value=Ie(p),c.value=JSON.parse(JSON.stringify(E.value))}}},Ho={class:"array-card-container"},Ko=e.defineComponent({__name:"FieldArrayCardContainer",props:{model:{type:Object,default:()=>null},schema:{type:Object,default:()=>null},index:{type:Number,default:void 0},disabled:{type:Boolean,default:!1}},emits:["remove-item"],setup(t){return(n,r)=>{const i=e.resolveComponent("KCard"),o=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",Ho,[e.createVNode(i,{class:"card"},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default",{},void 0,!0)]),_:3}),e.createVNode(o,{appearance:"tertiary",class:"array-card-remove-button",disabled:t.disabled,onClick:r[0]||(r[0]=a=>n.$emit("remove-item"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon))]),_:1},8,["disabled"])])}}}),q=(t,n)=>{const r=t.__vccOpts||t;for(const[i,o]of n)r[i]=o;return r},Lt=q(Ko,[["__scopeId","data-v-a0b2e4fb"]]),qo={actions:{create:"New Redis Configuration",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",done:"Done",view:"View Details",loading:"Loading...",view_plugin:"View Plugin",close:"Close"},search:{placeholder:"Filter by name",placeholder_for_exact_match:"Filter by exact ID",no_results:"No results found"},delete:{title:"Delete Redis configuration",description:"You’re about to delete this item. Are you sure you want to proceed?",warning:"To delete this configuration, first remove it from all associated plugins."},errors:{copy:"Failed to copy to clipboard",general:"Redis configuration could not be retrieved",delete:"The redis configuration could not be deleted at this time."},copy:{success:"Copied {val} to clipboard"},form:{sections:{type:{title:"Redis type",description:"Both Enterprise and Open Source plugins support Redis. Enterprise plugins can connect to a standalone Redis instance (host/port), Cluster, or Sentinel, while Open Source plugins support only a simplified host/port configuration."},general:{title:"General information",description:"Name your Redis configuration."},connection:{title:"Connection settings",description:"Define the Redis server’s host, port, authentication, and timeout options for establishing a connection."},cluster:{title:"Cluster configuration",description:"Enables data sharding and distribution across multiple Redis nodes, allowing for scalability and load balancing."},tls:{title:"TLS settings",description:"Configure secure connections to Redis, including SSL and verification options."},keepalive:{title:"Keepalive configuration",description:"Keepalive reuses active connections to Redis, improving performance and efficiency."},read_write_configuration:{title:"Read/Write configuration",description:"Set timeouts for reading from and writing to the Redis server to control data transmission reliability."},sentinel_configuration:{title:"Sentinel configuration",description:"Manages Redis failover and high availability by connecting to Sentinel nodes that monitor and switch masters."}},fields:{type:{label:"Redis type"},name:{label:"Name",placeholder:"Enter unique name"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3",tooltip:"An optional set of strings associated with the Route for grouping and filtering."},host:{label:"Host",tooltip:"A string representing a host name, such as example.com."},port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."},database:{label:"Database",tooltip:"Database to use for the Redis connection."},password:{label:"Password",tooltip:"Password to use for Redis connections. If undefined, no AUTH commands are sent to Redis."},username:{label:"Username",tooltip:"Username to use for Redis connections. If undefined, ACL authentication won't be performed. This requires Redis v6.0.0+. To be compatible with Redis v5.x.y, you can set it to `default`."},ssl:{label:"SSL",description:"If set to true, uses SSL to connect to Redis.",tooltip:"If set to true, uses SSL to connect to Redis."},ssl_verify:{label:"SSL Verify",description:"If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure lua_ssl_trusted_certificate in kong. conf to specify the CA (or server) certificate used by your Redis server. You may also need to configure lua_ss1_verify_depth accordingly.",tooltip:"If set to true, verifies the validity of the server SSL certificate. If setting this parameter, also configure lua_ssl_trusted_certificate in kong.conf to specify the CA (or server) certificate used by your Redis server. You may also need to configure lua_ssl_verify_depth accordingly."},server_name:{label:"Server name",tooltip:"A string representing an SNI (server name indication) value for TLS."},keepalive_backlog:{label:"Keepalive backlog",tooltip:"Limits the total number of opened connections for a pool. If the connection pool is full, connection queues above the limit go into the backlog queue. If the backlog queue is full, subsequent connect operations fail and return `nil`. Queued operations (subject to set timeouts) resume once the number of connections in the pool is less than `keepalive_pool_size`. If latency is high or throughput is low, try increasing this value. Empirically, this value is larger than `keepalive_pool_size`."},keepalive_pool_size:{label:"Keepalive pool size",tooltip:"The size limit for every cosocket connection pool associated with every remote server, per worker process. If neither `keepalive_pool_size` nor `keepalive_backlog` is specified, no pool is created. If `keepalive_pool_size` isn't specified but `keepalive_backlog` is specified, then the pool uses the default value. Try to increase (e.g. 512) this value if latency is high or throughput is low."},read_timeout:{label:"Read timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},send_timeout:{label:"Send timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},connect_timeout:{label:"Connect timeout",tooltip:"An integer representing a timeout in milliseconds. Must be between 0 and 2^31-2."},sentinel_master:{label:"Sentinel master",tooltip:"Sentinel master to use for Redis connections. Defining this value implies using Redis Sentinel."},sentinel_role:{label:"Sentinel role",tooltip:"Sentinel role to use for Redis connections when the `redis` strategy is defined. Defining this value implies using Redis Sentinel."},sentinel_username:{label:"Sentinel username",tooltip:"Sentinel username to authenticate with a Redis Sentinel instance. If undefined, ACL authentication won't be performed. This requires Redis v6.2.0+."},sentinel_password:{label:"Sentinel password",tooltip:"Sentinel password to authenticate with a Redis Sentinel instance. If undefined, no AUTH commands are sent to Redis Sentinels."},cluster_node_ip:{label:"IP",tooltip:"A string representing a host name, such as example.com."},cluster_node_port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."},cluster_max_redirections:{label:"Cluster max redirections",tooltip:"Maximum retry attempts for redirection."},timeout:{label:"Timeout",tooltip:"redis schema field `timeout` is deprecated, use `connect_timeout`, `send_timeout` and `read_timeout`"},connection_is_proxied:{label:"Connection is proxied",tooltip:"If the connection to Redis is proxied (e.g. Envoy), set it `true`. Set the `host` and `port` to point to the proxy address."},cluster_nodes:{title:"Cluster nodes",tooltip:"Cluster addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Cluster. The minimum length of the array is 1 element.",add_button:"New item"},sentinel_nodes:{title:"Sentinel nodes",tooltip:"Sentinel node addresses to use for Redis connections when the `redis` strategy is defined. Defining this field implies using a Redis Sentinel. The minimum length of the array is 1 element.",add_button:"New item"},sentinel_node_host:{label:"Host",tooltip:"A string representing a host name, such as example.com."},sentinel_node_port:{label:"Port",tooltip:"An integer representing a port number between 0 and 65535, inclusive."}},options:{type:{host_port:"Host/Port",cluster:"Cluster",sentinel:"Sentinel",open_source:"Open Source",enterprise:"Enterprise",suffix_open_source:" (Open Source)",suffix_enterprise:" (Enterprise)"},sentinel_role:{master:"master",slave:"slave",any:"any"}},edit_warning_modal:{title:"Edit Redis configuration",description:"This Redis configuration is connected to {pluginCount}. Any updates will take effect across all associated instances.",plugin_count:"{count} plugin(s)",confirm:"Confirm"}},linked_plugins_modal:{title:"Associated plugins ({count})",headers:{plugin:"Plugin",instance_name:"Name"}},redis:{title:"Redis Configurations",empty_state:{title:"Configure a Redis Configuration",description:"Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing."}},list:{action:"New configuration",table_headers:{name:"Name",type:"Type",plugins:"Plugins",tags:"Tags"},empty_state:{description:"Set up shared Redis configurations for your gateway plugins to store and retrieve data — like counters or other data — needed during request processing.",feature_1:{title:"Store your Redis configurations",description:"Define a Redis configuration once and use it across multiple plugins."},feature_2:{title:"Sync across plugins",description:"Edits to your configuration will be cascaded automatically to all associated plugins."}}}};function zo(){const t=Xe.createI18n("en-us",qo);return{i18n:t,i18nT:Xe.i18nTComponent(t)}}const Y={useI18n:zo},Wo={class:"cluster-node-items"},Go=q(e.defineComponent({__name:"ClusterNodes",props:e.mergeModels({readonly:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{i18n:{t:r}}=Y.useI18n(),i=()=>{n.value.push(Dt())},o=a=>{n.value.splice(a,1)};return(a,m)=>{const _=e.resolveComponent("KLabel"),l=e.resolveComponent("KInput"),c=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(_,{class:"required",info:e.unref(r)("form.fields.cluster_nodes.tooltip"),"tooltip-attributes":{maxWidth:"400"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("form.fields.cluster_nodes.title")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,w)=>(e.openBlock(),e.createBlock(Lt,{key:`${w}`,"data-testid":"redis-cluster-nodes",disabled:a.readonly,onRemoveItem:y=>o(w)},{default:e.withCtx(()=>[e.createElementVNode("div",Wo,[e.createVNode(l,{modelValue:b.ip,"onUpdate:modelValue":y=>b.ip=y,modelModifiers:{trim:!0},label:e.unref(r)("form.fields.cluster_node_ip.label"),"label-attributes":{info:e.unref(r)("form.fields.cluster_node_ip.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"ip",readonly:a.readonly,required:""},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"]),e.createVNode(l,{modelValue:b.port,"onUpdate:modelValue":y=>b.port=y,label:e.unref(r)("form.fields.cluster_node_port.label"),"label-attributes":{info:e.unref(r)("form.fields.cluster_node_port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",readonly:a.readonly,type:"number"},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"])])]),_:2},1032,["disabled","onRemoveItem"]))),128)),e.createVNode(c,{appearance:"tertiary","data-testid":"redis-add-cluster-node-button",disabled:a.readonly,onClick:i},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddCircleIcon)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("form.fields.cluster_nodes.add_button")),1)]),_:1},8,["disabled"])])])}}}),[["__scopeId","data-v-776a626d"]]),Jo={class:"sentinel-node-items"},Yo=q(e.defineComponent({__name:"SentinelNodes",props:e.mergeModels({readonly:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const n=e.useModel(t,"modelValue"),{i18n:{t:r}}=Y.useI18n(),i=()=>{n.value.push(Bt())},o=a=>{n.value.splice(a,1)};return(a,m)=>{const _=e.resolveComponent("KLabel"),l=e.resolveComponent("KInput"),c=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(_,{class:"required",info:e.unref(r)("form.fields.sentinel_nodes.tooltip"),"tooltip-attributes":{maxWidth:"400"}},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("form.fields.sentinel_nodes.title")),1)]),_:1},8,["info"]),e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(b,w)=>(e.openBlock(),e.createBlock(Lt,{key:b.id,"data-testid":"redis-sentinel-nodes",disabled:a.readonly,onRemoveItem:y=>o(w)},{default:e.withCtx(()=>[e.createElementVNode("div",Jo,[e.createVNode(l,{modelValue:b.host,"onUpdate:modelValue":y=>b.host=y,modelModifiers:{trim:!0},label:e.unref(r)("form.fields.sentinel_node_host.label"),"label-attributes":{info:e.unref(r)("form.fields.sentinel_node_host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",readonly:a.readonly,required:""},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"]),e.createVNode(l,{modelValue:b.port,"onUpdate:modelValue":y=>b.port=y,label:e.unref(r)("form.fields.sentinel_node_port.label"),"label-attributes":{info:e.unref(r)("form.fields.sentinel_node_port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",readonly:a.readonly,type:"number"},null,8,["modelValue","onUpdate:modelValue","label","label-attributes","readonly"])])]),_:2},1032,["disabled","onRemoveItem"]))),128)),e.createVNode(c,{appearance:"tertiary","data-testid":"redis-add-sentinel-node-button",disabled:a.readonly,onClick:i},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddCircleIcon)),e.createElementVNode("span",null,e.toDisplayString(e.unref(r)("form.fields.sentinel_nodes.add_button")),1)]),_:1},8,["disabled"])])])}}}),[["__scopeId","data-v-cd1c07e2"]]);var Ke=new WeakMap,Mt=0;function Qo(t){if(!t.length)return"";for(var n="arg",r=0;r<t.length;++r){var i=void 0;t[r]===null||typeof t[r]!="object"&&typeof t[r]!="function"?typeof t[r]=="string"?i='"'+t[r]+'"':i=String(t[r]):Ke.has(t[r])?i=Ke.get(t[r]):(i=Mt,Ke.set(t[r],Mt++)),n+="@"+i}return n}function Xo(t){if(typeof t=="function")try{t=t()}catch{t=""}return Array.isArray(t)?t=Qo(t):t=String(t||""),t}var qe=function(){function t(n){n===void 0&&(n=0),this.items=new Map,this.ttl=n}return t.prototype.serializeKey=function(n){return Xo(n)},t.prototype.get=function(n){var r=this.serializeKey(n);return this.items.get(r)},t.prototype.set=function(n,r,i){var o=this.serializeKey(n),a=i||this.ttl,m=Date.now(),_={data:r,createdAt:m,expiresAt:a?m+a:1/0};this.dispatchExpire(a,_,o),this.items.set(o,_)},t.prototype.dispatchExpire=function(n,r,i){var o=this;n&&setTimeout(function(){var a=Date.now(),m=a>=r.expiresAt;m&&o.delete(i)},n)},t.prototype.delete=function(n){this.items.delete(n)},t}();function Zo(){return typeof navigator.onLine<"u"?navigator.onLine:!0}function ei(){return typeof document<"u"&&typeof document.visibilityState<"u"?document.visibilityState!=="hidden":!0}var ti=function(t){return fetch(t).then(function(n){return n.json()})};const ze={isOnline:Zo,isDocumentVisible:ei,fetcher:ti};var z=function(){return z=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},z.apply(this,arguments)},se=function(t,n,r,i){function o(a){return a instanceof r?a:new r(function(m){m(a)})}return new(r||(r=Promise))(function(a,m){function _(b){try{c(i.next(b))}catch(w){m(w)}}function l(b){try{c(i.throw(b))}catch(w){m(w)}}function c(b){b.done?a(b.value):o(b.value).then(_,l)}c((i=i.apply(t,n||[])).next())})},de=function(t,n){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,o,a,m;return m={next:_(0),throw:_(1),return:_(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function _(c){return function(b){return l([c,b])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,o&&(a=c[0]&2?o.return:c[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,c[1])).done)return a;switch(o=0,a&&(c=[c[0]&2,a.value]),c[0]){case 0:case 1:a=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!a||c[1]>a[0]&&c[1]<a[3])){r.label=c[1];break}if(c[0]===6&&r.label<a[1]){r.label=a[1],a=c;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(c);break}a[2]&&r.ops.pop(),r.trys.pop();continue}c=n.call(t,r)}catch(b){c=[6,b],o=0}finally{i=a=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},ni=function(t,n){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,a=[],m;try{for(;(n===void 0||n-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(_){m={error:_}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(m)throw m.error}}return a},ri=function(t,n,r){if(r||arguments.length===2)for(var i=0,o=n.length,a;i<o;i++)(a||!(i in n))&&(a||(a=Array.prototype.slice.call(n,0,i)),a[i]=n[i]);return t.concat(a||Array.prototype.slice.call(n))},Ut=new qe,Pe=new qe,We=new qe,vt={cache:Ut,refreshInterval:0,ttl:0,serverTTL:1e3,dedupingInterval:2e3,revalidateOnFocus:!0,revalidateDebounce:0,shouldRetryOnError:!0,errorRetryInterval:5e3,errorRetryCount:5,fetcher:ze.fetcher,isOnline:ze.isOnline,isDocumentVisible:ze.isDocumentVisible};function oi(t,n,r){var i=Pe.get(t);if(i)i.data.push(n);else{var o=5e3;Pe.set(t,[n],r>0?r+o:r)}}function ii(t,n,r){if(r.isDocumentVisible()&&!(r.errorRetryCount!==void 0&&n>r.errorRetryCount)){var i=Math.min(n||0,r.errorRetryCount),o=i*r.errorRetryInterval;setTimeout(function(){t(null,{errorRetryCount:i+1,shouldRetryOnError:!0})},o)}}var jt=function(t,n,r,i){return r===void 0&&(r=Ut),i===void 0&&(i=vt.ttl),se(void 0,void 0,void 0,function(){var o,a,m,_,l,c,b;return de(this,function(w){switch(w.label){case 0:if(!li(n))return[3,5];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,n];case 2:return o=w.sent(),[3,4];case 3:return _=w.sent(),a=_,[3,4];case 4:return[3,6];case 5:o=n,w.label=6;case 6:if(m=!1,l={data:o,error:a,isValidating:m},typeof o<"u")try{r.set(t,l,i)}catch(y){console.error("swrv(mutate): failed to set cache",y)}return c=Pe.get(t),c&&c.data.length&&(b=c.data.filter(function(y){return y.key===t}),b.forEach(function(y,E){typeof l.data<"u"&&(y.data=l.data),y.error=l.error,y.isValidating=l.isValidating,y.isLoading=l.isValidating;var h=E===b.length-1;h||delete b[E]}),b=b.filter(Boolean)),[2,l]}})})};function ai(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i,o,a=z({},vt),m=!1,_=!1,l=e.getCurrentInstance(),c=(l==null?void 0:l.proxy)||l;if(!c)return console.error("Could not get current instance, check to make sure that `useSwrv` is declared in the top level of the setup function."),null;var b=(c==null?void 0:c.$isServer)||!1;n.length>=1&&(i=n[0]),n.length>=2&&(o=n[1]),n.length>2&&(a=z(z({},a),n[2]));var w=b?a.serverTTL:a.ttl,y=typeof i=="function"?i:e.ref(i);typeof o>"u"&&(o=a.fetcher);var E=null;E||(E=e.reactive({data:void 0,error:void 0,isValidating:!0,isLoading:!0,key:null}));var h=function(p,u){return se(t,void 0,void 0,function(){var B,N,L,j,Q,M,W,F=this;return de(this,function(X){switch(X.label){case 0:return B=E.data===void 0,N=y.value,N?(L=a.cache.get(N),j=L&&L.data,E.isValidating=!0,E.isLoading=!j,j&&(E.data=j.data,E.error=j.error),Q=p||o,!Q||!a.isDocumentVisible()&&!B||(u==null?void 0:u.forceRevalidate)!==void 0&&!(u!=null&&u.forceRevalidate)?(E.isValidating=!1,E.isLoading=!1,[2]):L&&(M=!!(Date.now()-L.createdAt>=a.dedupingInterval||u!=null&&u.forceRevalidate),!M)?(E.isValidating=!1,E.isLoading=!1,[2]):(W=function(){return se(F,void 0,void 0,function(){var U,ce,oe,fe;return de(this,function(Z){switch(Z.label){case 0:return U=We.get(N),U?[3,2]:(ce=Array.isArray(N)?N:[N],oe=Q.apply(void 0,ri([],ni(ce),!1)),We.set(N,oe,a.dedupingInterval),[4,jt(N,oe,a.cache,w)]);case 1:return Z.sent(),[3,4];case 2:return[4,jt(N,U.data,a.cache,w)];case 3:Z.sent(),Z.label=4;case 4:return E.isValidating=!1,E.isLoading=!1,We.delete(N),E.error!==void 0&&(fe=!m&&a.shouldRetryOnError&&(u?u.shouldRetryOnError:!0),fe&&ii(h,u?u.errorRetryCount:1,a)),[2]}})})},j&&a.revalidateDebounce?(setTimeout(function(){return se(F,void 0,void 0,function(){return de(this,function(U){switch(U.label){case 0:return m?[3,2]:[4,W()];case 1:U.sent(),U.label=2;case 2:return[2]}})})},a.revalidateDebounce),[3,3]):[3,1])):[2];case 1:return[4,W()];case 2:X.sent(),X.label=3;case 3:return[2]}})})},s=function(){return se(t,void 0,void 0,function(){return de(this,function(p){return[2,h(null,{shouldRetryOnError:!1})]})})},S=null;e.onMounted(function(){var p=function(){return se(t,void 0,void 0,function(){return de(this,function(u){switch(u.label){case 0:return!E.error&&a.isOnline()?[4,h()]:[3,2];case 1:return u.sent(),[3,3];case 2:S&&clearTimeout(S),u.label=3;case 3:return a.refreshInterval&&!m&&(S=setTimeout(p,a.refreshInterval)),[2]}})})};a.refreshInterval&&(S=setTimeout(p,a.refreshInterval)),a.revalidateOnFocus&&(document.addEventListener("visibilitychange",s,!1),window.addEventListener("focus",s,!1))}),e.onUnmounted(function(){m=!0,S&&clearTimeout(S),a.revalidateOnFocus&&(document.removeEventListener("visibilitychange",s,!1),window.removeEventListener("focus",s,!1));var p=Pe.get(y.value);p&&(p.data=p.data.filter(function(u){return u!==E}))});try{e.watch(y,function(p){e.isReadonly(y)||(y.value=p),E.key=p,E.isValidating=!!p,oi(y.value,E,w),!b&&!_&&y.value&&h(),_=!1},{immediate:!0})}catch{}var O=z(z({},e.toRefs(E)),{mutate:function(p,u){return h(p,z(z({},u),{forceRevalidate:!0}))}});return O}function li(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}function Ft(t){return`redis-partial-links-${t}`}const we=t=>{const{axiosInstance:n}=f.useAxios(t.axiosRequestConfig);return{fetcher:async r=>{const{partialId:i,size:o,offset:a,query:m}=r;let _=`${t.apiBaseUrl}${Te.links[t.app]}`;t.app==="konnect"?_=_.replace(/{controlPlaneId}/gi,(t==null?void 0:t.controlPlaneId)||""):t.app==="kongManager"&&(_=_.replace(/\/{workspace}/gi,t!=null&&t.workspace?`/${t.workspace}`:"")),_=_.replace(/{id}/gi,i||""),m&&(_=`${_}?${m}`);const{data:l}=await n.get(_,{params:{size:o,offset:a}});return l}}},Ht=t=>{const{partialId:n,config:r}=t,{fetcher:i}=we(r),o=e.ref([]),{data:a}=ai(Ft(n),()=>i({partialId:n}),{revalidateOnFocus:!1});return e.watch(a,()=>{var m;o.value=((m=a.value)==null?void 0:m.data)??[]}),o},si={class:"kong-ui-entities-redis-configurations-form"},di=q(e.defineComponent({__name:"RedisConfigurationForm",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||(t==null?void 0:t.app)==="konnect"&&!(t!=null&&t.controlPlaneId)||(t==null?void 0:t.app)==="kongManager"&&typeof(t==null?void 0:t.workspace)!="string")},partialId:{type:String,required:!1,default:""},actionTeleportTarget:{type:String,default:null},slidoutTopOffset:{type:Number,default:60},disabledPartialType:{type:String,default:""}},emits:["update","error","loading","cancel"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o},i18nT:a}=Y.useI18n(),m=Qe.useRouter(),_=e.ref(),l=e.ref(),c=(P,g)=>{_.value=P??"",l.value=g},b=P=>{var g;(g=l.value)==null||g.call(l,P),_.value=!1},w=e.computed(()=>[{label:o("form.options.type.host_port"),group:o("form.options.type.enterprise"),value:C.HOST_PORT_EE,selected:u.value===C.HOST_PORT_EE,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.cluster"),group:o("form.options.type.enterprise"),value:C.CLUSTER,selected:u.value===C.CLUSTER,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.sentinel"),group:o("form.options.type.enterprise"),value:C.SENTINEL,selected:u.value===C.SENTINEL,disabled:!p&&r.disabledPartialType===D.REDIS_EE},{label:o("form.options.type.host_port"),group:o("form.options.type.open_source"),value:C.HOST_PORT_CE,selected:u.value===C.HOST_PORT_CE,disabled:p&&B.value||!p&&r.disabledPartialType===D.REDIS_CE}]),y=[{label:o("form.options.sentinel_role.master"),value:"master"},{label:o("form.options.sentinel_role.slave"),value:"slave"},{label:o("form.options.sentinel_role.any"),value:"any"}],E=P=>{const g=P.value===C.HOST_PORT_CE?o("form.options.type.suffix_open_source"):o("form.options.type.suffix_enterprise");return`${P.label}${g}`},h=()=>r.disabledPartialType&&Re(le)===r.disabledPartialType?r.disabledPartialType===D.REDIS_CE?C.HOST_PORT_EE:C.HOST_PORT_CE:le,{form:s,canSubmit:S,payload:O,isEdit:p,redisType:u,redisTypeIsEnterprise:B,fetchUrl:N,submit:L,setInitialFormValues:j}=Fo({partialId:r.partialId,defaultRedisType:h(),config:r.config}),{fetcher:Q}=we(r.config),M=e.ref(!1),W=e.ref(!1),F=e.ref(0),X=async()=>{try{if(p&&!W.value){const{count:g}=await Q({partialId:r.partialId});if(F.value=g,g>0){M.value=!0;return}}const{data:P}=await L();i("update",P)}catch(P){i("error",P)}},U=()=>{M.value=!1,W.value=!0,X()},ce=()=>{r.config.cancelRoute&&m.push(r.config.cancelRoute),i("cancel")},oe=P=>{i("loading",P)},fe=P=>{i("error",P)},Z=P=>{j(P)};return e.onBeforeMount(async()=>{if(p){const{count:P}=await Q({partialId:r.partialId});F.value=P}}),(P,g)=>{const Je=e.resolveComponent("KAlert"),Ae=e.resolveComponent("KSelect"),A=e.resolveComponent("KInput"),ue=e.resolveComponent("KCheckbox"),k=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",si,[e.createVNode(e.unref(f.EntityBaseForm),{"action-teleport-target":t.actionTeleportTarget,"can-submit":e.unref(S),config:t.config,"edit-id":t.partialId,"entity-type":e.unref(f.SupportedEntityType).RedisConfiguration,"error-message":e.unref(s).errorMessage,"fetch-url":e.unref(N),"form-fields":e.unref(O),"is-readonly":e.unref(s).readonly,"slidout-top-offset":t.slidoutTopOffset,onCancel:ce,"onFetch:error":fe,"onFetch:success":Z,onLoading:oe,onSubmit:X},{default:e.withCtx(()=>[F.value>0&&e.unref(p)?(e.openBlock(),e.createBlock(Je,{key:0,appearance:"warning",class:"warning-alert","data-testid":"redis-update-warning-alert"},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:"form.edit_warning_modal.description",tag:"div"},{pluginCount:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(o)("form.edit_warning_modal.plugin_count",{count:F.value})),1)]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-type-section",description:e.unref(o)("form.sections.type.description"),title:e.unref(o)("form.sections.type.title")},{default:e.withCtx(()=>[e.createVNode(Ae,{modelValue:e.unref(u),"onUpdate:modelValue":g[0]||(g[0]=d=>e.isRef(u)?u.value=d:null),"data-testid":"redis-type-select",disabled:e.unref(p)&&e.unref(u)===e.unref(C).HOST_PORT_CE,items:w.value,"kpop-attributes":{"data-testid":"redis-type-select-popover"},label:e.unref(o)("form.fields.type.label"),readonly:e.unref(s).readonly,required:""},{"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString(E(d)),1)]),_:1},8,["modelValue","disabled","items","label","readonly"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-general-section",description:e.unref(o)("form.sections.general.description"),title:e.unref(o)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.name,"onUpdate:modelValue":g[1]||(g[1]=d=>e.unref(s).fields.name=d),modelModifiers:{trim:!0},"data-testid":"redis-name-input",disabled:e.unref(p),label:e.unref(o)("form.fields.name.label"),placeholder:e.unref(o)("form.fields.name.placeholder"),readonly:e.unref(s).readonly,required:""},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.tags,"onUpdate:modelValue":g[2]||(g[2]=d=>e.unref(s).fields.tags=d),modelModifiers:{trim:!0},"data-testid":"redis-tags-input",help:e.unref(o)("form.fields.tags.help"),label:e.unref(o)("form.fields.tags.label"),"label-attributes":{info:e.unref(o)("form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(o)("form.fields.tags.placeholder"),readonly:e.unref(s).readonly},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","title"]),e.unref(u)===e.unref(C).SENTINEL?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:1,"data-testid":"redis-sentinel-configuration-section",description:e.unref(o)("form.sections.sentinel_configuration.description"),title:e.unref(o)("form.sections.sentinel_configuration.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_master,"onUpdate:modelValue":g[3]||(g[3]=d=>e.unref(s).fields.config.sentinel_master=d),"data-testid":"redis-sentinel-master-input",label:e.unref(o)("form.fields.sentinel_master.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_master.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Ae,{modelValue:e.unref(s).fields.config.sentinel_role,"onUpdate:modelValue":g[4]||(g[4]=d=>e.unref(s).fields.config.sentinel_role=d),"data-testid":"redis-sentinel-role-select",items:y,"kpop-attributes":{"data-testid":"redis-sentinel-role-select-popover"},label:e.unref(o)("form.fields.sentinel_role.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(Yo,{modelValue:e.unref(s).fields.config.sentinel_nodes,"onUpdate:modelValue":g[5]||(g[5]=d=>e.unref(s).fields.config.sentinel_nodes=d),readonly:e.unref(s).readonly},null,8,["modelValue","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_username,"onUpdate:modelValue":g[6]||(g[6]=d=>e.unref(s).fields.config.sentinel_username=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.sentinel_username.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_username.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.sentinel_username=d,value:e.unref(s).fields.config.sentinel_username,onOpen:g[7]||(g[7]=(d,x)=>c(d,x))},null,8,["disabled","update","value"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.sentinel_password,"onUpdate:modelValue":g[8]||(g[8]=d=>e.unref(s).fields.config.sentinel_password=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.sentinel_password.label"),"label-attributes":{info:e.unref(o)("form.fields.sentinel_password.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.sentinel_password=d,value:e.unref(s).fields.config.sentinel_password,onOpen:g[9]||(g[9]=(d,x)=>c(d,x))},null,8,["disabled","update","value"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).CLUSTER?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:2,"data-testid":"redis-cluster-configuration-section",description:e.unref(o)("form.sections.cluster.description"),title:e.unref(o)("form.sections.cluster.title")},{default:e.withCtx(()=>[e.createVNode(Go,{modelValue:e.unref(s).fields.config.cluster_nodes,"onUpdate:modelValue":g[10]||(g[10]=d=>e.unref(s).fields.config.cluster_nodes=d),readonly:e.unref(s).readonly},null,8,["modelValue","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.cluster_max_redirections,"onUpdate:modelValue":g[11]||(g[11]=d=>e.unref(s).fields.config.cluster_max_redirections=d),"data-testid":"redis-cluster-max-redirections-input",label:e.unref(o)("form.fields.cluster_max_redirections.label"),"label-attributes":{info:e.unref(o)("form.fields.cluster_max_redirections.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-connection-configuration-section",description:e.unref(o)("form.sections.connection.description"),title:e.unref(o)("form.sections.connection.title")},{default:e.withCtx(()=>[e.unref(u)===e.unref(C).HOST_PORT_CE||e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(A,{key:0,modelValue:e.unref(s).fields.config.host,"onUpdate:modelValue":g[12]||(g[12]=d=>e.unref(s).fields.config.host=d),modelModifiers:{trim:!0},"data-testid":"redis-host-input",label:e.unref(o)("form.fields.host.label"),"label-attributes":{info:e.unref(o)("form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_CE||e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(A,{key:1,modelValue:e.unref(s).fields.config.port,"onUpdate:modelValue":g[13]||(g[13]=d=>e.unref(s).fields.config.port=d),modelModifiers:{trim:!0},"data-testid":"redis-port-input",label:e.unref(o)("form.fields.port.label"),"label-attributes":{info:e.unref(o)("form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_EE?(e.openBlock(),e.createBlock(ue,{key:2,modelValue:e.unref(s).fields.config.connection_is_proxied,"onUpdate:modelValue":g[14]||(g[14]=d=>e.unref(s).fields.config.connection_is_proxied=d),"data-testid":"redis-connection-is-proxied-checkbox",disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.connection_is_proxied.label"),"label-attributes":{info:e.unref(o)("form.fields.connection_is_proxied.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","disabled","label","label-attributes"])):e.createCommentVNode("",!0),e.unref(u)===e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(A,{key:3,modelValue:e.unref(s).fields.config.timeout,"onUpdate:modelValue":g[15]||(g[15]=d=>e.unref(s).fields.config.timeout=d),modelModifiers:{trim:!0},"data-testid":"redis-timeout-input",label:e.unref(o)("form.fields.timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(A,{modelValue:e.unref(s).fields.config.database,"onUpdate:modelValue":g[16]||(g[16]=d=>e.unref(s).fields.config.database=d),modelModifiers:{trim:!0},"data-testid":"redis-database-input",label:e.unref(o)("form.fields.database.label"),"label-attributes":{info:e.unref(o)("form.fields.database.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.username,"onUpdate:modelValue":g[17]||(g[17]=d=>e.unref(s).fields.config.username=d),modelModifiers:{trim:!0},"data-testid":"redis-username-input",label:e.unref(o)("form.fields.username.label"),"label-attributes":{info:e.unref(o)("form.fields.username.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.username=d,value:e.unref(s).fields.config.username,onOpen:g[18]||(g[18]=(d,x)=>c(d,x))},null,8,["disabled","update","value"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.password,"onUpdate:modelValue":g[19]||(g[19]=d=>e.unref(s).fields.config.password=d),modelModifiers:{trim:!0},"data-testid":"redis-password-input",label:e.unref(o)("form.fields.password.label"),"label-attributes":{info:e.unref(o)("form.fields.password.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(e.unref(pe.VaultSecretPickerProvider),{class:"secret-picker-provider",disabled:e.unref(s).readonly,update:d=>e.unref(s).fields.config.password=d,value:e.unref(s).fields.config.password,onOpen:g[20]||(g[20]=(d,x)=>c(d,x))},null,8,["disabled","update","value"])]),_:1},8,["description","title"]),e.createVNode(e.unref(f.EntityFormSection),{"data-testid":"redis-tls-configuration-section",description:e.unref(o)("form.sections.tls.description"),title:e.unref(o)("form.sections.tls.title")},{default:e.withCtx(()=>[e.createVNode(ue,{modelValue:e.unref(s).fields.config.ssl,"onUpdate:modelValue":g[21]||(g[21]=d=>e.unref(s).fields.config.ssl=d),"data-testid":"redis-ssl-checkbox",description:e.unref(o)("form.fields.ssl.description"),disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.ssl.label"),"label-attributes":{info:e.unref(o)("form.fields.ssl.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","description","disabled","label","label-attributes"]),e.createVNode(ue,{modelValue:e.unref(s).fields.config.ssl_verify,"onUpdate:modelValue":g[22]||(g[22]=d=>e.unref(s).fields.config.ssl_verify=d),"data-testid":"redis-ssl-verify-checkbox",description:e.unref(o)("form.fields.ssl_verify.description"),disabled:e.unref(s).readonly,label:e.unref(o)("form.fields.ssl_verify.label"),"label-attributes":{info:e.unref(o)("form.fields.ssl_verify.tooltip"),tooltipAttributes:{maxWidth:"400"}}},null,8,["modelValue","description","disabled","label","label-attributes"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.server_name,"onUpdate:modelValue":g[23]||(g[23]=d=>e.unref(s).fields.config.server_name=d),modelModifiers:{trim:!0},label:e.unref(o)("form.fields.server_name.label"),"label-attributes":{info:e.unref(o)("form.fields.server_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"]),e.unref(u)!==e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:3,"data-testid":"redis-keepalive-section",description:e.unref(o)("form.sections.keepalive.description"),title:e.unref(o)("form.sections.keepalive.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.keepalive_backlog,"onUpdate:modelValue":g[24]||(g[24]=d=>e.unref(s).fields.config.keepalive_backlog=d),"data-testid":"redis-keepalive-backlog-input",label:e.unref(o)("form.fields.keepalive_backlog.label"),"label-attributes":{info:e.unref(o)("form.fields.keepalive_backlog.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.keepalive_pool_size,"onUpdate:modelValue":g[25]||(g[25]=d=>e.unref(s).fields.config.keepalive_pool_size=d),"data-testid":"redis-keepalive-pool-size-input",label:e.unref(o)("form.fields.keepalive_pool_size.label"),"label-attributes":{info:e.unref(o)("form.fields.keepalive_pool_size.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0),e.unref(u)!==e.unref(C).HOST_PORT_CE?(e.openBlock(),e.createBlock(e.unref(f.EntityFormSection),{key:4,"data-testid":"redis-read-write-configuration-section",description:e.unref(o)("form.sections.read_write_configuration.description"),title:e.unref(o)("form.sections.read_write_configuration.title")},{default:e.withCtx(()=>[e.createVNode(A,{modelValue:e.unref(s).fields.config.read_timeout,"onUpdate:modelValue":g[26]||(g[26]=d=>e.unref(s).fields.config.read_timeout=d),"data-testid":"redis-read-timeout-input",label:e.unref(o)("form.fields.read_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.send_timeout,"onUpdate:modelValue":g[27]||(g[27]=d=>e.unref(s).fields.config.send_timeout=d),"data-testid":"redis-send-timeout-input",label:e.unref(o)("form.fields.send_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.send_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(A,{modelValue:e.unref(s).fields.config.connect_timeout,"onUpdate:modelValue":g[28]||(g[28]=d=>e.unref(s).fields.config.connect_timeout=d),"data-testid":"redis-connect-timeout-input",label:e.unref(o)("form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(o)("form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:e.unref(s).readonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),_:1},8,["description","title"])):e.createCommentVNode("",!0)]),_:1},8,["action-teleport-target","can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly","slidout-top-offset"])]),e.createVNode(e.unref(pe.VaultSecretPicker),{config:r.config,setup:_.value,onCancel:g[29]||(g[29]=()=>_.value=!1),onProceed:b},null,8,["config","setup"]),e.createVNode(k,{"action-button-text":e.unref(o)("form.edit_warning_modal.confirm"),"data-testid":"redis-update-warning-modal","hide-cancel-button":"","max-width":"640",title:e.unref(o)("form.edit_warning_modal.title"),visible:M.value,onCancel:g[30]||(g[30]=d=>M.value=!1),onProceed:U},{default:e.withCtx(()=>[e.createVNode(e.unref(a),{keypath:"form.edit_warning_modal.description",tag:"div"},{pluginCount:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(o)("form.edit_warning_modal.plugin_count",{count:F.value})),1)]),_:1})]),_:1},8,["action-button-text","title","visible"])],64)}}}),[["__scopeId","data-v-dc0b9178"]]),ci="#00abd2",fi="24px",ui={class:"linked-plugins","data-testid":"linked-plugins-inline"},Ge=7,pi=q(e.defineComponent({__name:"LinkedPluginsInline",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},partialId:{type:String,required:!0}},setup(t){const n=t,r=Ht({config:n.config,partialId:n.partialId});return(i,o)=>{const a=e.resolveComponent("KBadge");return e.openBlock(),e.createElementBlock("div",ui,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).slice(0,Ge),m=>(e.openBlock(),e.createBlock(e.unref(Ze.PluginIcon),{key:m.id,name:m.name,size:24},null,8,["name"]))),128)),e.unref(r).length-Ge>0?(e.openBlock(),e.createBlock(a,{key:0,appearance:"info"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(e.unref(r).length-Ge),1)]),_:1})):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c39556bc"]]),mi={class:"plugin-item"},gi=q(e.defineComponent({__name:"PluginItem",props:{pluginName:{}},setup(t){return(n,r)=>(e.openBlock(),e.createElementBlock("div",mi,[e.createVNode(e.unref(Ze.PluginIcon),{name:n.pluginName,size:24},null,8,["name"]),e.createElementVNode("span",null,e.toDisplayString(n.pluginName),1)]))}}),[["__scopeId","data-v-de964dc4"]]),_i={class:"toolbar-container"},Kt=q(e.defineComponent({__name:"LinkedPluginList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},isExactMatch:{type:Boolean,default:!1},filterBarEnabled:{type:Boolean,default:!1},partialId:{type:String,required:!0}},emits:["view-plugin","load"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o}}=Y.useI18n(),a=[{key:"name",label:o("linked_plugins_modal.headers.plugin")},{key:"instance_name",label:o("linked_plugins_modal.headers.instance_name")},{key:"actions",hideLabel:!0}],{fetcher:m}=we(r.config),_=e.ref(0),l=async y=>{const{data:E,count:h}=await m({partialId:r.partialId,size:y.pageSize,offset:y.offset,query:y.query});_.value=h;const s={total:h,data:E};return i("load",s),s},c=e.ref(""),b=e.computed(()=>r.config.app==="konnect"||r.isExactMatch?{isExactMatch:!0}:{isExactMatch:!1,fields:{name:{searchable:!0}},schema:{name:{type:"text"}}}),w=y=>{i("view-plugin",{id:y.id,plugin:y.name})};return(y,E)=>{const h=e.resolveComponent("KDropdownItem"),s=e.resolveComponent("KTableData");return e.openBlock(),e.createBlock(s,{"cache-identifier":e.unref(Ft)(t.partialId),fetcher:l,headers:a,"hide-pagination-when-optional":"","pagination-attributes":{totalCount:_.value,disablePageJump:!0},"search-input":c.value},e.createSlots({name:e.withCtx(({rowValue:S})=>[e.createVNode(gi,{"plugin-name":S},null,8,["plugin-name"])]),"action-items":e.withCtx(({row:S})=>[e.createVNode(h,{onClick:O=>w(S)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(o)("actions.view_plugin")),1)]),_:2},1032,["onClick"])]),_:2},[t.filterBarEnabled?{name:"toolbar",fn:e.withCtx(()=>[e.createElementVNode("div",_i,[e.createVNode(e.unref(f.EntityFilter),{modelValue:c.value,"onUpdate:modelValue":E[0]||(E[0]=S=>c.value=S),config:b.value},null,8,["modelValue","config"])])]),key:"0"}:void 0]),1032,["cache-identifier","pagination-attributes","search-input"])}}}),[["__scopeId","data-v-50856d03"]]),yi={class:"linked-plugins-modal","data-testid":"linked-plugins-modal"},bi=q(e.defineComponent({__name:"LinkedPluginListModal",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string")},redisConfigurationId:{type:String,required:!0},visible:{type:Boolean,required:!0,default:!1}},emits:["cancel","proceed","view-plugin"],setup(t,{emit:n}){const r=n,{i18n:{t:i}}=Y.useI18n(),o=e.ref(0),a=e.computed(()=>i("linked_plugins_modal.title",{count:o.value})),m=()=>{r("cancel")},_=()=>{r("proceed")};return(l,c)=>{const b=e.resolveComponent("KModal");return e.openBlock(),e.createElementBlock("div",yi,[e.createVNode(b,{"action-button-text":e.unref(i)("actions.done"),"hide-cancel-button":"",title:a.value,visible:t.visible,onCancel:m,onProceed:_},{default:e.withCtx(()=>[e.createVNode(Kt,{config:t.config,"partial-id":t.redisConfigurationId,onLoad:c[0]||(c[0]=({total:w})=>o.value=w),onViewPlugin:c[1]||(c[1]=w=>r("view-plugin",w))},null,8,["config","partial-id"])]),_:1},8,["action-button-text","title","visible"])])}}}),[["__scopeId","data-v-6148b8bd"]]),qt=e.defineComponent({__name:"DeleteWarningModal",props:{visible:{type:Boolean,required:!0}},emits:["close"],setup(t,{emit:n}){const{i18n:{t:r}}=Y.useI18n(),i=n,o=()=>{i("close")};return(a,m)=>{const _=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(_,{"action-button-text":e.unref(r)("actions.close"),"data-testid":"remove-links-modal","hide-cancel-button":"","max-width":"640",title:e.unref(r)("delete.title"),visible:t.visible,onCancel:o,onProceed:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("delete.warning")),1)]),_:1},8,["action-button-text","title","visible"])}}}),hi={class:"kong-ui-entities-partials-list"},Ci={class:"empty-state-icon-gateway"},Ti=1e3,wi=q(e.defineComponent({__name:"RedisConfigurationList",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||!t.createRoute||!t.getViewRoute||!t.getEditRoute)},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}},emits:["click:learn-more","click:plugin","copy:error","copy:success","delete:success","error"],setup(t,{emit:n}){var ue;const r=n,i=t,o=e.computed(()=>{var d,x;let k=`${i.config.apiBaseUrl}${Te.list[i.config.app]}`;return i.config.app==="konnect"?k=k.replace(/{controlPlaneId}/gi,((d=i.config)==null?void 0:d.controlPlaneId)||""):i.config.app==="kongManager"&&(k=k.replace(/\/{workspace}/gi,(x=i.config)!=null&&x.workspace?`/${i.config.workspace}`:"")),k}),a=e.ref(!1),m=e.ref(""),_=e.ref(null),l=e.ref(void 0),c=e.ref(!1),b=e.ref(!1),w=e.ref(""),y=e.ref(!1),E=f.useDeleteUrlBuilder(i.config,o.value),h=e.ref(1),s=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),{fetcher:S,fetcherState:O}=f.useFetcher(i.config,o);async function p(k){const d=await S({...k,pageSize:Ti});return d.data=d.data.filter(x=>x.type===D.REDIS_CE||x.type===D.REDIS_EE),d}const{i18n:{t:u}}=Y.useI18n(),{axiosInstance:B}=f.useAxios((ue=i.config)==null?void 0:ue.axiosRequestConfig),N=Qe.useRouter(),L=e.ref(""),j=e.computed(()=>{const k=i.config.app==="konnect"||i.config.isExactMatch;if(k)return{isExactMatch:!0,placeholder:u("search.placeholder_for_exact_match")};const{name:d}=W;return{isExactMatch:k,fields:{name:d},schema:i.config.filterSchema}}),{fetcher:Q}=we(i.config),M=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${u("redis.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:u("redis.title")}),W={name:{label:u("list.table_headers.name"),searchable:!0,hidable:!1,sortable:!0},type:{label:u("list.table_headers.type")},tags:{label:u("list.table_headers.tags")},plugins:{label:u("list.table_headers.plugins")}},F=k=>({label:u("actions.view"),to:i.config.getViewRoute(k)}),X=k=>({label:u("actions.edit"),to:i.config.getEditRoute(k)}),U=async k=>{const{count:d}=await Q({partialId:k.id});d>0?y.value=!0:(l.value=k,c.value=!0)},ce=()=>{L.value=""},oe=async k=>{var x;await((x=i.canRetrieve)==null?void 0:x.call(i,k))&&N.push(i.config.getViewRoute(k.id))},fe=()=>{c.value=!1},Z=k=>{m.value=k,a.value=!0},P=async()=>{var k,d,x;if((k=l.value)!=null&&k.id){b.value=!0;try{await B.delete(E(l.value.id)),b.value=!1,c.value=!1,g(),r("delete:success",l.value)}catch(v){w.value=((x=(d=v.response)==null?void 0:d.data)==null?void 0:x.message)||v.message||u("errors.delete"),r("error",v)}finally{b.value=!1}}},g=()=>{h.value++},Je=k=>{switch(Ie(k)){case C.HOST_PORT_CE:return`${u("form.options.type.host_port")}${u("form.options.type.suffix_open_source")}`;case C.HOST_PORT_EE:return`${u("form.options.type.host_port")}${u("form.options.type.suffix_enterprise")}`;case C.SENTINEL:return`${u("form.options.type.sentinel")}${u("form.options.type.suffix_enterprise")}`;case C.CLUSTER:return`${u("form.options.type.cluster")}${u("form.options.type.suffix_enterprise")}`}},Ae=()=>{N.push(i.config.createRoute)},A=async(k,d)=>{const x=k.id;if(!await d(x)){r("copy:error",{entity:k,field:"id",message:u("errors.copy")});return}r("copy:success",{entity:k,field:"id",message:u("copy.success",{val:x})})};return e.watch(O,k=>{var d,x,v;if(k.status===f.FetcherStatus.Error){_.value={title:u("errors.general")},(v=(x=(d=k.error)==null?void 0:d.response)==null?void 0:x.data)!=null&&v.message&&(_.value.message=k.error.response.data.message),r("error",k.error);return}_.value=null}),e.watch(i.canCreate,async k=>{await k?M.value.ctaText=u("actions.create"):M.value.ctaText=void 0},{immediate:!0}),(k,d)=>{const x=e.resolveComponent("KButton"),v=e.resolveComponent("KDropdownItem"),Vi=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",hi,[e.createVNode(e.unref(f.EntityBaseTable),{"cache-identifier":t.cacheIdentifier,"disable-sorting":s.value,"empty-state-options":M.value,"enable-entity-actions":"","error-message":_.value,fetcher:p,"fetcher-cache-key":h.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-redis-configuration-list",query:L.value,"table-headers":W,onClearSearchInput:ce,"onClick:row":d[2]||(d[2]=R=>oe(R)),onSort:g},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(f.EntityFilter),{modelValue:L.value,"onUpdate:modelValue":d[0]||(d[0]=R=>L.value=R),config:j.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!t.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":t.canCreate},{default:e.withCtx(()=>[e.createVNode(x,{appearance:"primary","data-testid":"toolbar-add-redis-configuration",size:"large",to:t.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("actions.create")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:R})=>[e.createElementVNode("b",null,e.toDisplayString(R??"-"),1)]),type:e.withCtx(({row:R})=>[e.createTextVNode(e.toDisplayString(Je(R)),1)]),tags:e.withCtx(({rowValue:R})=>[e.createVNode(e.unref(f.TableTags),{tags:R},null,8,["tags"])]),plugins:e.withCtx(({row:R})=>[e.createVNode(pi,{config:t.config,"partial-id":R.id,onClick:e.withModifiers(Ye=>Z(R.id),["stop"])},null,8,["config","partial-id","onClick"])]),actions:e.withCtx(({row:R})=>[e.createVNode(Vi,null,{default:e.withCtx(({copyToClipboard:Ye})=>[e.createVNode(v,{"data-testid":"action-entity-copy-id",onClick:zi=>A(R,Ye)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canRetrieve(R)},{default:e.withCtx(()=>[e.createVNode(v,{"data-testid":"action-entity-view","has-divider":"",item:F(R.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canEdit(R)},{default:e.withCtx(()=>[e.createVNode(v,{"data-testid":"action-entity-edit",item:X(R.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(f.PermissionsWrapper),{"auth-function":()=>t.canDelete(R)},{default:e.withCtx(()=>[e.createVNode(v,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:Ye=>U(R)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),"empty-state":e.withCtx(()=>[e.createVNode(e.unref(f.EntityEmptyState),{"action-button-text":e.unref(u)("list.action"),appearance:"secondary","can-create":()=>t.canCreate(),"data-testid":"redis-entity-empty-state",description:e.unref(u)("list.empty_state.description"),features:[{title:e.unref(u)("list.empty_state.feature_1.title"),description:e.unref(u)("list.empty_state.feature_1.description")},{title:e.unref(u)("list.empty_state.feature_2.title"),description:e.unref(u)("list.empty_state.feature_2.description")}],title:e.unref(u)("redis.title"),"onClick:create":Ae,"onClick:learnMore":d[1]||(d[1]=()=>r("click:learn-more"))},{image:e.withCtx(()=>[e.createElementVNode("div",Ci,[e.createVNode(e.unref(ee.DeployIcon),{color:e.unref(ci),size:e.unref(fi)},null,8,["color","size"])])]),"feature-0-icon":e.withCtx(()=>[e.createVNode(e.unref(ee.ClipboardIcon))]),"feature-1-icon":e.withCtx(()=>[e.createVNode(e.unref(ee.RefreshIcon))]),_:1},8,["action-button-text","can-create","description","features","title"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher-cache-key","query"]),e.createVNode(qt,{visible:y.value,onClose:d[3]||(d[3]=R=>y.value=!1)},null,8,["visible"]),e.createVNode(e.unref(f.EntityDeleteModal),{"action-pending":b.value,description:e.unref(u)("delete.description"),"entity-name":l.value&&(l.value.name||l.value.id),"entity-type":e.unref(f.EntityTypes).RedisConfiguration,error:w.value,"need-confirmation":!0,title:e.unref(u)("delete.title"),visible:c.value,onCancel:fe,onProceed:P},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"]),e.createVNode(bi,{config:t.config,"redis-configuration-id":m.value,visible:a.value,onCancel:d[4]||(d[4]=R=>a.value=!1),onProceed:d[5]||(d[5]=R=>a.value=!1),onViewPlugin:d[6]||(d[6]=R=>r("click:plugin",R))},null,8,["config","redis-configuration-id","visible"])])}}}),[["__scopeId","data-v-970009ba"]]),Ei={class:"kong-ui-consumer-group-entity-config-card"},ki=e.defineComponent({__name:"RedisConfigurationConfigCard",props:{config:{type:Object,required:!0,validator:t=>!(!t||!["konnect","kongManager"].includes(t==null?void 0:t.app)||t.app==="konnect"&&!t.controlPlaneId||t.app==="kongManager"&&typeof t.workspace!="string"||!t.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!0}},emits:["loading","fetch:error","fetch:success"],setup(t,{emit:n}){const r=t,i=n,{i18n:{t:o}}=Y.useI18n(),a=e.computed(()=>Te.form[r.config.app].edit),m=e.ref(le),_=h=>{m.value=Ie(h),i("fetch:success",h)},l=e.computed(()=>{const h=m.value===C.HOST_PORT_CE?o("form.options.type.suffix_open_source"):o("form.options.type.suffix_enterprise");let s="";switch(m.value){case C.HOST_PORT_CE:s=o("form.options.type.host_port");break;case C.HOST_PORT_EE:s=o("form.options.type.host_port");break;case C.CLUSTER:s=o("form.options.type.cluster");break;case C.SENTINEL:s=o("form.options.type.sentinel");break}return`${s}${h}`}),c=h=>({id:h.id,name:h.name,tags:h.tags,created_at:h.created_at,updated_at:h.updated_at,type:h.type,...h.config}),b=h=>{const{id:s,name:S,created_at:O,updated_at:p,type:u,tags:B,...N}=h;return{id:s,name:S,tags:B,created_at:O,updated_at:p,type:u,config:N}},w={id:{},name:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.name.label")},tags:{type:f.ConfigurationSchemaType.BadgeTag,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.tags.label"),tooltip:o("form.fields.tags.tooltip")},updated_at:{},created_at:{},type:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.type.label")},cluster_max_redirections:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,tooltip:o("form.fields.cluster_max_redirections.tooltip"),label:o("form.fields.cluster_max_redirections.label")},cluster_nodes:{type:f.ConfigurationSchemaType.JsonArray,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.cluster_nodes.title"),tooltip:o("form.fields.cluster_nodes.tooltip")},connect_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.connect_timeout.label"),tooltip:o("form.fields.connect_timeout.tooltip")},connection_is_proxied:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.connection_is_proxied.label"),tooltip:o("form.fields.connection_is_proxied.tooltip")},database:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.database.label"),tooltip:o("form.fields.database.tooltip")},host:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.host.label"),tooltip:o("form.fields.host.tooltip")},keepalive_backlog:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.keepalive_backlog.label"),tooltip:o("form.fields.keepalive_backlog.tooltip")},keepalive_pool_size:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.keepalive_pool_size.label"),tooltip:o("form.fields.keepalive_pool_size.tooltip")},password:{type:f.ConfigurationSchemaType.Redacted,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.password.label"),tooltip:o("form.fields.password.tooltip")},port:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.port.label"),tooltip:o("form.fields.port.tooltip")},read_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.read_timeout.label"),tooltip:o("form.fields.read_timeout.tooltip")},send_timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.send_timeout.label"),tooltip:o("form.fields.send_timeout.tooltip")},sentinel_master:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_master.label"),tooltip:o("form.fields.sentinel_master.tooltip")},sentinel_nodes:{type:f.ConfigurationSchemaType.JsonArray,section:f.ConfigurationSchemaSection.Basic,tooltip:o("form.fields.sentinel_nodes.tooltip")},sentinel_password:{type:f.ConfigurationSchemaType.Redacted,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_password.label"),tooltip:o("form.fields.sentinel_password.tooltip")},sentinel_role:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_role.label"),tooltip:o("form.fields.sentinel_role.tooltip")},sentinel_username:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.sentinel_username.label"),tooltip:o("form.fields.sentinel_username.tooltip")},server_name:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.server_name.label"),tooltip:o("form.fields.server_name.tooltip")},ssl_verify:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.ssl_verify.label"),tooltip:o("form.fields.ssl_verify.tooltip")},ssl:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.ssl.label"),tooltip:o("form.fields.ssl.tooltip")},timeout:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.timeout.label"),tooltip:o("form.fields.timeout.tooltip")},username:{type:f.ConfigurationSchemaType.Text,section:f.ConfigurationSchemaSection.Basic,label:o("form.fields.username.label"),tooltip:o("form.fields.username.tooltip")}},y=h=>{const s={},S=Object.keys(w);for(const O of S)h.includes(O)?s[O]={...w[O],order:h.indexOf(O)+1}:s[O]={...w[O],hidden:!0};return s},E=e.computed(()=>{const h=["id","name","tags","type","updated_at","created_at"];switch(m.value){case C.HOST_PORT_CE:return y([...h,"host","port","timeout","database","username","password","ssl","ssl_verify","server_name"]);case C.HOST_PORT_EE:return y([...h,"host","port","connection_is_proxied","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);case C.CLUSTER:return y([...h,"cluster_nodes","cluster_max_redirections","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);case C.SENTINEL:return y([...h,"sentinel_master","sentinel_role","sentinel_nodes","sentinel_username","sentinel_password","database","username","password","ssl","ssl_verify","server_name","keepalive_backlog","keepalive_pool_size","read_timeout","send_timeout","connect_timeout"]);default:throw new Error("Invalid Redis type")}});return(h,s)=>(e.openBlock(),e.createElementBlock("div",Ei,[e.createVNode(e.unref(f.EntityBaseConfigCard),{"code-block-record-formatter":b,config:t.config,"config-card-doc":t.configCardDoc,"config-schema":E.value,"entity-type":e.unref(f.SupportedEntityType).RedisConfiguration,"fetch-url":a.value,"hide-title":t.hideTitle,"record-resolver":c,"onFetch:error":s[0]||(s[0]=S=>h.$emit("fetch:error",S)),"onFetch:success":_,onLoading:s[1]||(s[1]=S=>h.$emit("loading",S))},{type:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(l.value),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),Si={useLinkedPlugins:Ht,useLinkedPluginsFetcher:we};V.DeleteWarningModal=qt,V.LinkedPlugins=Kt,V.PartialType=D,V.RedisConfigurationConfigCard=ki,V.RedisConfigurationForm=di,V.RedisConfigurationList=wi,V.RedisType=C,V.composables=Si,V.constants=vo,V.helpers=jo,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.array-card-container-wrapper{width:100%}.array-card-container[data-v-a0b2e4fb]{align-items:center;display:flex}.array-card-container .card[data-v-a0b2e4fb]{margin-bottom:8px}.array-card-container .array-card-remove-button[data-v-a0b2e4fb]{margin-left:12px}.cluster-node-items[data-v-776a626d],.sentinel-node-items[data-v-cd1c07e2]{display:flex;flex-direction:column;gap:24px}.warning-alert[data-v-
|
|
1
|
+
.array-card-container-wrapper{width:100%}.array-card-container[data-v-a0b2e4fb]{align-items:center;display:flex}.array-card-container .card[data-v-a0b2e4fb]{margin-bottom:8px}.array-card-container .array-card-remove-button[data-v-a0b2e4fb]{margin-left:12px}.cluster-node-items[data-v-776a626d],.sentinel-node-items[data-v-cd1c07e2]{display:flex;flex-direction:column;gap:24px}.warning-alert[data-v-dc0b9178]{margin-bottom:32px}.kong-ui-entities-redis-configurations-form[data-v-dc0b9178]{width:100%}.secret-picker-provider[data-v-dc0b9178]{margin-top:8px!important}.linked-plugins[data-v-c39556bc]{display:flex;gap:8px}.plugin-item[data-v-de964dc4]{align-items:center;display:flex;gap:8px}.toolbar-container[data-v-50856d03]{align-items:center;display:flex;width:100%}.linked-plugins-modal[data-v-6148b8bd] .k-table-view{background-color:transparent}.linked-plugins-modal[data-v-6148b8bd] .modal-container{min-width:640px}@media (max-width: 640px){.linked-plugins-modal[data-v-6148b8bd] .modal-container{min-width:100%}}.kong-ui-entities-partials-list[data-v-970009ba]{width:100%}
|
|
@@ -21,6 +21,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
21
21
|
*/
|
|
22
22
|
actionTeleportTarget: {
|
|
23
23
|
type: StringConstructor;
|
|
24
|
+
default: null;
|
|
24
25
|
};
|
|
25
26
|
/**
|
|
26
27
|
* Top offset for the slideout
|
|
@@ -58,6 +59,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
58
59
|
*/
|
|
59
60
|
actionTeleportTarget: {
|
|
60
61
|
type: StringConstructor;
|
|
62
|
+
default: null;
|
|
61
63
|
};
|
|
62
64
|
/**
|
|
63
65
|
* Top offset for the slideout
|
|
@@ -80,6 +82,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
82
|
onCancel?: (() => any) | undefined;
|
|
81
83
|
}>, {
|
|
82
84
|
partialId: string;
|
|
85
|
+
actionTeleportTarget: string;
|
|
83
86
|
slidoutTopOffset: number;
|
|
84
87
|
disabledPartialType: PartialType;
|
|
85
88
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RedisConfigurationForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RedisConfigurationForm.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RedisConfigurationForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RedisConfigurationForm.vue"],"names":[],"mappings":"AA8pBA,OAAO,gDAAgD,CAAA;AACvD,OAAO,gDAAgD,CAAA;AAMvD,OAAO,EAAa,WAAW,EAAE,MAAM,UAAU,CAAA;AASjD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,KAAK,EACV,uCAAuC,EACvC,mCAAmC,EACnC,0BAA0B,EAC3B,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;;;cA++CnB,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC;;IAOnG,4FAA4F;;;;;;IAM5F;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;cAjCrB,QAAQ,CAAC,mCAAmC,GAAG,uCAAuC,CAAC;;4BAEnF,mCAAmC,GAAG,uCAAuC;;IAOnG,4FAA4F;;;;;;IAM5F;;OAEG;;;;;IAKH;;OAEG;;;;;IAKH;;OAEG;;cAEe,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;;AAvCzC,wBA2CG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AACxJ,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,KAAG,YAAY,CAAC,CAAC,CAErF,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,KAAG,IAAI,CAAC,CAAC,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/helpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,qBAAqB,EAAE,KAAK,wBAAwB,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAA;AACxJ,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,KAAG,YAAY,CAAC,CAAC,CAErF,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,EAAE,MAAM,CAAC,KAAG,IAAI,CAAC,CAAC,EAAE,IAAI,CAIpF,CAAA;AAED,eAAO,MAAM,sBAAsB,4CAAiD,CAAA;AAEpF,eAAO,MAAM,qBAAqB,2CAAgD,CAAA;AAElF,eAAO,MAAM,YAAY,GAAI,QAAQ,wBAAwB,GAAG,qBAAqB,KAAG,SAcvF,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,MAAM,SAAS,KAAG,WAE3D,CAAA;AAED,eAAO,MAAM,WAAW;QAClB,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,iBAAiB,CAAC,GAAG,MAAM,GAAG,CAAC;QAO3E,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,IAAI,iBAAiB,CAAC,GAAG,MAAM,GAAG,CAAC;gCAOnD,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,GAAG,WAAW,EAAE;qCAO3C,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC,GAAG,YAAY,EAAE;+BAOxD,WAAW,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;gCAI/C,YAAY,EAAE,GAAG,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;qBAI7D,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;yBAUlB,MAAM,GAAG,IAAI,GAAG,SAAS,uBAAoB,MAAM,EAAE;yBAKrD,MAAM,EAAE,GAAG,IAAI,GAAG,SAAS,uBAAqB,MAAM;CAI5E,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-redis-configurations",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-redis-configurations.umd.js",
|
|
6
6
|
"module": "./dist/entities-redis-configurations.es.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"vue": "^3.5.13",
|
|
30
30
|
"vue-router": "^4.4.5",
|
|
31
31
|
"@kong-ui-public/entities-plugins-icon": "^1.2.0",
|
|
32
|
-
"@kong-ui-public/entities-
|
|
33
|
-
"@kong-ui-public/entities-
|
|
34
|
-
"@kong-ui-public/i18n": "^2.4.
|
|
32
|
+
"@kong-ui-public/entities-vaults": "^3.23.5",
|
|
33
|
+
"@kong-ui-public/entities-shared": "^3.27.4",
|
|
34
|
+
"@kong-ui-public/i18n": "^2.4.2"
|
|
35
35
|
},
|
|
36
36
|
"repository": {
|
|
37
37
|
"type": "git",
|
|
@@ -56,10 +56,10 @@
|
|
|
56
56
|
"axios": "^1.11.0",
|
|
57
57
|
"vue": "^3.5.13",
|
|
58
58
|
"vue-router": "^4.4.5",
|
|
59
|
-
"@kong-ui-public/entities-shared": "^3.27.3",
|
|
60
|
-
"@kong-ui-public/entities-vaults": "^3.23.4",
|
|
61
59
|
"@kong-ui-public/entities-plugins-icon": "^1.2.0",
|
|
62
|
-
"@kong-ui-public/
|
|
60
|
+
"@kong-ui-public/entities-shared": "^3.27.4",
|
|
61
|
+
"@kong-ui-public/i18n": "^2.4.2",
|
|
62
|
+
"@kong-ui-public/entities-vaults": "^3.23.5"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"uuid": "^11.1.0"
|