redis数据集插件。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
30 KiB

/*! time: 2019-9-4 13:44:09 */!function(e){var t={};function o(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=0)}([function(e,t,o){e.exports=o(1)},function(e,t,o){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function r(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function u(e,t,o){return t&&a(e.prototype,t),o&&a(e,o),e}function c(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?f(e):t}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(){return function(e){BI.shortcut(e.xtype,e)}}o.r(t);var b,m,d,h=function(e){function t(){var e,o;i(this,t);for(var n=arguments.length,a=new Array(n),u=0;u<n;u++)a[u]=arguments[u];return r(f(o=c(this,(e=p(t)).call.apply(e,[this].concat(a)))),"model",void 0),r(f(o),"store",void 0),r(f(o),"context",void 0),r(f(o),"actions",void 0),r(f(o),"childContext",void 0),r(f(o),"TYPE",void 0),r(f(o),"computed",void 0),o}return l(t,Fix.Model),u(t,[{key:"state",value:function(){return{}}}]),t}(),g="bi.label",x="bi.text_editor",P="bi.multi_select_item",v="bi.vertical";function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e){return function(e){if(Array.isArray(e)){for(var t=0,o=new Array(e.length);t<e.length;t++)o[t]=e[t];return o}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function w(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var S,C,E,R=y()((d=m=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=j(t)).call.apply(e,[this].concat(a)))||"object"!==O(r)&&"function"!=typeof r?B(n):r,T(B(o),"props",{name:"",forms:"",nameWidth:100}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){return{type:"bi.left",items:[{type:g,cls:"bi-font-bold",width:this.options.nameWidth,textAlign:"left",text:"".concat(this.options.name,":")}].concat(_(this.options.forms))}}}])&&w(o.prototype,n),r&&w(o,r),t}(),T(m,"xtype","dec.dcm.connection.plugin.redis.components.form_item"),b=d))||b,k={maxTotal:10,maxWait:-1,maxIdle:10,blockWhenExhausted:!0,lifo:!0,timeout:1e5},D={open:!1,host:"",port:22,username:"",password:"",privateKeyPath:""},W={host:"",port:"6379",password:"",newCharsetName:""},A=[{text:BI.i18nText("BI-Basic_Auto"),value:""},{text:"GBK",value:"GBK"},{text:"BIG5",value:"BIG5"},{text:"ISO-8859-1",value:"ISO-8859-1"},{text:"UTF-8",value:"UTF-8"},{text:"UTF-16",value:"UTF-16"},{text:"EUC_JP",value:"EUC_JP"},{text:"EUC_KR",value:"EUC_KR"},{text:"CP850",value:"CP850"}];function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function M(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(o,!0).forEach(function(t){G(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function N(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function F(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var H,J,Y,q=y()((E=C=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=K(t)).call.apply(e,[this].concat(a)))||"object"!==V(r)&&"function"!=typeof r?F(n):r,G(F(o),"props",{poolConfig:M({},k)}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=this.options.poolConfig,t=e.maxTotal,o=e.maxWait,n=e.maxIdle,r=e.blockWhenExhausted,i=e.lifo,a=e.timeout;return{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Total"),forms:[{type:g,text:t}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Wait"),forms:[{type:g,text:o}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Idle"),forms:[{type:g,text:n}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Block_When_Exhausted"),forms:[{type:P,selected:r}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Lifo"),forms:[{type:P,selected:i}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Timeout"),forms:[{type:g,text:a}]}]}}}])&&N(o.prototype,n),r&&N(o,r),t}(),G(C,"xtype","dec.dcm.connection.plugin.redis.components.pool"),S=E))||S;function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function X(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Q(o,!0).forEach(function(t){oe(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Q(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Z(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ee(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function te(e,t){return(te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ne,re,ie,ae=y()((Y=J=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=$(t)).call.apply(e,[this].concat(a)))||"object"!==z(r)&&"function"!=typeof r?ee(n):r,oe(ee(o),"props",{proxyConfig:X({},D)}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=this.options.proxyConfig,t=e.open,o=e.host,n=e.port,r=e.username,i=e.password,a=e.privateKeyPath;return{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Open"),forms:[{type:"bi.center_adapt",items:[{type:P,width:30,selected:t},{type:g,text:BI.i18nText("Plugin-Redis_Proxy_Description")}]}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Host"),forms:[{type:g,text:o}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Port"),forms:[{type:g,text:n}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Username"),forms:[{type:g,text:r}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Password"),forms:[{type:g,text:i}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Private_Key_Path"),forms:[{type:g,text:a}]}]}}}])&&Z(o.prototype,n),r&&Z(o,r),t}(),oe(J,"xtype","dec.dcm.connection.plugin.redis.components.proxy"),H=Y))||H;function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ce(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function fe(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?ce(o,!0).forEach(function(t){be(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):ce(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function pe(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e,t){return(ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var me,de,he,ge=y()((ie=re=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=le(t)).call.apply(e,[this].concat(a)))||"object"!==ue(r)&&"function"!=typeof r?se(n):r,be(se(o),"props",{formData:{basicConfig:fe({},W),poolConfig:fe({},k),proxyConfig:fe({},D)}}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ye(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=BI.get(this.options,"formData"),t=BI.get(e,"basicConfig",W),o=BI.get(e,"poolConfig",k),n=BI.get(e,"proxyConfig",D),r=t.host,i=t.port,a=t.newCharsetName;return{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Host"),forms:[{type:g,text:r}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Port"),forms:[{type:g,text:i}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Password"),forms:[{type:g,text:"*****"}]},{type:"bi.left",hgap:20,items:[{type:"bi.text_button",cls:"bi-high-light",text:BI.i18nText("Plugin-Redis_Pool_Config"),handler:function(){var e=BI.UUID();BI.Popovers.create(e,{type:"bi.bar_popover",width:400,height:300,header:BI.i18nText("Plugin-Redis_Pool_Config"),body:{type:q.xtype,poolConfig:o},footer:{}}).open(e)}},{type:"bi.text_button",cls:"bi-high-light",text:BI.i18nText("Plugin-Redis_Proxy_Config"),handler:function(){var e=BI.UUID();BI.Popovers.create(e,{type:"bi.bar_popover",width:650,height:280,header:BI.i18nText("Plugin-Redis_Pool_Config"),body:{type:ae.xtype,proxyConfig:n},footer:{}}).open(e)}}]},{type:R.xtype,name:BI.i18nText("Dec-Dcm_Connection_Form_OriginalCharsetName"),forms:[{type:g,text:a||BI.i18nText("BI-Basic_Auto")}]}]}}}])&&pe(o.prototype,n),r&&pe(o,r),t}(),be(re,"xtype","dec.dcm.connection.plugin.redis.show"),ne=ie))||ne;function xe(e){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pe(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Oe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var je,Be,Ie,Te=function(e){BI.model(e.xtype,e)}((he=de=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,r=(e=ve(t)).call.apply(e,[this].concat(a)),o=!r||"object"!==xe(r)&&"function"!=typeof r?Oe(n):r,we(Oe(o),"actions",{setBlockWhenExhausted:function(e){o.model.blockWhenExhausted=e},setLifo:function(e){o.model.lifo=e}}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(t,h),o=t,(n=[{key:"state",value:function(){return{blockWhenExhausted:!0,lifo:!0}}}])&&Pe(o.prototype,n),r&&Pe(o,r),t}(),we(de,"xtype","dec.dcm.model.connection.plugin.redis.components.pool_edit"),me=he))||me;function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ce(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Ee(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Ce(o,!0).forEach(function(t){Ae(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Ce(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Re(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function De(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function We(e,t){return(We=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var Ve,Ue,Me,Ne=y()(je=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(o){return function(n){function r(){return i(this,r),c(this,p(r).apply(this,arguments))}return l(r,o),u(r,[{key:"_store",value:function(){var o=t.props?t.props.apply(this):void 0;return BI.Models.getModel(e.xtype,o)}}]),r}()}}(Te)((Ie=Be=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=ke(t)).call.apply(e,[this].concat(a)))||"object"!==Se(r)&&"function"!=typeof r?De(n):r,Ae(De(o),"props",{poolConfig:Ee({},k)}),Ae(De(o),"store",void 0),Ae(De(o),"model",void 0),Ae(De(o),"form",{maxTotal:null,maxWait:null,maxIdle:null,blockWhenExhausted:null,lifo:null,timeout:null}),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&We(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=this,t=this.options.poolConfig,o=t.maxTotal,n=t.maxWait,r=t.maxIdle,i=t.blockWhenExhausted,a=t.lifo,u=t.timeout;return this.store.setBlockWhenExhausted(i),this.store.setLifo(a),{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Total"),forms:[{type:x,width:300,allowBlank:!0,value:o,ref:function(t){e.form.maxTotal=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Wait"),forms:[{type:x,width:300,allowBlank:!0,value:n,ref:function(t){e.form.maxWait=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Max_Idle"),forms:[{type:x,width:300,allowBlank:!0,value:r,ref:function(t){e.form.maxIdle=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Block_When_Exhausted"),forms:[{type:P,selected:i,ref:function(t){e.form.blockWhenExhausted=t},handler:function(){e.store.setBlockWhenExhausted(!e.model.blockWhenExhausted)}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Lifo"),forms:[{type:P,selected:a,ref:function(t){e.form.lifo=t},handler:function(){e.store.setLifo(!e.model.lifo)}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Pool_Timeout"),forms:[{type:x,width:300,allowBlank:!0,value:u,ref:function(t){e.form.timeout=t}}]}]}}},{key:"getSubmitValue",value:function(){return{maxTotal:this.form.maxTotal.getValue(),maxWait:this.form.maxWait.getValue(),maxIdle:this.form.maxIdle.getValue(),blockWhenExhausted:this.model.blockWhenExhausted,lifo:this.model.lifo,timeout:this.form.timeout.getValue()}}}])&&Re(o.prototype,n),r&&Re(o,r),t}(),Ae(Be,"xtype","dec.dcm.connection.plugin.redis.components.pool_edit"),je=Ie))||je)||je;function Ke(e){return(Ke="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function Le(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?Fe(o,!0).forEach(function(t){qe(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):Fe(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function Ge(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qe(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ze,Qe,Xe,Ze=y()((Me=Ue=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=He(t)).call.apply(e,[this].concat(a)))||"object"!==Ke(r)&&"function"!=typeof r?Je(n):r,qe(Je(o),"props",{proxyConfig:Le({},D)}),qe(Je(o),"isOpen",!0),qe(Je(o),"form",{host:null,port:null,username:null,password:null,privateKeyPath:null}),qe(Je(o),"oldPassword",""),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ye(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=this,t=this.options.proxyConfig,o=t.open,n=t.host,r=t.port,i=t.username,a=t.password,u=t.privateKeyPath;return this.isOpen=o,this.oldPassword=a,{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Open"),forms:[{type:"bi.center_adapt",items:[{type:P,width:30,selected:this.isOpen,handler:function(){e.isOpen=!e.isOpen}},{type:g,text:BI.i18nText("Plugin-Redis_Proxy_Description")}]}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Host"),forms:[{type:x,width:300,allowBlank:!0,value:n,ref:function(t){e.form.host=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Port"),forms:[{type:x,width:300,allowBlank:!0,value:r,ref:function(t){e.form.port=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Username"),forms:[{type:x,width:300,allowBlank:!0,value:i,ref:function(t){e.form.username=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Password"),forms:[{type:"bi.editor",cls:"bi-border",width:300,height:20,allowBlank:!0,value:a,inputType:"password",ref:function(t){e.form.password=t}}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Proxy_Private_Key_Path"),forms:[{type:x,width:300,allowBlank:!0,value:u,watermark:BI.i18nText("Plugin-Redis_Proxy_Private_Key_Path_Mark"),ref:function(t){e.form.privateKeyPath=t}}]}]}}},{key:"getSubmitValue",value:function(){return{open:this.isOpen,host:this.form.host.getValue(),port:this.form.port.getValue(),username:this.form.username.getValue(),password:this.oldPassword===this.form.password.getValue()?this.oldPassword:BI.encode(this.form.password.getValue()),privateKeyPath:this.form.privateKeyPath.getValue()}}}])&&Ge(o.prototype,n),r&&Ge(o,r),t}(),qe(Ue,"xtype","dec.dcm.connection.plugin.redis.components.proxy_edit"),Ve=Me))||Ve;function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o.push.apply(o,n)}return o}function tt(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?et(o,!0).forEach(function(t){at(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):et(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function ot(e,t){for(var o=0;o<t.length;o++){var n=t[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function it(e,t){return(it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function at(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var ut=y()((Xe=Qe=function(e){function t(){var e,o,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];return n=this,o=!(r=(e=nt(t)).call.apply(e,[this].concat(a)))||"object"!==$e(r)&&"function"!=typeof r?rt(n):r,at(rt(o),"props",{formData:{basicConfig:tt({},W),poolConfig:tt({},k),proxyConfig:tt({},D)}}),at(rt(o),"host",void 0),at(rt(o),"port",void 0),at(rt(o),"password",void 0),at(rt(o),"newCharsetName",void 0),at(rt(o),"poolConfig",void 0),at(rt(o),"proxyConfig",void 0),at(rt(o),"poolConfigData",k),at(rt(o),"proxyConfigData",D),at(rt(o),"oldPassword",""),o}var o,n,r;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&it(e,t)}(t,BI.Widget),o=t,(n=[{key:"render",value:function(){var e=this,t=BI.get(this.options,"formData"),o=BI.get(t,"basicConfig",W),n=BI.get(t,"poolConfig",k),r=BI.get(t,"proxyConfig",D),i=o.host,a=o.port,u=o.password,c=o.newCharsetName;return this.poolConfigData=n,this.proxyConfigData=r,this.oldPassword=u,{type:v,hgap:15,vgap:10,items:[{type:R.xtype,name:BI.i18nText("Plugin-Redis_Host"),forms:[{type:x,width:300,allowBlank:!0,ref:function(t){e.host=t},value:i}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Port"),forms:[{type:x,width:300,allowBlank:!0,ref:function(t){e.port=t},value:a}]},{type:R.xtype,name:BI.i18nText("Plugin-Redis_Password"),forms:[{type:"bi.editor",cls:"bi-border",height:20,width:300,allowBlank:!0,ref:function(t){e.password=t},value:u,inputType:"password"}]},{type:"bi.left",hgap:20,items:[{type:"bi.text_button",cls:"bi-high-light",text:BI.i18nText("Plugin-Redis_Pool_Config"),handler:function(){var t=BI.UUID();BI.Popovers.create(t,{type:"bi.bar_popover",width:500,height:320,header:BI.i18nText("Plugin-Redis_Pool_Config"),body:{type:Ne.xtype,poolConfig:e.poolConfigData,ref:function(t){e.poolConfig=t}},listeners:[{eventName:BI.Popover.EVENT_CONFIRM,action:function(){e.poolConfigData=e.poolConfig.getSubmitValue()}}]}).open(t)}},{type:"bi.text_button",cls:"bi-high-light",text:BI.i18nText("Plugin-Redis_Proxy_Config"),handler:function(){var t=BI.UUID();BI.Popovers.create(t,{type:"bi.bar_popover",width:650,height:320,header:BI.i18nText("Plugin-Redis_Pool_Config"),body:{type:Ze.xtype,proxyConfig:e.proxyConfigData,ref:function(t){e.proxyConfig=t}},listeners:[{eventName:BI.Popover.EVENT_CONFIRM,action:function(){e.proxyConfigData=e.proxyConfig.getSubmitValue()}}]}).open(t)}}]},{type:R.xtype,name:BI.i18nText("Dec-Dcm_Connection_Form_OriginalCharsetName"),forms:[{type:"bi.text_value_combo",width:300,value:c||"",items:A,ref:function(t){e.newCharsetName=t}}]}]}}},{key:"getSubmitValue",value:function(){return{basicConfig:{host:this.host.getValue(),port:this.port.getValue(),password:this.oldPassword===this.password.getValue()?this.oldPassword:BI.encode(this.password.getValue()),newCharsetName:this.newCharsetName.getValue()[0]||""},poolConfig:this.poolConfigData,proxyConfig:this.proxyConfigData}}}])&&ot(o.prototype,n),r&&ot(o,r),t}(),at(Qe,"xtype","dec.dcm.connection.plugin.redis.edit"),ze=Xe))||ze;function ct(e){return function(e){if(Array.isArray(e)){for(var t=0,o=new Array(e.length);t<e.length;t++)o[t]=e[t];return o}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}BI.DOM.ready(function(){BI.config("dec.constant.database.conf.connect.types",function(e){return[].concat(ct(e),[{text:"Redis",databaseType:"Redis",iconUrl:"com/fr/plugin/db/redis/images/redis.png"}])}),BI.constant("dec.constant.database.conf.connect.form.Redis.show",ge.xtype),BI.constant("dec.constant.database.conf.connect.form.Redis.edit",ut.xtype)})}]);