

kerio.lib.x_2vi = function(x_2v) {
var
x_ax = x_2v.x_ax,
x_2vj = x_2v.x_2vj,
x_2vk;
x_2vk = x_2v.x_2vk;
this.x_2vk = x_2vk;
x_2vk.x_2o.focus = this.x_2vl;
x_2vk.x_2o.blur = this.x_2vm;
kerio.lib.x_2sf(x_2vk.x_2o, {x_2vn: this});
if ('string' == Ext.type(x_ax)) { x_ax = Ext.get(x_ax);
}
this.x_2vo = x_ax;
x_ax.addClass('scroller');
x_ax.on('click', this.x_2vp, this);
x_ax.on('contextmenu', this.x_2vp, this);
x_ax.on('keydown', this.x_2vq, this);
this.x_2vr = x_ax.insertFirst({tag: 'div', style: 'width: 1px; height: 1px;'});
if ('string' == Ext.type(x_2vj)) { x_2vj = Ext.get(x_2vj);
}
this.x_2vs = x_2vj;
if (x_2vj !== x_ax.prev()) {
x_2vj.insertBefore(x_ax);
}
x_2vj.setLeftTop(x_ax.dom.offsetLeft, x_ax.dom.offsetTop);
this.x_2vt();
this.x_2vu();
this.x_2vv = {
x_2vw: kerio.lib.x_2ul(), x_2vx: x_2v.x_2vx,
x_2vy: x_2v.x_2vy,
x_2vz: -1,
x_2w0: 0,
x_2w1: 0,
x_2w2: false,
x_2jv: false,
x_2w3: +1
};
this.x_2w4();
if (Ext.isGecko) {
this.x_2w5 = this.x_2w6();
}
else {
this.x_2w5 = false;
}
this.x_2w7(x_2v);
};
kerio.lib.x_2vi.prototype = {
x_2w8: 16000000,
x_2w9: false,
x_2wa: true,   x_2wb: {
x_2wc: 0,
x_2wd: 1,
x_2we: 2,
x_2wf: 3,
x_2wg: 4,
x_2wh: 5,
x_2wi: 6,
x_2wj: 7,
x_2wk: 8
},
x_2lr: false,
x_2wl: 0,
x_2wm: 0,
x_2wn: null,
x_2wo: 0,
x_2wp: false,
x_2wq: 40, x_2wr: null,

x_2w4: function(x_2ws) {
if (undefined === x_2ws) {
this.x_2vv.x_2wt = this.x_2wu();
x_2ws = {
x_2wv: this.x_2ww(),
x_2wx: this.x_2wy(),
x_2l6: this.x_2wz(),
x_2x0: this.x_2x1(),
x_2x2: this.x_2x3()
};
}
this.x_2vv = Ext.apply(this.x_2vv, x_2ws);
},

x_2jn: function() {
var
x_ln = this.x_2vv,
x_2x2 = x_ln.x_2x2,
x_2x4 = x_ln.x_2vz >= x_ln.x_2l6,
x_2x5 = 0;
if (x_2x4 && x_2x2 && 1 === x_ln.x_2w3) {
x_2x5 = x_ln.x_2vx - x_2x2;
}
this.x_2w4({
x_2x6: x_ln.x_2w1 !== this.x_2vo.dom.scrollTop,
x_2x5: x_2x5,
x_2x7: x_ln.x_2w0 * x_ln.x_2wx + x_2x5
});
return x_ln;
},

x_2vq: function (x_96) {
var
x_2o0 = Ext.get('x_2o0'),
x_bl = x_96.getKey();
if (Ext.EventObject.CONTROL == x_bl || (Ext.isMac && (true === x_96.browserEvent.metaKey))) {
x_2o0.focus();
x_2o0.on('keyup', function () {
this.x_1d3();
}, this, {single: true});
}
},


x_2w7: function (x_2v) {
var
x_2x8 = Ext.emptyFn,
x_ax = this.x_2vo;
if (x_2v.x_2iy) {
this.x_2kv = x_2v.x_2iy;
}
if (x_2v.x_2x9) {
this.x_2xa = x_2v.x_2x9;
}
if (Ext.isIE) {
x_2x8 = this.x_2xb;
x_ax.on('mousedown', this.x_2xc, this);
}
if (Ext.isGecko) {
x_2x8 = this.x_2xd;
x_ax.on('mousedown', this.x_2xe, this);
x_ax.on('mouseup', this.x_2xf, this);
}
if (Ext.isSafari) {
x_2x8 = this.x_2xg;
}
this.x_2xh = x_2x8;
x_ax.on('scroll', this.x_2iz, this);
},

x_2vp: function (x_96) {
var
x_2xi,
x_2xj,
x_2xk,
x_ln = this.x_2jn(),
x_4q = x_96.browserEvent,
x_2xl = x_4q.clientY - this.x_2vo.getTop(),
x_2xm = this.x_2vk.x_2jr.itemSelector,
x_2x2 = x_ln.x_2x2,
x_2vx = x_ln.x_2vx;
x_2xl += x_ln.x_2x5;
x_2xk = Math.floor(x_2xl / x_2vx);
x_2xi = this.x_2vs.child('.data').query(x_2xm)[x_2xk];
if (!x_2xi) {
return;
}
if (!Ext.isIE) { x_2xj = document.createEvent('MouseEvents');
x_2xj.initMouseEvent(
x_4q.type,           x_4q.bubbles,        x_4q.cancelable,     x_4q.view,           1,                             x_4q.screenX,        x_4q.screenY,        x_4q.clientX,        x_4q.clientY,        x_4q.ctrlKey,        x_4q.altKey,         x_4q.shiftKey,       x_4q.metaKey,        x_4q.button,         x_2xi                        );
x_2xi.dispatchEvent(x_2xj);
}
else { x_2xj = document.createEventObject();
x_2xj.clientX  = x_4q.clientX;
x_2xj.clientY  = x_4q.clientY;
x_2xj.ctrlLeft = x_4q.ctrlKey;
x_2xj.altKey   = x_4q.altKey;
x_2xj.shiftKey = x_4q.shiftKey;
x_2xj.button   = x_4q.button;
x_2xi.fireEvent('on' + x_4q.type, x_2xj);
}
},

x_2vt: function () {
var
x_2xn,
x_2xo = this.x_2vk.x_2o;
x_2xn = this.x_2vr.createChild({
tag: 'a',
href: '#',
cls: 'x-grid3-focus',
tabindex: -1,
style: 'top: 0, left: 0;'
});
if (Ext.isIE) {
x_2xn.on('keydown', this.x_2xp, this);
this.x_2vo.on('keydown', this.x_2xp, this);
}
x_2xn.on('focus', this.x_2xq, x_2xo);
x_2xn.on('blur', this.x_2xr, x_2xo);
this.x_2vs.on('click', this.x_2vl, x_2xo);
this.x_2xs = x_2xn;
},

x_1d3: function () {
this.x_2vl.call(this.x_2vk.x_2o);
},

x_2vl: function () {
this._kx.x_2vn.x_2xs.focus();
},

x_2vm: function () {
this._kx.x_2vn.x_2xs.blur();
},

x_2xq: function () {
this.fireEvent('focus', this);
},

x_2xr: function () {
this.fireEvent('blur', this);
},

x_2vu: function () {
var x_2xt;
if (Ext.isGecko) {
if (kerio.lib.x_2qx) {
x_2xt = 0x111110A;
}
else {
if (Ext.isMac) {
x_2xt = 0x492370;
}
else {
x_2xt = 0x924924;
}
}
}
else {
x_2xt = 0x7FFFD28;  }
this.x_2w8 = x_2xt;
},

x_2xu: function () {
var
x_ln = this.x_2jn(),
x_2vz = x_ln.x_2vz,
x_2w0;
this.x_2w4({
x_2vz: -1,
x_2wt: this.x_2wu() });
if (false === x_ln.x_2jv) {
x_2w0 = x_ln.x_2w0;
}
this.x_2xv(x_2vz, x_2w0);
},

x_2xw: function () {
var
x_ln = this.x_2jn(),
x_ax = this.x_2vo,
x_2xx = this.x_2vs,
x_1u,
x_2wt = x_ln.x_2wt,
x_2xy = this.x_2vr;
if (0 === x_2xy.getHeight()) {
x_2xy.setHeight(1);
}
x_1u = x_ln.x_2vz <= 0 ? x_ax.getWidth(true) : x_2xx.child('.data').getWidth();
x_2xy.setWidth(x_1u);
if (kerio.lib.x_2lm) {
this.x_2w4({
x_2vw: {
x_1u: x_ln.x_2vw.x_1u,
x_1v: x_ax.getHeight(true) - x_ax.dom.clientHeight
}
});
this.x_2w4();
x_ln = this.x_2jn();
x_2wt = x_ln.x_2wt;
}
x_1u = x_ax.getWidth();
if (Ext.isGecko) {
this.x_2xz();
}
x_2xx.setSize({
width: x_1u,
height: x_2wt + x_2xx.getBorderWidth('tb')
});
this.x_2y0();
this.x_2w4();
},

x_2xz: function () {
var
x_2y1,
x_2y2,
x_2y3,
x_ln = this.x_2jn(),
x_2wt = x_ln.x_2wt,
x_2vx = x_ln.x_2vx,
x_2xx = this.x_2vs,
x_2y4 = x_2xx.query('.spacer'),
x_2y5 = x_2xx.child('.data');
if (x_ln.x_2vz < x_ln.x_2l6) {
x_2y1 = x_2wt;
x_2y2 = 0;
x_2y3 = 0;
}
else {
x_2y1 = Math.ceil(x_2wt / x_2vx) * x_2vx;
x_2y2 = x_2y1;
x_2y3 = x_2y1;
x_2y3 += x_ln.x_2x5;
}
Ext.get(x_2y4[0]).setHeight(x_2y2);
Ext.get(x_2y4[1]).setHeight(x_2y2);
x_2y5.setHeight(x_2y1);
x_2xx.dom.scrollTop = x_2y3;
},

x_2xv: function (x_2vz, x_2w0) {
var
x_ln = this.x_2jn(),
x_2xt = this.x_2w8,
x_2vx = x_ln.x_2vx,
x_2y6 = x_ln.x_2wx,
x_1v,
x_2y7;
if (x_ln.x_2vz == x_2vz) {
return;
}
this.x_2w4({
x_2vz: x_2vz
});
this.x_2xw();
x_ln = this.x_2jn();
this.x_2y8 = false;
this.x_2y9 = true;
if (kerio.lib.x_j9) {
if (x_2vz < 1000) {
x_2y6 = x_2vx;
if (x_2vz > x_ln.x_2l6) {
this.x_2ya();
this.x_2y0();
}
else {
this.x_2yb();
}
}
else {
this.x_2yb();
}
}
if (kerio.lib.x_1rv && x_2vz < 1000) {
x_2y6 = x_2vx;
this.x_2y8 = true;
}
x_2y7 = x_2vz - x_ln.x_2l6;
if (x_2y7 < 0) {
x_2y7 = 0;
}
this.x_2w4({x_2y7: x_2y7});
x_1v = x_2vz * x_2y6;
if (x_2y6 < x_2vx) {
x_1v += x_ln.x_2l6 * (x_2vx - x_2y6);
}
else if (x_2y6 > x_2vx) {
x_1v = (x_2y7 * x_2y6) + x_ln.x_2wt;
}
if (x_1v > x_2xt) {
this.x_2wa = false;
x_1v = Math.floor(x_2xt / x_2y6) * x_2y6;
}
else {
this.x_2wa = true;
}
this.x_2vr.setHeight(x_1v);
this.x_2w4({x_2yc: this.x_2yd()});
if (undefined === x_2w0) {
if (x_ln.x_2jv) {
x_2w0 = x_2y7;
}
else {
x_2w0 = Math.floor(x_2y7 * this.x_2ye());
}
}
if (x_2w0 == x_2y7) {  this.x_2w4({x_2w0: x_2w0});  this.x_2yf(true);
}
this.x_2w4({x_2w0: x_2w0});
this.x_2yg(x_2w0);
this.x_2yh = Math.ceil(x_2vz / 500000) + 1;  },

x_2yi: function (x_2tt, x_2yj) {
var
x_2yk,
x_ln = this.x_2jn();
x_2tt = Math.max(0, Math.min(x_2tt, x_ln.x_2y7));
x_2yk = this.x_2yl(x_2tt);
this.x_2w4({x_2w3: -1});
if (x_2yj) {
this.x_2w4({x_2w0: x_2tt});
this.x_2yg(x_2tt);
}
this.x_2lt(x_2yk, x_2yj);
},

x_2wu: function () {
var
x_ln = this.x_2jn(),
x_2wt;
if (x_ln.x_2vy > this.x_2vo.dom.clientWidth) {
x_2wt = this.x_2vo.getHeight(true) - x_ln.x_2vw.x_1v;
}
else {
x_2wt = this.x_2vo.dom.clientHeight;
}
return x_2wt;
},

x_2x3: function () {
var
x_2x2,
x_ln = this.x_2jn();
x_2x2 = x_ln.x_2wt % x_ln.x_2vx;
return x_2x2;
},

x_2wy: function () {
var x_2ym;
if (Ext.isIE) {
x_2ym = Math.floor(this.x_2jn().x_2wt * 25 / 200);
}
else {
if (kerio.lib.x_2ny) {
x_2ym = Ext.util.TextMetrics.measure(this.x_2vo, 'test').height;
}
if (Ext.isSafari) { x_2ym = this.x_2wq;
}
}
return x_2ym;
},

x_2ww: function () {
var
x_2yn,
x_2wt = this.x_2jn().x_2wt;
x_2yn = x_2wt - (Ext.isIE ? Math.ceil(x_2wt * 25 / 200) : this.x_2wy());
return x_2yn;
},

x_2wz: function () {
var
x_2l6,
x_ln = this.x_2jn();
x_2l6 = Math.ceil(x_ln.x_2wt / x_ln.x_2vx);
return x_2l6;
},

x_2x1: function () {
var
x_2x0,
x_2vx = this.x_2jn().x_2vx,
x_2yo = this.x_2x3();
x_2x0 = this.x_2wz() - 1;
if (x_2yo > 0 && x_2yo < x_2vx / 2) {  x_2x0 -= 1;
}
return x_2x0;
},

x_2yp: function () {
return Math.abs(this.x_2yq());
},

x_2yr: function () {
this.x_2wm = this.x_2vo.getScroll().left;
this.x_2vs.dom.scrollLeft = this.x_2vo.getScroll().left;
},

x_2iz: function (x_96) {
var
x_2ys = this.x_2vo.getScroll(),
x_2y3 = x_2ys.top,
x_ln = this.x_2jn(),
x_2w3 = x_ln.x_2w3,
x_2yt;
this.x_2xs.setStyle({
top: x_2y3 + 'px',
left: x_2ys.left + 'px'
});
if (x_2ys.left !== this.x_2wm) {
this.x_2yr();
return;
}
if (0 === x_2y3) {
x_2w3 = -1;
}
else if (x_2y3 === x_ln.x_2yc) {
x_2w3 = +1;
}
this.x_2w4({
x_2w1: x_2y3,
x_2w3: x_2w3
});
if (this.x_2lr) {
this.x_2lr = false;
return;
}
if (this.x_2wa) {
this.x_2w9 = false;
}
else {
this.x_2w9 = (0 === x_2y3 || x_ln.x_2jv) ? false : true;
}
x_2yt = this.x_2xh.apply(this, arguments);
x_2yt = this.x_2yu(x_2yt);
this.x_2yv(x_2yt);
this.x_2wl = this.x_2vo.getScroll().top;
},

x_2yv: function (x_2yt) {
var
x_ln = this.x_2jn(),
x_2w0 = x_ln.x_2w0;
if (this.x_2kv && (true !== this.x_2w9)) {
this.x_2kv.call(this.x_2vk || this, this, x_2yt, x_2w0);
}
},

x_2yu: function (x_2yt) {
var
x_ln = this.x_2jn(),
x_2w0 = x_ln.x_2w0,
x_2yw = this.x_2wb,
x_2ys = x_ln.x_2w1,
x_2yx = this.x_2yq() > 0 ? true : false,
x_2x0 = x_ln.x_2x0,
x_2y7 = x_ln.x_2y7,
x_2yy;
if (this.x_2vs) {
x_2yy = this.x_2vs.dom.scrollTop;
}
if (true === this.x_2w9) {
return x_2yt;
}
if (0 === x_2ys) {
this.x_2w4({
x_2w0: 0,
x_2w1: 0
});
this.x_2wl = 0;
this.x_2yg(0);
return x_2yt;
}
if (this.x_2vs && (0 === x_2yy || x_2yy >= 2 * this.x_2vs.first().getHeight())) {
this.x_2wl = this.x_2vo.dom.scrollTop;
x_2w0 = Math.floor(x_2y7 * this.x_2ye());
this.x_2w4({
x_2w0: x_2w0,
x_2w1: this.x_2vo.dom.scrollTop
});
this.x_2yg(x_2w0);
x_2yt = x_2yx ? x_2yw.x_2wh : x_2yw.x_2wg;
return x_2yt;
}
switch (x_2yt) {
case x_2yw.x_2wc:
x_2w0--;
break;
case x_2yw.x_2wd:
x_2w0++;
break;
case x_2yw.x_2we:
x_2w0 -= x_2x0;
break;
case x_2yw.x_2wf:
x_2w0 += x_2x0;
break;
case x_2yw.x_2wg:
x_2w0 = Math.floor(x_2y7 * this.x_2ye());
break;
case x_2yw.x_2wh:
x_2w0 = Math.floor(x_2y7 * this.x_2ye());
break;
default: }
if (x_2w0 > x_2y7) {
x_2w0 = x_2y7;
}
this.x_2w4({x_2w0: x_2w0});
this.x_2yg(x_2w0, x_2yt);
this.x_2w4({
x_2yz: x_2yt
});
if ((this.x_2y9 && (x_2yt == x_2yw.x_2wf || x_2yt == x_2yw.x_2we)) ||
(this.x_2y8 && (x_2yt == x_2yw.x_2wd || x_2yt == x_2yw.x_2wc))) {
this.x_2z0(x_2yt);
}
return x_2yt;
},

x_2z0: function(x_2yt) {
var
x_ln = this.x_2jn(),
x_2yk;
if (true === x_ln.x_2jv) {
return;
}
x_2yk = this.x_2yl(x_ln.x_2w0);
this.x_2lt(x_2yk, true);
},

x_2yl: function (x_2tt) {
var
x_ln = this.x_2jn(),
x_2vx,
x_2z1;
if (this.x_2z2 || this.x_2y8) {
x_2vx = x_ln.x_2vx;
}
else {
x_2vx = x_ln.x_2wx;
}
if (this.x_2wa) {
x_2z1 = x_2tt * x_2vx;
}
else {
x_2z1 = x_2tt * x_2vx;

}
return x_2z1;
},

x_2z3: function(x_2yt) {
var
x_2x0 = this.x_2jn().x_2x0,
x_2yw = this.x_2wb,
x_2z4;
switch (x_2yt) {
case x_2yw.x_2wf:
x_2z4 = +x_2x0;
break;
case x_2yw.x_2we:
x_2z4 = -x_2x0;
break;
case x_2yw.x_2wd:
x_2z4 = +1;
break;
case x_2yw.x_2wc:
x_2z4 = -1;
break;
default: kerio.lib.x_nq('Internal error: An unexpected argument value \''
+ x_2yt + '\' for x_2z3().', 'scroller');
}
return x_2z4;
},

x_2yg: function(x_2w0, x_2yt) {
var
x_ln = this.x_2jn(),
x_2yw = this.x_2wb,
x_2w2,
x_2jv;
if (x_ln.x_2y7 == x_2w0) {
x_2w2 = true;
if (x_2yw.x_2wk === x_2yt || x_2yw.x_2wj === x_2yt) {
x_2jv = x_2yw.x_2wk === x_2yt;
}
else {
x_2jv = x_ln.x_2w1 == x_ln.x_2yc;
}
}
else {
x_2w2 = false;
x_2jv = false;
}
this.x_2w4({
x_2w2: x_2w2,
x_2jv: x_2jv
});
},

x_2yq: function () {
return this.x_2jn().x_2w1 - this.x_2wl;
},

x_2ye: function () {
var
x_ln = this.x_2jn();
return 0 === x_ln.x_2yc ? 0 : x_ln.x_2w1 / x_ln.x_2yc;
},

x_2yd: function () {
var
x_ax = this.x_2vo,
x_2z5;
x_2z5 = this.x_2vr.getHeight() - x_ax.dom.clientHeight;
if (x_2z5 < 0) {  x_2z5 = 0;
}
return x_2z5;
},

x_2lt: function (x_2ys, x_2yj) {
var
x_ln = this.x_2jn(),
x_2yc = x_ln.x_2yc;
this.x_2lr = (true === x_2yj);
if (x_2ys < 0) {
x_2ys = 0;
}
if (x_2ys > x_2yc) {
x_2ys = x_2yc;
}
this.x_2wl = x_2ys;
if (x_ln.x_2w1 === x_2ys) {
this.x_2lr = false;
}
else {
this.x_2w4({x_2w1: x_2ys});
this.x_2vo.dom.scrollTop = x_2ys;
}
},

x_2yf: function (x_2yj) {
var x_ln = this.x_2jn();
x_2yj = true === x_2yj;
this.x_2lt(x_ln.x_2yc, x_2yj);
this.x_2yg(x_ln.x_2w0);
},


x_2xc: function (x_96) {
this.x_2wn = this.x_2z6(x_96.getXY());
},

x_2z6: function (x_2z7) {
var x_13x;
x_13x = this.x_2vo.dom.componentFromPoint(x_2z7[0], x_2z7[1]);
if (null !== this.x_2wr && '' == x_13x) {
x_13x = this.x_2wr;
this.x_2wr = null;
}
return x_13x;
},

x_2xp: function (x_96) {
var x_bl = x_96.getKey();
if (this.x_2xs != x_96.getTarget()) {
this.x_1d3();
}
switch (x_bl) {
case x_96.DOWN:
this.x_2wr = 'scrollbarDown';
break;
case x_96.UP:
this.x_2wr = 'scrollbarUp';
break;
case x_96.PAGEDOWN:
this.x_2wr = 'scrollbarPageDown';
break;
case x_96.PAGEUP:
this.x_2wr = 'scrollbarPageUp';
break;
}
},

x_2xb: function (x_96) {
var
x_ln = this.x_2jn(),
x_2z8 = x_ln.x_2w1,
x_2z5 = x_ln.x_2yc,
x_2ym = x_ln.x_2wx,
x_2yn = x_ln.x_2wv,
x_2z9 = this.x_2yp(),
x_2za = this.x_2z6(x_96.getXY()),
x_2zb = (('scrollbarUp' == x_2za) || ('scrollbarPageUp' == x_2za)) ? -1 : 1,
x_2yw = this.x_2wb,
x_2yt = null;
if (('scrollbarDown' == x_2za) || ('scrollbarUp' == x_2za)) {
if (x_2z9 !== x_2ym) { if (0 === x_2z9 || 0 === x_2z8 || x_2z5 === x_2z8) { this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wd : x_2yw.x_2wc;
this.x_2w9 = false;
}
}
else {
this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wd : x_2yw.x_2wc;
this.x_2w9 = false;
}
}
else {
if (('scrollbarPageDown' == x_2za) || ('scrollbarPageUp' == x_2za)) {
if (x_2z9 !== x_2yn) {
if (0 === x_2z9 || 0 === x_2z8 || x_2z5 === x_2z8) {
this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wf : x_2yw.x_2we;
this.x_2w9 = false;
}
}
else {
this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wf : x_2yw.x_2we;
this.x_2w9 = false;
}
}
else { if (('scrollbarPageDown' == this.x_2wn) || 'scrollbarPageUp' == this.x_2wn) {
x_2zb = (('scrollbarPageUp' == this.x_2wn) ? -1 : 1);
if (x_2z9 !== x_2yn) {
if (0 === x_2z9 || 0 === x_2z8 || x_2z5 === x_2z8) {
this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wf : x_2yw.x_2we;
this.x_2w9 = false;
}
}
else {
this.x_2wn = null;
x_2yt = (1 === x_2zb) ? x_2yw.x_2wf : x_2yw.x_2we;
this.x_2w9 = false;
}
}
else {
x_2yt = this.x_2yq() > 0 ? x_2yw.x_2wh : x_2yw.x_2wg;
this.x_2w9 = false;
}
}
}
return x_2yt;
},


x_2xd: function () {
var
x_ln = this.x_2jn(),
x_1b = kerio.lib,
x_2ym = x_ln.x_2wx,
x_2yn = x_ln.x_2wv,
x_2z9 = this.x_2yp(),
x_2zb = this.x_2yq(),
x_2yw = this.x_2wb,
x_2yt = null;
if (this.x_2w5) {
x_2yt = this.x_2zc();
return x_2yt;
}
if (x_2z9 == x_2ym) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wd : x_2yw.x_2wc;
}
else if (x_2z9 == x_2yn) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wf : x_2yw.x_2we;
}
else {
x_2yt = 0 < x_2zb ? x_2yw.x_2wh : x_2yw.x_2wg;
if (x_ln.x_2vz > 500000 && x_1b.x_2ny && Ext.isMac) {
if (this.x_2ye() > 0.5) {
if (x_2ym > Math.abs(x_2ym - x_2z9)) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wd : x_2yw.x_2wc;
}
else if (this.x_2yh >= Math.abs(x_2yn - x_2z9)) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wf : x_2yw.x_2we;
}
}
}
}
this.x_2w9 = false;
return x_2yt;
},

x_2zc: function () {
var
x_ln = this.x_2jn(),
x_2ym = x_ln.x_2wx,
x_2yn = x_ln.x_2wv,
x_2z9 = this.x_2yp(),
x_2zb = this.x_2yq(),
x_2yw = this.x_2wb,
x_2yt = null,
x_2zd = this.x_2wo;
x_2zd += x_2z9;
if (x_2z9 < x_2ym && (x_2zd == x_2ym || (x_2zd > x_2ym && 'line' == this.x_2ze))) { x_2yt = (0 < x_2zb) ? x_2yw.x_2wd : x_2yw.x_2wc;
x_2zd -= x_2ym;
if (true === this.x_2wp) {
this.x_2ze = 'line';
}
this.x_2w9 = false;
}
else if (x_2zd == x_2yn || (x_2zd > x_2yn && 'page' == this.x_2ze)) { x_2yt = (0 < x_2zb) ? x_2yw.x_2wf : x_2yw.x_2we;
x_2zd -= x_2yn;
if (true === this.x_2wp) {
this.x_2ze = 'page';
}
this.x_2w9 = false;
}
else {
if (this.x_2wa) {
if ((x_2zd > x_2ym && x_2z9 < x_2ym) || (x_2zd > x_2yn)) { x_2yt = x_2yw.x_2zf;
x_2zd = 0;
this.x_2w9 = false;
}
else { x_2yt = x_2yw.x_2wi;
}
}
else {
if (x_2z9 > x_2yn) { x_2yt = x_2yw.x_2zf;
x_2zd = 0;
this.x_2w9 = false;
}
else { x_2yt = x_2yw.x_2wi;
}
}
}
this.x_2wo = x_2zd;
return x_2yt;
},

x_2w6: function () {
return false;
},

x_2xe: function () {
this.x_2wp = true;
},

x_2xf: function () {
this.x_2wp = false;
},


x_2xg: function () {
var
x_ln = this.x_2jn(),
x_2ym = x_ln.x_2wx,
x_2yn = x_ln.x_2wv,
x_2z9 = this.x_2yp(),
x_2zb = this.x_2yq(),
x_2yw = this.x_2wb,
x_2yt = null;
if (x_2z9 == x_2ym) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wd : x_2yw.x_2wc;
this.x_2w9 = false;
}
else {
if (x_2z9 == x_2yn) {
x_2yt = 0 < x_2zb ? x_2yw.x_2wf : x_2yw.x_2we;
this.x_2w9 = false;
}
else {
x_2yt = 0 < x_2zb ? x_2yw.x_2wh : x_2yw.x_2wg;
this.x_2w9 = false;
}
}
return x_2yt;
},

x_2ya: function() {
if (this.x_2z2) {
return;  }
var
x_ln = this.x_2jn(),
x_2zg = x_ln.x_2vw.x_1u,
x_2zh = x_ln.x_2vw.x_1v,
x_ax = this.x_2vo,
x_1g = x_ax.parent(),
x_2zi,
x_2zj,
x_2zk,
x_2zl,
x_2zm;
x_2zi = {tag: 'div', cls: 'scrollArrowClip', children: [
{tag: 'div', cls: 'fakeScroller', children: [{tag: 'div'}]}
]};
x_2zj = x_1g.createChild(x_2zi);
x_2zk = x_1g.createChild(x_2zi);
x_2zl = x_2zj.first();
x_2zm = x_2zk.first();
x_2zl.setLeftTop(x_2zg - 30, 0);                       x_2zm.setLeftTop(x_2zg - 30, x_2zh - 100);  x_2zj.setSize(x_2zg, x_2zh);
x_2zk.setSize(x_2zg, x_2zh);
x_2zl.on('scroll', this.x_2zn, this, {x_2vn: x_2zl});
x_2zm.on('scroll', this.x_2zn, this, {x_2vn: x_2zm});
this.x_2z2 = {
x_2zj: x_2zj,
x_2zk: x_2zk,
x_2zl: x_2zl,
x_2zm: x_2zm
};
x_2zl.dom.scrollTop = 50;  },

x_2yb: function() {
var x_2zo = this.x_2z2;
if (x_2zo) {
x_2zo.x_2zj.remove();
x_2zo.x_2zk.remove();
delete this.x_2z2;
}
},

x_2zn: function(x_96, x_2zp, x_6q) {
var
x_ln = this.x_2jn(),
x_2ys = x_ln.x_2w1,
x_2vx = x_ln.x_2vx,
x_2zq = x_6q.x_2vn;
if (50 == x_2zq.dom.scrollTop) {
return;
}
if (x_2zq == this.x_2z2.x_2zl) {
x_2ys -= x_2vx;
}
else {
x_2ys += x_2vx;
}
this.x_2lt(x_2ys);
x_2zq.dom.scrollTop = 50;
},

x_2y0: function() {
var
x_ln = this.x_2jn(),
x_2zo = this.x_2z2,
x_ax = this.x_2vo,
x_2zr,
x_2zs,
x_2zt,
x_2zu;
if (x_2zo) {
x_2zr = x_ax.getBorderWidth('b');
x_2zs = x_ax.getBorderWidth('r');
x_2zt = x_ax.getBorderWidth('t');
x_2zu = x_ln.x_2vw.x_1u + x_2zr;
x_2zo.x_2zj.alignTo(x_ax, 'tr-tr', [-x_2zs,  x_2zt   ]);
x_2zo.x_2zk.alignTo(x_ax, 'br-br', [-x_2zs, -x_2zu]);
}
}
};


kerio.lib.x_2zv = function() {
this.x_2zw = [];  };
kerio.lib.x_2zv.prototype = {

x_2zx: function() {
this.x_2zw = [];
},

x_55: function(x_2zy, x_2yo, x_2ds) {
var
x_fk = x_2zy,
x_41,
x_42;
x_2yo = undefined === x_2yo ? 0 : x_2yo;
x_2ds = undefined === x_2ds ? this.x_2zw.length - x_2yo : x_2ds;
if ('number' == typeof(x_fk)) {
x_2zy = [];
x_2zy[0] = x_fk;
}
for (x_41 = 0; x_41 < x_2ds; x_41++) {
x_fk = x_41 + x_2yo;
delete this.x_2zw[x_fk];
}
for (x_41 = 0, x_42 = x_2zy.length; x_41 < x_42; x_41++) {
x_fk = x_2zy[x_41] + x_2yo;
this.x_2zw[x_fk] = x_fk;
}
},

x_1am: function(x_fk) {
return undefined !== this.x_2zw[x_fk];
},

x_2l4: function() {
var
x_2me = this.x_2zw.sort(), x_2zz = x_2me.length,
x_41;
for (x_41 = 0; x_41 < x_2zz; x_41++) {
if (undefined === x_2me[x_41]) {
x_2me = x_2me.slice(0, x_41);
break;
}
}
return x_2me.sort(kerio.lib.x_2ug);
}
};


kerio.lib.x_10o = {
x_300: false,

x_301: {},

x_302: {},

x_10p: function (x_66) {
if (!this.x_300) {
this.x_303(x_66);
}
},

x_2ej: function (x_a6) {
return this.x_302[x_a6];
},

x_20e: function (x_304) {
Ext.apply(this.x_302, x_304);
},

x_303: function (x_j4) {
kerio.lib.x_6t.x_6u(
Ext.applyIf(x_j4, {
x_6p: 'post',
x_2e: this.x_305,
x_2q: this
})
);
},

x_305: function(x_6v, x_6w) {
var x_dg = x_6v.x_ac;
if (!x_dg) {
return;
}
if (('true' === x_dg.returnValue) || (true === x_dg.returnValue) ) {
this.x_306(x_dg.restrictions);
this.x_300 = true;
}
},

x_306: function(x_307) {
var x_308;
var x_2lj = this.x_301;
for (var x_41 = 0, x_309 = x_307.length; x_41 < x_309; x_41++) {
x_308 = x_307[x_41];
x_2lj[x_308[0]] = {};
var x_30a = x_308[1].tuples;
for (var x_dj = 0, x_30b = x_30a.length; x_dj < x_30b; x_dj++) {
var x_a6 = x_30a[x_dj].name;
if (undefined === x_2lj[x_308[0]][x_a6]) {
x_2lj[x_308[0]][x_a6] = [];
}
x_2lj[x_308[0]][x_a6].push(x_30a[x_dj]);
}
}
},

x_192: function(x_1o, x_30c, x_1kp) {
if (!this.x_300) {
return true;
}
var x_2lj = this.x_301;
var x_30d = x_2lj[x_30c][x_1kp];
if (x_30d) {
for (var x_41 = 0, x_309 = x_30d.length; x_41 < x_309; x_41++) {
if (false === this.x_30e(x_1o, x_30d[x_41].kind, x_30d[x_41].values)) {
return false;
}
}
}
return true;
},

x_30e: function(x_1o, x_30f, x_30g) {
var x_1j1 = kerio.lib.x_1j1;
switch (x_30f) {
case x_1j1.x_26i:
return (x_1o.length <= x_30g[0]);
case x_1j1.x_26j:
var x_30h = x_30g[0];
x_30h = x_30h.substring(1, x_30h.length-1);
var x_30i = new RegExp(x_30h);
return (x_1o.match(x_30i) ? true : false);
case x_1j1.x_30j:
return (-1 == x_30g.indexOf(x_1o));
case x_1j1.x_30k:
var x_30l = x_1o.indexOf('.');
if (-1 == x_30l) {
x_30l = x_1o.length;
}
var x_30m = x_1o.substring(0, x_30l);
return (-1 == x_30g.indexOf(x_30m));
case x_1j1.x_30n:
var x_30o = x_1o.lastIndexOf('-');
if (-1 == x_30o) {
return true;
}
var x_30p = x_1o.substring(x_30o);
return (-1 == x_30g.indexOf(x_30p));
case x_1j1.x_30q:
for (var x_41 = 0, x_309 = x_30g.length; x_41 < x_309; x_41++) {
if (-1 != x_1o.indexOf(x_30g[x_41])) {
return false;
}
}
return true;
default:
return false;
}
return false;
}
};



kerio.lib.x_2t3 = function(x_2al, x_96) {

this.x_1f = x_2al;

this.x_4q = (x_96) ? x_96.browserEvent : {};

this.x_30r = (x_96 && x_96.browserEvent);
}; 
kerio.lib.x_6b.x_6d = {

x_6e:  {


x_1gd: 1,

x_4l: 2,

x_4p: 3,

x_30s: 4,

x_30t: 5,

x_30u: 6,

x_30v: 7
}, 

x_6f: {


x_4r: Ext.EventObject.BACKSPACE,

x_4s:    Ext.EventObject.DELETE,

x_30w:       Ext.EventObject.END,

x_30x:     Ext.EventObject.ENTER,

x_30y:       Ext.EventObject.ESC,

x_30z:      Ext.EventObject.HOME,

x_310:  Ext.EventObject.PAGEDOWN,

x_311:    Ext.EventObject.PAGEUP,

x_312: 65,

x_313: 97
} 
}; 

kerio.lib.x_1md = function() {
this.x_314 = [];
this.x_315 = null;
this.x_316 = [];
this.x_2sk = {};
};
kerio.lib.x_1md.prototype = {

x_317: function (x_318, x_319, x_31a) {
if (this.x_2o.rendered) {
return false;
}
var x_31b = this.x_314;

if (undefined !== x_31a) {
x_31b.length = x_31a;
}
var x_1u9 = x_31b.length;
var x_31c = true;
var x_31d;
var x_31e;
if (x_1u9 > 0) {
x_31d = x_31b[x_1u9 - 1];
x_31e = x_31d.x_319;
if (x_318 == x_31d.x_74 && x_319.length == x_31e.length) {
x_31c = false;
for (var x_41 = 0, x_42 = x_319.length; x_41 < x_42; x_41++) {
if (x_319[x_41] != x_31e[x_41]) {
x_31c = true;
break;
}
}
}
}
if (x_31c) {
x_31b.push({x_74: x_318, x_319: x_319});
}
return true;
},

x_31f: function () {
var x_31b = this.x_314;
var x_31g;
for (var x_41 = 0, x_42 = x_31b.length; x_41 < x_42; x_41++) {
x_31g = x_31b[x_41];
x_31g.x_74.apply(this, x_31g.x_319);
delete x_31b[x_41];
}
delete this.x_314;
},

x_31h: function () {
var x_31i;
var x_q1;
this.x_314 = [];    if (null === this.x_315) {
x_31i = this.x_31j.call(this.x_2o);
}
else {
x_31i = this.x_315;
}
for (var x_41 = 0, x_42 = x_31i.length; x_41 < x_42; x_41++) {
x_q1 = x_31i[x_41];
x_q1.x_31h.call(x_q1);
}
},

x_31j: function () {
if (!this.items || !this.items.items) {
return [];
}
var x_31k = this.items.items;
var x_2o;
var x_31i = [];
for (var x_41 = 0, x_42 = x_31k.length; x_41 < x_42; x_41++) {
x_2o = x_31k[x_41];
if (x_2o._kx && x_2o._kx.x_2vk) {
x_31i.push(x_2o._kx.x_2vk);
}
else {
x_31i = x_31i.concat(kerio.lib.x_1md.prototype.x_31j.call(x_2o));
}
}
if (this._kx && this._kx.x_2vk) {
this._kx.x_2vk.x_315 = x_31i;
}
return x_31i;
},

x_31l: function () {
return (this.x_314) ? this.x_314.length : 0;
},

x_27: function (x_et) {
for (var x_290 in x_et) {
if (undefined === this[x_290]) {
this[x_290] = x_et[x_290];
this.x_316.push(x_290);
}
else {
kerio.lib.x_nq('Internal error: An attempt to redefine property "' + x_290 + '" in the widget "'
+ this.x_1j + '"', 'baseWidget.js');
}
}
},

x_31m: function(x_31n) {
var x_2qi = this.x_31o;
if (!x_2qi) {
x_2qi = this.x_31p(this.x_2o);
this.x_31o = x_2qi;
}
return (true !== x_31n) ? x_2qi : x_2qi.reverse();
},

x_31q: function () {
var x_31r = this.x_31m();
return x_31r[1] || null;
},

x_31s: function () {
var
x_31r = this.x_31m(),
x_31t = x_31r.length - 1;
if (0 === x_31t) {
return null;
}
return x_31r[x_31t];
},

x_31p: function (x_2o, x_2qi) {
var
x_31u = x_2o instanceof Ext.Window,
x_31v = x_2o instanceof Ext.Viewport,
x_31w = x_2o.ownerCt,
x_2p;
if (undefined === x_2qi) {
x_2qi = [];
}
if (x_2o._kx && x_2o._kx.x_2vk) {
x_2qi.push(x_2o._kx.x_2vk);
x_2p = x_2o._kx.x_2vk.x_2p;
if (x_2p) {
x_31w = x_2p.x_2o;
}
}
if (x_31u || x_31v || !x_31w) {
return x_2qi;
}
return this.x_31p(x_31w, x_2qi);
},

x_jp: function () {
var
x_2qi = this.x_31m(true),
x_31x = x_2qi.length,
x_1b = kerio.lib,
x_2p,
x_q1,
x_31y,
x_41;
for (x_41=0; x_41 < x_31x - 1; x_41++) { x_q1 = x_2qi[x_41];
x_2p = x_q1.x_31q();
if (x_2p instanceof x_1b.x_py) {
x_31y = x_2p.x_31z(x_q1.x_1j);
x_2p.x_lf(x_31y);
}
}
},

x_320: function () {
this.x_jp();
this.x_1d3();
},

x_321: function (x_3h) {
var
x_41,
x_42,
x_s8;
this.x_322 = x_3h;
x_s8 = this.x_2o.findBy(function (x_323) {
return (x_323._kx && (x_323._kx.x_2vk.x_3h == this.x_322));
}, this);
delete this.x_322;
for (x_41 = 0, x_42 = x_s8.length; x_41 < x_42; x_41++) {
x_s8[x_41] = x_s8[x_41]._kx.x_2vk;
}
return x_s8;
},

x_31: function () {
return (true === this.x_2o.disabled);
},

x_5p: function () {
return (true === this.x_2o.readOnly);
},

x_2fb: function () {
return (true !== this.x_2o.hidden);
}
};


kerio.lib.x_324 = function () {
kerio.lib.x_324.superclass.constructor.call(this);
this.x_325 = new Ext.util.MixedCollection();
this.x_326 = null;
this.x_327 = false;
this.x_328 = false;
};
Ext.extend(kerio.lib.x_324, kerio.lib.x_1md, {


x_329: function () {
this.x_325.sort('ASC', function (x_2uh, x_2ui) {
var x_32a = (kerio.lib.x_2tn(x_2uh) ? x_2uh.x_32b : x_2uh._kx.x_32b);
var x_32c = (kerio.lib.x_2tn(x_2ui) ? x_2ui.x_32b : x_2ui._kx.x_32b);
if (undefined === x_32a || undefined === x_32c) {  x_32a = 0;
x_32c = 0;
}
return (x_32a - x_32c);
});
},

x_32d: function () {
if (!this.x_327) {
this.x_329();
this.x_327 = true;
}
return this.x_325;
},

x_32e: function (x_g6) {
var x_1j = this.x_32f(x_g6);
if (x_1j) {
this.x_325.add(x_1j, x_g6);
}
},

x_32f: function (x_g6) {
if (!x_g6) {
return null;
}
var x_2se = kerio.lib.x_2sf;
var x_2rd = kerio.lib.x_2tn(x_g6);
var x_1j;
var x_32g = {};
if (x_2rd) {
if (undefined === x_g6.x_32b) {
x_g6.x_32b = 0;
}
x_1j = x_g6.x_2o.id;
}
else {
if (undefined === x_g6.x_32b) {
x_32g.x_32b = 0;
}
x_1j = x_g6.id;
}
if (!x_1j) {
x_1j = Ext.id();
x_g6.id = x_1j;
}
if (!this.x_32h(x_g6)) {
if (x_g6 instanceof Ext.Toolbar.Item) {
var x_32i = x_g6.x_32b;
x_g6 = Ext.get(x_g6.getEl().id);
x_32g.x_32b = x_32i;
}
x_32g.x_32j = this;
}
x_2se(x_g6, x_32g);
return x_1j;
},

x_32h: function (x_g6) {
return (x_g6 instanceof kerio.lib.x_324);
},

x_32k: function () {
return this.x_326;
},

x_32l: function (x_fk) {
this.x_326 = x_fk;
},

x_32m: function(x_1g4) {
var
x_32n = this.x_32d().items,
x_42 = x_32n.length,
x_32o = new kerio.lib.x_32p(),
x_41,
x_q1;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_q1 = x_32n[x_41];
if (!x_q1) {
continue; }
if (x_q1._kx && x_q1._kx.x_2vk) {
x_q1 = x_q1._kx.x_2vk; }
if (x_q1.x_32m) {
x_32o.x_55(x_q1.x_32m(x_1g4), x_32o.x_32q); }
else if (x_q1 instanceof kerio.lib.x_32r){
if (x_q1.x_o4) {
if (!x_q1.x_o4(x_1g4)) {
if (x_32o.x_o4()) { x_32o.x_32s(x_q1.x_320, [], x_q1);
}
x_32o.x_32t('' === x_q1.x_2t());
}
}
}
} return x_32o;
},

x_o4: function(x_bf) {
var
x_2t2 = (false !== x_bf), x_s8;
x_s8 = this.x_32m(x_2t2);
return x_s8.x_o4(x_2t2);
}
});


kerio.lib.x_32u = function (x_2vk) {
this.x_32v = x_2vk;
if (x_2vk.x_2o.rendered) {
this.x_32w();
}
else {
x_2vk.x_2o.on('render', this.x_32w, this);
}
this.x_32x();
this.x_32y = 0; };
kerio.lib.x_32u.prototype = {

x_32w: function () {
this.x_32z = new Ext.KeyNav(this.x_32v.x_2o.getEl(), {
tab: function (x_330) {
var x_331;
if (true !== x_330.ctrlKey) {
x_330.stopEvent();
x_331 = kerio.lib.x_2uq.x_332();
if (x_331 && x_331 != this.x_32v) { x_331.x_333.x_334();
}
else {
this.x_335(true === x_330.shiftKey);
}
}
},
defaultEventAction: 'preventDefault',
scope: this
});
},

x_32x: function () {
var
x_336,
x_337,
x_338,
x_339,
x_33a,
x_33b,
x_33c;
x_336 = this.x_32v.x_2o.findBy(
function(x_323) {
var x_33d = x_323.layout;
return ((x_33d == 'card') || (x_33d instanceof Ext.layout.CardLayout));
}
);
x_337 = x_336.length;
for (x_338 = 0; x_338 < x_337; x_338++) {
x_339 = x_336[x_338];
x_339.on('add', this.x_33e, this);
x_33a = x_339.items;
if (x_33a) {
x_33b = x_33a.getCount();
for (x_33c = 0; x_33c < x_33b; x_33c++) {
this.x_33f(x_33a.itemAt(x_33c));
}
}
}
},

x_33e: function () {
this.x_32x();
},

x_33f: function (x_33g) {
var
x_33h = x_33g.ownerCt instanceof Ext.TabPanel,
x_33i = x_33h ? 'activate' : 'show',
x_33j = x_33h ? 'deactivate' : 'hide';
x_33g.on(x_33i, this.x_33k, this);
x_33g.on(x_33j, this.x_33l, this);
},

x_33k: function (x_2bo) {
var
x_33m = this.x_32v,
x_33n,
x_33o;
if (x_33m.x_2o.isVisible()) {
x_33n = x_2bo._kx;
x_33o = (x_33n && (undefined !== x_33n.x_33p)) ? x_33n.x_33p : 0;
this.x_33q(x_33o);
this.x_334();
}
},

x_33l: function (x_2bo) {
kerio.lib.x_2sf(x_2bo, {
x_33p: this.x_33r()
});
},

x_33s: function (x_g6) {
this.x_32y = this.x_33t(this).indexOfKey(x_g6.id);
},

x_335: function (x_31n) {
var x_ij = this.x_33u(x_31n);
if (null === x_ij) {
this.x_32v.x_2o.focusEl.focus();
}
else {
this.x_33v(x_ij);
}
},

x_33w: function (x_g6) {
var
x_2b = x_g6._kx ? x_g6._kx.x_2vk : null,
x_s8;
if (x_2b) {
x_s8 = (x_2b.x_2fb() && !x_2b.x_31() && !x_2b.x_5p());
}
else {
x_s8 = ((true !== x_g6.hidden) && (true !== x_g6.disabled) && (true !== x_g6.readOnly));
}
return x_s8;
},

x_33v: function (x_g6) {
var x_2vk = this.x_32v;
if ('number' == Ext.type(x_g6)) {
x_g6 = this.x_33x(x_g6);
}
if (!x_g6) { return;
}
if (x_g6.x_2o) { x_g6 = x_g6.x_2o;
}
if (x_2vk.x_2o.isVisible()) {
if (Ext.isIE && (false !== x_2vk.x_33y)) {
x_2vk.x_33y = false;
x_g6.focus.defer(10, x_g6);
}
else {
x_g6.focus();
}
}
else {
this.x_33q(this.x_33z(x_g6));
}
},

x_33u: function (x_31n) {
var
x_340 = this.x_32y,
x_ij = x_340,
x_341 = (x_31n ? -1 : 1),
x_1e = this.x_33t(),
x_342 = x_1e.getCount(),
x_g6;
do {
x_ij += x_341;
if (x_340 == x_ij) {
x_ij = null;
break;
}
if (x_ij >= x_342) {
x_ij = 0;
break;
}
if (x_ij < 0) {
x_ij = x_342 - 1;
break;
}
x_g6 = x_1e.itemAt(x_ij);
}
while (!this.x_33w(x_g6));
return x_ij;
},

x_334: function () {
var
x_fk = this.x_32y,
x_g6;
if (-1 !== x_fk) {
x_g6 = this.x_33x(x_fk);
}
if (x_g6 && this.x_33w(x_g6)) {
this.x_33v(x_fk);
}
else {
this.x_335(false);
}
},

x_33q: function (x_fk) {
this.x_32y = x_fk;
},

x_33r: function () {
return this.x_32y;
},

x_343: function () {
return this.x_33t().itemAt(this.x_32y);
},

x_33x: function (x_fk) {
return this.x_33t().itemAt(x_fk);
},

x_33z: function (x_g6) {
return this.x_33t().indexOf(x_g6);
},

x_33t: function () {
var x_344 = new Ext.util.MixedCollection();
x_344.addAll(this.x_345(this.x_32v.x_2o));
return x_344;
},

x_346: function (x_g6) {
var x_2b;
if (x_g6.x_2o) {
x_2b = x_g6;
x_g6 = x_g6.x_2o;
}
else {
x_2b = x_g6._kx ? x_g6._kx.x_2vk : null;
}
x_g6.on('focus', this.x_33s, this);
if (!(x_2b instanceof kerio.lib.x_4g)) {
x_g6.on('focus', function (x_2o) {
x_2o.addClass('focusedItem');
}, x_g6);
x_g6.on('blur', function (x_2o) {
x_2o.removeClass('focusedItem');
}, x_g6);
}
kerio.lib.x_2sf(x_g6, {x_347: true});
},

x_345: function (x_2o, x_348, x_349) {
var
x_31k,
x_34a,
x_34b,
x_2b,
x_41,
x_33d,
x_32,
x_5v,
x_34c;
if (!x_348) {
x_348 = [];
}
x_33d = x_2o.layout;
if ((true !== x_349) && (x_33d instanceof Ext.layout.CardLayout) && (null !== x_33d.activeItem)) {
x_2o = x_33d.activeItem;
}
x_31k = x_2o.items;
if(x_31k){
for(x_41 = 0, x_34a = x_31k.getCount(); x_41 < x_34a; x_41++){
x_34b = x_31k.itemAt(x_41);
x_348 = this.x_345(x_34b, x_348, x_349);
}
}
x_2b = x_2o._kx ? x_2o._kx.x_2vk : null;
if (x_2b instanceof kerio.lib.x_34d) {
x_5v = x_2b.x_5v;
for (x_34c in x_5v) {
x_32 = x_5v[x_34c];
x_348 = x_348.concat(this.x_34e(x_32));
}
}
if (x_2b instanceof kerio.lib.x_26) {
x_348 = x_348.concat(this.x_34e(x_2b.x_32));
}
if (x_2o._kx && x_2o._kx.x_34f) {
x_348 = x_348.concat(this.x_34g(x_2o));
}
if (this.x_34h(x_2b)) {
x_348.push(x_2o);
}
return x_348;
},

x_34g: function (x_34i) {
var
x_1z = x_34i.buttons,
x_1e = [],
x_34j = x_1z.length,
x_1kb,
x_41;
for (x_41 = 0; x_41 < x_34j; x_41++) {
x_1kb = x_1z[x_41];
if (this.x_34h(x_1kb)) {
x_1e.push(x_1kb);
}
}
return x_1e;
},

x_34e: function (x_32) {
var
x_1z = [],
x_2z = x_32.x_1e,
x_g6,
x_34b,
x_1kp;
for (x_1kp in x_2z) {
x_g6 = x_2z[x_1kp];
if ('function' === Ext.type(x_g6)) {
continue;
}
if (x_g6.x_2o) {
x_34b = x_g6.x_2o;
}
else {
x_34b = x_g6;
}
if (this.x_34h(x_g6)) {
x_1z.push(x_34b);
}
}
return x_1z;
},

x_34h: function (x_q1) {
var
x_34k,
x_1b = kerio.lib;
x_34k = (x_q1 instanceof x_1b.x_4g || x_q1 instanceof x_1b.x_29s || x_q1 instanceof x_1b.x_2jf);
if (!x_34k && (x_q1 instanceof x_1b.x_32r)) {
x_34k = (!(x_q1 instanceof x_1b.x_2pm) && !(x_q1 instanceof x_1b.x_2po));
}
if (!x_34k) {
x_34k = (x_q1 instanceof Ext.Button);
}
if (x_34k) {
if (x_q1.x_2o) {
x_q1 = x_q1.x_2o;
}
if (!x_q1._kx || !x_q1._kx.x_347) {
this.x_346(x_q1);
}
x_34k = this.x_33w(x_q1);
}
return x_34k;
}
};

Ext.Window.prototype.afterShow = Ext.Window.prototype.afterShow.createSequence(function () {
if (this._kx && this._kx.x_2vk && this._kx.x_2vk.x_333) {
kerio.lib.x_2uq.x_34l(this._kx && this._kx.x_2vk);
}
});

Ext.Window.prototype.afterHide = Ext.Window.prototype.afterHide.createSequence(function () {
if (this._kx && this._kx.x_2vk && this._kx.x_2vk.x_333) {
kerio.lib.x_2uq.x_34m(this._kx && this._kx.x_2vk);
}
});

kerio.lib.x_2uq = {

x_34n: new Ext.util.MixedCollection(false, function (x_rw) {
return x_rw.x_1j;
}),

x_2a5: null,

x_34o: function (x_29e) {
this.x_2a5 = x_29e;
},

x_34l: function (x_331) {
var
x_34p = x_331.x_333,
x_o9 = kerio.lib.x_1t6(x_331.x_34q);
this.x_34n.add(x_331);
if (0 !== x_34p.x_33r()) {
x_34p.x_334();
}
else if (x_o9 && x_o9.x_2o) {
x_34p.x_33v(x_o9.x_2o);
}
else {
x_34p.x_334();
}
},

x_34m: function (x_331) {
var x_34p = x_331.x_333;
this.x_34n.remove(x_331);
x_34p.x_33q(0);
x_331 = this.x_34n.last();
x_34p = (x_331) ? x_331.x_333 : (this.x_2a5) ? this.x_2a5.x_333 : null;
if (x_34p) {
x_34p.x_334();
}
},

x_332: function () {
return this.x_34n.last();
}
};


Ext.MessageBox.show = Ext.MessageBox.show.createInterceptor(function (x_6q){
var x_34r = this.getDialog(),
x_1b = kerio.lib,
x_2se = x_1b.x_2sf,
x_2vk,
x_34p;
x_2se(x_34r, {x_6q: x_6q});
if (!x_34r._kx || !x_34r._kx.x_2vk) {
x_2vk = new x_1b.x_324();
x_2vk.x_2o = x_34r;
x_2se(x_34r, {
x_2vk: x_2vk,
x_34f: true
});
x_34p = new x_1b.x_32u(x_2vk);
x_2vk.x_333 = x_34p;
x_34p.x_32w.call(x_34p);
x_2se(x_34r, {
x_34s: {
ok: 0,
yes: 1,
no: 2,
cancel: 3
}
});

x_2vk.x_34t = function (x_31n) {
var
x_34p = this.x_333,
x_34u,
x_33o,
x_ij, x_g6;
x_34u = x_34p.x_33t();
x_33o = x_34u.getCount() - 1;
x_ij = x_34p.x_33r() + (x_31n ? -1 : 1);
if ((x_ij < 0) || (x_ij > x_33o)) {
x_ij = x_31n ? x_33o : 0;
}
x_g6 = x_34u.itemAt(x_ij);
x_34p.x_33v(x_g6);
};

x_34r.on('show', function (x_34r) {
this.x_32z = new Ext.KeyNav(x_34r.getEl(), {
left: function (x_330) {
this.x_34t(true);
},
right: function (x_330) {
this.x_34t(false);
},
scope: this,
defaultEventAction: 'doNothingWithEvent'
});
}, x_2vk, {
single: true,
scope: x_2vk
});
x_34r.show = x_34r.show.createInterceptor(function () {
var x_33n = this._kx,
x_2vk = x_33n.x_2vk,
x_34v = x_33n.x_6q.buttons,
x_1z = this.buttons,
x_34w = x_33n.x_2td || '',
x_2td = null,
x_34s = x_33n.x_34s,
x_34u,
x_fk;
delete x_33n.x_2td;
x_34u = x_2vk.x_333.x_33t();
if (x_34v) {
x_34w = x_34w.toLowerCase();
if (true === x_34v[x_34w]) {
x_2td = x_1z[x_34s[x_34w]];
}
else {
if (true === x_34v.cancel) {
x_2td = x_1z[x_34s.cancel];
}
else if (true === x_34v.no) {
x_2td = x_1z[x_34s.no];
}
}
}
if (!x_2td) {
x_2td = this.focusEl;
}
x_fk = x_34u.indexOf(x_2td);
if (-1 !== x_fk) {
this.focusEl = x_2td;
x_2vk.x_333.x_33v(x_2td);
}
}, x_34r);
}
});

Ext.tree.TreeNodeUI.prototype.render = Ext.tree.TreeNodeUI.prototype.render.createSequence(function () {
var
x_1pg = this.node.getOwnerTree(),
x_1h = Ext.get(this.anchor);
if (Ext.isIE) {
x_1h.on('focus', function () {
this._kx.x_2xn.focus();
}, x_1pg);
}
else {
x_1h.on('focus', function () {
this.fireEvent('focus', this);
}, x_1pg);
x_1h.on('blur', function () {
this.fireEvent('blur', this);
}, x_1pg);
}
});
Ext.tree.TreeNodeUI.prototype.focus = function () {
var
x_34x = this.node.getOwnerTree(),
noscroll,
l;
if (!this.node.preventHScroll) {
try{
if (Ext.isIE) {
x_34x.focus();
}
else {
this.anchor.focus();
}
}
catch(x_34y){}
}
else {
try{
noscroll = x_34x.getTreeEl().dom;
l = noscroll.scrollLeft;
if (Ext.isIE) {
x_34x.focus();
}
else {
this.anchor.focus();
}
noscroll.scrollLeft = l;
}
catch(x_34z){}
}
};
Ext.tree.TreePanel.prototype.focus = function () {
var x_1pe;
if (Ext.isIE) {
this._kx.x_2xn.focus();
}
else {
x_1pe = this.selModel.getSelectedNode();
if (!x_1pe) {
x_1pe = this.getRootNode();
if (x_1pe.rendered) {
x_1pe.select();
}
}
x_1pe.getUI().focus();
}
};
if (Ext.isIE) { Ext.tree.TreePanel.prototype.render = Ext.tree.TreePanel.prototype.render.createSequence(function () {
var x_2xn = this.body.createChild({tag: 'a', href: '#'});
kerio.lib.x_2sf(this, {x_2xn: x_2xn});
x_2xn.on('click', function (x_330) {
this.selModel.getSelectedNode().ui.onClick(x_330);
}, this);
x_2xn.on('focus', function () {
this.fireEvent('focus', this);
}, this);
x_2xn.on('blur', function () {
this.fireEvent('blur', this);
}, this);
});
}

Ext.grid.GridPanel.prototype.focus = function () {
var
x_350 = this.getView(),
x_2xn = x_350.focusEl,
x_2z1 = x_350.scroller.getScroll();
if (x_2xn) {
x_2xn.setLeftTop(x_2z1.left, x_2z1.top);
x_2xn.focus();
}
};
Ext.grid.GridView.prototype.renderUI = Ext.grid.GridView.prototype.renderUI.createSequence(function () {
var
x_2xn = this.focusEl,
x_351 = this.grid;
x_2xn.on('focus', function () {
this.fireEvent('focus', this);
}, x_351);
x_2xn.on('blur', function () {
this.fireEvent('blur', this);
}, x_351);
x_351.fireEvent('viewrender', x_351);
});

Ext.Window.prototype.onRender = Ext.Window.prototype.onRender.createSequence(function () {
var x_2xn = this.focusEl;
x_2xn.on('focus', function () {
this.fireEvent('focus', this);
}, this);
x_2xn.on('blur', function () {
this.fireEvent('blur', this);
}, this);
});

Ext.override(Ext.Button, {
onFocus : function(x_330){
if(!this.disabled){
this.el.addClass('x-btn-focus');
this.fireEvent('focus', this);
}
},
onBlur : function(x_330){
this.el.removeClass('x-btn-focus');
this.fireEvent('blur', this);
}
});

Ext.EventObject.doNothingWithEvent = Ext.emptyFn;

Ext.Window.prototype.focus = Ext.emptyFn;


kerio.lib.x_34d = function(x_1j, x_2v) {
kerio.lib.x_34d.superclass.constructor.call(this);
this.x_5v = null; this.x_60 = null; this.x_352 = {};
};
Ext.extend(kerio.lib.x_34d, kerio.lib.x_324,

{

x_353: {
tag: 'div'
},

x_354: {
x_64: 'topToolbar',
x_5w: 'bottomToolbar',
x_83: 'rightToolbar'
},

x_355: 'bottomStatusBar',

x_356: function (x_2v, x_2o) {
var x_5v = x_2v.x_5v,
x_32, x_2i0,
x_60 = x_2v.x_60,
x_357 = this.x_354;
if (x_60) {
x_60.x_3m = this;
x_60.x_2o.addClass(this.x_355);
this.x_60 = x_60;
}
if (x_5v) {
this.x_5v = {};
for (x_2i0 in x_5v) {
x_32 = x_5v[x_2i0];
if ('object' !== Ext.type(x_32)) {
continue;
}
x_32.x_3m = this;
x_32.x_2p = this;
x_32.x_2o.addClass(x_357[x_2i0]);
this.x_5v[x_2i0] = x_32;
this.x_32e(x_32);
}
this.x_358(x_2o);
}
if (x_60 || x_5v) {
x_2o.on('render', this.x_359, this);
}
},

x_358: function (x_2o) {
var x_32 = this.x_5v ? this.x_5v.x_83: null,
x_35a, x_2bn;
if (!x_32) {
return;
}
x_35a = x_32.x_2o;
x_35a.region = 'east';
if (this.x_5v.x_64) {
x_35a.addClass('topRightToolbar');
}
if (this.x_5v.x_5w) {
x_35a.addClass('bottomRightToolbar');
}
x_2o.region = 'center';
if (Ext.isIE) {
x_35a.on('render', this.x_35b);
}
x_2bn = new Ext.Panel({
border: false,
cls: 'rightToolbarCover',
layout: 'border',
items: [
x_2o,
x_35a
],
listeners: {
afterLayout: Ext.isIE ? this.x_35c : Ext.emptyFn
}
});
this.x_2bn = x_2bn;
},

x_35b: function(x_35d) {
x_35d.autoWidth = false;
var x_1u = x_35d.getSize().width;
kerio.lib.x_2sf(x_35d.ownerCt, {x_35e: x_1u});  },

x_35c: function(x_35d) {
var x_35f = x_35d.layout,
x_35g,
x_1u,
x_35h;
if (x_35d._kx) {
x_35g = (x_35f && x_35f.east) ? x_35f.east : null;
if (x_35g) {
x_1u = x_35d._kx.x_35e;
x_35h = x_35g.el.getWidth();
if (x_1u < x_35h) {
x_1u = x_35h;
x_35d._kx.x_35e = x_35h;
}
if (0 < x_1u) {
x_35g.el.setWidth(x_1u);
}
}
}
},

x_35i: function (x_2o) {
var x_35j = this.x_35k('x_5w');
this.x_60.x_2o.render(x_35j);
},

x_35l: function (x_2o) {
var x_35j, x_2i0, x_32,
x_5v = this.x_5v;
for (x_2i0 in x_5v) {
x_32 = x_5v[x_2i0];
if ('object' !== Ext.type(x_32)) {
continue;
}
if ('x_83' == x_2i0) { continue;
}
x_35j = this.x_35k(x_2i0);
x_32.x_2o.render(x_35j);
}
},

x_35k: function (x_35m) {
var x_35n,
x_35o = this.x_352[x_35m],
x_35p = false;
if (!x_35o) {
x_35p = ('x_64' == x_35m);
x_35n = this.x_35q(x_35m);
x_35o = x_35n[x_35p ? 'insertFirst' : 'createChild']({tag: 'div'});
this.x_352[x_35m] = x_35o;
}
return x_35o;
},

x_35q: function (x_35m) {
var x_35r = ('x_64' == x_35m),
x_290 = x_35r ? 'tbar' : 'bbar',
x_2o = this.x_2o,
x_35s = x_2o[x_290];
if (!x_35s) {
x_35s = x_2o.bwrap[x_35r ? 'insertFirst' : 'createChild']({
tag: 'div',
cls: x_2o[x_35r ? 'tbarCls' : 'bbarCls']
});
x_2o[x_290] = x_35s;
}
return x_35s;
},

x_359: function (x_2o) {
if (this.x_60) {
this.x_35i(x_2o);
}
if (this.x_5v) {
this.x_35l(x_2o);
}
},

x_84: function (x_1yx){
var x_5v = this.x_5v,
x_60 = this.x_60,
x_2i0, x_32;
for (x_2i0 in x_5v) {
x_32 = x_5v[x_2i0];
if ('object' !== Ext.type(x_32)) {
continue;
}
x_32.x_84(x_1yx);
}
if (x_60) {
x_60.x_84(x_1yx);
}
},

x_85: function (x_35t) {
var x_5v = this.x_5v,
x_60 = this.x_60,
x_2i0, x_32;
for (x_2i0 in x_5v) {
x_32 = x_5v[x_2i0];
if ('object' !== Ext.type(x_32)) {
continue;
}
x_32.x_85(x_35t);
}
if (x_60) {
x_60.x_85(x_35t);
}
},

x_2k: function (x_2er) {
var x_5v = this.x_5v,
x_60 = this.x_60,
x_2i0, x_32;
x_2er = (false !== x_2er);
for (x_2i0 in x_5v) {
x_32 = x_5v[x_2i0];
if ('object' !== Ext.type(x_32)) {
continue;
}
x_32.x_35u = x_2er;
}
if (x_60) {
x_60.x_35u = x_2er;
}
}
});


kerio.lib.x_2a3 = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2nj;
kerio.lib.x_2a3.superclass.constructor.call(this);
this.x_1e = [];    this.x_1j = x_1j;
this.x_35v = x_2v.x_29u;
var x_35w = {layout: 'border', items: [], cls: x_2v.x_1p || '', id: this.x_1j};
this.x_35x(x_35w, x_2v);
var x_2o;
if (this.x_35v) {
x_2o = new Ext.Viewport(x_35w);
}
else {
x_2o = new Ext.Panel(x_35w);
}
this.x_2o = x_2o;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
if (this.x_35v) {
this.x_333 = new kerio.lib.x_32u(this);
kerio.lib.x_2uq.x_34o(this);
}
};
Ext.extend(kerio.lib.x_2a3, kerio.lib.x_324,

{
x_35y : ['west' , 'center', 'east'],
x_35z : ['north', 'center', 'south'],
x_360: {
x_361: 'minSize',
x_362: 'maxSize',
x_363: 'titlebar',
x_29x: 'split',
x_kd: 'collapsible',
x_1y: 'title',
x_1p: 'cls'
},

x_35x: function(x_35w, x_2v) {
var x_364;
var x_1e;
var x_g6;
var x_365;
var x_2se = kerio.lib.x_2sf;
if (!x_35w._kx) {
x_35w._kx = {};
}
if (undefined === x_35w._kx.x_366) {
x_2se(x_35w, {
x_366: 0,    x_367: 0,
x_368: false
});
if (x_35w._kx.x_369) {
if ('H' == x_35w._kx.x_369) {
x_2v.x_29v = {};
x_2v.x_29v.x_1e = x_2v;
}
else {
x_2v.x_29z = {};
x_2v.x_29z.x_1e = x_2v;
}
}
}
if (x_2v.x_29v || x_2v.x_29z) {
if (x_2v.x_29v) {
x_2se(x_35w, {x_369: 'H'});
x_1e = x_2v.x_29v.x_1e;
}
else {
x_2se(x_35w, {x_369: 'V'});
x_1e = x_2v.x_29z.x_1e;
}
}
else {
x_1e = x_2v;
}
var x_36a = x_35w._kx.x_369;    for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_41];
x_35w._kx.x_369 = x_36a;    x_2se(x_35w, {x_36b: x_g6.x_36b});
if (x_g6.x_29v || x_g6.x_29z) {
x_364 = x_g6.x_29v ? 'H' : 'V';
if (x_36a != x_364) {
if (!('V' == x_36a && 1 == x_35w._kx.x_366 && !x_35w._kx.x_368)) {
if (this.x_36c(x_35w, x_1e, x_41)) {
break;
}
continue;
}
}
if (x_g6.x_29v) {
x_35w._kx.x_369 = 'H';
x_365 = x_g6.x_29v.x_1e;
}
else {
x_35w._kx.x_369 = 'V';
x_365 = x_g6.x_29z.x_1e;
}
this.x_35x(x_35w, x_365);
}
else {
if (this.x_36c(x_35w, x_1e, x_41)) {
x_35w._kx.x_369 = x_36a;
break;
}
else {
x_35w.defaults = {
border: false
};
}
}
}
x_35w._kx.x_369 = x_36a;
},

x_36c: function(x_35w, x_1e, x_nr) {
var x_36d;
var x_36e;
var x_36f;
var x_42 = x_1e.length;
var x_36g = (1 < x_35w._kx[x_36e] && 1 < (x_42 - x_nr));
var x_36h = x_1e[x_nr];
var x_36i;
var x_36j;
var x_36k = {items: [], _kx: {}};
var x_36l = [];
var x_36m;
if ('V' == x_35w._kx.x_369) {
x_36d = true;
x_36e = 'x_366';
x_36f = this.x_35z[x_35w._kx.x_366];
}
else {
x_36d = false;
x_36e = 'x_367';
x_36f = this.x_35y[x_35w._kx.x_367];
}
if (x_35w._kx.x_368 && 1 == x_35w._kx[x_36e]) {
x_35w._kx[x_36e]++;
if ('V' == x_35w._kx.x_369) {
x_36f = this.x_35z[x_35w._kx.x_366];
}
else {
x_36f = this.x_35y[x_35w._kx.x_367];
}
}
if (x_35w._kx.x_36b) {
x_36f = 'center';
x_35w._kx.x_368 = true;
x_35w._kx[x_36e]++;
}
if (x_36h.x_29v) {
x_36i = kerio.lib.x_2sl(x_36h.x_29v, null, this.x_36n.H);
}
else if (x_36h.x_29z) {
x_36i = kerio.lib.x_2sl(x_36h.x_29z, null, this.x_36n.V);
}
else {
x_36i = kerio.lib.x_2sl(x_36h, null, this.x_36n[x_35w._kx.x_369]);
}

x_36i.region = x_36f;
if ('center' == x_36f) {
x_36i.layout = 'fit';
if (this.x_35v) { x_36i.bodyStyle = 'border-top-width: 0';
}
}
if (x_36h.x_2a2) {
x_36i.layout = 'card';
x_36i.activeItem = 0;
}
Ext.apply(x_36i,
kerio.lib.x_2sl(x_36h, null, this.x_36n[x_35w._kx.x_369]), {
_kx: {x_1j: x_36h.x_1j},
listeners:	{
'render': {fn: this.x_36o, scope: this},
'resize': function() {
if (this.layout && !this.layout.monitorResize && this.layout.layout) {
}
}
}
}
);
x_35w.items.push(x_36i);
x_36j = x_35w.items[x_35w.items.length-1];
if (x_36h.x_29v || x_36h.x_29z || x_36g) {
if (x_36g) {
x_36k._kx.x_369 = x_35w._kx.x_369;
for (var x_41 = x_nr; x_41 < x_42; x_41++) {
x_36l.push(x_1e[x_41]);
}
}
else {
x_36l = x_1e[x_nr];
}
this.x_35x(x_36k, x_36l);
x_36j.layout = 'border';
x_36j.items = x_36k.items;
}
else {
if (x_36h.x_1x) {
x_36m = x_36h.x_1x;
x_36m.x_2p = this;
this.x_32e(x_36m);
var x_36p = x_36m.x_2bn || x_36m.x_2o;
if (this.x_35v) {
x_36j.items = [x_36p];
}
else {
x_36j = this.x_36q(x_36j, x_36p);
x_35w.items[x_35w.items.length-1] = x_36j;
}
if (x_36m.x_2o.rendered) {
x_36j.cls = x_36m.x_2o.initialConfig.ctCls;
}
}
}
if (1 == x_35w._kx[x_36e]) {
x_35w._kx.x_368 = true;
}
x_35w._kx[x_36e]++;
return x_36g;
},

x_36o: function(x_35d) {
var x_36r;
if (x_35d._kx && x_35d._kx.x_36r) {  x_36r = x_35d._kx.x_36r;
}
else if (x_35d.initialConfig._kx && x_35d.initialConfig._kx.x_1j) {
x_36r = x_35d.initialConfig._kx.x_1j;
}
if (x_36r) {
this.x_1e[x_36r] = x_35d;
}
},

x_2bh: function(x_2v) {
var x_1x = x_2v.x_1x,
x_2ba;
if (!x_1x) {    return;
}
var x_1j = x_2v.x_1j;
var x_35d = this.x_1e[x_1j];
x_35d.add(x_1x.x_2o);
if (x_35d.layout.setActiveItem) {    var x_36s = null;
if (x_35d.layout.activeItem) {
if (x_35d.layout.activeItem._kx) {
x_36s = x_35d.layout.activeItem._kx.x_2vk;
}
else { x_36s = x_35d.layout.activeItem.items.items[0].id;
}
}
x_35d.layout.setActiveItem(x_1x.x_1j);
if (null !== x_36s) {
this.x_325.removeKey(x_36s);
}
x_2ba = x_1x.x_2ba ? x_1x.x_2ba : x_1x;  if (!x_2ba.x_2p) {
x_2ba.x_2p = this;
}
this.x_32e(x_2ba);
}
if (x_1x.x_2o.syncSize) {    x_1x.x_2o.syncSize();
}
x_35d.doLayout();
},

x_24: function() {
this.x_2o.el.mask();
},

x_36t: function() {
this.x_2o.el.unmask();
},

x_36q: function(x_36i, x_2o) {
var x_36u = x_36i.listeners,
x_74,
x_2q,
x_36v;
for (x_36v in x_36u) {
x_74 = x_36u[x_36v];
x_2q = x_74.scope;
if (x_74.fn) {
x_74 = x_74.fn;
}
x_2o.addListener(x_36v, x_74, x_2q);
}
delete x_36i.layout;
delete x_36i.listeners;
if (x_36i._kx.x_1j) {
kerio.lib.x_2sf(x_2o, {x_36r: x_36i._kx.x_1j});
}
x_36i = Ext.applyIf(x_2o, x_36i);
return x_36i;
}
});    
(function () {
var x_36w = kerio.lib.x_2a3.prototype;
x_36w.x_36n = {
'H': Ext.apply({}, x_36w.x_360, {x_29y: 'width'}),
'V': Ext.apply({}, x_36w.x_360, {x_29y: 'height'})
};
})();


kerio.lib.x_37 = function(x_1j, x_2v)
{
this.x_3h = kerio.lib.x_6b.x_1l4;
kerio.lib.x_37.superclass.constructor.call(this);
this.x_1j = x_1j;
this.x_1e = [];    x_2v = kerio.lib.x_2r7(x_2v);
var x_1p = 'toolbarButtons'; if (undefined !== x_2v.x_1p) {
x_1p += ' ' + x_2v.x_1p;
}
x_2v.x_1p = x_1p;
var x_2o = this.x_2ql(x_2v);
kerio.lib.x_2sf(x_2o, {x_2vk: this});
this.x_2o = x_2o;
kerio.lib.x_2qj(this, x_1j);
if (x_2v.x_4c) {
this.x_4c = x_2v.x_4c;
}
if (true === x_2v.x_31) {
this.x_84(true);
}
if (true === x_2v.x_5p) {
this.x_85(true);
}
this.x_2o.on('render', this.x_36x, this);
};
Ext.extend(kerio.lib.x_37, kerio.lib.x_324,

{
x_2db: false,
x_1kn: false,
x_36y: {
x_1j: 'x_1j', x_23: 'text',
x_36z: 'hidden',
x_x6: 'icon',
x_1p: 'cls',
x_1y: 'tooltip',
x_25: 'handler',
x_31: 'disabled',
x_1m: 'hidden'
},

x_2ql: function(x_2v) {
var
x_2o,
x_2y,
x_1ao,
x_370 = {id: this.x_1j, cls: x_2v.x_1p, buttons: []},
x_1z = x_2v.x_1e,
x_se = kerio.lib.x_2u0;
if (!x_1z) {
return;
}
this.x_371 = x_370;
this.x_372 = (true === x_2v.x_7v);
this.x_373 = x_2v.x_1jd || kerio.lib.x_6b.x_2p8;
for (var x_41 = 0, x_42 = x_1z.length; x_41 < x_42; x_41++) {
x_2y = x_1z[x_41];
x_2y.x_32 = this;
if ('string' == typeof(x_2y)) {
if ('->' == x_2y) {
this.x_374 = true;
}
x_370.buttons.push(x_2y);
}
else if (x_2y.x_1x) {
this.x_375(x_2y);
}
else {
if (x_2y.x_x6) {
x_1ao = x_2y.x_23 ? 'x-btn-text-icon' : 'x-btn-icon';
x_2y.x_1p = x_se(x_2y.x_1p, x_1ao);
}
if (true === x_2y.x_2m4) {
x_2y.x_13f = true;
x_2y.x_1e = this.x_376(x_2y.x_2m5);
}
if (x_2y.x_1e) {
this.x_377(x_2y);
}
else {
this.x_378(x_2y);
}
}
}
if (this.x_372) {
x_370.x_1jc = (true === x_2v.x_1jc);
x_370.x_1jd = this.x_373;
if (true !== this.x_374 && !x_370.x_1jc) {
x_370.buttons.push('->');
}
x_2o = new kerio.lib.x_379(x_370);
}
else {
x_2o = new Ext.Toolbar(x_370);
}
if (x_2v.x_4v) {
this.x_37a(x_2v);
}
return x_2o;
},

x_378: function(x_2y) {
var x_37b = kerio.lib.x_2sl(x_2y, null, this.x_36y);
var x_37c;
var x_2se = kerio.lib.x_2sf;
var x_31, x_5p;
var x_se = kerio.lib.x_2u0;
x_31 = (undefined === x_2y.x_31) ? false : x_2y.x_31;
x_5p = (undefined === x_2y.x_5p) ? false : x_2y.x_5p;
x_2se(x_37b, {
x_1j: x_37b.x_1j,
x_31: x_31,
x_5p: x_5p,
x_24: x_2y.x_24
});
delete x_37b.x_1j;
delete x_37b.x_24;
this.x_37d(x_37b);
x_37b.cls = x_se(x_37b.cls, x_31 ? 'disabled' : 'enabled');
if (x_37b.text) {
x_37b.minWidth = this.x_373;
}
if (x_37b.handler) {
x_2se(x_37b, {x_rx: x_37b.handler});
}
if (x_2y.x_2d8) {
x_2se(x_37b, {x_37e: x_2y.x_2d8});
}
if (true === x_2y.x_20) {
x_37b.cls = x_se(x_37b.cls, 'defaultButton');
x_2se(x_37b, {x_20: x_2y.x_20});
}
x_37c = new Ext.Toolbar.Button(x_37b);
x_2se(x_37c, {x_32: this});
if (this.x_2o) {
this.x_2o.add(x_37c);
}
else {
this.x_371.buttons.push(x_37c);
}
this.x_36o(x_2y.x_1j, x_37c);
},

x_377: function(x_2y) {
var x_37f = kerio.lib.x_2sl(x_2y, null, this.x_36y);
var x_1j = (undefined === x_2y.x_1j) ? kerio.lib.x_2tl() : x_2y.x_1j;
var x_1jp = new kerio.lib.x_29p(this.x_1j + '_' + x_1j, {x_1e: x_2y.x_1e}, this);
var x_37g;
var x_2se = kerio.lib.x_2sf;
x_2se(x_37f, {
x_1j: x_37f.x_1j,
x_24: x_2y.x_24
});
delete x_37f.x_1j;
delete x_37f.x_24;
this.x_37d(x_37f);
x_37f.menu = x_1jp.x_2o;
if (x_37f.text) {
x_37f.minWidth = this.x_373;
}
if (x_37f.handler) {
x_2se(x_37f, {x_rx: x_37f.handler});
}
if (undefined === x_2y.x_13f) {
x_37f.xtype = 'tbsplit';
}
x_37g = x_2y.x_13f
? new Ext.Toolbar.Button(x_37f)
: new Ext.Toolbar.MenuButton(x_37f);
x_2se(x_37g, {x_32: this});
if (x_37g.menu) {
x_2se(x_37g.menu, {x_37h: x_37g});
}
if (this.x_2o) {
this.x_2o.add(x_37g);
}
else {
this.x_371.buttons.push(x_37g);
}
this.x_36o(x_2y.x_1j, x_37g);
},

x_37d: function (x_2v) {
var x_1p = ((true === this.x_374) ? 'buttonLeftSpacer' : 'buttonRightSpacer');
if (true !== this.x_372) {
if (x_2v.ctCls) {
x_2v.ctCls += ' ' + x_1p;
}
else {
x_2v.ctCls = x_1p;
}
}
},

x_376: function(x_25) {
var
x_41,
x_37i = kerio.lib.x_6b.x_37i;
for (x_41 = 0; x_41 < x_37i.length; x_41++) {
x_37i[x_41].x_25 = x_25;
}
return x_37i;
},

x_375: function(x_2y) {
var x_35a = this.x_2o;
var x_2o = x_2y.x_1x.x_2o;
var x_23 = x_2o.fieldLabel;
var x_37j;
var x_37k;
x_2y.x_1x.x_9d = this;
if (x_35a) {
if (x_23 && '' !== x_23) {
x_35a.add(x_23);
x_35a.addSpacer();
}
x_35a.addField(x_2o);
if (kerio.lib.x_6b.x_1kk == x_2y.x_1x.x_3h) { x_37j = x_2y.x_1x.x_1u;
if ((undefined === x_37j) || (typeof(x_37j) != 'string')
|| (x_37j.indexOf('%') == -1)) {
return;
}
x_37k = x_2o.el.dom.parentNode.parentNode;
x_37k.style.width = x_37j;
x_37k.className = 'x-kerio-form-select-resizable';   }
}
else {
if (x_23 && '' !== x_23) {
this.x_371.buttons.push(x_23);
this.x_371.buttons.push(' '); }
this.x_371.buttons.push(x_2o);
}
this.x_36o(x_2y.x_1j, x_2o);
},

x_aa: function(x_2b, x_fk) {
var x_35a = this.x_2o,
x_2o = x_2b.x_2o,
x_23 = x_2o.fieldLabel,
x_370 = [],
x_41, x_42;
x_2b.x_9d = this;
if (x_35a.rendered) {
if (undefined === x_fk) {
x_35a.add(x_2o);
x_35a.insertButton(x_fk, x_2o);
}
if (x_23 && '' !== x_23) {
x_35a.insertButton(x_fk, new Ext.Toolbar.Spacer());
x_35a.insertButton(x_fk, new Ext.Toolbar.TextItem(x_23));
}
}
else {
if (x_23 && '' !== x_23) {
x_370.push(x_23);
x_370.push(' '); } else {
x_370 = [' ']; }
x_370.push(x_2o);
x_35a.buttons = (x_35a.buttons || this.x_371.buttons);
if (undefined === x_fk) {
x_fk = x_35a.buttons.length;
}
for (x_41 = 0, x_42 = x_370.length; x_41 < x_42; x_41++) {
x_35a.buttons.splice(x_fk, 0, x_370[x_41]);
x_fk++;
}
}
this.x_36o(x_2b.x_1j, x_2b.x_2o);
},

x_36o: function(x_fk, x_2o, x_bl) {
var x_2se = kerio.lib.x_2sf,
x_33g = x_2o,
x_2b = null;
if (!x_2o.initialConfig && x_2o.id) {
x_33g = Ext.getCmp(x_2o.id) || x_2o;
}
if (x_33g.initialConfig && x_33g.initialConfig.handler) {
x_2se(x_33g, {x_37l: x_33g.handler});
x_33g.handler = this.x_37m;
}
x_2se(x_33g, {x_32: this});
if (!(x_33g instanceof Ext.Toolbar.Spacer)    &&
!(x_33g instanceof Ext.Toolbar.Fill)	   &&
!(x_33g instanceof Ext.Toolbar.Separator) &&
!(x_33g instanceof Ext.Toolbar.TextItem)) { this.x_32e(x_33g);
}
x_2b = x_33g._kx ? x_33g._kx.x_2vk : null;

if ((x_2b instanceof kerio.lib.x_32r) && x_2b.x_a6) {
this.x_1e[x_2b.x_a6] = x_2b;
}
else {
this.x_1e[x_33g._kx.x_1j || x_33g.id] = x_33g;
}
},

x_37m: function(x_34b, x_96) {
var
x_37n = x_34b._kx,
x_32 = x_37n.x_32,
x_rx = x_37n.x_37l,
x_9d = x_32.x_2p,
x_1le = x_37n.x_37e,
x_37o = x_32.x_31s(),
x_37p = false,
x_2pa;
if (x_37o && x_37o.x_1al) {
x_2pa = x_34b._kx.x_24;
if (false !== x_2pa) {  x_37p = true;
x_2pa = x_2pa ? x_2pa : x_37o.x_1al;
kerio.lib.x_1k8(x_37o, x_2pa);
}
}
if (true !== x_1le) { x_9d = x_37n.x_37e;
}
if (!x_1le || x_9d.x_o4()) { return x_rx.call(x_32, x_32,
{x_1j: x_34b._kx.x_1j, x_23: x_34b.text, x_x6: x_34b.icon, x_2so: x_34b.el.dom}
);
}
if (x_37p) {
kerio.lib.x_1k9(x_37o);
}
},

x_146: function(x_1ko, x_23) {
var x_g6 = this.x_1e[x_1ko];
x_g6.setText(x_23);
if (x_g6._kx.x_37q) {
x_g6._kx.x_37q.setText(x_23);
}
},

x_84: function (x_1yx) {
var
x_g6,
x_5p,
x_1ko,
x_2se = kerio.lib.x_2sf,
x_2o = this.x_2o,
x_37r = (x_2o.rendered ? x_2o.items.items : x_2o.buttons);
x_1yx = (undefined === x_1yx) ? true : x_1yx;
this.x_1kn = x_1yx;
for (var x_41=0, x_42=x_37r.length; x_41 < x_42; x_41++) {
x_g6 = x_37r[x_41];
x_2se(x_g6, {x_31: x_1yx});
x_5p = (x_g6._kx && (undefined !== x_g6._kx.x_5p)) ? x_g6._kx.x_5p : false;
if (!x_5p) {
x_1ko = x_g6._kx && x_g6._kx.x_1j ? x_g6._kx.x_1j : x_g6.id;
this.x_3b(x_1ko, !x_1yx);
}
}
},

x_31: function () {
return this.x_1kn;
},

x_3b: function(x_1ko, x_bg) {
var x_g6,
x_31 = (false === x_bg),
x_1e = this.x_1e,
x_41, x_42, x_37s,
x_sd = x_31 ? 'enabled' : 'disabled',
x_se    = x_31 ? 'disabled' : 'enabled';
if (!Ext.isArray(x_1ko)) {
x_1ko = [x_1ko];
}
for (x_41 = 0, x_42 = x_1ko.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_1ko[x_41]];
if (x_g6) {
x_g6.setDisabled(x_31);
if (x_g6.rendered) {
x_g6.el.replaceClass(x_sd, x_se);
}
else {
x_37s = x_g6.initialConfig;
if (!x_37s.cls) {
x_37s.cls = '';
}
x_37s.cls.replace(x_sd, x_se);
}
if (x_g6._kx.x_37q) {
x_g6._kx.x_37q.setDisabled(x_31);
}
kerio.lib.x_2sf(x_g6, {x_31: x_31});
}
else {
this.x_37t(x_1ko[x_41], 'disabled', x_31);
}
}
},

x_lc: function(x_1ko) {
this.x_3b(x_1ko, false);
},

x_jp: function(x_37u, x_1v3) {
var x_g6, x_41, x_42, x_1ko;
x_1v3 = (false !== x_1v3);
if (!Ext.isArray(x_37u)) {
x_37u = [x_37u];
}
for (x_41 = 0, x_42 = x_37u.length; x_41 < x_42; x_41++) {
x_1ko = x_37u[x_41];
x_g6 = this.x_1e[x_1ko];
if (x_g6) {
x_g6.setVisible(x_1v3);
if (x_g6._kx.x_37q) {
x_g6._kx.x_37q.setVisible(x_1v3);
}
}
else {
this.x_37t(x_1ko, 'hidden', !x_1v3);
}
}
},

x_jq: function(x_1ko) {
this.x_jp(x_1ko, false);
},

x_37v: function() {
return 82;
},

x_4c: function(x_4d, x_4e) {
kerio.lib.x_nq('Internal error: Override x_4c method in object with ID ' + this.x_1j
+ ' to make this object behaving as an observer', 'toolbar.js');
}, 
x_37t: function(x_1ko, x_1mc, x_1o) {
var x_1kb;
for (var x_41 in this.x_371.buttons) {
x_1kb = this.x_371.buttons[x_41];
if (x_1kb._kx && x_1kb._kx.x_1j && x_1kb._kx.x_1j == x_1ko) {
x_1kb[x_1mc] = x_1o;
if ('disabled' == x_1mc) {
kerio.lib.x_2sf(x_1kb, {x_31: x_1o});
}
}
}
},

x_37a: function(x_2v) {
this.x_37w = x_2v;
var x_5u = new kerio.lib.x_29p(this.x_1j + '_' + 'x_37x', {});
var x_37y = x_5u.x_2o;
kerio.lib.x_2sf(x_37y, {x_37z: this});
x_37y.show = function(x_380, x_381, x_382) {
kerio.lib.x_2sf(this, {
x_380: x_380,
x_381: x_381,
x_382: x_382
});
this._kx.x_37z.x_383.call(this._kx.x_37z);
};
x_37y.showAt = function(x_381, x_382) {
kerio.lib.x_2sf(this, {
x_381: x_381,
x_382: x_382
});
this._kx.x_37z.x_383.call(this._kx.x_37z);
};
this.x_5u = x_5u;
},  
x_383: function() {
var x_384 = {x_1e: this.x_385(this.x_37w.x_1e)};
var x_3l = this.x_3m;
var x_386 = this.x_5u.x_2o;
var x_5u = new kerio.lib.x_29p(this.x_1j + '_' + 'x_1jp', x_384);
this.x_5u = x_5u;
if (x_3l) {
x_3l.x_2o._kx.x_5t = x_5u.x_2o;
}
if ('string' == typeof x_386._kx.x_381) {
x_5u.x_1v3(x_386._kx.x_380, x_386._kx.x_381, x_386._kx.x_382);
}
else {
x_5u.x_387(x_386._kx.x_381, x_386._kx.x_382);
}
this.x_388 = true;
kerio.lib.x_2qk(this.x_1j + '_' + 'x_37x');
},  
x_389: function(x_1e, x_fk) {
var x_38a = false;
var x_g6;
for (var x_41 = x_fk, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_41];
if (' ' == x_g6 || '->' == x_g6) {
continue;
}
else {
x_38a = true;
break;
}
}
return x_38a;
},  
x_385: function(x_1e) {
var x_38b = [];
var x_1jq;
var x_g6;
var x_1ko;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_41];
if (' ' == x_g6) {
continue;    }
if ('->' == x_g6) {
if (x_41 > 0 && x_41 < x_42 - 1 && this.x_389(x_1e, x_41 + 1)) {
x_1jq = '-';    }
else {
continue;    }
}
else if ('string' == typeof(x_g6)) {
x_1jq = x_g6;
}
else {
x_1jq = {};
x_1ko = x_g6.x_1j;
x_1jq.x_23 = x_g6.x_23;
x_1jq.x_cy = x_g6.x_cy;
if (x_1ko) {
x_1jq.x_hs = {x_32: this, x_1ko: x_1ko};
x_1jq.x_31 = this.x_1e[x_1ko].disabled;
x_1jq.x_1m = this.x_1e[x_1ko].hidden;
}
if (x_g6.x_1e) {    x_1jq.x_1e = this.x_385(x_g6.x_1e);
}
}
x_38b.push(x_1jq);
}
return x_38b;
},  
x_36x: function () {
this.x_32z = new Ext.KeyNav(this.x_2o.getEl(), {
left: function (x_330) {
if (!this.x_38c(x_330)) {
x_330.stopEvent();
this.x_38d(true);
}
},
right: function (x_330) {
if (!this.x_38c(x_330)) {
x_330.stopEvent();
this.x_38d(false);
}
},
up: this.x_38e,
down: this.x_38e,
scope: this,
defaultEventAction: 'doNothingWithEvent'
});
},

x_38e: function (x_4e) {
if (this.x_38c(x_4e)) {
x_4e.stopEvent();
}
},

x_38c: function (x_96) {
var x_38f = Ext.getCmp(x_96.getTarget().id);
return x_38f instanceof Ext.form.Field;
},

x_38d: function (x_31n) {
x_31n = (undefined === x_31n) ? false : x_31n;
var x_34u = this.x_32d();
var x_341 = (x_31n ? -1 : 1);
var x_38g = this.x_32k();
x_38g = (null === x_38g) ? 0 : x_38g;
var x_38h = x_38g;
var x_38i = x_34u.length;
do {
x_38g += x_341;
if (x_38h == x_38g) {
break;
}
if (x_38g >= x_38i) {
x_38g = 0;
}
if (x_38g < 0) {
x_38g = x_38i - 1;
}
}
while (x_34u.get(x_38g).hidden || x_34u.get(x_38g).disabled);
this.x_32l(x_38g);
x_34u.get(x_38g).focus();
},

x_2i5: function (x_1ko) {
var x_g6,
x_1e,
x_41, x_42,
x_2o = this.x_2o,
x_31 = false;
if (x_2o.rendered) {
x_g6 = this.x_1e[x_1ko];
if (x_g6) {
if (x_g6.x_2o) {
x_31 = x_g6.x_31();
}
else if (undefined !== x_g6.disabled) {
x_31 = x_g6.disabled;
}
}
}
else {
x_1e = x_2o.initialConfig.buttons;
for (x_41=0, x_42=x_1e.length; x_41<x_42; x_41++) {
x_g6 = x_1e[x_41];
if (x_g6._kx && (x_1ko == x_g6._kx.x_1j)) {
x_31 = (true === x_g6.disabled);
break;
}
}
}
return x_31;
},

x_85: function (x_35t) {
var x_2se = kerio.lib.x_2sf,
x_2o = this.x_2o,
x_38j = x_2o.rendered,
x_37r = (x_38j ? x_2o.items.items : x_2o.buttons),
x_g6,
x_31;
x_35t = (undefined === x_35t) ? true : x_35t;
this.x_2db = x_35t;
this.x_2db = x_35t;
for (var x_41=0, x_42=x_37r.length; x_41 < x_42; x_41++) {
x_g6 = x_37r[x_41];
x_2se(x_g6, {x_5p: x_35t});
x_31 = (x_g6._kx && (undefined !== x_g6._kx.x_31)) ? x_g6._kx.x_31 : false;
if (!x_31) {
if (x_38j) {
x_g6 = Ext.getCmp(x_g6.id);
if (x_g6) {
x_g6.setDisabled(x_35t);
}
}
else {
x_g6.disabled = x_35t;
}
}
}
},

x_5p: function () {
return this.x_2db;
},

x_29: function (x_1ko) {
var x_g6,
x_1z,
x_2o = this.x_2o,
x_41, x_42;
if (!x_2o.rendered) {
x_1z = x_2o.buttons;
for (x_41 = 0, x_42 = x_1z.length; x_41 < x_42; x_41++) {
x_g6 = x_1z[x_41];
if (x_g6._kx && x_g6._kx.x_2vk && (x_1ko === x_g6._kx.x_2vk.x_a6))	{
x_g6 = x_g6._kx.x_2vk;
break;
}
}
}
else {
x_g6 = this.x_1e[x_1ko];
}
if (x_g6 instanceof kerio.lib.x_32r) {
return x_g6;
}
return null;
},

x_38k: function (x_38l, x_1p) {
var x_1jq = this.x_1e[x_38l];
if (!x_1jq) {
return;
}
x_1jq.setIconClass(x_1p);
},

x_38m: function (x_1ko) {
var
x_g6 = this.x_1e[x_1ko],
x_37q;
if (x_g6 instanceof Ext.Toolbar.Button) {
x_g6 = x_g6.menu;
}
x_g6._kx.x_38n._kx.x_2vk.x_3k(x_1ko);
if (this.x_5u) {
if (true !== this.x_388) {
this.x_38o(x_1ko, this.x_37w.x_1e);
}
else {
x_37q = x_g6._kx.x_37q;
x_37q._kx.x_38n._kx.x_2vk.x_3k(x_37q._kx.x_1j);
}
}
},

x_38p: function (x_38q, x_38r) {
var
x_g6 = this.x_1e[x_38q],
x_37q;
if (x_g6 instanceof Ext.Toolbar.Button) {
x_g6 = x_g6.menu;
}
x_g6._kx.x_38n._kx.x_2vk.x_ii(x_38q, kerio.lib.x_2rm(x_38r));
if (this.x_5u) {
if (true !== this.x_388) {
this.x_38s(x_38q, x_38r, this.x_37w.x_1e);
}
else {
x_37q = x_g6._kx.x_37q;
x_37q._kx.x_38n._kx.x_2vk.x_ii(x_37q._kx.x_1j, x_38r);
}
}
},

x_38t: function (x_38l) {
var
x_g6 = this.x_1e[x_38l],
x_37q;
if (x_g6 instanceof Ext.Toolbar.Button) {
x_g6 = x_g6.menu;
}
x_g6._kx.x_38n._kx.x_2vk.x_38u(x_38l);
if (this.x_5u) {
if (true !== this.x_388) {
this.x_38v(x_38l, this.x_37w.x_1e);
}
else {
x_37q = x_g6._kx.x_37q;
x_37q._kx.x_38n._kx.x_2vk.x_38u(x_37q._kx.x_1j);
}
}
},

x_38v: function (x_1ko, x_38b) {
var
x_41,
x_42 = x_38b.length,
x_1jq;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1jq = x_38b[x_41];
if ('object' != Ext.type(x_1jq)) {
continue;
}
if (x_1jq.x_1j == x_1ko) {
x_1jq.x_1e = [];
return;
}
if (x_1jq.x_1e) {
this.x_38v(x_1ko, x_1jq.x_1e);
}
}
},

x_38o: function (x_1ko, x_38b) {
var
x_41,
x_42 = x_38b.length,
x_1jq;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1jq = x_38b[x_41];
if ('object' != Ext.type(x_1jq)) {
continue;
}
if (x_1jq.x_1j == x_1ko) {
x_38b.remove(x_1jq);
return;
}
if (x_1jq.x_1e) {
this.x_38o(x_1ko, x_1jq.x_1e);
}
}
},

x_38s: function (x_38q, x_38r, x_38b) {
var
x_41,
x_42 = x_38b.length,
x_1jq;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1jq = x_38b[x_41];
if ('object' != Ext.type(x_1jq)) {
continue;
}
if (x_1jq.x_1j == x_38q) {
if (!x_1jq.x_1e) {
x_1jq.x_1e = [];
}
x_1jq.x_1e.push(x_38r);
return;
}
if (x_1jq.x_1e) {
this.x_38s(x_38q, x_38r, x_1jq.x_1e);
}
}
}
});  
kerio.lib.x_379 = function(x_2v) {
this._kx = {
x_38w: 0,
x_38x: null,
x_38y: null,
x_1jc: x_2v.x_1jc,
x_1jd: x_2v.x_1jd
};
delete x_2v.x_1jc;
delete x_2v.x_1jd;
kerio.lib.x_379.superclass.constructor.call(this, x_2v);
};
Ext.extend(kerio.lib.x_379, Ext.Toolbar, {
autoCreate: {
cls:'x-toolbar x-small-editor toolbarButtons',
style: 'height: 100%;',
html: Ext.isIE ?
'<table cellspacing="0" style="height: 100%; width: ' + kerio.lib.x_6b.x_2p8 + 'px;">'
+ '<tr><td style="vertical-align: top; height: 30px;">'
+ '<table cellspacing="0"><tr></tr></table>'
+ '</td></tr>'
+ '<tr><td style="vertical-align: bottom; height: 0px;">'
+ '<table cellspacing="0"><tr></tr></table>'
+ '</td></tr>'
+ '</table>'
:
'<table cellspacing="0" style="height: 100%;">'
+ '<tr><td style="width: ' + kerio.lib.x_6b.x_2p8 + 'px;">'
+ '<table cellspacing="0"><tr></tr></table>'
+ '</td></tr>'
+ '</table>'
},

onRender : function(ct, position){
var x_38z,
x_33n = this._kx,
x_1p = 'verticalToolbar' + (x_33n.x_1jc ? ' centered' : ''),
x_38x,
x_38y;
this.el = ct.createChild(Ext.apply({id: this.id},this.autoCreate), position);
x_38z = this.el.query('table');
x_38x = x_38z[1];
x_38x.className = x_1p;
x_33n.x_38x = x_38x;
if (Ext.isIE) {
if (x_33n.x_1jc) {
x_38x.parentNode.style.verticalAlign = 'middle';
}
x_38y = x_38z[2];
x_38y.className = x_1p;
x_33n.x_38y = x_38y;
}
if (x_33n.x_1jd != kerio.lib.x_6b.x_2p8) {
Ext.get(x_38x).parent(Ext.isIE ? 'table' : 'td').setWidth(x_33n.x_1jd);  }
this.tr = Ext.get(x_38x).child("tr", true);
},

nextBlock: function() {
var x_36h = this.initialConfig.buttons[this._kx.x_38w];
this._kx.x_38w++;
var td = document.createElement("td");
var x_390 = (this._kx && this._kx.x_390) ? this._kx.x_390 : false;
td.style.height = ('->' == x_36h) ? '100%' : 'auto';
if (x_390) {
td.style.verticalAlign = 'bottom';
td.style.paddingTop = '9px';
}
else {
td.style.verticalAlign = 'top';
td.style.paddingBottom = '9px';
}
this.tr.appendChild(td);
var tr = document.createElement("tr");
this.tr = this.tr.parentNode.appendChild(tr);
return td;
},

addSeparator : function(){
return this.addItem(new Ext.Toolbar.Item(document.createElement('hr')));
},

addFill : function(){
var x_38y = this._kx.x_38y;
kerio.lib.x_2sf(this, {
x_390: true
});
if (Ext.isIE) {
this._kx.x_38w++;
x_38y.parentNode.style.height = '30px';
this.tr = Ext.get(x_38y).child("tr", true);
}
else {
return kerio.lib.x_379.superclass.addFill.call(this);
}
}
});  

kerio.lib.x_29s = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2od;
kerio.lib.x_29s.superclass.constructor.call(this, x_1j, x_2v);
x_2v = kerio.lib.x_2r7(x_2v);
this.x_1j = x_1j;
this.x_1e = [];
if (x_2v.x_4c) {
this.x_4c = x_2v.x_4c;
}
var x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
this.x_356(x_2v, x_2o);
}; Ext.extend(kerio.lib.x_29s, kerio.lib.x_34d,

{
x_391: kerio.lib.x_6b.x_6d.x_6e,
x_392: {
cls: 'baseTree %+',
autoShow: true,
animate: false,
lines: false,
containerScroll: true,
enableDD: false,
ddGroup: 'message',
ddAppendOnly: true
}, x_393: {
x_25:       {x_2sg: 'click'      , x_2sj: 'this.x_394'      , x_2q: 'this'},
x_62:    {x_2sg: 'dblclick'   , x_2sj: 'this.x_395'   , x_2q: 'this'},
x_2b3: {x_2sg: 'beforeclick', x_2sj: 'this.x_396', x_2q: 'this'}
},
x_397: {
cls: 'rootNode %+',  draggable: false,
expanded: true,
iconCls: 'rootIcon %+',
text: 'root'
}, x_398: {
cls: 'treeNode %+',
draggable: false,
expanded: false,
iconCls: 'nodeIcon %+',
text: 'node'
}, x_399: {
x_1j: 'id',
x_23: 'text',
x_1p: 'cls',
x_cy: 'iconCls',
x_1aq: 'expanded'
}, 
x_2ql: function(x_2v) {
var x_39a = kerio.lib.x_2sl.call(this, x_2v, this.x_392, this.x_393),
x_5z = x_2v.x_5z,
x_65 = x_2v.x_65,
x_39b;
x_39a.id = this.x_1j;
if (!x_5z && !x_65) {
x_5z = [{
x_1p: 'emptyTree',
x_cy: '',
x_23: Ext.grid.GridView.prototype.emptyText
}];
}
if (x_5z) {
x_39b = undefined === x_39b ? (1 == x_5z.length) : x_39b;
this.x_39c(x_5z);
}
else {
kerio.lib.x_nq('Internal error: Remote data for x_29s is not implemented yet!');

}
x_39a.rootVisible = x_39b;
this.x_39d = x_39b;
this.x_39e = false !== x_2v.x_2b5;
this.x_39f = x_2v.x_39g;
delete x_39a.x_25;
delete x_39a.x_62;
delete x_39a.x_2lh;
delete x_39a.x_5t;
if (!x_39a.cls) {
x_39a.cls = '';
}
var x_2o = new Ext.tree.TreePanel(x_39a);
if (this.x_39h) {
x_2o.setRootNode(this.x_39h);
if (this.x_39d) {
this.x_39i();
}
}
x_2o.getSelectionModel().on('selectionchange', this.x_39j, this);
x_2o.on('render', function (x_39k) {	this.x_32e(x_39k.body);
}, this);
if (x_2v.x_5t) {
this.x_39l(x_2v.x_5t, x_2o);
}
x_2o.on('render', this.x_39m, this);
x_2o.on('collapsenode', this.x_39n, this);
x_2o.on('expandnode', this.x_39n, this);
x_2o.getSelectionModel().on('selectionchange', this.x_39n, this);
return x_2o;
}, 
x_39i: function() {
var x_39o = this.x_39h,
x_39p = x_39o.ownerTree,
x_39q = x_39o.attributes,
x_29j = x_39q.cls;
if (!this.x_39f) {
x_39p.addClass('nonCollapsible');
x_39o.on('beforecollapse', this.x_39r, this);
}
if (!this.x_39e) {
x_39q.cls = kerio.lib.x_2u0(x_29j, 'unselectableRoot');
x_39o.on('beforeclick', this.x_39r, this);
}
},

x_39n: function() {
var x_39p = this.x_2o;
var x_39s = x_39p.body.dom;
var x_39t = x_39p.innerCt;
x_39t.dom.style.width = 'auto';
var x_39u = x_39t.getMargins('l');
var x_2yo = 0;
if (kerio.lib.x_j9) {
x_2yo = (x_39s.scrollWidth < x_39s.clientWidth)
? (x_39s.clientWidth - x_39s.scrollWidth)
: Math.abs(x_39t.dom.offsetLeft);
}
var x_1u = ((x_39s.scrollWidth + x_2yo) === x_39s.clientWidth) ? "auto" : ((x_39s.scrollWidth + x_39u) + "px");
if (kerio.lib.x_j9 && ('auto' == x_1u) && (x_39s.scrollWidth < x_39s.clientWidth)) {
x_1u = x_39s.clientWidth;
}
x_39t.dom.style.width = x_1u;
}, 
x_36o: function(x_1j, x_g6) {
if (x_1j) {
if (undefined === this.x_1e[x_1j]) {
this.x_1e[x_1j] = x_g6;
}
else {
kerio.lib.x_nq('Internal error: Duplicate node ID: ' + x_1j, 'tree.js');
}
}
}, 
x_39v: function(x_2o, x_96) {
var x_5t = x_2o.ownerTree._kx.x_5t;
x_5t.show(x_96.target);
x_5t.x_39w = x_2o;
}, 
x_39c: function(x_47, x_1pe) {
var x_2se = kerio.lib.x_2sf,
x_39x,
x_39y,
x_39z,
x_1pi;
for (var x_41 = 0, x_42 = x_47.length; x_41 < x_42; x_41++) {
x_39x = x_1pe ? this.x_398 : this.x_397;
x_39y = x_47[x_41];
x_39z = kerio.lib.x_2sl.call(this, x_39y, x_39x, this.x_399);
x_1pi = new Ext.tree.TreeNode(x_39z);
if (x_1pe) {
x_1pi = x_1pe.appendChild(new Ext.tree.TreeNode(x_39z));
}
else {
this.x_39h = x_1pi;
this.x_3a0 = Ext.apply({}, x_39y);  this.x_3a0.x_1an = null;
}
x_2se(x_1pi, {x_2aw: x_39y.x_2aw});    x_1pi.loaded = true;
if (x_39y.x_1an) {
this.x_39c(x_39y.x_1an, x_1pi);
}
this.x_36o(x_39y.x_1j, x_1pi);
if (x_39y.x_1am) {
this.x_3a1 = x_1pi;
}
}
}, 
x_39l: function(x_2v, x_3a2) {
var x_5t = new kerio.lib.x_29p(this.x_1j + '_contextMenu', x_2v, this);
kerio.lib.x_2sf(x_3a2, {x_5t: x_5t.x_2o});
x_3a2.on('contextmenu', this.x_39v);
}, 
x_394: function(x_3a3, x_96) {
var x_4e = new kerio.lib.x_2t3(this.x_391.x_30s, x_96),
x_2av = this.x_3a4(x_3a3);
this.x_2sk.x_25.call(this, x_2av, x_4e);
}, 
x_395: function(x_3a3, x_96) {
var x_4e = new kerio.lib.x_2t3(this.x_391.x_30t, x_96),
x_2av = this.x_3a4(x_3a3);
this.x_2sk.x_62.call(this, x_2av, x_4e);
}, 
x_396: function(x_3a3, x_96) {
var x_4e = new kerio.lib.x_2t3(this.x_391.x_30s, x_96),
x_1pj = this.x_2o.selModel.selNode,
x_1pi = this.x_3a4(x_3a3),
x_4q = x_96.browserEvent,
x_3a5;
if (x_1pj) {
x_1pj = this.x_3a4(x_1pj);
}
x_3a5 = this.x_2sk.x_2b3.call(this, x_1pi, x_1pj, x_4e);

if (Ext.isGecko && (false === x_3a5)) {
x_4q.preventDefault();
}
return x_3a5;
}, 
x_39r: function() {
return false;
},

x_3a4: function(x_3a3) {
var x_2av = {
x_1j: x_3a3.id,
x_23: x_3a3.text,
x_1aq: x_3a3.expanded,
x_1am: x_3a3.isSelected(),
x_2aw: x_3a3._kx ? x_3a3._kx.x_2aw : undefined,
x_2o: x_3a3,
x_1pg: this
};
return x_2av;
}, 
x_3a6: function () {
var x_3a3 = this.x_2o.getSelectionModel().getSelectedNode(),
x_3a7 = null;
if (x_3a3) {
x_3a7 = this.x_3a4(x_3a3);
}
return x_3a7;
},

x_1ph: function(x_3a8) {
var x_3a3 = this.x_1e[x_3a8];
if (x_3a3) {
this.x_3a9(x_3a3);
}
}, 
x_3a9: function(x_3a3) {
if (this.x_2sk && this.x_2sk.x_25) { this.x_2o.expandPath(x_3a3.getPath());
x_3a3.select();
this.x_394.call(this, x_3a3);
}
}, 
x_39m: function(x_3a2) {
var x_3aa = x_3a2.ownerCt;
if (x_3aa && (undefined !== x_3aa.layout)) {
this.x_3ab();
if (kerio.lib.x_j9) {
x_3aa.on('afterlayout', this.x_39n, this);
}
x_3aa.on('resize', this.x_39n, this);
if (this.x_3a1) {
this.x_3a9.defer(100, this, [this.x_3a1]);
}
}
}, 
x_3ab: function() {
var x_2un = this.x_2o.el.query('ul')[0];
x_2un = Ext.get(x_2un.parentNode);
x_2un.setStyle({height: '100%', overflow: 'auto'});
x_2un = x_2un.parent();
x_2un.setStyle({height: '100%'});
x_2un = x_2un.parent();
x_2un.setStyle({height: '100%'});
}, 
x_7k: function (x_47, x_3a8, x_3ac) {
var x_1pe = null;
if (x_3a8) {
x_1pe = this.x_2o.getNodeById(x_3a8);
if (!x_1pe) {
kerio.lib.x_nq('Internal error: Attempt to set data for non-existing tree node with ID ' + x_3a8);
return;
}
}
else {
x_1pe = this.x_39h;
if (1 == x_47.length) {
this.x_3ad(x_47[0]);
x_47 = x_47[0].x_1an;
}
}
if (true !== x_3ac) {
this.x_3ae(x_1pe);
}
this.x_3a1 = null;
x_1pe.beginUpdate();
x_1pe.expand();
this.x_39c(x_47, x_1pe);
x_1pe.endUpdate();
if (this.x_3a1) {
this.x_3a1.select();
}
},

x_7i: function (x_1pe) {
var x_3af,
x_3a8,
x_3ag = [];
if (x_1pe) {
if ('object' === Ext.type(x_1pe)) {
x_3a8 = x_1pe.x_1j;
}
else {
x_3a8 = x_1pe;
}
x_3af = this.x_2o.getNodeById(x_3a8);
}
else {
x_3af = this.x_39h;
}
if (!x_3af) {
return null;
}
x_3ag = this.x_3ah(x_3af);
if (!x_1pe && this.x_39d) {
x_3af = this.x_3ai();
x_3af.x_1an = x_3ag;
x_3ag = [x_3af];
}
return x_3ag;
},

x_3ah: function (x_1pe) {
var x_3aj = x_1pe.childNodes,
x_3ak,
x_3al,
x_41, x_42,
x_39y = [];
for (x_41 = 0, x_42 = x_3aj.length; x_41 < x_42; x_41++) {
x_3ak = x_3aj[x_41];
x_3al = this.x_3a4(x_3ak);
x_3al.x_1am = x_3ak.isSelected();
delete x_3al.x_2o;
delete x_3al.x_1pg;
if (x_3ak.childNodes.length > 0) {
x_3al.x_1an = this.x_3ah(x_3ak);
}
x_39y.push(x_3al);
}
return x_39y;
},

x_3ae: function (x_1pe) {
var x_3aj = x_1pe.childNodes;
var x_3al;
for (var x_41=x_3aj.length-1, x_42=0; x_41>=x_42; x_41--) {
x_3al = x_3aj[x_41];
this.x_3ae(x_3al);
x_1pe.removeChild(x_3al);
if (undefined !== this.x_1e[x_3al.id]) {
delete this.x_1e[x_3al.id];
}
}
},

x_3ad: function (x_3am) {
var x_3an = this.x_39h,
x_3ao = x_3an.getUI(),
x_3ap = Ext.get(x_3ao.elNode),
x_3aq = Ext.get(x_3ao.iconNode),
x_3ar = this.x_3a0,
x_2o = this.x_2o;
this.x_3as(x_3ap, x_3ar.x_1p, x_3am.x_1p);
this.x_3as(x_3aq, x_3ar.x_cy  , x_3am.x_cy  );
if (x_3ar.x_1j !== x_3am.x_1j) {
if (undefined === x_3am.x_1j) {
x_3am.x_1j = x_3ar.x_1j;
}
if (this.x_1e[x_3ar.x_1j]) {
delete this.x_1e[x_3ar.x_1j];
}
delete x_2o.nodeHash[x_3an.id];
x_3an.id = x_3am.x_1j;
x_3ao.elNode.setAttribute('ext:tree-node-id', x_3am.x_1j);
x_2o.nodeHash[x_3an.id] = x_3an;
this.x_36o(x_3am.x_1j, x_3an);
}
if (x_3ar.x_23 !== x_3am.x_23) {
x_3an.setText(x_3am.x_23);
}
if (x_3am.x_1am) {
x_3an.select();
}
this.x_3a0 = x_3am;
}, 
x_3as: function (x_2un, x_3at, x_3au) {
if ((x_3at || x_3au) && x_3at !== x_3au) {
if (undefined !== x_3at) {
x_2un.removeClass(x_3at);
}
if (undefined !== x_3au) {
x_2un.addClass(x_3au);
}
}
},

x_3ai: function () {
var x_47 = this.x_3a4(this.x_39h);
delete x_47.x_1pg;
delete x_47.x_2o;
return x_47;
},

x_39j: function (x_3av, x_3a3) {
kerio.lib.x_2t2(this, this.x_391.x_4l);
},

x_4c: function(x_4d, x_4e) {
kerio.lib.x_nq('Internal error: Override x_4c method in object with ID ' + this.x_1j
+ ' to make this object behaving as an observer', 'tree.js');
} }); 

kerio.lib.x_29p = function(x_1j, x_2v, x_1g)
{
this.x_3h = kerio.lib.x_6b.x_1mf;
kerio.lib.x_29p.superclass.constructor.call(this);
var x_2se = kerio.lib.x_2sf;
this.x_1e = [];    this.x_1j = x_1j;
x_2v = kerio.lib.x_2r7(x_2v);
if (x_1g && !(x_1g instanceof kerio.lib.x_4g)) {
this.x_1g = x_1g;
this.x_1e = x_1g.x_1e;
}
this.x_2o = this.x_2ql(x_2v.x_1e);
x_2se(this.x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
if (x_2v.x_4c) {
this.x_4c = x_2v.x_4c;
}
if (x_2v.x_25) {
this.x_3aw = x_2v.x_25;
this.x_2o.on('itemclick', this.x_3ax, this);
}
};
Ext.extend(kerio.lib.x_29p, kerio.lib.x_1md,

{
x_36n: {
x_1j: 'x_1j', x_23: 'text',
x_x6: 'icon',
x_29j: 'cls',
x_cy: 'iconCls',
x_25: 'handler',
x_31: 'disabled',
x_1m: 'hidden'
},
x_3ay: {
hideOnClick: false
},

x_2ql: function(x_2an) {
var
x_1jp = new Ext.menu.Menu(),
x_1jq;
kerio.lib.x_2sf(x_1jp, {
x_3az: x_1jp,
x_38n: x_1jp
});
if (!x_2an) {
return x_1jp;
}
for (var x_41 = 0, x_42 = x_2an.length; x_41 < x_42; x_41++) {
x_1jq = this.x_3b0(x_2an[x_41], x_1jp, x_1jp);
x_1jp.add(x_1jq);
}
return x_1jp;
},

x_3b0: function (x_38r, x_3az, x_38n) {
var
x_3b1,
x_1jq,
x_3b2,
x_23,
x_3b3,
x_2se = kerio.lib.x_2sf,
x_41, x_42;
x_23 = x_38r.x_23;
if (x_23 && '-' == x_23) {  x_38r = x_23;
}
if ('string' == typeof(x_38r)) {
return x_38r;
}
else {
x_3b3 = x_38r.x_hs;
if (x_3b3) {
x_3b2 = x_3b3.x_32.x_1e[x_3b3.x_1ko];
x_38r.x_1j = x_3b2.id;
x_38r.x_23 = x_3b2.text;
x_38r.x_x6 = x_3b2.icon;
x_38r.x_25 = x_3b2._kx.x_rx;
x_38r.x_31 = x_3b2.disabled;
}
x_3b1 = kerio.lib.x_2sl(x_38r, this.x_3ay, this.x_36n);
if (undefined !== x_38r.x_1j) {
x_3b1.id = x_38r.x_1j; }
x_2se(x_3b1, {x_1j: x_3b1.x_1j});
delete x_3b1.x_1j;
if (x_3b1.handler) {
x_2se(x_3b1, {x_rx: x_3b1.handler});
x_3b1.handler = this.x_3ax;
}
if (x_38r.x_1e) {
x_3b1.menu = new Ext.menu.Menu();
for (x_41 = 0, x_42 = x_38r.x_1e.length; x_41 < x_42; x_41++) {
x_3b1.menu.add(this.x_3b0(x_38r.x_1e[x_41], x_3b1.menu, x_38n));
}
}
x_1jq = new Ext.menu.Item(x_3b1);
x_38r.x_1j = x_1jq.id;
x_2se(x_1jq, {
x_3az: x_3az,
x_38n: x_38n
});
this.x_36o(x_38r.x_1j, x_1jq);
if (x_3b3) {
x_2se(x_3b2, {
x_37q: x_1jq,
x_32: x_3b3.x_32
});
x_2se(x_1jq, {x_hs: x_3b2});
}
}
return x_1jq;
},

x_ii: function (x_38q, x_38r) {
var
x_3b4  = this.x_1e[x_38q],
x_3az = x_3b4.menu,
x_1jq = this.x_3b0(x_38r, x_3az, x_3b4._kx.x_38n);
x_3az.add(x_1jq);
},

x_3k: function (x_1ko) {
var x_g6 = this.x_1e[x_1ko];
if (x_g6) {
delete this.x_1e[x_1ko];
x_g6._kx.x_3az.remove(x_g6);
}
},

x_38u: function (x_38l) {
var x_g6 = this.x_1e[x_38l];
if (x_g6) {
x_g6.menu.removeAll();
}
},

x_1v3: function(x_35o, x_2z8, x_3az) {
this.x_2o.show(x_35o, x_2z8, x_3az);
},

x_2r: function() {
this.x_2o.hide();
},

x_387: function(x_2sp, x_3az) {
this.x_2o.showAt(x_2sp, x_3az);
},

x_36o: function(x_1j, x_3b5) {
if (x_1j) {
kerio.lib.x_2sf(x_3b5, {x_1j: x_1j});
this.x_1e[x_1j] = x_3b5;
}
},

x_3ax: function(x_34b, x_96) {
var
x_1jp = x_34b.parentMenu,
x_37o,
x_2b,
x_2pa;
while (x_1jp.parentMenu) {
x_1jp = x_1jp.parentMenu;
}
x_2b = x_1jp._kx.x_2vk;
if (x_34b._kx.x_hs) {
x_2b = x_34b._kx.x_hs._kx.x_32;
}
else if (x_2b.x_1g && kerio.lib.x_6b.x_1l4 == x_2b.x_1g.x_3h) {
x_2b = x_2b.x_1g;
}
x_37o = x_2b.x_31s();
if (x_37o && x_37o.x_1al) {
x_2pa = x_34b._kx.x_hs ? x_34b._kx.x_hs._kx.x_24 : x_34b._kx.x_38n._kx.x_37h._kx.x_24;
if (false !== x_2pa) {  x_2pa = x_2pa ? x_2pa : x_37o.x_1al;
kerio.lib.x_1k8(x_37o, x_2pa);
}
}
x_34b.parentMenu.hide.defer(x_34b.hideDelay, x_34b.parentMenu, [true]);
var x_rx = x_34b._kx.x_rx || this.x_3aw;
x_rx.call(x_2b, x_2b, {x_1j: x_34b._kx.x_1j, x_23: x_34b.text, x_x6: x_34b.icon});
},

x_3b: function(x_1ko, x_bg) {
var x_g6 = this.x_1e[x_1ko];
if (false !== x_bg) {
x_g6.enable();
if (x_g6.x_hs) {
x_g6.x_hs.enable();
}
}
else {
x_g6.disable();
if (x_g6.x_hs) {
x_g6.x_hs.disable();
}
}
},

x_lc: function(x_1ko) {
var x_g6 = this.x_1e[x_1ko];
x_g6.disable();
if (x_g6.x_hs) {
x_g6.x_hs.disable();
}
},

x_jp: function(x_1ko) {
var x_g6 = this.x_1e[x_1ko];
x_g6.show();
if (x_g6.x_hs) {
x_g6.x_hs.show();
}
},

x_jq: function(x_1ko) {
var x_g6 = this.x_1e[x_1ko];
x_g6.hide();
if (x_g6.x_hs) {
x_g6.x_hs.hide();
}
},

x_4c: function(x_4d, x_4e) {
kerio.lib.x_nq('Internal error: Override x_4c method in object with ID ' + this.x_1j
+ ' to make this object behaving as an observer', 'menu.js');
} });    


kerio.lib.x_1bn = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2of;
kerio.lib.x_1bn.superclass.constructor.call(this);
this.x_1j = x_1j;
x_2v = kerio.lib.x_2r7(x_2v);
var x_3b6 = kerio.lib.x_2sl(x_2v, this.x_3b7);
x_3b6.id = this.x_1j;
if (x_2v.x_1bk) {
x_3b6.html = x_2v.x_1bk;
delete x_3b6.x_1bk;
}
var x_2o = new Ext.Panel(x_3b6);
this.x_2o = x_2o;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
}; Ext.extend(kerio.lib.x_1bn, kerio.lib.x_1md,

{
x_3b7: {
autoScroll: true, fitToFrame: true,
monitorResize: true,
border: false
}, 
x_2bh: function(x_3b8) {
this.x_2o.body.update(x_3b8);
}, 
x_32m: function(x_1g4) {
var x_32o = new kerio.lib.x_32p();
if (this.x_o4) {
if (!this.x_o4(x_1g4)) {
x_32o.x_32t();
}
}
return x_32o;
} }); 

kerio.lib.x_6t = {
x_3b9: 60000
};
Ext.apply(kerio.lib.x_6t,

{
x_3ba: {
x_6a: 'url',
x_6p: 'method',
x_2e: {x_2sg: 'callback', x_rx: 'x_6t.x_3bb'},
x_s1: 'timeout',
x_zr: 'x_zr',
x_zs: 'x_zs',
x_3bc: 'isUpload',
x_1c: 'form'
}, x_3ay: {
timeout: kerio.lib.x_6t.x_3b9
}, x_3bd: {
}, x_3be: [
'result',            'resultList',        'batchResult',       'message',           'errorMessage',      'errorMessageList'   ],

x_6u: function (x_6q) {
if (this.x_3bf) {
Ext.applyIf(x_6q, this.x_3bf);
}
if (undefined === x_6q.x_6a) {
kerio.lib.x_nq('Internal error: kerio.lib.x_6t::x_6u - no URL specified, nothing can be sent', 'ajax.js');
return;
}
var x_2v = kerio.lib.x_2sl(x_6q, this.x_3ay, this.x_3ba);
if (x_6q.x_28) {
x_2v.params = x_6q.x_28;
}
var x_zq = kerio.lib.x_2sl(x_6q.x_zq, this.x_3bd, this.x_3ba);
kerio.lib.x_2sf(x_2v, {
x_zq: x_zq,
x_2s: x_6q.x_2s,
x_2q: x_6q.x_2q,
x_ma: x_6q.x_ma,
x_3bg: x_6q.x_3bg });
return Ext.Ajax.request(x_2v);
},

x_qf: function (x_3bh) {
Ext.Ajax.abort(x_3bh);
},

x_2mo: function() {
var x_1j1 = kerio.lib.x_1j1;
if (!x_1j1 || !x_1j1.x_103) {
return false;
}
if (!this.x_3bi) {
this.x_3bi = new RegExp(x_1j1.x_103 + '=([a-z0-9\\-]+)', 'i');
}

var x_3bj = this.x_3bi.exec(document.cookie);
return ((null === x_3bj) ? false : x_3bj[1]);
}, 
x_2r6: function() {
Ext.Ajax.on('beforerequest', this.x_3bk, this);
Ext.Ajax.on('requestcomplete', this.x_3bl, this);
Ext.Ajax.on('requestexception', this.x_3bm, this);
}, 
x_3bm: function (x_16v, x_6v, x_6q) {
var x_zq = (x_6q._kx && x_6q._kx.x_zq) ? x_6q._kx.x_zq : null;
if (!x_zq) {
return;
}
if ((-1 == x_6v.status) || (0 === x_6v.status)) {
if ('' !== x_zq.x_zr) {
kerio.lib.x_48('Error', x_zq.x_zr);
}
}
else {
if ('' !== x_zq.x_zs) {
kerio.lib.x_48('Error', x_zq.x_zs);
}
}
},

x_3bl: function(x_3bn, x_3bo, x_3bp) {
if ('get' == x_3bp.method) {
return;
}
var x_1b = kerio.lib,
x_3bq = x_3bo.responseText,
x_dg = x_1b.x_2ti(x_3bq),
x_3br = this.x_3bs || {},
x_3bt = x_3br.x_3bu || 'invalid request',
x_3bv = x_3br.x_3bw || 'invalid session';
if (!x_dg) {
x_1b.x_nq('Internal error: Invalid response.\n' + x_3bq.substring(0, 500), 'ajax.js');
}
else if (x_3bt == x_dg.error) {
x_1b.x_nq('Internal error: Invalid request.\n', 'ajax.js');
}
else if (x_3bv == x_dg.error) {
document.location = x_3br.x_105;
}
else {
x_1b.x_2sf(x_3bo, {x_ac: x_dg}); }
}, 
x_3bb: function(x_3bp, x_6w, x_3bo) {
var x_6q = x_3bp._kx,
x_6v = {
x_6x: 'get' == x_3bp.method,  x_ac: x_3bo._kx && x_3bo._kx.x_ac,
x_111: x_3bo,
x_3bx: {
x_2e: x_6q && x_6q.x_2e,
x_2q: x_6q.x_2q,
x_2s: x_6q.x_2s,
x_6w: x_6w
},
x_3by: { x_3bp: x_3bp,
x_3bo: x_3bo
}
},
x_3bz = kerio.lib.x_6t;
x_3bz.x_3c0.call(x_3bz, x_6v, x_6q.x_ma);  },

x_104: function (x_28) {
this.x_3bs = x_28;
},

x_3bk: function(x_3bn, x_6q) {
var x_28 = x_6q.params;
if (('get' == x_6q.method) || !x_28) {
return;
}
x_6q.params = {
'method': x_28.method,
'object': x_28.object
};
if (x_28.params) {
x_6q.params.params = x_28.params;
}
var x_3c1 = this.x_2mo();
if (x_3c1) { x_6q.params.token = x_3c1;
}
}, 
x_2mn: function () {
return this.x_3bf;
},

x_106: function (x_28) {
this.x_3bf = x_28;
},

x_3c0: function(x_6v, x_ma) {
var x_dg = x_6v.x_ac,
x_1bp = [],
x_3c2 = false;
if (!x_dg || 'object' != typeof(x_dg)) {
x_6v.x_6x = false;
}
else if (true === x_dg.returnValue) {
x_6v.x_6x = true;
}
else {
x_6v.x_6x = false;
if (true !== x_ma) {
x_1bp = this.x_3c3(x_dg);
x_3c2 = this.x_3c4(x_1bp, x_6v);  }
}
if (false === x_3c2) {
this.x_3c5.call(x_6v);
}
}, 
x_3c5: function() {
var x_3c6 = this.x_3bx;  if (x_3c6.x_2e) {
x_3c6.x_2e.call(
x_3c6.x_2q, this, x_3c6.x_6w, x_3c6.x_2s
);
}
},

x_3c3: function(x_6v) {
var x_3c7 = this.x_3be,
x_1bp = [],
x_41,
x_42,
x_zw,
x_3c8,
x_1b = kerio.lib;
if (Array === x_6v.constructor) {
for (x_41 = 0, x_42 = x_6v.length; x_41 < x_42; x_41++) {
x_1bp = x_1bp.concat(this.x_3c3(x_6v[x_41]));
}
}
else if ('object' == typeof(x_6v)) {
for (x_41 = 0, x_42 = x_3c7.length; x_41 < x_42; x_41++) {
x_zw = x_6v[x_3c7[x_41]];
if (!x_zw) {
continue;
}
if (true === x_6v.success) {
continue;
}
x_3c8 = Ext.type(x_zw);
switch (x_3c8) {
case 'string':
x_1bp.push(x_zw);
break;
case 'array':
x_1bp = x_1bp.concat(this.x_3c3(x_zw));
break;
case 'object':
if ('number' == typeof x_zw.plurality || 'errorMessage' == x_3c7[x_41]) {
x_1bp.push(x_zw);
}
else if ('boolean' == typeof x_zw.success) {
if (!x_zw.success) {
x_1bp = x_1bp.concat(this.x_3c3(x_zw));
} }
else {
x_1bp = x_1bp.concat(this.x_3c3(x_zw));
}
break;
default:
x_1b.x_nq('Internal error: Response error message in unsupported format!', 'ajax.js');
} break;
} } else {
x_1b.x_nq('Internal error: Response error message in unsupported format!', 'ajax.js');
}
return x_1bp;
}, 
x_3c9: function(x_1m8) {
var x_6q = {},
x_49 = x_1m8.positionalParameters,
x_fo = x_1m8.plurality,
x_1n = x_1m8.message;
if (x_49) {
x_6q.x_49 = x_49;
}
if (x_fo) {
x_6q.x_fo = x_fo;
}
return kerio.lib.x_x(x_1n, 'serverMessage', x_6q);
}, 
x_3ca: function(x_3cb, x_6v) {
var x_x = kerio.lib.x_x,
x_3cc = false,
x_1m8,
x_3cd = [],
x_3ce = [],  x_41,
x_42 = x_3cb.length;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1m8 = x_3cb[x_41];
if ('object' == typeof x_1m8) {
if (x_1m8.message) {
x_3cd.push(this.x_3c9(x_1m8));
}
else {
x_3ce.push('Internal error: x_j2 called with bad LocalizableMessage!');
}
}
else if ('string' == typeof x_1m8) {
if ('' === x_1m8) {
x_3ce.push('Internal error: x_j2 called with empty error message!');
}
else {
x_3cd.push(x_1m8);
}
}
else {
x_3ce.push('Internal error: x_j2 called with unsupported error message!');
}
}
if (x_3ce.length > 0) {
kerio.lib.x_nq(x_3ce.join('<br>'), 'ajax.js');
}
if (x_3cd.length > 0) {
kerio.lib.x_48(x_x('Error', 'common'), x_3cd.join('<br>'), this.x_3c5, x_6v);
x_3cc = true;
}
return x_3cc;
}, 
x_3c4: function(x_1bp, x_6v) {
var x_3cb = [],
x_x = kerio.lib.x_x,
x_41, x_42;
if ('object' !== typeof x_1bp || Array !== x_1bp.constructor) {
kerio.lib.x_nq('Internal error: Show messages called with wrong parameter; expecting array, got '
+ (typeof x_1bp), 'ajax.js'
);
return false;
}
x_42 = x_1bp.length;
switch (x_42) {
case 0:
x_3cb[0] = x_x('Unknown error!<br>No error message received.', 'common');
break;
case 1: case 2: case 3:
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3cb.push(x_1bp[x_41]);
}
break;
default:
x_3cb.push(x_1bp[0]);
x_3cb.push(x_1bp[1]);
var x_6q = {
x_49: [x_42-2, x_42],
plurality: x_42-2
};
x_3cb.push(kerio.lib.x_x('There are other %1 error messages!', 'common', x_6q));
break;
}
return this.x_3ca(x_3cb, x_6v);
}  });


kerio.lib.x_3cf = function (x_j4) {
kerio.lib.x_3cf.superclass.constructor.call(this);
kerio.lib.x_2sf(this, {x_j4: x_j4 || {}});
this.useAjax = true;
};
Ext.extend(kerio.lib.x_3cf, Ext.data.HttpProxy,

{

getConnection: function() {
return kerio.lib.x_6t;
},

load: function(x_28, x_3cg, x_2e, x_2q, x_3ch) {
var x_6t = kerio.lib.x_6t,
x_6q;
if(false !== this.fireEvent('beforeload', this, x_28)){
x_6q = {
x_28: x_28 || {},
x_2q: this,
x_2e: this.loadResponse,
x_3bg: {
x_6u: {
callback: x_2e,
scope: x_2q,
arg: x_3ch
},
x_3cg: x_3cg
}
};
Ext.applyIf(x_6q, this._kx.x_j4);
if(this.activeRequest){
x_6t.x_qf(this.activeRequest);
}
this.activeRequest = x_6t.x_6u(x_6q);
}
else{
x_2e.call(x_2q||this, null, x_3ch, false);
}
},

loadResponse: function (x_6v, x_6w) {
var x_3ci = x_6v.x_3by,
x_3cj = x_3ci.x_3bp._kx.x_3bg,
x_3bo = x_3ci.x_3bo,
x_3bp = {
reader: x_3cj.x_3cg,
request: x_3cj.x_6u
};
x_6v.x_3by = null;
delete x_6v.x_3by;
kerio.lib.x_3cf.superclass.loadResponse.call(this, x_3bp, x_6w, x_3bo);
}
});


kerio.lib.x_3ck = function(x_2vk, x_2v) {
kerio.lib.x_3ck.superclass.constructor.call(this);
this.x_32v = x_2vk;  this.x_3m = x_2vk;
this.x_3cl = (undefined === x_2v.x_65);
this.x_2hm = (x_2v.x_65 && (false !== x_2v.x_65.x_hh));
this.x_3cm(x_2v);
this.x_3cn(x_2v);
this.x_3co(x_2v);
this.x_2o = this.x_2hl;
kerio.lib.x_2sf(this.x_2o, {
x_2vk: this,
x_3m: this.x_3m
});
var x_o5 = this.x_2o;
x_o5.on('add'   , this.x_3cp, this);
x_o5.on('update', this.x_3cp, this);
x_o5.on('remove', this.x_3cp, this);
};
Ext.extend(kerio.lib.x_3ck, kerio.lib.x_1md,

{
x_3ay: {
pageSize: 50
},
x_36n: {
x_5y: 'pageSize',
x_1v6: 'remoteGroup',
x_3cq: {x_2sg: 'loadexception', x_2sj: 'this.x_3cr', x_2q: 'this'},
x_2d:          {x_2sg: 'load'         , x_2sj: 'this.x_3cs'         , x_2q: 'this'}
},

x_3ct: {
root: 'data',
totalProperty: 'totalItems'
},

x_3cu: {
x_68: 'root',
x_69: 'totalProperty'
},

x_3cv: {
x_7s: 'name',
x_jm: 'mapping'
},

x_3cn: function(x_2v) {
var
x_1b = kerio.lib,
x_3cw = x_2v.x_1z3,
x_3cx,
x_3cy,
x_3cz,
x_3d0 = x_2v.x_65 || x_2v.x_5z || [];
x_3cy = kerio.lib.x_2sl.call(this, x_3d0, this.x_3ct, this.x_3cu);
x_3cz = kerio.lib.x_2sl.call(this, x_3cw, null, this.x_3cv);
var x_3d1;
var x_3cg;
if (!this.x_3cl) { x_3d1 = new kerio.lib.x_3cf({
x_6a: x_3d0.x_6a,
x_s1: x_3d0.x_s1
});
x_3d1.on('beforeload', this.x_3d2, this);
x_3cg = new Ext.data.JsonReader(x_3cy, x_3cz);
}
else { x_3d1 = new kerio.lib.x_3d3(x_3d0);
x_3cg = new Ext.data.ArrayReader({}, x_3cz);
}
this.x_3d4 = x_3cg;
this.x_3d5 = x_3d1;
this.x_3d6 = x_3cy.root;
this.x_3d7 = x_3cy.totalProperty;
this.x_3d8 = x_3cz;
}, 
x_3co: function(x_2v) {
var x_1z7 = (x_2v.x_65) ? true : false;
if (x_2v.x_d2 && undefined !== x_2v.x_d2.x_1z7) {
x_1z7 = x_2v.x_d2.x_1z7;
}
var x_3d9,
x_67 = (undefined !== x_2v.x_5z),
x_3da = x_2v.x_nh,
x_1v6,
x_o5;
var x_3db = kerio.lib.x_2sl.call(this, x_2v, null, this.x_36n);  Ext.apply(x_3db,{
proxy: this.x_3d5,
reader: this.x_3d4,
remoteSort: x_1z7 });
if (!this.x_3cl) {
x_67 = (undefined === x_2v.x_65.x_67) ? true : x_2v.x_65.x_67;
}
if (x_3da) {
x_3d9 = Ext.data.GroupingStore;
if (true === this.x_3cl) {
x_1v6 = false;
}
else {
x_1v6 = (undefined === x_3da.x_1v6) ? true : x_3da.x_1v6;
}
this.x_3dc = x_1v6;
Ext.apply(x_3db, {
groupField: x_3da.x_7s,
remoteGroup: x_1v6
});
}
else {
x_3d9 = Ext.data.Store;
}
x_o5 = new x_3d9(x_3db);
x_o5.on('beforeload', this.x_3dd, this);
this.x_2hl = x_o5;
this.x_3de = x_67;
}, 
x_3dd: function(x_3df, x_6q) {
var x_28 = kerio.lib.x_2sl.call(this, x_6q.params, this.x_3dg);
x_6q.params = x_28;
},

x_3d2: function(x_3d1, x_6q) {
if (this.x_3cl) {
return;
}
var x_3df = this.x_2hl,
x_3dh = x_6q,
x_66 = this.x_3dg,
x_3di = false,
x_3dj = false,
x_3dk = false,
x_3dl = false,
x_3dm = false,
x_3dn = false,
x_1j1 = kerio.lib.x_1j1,
x_3do = {},
x_3dp = false;
if (this.x_2hm) {
if (undefined !== x_3dh.start) {
x_3di = true;
x_3dk = true;
}
if (undefined !== x_3dh.limit) {
x_3di = true;
x_3dl = true;
}
if (undefined !== x_3dh.sort) {
x_3di = true;
x_3dj = true;
x_3dm = true;
}
if (undefined !== x_3dh.dir) {
x_3di = true;
x_3dj = true;
x_3dn = true;
}
x_3dj = x_3dj || (undefined !== x_3df.sortInfo);
x_3di |= x_3dj;
if (x_3di && !x_66.query) {
x_66.query = {};
}
if (x_3dj && !x_66.query.orderBy) {
x_66.query.orderBy = [{}];
}
if (x_3dk) {
x_66.query.start = x_3dh.start;
}
if (x_3dl) {
x_66.query.limit = x_3dh.limit;
}
if (x_3df.sortInfo) {
x_66.query.orderBy[0].columnName = x_3df.sortInfo.field;
x_66.query.orderBy[0].direction = ('ASC' == x_3df.sortInfo.direction) ? x_1j1.x_8k : x_1j1.x_26k;
}
else {
if (x_3dm) {
x_66.query.orderBy[0].columnName = x_3dh.sort;
}
if (x_3dn) {
x_66.query.orderBy[0].direction = ('ASC' == x_3dh.dir) ? x_1j1.x_8k : x_1j1.x_26k;
}
}
}
for (var x_3dq in x_66) {
if (('method' == x_3dq) || ('object' == x_3dq)) {
continue;
}
if (('start' == x_3dq) || ('limit' == x_3dq) || ('sort' == x_3dq) || ('dir' == x_3dq)) {
continue;
}
if (!this.x_2hm && ('query' == x_3dq)) {
continue;
}
x_3do[x_3dq] = x_66[x_3dq];
x_3dp = true;
}

this.x_3dr = kerio.lib.x_2rm(x_6q);
if (x_3dp) {
x_6q.params = Ext.encode(x_3do);
this.x_3dr.params = x_3do;
}
this.x_32v.x_3dg = this.x_3dg;
this.x_32v.x_3dr = this.x_3dr;
}, 
x_3cm: function(x_2v) {
var x_3ds = this.x_3ay,
x_3dt = x_2v.x_5y ? true : false,
x_66 = (x_2v.x_65 && x_2v.x_65.x_66) || {},
x_5y = (typeof x_2v.x_5y == 'number') ? x_2v.x_5y : x_3ds.pageSize;
if (!this.x_3cl) {
x_66.start = 0;
x_66.limit = -1;
}
if (!x_3dt) {
x_5y = this.x_3du;
}
else {
if (!x_66.query) {
x_66.query = {};
}
x_66.limit = x_5y;
}
this.x_5y = x_5y;
this.x_3dv = x_3dt;
this.x_3dg = x_66;
}, 
x_3cs: function(x_3dw, x_3dx, x_6q) {
this.x_2sk.x_2d.call(this.x_3m, this.x_3m, x_6q, this.x_3d4.jsonData);
},

x_3cr: function(x_3dy, x_2s, x_6v, x_3dz) {
if (200 != x_6v.status) {
return;
}
this.x_2sk.x_3cq.call(this.x_3m, this.x_3m, x_6v);
},

x_3cp: function(x_3dw, x_3dx) {
kerio.lib.x_2t2(this.x_3m, kerio.lib.x_6b.x_6d.x_6e.x_4l);
},

x_eq: function(x_3e3) {
var x_1gy;
if (this.x_3cl || (true !== x_3e3)) {
x_1gy = this.x_2o.getCount();
}
else {
x_1gy = this.x_2o.getTotalCount();
}
return x_1gy;
},

x_3e4: function () {
var x_3d1 = this.x_3d5,
x_3e5 = [],
x_o5 = this.x_2hl,
x_41, x_42, x_eo;
if (!this.x_3cl) {
return;
}
x_o5.commitChanges();
for (x_41 = 0, x_42 = x_o5.getCount(); x_41 < x_42; x_41++) {
x_eo = x_o5.getAt(x_41).data;
x_3e5.push(this.x_3e6(x_eo));
}
x_3d1.data = x_3e5;
},

x_3e6: function (x_3e7) {
var x_3e8 = this.x_3d8,
x_3e9 = [],
x_41, x_42 = x_3e8.length;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3e9.push(x_3e7[x_3e8[x_41].name]);
}
return x_3e9;
},

x_7k: function(x_47, x_3ac, x_jm) {
var	x_o5 = this.x_2hl,
x_3d1 = this.x_3d5,
x_3ea = x_3d1.data,
x_3eb = [],
x_gk = [],
x_1z3, x_b3,
x_41, x_42,
x_1kp;
x_3ac = (true === x_3ac);
if (!x_3ac) {
this.x_3m.x_8f();
}
for (x_41 = 0, x_42 = x_47.length; x_41 < x_42; x_41++) {
x_b3 = x_47[x_41];
if ('object' == Ext.type(x_jm)) {
for (x_1kp in x_jm) {
x_b3[x_jm[x_1kp]] = x_b3[x_1kp];
}
}
x_1z3 = this.x_3ec(x_b3);
x_3eb.push(x_1z3);
}
x_o5.add(x_3eb);
if (this.x_3cl) {
if ((x_47.length > 0) && ('object' == Ext.type(x_47[0]))) {
for (x_41 = 0, x_42 = x_47.length; x_41 < x_42; x_41++) {
x_gk.push(this.x_3e6(x_47[x_41]));
}
}
else {
x_gk = x_47;
}
if (x_3ac) {
x_3ea = x_3ea.concat(x_gk);
}
else {
x_3ea = x_gk;
}
x_3d1.data = x_3ea;
}
},

x_3ec: function(x_eo) {
var x_3ed = this.x_3ee; if (!x_3ed) {
x_3ed = Ext.data.Record.create(this.x_3d8);
this.x_3ee = x_3ed;
}
if (x_eo instanceof Array) {
x_eo = this.x_3ef(x_eo, this.x_3d8);
}
else {
x_eo = kerio.lib.x_9m(x_eo);
}
return new x_3ed(x_eo);
}, 
x_ih: function(x_eo, x_3eg, x_3eh) {
var x_2kj = this.x_3ei(),
x_3ej = this.x_5y - 1,
x_3ek,
x_o5,
x_3el,
x_3em;
x_3eh = (true === x_3eh);
if (!x_3eh && (undefined !== x_3eg) && ((x_2kj >= x_3eg) || (x_3ej <= x_3eg))) {
x_3ek = x_3eg - (x_3eg % this.x_5y);
this.x_6y({start: x_3ek});
return;
}
x_o5 = this.x_2hl;
x_3el = this.x_3ec(x_eo);
x_3em = x_o5.data.items.length;
if (!x_3eh && (this.x_5y <= x_3em)) {
x_o5.remove(x_o5.getAt(x_3em - 1));
}
if ((undefined !== x_3eg) && (x_3em > x_3eg)) {
x_o5.insert(x_3eg, x_3el);
}
else {
x_o5.add(x_3el);
}
}, 
x_6y: function(x_66) {
var x_28 = x_66;
if (x_28) {
for (var x_1mc in x_28) {
this.x_3dg[x_1mc] = x_28[x_1mc];
}
x_28 = this.x_3dg;
}
else {
x_28 = this.x_3dr;
}
this.x_2hl.load({
params: x_28
});
}, 
x_fm: function(x_eo, x_3el, x_3en, x_3eg) {
var
x_o5 = this.x_2hl,
x_3eo,
x_1mc;
x_3eo = x_3el.data;
for (x_1mc in x_eo) {
if (undefined !== x_3eo[x_1mc]) {
x_3eo[x_1mc] = x_eo[x_1mc];
}
}
x_o5.remove(x_3el);
x_o5.insert(x_3eg, x_3el);
}, 
x_fn: function(x_eo, x_3ep) {
var x_3eg = this.x_2hl.data.items.length;
x_3ep = (true === x_3ep);
if (!x_3ep && ((this.x_5y - 1) < x_3eg)) {
return;
}
this.x_ih(x_eo, x_3eg, x_3ep);
}, 
x_3ei: function() {
var x_3d0 = this.x_2o;
if (x_3d0 && x_3d0.lastOptions && x_3d0.lastOptions.params) {
return x_3d0.lastOptions.params.start;
}
return 0;
}, 
x_3ef: function(x_47, x_3eq) {
var x_3er = {},
x_3es,
x_41,
x_42 = x_3eq.length,
x_3et,
x_jm;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3et = x_3eq[x_41];
x_jm = x_3et.mapping;
if (undefined === x_jm) {
x_jm = x_41;
}
x_3es = x_47[x_jm];
if (x_3es instanceof Object) {
x_3er[x_3et.name] = kerio.lib.x_9m(x_3es);
}
else {
x_3er[x_3et.name] = x_3es;
}
}
return x_3er;
}, 
x_2ji: function() {
return kerio.lib.x_2rm(this.x_3dr);
},

x_2jm: function(x_6u) {
this.x_3dr = x_6u;
},

x_3eu: function() {
var x_pc = this.x_3d5.activeRequest;
if (undefined !== x_pc) {
kerio.lib.x_6t.x_qf(x_pc);
}
},

x_ez: function (x_47, x_6q, x_3ac) {
var
x_3ev = this.x_2o,
x_3ew = this.x_3d4.readRecords(x_47);
if (undefined !== x_3ac) {
if (!x_6q) {
x_6q = {};
}
x_6q.add = x_3ac;
}
x_3ev.loadRecords(x_3ew, x_6q, true);
},
x_3ex: null
});


kerio.lib.x_h1 = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2oy;
kerio.lib.x_h1.superclass.constructor.call(this);
this.x_1j = x_1j;
kerio.lib.x_2qj(this, x_1j);
this.x_3ey = x_2v.x_gx; var x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
x_2o.on('render', this.x_31f, this);
if (true === x_2v.x_1m) {
this.x_2k(false);
}
};
Ext.extend(kerio.lib.x_h1, kerio.lib.x_1md,

{
x_35u: true,
x_1kn: false,
x_2db: false,

x_36n: {
x_1p: 'cls'
}, 
x_2ql: function (x_2v) {
var x_2o,
x_3ez;
this.x_lh = x_2v.x_gx[x_2v.x_gz];
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
x_3ez.id = this.x_1j;
x_2o = new kerio.lib.x_3f0(x_3ez);
x_2o.on('linkclick', this.x_3f1, this);
x_2o.on('afterrender', this.x_3f2, this);
return x_2o;
},

x_3f2: function () {
this.x_3f3(this.x_lh);
},

x_3f1: function () {
var x_10 = this.x_3f4;
if (this.x_3f5) {
this.x_3f5.call(this, this);
}
if (x_10) {
if (x_10.x_gc) {
kerio.lib.x_48(x_10.x_1y, x_10.x_gc);
}
else if (x_10.x_5g || x_10.x_n) {
kerio.lib.x_5l.x_5m(x_10);
}
}
},

x_ix: function (x_3f6) {
var x_2v = this.x_3ey[x_3f6];
if (x_2v) {
this.x_3f3(x_2v);
if (!this.x_35u) {
this.x_2k(true);
}
}
else {
kerio.lib.x_nq('Internal error: x_h1.x_ix - invalid config id \'' + x_3f6 + '\'!', 'statusBar.js');
}
},

x_3f3: function (x_2v) {
var x_3f7 = this.x_lh,
x_3f8 = x_2v.x_js;
if (x_3f7.x_js && x_3f7.x_js.x_1p) {
this.x_3f9(x_3f7.x_js.x_1p);
}
if (x_3f8) {
this.x_3fa(x_3f8.x_1p);
this.x_3fb(x_3f8.x_gc);
}
this.x_3fc(undefined !== x_3f8);
this.x_3fd(x_3f7.x_cy);
this.x_3fe(x_2v.x_cy);
this.x_3ff(undefined !== x_2v.x_cy);
this.x_3f5 = null;
this.x_3f4 = null;
if (x_3f8) {
this.x_3f5 = x_3f8.x_25;
this.x_3f4 = x_3f8.x_16;
}
if (undefined !== x_2v.x_gc) {
this.x_13s(x_2v.x_gc);
}
if (x_3f7.x_1p) {
this.x_3fg(x_3f7.x_1p);
}
this.x_3fh(x_2v.x_1p);
this.x_lh = x_2v;
},

x_13s: function (x_gc) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
if (!x_gc) {
x_gc = '';
}
this.x_2o._kx.x_3fi.update(x_gc);
},

x_3fb: function (x_gc) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
if (!x_gc) {
x_gc = '';
}
this.x_2o._kx.x_3fj.update(x_gc);
},

x_3fa: function (x_1p) {
this.x_3fk('x_55', this.x_2o._kx.x_3fj, x_1p);
},

x_3f9: function (x_1p) {
this.x_3fk('x_58', this.x_2o._kx.x_3fj, x_1p);
},

x_3fe: function (x_1p) {
this.x_3fk('x_55', this.x_2o._kx.x_2sw, x_1p);
},

x_3fd: function (x_1p) {
this.x_3fk('x_58', this.x_2o._kx.x_2sw, x_1p);
},

x_3fh: function (x_1p) {
this.x_3fk('x_55', this.x_2o._kx.x_3fi, x_1p);
},

x_3fg: function (x_1p) {
this.x_3fk('x_58', this.x_2o._kx.x_3fi, x_1p);
},

x_3fk: function (x_13x, x_ax, x_1p) {
if (!x_1p) {
return;
}
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_ax[(x_13x == 'x_58') ? 'removeClass' : 'addClass'](x_1p);
},

x_3ff: function (x_3fl) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
if (!this.x_2o._kx.x_2sw) {
return;
}
x_3fl = (undefined === x_3fl) ? true : x_3fl;
this.x_2o._kx.x_2sw.setDisplayed(x_3fl);
},

x_3fc: function (x_3fl) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
if (!this.x_2o._kx.x_3fj) {
return;
}
x_3fl = (undefined === x_3fl) ? true : x_3fl;
this.x_2o._kx.x_3fj.setDisplayed(x_3fl);
},

x_84: function (x_1yx) {

},

x_31: function () {
return this.x_1kn;
},

x_85: function (x_35t) {

},

x_5p: function () {
return this.x_2db;
},

x_2k: function (x_2er) {
var x_3fm,
x_3m;
x_2er = (undefined === x_2er) ? true : x_2er;
this.x_35u = x_2er;
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.setVisible(x_2er);
x_3m = this.x_3m;
if (x_3m) {
x_3fm = x_3m.x_2o;
if (x_3fm && x_3fm.syncSize) {
x_3fm.syncSize();
}
x_3fm = x_3m.x_2o.ownerCt;
if (x_3fm && x_3fm.doLayout) {
x_3fm.doLayout();
}
}
},

x_2fb: function () {
return this.x_35u;
}
}); 
kerio.lib.x_3f0 = function(x_2v) {
kerio.lib.x_3f0.superclass.constructor.call(this, x_2v);
kerio.lib.x_2sf(this, {
x_3fn: this.id + '_' + 'x_js',
x_3fo: this.id + '_' + 'x_gc',
x_3fp: this.id + '_' + 'x_x6',
x_3fj: null,
x_3fi: null,
x_2sw: null
});
var x_33n = this._kx;
this.addClass('statusBar'); this.html = new Ext.Template(this._kxp.x_3fq).apply({
x_3fn: x_33n.x_3fn,
x_3fo: x_33n.x_3fo,
x_3fp: x_33n.x_3fp,
x_gc: ''
});
};
Ext.extend(kerio.lib.x_3f0, Ext.Panel,

{
height: 21, border: false, bodyBorder: false,
afterRender: function () {
kerio.lib.x_3f0.superclass.afterRender.call(this);
var x_3fj,
x_33n = this._kx,
x_3fn = x_33n.x_3fn,
x_3fo = x_33n.x_3fo,
x_3fp = x_33n.x_3fp;
if (x_3fo) {
x_33n.x_3fi = Ext.get(x_3fo);
}
if (x_3fp) {
x_33n.x_2sw = Ext.get(x_3fp);
}
if (x_3fn) {
x_3fj = Ext.get(x_3fn);
if (x_3fj) {
x_3fj.on('click', function () {
this.fireEvent('linkclick', this);
}, this);
}
x_33n.x_3fj = x_3fj;
}
this.fireEvent('afterrender', this);
}
});
kerio.lib.x_3f0.prototype._kxp = Ext.apply({}, kerio.lib.x_3f0.prototype._kxp, {
x_3fq: '<span id="{x_3fp}" class="statusBarIcon">&nbsp; &nbsp; &nbsp; &nbsp;</span><span id="{x_3fo}" class="statusBarText"></span>' +
' <a id="{x_3fn}" class="statusBarLink" href="javascript:void(0)"></a>'
});


kerio.lib.x_py = function(x_1j, x_2v)
{
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2oe;
kerio.lib.x_py.superclass.constructor.call(this, x_1j, x_2v);
this.x_1j = x_1j;
this.x_1e = [];    this.x_3fr = {};
this.x_3fs = {};
x_2v = kerio.lib.x_2r7(x_2v);
var x_2o = this.x_2ql(x_2v);
var x_2bo;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
this.x_2o = x_2o;
kerio.lib.x_2qj(this, x_1j);
this.x_356(x_2v, x_2o);
if (undefined !== this.x_3ft) {
x_2bo = this.x_2o.getActiveTab();
}
};
Ext.extend(kerio.lib.x_py, kerio.lib.x_34d,

{
x_3fu: 'x_3fv' + '_',

x_3ay: {
plain: true,
border: true,
enableTabScroll: true,
layoutOnTabChange: true
},

x_36n: {
x_1p: 'cls'
},

x_3fw: {
disabled: false,
border: false,
cls: 'tabPage',
defaults: {
border: false
},
title: ''
},

x_3fx: {
x_31: 'disabled',
x_23: 'title'
},

x_2ql: function(x_2v) {
var x_3fy = kerio.lib.x_2sl;
var x_370 = x_3fy(x_2v, this.x_3ay, this.x_36n);
Ext.apply(x_370, {
id: this.x_1j, listeners: {
tabchange: function (x_3fz, x_3fv) {
x_3fz.doLayout();
},
resize: (Ext.isSafari ? this.x_3g0 : Ext.emptyFn)
},
items: []
});
var x_1e = x_2v.x_1e;
var x_3g1;
var x_31y;
var x_3g2;
var x_3fv;
var x_1x;
var x_339;
var x_3g3 = this.x_3fw;
var x_3g4 = this.x_3fx;
var x_3g5;
var x_3g6;
var x_175;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
if (!x_1e[x_41]) {
continue;
}
x_3g1 = x_1e[x_41];
x_31y = (undefined === x_3g1.x_1j) ? x_41 : x_3g1.x_1j;
x_3g2 = this.x_3g7(x_31y);
x_3fv = null;
x_3g6 = x_3fy(x_3g1, x_3g3, x_3g4);
Ext.apply(x_3g6, {
id: x_3g2
});
if (x_3g1.x_1x) {
if ('string' == typeof(x_3g1.x_1x)) {
x_339 = new Ext.Panel({
html: x_3g1.x_1x,
id: x_3g2
});
}
else {
x_1x = x_3g1.x_1x;
x_1x.x_2p = this;
this.x_3fr[x_3g2] = x_1x;
if (x_1x.x_2bn) {
x_339 = x_1x.x_2bn;
}
else {
x_339 = x_1x.x_2o;

if (Ext.isIE && kerio.lib.x_6b.x_2nj == x_1x.x_3h) {
x_339.hideMode = 'offsets';
}
}
}
this.x_3fr[x_339.id] = x_1x;
x_3g5 = x_339.cls;
x_175 = x_3fy(x_3g1, x_3g3, x_3g4);
Ext.apply(x_339, x_175);
if (x_3g5) {
x_339.cls += ' ' + x_3g5;
}
x_370.items.push(x_339);
this.x_3fs[x_31y] = x_339.id;
this.x_1e[this.x_3g8(x_31y)] = x_339;
if ((undefined === x_370.activeTab) || x_3g1.x_3g9) {
x_370.activeTab = x_339;
}
}
}
var x_2o = new Ext.TabPanel(x_370);
return x_2o;
},

x_31z: function (x_3ga) {
for (var x_31y in this.x_3fs) {
if (this.x_3fs[x_31y] == x_3ga) {
return x_31y;
}
}
return null;
},

x_lf: function(x_31y) {
var x_3gb = this.x_3gc(x_31y);
var x_m4 = this.x_2o.activeTab;
if (x_m4 && x_3gb && (x_m4.id == x_3gb.id)) {
return;
}
x_3gb.show();
},

x_3g0: function(x_3gd) {
var x_3ge = x_3gd.el.child('div.x-tab-strip-spacer').getWidth();
var x_3gf = x_3gd.getScrollArea();
var x_3gg = (x_3gd.scrollLeft && x_3gd.scrollLeft.isVisible()) ? 36 : 0;
if (x_3ge - x_3gf != x_3gg) {
x_3gd.stripWrap.setWidth(x_3ge - x_3gg);
}
},

x_16z: function (x_3gh, x_1r) {
x_1r = (undefined === x_1r) ? true : x_1r;
if (!Ext.isArray(x_3gh)) {
x_3gh = [x_3gh];
}
var x_3fv;
for (var x_41=0, x_42=x_3gh.length; x_41<x_42; x_41++) {
x_3fv = this.x_3gc(x_3gh[x_41]);
if (x_3fv) {
x_3fv.setDisabled(x_1r);
}
}
},

x_3g8: function(x_31y) {
return this.x_3fu + x_31y;
},

x_3gc: function(x_31y) {
return this.x_1e[this.x_3g8(x_31y)];
},

x_3g7: function(x_31y) {
return this.x_1j + '_' + this.x_3fu + x_31y;
},

x_3gi: function() {
return this.x_2o.items.length;
},

x_3gj: function(x_31y) {
if (!x_31y) {
return null;
}
x_31y = this.x_3g7(x_31y);
return this.x_3fr[x_31y];
},

x_32m: function(x_1g4) {
var
x_32o = new kerio.lib.x_32p(),
x_pz = this.x_1e,  x_31y,                x_3gk,               x_3gl;          for (x_31y in x_pz) {
x_3gk = x_pz[x_31y];
if (!x_3gk || !x_3gk._kx || !x_3gk._kx.x_2vk) {
continue; }
x_3gl = x_3gk._kx.x_2vk; if (!x_3gl.x_32m) {
continue; }
if (x_3gk.disabled) {
continue;
}
x_32o.x_55(              x_3gl.x_32m(x_1g4),
x_32o.x_32q         ); } return x_32o;
} });    

Ext.grid.ColumnModel.defaultRenderer = function(x_1o) {
if ("string" == typeof(x_1o)) {
if(x_1o.length < 1) {
x_1o = '&#160;';
}
else {
x_1o = Ext.util.Format.htmlEncode(x_1o);
}
}
return x_1o;
};

Ext.grid.GridView.prototype.findRow = function(x_35o){
if(!x_35o){
return false;
}
return this.fly(x_35o).findParent(this.rowSelector, 15);
};

Ext.grid.GroupingView.prototype.toggleGroup = Ext.grid.GroupingView.prototype.toggleGroup.createSequence(function (x_vy) {
x_vy = Ext.getDom(x_vy);
var x_3gm = Ext.fly(x_vy);
var x_3gn = !x_3gm.hasClass('x-grid-group-collapsed');
this.fireEvent('groupstatechanged', this.grid, Ext.get(x_vy), x_3gn);
});

Ext.grid.GroupingView.prototype.interceptMouse = function(e){
var hd = e.getTarget('.x-grid-group-hd', this.mainBody);
if (hd) {
if (false !== this.fireEvent('beforegroupstatechanged', this.grid, Ext.get(hd.parentNode), e)) {
e.stopEvent();
this.toggleGroup(hd.parentNode);
}
}
};
Ext.grid.GroupingView.prototype.doRender = function(cs, rs, ds, startRow, colCount, stripe){
if(rs.length < 1){
return '';
}
var _kx = { x_3go: null };
var groupField = this.getGroupField();
var colIndex = this.cm.findColumnIndex(groupField);
this.enableGrouping = !!groupField;
if(!this.enableGrouping || this.isUpdating){
return Ext.grid.GroupingView.superclass.doRender.apply(this, arguments);
}
var gstyle = 'width:'+this.getTotalWidth()+';';
var gidPrefix = this.grid.getGridEl().id;
var cfg = this.cm.config[colIndex];
var groupRenderer = cfg.groupRenderer || cfg.renderer;
var prefix = this.showGroupName ? (cfg.groupName || cfg.header)+': ' : '';
var rowIndex;
var r, gvalue;
var isCollapsed;
var gcls;
var g;
var groups = [], curGroup, i, len, gid;
for(i = 0, len = rs.length; i < len; i++){
rowIndex = startRow + i;
r = rs[i];
gvalue = r.data[groupField];
_kx.x_3go = this.getGroup(gvalue, r, groupRenderer, rowIndex, colIndex, ds);  if ('object' == typeof(_kx.x_3go)) {
g = gvalue;
}
else {
g = _kx.x_3go;
}
if(!curGroup || curGroup.group != g){
gid = gidPrefix + '-gp-' + groupField + '-' + Ext.util.Format.htmlEncode(g);
isCollapsed  = typeof this.state[gid] !== 'undefined' ? !this.state[gid] : this.startCollapsed;
gcls = isCollapsed ? 'x-grid-group-collapsed' : '';
curGroup = {
group: g,
gvalue: gvalue,
text: prefix + g,
groupId: gid,
startRow: rowIndex,
rs: [r],
cls: gcls,
style: gstyle
};
if ('object' == typeof(_kx.x_3go)) {
curGroup.text = _kx.x_3go.x_3gp;  }
groups.push(curGroup);
}else{
curGroup.rs.push(r);
}
r._groupId = gid;
}
var buf = [];
for(i = 0, len = groups.length; i < len; i++){
g = groups[i];
this.doGroupStart(buf, g, cs, ds, colCount);
buf[buf.length] = Ext.grid.GroupingView.superclass.doRender.call(this, cs, g.rs, ds, g.startRow, colCount, stripe);
this.doGroupEnd(buf, g, cs, ds, colCount);
}
return buf.join('');
};

kerio.lib.x_3d3 = function(x_47){
kerio.lib.x_3d3.superclass.constructor.call(this);
this.data = x_47;
};
Ext.extend(kerio.lib.x_3d3, Ext.data.MemoryProxy,

{

load: function(x_28, x_3cg, x_2e, x_2q, x_3ch) {
var
x_s8,
x_3gq,
x_3gr,
x_1ct,
x_2uc,
x_31n;
x_28 = x_28 || {};
if (isNaN(x_28.start)) {
x_28.start = 0;
}
try {
x_s8 = x_3cg.readRecords(this.data);
}
catch(x_2tk) {
this.fireEvent("loadexception", this, x_3ch, null, x_2tk);
x_2e.call(x_2q, null, x_3ch, false);
return;
}
if (x_28.filter) {
x_s8.records = x_s8.records.filter(function(x_ax){
if ("object" == typeof(x_ax)){
x_3gq = x_28.filterCol || 0;
return String(x_ax[x_3gq]).match(x_28.filter) ? true : false;
}
else {
return String(x_ax).match(x_28.filter) ? true : false;
}
});
}
if (x_2q.sortInfo) {
x_3gr = function(x_3gs, x_83) {
var x_3gt,
x_3gu;
if (undefined === x_3gs || undefined === x_83) {
x_3gt = '';
x_3gu = '';
}
else {
x_3gt = x_3gs.toString().toLowerCase();
x_3gu = x_83.toString().toLowerCase();
}
if (x_3gt < x_3gu) {
return -1;
}
else if (x_3gt > x_3gu) {
return 1;
}
else {
return 0;
}
};
x_s8.records.sort(function(x_2uh, x_2ui) {
var x_s8 = 0;
if ("object" == typeof(x_2uh)) {
x_s8 = x_3gr(x_2uh.data[x_2q.sortInfo.field], x_2ui.data[x_2q.sortInfo.field]);
}
else {
x_s8 = x_3gr(x_2uh, x_2ui);
}
if (0 === x_s8) {
x_s8 = (x_2uh.index < x_2ui.index) ? -1 : 1;
}
return x_s8;
});
}
if (undefined !== x_28.start && undefined !== x_28.limit) {
if (!x_2q.sortInfo || ("DESC" == String(x_2q.sortInfo.direction).toUpperCase())) {
x_2uc = x_s8.records.length - x_28.start;
x_1ct = x_2uc - x_28.limit;
x_1ct = (0 <= x_1ct) ? x_1ct : 0;
x_31n = true;
}
else {
x_1ct = x_28.start;
x_2uc = x_28.start + x_28.limit;
x_31n = false;
}
x_s8.records = x_s8.records.slice(x_1ct, x_2uc);
if (x_31n) {
x_s8.records = x_s8.records.reverse();
}
}
x_2e.call(x_2q, x_s8, x_3ch, true);
}
}); 
kerio.lib.x_3gv = function(x_2v){
kerio.lib.x_3gv.superclass.constructor.call(this, x_2v);
}; Ext.extend(kerio.lib.x_3gv, Ext.PagingToolbar, {


autoCreate: {
cls:'x-toolbar x-small-editor hiddenPaging',
html:'<table cellspacing="0"><tr></tr></table>'
},

onPagingKeydown: function(x_96) {
switch (x_96.keyCode) {
case x_96.UP:
case x_96.RIGHT:
case x_96.DOWN:
case x_96.LEFT:
case x_96.PAGEUP:
case x_96.PAGEDOWN:
case x_96.HOME:
case x_96.END:
x_96.stopEvent();
break; default:
kerio.lib.x_3gv.superclass.onPagingKeydown.call(this, x_96);
break; }
} }); 
Ext.grid.CheckColumn = function(config){
Ext.apply(this, config);
this.origRenderer = this.renderer;
this.renderer = this.complexRenderer.createDelegate(this);
};
Ext.grid.CheckColumn.prototype = {
init : function(grid){
this.grid = grid;
this.grid.on('render', function() {
var view = this.grid.getView();
view.mainBody.on('click', this.onMouseEvent, this);
view.mainBody.on('dblclick', this.onMouseEvent, this);
}, this
);
},
isColumnWithCbx: function(t) {
return (t && t.className && t.className.indexOf('x-grid3-cc-'+this._kx.x_1j) != -1);
},
onMouseEvent : function(e, t) {

if (kerio.lib.x_2u3(e) || (true === this.grid._kx.x_2vk.x_2db)) {
return;
}
var x_4e = e.browserEvent,
x_3gw = 2,  x_3gx = 14,
x_3gy = this._kx,
x_3gz,
x_3h0,
x_3h1,
x_351,
x_350,
x_3l,
x_3h2,
x_fl,
x_1z3,
x_3h3,
x_uu,
x_uv;
if (Ext.isIE && t.tagName && 'PRE' == t.tagName) {  t = t.parentElement;
}
if (this.isColumnWithCbx(t)) {
x_3gz = (undefined === x_4e.offsetX) ? x_4e.layerX : x_4e.offsetX;
if (!x_3gy.x_3h4 && !x_3gy.x_3h5) {
x_3h0 = Ext.get(e.getTarget());
if (x_3h0) {
x_3h1 = Math.round(x_3h0.getWidth() / 2) - Math.round((x_3gx + x_3gw) / 2);
x_3gw += x_3h1;
x_3gx += x_3h1;
}
}
if (x_3gz < x_3gw || x_3gz > x_3gx) {
return true;
}
e.stopEvent();
if ('dblclick' == e.type) {
return true;
}
x_351 = this.grid;
x_3l = x_351._kx.x_2vk;
x_350 = x_351.getView();
x_fl = x_350.findRowIndex(t);
x_1z3 = x_351.store.getAt(x_fl);
x_3h3 = x_3gy.x_3h4 || this.dataIndex;
x_uu = x_1z3.data[x_3h3];
x_uv = !x_uu;
if (x_351.activeEditor) {
x_351.stopEditing();
}
x_3h2 = {
grid  : x_351,
record: x_1z3,
field : x_3h3,
value : x_uu,
row   : x_fl,
column: x_350.findCellIndex(t)
};
if (x_3l.x_2sk.x_h6) {
if (false === x_3l.x_3h6.call(x_3l, x_3h2)) {
return;
}
}
if (x_3gy.x_h6) {
if (false === x_3gy.x_h6.call(x_3l, x_3l, x_3h3, x_uu, x_1z3.data)) {
return;
}
}
x_1z3.set(x_3h3, x_uv);
if (x_3gy.x_9t) {
x_3h2.value = x_uv;
x_3l.x_3h7(x_3h2);
x_3gy.x_9t(x_3l, x_uv, x_1z3.data);
}
}
},
cbxRenderer : function(x_1o, x_3h8, x_1z3, x_fl, x_kb, x_3df, x_3h9) {
var x_3ha;
var x_3hb = '';
var x_3hc = (undefined === x_3h9) ? x_1o : x_3h9;
if (this._kx.x_3h4 || this._kx.x_3h5) {
if (this._kx.x_3h4) {
x_3ha = x_1o;
x_3hc = x_1z3.data[this._kx.x_3h4];
}
else {
x_3ha = x_1z3.data[this._kx.x_3h5];
}
x_3ha = '&nbsp; &nbsp; &nbsp; ' + x_3ha;
x_3hb = ' gridColCbxWithText';
}
else {
x_3ha =  '&#160';
}
x_3h8.css += ' x-grid3-check-col-td';
return '<div unselectable="on" class="x-grid3-check-col' + (x_3hc?'-on':'') + ' x-grid3-cc-'
+ this._kx.x_1j + x_3hb + '">' + x_3ha + '</div>';
},
complexRenderer: function(x_1o, x_3h8, x_1z3, x_fl, x_kb, x_3df) {
var x_3h9 = x_1o;
if (this.origRenderer) {
x_1o = this.origRenderer(x_1o, x_3h8, x_1z3, x_fl, x_kb, x_3df);
}
else {
x_1o = Ext.util.Format.htmlEncode(x_1o);
}
x_1o = this.cbxRenderer(x_1o, x_3h8, x_1z3, x_fl, x_kb, x_3df, x_3h9);
return x_1o;
}
};

kerio.lib.x_3hd = function(grid, config) {
this.target = new Ext.dd.DropTarget(grid.getEl(), {
ddGroup: grid.ddGroup || 'GridDD-' + grid.id,
grid: grid,
gridDropTarget: this,
notifyDrop: this.x_3he,
notifyOver: this.x_3hf,
notifyOut: this.x_3hg
});
if (config) {
Ext.apply(this.target, config);
if (config.listeners) {
Ext.apply(this, {
listeners: config.listeners
});
}
}
this.addEvents({
'beforerowmove': true,
'afterrowmove': true,
'beforerowcopy': true,
'afterrowcopy': true
});
kerio.lib.x_3hd.superclass.constructor.call(this);
};
Ext.extend(kerio.lib.x_3hd, Ext.util.Observable, {
x_3he: function(dd, x_4e, x_47) {
if (this.currentRowEl) {
this.currentRowEl.removeClass("grid-row-insert-below");
this.currentRowEl.removeClass("grid-row-insert-above");
}
var x_fl = this.gridDropTarget.x_3hh.call(this, x_4e);
if (x_fl === false) {
return false;
}
if (x_fl == x_47.rowIndex) {
return false;
}
var x_36v = this.copy ? 'beforerowcopy' : 'beforerowmove';
var x_3hi = this.gridDropTarget.fireEvent(x_36v, this.gridDropTarget, x_47.rowIndex, x_fl, x_47.selections);
if (false === x_3hi) {
return false;
}
var x_o5 = this.grid.getStore();
var x_3hj = x_o5.getCount();
var x_3hk = x_47.selections.length;
var x_41;
if (!this.copy) {
for (x_41 = 0; x_41 < x_3hk; x_41++) {
x_o5.remove(x_o5.getById(x_47.selections[x_41].id));
}
}
var x_3hl = x_fl;
var x_3hm = false;
if (!this.copy) {
if (x_3hl >= (x_3hj - 1)) {
x_3hl = x_3hj - x_3hk;
x_3hm = true;
}
if (x_3hl < 0) {
x_3hl = 0;
}
}
if (!x_3hm && (this.rowPosition > 0)) {
x_3hl -= x_3hk - 1;
}
x_o5.insert(x_3hl, x_47.selections);
var x_3hn = this.grid.getSelectionModel();
if (x_3hn) {
x_3hn.selectRecords(x_47.selections);
this.grid.getView().focusRow(x_fl);
}
x_36v = this.copy ? 'afterrowcopy' : 'afterrowmove';
this.gridDropTarget.fireEvent(x_36v, this.gridDropTarget, x_47.rowIndex, x_fl, x_47.selections);
return true;
},
x_3hf: function(dd, x_4e, x_47) {
var
x_fl = this.gridDropTarget.x_3hh.call(this, x_4e),
x_o5 = this.grid.getStore(),
x_3ho = x_o5.data.keys,
x_bl,
x_41,
x_42,
x_3hp,
x_3hq,
x_3hr,
x_3hs;
for (x_bl in x_3ho) {
for(x_41 = 0, x_42 = x_47.selections.length; x_41 < x_42; x_41++) {
if (x_3ho[x_bl]==x_47.selections[x_41].id) {
if (x_fl == x_bl) {
if (this.currentRowEl) {
this.currentRowEl.removeClass("grid-row-insert-below");
this.currentRowEl.removeClass("grid-row-insert-above");
}
return this.dropNotAllowed;
}
}
}
}
if (x_fl < 0 || x_fl === false) {
this.currentRowEl.removeClass("grid-row-insert-above");
return this.dropNotAllowed;
}
try {
x_3hp = this.grid.getView().getRow(x_fl);
x_3hq = new Ext.Element(x_3hp).getY() - this.grid.getView().scroller.dom.scrollTop;
x_3hs = x_3hp.offsetHeight;
this.rowPosition = x_4e.getPageY() - x_3hq - (x_3hs / 2);
if (this.currentRowEl) {
this.currentRowEl.removeClass("grid-row-insert-below");
this.currentRowEl.removeClass("grid-row-insert-above");
}
if (this.rowPosition > 0) {
this.currentRowEl = Ext.get(x_3hp);
this.currentRowEl.addClass("grid-row-insert-below");
} else {
if (x_fl-1 >= 0) {
x_3hr = this.grid.getView().getRow(x_fl-1);
this.currentRowEl = Ext.get(x_3hr);
this.currentRowEl.addClass("grid-row-insert-below");
} else {
this.currentRowEl.addClass("grid-row-insert-above");
}
}
} catch (err) {
x_fl = false;
}
return (x_fl === false)? this.dropNotAllowed : this.dropAllowed;
},
x_3hg: function(dd, x_4e, x_47) {
if (this.currentRowEl) {
this.currentRowEl.removeClass("grid-row-insert-above");
this.currentRowEl.removeClass("grid-row-insert-below");
}
},
x_3hh: function (x_4e) {
var x_2am = Ext.lib.Event.getTarget(x_4e);
return this.grid.getView().findRowIndex(x_2am);
},
getTarget: function() {
return this.target;
},
getGrid: function() {
return this.target.grid;
},
getCopy: function() {
return this.target.copy?true:false;
},
setCopy: function(b) {
this.target.copy = b?true:false;
}
});

kerio.lib.x_3ht = function(grid, config){
config = config || {};
var x_3hu = grid.id + '-texteditor';
var x_3hv = {
x_1j: x_3hu
};
Ext.apply(x_3hv, config);
var x_3hw;
switch (x_3hv.x_1f) {
case 'x_b4':
x_3hw = kerio.lib.x_x1;
break;
case 'x_9u':
x_3hw = kerio.lib.x_a9;
break;
default: x_3hw = kerio.lib.x_9b;
break;
}
var x_3hx = new x_3hw(x_3hv.x_1j, x_3hv);
this.x_3hy = x_3hx;
kerio.lib.x_3ht.superclass.constructor.call(this, x_3hx.x_2o);
this.grid = grid;
if(!grid.rendered){
grid.on('render', this.initEditor, this);
}else{
this.initEditor(grid);
}
if (config.x_3hz) {
this.x_3i0 = config.x_3hz;
this.on('complete', this.onCompleteHandler, this);
}
};
Ext.extend(kerio.lib.x_3ht, Ext.Editor, {

alignment: 'l-l',
cls: 'x-small-editor gridHeaderEditor',
maxWidth: 250,
toggleGroupDelay : 350,

initEditor : function(grid) {
var x_3i1 = grid.getView();
x_3i1.on('beforegroupstatechanged', this.groupHeaderClickHandler, this);
x_3i1.on('groupstatechanged', this.clearTimer, this);
x_3i1.mainBody.on('dblclick', this.groupHeaderDblClickHandler, this);
this.on('complete', this.updateGroupHeader, this);
this.on('startedit', this.bindScroll, this, {delay:10});
this.on('specialkey', this.onSpecialKey, this);
},

onCompleteHandler: function (x_ed, x_1o, x_3i2) {
var x_3l = this.grid._kx.x_2vk;
if (this.x_3i0) {
this.x_3i0.call(x_3l, x_3l, this.x_3hy, x_1o, x_3i2);
}
},

groupHeaderClickHandler: function (grid, groupEl, e) {
var
hd = e.getTarget('.groupHeaderText', this.mainBody),
x_3i1;
this.completeEdit();
e.stopEvent();
if (!hd) {
return true;
}
if (!this.autoEditTimer) {
x_3i1 = grid.getView();
this.autoEditTimer = x_3i1.toggleGroup.defer(this.toggleGroupDelay, x_3i1, [groupEl.dom]);
}
return false;
},

clearTimer: function () {
clearTimeout(this.autoEditTimer);
this.autoEditTimer = false;
},

triggerEdit : function(x_3i3) {
this.completeEdit();
this.editGroupHeader = x_3i3;
var x_1o;
try {
x_1o = x_3i3.dom.firstChild.nodeValue;
}
catch (x_330) {
x_1o = '';
}
x_1o = (typeof x_1o == 'string' ? Ext.util.Format.htmlDecode(x_1o) : x_1o);
this.startEdit(x_3i3, x_1o);
return false;
},

bindScroll : function() {
this.grid.getView().scroller.on('scroll', this.cancelEdit, this);
},

getHeaderTextEl: function(x_4e) {
return Ext.get(x_4e.getTarget('.groupHeaderText', this.mainBody));
},

groupHeaderDblClickHandler : function(x_4e) {
this.clearTimer();
var x_3i4 = this.getHeaderTextEl(x_4e);
if (!x_3i4) {
return;
}
this.editGroupHeader = x_3i4;
this.triggerEdit(x_3i4);
},

updateGroupHeader: function(x_3i5, x_1o, x_3i2) {
this.grid.getView().scroller.un('scroll', this.cancelEdit, this);
x_1o = (typeof x_1o == 'string' ? Ext.util.Format.htmlEncode(x_1o) : x_1o);
this.updateStore(x_1o, x_3i2);
},

onSpecialKey : function(x_3i6, x_4e) {
var x_bl = x_4e.getKey();
if(x_bl == x_4e.ESC){
x_4e.stopEvent();
this.cancelEdit();
}
else if(x_bl == x_4e.ENTER && !x_4e.hasModifier()) {
x_4e.stopEvent();
if (this.x_3hy.x_o4 && (true === this.x_3hy.x_o4())) {
this.completeEdit();
}
}
},

updateStore: function (x_1o, x_3i2) {
var x_o5 = this.grid.getStore();
var x_3i7 = x_o5.groupField;
var x_1e = x_o5.data.items;
var x_g6;
for (var x_41=0, x_42=x_1e.length; x_41<x_42; x_41++) {
x_g6 = x_1e[x_41];
if (x_3i2.toLowerCase() == x_g6.data[x_3i7].toLowerCase()) {
x_g6.data[x_3i7] = x_1o;
}
}
x_o5.groupBy(x_3i7, true);
}
}); 
kerio.lib.x_3i8 = Ext.extend(Ext.ux.grid.PrinterGridView, {
templates: {
'header': new Ext.Template(
'<thead><tr class="x-grid3-header x-grid3-hd-row">{cells}</tr></thead>'
),
'hcell': new Ext.Template(
'<td class="x-grid3-hd x-grid3-cell {css}x-grid3-td-{id}" style="{style}">',
'<pre>{value}</pre>',
'</td>'
),
'cell': new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} {css}" style="{style}" tabIndex="0" {cellAttr}>' +
'<div class="x-grid3-cell-inner x-grid3-col-{id}">',
Ext.isIE ? '<pre>{value}</pre>' : '{value}',
'</div></td>'
)
}
});  
kerio.lib.x_3i9 = Ext.extend(Ext.grid.GridPanel, {
getView : function(){
if(!this.view){
this.view = new kerio.lib.x_3i8(this.viewConfig);
}
return this.view;
}
});

Ext.grid.GroupingView.prototype.interceptMouse = function (e) {
var hd = e.getTarget('.x-grid-group-hd', this.mainBody);
if(hd && !kerio.lib.x_2u3(e)){
e.stopEvent();
this.toggleGroup(hd.parentNode);
}
};

kerio.lib.x_3ia = function (x_2v) {
kerio.lib.x_3ia.superclass.constructor.call(this, x_2v);
kerio.lib.x_2sf(this, {
x_3ib: false,
x_3ic: new Ext.util.MixedCollection(false, function (x_rw) {
return x_rw.id;
})
});
};
Ext.extend(kerio.lib.x_3ia, Ext.grid.CheckboxSelectionModel,

{

initEvents: function(){
Ext.grid.RowSelectionModel.prototype.initEvents.call(this);
var
x_3l = this.grid,
x_3id = this._kxp;
x_3l.store.on('load', x_3id.x_3ie, this);
x_3l.store.on('clear', x_3id.x_3ie, this);
x_3l.on('render', x_3id.x_3if, this);
},

onMouseDown: Ext.emptyFn,

onHdMouseDown: Ext.emptyFn
});

kerio.lib.x_3ia.prototype._kxp = Ext.apply({}, kerio.lib.x_3ia.prototype._kxp, {

x_3ig: function (x_fk, x_3ih) {
var
x_3l = this.grid,
x_b3;
if (this.locked || (x_fk < 0 || x_fk >= x_3l.store.getCount())) {
return;
}
x_b3 = x_3l.store.getAt(x_fk);
x_3ih = (false !== x_3ih);
if (x_b3 && this.fireEvent('beforerowcheck', this, x_fk, x_b3) !== false) {
this._kx.x_3ic.add(x_b3);
x_3l.getView().addRowClass(x_fk, 'checkedRow');
this.fireEvent('rowcheck', this, x_fk, x_b3);
}
if (x_3ih) {
this.fireEvent('checkchanged', this);
}
},

x_3ii: function (x_fk, x_3ih) {
if (this.locked) {
return;
}
var
x_b3 = this.grid.store.getAt(x_fk),
x_32g = this._kx;
x_3ih = (false !== x_3ih);
if (x_b3) {
this._kx.x_3ic.remove(x_b3);
this.grid.getView().removeRowClass(x_fk, 'checkedRow');
this.fireEvent('rowunchecked', this, x_fk, x_b3);
if (x_32g.x_3ib) {
x_32g.x_3ib = false;
this._kxp.x_3ij.call(this);
}
}
if (x_3ih) {
this.fireEvent('checkchanged', this);
}
},

x_3ik: function (x_3il) {
var
x_41,
x_42,
x_3im,
x_74,
x_32g = this._kx;
x_3il = (false !== x_3il);
x_3im = (x_3il !== x_32g.x_3ib);
if (this.locked || !x_3im) {
return;
}
this._kx.x_3ic.clear();
x_74 = this._kxp[x_3il ? 'x_3ig' : 'x_3ii'];
for (x_41 = 0, x_42 = this.grid.store.getCount(); x_41 < x_42; x_41++) {
x_74.call(this, x_41, false);
}
x_32g.x_3ib = x_3il;
this.fireEvent('checkchanged', this);
},

x_3in: function () {
this._kxp.x_3ik.call(this, false);
},

x_7d: function(x_fk){
var x_b3 = typeof x_fk == "number" ? this.grid.store.getAt(x_fk) : x_fk;
return (x_b3 && this._kx.x_3ic.key(x_b3.id) ? true : false);
},

x_3io: function (x_3ip) {
var x_3iq = this.selections,
x_o5 = this.grid.store,
x_3ir = (false !== x_3ip) ? 'x_3ig' : 'x_3ii',
x_41,
x_42;
for (x_41 = 0, x_42 = x_3iq.getCount(); x_41 < x_42; x_41++) {
this._kxp[x_3ir].call(this, x_o5.indexOf(x_3iq.itemAt(x_41)), false);
}
this.fireEvent('checkchanged', this);
},

x_3is: function () {
this._kxp.x_3io.call(this, false);
},

x_3it: function () {
var
x_o5 = this.grid.store,
x_3ic = this._kx.x_3ic,
x_3iu = [],
x_42 = x_3ic.getCount(),
x_41,
x_b3;
if (x_o5.isFiltered()) {
for (x_41 = 0; x_41 < x_42; x_41++) {
x_b3 = x_3ic.get(x_41);
if (-1 !== x_o5.indexOf(x_b3)) {
x_3iu.push(x_b3);
}
}
}
else {
x_3iu = x_3iu.concat(x_3ic.items);
}
return x_3iu;
},

x_3iv: function (x_3iw) {
var
x_32g = this._kx,
x_3ic = x_32g.x_3ic,
x_42 = x_3ic.getCount(),
x_o5 = this.grid.store,
x_41,
x_fl;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_fl = x_o5.indexOf(x_3ic.get(x_41));
if (-1 !== x_fl) {
x_3iw.addRowClass(x_fl, 'checkedRow');
}
}
if (x_32g.x_3ib && (this.grid.store.getCount() !== x_42)) {
x_32g.x_3ib = false;
this._kxp.x_3ij.call(this);
}
this.fireEvent('checkchanged', this);
},

x_3ie: function () {
var x_32g = this._kx;
x_32g.x_3ic.clear();
x_32g.x_3ib = false;
this._kxp.x_3ij.call(this);
this.fireEvent('checkchanged', this);
},

x_3ij: function () {
var
x_3ix = this._kx.x_3ix,
x_3ib = this._kx.x_3ib;
if (!x_3ix) {
return;
}
x_3ix[x_3ib ? 'addClass' : 'removeClass']('x-grid3-hd-checker-on');
},

x_3if: function () {
var
x_54 = this.grid.getView(),
x_3iy = Ext.fly(x_54.innerHd).child('.x-grid3-hd-checker'),
x_3iz = this._kxp;
x_54.mainBody.on('mousedown', x_3iz.x_3j0, this);
x_3iy.on('mousedown', x_3iz.x_3j1, this);
kerio.lib.x_2sf(this, {x_3ix: x_3iy});
x_54.on('refresh', x_3iz.x_3iv, this);
},

x_3j0: function (x_4e, x_2am) {
var
x_b3,
x_fk,
x_7d;
if (!kerio.lib.x_2u3(x_4e) && ('x-grid3-row-checker' == x_2am.className)) {
x_4e.stopEvent();
x_b3 = x_4e.getTarget('.x-grid3-row');
if (x_b3) {
x_fk = x_b3.rowIndex;
x_7d = this._kxp.x_7d.call(this, x_fk);
this._kxp[x_7d ? 'x_3ii' : 'x_3ig'].call(this, x_fk);
this.selectRow(x_fk);
this.grid.getView().focusRow(x_fk);
}
}
},

x_3j1: function (x_4e, x_2am) {
x_4e.stopEvent();
this._kxp[this._kx.x_3ib ? 'x_3in' : 'x_3ik'].call(this);
this._kxp.x_3ij.call(this);
}
});

Ext.grid.GridView.prototype.findCell = function(el){
if(!el){
return false;
}
return this.fly(el).findParent(this.cellSelector, 5);  };


kerio.lib.x_4g = function(x_1j, x_2v, x_1g) {
this.x_3h = kerio.lib.x_6b.x_6c;
kerio.lib.x_4g.superclass.constructor.call(this, x_1j, x_2v);
this.x_1j = x_1j;
this.x_3j2 = 2;
this.x_3j3 = 0;
var x_se = kerio.lib.x_2u0;
if (undefined !== x_2v.x_1p) {
this.x_3j4 = x_2v.x_1p;
}
x_2v.x_1p = x_se(x_2v.x_1p, 'baseGrid'); if (true === x_2v.x_5r) {
x_2v.x_1p = x_se(x_2v.x_1p, 'gridNoCellBorders');
}
if (true === x_2v.x_h2) {
x_2v.x_1p = x_se(x_2v.x_1p, 'gridRaster');
}
x_2v = kerio.lib.x_2r7(x_2v);
var x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
this.x_356(x_2v, x_2o);

kerio.lib.x_2sf(x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
if (!x_2v.x_3j5) {
x_2o.on('render', this.x_3j6, this);
}
if (x_2v.x_4c) {
this.x_4c = x_2v.x_4c;
}
if (x_2v.x_5t) {
this.x_3j7(x_2v.x_5t);
}
if (true === x_2v.x_31) {
this.x_84(true);
}
if (true === x_2v.x_5p) {
this.x_85(true);
}
if (false === x_2v.x_2fb) {
this.x_2k(false);
}
x_2o.on('render', this.x_31f, this);
x_2o.on('render', this.x_3j8, this);
x_2o.on('resize', this.x_3j9, this);
if (kerio.lib.x_2lm) {
x_2o.on('mousedown', function(x_96) {
if ('INPUT' !== x_96.getTarget().tagName) {
x_96.preventDefault();
}
});
}
if (this.x_3de) {
this.x_1za.load(this.x_3ja);
}
}; Ext.extend(kerio.lib.x_4g, kerio.lib.x_34d,

{
x_391: kerio.lib.x_6b.x_6d.x_6e,
x_3du: 999999,
x_3jb: {
x_7c: 'x_cr',
x_3jc: 'x_kl',
x_3jd: 'x_cq'
},

x_3je: {
autoExpandMax: 1500,
enableColumnHide: true,
enableColumnMove: true,
enableDragDrop: false,
loadMask: true,
sm: false,
trackMouseOver: true,
_kx: {
x_d2: {
x_3jf: true
},
x_3jg: {
x_3jh: true,
x_3ji: false
}
}  }, x_36n: {
_kx: '_kx',
x_cp: 'autoExpandColumn',
x_3jj: 'autoExpandMin', x_3jh: 'x_3jh',
x_3ji: 'x_3ji',
x_5y: 'pageSize',
x_3jk: 'viewConfig',
x_3jl: 'forceFit',
x_1p: 'cls',
x_3jm: 'enableColumnHide',
x_3jn: 'enableColumnMove',
x_3jo: 'trackMouseOver',
x_1y: 'title',  x_1v6: 'remoteGroup',
x_5q: 'loadMask',
x_25:          {x_2sg: 'rowclick'    , x_2sj: 'this.x_3jp'    , x_2q: 'this'},
x_62:       {x_2sg: 'rowdblclick' , x_2sj: 'this.x_3jq' , x_2q: 'this'},
x_61:   {x_2sg: 'celldblclick', x_2sj: 'this.x_3jr', x_2q: 'this'},
x_h6:     {x_2sg: 'beforeedit'  , x_2sj: 'this.x_3h6', x_2q: 'this'},
x_3js: {x_2sg: 'beforerowcheck'  , x_2sj: 'this.x_3jt', x_2q: 'this'}
},
x_3ju: {
x_3jv: 'align',
x_23: 'header',
x_7s: 'dataIndex',
x_1j: 'id',
x_1m: 'hidden',
x_1w: 'resizable',
x_cs: 'sortable',
x_1u: 'width',
x_7u         : {x_2sg: 'renderer'     , x_rx: 'x_4g.prototype.x_3jw'},
x_go: {x_2sg: 'renderer'     , x_rx: 'x_4g.prototype.x_3jx'},
x_na    : {x_2sg: 'groupRenderer', x_rx: 'x_4g.prototype.x_3jy'}
},
x_3jz: {
x_8p: 'emptyText'
},
x_3k0: {
x_7s: 'groupField',
x_3k1: 'enableGroupingMenu',
x_3k2: 'enableNoGroup',
x_pv: 'groupTextTpl', x_x2: 'startCollapsed'
},
x_3k3: {
hideGroupedColumn: true,
enableGroupingMenu: false,
enableNoGroup: false,
enableRowBody: false,
showGroupName: false
},

x_3k4: {
x_2o2: null
},

x_2ql: function(x_2v) {
var x_36y = this.x_36n,
x_nh = x_2v.x_5x.x_nh,
x_2o,
x_3iw,
x_39a,
x_3k5;
if (x_2v.x_3k6) {
this.x_3k7 = true;
x_2v.x_1p = kerio.lib.x_2u0(x_2v.x_1p, 'selectionByCbx');
}
this.x_3k8 = undefined !== x_2v.x_61;
this.x_3k9 = false !== x_2v.x_3jo;
this.x_3ka = [];
if (x_2v.x_3kb) {
this.x_371 = x_2v;  }
var x_3kc = {
x_5z: x_2v.x_5z,
x_65: x_2v.x_65,
x_1z3: x_2v.x_5x.x_1e,
x_5y: x_2v.x_5y,
x_d2: x_2v.x_5x.x_d2,
x_nh: x_2v.x_5x.x_nh,
x_2d: x_2v.x_2d,
x_3cq: x_2v.x_3cq
};
var x_2hl = new kerio.lib.x_3ck(this, x_3kc);
this.x_2hl = x_2hl;
this.x_3cl = x_2hl.x_3cl;
this.x_1za = x_2hl.x_2hl;
this.x_3de = x_2hl.x_3de;
this.x_5y = x_2hl.x_5y;
this.x_3dv = x_2hl.x_3dv;
this.x_3dg = x_2hl.x_3dg;
this.x_3ja = {params: this.x_3dg};
x_2v = this.x_3kd(x_2v);
this.x_3ke(x_2v);  this.x_3kf(x_2v);
this.x_3kg(x_2v);
x_39a = kerio.lib.x_2sl.call(this, x_2v, this.x_3je, x_36y);
x_39a.store = this.x_1za;
x_39a.cm = this.x_kc;
x_39a.sm = this.x_dl;
x_39a = this.x_3kh(x_2v, x_39a);
x_39a.viewConfig = x_39a.viewConfig || {};
Ext.apply(x_39a.viewConfig, kerio.lib.x_2sl.call(this, x_2v, this.x_3je, this.x_3jz));
Ext.apply(x_39a.viewConfig, {
scrollOffset: 2,
listeners: {
rowsinserted: {fn: function() {this.x_3j9({x_3ki: true});}, scope: this},
rowremoved  : {fn: function() {this.x_3j9({x_3ki: true});}, scope: this}
}
});
if (Ext.isIE && !x_2v.x_3j5) {
if (!x_39a.viewConfig.templates) {
x_39a.viewConfig.templates = {};
}
Ext.apply(x_39a.viewConfig.templates, {
cell: new Ext.Template(
'<td class="x-grid3-col x-grid3-cell x-grid3-td-{id} {css}" style="{style}" tabIndex="0" {cellAttr} unselectable="on">',
'<div class="x-grid3-cell-inner x-grid3-col-{id}" unselectable="on" {attr}><pre unselectable="on">{value}</pre></div>',
'</td>'
)
});
}
else {
x_39a.cls = x_39a.cls ? x_39a.cls + ' whiteSpace' : 'whiteSpace';
}
x_39a.id = this.x_1j; 
if (Ext.isIE7) {
if (!x_39a.listeners) {
x_39a.listeners = {};
}
Ext.apply(x_39a.listeners, {
columnresize: function() {
this.getView().refresh();
}
});
}
x_39a.viewConfig.enableRowBody = this.x_3kj;
this.x_3kk = false;
if (x_nh) {
if (false === x_nh.x_3kl) {
x_39a.cls = x_39a.cls ? (x_39a.cls + ' noGroupHeader') : 'noGroupHeader';
x_nh.x_pv = '';
}
Ext.apply(x_39a.viewConfig,
kerio.lib.x_2sl.call(this, x_nh, this.x_3k3, this.x_3k0)
);
x_39a.viewConfig.enableRowBody = this.x_3kj;
x_39a.view = new Ext.grid.GroupingView(x_39a.viewConfig);
x_39a.viewConfig = null;
this.x_3km = (undefined !== x_nh.x_ed);
this.x_3kk = true;
this.x_3kn = x_nh.x_7s;
}
this.x_3ko = false;


x_39a.plugins = this.x_3ka;
if (x_2v.x_3j5) {  x_39a.renderTo = 'x_3kp';
x_39a.stateId = x_2v.x_3kq;
x_2o = new kerio.lib.x_3i9(x_39a);
x_2o.on('render', this.x_3kr, this);
}
else {
if (x_2v.x_3kb) {  this.x_371.x_3kq = this.x_1j;
x_39a.stateId = this.x_1j;
}
if (this.x_3ks) {
x_2o = new Ext.grid.EditorGridPanel(x_39a);
if (kerio.lib.x_2lm) {
this.x_3kt(x_2o);
}
if (!this.x_2sk.x_h6) {
x_2o.on('beforeedit', this.x_3h7);
}
}
else {
x_2o = new Ext.grid.GridPanel(x_39a);
}
}
x_3iw = x_2o.getView();
if (this.x_3kj || x_2v.x_h3) {
x_3iw.getRowClass = this.x_3ku;
if (x_2v.x_h3) {
this.x_3kv = x_2v.x_h3;
}
}
if (x_2v.x_79) {
this.x_3kw = x_2v.x_79;
x_3k5 = this.x_2bn ? this.x_2bn : x_2o;
this.x_2bn = new Ext.form.FieldSet({
layout: 'fit',
title: this.x_3kw,
items: x_3k5,
cls: 'gridInFieldset gridFieldsetCover' + (this.x_3j4 ? ' ' + this.x_3j4 : ''),
listeners: {
render: function(x_2bo) {
if (x_2bo.ownerCt && x_2bo.ownerCt.syncSize) {
x_2bo.ownerCt.syncSize();
}
}
}
});
}
this.x_3kx(x_2v, x_2o);
this.x_3ky();
if (this.x_3ko) {
x_2o.on('render', function (x_351) {
var x_3ex = new kerio.lib.x_3hd(x_351, {
copy: false
});
Ext.dd.ScrollManager.register(x_351.getView().getEditorParent());
x_351.on('beforedestroy', function(x_351) {
Ext.dd.ScrollManager.unregister(x_351.getView().getEditorParent());
}, x_351);
}, this);
}
if (true === this.x_3km) {
this.x_3kz = new kerio.lib.x_3ht(x_2o, x_nh.x_ed);
}
if (this.x_3l0) {
if (true === this.x_3cl) {
x_2o.on('render', this.x_3l1, this);
}
x_3iw.on('refresh'     , this.x_3l1, this);
x_3iw.on('rowupdated'  , this.x_3l1, this);
x_3iw.on('rowsinserted', this.x_3l1, this);
if (this.x_3ks) {
x_3iw.getCell = function(x_b3, x_u2){
return Ext.get(this.getRow(x_b3)).query('td.x-grid3-cell')[x_u2];
};
}
}
x_2o.on('render', this.x_3l2, this);
this.x_3l3 = (false !== x_2v.x_1da);
return x_2o;
}, 
x_3ke: function(x_2v) {
var x_5s = x_2v.x_5s || this.x_3jb.x_3jd;
var x_2ml = (x_5s !== this.x_3jb.x_7c);
var x_3l4 = this.x_3k7 ? kerio.lib.x_3ia : Ext.grid.RowSelectionModel;
var x_3av = new x_3l4( {singleSelect: (x_5s === this.x_3jb.x_3jc)} );
if (!x_2ml) {
x_3av.on('beforerowselect', this.x_3l5, this);
}
x_3av.on('selectionchange', this.x_39j, this);
if (this.x_3k7) {
x_3av.on('checkchanged', this.x_3l6, this);
if (x_2v.x_3js) {
x_3av.on('beforerowcheck', this.x_3jt, this);
}
}
this.x_dl = x_3av;
this.x_3l7 = x_2ml;
}, 
x_3kx: function(x_2v, x_2o) {
if (false !== x_2v.x_5x.x_3jm) {
x_2o.on('render', function(){this.x_3l8.call(this, this.x_3l9);}, this);
}
if (this.x_3cl) {
x_2o.on('headerclick', this.x_3la);
}
x_2o.on('render', this.x_3lb, this);
if (x_2v.x_gf) {
this.x_3lc = x_2v.x_gf;
}
x_2o.on('rowclick', this.x_3ld, this);
x_2o.getSelectionModel().on('rowselect', this.x_3le, this);
this.x_1za.on('load', this.x_3lf, this);
}, 
x_3kg: function(x_2v) {
var x_o5 = this.x_1za;
x_o5.on('beforeload', this.x_3dd, this);
x_o5.on('load', this.x_3j9, this);
x_o5.on('load', function () {
this.x_2o.removeClass('hiddenEmptyText');
}, this);
if (this.x_3dv) {
x_o5.on('load', this.x_3lg, this);
}
if (this.x_3lh) {
x_o5.setDefaultSort(this.x_3li.x_7s, this.x_3li.x_3jf ? 'ASC' : 'DESC');
}
}, 
x_3kd: function(x_2v) {
var
x_5x = x_2v.x_5x,
x_3lj = this.x_3lk(x_5x.x_1e);
if ((1 === this.x_3ll) || (1 === this.x_3lm)) {
x_5x.x_1e[0].x_1w = false;
x_2v.x_3jk = x_2v.x_3jk || {};
x_2v.x_3jk.x_3jl = true;
}
if (false !== x_5x.x_cp) {
if ((undefined === x_5x.x_cp) && (1 < this.x_3lm)) {
x_5x.x_cp = x_3lj;
}
}
else {
delete x_2v.x_5x.x_cp;
}
return x_2v;
}, 
x_3ln: function(x_n9, x_7s) {
var
x_3lo,
x_41,
x_42;
for (x_41 = 0, x_42 = x_n9.length; x_41 < x_42; x_41++) {
x_3lo = x_n9[x_41];
if (x_7s == x_3lo.x_7s) {
return x_41;
}
}
return null;
},

x_3j6: function (x_3l) {
var x_2xn = x_3l.getView().focusEl;
var x_3lp = x_3l._kx.x_2vk;
x_2xn.on('focus', this.x_3lq, x_3lp);
x_2xn.on('blur' , this.x_3lr , x_3lp);
},

x_3lq: function () {
var x_351 = this.x_2o,
x_3ls = x_351.getSelectionModel(),
x_3lt;
x_351.addClass('focusedItem');
if (!x_3ls.hasSelection()) {
x_3lt = this.x_3lu;
if (!x_3lt || (0 === x_3lt.length)) {
x_3ls.selectFirstRow();
}
}
if (this.x_3lc) {
this.x_3lc.call(this, this);
}
},

x_3lr: function () {
var
x_3lv,
x_2o = this.x_2o;
if (Ext.isGecko && !kerio.lib.x_2lm) {
this.x_3lw.defer(10, this);
}
else if (Ext.isIE) { x_3lv = Ext.get(document.activeElement);
if (x_3lv && (x_2o.getEl() === x_3lv.parent('.x-grid-panel')) && x_3lv.hasClass('x-grid3-scroller')) {
x_2o.focus();
}
else {
x_2o.removeClass('focusedItem');
}
}
else {
x_2o.removeClass('focusedItem');
}
},

x_3lw: function() {
var
x_3lx = this.x_2o.getEl(),
x_3ly = document.activeElement,  x_3lz;
if (x_3ly) {
x_3lz = Ext.get(document.activeElement).parent('div.x-grid-panel');
}
if (x_3lx !== x_3lz) {
this.x_2o.removeClass('focusedItem');
}
},

x_3kh: function(x_2v, x_39a) {
var x_3m0,
x_3m1,
x_3jh,
x_3ji,
x_3m2 = {};
if (this.x_3dv) {
x_3m2[this.x_36n.x_5y] = this.x_5y;
x_3m0 = kerio.lib.x_2sl.call(this, x_3m2, this.x_3je._kx.x_3jg);
x_3m0.store = this.x_1za;
x_3m0.items = ['-'];
x_3m0.cls = 'hiddenPaging';
x_3m0.height = 0;
x_3jh = x_3m0.x_3jh;
x_3ji = x_3m0.x_3ji;
delete x_3m0.x_3jh;
delete x_3m0.x_3ji;
if (x_3jh) {
x_3m1 = new kerio.lib.x_3gv(x_3m0);
x_39a.tbar = x_3m1;
this.x_3m3 = x_3m1;
}
if (x_3ji) {
x_3m1 = new kerio.lib.x_3gv(x_3m0);
x_39a.bbar = x_3m1;
this.x_3m4 = x_3m1;
}
x_3m1.on('render', this.x_3m5, this);
this.x_3m6 = x_3m1;  this.x_3m7 = true;
}
return x_39a;
}, 
x_3kf: function(x_2v) {
var x_41, x_42,
x_3m8 = x_2v.x_5x,
x_d2 = kerio.lib.x_2sl.call(this, x_3m8.x_d2, this.x_3je._kx.x_d2),
x_3m9 = false !== x_d2,
x_nh = x_3m8.x_nh,
x_3ma = false,
x_3mb = x_3m8.x_1e, x_n9 = [], x_3mc,
x_3md = [],
x_3me = false,
x_3mf = null,
x_3mg,
x_3lo,
x_3mh,
x_1z7,
x_3mi;
if (x_3m9) {
if (undefined === x_d2.x_7s) {
for (x_41 = 0, x_42 = x_3mb.length; x_41 < x_42; x_41++) {
x_3mc = x_3mb[x_41];
if ((true !== x_3mc.x_7t) &&
(true !== x_3mc.x_1m) &&
(false !== x_3mc.x_cs)) {
x_3ma = true;
x_d2.x_7s = x_3mc.x_7s;
break;
}
}
}
else {
x_3ma = true;
}
}
for (x_41 = 0, x_42 = x_3mb.length; x_41 < x_42; x_41++) {
x_3mc = x_3mb[x_41];
if (true !== x_3mc.x_7t) {
x_n9.push(x_3mc);
if (null === x_3mf && !x_3mc.x_gn) {
x_3mf = x_n9.length - 1;
}
}
if (x_3mc.x_ed && 'x_1t4' == x_3mc.x_ed.x_1f) {
x_3mc.x_go = x_3mc.x_ed.x_go;
delete x_3mc.x_ed.x_go;
}
}
x_2v.x_3jm = x_3m8.x_3jm;
x_2v.x_3jn = x_3m8.x_3jn;
if (x_3m8.x_cp) {
x_2v.x_cp = this.x_3ln(x_n9, x_3m8.x_cp);
x_3mi = x_n9[x_2v.x_cp].x_1u;
if (x_3mi) {
x_2v.x_3jj = x_3mi;
}
}
x_3mg = kerio.lib.x_2sl.call(this, x_n9, null, this.x_3ju);
if (x_nh && x_nh.x_ni && null !== x_3mf) {
if (x_3mg[x_3mf].dataIndex == x_3m8.x_cp) {
x_2v.x_cp = 'indentGroupMembers';
}
x_3mg[x_3mf].id = 'indentGroupMembers';
}
for (x_41 = 0; x_41<x_n9.length; x_41++) {
x_3lo = x_n9[x_41];
x_3mh = x_3mg[x_41];
if (x_3lo.x_go) {
this.x_3l0 = true;
}
if (undefined !== x_3lo.x_13l) {
if (x_3mh.renderer) {
x_3lo.x_3jw = x_3mh.renderer;
}
x_3md.push(x_3lo);
x_3me = true;
}
}
this.x_3mj(x_n9, x_3mg);
if (this.x_3k7) {
x_3mg.unshift(this.x_dl);
}
this.x_kc = new Ext.grid.ColumnModel(x_3mg);
this.x_kc.defaultSortable = x_3m9;
this.x_3mk();
x_1z7 = x_2v.x_65 ? true : false;
if (undefined !== x_d2.x_1z7) {
x_1z7 = x_d2.x_1z7;
}
this.x_3lh = x_3ma;
this.x_3l9 = x_n9;
this.x_3li = x_d2;
this.x_3ml = x_1z7;
this.x_3mm = x_3md;
this.x_3kj = x_3me;
}, 
x_3mj: function(x_n9, x_3mg) {
var x_3lo,
x_3mn,
x_ed,
x_3mh,
x_3mo = null,
x_1b = kerio.lib,
x_2se = x_1b.x_2sf,
x_2b,
x_2o,
x_41, x_dj,
x_42 = x_n9.length,
x_3mp,
x_2u6;
this.x_3mq = [];
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3lo = x_n9[x_41];
x_3mn = x_3lo.x_ed;
if (undefined === x_3mn) {
continue;
}
if ('array' == Ext.type(x_3mn)) {
this.x_3mq.push(x_41);
}
else {
x_3mn = [x_3mn];
}
x_3mh = x_3mg[x_41];
for (x_dj = 0, x_3mp = x_3mn.length; x_dj < x_3mp; x_dj++) {
x_ed = x_3mn[x_dj];
if ('x_1q' === x_ed.x_1f) {
x_3mo = new Ext.grid.CheckColumn(x_3mh);
x_2se(x_3mo, {
x_1j: Ext.id(),
x_3h5: x_ed.x_3h5,
x_3h4: x_ed.x_7s,
x_9t: x_ed.x_9t,
x_h6: x_ed.x_h6
});
x_3mg[x_41] = x_3mo;
Ext.applyIf(x_3mg[x_41], x_3mh);
this.x_3ka.push(x_3mo);
}
else if ('x_1t4' === x_ed.x_1f) {
x_2se(x_3mg[x_41], {
x_1st: true,
x_9t: x_ed.x_9t,
x_h6: x_ed.x_h6
});
}
else {
this.x_3ks = true;
x_2u6 = x_1b.x_2u5(x_ed.x_1f);
x_2b = new x_2u6(this.x_1j + '_' + 'x_ed' + '_' + x_3lo.x_7s, x_ed);
x_2o = x_2b.x_2o;
if (x_ed.x_h6) {
x_2se(x_2o, {x_h6: x_ed.x_h6});
}
x_3mg[x_41].editor = x_2o;
}
}
}
},  
x_3mk: function () {
var x_3mr = this.x_kc,
x_3ms = this.x_3mq,
x_41, x_42 = x_3ms.length,
x_12v,
x_3mt,
x_2o,
x_3mu,
x_q1,
x_3mv = kerio.lib.x_6b.x_1kk,
x_2se = kerio.lib.x_2sf,
x_h6;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_12v = x_3ms[x_41];
x_3mt = x_3mr.getCellEditor(x_12v, 0);
x_3mt.addClass('cbxMultiEdit');         x_3mt.on('show', this.x_3mw);
x_3mt.on('hide', this.x_3mw);
}
for (x_41 = 0, x_42 = x_3mr.getColumnCount(); x_41 < x_42; x_41++) {
x_3mt = x_3mr.getCellEditor(x_41, 0);
if (x_3mt) {
x_3mt.completeOnEnter = true;
x_2o = x_3mt.field;
x_3mu = x_2o._kx;
x_q1 = x_3mu.x_2vk;
x_h6 = x_3mu.x_h6;
x_3mt.setSize = this.x_3mx;  if (x_3mv == x_q1.x_3h) {
x_3mt.on('beforecomplete', this.x_3my);
if (kerio.lib.x_2ny && x_q1.x_3mz) {
x_3mt.on('specialkey', this.x_3n0);
}
}
if (x_h6) {
x_2se(x_3mt, {x_h6: x_h6});
delete x_3mu.x_h6;
x_3mt.on('beforestartedit', this.x_3n1, this);
}
if (x_q1.x_9d) {
kerio.lib.x_nq('Internal error: Parent for editor with ID ' + x_q1.x_1j + ' is already set!');
}
x_q1.x_9d = this;
}
}
},

x_3mx: function(x_1u, x_1v) {
var x_3n2 = this.el.hasClass('cbxMultiEdit') ? 20 : 2;  delete this.field.lastSize;
this.field.setSize(x_1u - x_3n2, x_1v);
if(this.el){
this.el.sync();
}
},

x_3mw: function() {
var x_ax = this.getEl(),
x_3gs;
if (this.isVisible()) {
x_3gs = parseInt(x_ax.getStyle('left'), 10);
x_ax.setStyle('left', x_3gs + 17 + 'px');
x_ax.setStyle('padding-left', '1px');
}
else {
x_ax.setStyle('padding-left', '18px');  }
},

x_3h7: function(x_3h2) {
var x_3l = x_3h2.grid._kx.x_2vk,
x_3n3,
x_3mt,
x_1o = x_3h2.value;
if (x_3l.x_3ks) {
x_3mt = x_3l.x_kc.getCellEditor(x_3h2.column, 0);
if (x_3mt) {
x_3n3 = x_3mt.field._kx.x_2vk;
x_3n3.x_3n4 = x_1o;  }
}
x_3l.x_3n5 = {
x_eo    : x_3h2.record.data,
x_7s   : x_3h2.field,
x_uu  : x_1o,
x_fl   : x_3h2.row,
x_12v: x_3h2.column
};
},

x_gg: function() {
return this.x_3n5;
},

x_ie: function(x_7s) {
var x_3mr = this.x_kc,
x_12v = x_3mr.findColumnIndex(x_7s),
x_ed = null;
if (-1 != x_12v) {
x_ed = x_3mr.getCellEditor(x_12v, 0);
}
if (x_ed) {
x_ed = x_ed.field._kx.x_2vk;
}
return x_ed;
},

x_3my: function(x_3mt, x_1o, x_uu) {
var x_2o = x_3mt.field,
x_q1 = x_2o._kx.x_2vk;
if (x_1o == x_uu && x_q1.x_3n6()) {
x_q1.x_9w(x_1o);  }
},

x_3n1: function(x_3mt, x_2un, x_uu) {
var x_3n7 = this.x_gg();
return x_3mt._kx.x_h6.call(this, this, x_3n7.x_7s, x_uu, x_3n7.x_eo);
},

x_3h6: function(x_3h2) {
this.x_3h7(x_3h2);
return this.x_2sk.x_h6.call(this, this, x_3h2.field, x_3h2.value, x_3h2.record.data);
},

x_ik: function(x_fl, x_7s) {
var x_2o = this.x_2o,
x_kb = x_2o.getColumnModel().findColumnIndex(x_7s);
this.x_tz(x_fl);
x_2o.startEditing(x_fl, x_kb);
},

x_3jw: function(x_3n8, x_3h8, x_3n9, x_3na, x_3nb, x_3ev) {
var x_3l = x_3ev._kx.x_3m,
x_3lo = x_3l.x_kc.config[x_3nb],
x_3nc = x_3lo._kx.x_7u,
x_3nd = kerio.lib.x_2ty,
x_3ne,
x_3nf = '',
x_3ng,
x_eo = x_3n9.data,
x_3md = x_3l.x_3mm,
x_3nh, x_3ni,
x_41, x_42;
if (x_3l.x_3kj) {
for (x_41=0, x_42=x_3md.length; x_41<x_42; x_41++) {
x_3ni = x_3md[x_41];
x_3nh = x_3ni.x_13l;
if (x_3nh.x_13m.indexOf(x_3n9.data[x_3nh.x_7s]) != -1) {
if (x_3ni.x_7s != x_3lo.dataIndex) {
return x_3n8;
}
}
}
}
x_3ne = x_3nc.call(x_3l, x_3n8, x_eo, x_3na, x_3nb, x_3l);
if (x_3ne.x_1p) {
x_3h8.css += x_3ne.x_1p;
}
if (x_3ne.x_cy) {
x_3nf = '<span unselectable="on" class="cellIcon ' + x_3ne.x_cy + '"';
if (x_3ne.x_pi) {
x_3nf += x_3nd(x_3ne.x_pi, x_3ne.x_ke);
}
x_3nf += '>&nbsp; &nbsp; &nbsp;</span>';
}
x_3ng = x_3ne.x_47;
if (!x_3ne.x_ke) {
x_3ng = Ext.util.Format.htmlEncode(x_3ng);
}
if (x_3ne.x_d0) {
x_3ng = '<span unselectable="on"' + x_3nd(x_3ne.x_d0, x_3ne.x_ke) + '">' + x_3ng + '</span>';
}
return x_3nf + x_3ng;
},

x_bg: function(x_bg) {
x_bg = (undefined === x_bg) ? true : x_bg;
this.x_84(!x_bg);
}, 
x_84: function (x_1yx) {
x_1yx = ((undefined === x_1yx) ? true : x_1yx);
this.x_1kn = x_1yx;
kerio.lib.x_4g.superclass.x_84.call(this, x_1yx);
this.x_3nj(x_1yx);
},

x_3nj: function (x_1yx) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_2o = this.x_2o;
var x_3nk = x_2o.bwrap;
var x_5q = x_2o.loadMask;
if (false === x_1yx) {
if (typeof x_5q == 'object') {
x_5q.enable();
}
x_3nk.unmask();
}
else {
if (typeof x_5q == 'object') {
x_5q.disable();
}
x_3nk.mask();
}
var x_3nl = x_2o.getEl();
if (x_1yx) {
x_3nl.addClass('gridDisabled');
}
else {
x_3nl.removeClass('gridDisabled');
}
},

x_85: function(x_5p) {
x_5p = (false !== x_5p);
this.x_2db = x_5p;
kerio.lib.x_4g.superclass.x_85.call(this, x_5p);
this.x_3nm(x_5p);
},

x_3nm: function (x_5p) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_3nl = this.x_2o.getEl();
if (x_5p) {
x_3nl.addClass('gridReadOnly');
}
else {
x_3nl.removeClass('gridReadOnly');
}
},

x_5p: function () {
return (true === this.x_2db);
},

x_31: function () {
return (true === this.x_1kn);
},

x_2k: function(x_2er) {
kerio.lib.x_4g.superclass.x_2k.call(this, x_2er);
x_2er = ((undefined === x_2er) ? true : x_2er);
this.x_35u = x_2er;
this.x_2o.setVisible(x_2er);
this.x_3j9();
},

x_2fb: function () {
return (false !== this.x_35u);
},

x_1d3: function() {
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.getView().focusEl.focus();
}, 
x_3lb: function (x_351) {
var
x_ax = x_351.getEl(),
x_3nn = Ext.isGecko ? 'keypress' : 'keydown';
this.x_32z = new Ext.KeyNav(x_ax, {
enter: this.x_3no,
up: this.x_3np,
down: this.x_3np,
pageUp: this.x_3np,
pageDown: this.x_3np,
home: this.x_3np,
end: this.x_3np,
del: this.x_3nq,
defaultEventAction: 'doNothingWithEvent',
scope: this
});
this.x_3nr = new Ext.KeyMap(x_ax, {
key: [65, 97],
ctrl:true,
stopEvent: true,
scope: this,
fn: this.x_3ns
}, x_3nn);
this.x_3nt = new Ext.KeyMap(x_ax, {
key: Ext.EventObject.BACKSPACE,
stopEvent: true,
scope: this,
fn: this.x_3nu
}, x_3nn);
},

x_3nv: function (x_4e) {
var x_38f;
var x_2ns = Ext.get(x_4e.getTarget());
if (x_2ns) {
x_38f = Ext.getCmp(x_2ns.id);
if (x_38f) {
return x_38f.isXType('field');
}
}
return false;
},

x_3nw: function (x_4e) {
var x_38f,
x_2ns = Ext.get(x_4e.getTarget()),
x_3nx;
if (x_2ns) {
x_3nx = x_2ns.findParent('table.x-btn');
if (x_3nx) {
x_38f = Ext.getCmp(x_3nx.id);
if (x_38f) {
return x_38f.isXType('button');
}
}
}
return false;
},

x_3no: function (x_96) {
if ((false === this.x_3nv(x_96)) && (false === this.x_3nw(x_96)) &&
this.x_3l3 && this.x_2sk.x_62
) {
if (0 < this.x_3v.x_46) {
x_96.stopEvent();
this.x_2sk.x_62.call(this, this, this.x_3v.x_40[0].x_47, x_96);
}
}
},

x_3np: function (x_96) {
var
x_3ny,
x_av,
x_3nz,
x_3o0,
x_3o1 = 0,
x_2j0 = (true === x_96.shiftKey),
x_3o2 = x_96.getKey(),
x_3av = this.x_dl,
x_3v = this.x_3v,
x_3ev = this.x_1za,
x_3o3 = x_3ev.getCount();
if (0 === x_3o3) {
return;
}
if (x_3av.hasSelection()) {
x_3o1 = x_3ev.indexOf(x_3av.getSelected());
}
if (x_3o2 == x_96.PAGEUP || x_3o2 ==  x_96.PAGEDOWN) {
if (this.x_3dv && !this.x_3cl) { x_av = (x_96.PAGEUP === x_3o2) ? 'prev' : 'next';
x_3nz = this.x_3m3 || this.x_3m4;
if (x_3nz) {
if (!x_3nz[x_av].disabled) {
x_3nz.onClick(x_av);
x_96.stopEvent();
}
}
}
else if (!this.x_3dv) {
if (undefined !== this.x_3o4) {
x_3o1 = this.x_3o4;
}
else {
x_3o1 = x_3v.x_40[x_3v.x_46 - 1].x_fl;
}
x_3o0 = this.x_3o5();
x_3ny = x_3o1 + ((x_96.PAGEUP === x_3o2) ? -x_3o0 : x_3o0);
x_3ny = ((0 > x_3ny) ? 0 : x_3ny);
x_3ny = ((x_3o3 <= x_3ny) ? (x_3o3 - 1) : x_3ny);
this.x_3o6(x_2j0, x_3ny, x_3o1, x_2j0);
this.x_3o4 = x_3ny;
this.x_2o.getView().focusRow(x_3ny);
}
} else if (x_3o2 == x_96.HOME || x_3o2 == x_96.END) {
delete this.x_3o4;
x_3ny = ((x_96.HOME === x_3o2) ? 0 : (x_3o3 - 1));
this.x_3o6(x_2j0, x_3ny, x_3o1);
this.x_2o.getView().focusRow(x_3ny);
}
},

x_3nq: function (x_96) {
if (false === this.x_3nv(x_96)) {
x_96.stopEvent();
kerio.lib.x_2t2(this, this.x_391.x_4p, x_96);
}
},

x_3nu: function () {
this.x_3nq(Ext.EventObject);
},

x_3ns: function () {
if (false === this.x_3nv(Ext.EventObject)) {
this.x_dl.selectAll();
}
},

x_3l8: function(x_5x) {
var x_3o7 = 0,
x_3o8 = [],
x_41, x_42,
x_3o9;
for (x_41 = 0, x_42 = x_5x.length; x_41 < x_42; x_41++) {
x_3o9 = x_5x[x_41];
if (x_3o9.x_gn) {
x_3o8[x_3o7] = {'x_fk': x_41, 'x_1m': true};
x_3o7++;
}
}
this.x_3oa = x_3o7;
this.x_3ob = x_3o8;
if (0 >= x_3o7) {
return;
}
this.x_3oc = this.x_3od();
this.x_3oc.on('beforeshow', this.x_3oe, this);
}, 
x_3od: function() {
var x_1e = this.x_2o.view.hmenu.items.items,
x_41,
x_42 = x_1e.length,
x_3of = null;
for (x_41 = 0; x_41 < x_42; x_41++) {
if ('columns' == x_1e[x_41].id) {
x_3of = x_1e[x_41].menu;
break;
}
}
return x_3of;
},

x_3oe: function(x_37y) {
if (0 >= this.x_3oa) {
this.x_3oc.un('beforeshow', this.x_3oe, this);
return;
}
var
x_3og = this.x_3oc,
x_3o8 = this.x_3ob,
x_3oh = 0,
x_3o7 = this.x_3oa,
x_3mr = this.x_2o.colModel,
x_41,
x_3o9,
x_3b5;
for(x_41 = this.x_3ob.length - 1; x_41 >= 0; x_41--) {
x_3o9 = x_3o8[x_41];
if (x_3o9.x_1m) {
x_3b5 = x_3og.items.items[x_3mr.getIndexById(x_3o9.x_fk)];
x_3og.remove(x_3b5);
x_3oh++;
if (x_3o7 === x_3oh) {
break;
}
}
}
}, 
x_3oi: function() {
var x_3o8 = this.x_3ob;
if (!x_3o8 || (0 >= x_3o8.length)) {
return;
}
var x_3mr = this.x_kc,
x_3o7 = x_3o8.length,
x_3oj = x_3mr.config,
x_41, x_dj, x_dk,
x_3o9,
x_3og;
for (x_41 = 0; x_41 < x_3o7; x_41++) {
x_3o9 = x_3o8[x_41];
if (!x_3o9.x_1m) {
for (x_dj = 0, x_dk = x_3oj.length; x_dj < x_dk; x_dj++) {
if (x_3oj[x_dj].id == x_3o9.x_fk) {
x_3mr.setHidden(x_dj, true);
x_3o9.x_1m = true;
}
}
}
}
x_3og = this.x_3oc;
this.x_3oa = x_3o7;
if (0 >= x_3o7) {
x_3og.un('beforeshow', this.x_3oe, this);
}
else {
x_3og.on('beforeshow', this.x_3oe, this);
}
}, 
x_3ok: function(x_7s) {
var x_3o8 = this.x_3ob;
if (!x_3o8 || (0 >= this.x_3oa)) {
return;
}
var x_3mr = this.x_kc,
x_3oj = x_3mr.config,
x_41, x_42, x_dj, x_dk,
x_3o9;
for(x_41 = 0, x_42 = x_3o8.length; x_41 < x_42; x_41++) {
x_3o9 = x_3o8[x_41];
for (x_dj = 0, x_dk = x_3oj.length; x_dj < x_dk; x_dj++) {
if ((x_3oj[x_dj].dataIndex == x_7s) && x_3o9.x_1m) {
x_3mr.setHidden(x_dj, false);
x_3o9.x_1m = false;
this.x_3oa--;
break;
}
}
}
if (0 >= this.x_3oa) {
this.x_3oc.un('beforeshow', this.x_3oe, this);
}
}, 
x_3dd: function(x_3df, x_6q) {
this.x_2o.addClass('hiddenEmptyText');
if (this.x_dl.grid) {
this.x_dl.clearSelections();
}
}, 
x_3l5: function(x_3av, x_fl, x_3ol) {
if (false === this.x_3l7) {
return false;
}
}, 
x_39v: function(x_2o, x_fl, x_96) {
x_96.stopEvent();
var
x_35m = x_96.getXY(),
x_3ls = x_2o.getSelectionModel(),
x_5t = x_2o._kx.x_5t,
x_3om;
if (undefined !== x_fl) {
if (!x_3ls.isSelected(x_fl)) {
x_3ls.selectRow(x_fl);
x_2o.view.focusRow(x_fl);
}
}
x_2o.focus();
if (this.x_371 && !x_5t._kx.x_3on) {
x_3om = new Ext.menu.Item({text: this.x_3oo});
x_3om.on('click', this.x_3op, this);
x_5t.add('-', x_3om);
x_5t._kx.x_3on = true;
}
x_5t.showAt(x_35m);
x_5t.x_39w = x_2o;
x_5t._kx.x_2vk.x_3m = this;
}, 
x_3oq: function(x_96) {
var x_2zp = x_96.target;
if (x_96.getTarget('.x-grid3-row') || !x_96.getTarget('.x-grid3-viewport')) {
return;
}
this.x_39v(this.x_2o, undefined, x_96);
}, 
x_3j7: function(x_2v) {
var x_5t,
x_2o = this.x_2o;
if (x_2v.x_3h && kerio.lib.x_6b.x_1mf == x_2v.x_3h) {
x_5t = x_2v;
}
else {
x_5t = new kerio.lib.x_29p(this.x_1j + '_contextMenu', x_2v, this);
}
kerio.lib.x_2sf(x_2o, {x_5t: x_5t.x_2o});
x_2o.on('rowcontextmenu', this.x_39v, this);
x_2o.on('contextmenu', this.x_3oq, this);
}, 
x_3la: function(x_2o, x_12v, x_96) {
if (!x_2o.colModel.config[x_12v].sortable) {
return;
}
var x_3l = x_2o._kx.x_2vk;
var x_3or = x_2o.getStore().lastOptions;
var x_28 = (!x_3or.params) ? x_3or : x_3or.params;
for (var x_1mc in x_28) {
x_3l.x_3dg[x_1mc] = x_28[x_1mc];
}
x_3l.x_1za.load({params: x_3l.x_3dg});
}, 
x_3jp: function(x_2o, x_fl, x_96) {
var x_3df = x_2o.getStore();
var x_eo = x_3df.data.items[x_fl].data;
var x_4e = new kerio.lib.x_2t3(kerio.lib.x_6b.x_6d.x_6e.x_30s, x_96);
this.x_2sk.x_25.call(this, this, x_eo, x_4e);
}, 
x_3jq: function(x_2o, x_fl, x_96) {
var x_3df = x_2o.getStore();
var x_eo = x_3df.data.items[x_fl].data;
var x_4e = new kerio.lib.x_2t3(kerio.lib.x_6b.x_6d.x_6e.x_30t, x_96);
this.x_2sk.x_62.call(this, this, x_eo, x_4e);
}, 
x_3jr: function(x_2o, x_fl, x_12v, x_96) {
var x_3df = x_2o.getStore(),
x_eo = x_3df.data.items[x_fl].data,
x_7s = x_2o.colModel.getDataIndex(x_12v),
x_4e = new kerio.lib.x_2t3(kerio.lib.x_6b.x_6d.x_6e.x_30t, x_96);
this.x_2sk.x_61.call(this, this, x_eo, x_7s, x_4e);
}, 
x_39j: function(x_3av, x_3os) {
var x_2me = null,
x_3v,
x_o5 = this.x_1za,
x_40,
x_3ot,
x_41, x_42;
if (x_3av instanceof Ext.grid.RowSelectionModel) {
x_2me = x_3av.getSelections();
}
else {
if (x_3av instanceof Ext.grid.CellSelectionModel) {
return;

}
}
this.x_3ky();
x_3v = this.x_3v;
x_40 = x_3v.x_40;
x_42 = x_2me.length;
x_3v.x_46 = x_42;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3ot = x_2me[x_41];
x_40[x_41] = {
x_fl: x_o5.indexOfId(x_3ot.id),
x_47: x_3ot.data,
x_3n9: x_3ot
};
}
kerio.lib.x_2t2(this, this.x_391.x_4l);
}, 
x_3ky: function() {
this.x_3v = {
x_40: [],
x_46: 0,
x_2jp: this.x_1za.data.items.length
};
}, 
x_4c: function(x_4d, x_4e) {
kerio.lib.x_nq('Internal error: Override x_4c method in object with ID ' + this.x_1j
+ ' to make this object behaving as an observer', 'grid.js');
}, 
x_3ou: function(x_1ct) {
var x_3d0 = this.x_2o.getStore(),
x_3or;
if (!x_3d0) {
return;
}
x_3or = x_3d0.lastOptions || {};
if (!x_3or.params) {
x_3or.params = {};
}
x_3or.params.start = x_1ct;
x_3d0.lastOptions = x_3or;
}, 
x_1dq: function(x_7s, x_47) {
var x_o5 = this.x_1za,
x_3ov = x_o5.query(x_7s, x_47),
x_42 = x_3ov.getCount(),
x_3ow = [],
x_eo,
x_41;
if (0 === x_42) {
return -1;
}
x_3ov = x_3ov.items;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_eo = x_3ov[x_41];
x_3ow.push(x_o5.indexOfId(x_eo.id));
}
return x_3ow;
}, 
x_3ox: function(x_1z3, x_1j) {
return this.x_2e.call(this.x_2q, x_1z3.data);
}, 
x_iw: function(x_74, x_2q, x_3oy, x_3oz) {
var x_o5 = this.x_1za,
x_47 = x_o5.data.items,
x_3p0 = this.x_3ox,
x_is = [],
x_fl,
x_3p1;
if ('function' !== typeof x_74) {
kerio.lib.x_nq('Internal error: Invalid callback for x_iw method.', 'grid.js', 'x_iw');
return null;
}
x_3p1 = {
x_2e: x_74,
x_2q:    x_2q || this
};
x_fl = x_o5.findBy(x_3p0, x_3p1, x_3oy);
if (-1 === x_fl) {
return null;
}
if (!x_3oz) {
return [x_47[x_fl].data];
}
do {
x_3oy = x_fl + 1;
x_is.push(x_47[x_fl].data);
x_fl = x_o5.findBy(x_3p0, x_3p1, x_3oy);
} while ((-1 !== x_fl) && (x_fl >= x_3oy));
delete this.x_3p2;
return x_is;
}, 
x_1jf: function(x_3p3, x_2z9) {
var x_2o = this.x_2o,
x_3hn = x_2o.getSelectionModel(),
x_ps = x_3hn.getSelections(),
x_46 = x_ps.length,
x_41, x_1z3, x_3p4, x_3eg,
x_3p5 = [],
x_3p6 = [],
x_o5 = this.x_1za,
x_2jp = this.x_eq(),
x_fl;
if (x_46 <= 0) { return;
}
x_2z9 = (undefined === x_2z9) ? 1 : x_2z9;
x_3p3 = (undefined === x_3p3) ? true : x_3p3;
x_2z9 = (x_3p3) ? (x_2z9 * -1) : x_2z9;
for (x_41 = 0; x_41 < x_46; x_41++) {
x_1z3 = x_ps[x_41];
x_3p6.push(x_o5.indexOf(x_1z3));
}
x_3p6.sort(kerio.lib.x_2ug);
if (false === x_3p3) {
x_3p6.reverse();
}
x_fl = x_3p6[0];
if ((true === x_3p3) && (0 === x_fl) ||
(true !== x_3p3) && ((x_2jp - 1)  === x_fl)) {
return;
}
x_o5.suspendEvents();
x_3hn.suspendEvents();
for (x_41 = 0; x_41 < x_46; x_41++) {
x_3p4 = x_3p6[x_41];
x_1z3 = x_o5.getAt(x_3p4);
x_3eg = x_3p4 + x_2z9;
x_o5.remove(x_1z3);
x_o5.insert(x_3eg, x_1z3);
x_3p5.push(x_3eg);
}
if (x_3p5.length > 0) {
x_3hn.selectRows(x_3p5, true);
x_2o.getView().focusRow(x_3p5[0]);
}
x_2o.getView().refresh(); x_3hn.resumeEvents();
x_o5.resumeEvents();
this.x_39j(x_3hn);
}, 
x_3p7: function(x_3ek) {
var x_6q = {},
x_3m1 = this.x_3m3;
if (undefined !== x_3ek) {
x_6q = {params: {start: x_3ek}};
}
if (x_3m1) {
x_3m1.onLoad(this.x_1za, [], x_6q);
}
x_3m1 = this.x_3m4;
if (x_3m1) {
x_3m1.onLoad(this.x_1za, [], x_6q);
}
}, 
x_de: function(x_3p8) {
var x_3dx,
x_3p9,
x_47 = [],
x_41, x_42;
if (x_3p8) {
x_3dx = this.x_3v;
x_3dx = x_3dx.x_40;
x_3p9 = 'x_47';
}
else {
x_3dx = this.x_1za.getRange();
x_3p9 = 'data';
}
for (x_41 = 0, x_42 = x_3dx.length; x_41 < x_42; x_41++) {
x_47[x_41] = x_3dx[x_41][x_3p9];
}
return x_47;
}, 
x_8f: function(x_3pa, x_3pb) {
var x_3ev = this.x_2hl.x_2o;
this.x_3lu = null;
x_3ev.removeAll();
x_3ev.totalLength = ((undefined !== x_3pa) ? x_3pa : 0); if (false !== x_3pb) {
this.x_3p7();
}
this.x_3pc();
},

x_3pc: function () {
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.getSelectionModel().clearSelections();
},

x_3pd: function(x_3pe) {
this.x_dl.singleSelect = x_3pe;
}, 
x_1jn: function(x_fk) {
var x_40 = this.x_3v.x_40,
x_42 = this.x_3v.x_46,
x_o5 = this.x_1za,
x_41,
x_1z3;
for(x_41 = 0; x_41 < x_42; x_41++) {
x_1z3 = x_40[x_41].x_3n9;
if (x_fk == x_o5.indexOf(x_1z3)) {
return true;
}
}
return false;
}, 
x_3pf: function(x_1z3, x_3pg) {
this.x_1za.remove(x_1z3);
if (true !== x_3pg) {
this.x_39j(this.x_dl);
}
}, 
x_1w2: function (x_fl, x_3pg) {
var x_1z3 = this.x_1za.getAt(x_fl);
this.x_3pf(x_1z3, x_3pg);
},

x_70: function() {
var x_3v = this.x_3v,
x_40,
x_41, x_42;
if (0 >= x_3v.x_46) {
return;
}
this.x_1dj();
x_40 = x_3v.x_40;
for(x_41 = 0, x_42 = x_40.length; x_41 < x_42; x_41++) {
this.x_3pf(x_40[x_41].x_3n9, true);
}
this.x_1dp();
this.x_39j(this.x_dl);
this.x_3lf();
}, 
x_1q7: function(x_3ew, x_3ol) {
var x_3av = this.x_dl;
if (!Ext.isArray(x_3ew)) {
x_3ew = [x_3ew];
}
x_3av.selectRecords(x_3ew, x_3ol);
this.x_3ph();
}, 
x_tz: function(x_fl, x_3ol) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_3av = this.x_dl;
if (!Ext.isArray(x_fl)) {
x_fl = [x_fl];
}
x_3av.selectRows(x_fl, x_3ol);
this.x_3ph();
}, 
x_3o6: function(x_2j0, x_3ny, x_3o1, x_3ol) {
var x_3av = this.x_dl;
if (x_2j0 && (undefined !== x_3o1)) {
x_3ol = (true === x_3ol);
x_3av.selectRange(x_3o1, x_3ny, x_3ol);
this.x_3ph();
}
else {
this.x_tz(x_3ny);
}
}, 
x_3ph: function () {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var
x_2o = this.x_2o,
x_3i1 = x_2o.getView(),
x_ps = x_2o.getSelectionModel().getSelections(),
x_o5 = this.x_1za,
x_3pi = [],
x_42 = x_ps.length,
x_41;
if (0 === x_42) {
return;
}
for (x_41=0; x_41 < x_42; x_41++) {
x_3pi.push(x_o5.indexOf(x_ps[x_41]));
}
x_3pi.sort(kerio.lib.x_2ug);
if (x_3i1.ensureVisible(x_3pi[0], 0, false)[1] != x_3i1.focusEl.getY()) {
x_3i1.focusRow(x_o5.getCount() - 1);
x_3i1.focusRow(x_3pi[0]);
}
},

x_3pj: function(x_12v, x_3pk, x_1vu) {
var x_3i1 = this.x_2o.getView(),
x_41, x_42;
if (x_12v instanceof Array) {
for (x_41 = 0, x_42 = x_12v.length; x_41 < x_42; x_41++) {
x_3i1.autoSizeColumn(x_12v[x_41], x_3pk);
}
}
else {
x_3i1.autoSizeColumn(x_12v, x_3pk);
}
if (false !== x_1vu) {
x_3i1.refresh();
}
}, 
x_3pl: function(x_12v, x_1u, x_1vu) {
this.x_kc.setColumnWidth(x_12v, x_1u);
if (false !== x_1vu) {
this.x_2o.getView().refresh();
}
}, 
x_3pm: function(x_12v) {
return this.x_kc.getColumnWidth(x_12v);
}, 
x_3pn: function(x_12v, x_1w) {
var x_3po = this.x_kc,
x_3pp = x_3po.config[x_12v];
x_3pp.resizable = x_1w;
x_3po.fireEvent("columnlockchange", x_3po, x_12v, x_3po.isLocked(x_12v));
}, 
x_dy: function() {
var x_o5 = this.x_1za,
x_3pq = x_o5.sortInfo;
if (x_o5.sortInfo) {
x_o5.sort(x_3pq.field, x_3pq.direction);
}
}, 
x_1dn: function(x_3pr, x_2q) {
x_2q = x_2q || this;
this.x_3ps = x_3pr;
this.x_3pt = x_2q;
this.x_1za.filterBy(this.x_3pu, this);
}, 
x_3pu: function (x_3n9, x_1j) {
var x_eo = x_3n9.data;
return this.x_3ps.call(this.x_3pt || this, x_eo, x_1j);
},

x_1dx: function(x_3pv) {
this.x_1za.clearFilter(true === x_3pv);
}, 
x_3pw: function(x_1ct, x_1g5, x_2e, x_2s) {
if (!this.x_3dr || !this.x_3dr.params) {
return;
}

var x_3px = kerio.lib.x_2rm(this.x_3dr),
x_9j = x_3px.params.query,
x_j4;
x_9j.limit = x_3px.limit = x_1g5;
x_9j.start = x_3px.start = x_1ct;

x_3px.params = Ext.encode(x_3px.params);
x_j4 = {
x_6a: this.x_1za.proxy._kx.x_j4.x_6a,
x_6p: 'post',
x_28: x_3px,
x_2e: x_2e,
x_2q: this
};
if (undefined !== x_2s) {
x_j4.x_2s = x_2s;
}
kerio.lib.x_6t.x_6u(x_j4);
}, 
x_73: function(x_2e) {
var x_3ev = this.x_1za,
x_1ct = x_3ev.data.items.length,
x_1g5 = this.x_5y,
x_3py = this.x_3dr.start;
if (x_3ev.getCount() === 0) {
x_1ct = x_3py - x_1g5;
if (x_1ct >= 0) {
this.x_6y({start: x_1ct});
}
}
else if (x_1g5 > x_1ct) {
if (x_2e) {
this.x_3pz = x_2e;
}
this.x_3pw(x_1ct + x_3py, x_1g5 - x_1ct, this.x_3q0);
}
}, 
x_3q0: function(x_6v, x_6w) {
var x_2e;
if (this.x_3pz) {
x_2e = this.x_3pz;
x_2e.x_74.call(x_2e.x_2q);
delete this.x_3pz;
}
if (!x_6w) {
return;
}
var x_3q1 = x_6v.x_ac,
x_eo = x_3q1[this.x_2hl.x_3d6];
if (!x_eo) {
return;
}
this.x_7k(x_eo, true);
this.x_3lf();
this.x_1za.totalLength = x_3q1[this.x_2hl.x_3d7];
this.x_3p7(this.x_3dr.start);
this.x_3lg(this.x_1za);
}, 
x_3lk: function(x_5x) {
var
x_3lj = '',
x_3q2 = 0,
x_3q3 = x_5x.length,
x_3lo,
x_41;
for (x_41 = 0; x_41 < x_3q3; x_41++) {
x_3lo = x_5x[x_41];
if (true !== x_3lo.x_1m && true !== x_3lo.x_7t) {
x_3lj = x_3lo.x_7s;
x_3q2++;
}
}
this.x_3lm = x_3q2;
this.x_3ll = x_3q3;
return x_3lj;
}, 
x_d6: function() {
this.x_8f();
}, 
x_3o5: function() {
var x_54 = this.x_2o.getView(),
x_3q4 = x_54.scroller.dom.clientHeight - x_54.getHeaderCell(0).clientHeight,
x_3h0 =  x_54.getCell(0, 0),
x_3q5 =x_3h0.clientHeight;
return Math.floor(x_3q4 / x_3q5 - 0.5);
}, 
x_3q6: function(x_is, x_3pa, x_3ek) {
var x_3ew = [],
x_41, x_42;
this.x_8f(x_3pa, false);
if (!(x_is[0] instanceof Ext.data.Record)) {
for (x_41 = 0, x_42 = x_is.length; x_41 < x_42; x_41++) {
x_3ew[x_41] = this.x_3ec(x_is[x_41]);
}
}
else {
x_3ew = x_is;
}
this.x_1za.add(x_3ew);
this.x_3p7(x_3ek);
}, 
x_3q7: function(x_1v3) {
var x_5q = this.x_3q8,
x_3q9;
if (undefined === this.x_3q8) {
x_5q = {};
x_3q9 = this.x_2o.loadMask;
x_5q.x_1n = ((x_3q9) ? x_3q9.msg : Ext.LoadMask.prototype.msg);
x_5q.x_1ao = ((x_3q9) ? x_3q9.msgCls : 'loading-indicator');
this.x_3q8 = x_5q;
}
if (false === x_1v3) {
this.x_2o.container.unmask();
}
else {
this.x_2o.container.mask(x_5q.x_1n, x_5q.x_1ao);
}
}, 
x_f6: function(x_1v3) {
this.x_3q7(x_1v3);
},

x_1dj: function () {
var x_o5 = this.x_1za,
x_3i1 = this.x_2o.getView();
x_o5.un('datachanged', x_3i1.onDataChange, x_3i1);
x_o5.un('add', x_3i1.onAdd, x_3i1);
x_o5.un('remove', x_3i1.onRemove, x_3i1);
x_o5.un('update', x_3i1.onUpdate, x_3i1);
this.x_3qa = true;
},

x_1dp: function () {
if (true !== this.x_3qa) {
return;
}
var x_351 = this.x_2o,
x_3i1 = x_351.getView(),
x_o5 = this.x_1za;
if (x_351.rendered) {
x_3i1.refresh();
}
x_o5.on('datachanged', x_3i1.onDataChange, x_3i1);
x_o5.on('add', x_3i1.onAdd, x_3i1);
x_o5.on('remove', x_3i1.onRemove, x_3i1);
x_o5.on('update', x_3i1.onUpdate, x_3i1);
this.x_3qa = false;
if (this.x_3kk) {
this.x_3qb();
}
this.x_3j9({x_3ki: true});
},

x_3qb: function(x_3qc, x_3qd) {
x_3qc = x_3qc || this.x_3kn;
x_3qd = (false !== x_3qd);
this.x_1za.groupBy(x_3qc, x_3qd);
},

x_7k: function(x_47, x_3ac, x_jm) {
this.x_2hl.x_7k(x_47, x_3ac, x_jm);
this.x_3p7();
this.x_3j9();
},

x_7i: function() {
var x_47 = [],
x_dr = this.x_1za.data.items,
x_41, x_42;
for (x_41 = 0, x_42 = x_dr.length; x_41 < x_42; x_41++) {
x_47[x_41] = x_dr[x_41].data;
}
return x_47;
},

x_3j9: function(x_3qe) {
var x_351 = this.x_2o;
if (!x_351 || !x_351.lastSize) {
return;
}
var x_350 = x_351.getView(),
x_3qf,
x_3qg,
x_3qh = x_350.mainBody.getWidth(),
x_3ki = (x_3qe && x_3qe.x_3ki),
x_3qi = x_350.mainBody.dom.clientWidth;
x_3qg = x_351.lastSize.width;
if (undefined === x_3qg) {
x_351.syncSize();
return;
}
x_3qf = x_3qg - x_351.getFrameWidth() - 2;
if ((x_3qf < 0) || (x_3qh <= 0)) {
return;
}
if (x_3qh < x_3qf) {
x_350.scrollOffset = 19;
}
else {
x_350.scrollOffset = 2;
}
if (Ext.isIE && 1 === this.x_3lm) {
if (x_3qh < x_3qf) {
if (x_3qi == x_3qf) {
x_350.scrollOffset = 2;
}
}
else {
if (x_3qi < x_3qf) {
x_350.scrollOffset = 19;
}
}
}
if (x_3ki) {
x_351.syncSize();
}
else if (x_350.scrollOffset != this.x_3j2) {
this.x_3j2 = x_350.scrollOffset;
x_351.syncSize();
if (1 === this.x_3lm) {
x_350.fitColumns();
}
}
},

x_3lg: function(x_3dw, x_3dx, x_6q) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_3m1 = this.x_3m6,
x_5y = x_3m1.pageSize,
x_3pa = x_3dw.totalLength,
x_3qj = (x_3pa > x_5y),
x_2o = this.x_2o,
x_3qk;
if (this.x_3m7 || (x_3qj === x_3m1.el.hasClass('hiddenPaging'))) {
this.x_3m7 = false;  if (x_3qj) {
x_3m1.el.removeClass('hiddenPaging');
x_3m1.setHeight('auto');
}
else {
x_3m1.el.addClass('hiddenPaging');
x_3m1.setHeight(0);
}
if (kerio.lib.x_j9) {
x_3m1.syncSize();        x_3m1.setWidth('auto');  }
if (this.x_3ql) {
x_3qk = x_2o.lastSize.height;
delete x_2o.lastSize.height;
x_2o.setHeight(x_3qk);
}
else {
x_2o.syncSize();
x_2o.ownerCt.doLayout();
}
}
},

x_3m5: function() {
var x_3m1 = this.x_3m6;
x_3m1.loading.container.dom.previousSibling.innerHTML = '';  x_3m1.loading.hide();
},

x_3ld: function (x_351, x_fl) {
x_351.getView().focusRow(x_fl);
},

x_3jy: function(x_3qm, x_3qn, x_3n9, x_3na, x_3nb, x_3ev) {
var x_3l = x_3ev._kx.x_3m,
x_3lo = x_3l.x_kc.config[x_3nb],
x_3nc = x_3lo._kx.x_na,
x_3nd = kerio.lib.x_2ty,
x_eo = x_3n9.data,
x_3ng,
x_3nf = '',
x_3ne,
x_3qo = '<span';
x_3ne = x_3nc.call(x_3l, x_3qm, x_eo, x_3na, x_3nb, x_3l);
if (x_3ne.x_1p) {
x_3qo += ' class="' + x_3ne.x_1p + '"';
}
x_3qo += '>';
if (x_3ne.x_cy) {
x_3nf = '<span class="groupIcon ' + x_3ne.x_cy + '"';
if (x_3ne.x_pi) {
x_3nf += x_3nd(x_3ne.x_pi, x_3ne.x_ke);
}
x_3nf += '>&nbsp; &nbsp; &nbsp;</span>';
}
x_3ng = x_3ne.x_47;
if (!x_3ne.x_ke) {
x_3ng = Ext.util.Format.htmlEncode(x_3ng);
}
if (x_3ne.x_d0) {
x_3ng = '<span' + x_3nd(x_3ne.x_d0, x_3ne.x_ke) + '">' + x_3ng + '</span>';
}
x_3qo += x_3nf + x_3ng + '</span>';
return {
x_3gp: x_3qo
};
},

x_3jx: function(x_3n8, x_3h8, x_3n9, x_3na, x_3nb, x_3ev) {
var x_3l = x_3ev._kx.x_3m,
x_3lo = x_3l.x_kc.config[x_3nb],
x_go = x_3lo._kx.x_go,
x_3qp = x_go(x_3n8, x_3n9, x_3na, x_3nb, x_3l),
x_3nc = x_3qp.x_kf,
x_3nd = kerio.lib.x_2ty,
x_qc = Ext.util.Format.htmlEncode,
x_41,
x_1cm = Math.min( x_3qp.x_1cm || x_3n8.length, x_3n8.length), x_kd    = false !== x_3qp.x_kd,    x_3qq      = true  === x_3qp.x_3qq,      x_1st = x_3lo._kx.x_1st,
x_1cb,
x_1cc = x_3qp.x_1cc ? x_3nd(x_3qp.x_1cc, x_3qp.x_ke) : '',
x_uv = '<table unselectable="on" class="multilineCell"><tbody'+(x_3qq?' style="display:none"':'')+'>', x_3ne,
x_3qr = [],
x_3qs = [],
x_3qt = [],
x_3qu = [],
x_3qv,
x_3nf,
x_3ng,
x_3qw,
x_ke,
x_3qx,
x_3qy = false,
x_eo = x_3n9.data;
if (undefined !== x_3qp.x_1cb) {
x_1cb = x_3qp.x_ke
? x_3qp.x_1cb
: x_qc(x_3qp.x_1cb);
}
else {
x_1cb = kerio.lib.x_x('Items: ', 'common') + x_3n8.length; }
if (x_3qp.x_1p) {
x_3h8.css += x_3qp.x_1p + ' multilineCellContainer';
}
if (0 >= x_1cm) { x_uv += '<tr><td unselectable="on" '+ x_1cc +'>' + x_1cb + '</td></tr></tbody>';
}
else { for (x_41 = 0; x_41 < x_1cm; x_41++) {
x_3ne = x_3nc.call(x_3l, x_3n8[x_41], x_eo, x_3na, x_3nb, x_3l, x_41);
x_3nf = '';
x_3ng = '';
x_3qw = x_3ne.x_47;
x_ke = x_3ne.x_ke;
x_3qr.push(x_3ne.x_1p ? ' class="' + x_3ne.x_1p + '"' : '');
if (!x_ke) {
x_3qw = x_qc(x_3qw);
}
if (x_1st) {
x_3qx = 'cbx' + (x_3n8[x_41] ? 'On' : 'Off') + (x_3ne.x_1ss ? ' disabled' : '');
x_3qs.push('<td unselectable="on" class="cbx"><div unselectable="on" class="' + x_3qx + '"></div></td>');
}
if (x_3ne.x_cy) {
x_3nf = ' class="' + x_3ne.x_cy + '"';
x_3qy = true;
if (x_3ne.x_pi) {
x_3nf += x_3nd(x_3ne.x_pi, x_ke);
}
}
x_3qt.push('<td unselectable="on" ' + x_3nf + '>');
if (x_3ne.x_d0) {
x_3ng = x_3nd(x_3ne.x_d0, x_ke);
}
x_3qu.push('<td unselectable="on" ' + x_3ng + '>' + x_3qw + '</td>');
}
for (x_41 = 0; x_41 < x_1cm; x_41++) {
x_3qv = '';
if (x_kd) {
x_3qv = '<td  unselectable="on" ' + (0 === x_41 ? ' class="collapsible expanded"' : '') + '></td>';
}
x_uv += '<tr' + x_3qr[x_41] + '>'
+ (x_1st ? x_3qs[x_41] : '')
+ (x_3qy ? x_3qt[x_41] : '') + x_3qu[x_41] + x_3qv
+ '</tr>';
}
x_uv += '</tbody>';
if (x_kd) {
x_3ng = x_1cc;
x_3ng += (x_3qy ? ' colspan="2"' : '');
x_uv += '<tbody' + ((!x_3qq) ? ' style="display:none"' : '') + '><tr>';
x_uv += '<td unselectable="on" ' + x_3ng + '>' + x_1cb + '</td>';
x_uv += '<td unselectable="on" class="collapsible collapsed">&nbsp;</td></tbody>';
}
} x_uv += '</table>';
return x_uv;
},

x_3ku: function(x_1z3, x_fl, x_3qz, x_3df) {
var x_3l = this.grid._kx.x_2vk,
x_1p = '',
x_3r0;
if (x_3l.x_3kv) {
x_1p = x_3l.x_3kv.call(x_3l, x_1z3.data, x_fl, x_3l);
}
if (x_3l.x_3kj) {
x_3r0 = x_3l.x_3r1(x_1z3, x_fl, x_3qz, x_3df);
x_1p = kerio.lib.x_2u0(x_1p, x_3r0);
}
return x_1p;
}, 
x_3r1: function(x_1z3, x_fl, x_3qz, x_3df) {
var x_3md = x_3df._kx.x_3m.x_3mm,
x_3r2,
x_3r3,
x_7s,
x_3r4,
x_2nv,
x_kb,
x_3ni,
x_3r5 = {css: '', attr: ''},
x_41, x_42;
if ((undefined === x_3md) || (0 === x_3md.length)) {
return '';
}
for (x_41 = 0, x_42 = x_3md.length; x_41 < x_42; x_41++) {
x_3ni = x_3md[x_41];
x_3r4 = x_3ni.x_13l;
x_3r2 = x_3r4.x_7s;
x_3r3 = x_3r4.x_13m;
x_3r5.css = '';
x_3r5.attr = '';
if (x_3r3.indexOf(x_1z3.data[x_3r2]) != -1) {
x_7s = x_3ni.x_7s;
x_kb = x_3df._kx.x_3m.x_kc.findColumnIndex(x_7s);
x_2nv = x_1z3.data[x_7s] || '';
if (x_3ni.x_3jw) {
x_2nv = x_3ni.x_3jw(x_2nv, x_3r5, x_1z3, x_fl, x_kb, x_3df);
}
if (Ext.isIE) { x_3qz.body = '<span class="' + x_3r5.css + '"><div class="x-grid3-cell-inner x-grid3-col-' + x_kb + '"><pre unselectable="on">' + x_2nv + '</pre></div></span>';
}
else {
x_3qz.body = '<span class="' + x_3r5.css + '"><div class="x-grid3-cell-inner x-grid3-col-' + x_kb + '">' + x_2nv + '</div></span>';
}
x_3qz.bodyStyle = 'display: ' + (Ext.isGecko ? 'table-row' : 'block');
return 'colSpanRow';
}
}
x_3qz.bodyStyle= 'display: none';
return '';
},

x_3le: function(x_3av, x_fl) {
var x_o5 = this.x_1za,
x_2o = this.x_2o,
x_3iq = x_2o.getSelectionModel().getSelections(),
x_3r6 = [],
x_3n9,
x_41, x_42;
for (x_41 = 0, x_42 = x_3iq.length; x_41 < x_42; x_41++) {
x_3n9 = x_3iq[x_41];
x_3r6.push(x_o5.indexOf(x_3n9));
}

x_3r6.sort(kerio.lib.x_2ug);
this.x_3lu = x_3r6;
},

x_3lf: function () {
var x_3r6 = this.x_3lu,
x_2o = this.x_2o,
x_o5 = this.x_1za,
x_fl,
x_3hj,
x_3r7,
x_41, x_42;
if (x_3r6) {
x_3hj = x_o5.getCount();
if (0 === x_3r6.length) {
x_fl = 0;
}
else {
x_fl = x_3r6[0];
x_3r7 = true;
for (x_41 = 0, x_42 = x_3r6.length; x_41 < x_42; x_41++) {
if (x_3r6[x_41] != (x_fl + x_41)) {
x_3r7 = false;
break;
}
}
if (!x_3r7) {
x_fl = x_3r6[x_3r6.length - 1] - x_3r6.length + 1;
}
}
if (x_fl >= x_3hj) {
x_fl = x_3hj - 1;
}
if ((x_fl >= 0) && (x_3hj > 0)) {
x_2o.getSelectionModel().selectRow(x_fl);
x_2o.getView().focusRow(x_fl);
}
}
},

x_3op: function () {
this.x_3r8();
},  
x_3r8: function() {
var x_2nv = document.body,
x_3r9 = x_2nv.childNodes,
x_3ra,
x_3rb = Ext.getCmp('x_3rb'),
x_41, x_42,
x_2v = kerio.lib.x_2rm(this.x_371),
x_65 = x_2v.x_65,
x_3rc,
x_3rd;
if (x_3rb) {
kerio.lib.x_2qk(x_3rb._kx.x_2vk.x_1j);
x_3rb.destroy();
}
for (x_41 = 0, x_42 = x_3r9.length; x_41 < x_42; x_41++) {
x_3ra = x_3r9[x_41];
if (1 == x_3ra.nodeType && 'x_2o2' != x_3ra.id) {
Ext.get(x_3ra).addClass('noPrint');
}
}
delete x_2v.x_5v;
delete x_2v.x_4c;
delete x_2v.x_5y;
delete x_2v.x_5t;
x_2v.x_3j5 = true;
if (x_65) {
x_65.x_67 = false;
x_65.x_66.query.start = 0;
x_65.x_66.query.limit = -1;
}
this.x_3re(x_2v.x_3rf);
x_3rb = new kerio.lib.x_4g('x_3rb', x_2v);  x_3rc = this.x_316;
if (x_3rc) {
for (x_41 = 0, x_42 = x_3rc.length; x_41 < x_42; x_41++) {
x_3rd = x_3rc[x_41];
x_3rb[x_3rd] = this[x_3rd];
}
}
x_3rb.x_1za.on('load', this.x_3kr, this);
x_3rb.x_6y();
},

x_3re: function(x_3rg) {
var x_1b = kerio.lib,
x_2o2 = this.x_3k4.x_2o2;
x_3rg = x_3rg || '';
if (!x_2o2) {
x_2o2 = new x_1b.x_26('x_2o2', {
x_1y: this.x_3rh,
x_3ri: false,
x_1u: 600,
x_1v: 400,
x_1x: new x_1b.x_1bn('x_2o3', {
x_1bk: '<div id="x_3rj" class="printedTitle">'+ x_3rg +'</div><div id="x_3kp"></div>'
}),
x_1z: [
{x_1j: 'x_3rk', x_23: this.x_3oo, x_25: function() {window.print();}},
{x_1j: 'x_ji', x_23: Ext.MessageBox.buttonText.cancel, x_21: true}
]
});
this.x_3k4.x_2o2 = x_2o2;
}
else {
x_1b.x_2b8('x_3rj').innerHTML = x_3rg;
}
x_2o2.x_32.x_lc('x_3rk');
x_2o2.x_1v3();
},

x_3kr: function () {
var x_3po = this.x_2o.getColumnModel(),
x_3kp = Ext.get('x_3kp'),
x_3rl = x_3kp.dom.getElementsByTagName('TD'),
x_3rm = x_3po.getColumnCount(),
x_1u,
x_3rn = [],
x_3ro = 0,
x_41, x_42,
x_3rp;
for (x_41 = 0; x_41 < x_3rm; x_41++) {
x_1u = x_3po.getColumnWidth(x_41);
x_3rn.push(x_1u - 14);  if (!x_3po.isHidden(x_41)) {
x_3ro += x_1u;
}
}
for (x_41 = 0, x_42 = x_3rl.length; x_41 < x_42; x_41++) {
x_1u = x_3rn[x_41 % x_3rm];
x_3rl[x_41].style.width = x_1u + 'px';
x_3rp = x_3rl[x_41].firstChild;
if (x_3rp && 1 == x_3rp.nodeType) {
x_3rl[x_41].firstChild.style.width = x_1u + 3 + 'px';  }
}
x_3kp.setWidth(x_3ro);
this.x_3k4.x_2o2.x_32.x_3b('x_3rk');
},  
x_3l1: function() {
var x_3rq,
x_3rr = Ext.select('td.collapsible', true, this.x_1j),     x_3rs,
x_3rt,
x_2un,
x_3ru,
x_41,
x_42,
x_2se = kerio.lib.x_2sf;
x_3rq = Ext.select('table.multilineCell', true, this.x_1j);
x_3rs = x_3rq.elements;
for (x_41 = 0, x_42 = x_3rs.length; x_41 < x_42; x_41++) {
x_2un = x_3rs[x_41];
if (undefined === x_2un._kx || undefined === x_2un._kx.x_2vk) {
x_2un.on('click', this.x_3rv, this);
if (this.x_3k8) {
x_2un.addListener('dblclick', this.x_3rw);
}
if (this.x_3k9) {
x_2un.parent('div.x-grid3-row').addClassOnOver('mlCellOver');
}
x_3rt = x_2un.select('td.cbx', true).elements;
for (x_3ru = 0; x_3ru < x_3rt.length; x_3ru++) {
x_3rt[x_3ru].first().addListener('click', this.x_3rx,
x_2un, {x_3ru: x_3ru}
);
}
x_2se(x_2un, {x_2vk: this});
}
}
x_3rs = x_3rr.elements;
x_42 = x_3rs.length;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_2un = x_3rs[x_41];
if (undefined === x_2un._kx || undefined === x_2un._kx.x_2vk) {
x_2un.addListener('click', this.x_3ry);
x_2se(x_2un, {x_2vk: this});
}
}
},

x_3rv: function (x_96) {
var
x_2o = this.x_2o,
x_3rz = x_96.getTarget('.x-grid3-cell', x_2o.getEl()),
x_3i1 = x_2o.getView(),
x_fl = x_3i1.findRowIndex(x_3rz),
x_3hn = x_2o.getSelectionModel();
if (false === x_2o.getSelectionModel().isSelected(x_fl)) {
x_3hn.selectRow(x_fl);
if (!x_2o.getEl().hasClass('focusedItem')) {
x_3i1.focusRow(x_fl);
}
}
},

x_3ry: function() {
var x_3s0 = this.dom.parentNode.parentNode,
x_3s1 = x_3s0.parentNode,
x_3s2 = (x_3s0 == x_3s1.tBodies[0]) ? x_3s1.tBodies[1] : x_3s1.tBodies[0],
x_2vk = this._kx.x_2vk;
x_3s0.style.display = 'none';
x_3s2.style.display = Ext.isIE ? 'block' : 'table-row-group';
x_2vk.x_3j9.call(x_2vk);
},

x_3rw: function(x_96) {
var x_3rz = this.dom.parentNode.parentNode,
x_3l = this._kx.x_2vk,
x_2o = x_3l.x_2o,
x_3i1 = x_2o.getView(),
x_fl = x_3i1.findRowIndex(x_3rz),
x_12v = x_3i1.findCellIndex(x_3rz);
x_3l.x_3jr.call(x_3l, x_2o, x_fl, x_12v, x_96);
},

x_3rx: function(x_96, x_2so, x_6q) {
var
x_3rz = this.dom.parentNode.parentNode,
x_3l = this._kx.x_2vk,
x_2o = x_3l.x_2o,
x_3i1 = x_2o.getView(),
x_fl = x_3i1.findRowIndex(x_3rz),
x_12v = x_3i1.findCellIndex(x_3rz),
x_3mr = x_2o.getColumnModel(),
x_7s = x_3mr.getDataIndex(x_12v),
x_3s3 = x_3mr.getColumnById(x_12v),  x_3hn = x_2o.getSelectionModel(),
x_1am = x_3hn.isSelected(x_fl),
x_1z3 = x_2o.store.getAt(x_fl),
x_g7 = x_6q.x_3ru,
x_3s4 = true,
x_3s5,
x_ut,
x_uv;
x_3l.x_3rv(x_96);
if (-1 !== x_2so.className.indexOf('disabled') || x_3l.x_5p()) {
return;  }
x_ut = x_1z3.data[x_7s][x_g7];
x_3l.x_3h7({
grid  : x_2o,
record: x_1z3,
field : x_7s,
value : x_ut,
row   : x_fl,
column: x_12v,
x_g7: x_g7
});
x_uv = !x_ut;
if (x_3l.x_2sk.x_h6) {
if (false === x_3l.x_2sk.x_h6.call(x_3l, x_3l, x_7s, x_ut, x_1z3.data)) {
return;
}
}
if (x_3s3._kx && x_3s3._kx.x_h6) {
if (false === x_3s3._kx.x_h6.call(x_3l, x_3l, x_7s, x_ut, x_1z3.data, x_g7)) {
return;
}
}
x_3s5 = x_1z3.data[x_7s].concat([]);
x_3s5[x_g7] = x_uv;
x_1z3.set(x_7s, x_3s5);
if (x_3s4 && x_3s3._kx && x_3s3._kx.x_9t) {
x_3s3._kx.x_9t.call(x_3l, x_3l, x_uv, x_1z3.data, x_g7);
}
},

x_3l2: function(x_3s6){
x_3s6.getView().applyEmptyText();
},

x_hg: function (x_3s7) {
this.x_2o.getView().refresh(x_3s7);
},

x_3j8: function() {
var x_2o = this.x_2o,
x_3s8 = false !== x_2o.initialConfig.border;
if (x_3s8 && x_2o.border !== x_3s8) {
x_2o.el.removeClass(x_2o.baseCls + '-noborder');
x_2o.body.removeClass(x_2o.bodyCls + '-noborder');
}
},

x_3kt: function(x_2o) {
var x_3iw = x_2o.getView();
x_3iw.onRowOut = function(e, t) {
var row,
x_3s9 = e.getRelatedTarget(),
x_dh;
try {
x_dh = x_3s9.nodeType;
}
catch (x_2nh) {
return;
}
if((row = this.findRowIndex(t)) !== false && row !== this.findRowIndex(x_3s9)){
this.removeRowClass(row, "x-grid3-row-over");
}
};
},


x_3sa: function (x_3il) {
var
x_3hn = this.x_2o.getSelectionModel(),
x_3id = x_3hn._kxp;
if (false === x_3il) {
x_3id.x_3is.call(x_3hn);
}
else {
x_3id.x_3io.call(x_3hn);
}
},

x_3sb: function () {
this.x_3sa(false);
},

x_3sc: function () {
var
x_3hn = this.x_2o.getSelectionModel(),
x_o5 = this.x_1za,
x_3sd = x_3hn._kxp.x_3it.call(x_3hn),
x_3ic = {},
x_40 = [],
x_3ot,
x_42,
x_41;
x_42 = x_3sd.length;
x_3ic.x_3se = x_42;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3ot = x_3sd[x_41];
x_40.push({
x_fl: x_o5.indexOfId(x_3ot.id),
x_47: x_3ot.data,
x_3n9: x_3ot
});
}
x_3ic.x_40 = x_40;
return x_3ic;
},

x_3sf: function (x_fk) {
var x_3hn = this.x_2o.getSelectionModel();
return x_3hn._kxp.x_7d.call(x_3hn, x_fk);
},

x_3l6: function (x_3av) {
kerio.lib.x_2t2(this, this.x_391.x_30v);
},

x_3jt: function (x_3av, x_fl, x_3el) {
return this.x_2sk.x_3js.call(this, this, x_3el.data, x_fl);
},

x_fm: function(x_eo, x_3en, x_3eg) {
var
x_o5 = this.x_2hl.x_2o,
x_2kj = this.x_2hl.x_3ei(),
x_3ej = this.x_5y - 1,
x_3ek,
x_3el,
x_1jn,
x_3v;
if ((undefined !== x_3eg) && ((x_2kj >= x_3eg) || (x_3ej <= x_3eg))) {
x_3ek = x_3eg - (x_3eg % this.x_5y);
this.x_6y({start: x_3ek});
return;
}
x_o5 = this.x_2hl.x_2o;
x_1jn = false;
if (undefined === x_3en) {
x_3v = this.x_3v;
if (0 > x_3v.x_46) {
return;
}
x_3el = x_3v.x_40[0].x_3n9;
x_1jn = true;
}
else {
x_3el = x_o5.getAt(x_3en);
}
if (undefined === x_3eg) {
x_3eg = (undefined !== x_3en) ? x_3en : x_o5.indexOf(x_3el);
}
this.x_2hl.x_fm.call(this.x_2hl, x_eo, x_3el, x_3en, x_3eg);
if (x_1jn) {
this.x_tz([x_3eg]);
}
},

x_6y: function(x_66) {
this.x_2hl.x_6y.call(this.x_2hl, x_66);
},

x_ih: function(x_eo, x_3eg, x_3eh) {
this.x_2hl.x_ih.call(this.x_2hl, x_eo, x_3eg, x_3eh);
if (this.x_3cl) {
this.x_3p7();
}
},

x_eq: function(x_3e3) {
return this.x_2hl.x_eq.call(this.x_2hl, x_3e3);
},

x_fn: function(x_eo, x_3ep) {
return this.x_2hl.x_fn.call(this.x_2hl, x_eo, x_3ep);
},

x_3e4: function () {
return this.x_2hl.x_3e4.call(this.x_2hl);
},

x_xj: function(x_1aq) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.view.toggleAllGroups(x_1aq);
},
x_ym: function(x_3sg, x_1aq) {
var
x_g6,
x_41, x_42;
if (!Ext.isArray(x_3sg)) {
x_3sg = [x_3sg];
}
if (0 === x_3sg.length) {
return;
}
for (x_41=0, x_42=x_3sg.length; x_41 < x_42; x_41++) {
x_g6 = x_3sg[x_41];
this.x_3sh(x_g6, x_1aq);
}
},
x_3sh: function(x_3si, x_1aq) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var
x_54 = this.x_2o.view;

x_54.toggleGroup(x_54.getGroupId(x_3si), x_1aq);
},
x_3n0: function(x_3sj, x_96) {
if (x_96.ESC == x_96.getKey()) {
x_3sj.hide();
}
}
}); 

kerio.lib.x_26 = function(x_1j, x_2v) {
var
x_1p = 'dialog', x_2o,
x_3sk;
this.x_3h = kerio.lib.x_6b.x_1l5;
kerio.lib.x_26.superclass.constructor.call(this);
this.x_1j = x_1j;
this.x_3sl = {};
this.x_3sm = null;
this.x_1al = x_2v.x_1al;
if (undefined !== x_2v.x_1p) {
x_1p += ' ' + x_2v.x_1p;
}
x_2v.x_1p = x_1p;
x_2v = kerio.lib.x_2r7(x_2v);
x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
this.x_333 = new kerio.lib.x_32u(this); x_3sk = (undefined === x_2v.x_3sk) ? true : x_2v.x_3sk;
if (x_3sk) {
this.x_3sn();
}
kerio.lib.x_2sf(this.x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);
x_2o.on('render', this.x_3so, this);
}; Ext.extend(kerio.lib.x_26, kerio.lib.x_324,

{
x_3sp: {
modal: true,          resizable: true,      shadow: true,         layout: 'fit',		  closeAction: 'hide',   plain: true,
border: true
},
x_36n: {
x_1v: 'height',
x_1u: 'width',
x_l1: 'minHeight',
x_l0: 'minWidth',
x_3sq: 'modal',
x_1w: 'resizable',
x_3sr: 'shadow',
x_1y: 'title',
x_1p: 'cls',
x_3ss: {x_2sg: 'resize', x_2sj: 'this.x_3st', x_2q: 'this'}
},
x_3su: {
x_m2: 250
},

x_2ql: function(x_2v) {
var x_3sv = kerio.lib.x_2sl.call(this, x_2v, this.x_3sp, this.x_36n),
x_3sw = false,
x_1x = x_2v.x_1x,
x_1z = x_2v.x_1z,
x_3sx = true,
x_3sy = '',
x_2y,
x_g9,
x_3sz,
x_41,
x_42,
x_4u,
x_2o,
x_32,
x_2ta;
x_3sv.id = this.x_1j; this.x_34q = x_2v.x_o9;
x_3sv.listeners = Ext.apply(x_3sv.listeners || {}, {
beforeshow : function(x_2ta) {
x_2ta.syncSize();
}
});
if (x_1x) {
x_1x.x_2p = this;
this.x_32e(x_1x);
if (x_1x.x_2bn) {
x_3sv.items = x_1x.x_2bn;
}
else {
x_3sv.items = x_1x.x_2o;
}
x_3sz = x_3sv.items;
if ((x_3sz instanceof Ext.TabPanel)
|| (x_3sz._kx && x_3sz._kx.x_2vk
&& (x_3sz._kx.x_2vk instanceof kerio.lib.x_2a3))) {
x_3sv.border = false;
if (x_3sz instanceof Ext.TabPanel) { if (!x_3sv.cls) {
x_3sv.cls = 'dialogWithTabs';
}
else {
x_3sv.cls += ' dialogWithTabs';
}
}
}
}
if (x_1z) {
x_3sv.footer = true;
for (x_41 = 0, x_42 = x_1z.length; x_41 < x_42; x_41++) {
x_2y = x_1z[x_41];
x_g9 = x_2y.x_1j;
if (x_2y.x_20) {
if (!x_g9) {
x_g9 = kerio.lib.x_2tl();
x_2y.x_1j = x_g9;
}
x_3sy = x_g9;
if (undefined === x_2y.x_2d8) {
x_2y.x_2d8 = kerio.lib.x_6b.x_107; }
}
if (x_3sx && ('string' == typeof(x_2y)) &&  ('->' == x_2y)) {
x_3sx = false;
}
if (x_2y.x_21 && !x_2y.x_25) {
x_2y.x_25 = function(x_32) {
x_32.x_16.x_2r.call(x_32.x_16);
};
}
if (undefined !== x_2y.x_24) {
if (!x_g9) {
x_g9 = kerio.lib.x_2tl();
x_2y.x_1j = x_g9;
}
this.x_3sl[x_g9] = x_2y.x_24;
if (!x_2v.x_1al) {
this.x_3sl[x_g9].x_3t0 = x_2y.x_25;
x_2y.x_25 = this.x_3t1.createDelegate(this);
}
}
}
if (x_3sx) {
x_1z.splice(0, 0, '->');
}
if (!this.x_34q) {
x_3sw = true;
if ('' === x_3sy) {
x_2y = x_1z[x_1z.length - 1];
x_2y.x_20 = true;
if (!x_2y.x_1j) {
x_2y.x_1j = kerio.lib.x_2tl();
}
x_3sy = x_2y.x_1j;
x_1z[x_1z.length - 1] = x_2y;
}
this.x_34q = x_3sy;
}
x_4u = {
x_1e: x_1z,
x_1p: 'dialogButtons toolbarButtons'
};
if (x_2v.x_3t2) {
x_4u.x_4c = x_2v.x_3t2;
}
x_2o = this.x_2o;
x_32 = new kerio.lib.x_37(this.x_1j + '_' + 'x_3t3', x_4u);
if (x_3sw) {
x_32.x_2o.items.on('add', function(x_3t4, x_37g) {
if (x_37g._kx && (x_37g._kx.x_1j == this.x_34q)) {
this.x_34q = x_37g.id;
}
}, this);
}
x_32.x_16 = this;
x_3sv.bbar = x_32.x_2o;
this.x_32 = x_32;
this.x_32e(x_32);
x_32.x_2p = this;
}
if (false !== x_2v.x_3ri && kerio.lib.x_2tv) {
Ext.apply(x_3sv, {
tools: [{
id: 'help',
handler: kerio.lib.x_2tv,
scope: this
}]
});
}
x_2ta = new Ext.Window(x_3sv);
kerio.lib.x_2sf(x_2ta, {x_2vk: this});
this.x_2o = x_2ta;
x_2ta.on('render', this.x_3t5, this);
x_2ta.on('hide', this.x_3t6, this);
x_2ta.on('beforeshow', this.x_3t7, this, {single: true});
return x_2ta;
}, 
x_3t7: function (x_2ta) {
var x_3t8 = x_2ta.initialConfig,
x_1u = (undefined !== this.x_3t9) ? this.x_3t9 : x_3t8.width,
x_1v = (undefined !== this.x_3ta) ? this.x_3ta : x_3t8.height;
x_2ta.setSize(x_1u, x_1v);
},

x_3t5: function() {
this.x_2o.footer.appendChild(this.x_2o.bbar);
Ext.get(this.x_2o.footer.dom.firstChild).removeClass('x-window-bbar');
delete this.x_2o.bbar;
delete this.x_2o.bottomToolbar;
},

x_1v3: function() {
this.x_2o.show();
}, 
x_2r: function() {
this.x_jt();
this.x_2o.hide();
}, 
x_3t6: function() {
this.x_31h();
if (this.x_jo) {
this.x_jo();
}
},	
x_3tb: function(x_1j, x_1v3) {
if (!this.x_32) {
return;
}
this.x_32.x_jp(x_1j, x_1v3);
}, 
x_2m: function(x_gc) {
this.x_2o.setTitle(x_gc);
},

x_3sn: function () {
this.x_2o.on('beforeshow', function(){this.center();}, this.x_2o);
},

x_3so: function (x_34r) {
this.x_32z = new Ext.KeyNav(x_34r.getEl(), {
enter: this.x_3tc,
defaultEventAction: 'doNothingWithEvent',
scope: this
});
},

x_3tc: function (x_330) {
var
x_2td = this.x_3td,
x_sy,
x_1kb,
x_g9,
x_3te;
if (!x_330.hasModifier()) {
if (!x_2td) {
x_sy = this.x_32.x_1e;
for (x_g9 in x_sy) {
x_1kb = x_sy[x_g9];
if (typeof x_1kb != 'function') {
if (x_1kb._kx && x_1kb._kx.x_20) {
x_2td = x_1kb;
break;
}
}
}
this.x_3td = x_2td;
}
if (x_2td && x_2td.handler) {
x_3te = this.x_333.x_343();
if (x_3te &&
((x_3te instanceof Ext.Button) ||
(x_3te instanceof Ext.form.TextArea) ||
(x_3te instanceof Ext.form.ComboBox) ||
(x_3te.hasClass && x_3te.hasClass('x-grid3-focus')))) {
return;
}
if (!x_2td.disabled && !x_2td.hidden) {
x_330.stopEvent();
x_2td.handler(x_2td, x_330);
}
}
}
},

x_3tf: function(x_g9) {
var
x_35a = this.x_32.x_2o,
x_sy = x_35a.buttons || x_35a.items.items,
x_3tg = x_35a.rendered,
x_3th = 'defaultButton',
x_42 = x_sy.length,
x_2td,
x_1kb,
x_41;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1kb = x_sy[x_41];
if (x_1kb._kx && (x_1kb._kx.x_20)) {
x_1kb._kx.x_20 = false;
if (x_3tg) {
x_1kb.removeClass(x_3th);
}
else {
x_1kb.cls = x_2td.cls.replace(x_3th, '');
}
}
}
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1kb = x_sy[x_41];
if (x_1kb._kx && (x_1kb._kx.x_1j == x_g9)) {
if (x_3tg) {
x_1kb.addClass(x_3th);
this.x_3td = x_1kb;
}
else {
if (x_1kb.cls) {
x_1kb.cls += ' ' + x_3th;
}
else {
x_1kb.cls = x_3th;
}
}
kerio.lib.x_2sf(x_1kb, {x_20: true});
}
}
},

x_24: function(x_24, x_1n, x_m2) {
if (true === x_24) {
this.x_ly(x_1n, x_m2);
}
else {
this.x_jt();
}
},

x_ly: function (x_1n, x_m2) {
var x_3ti = this.x_3su,
x_2o = this.x_2o,
x_3tj;
if (!x_2o.rendered) {
return;
}
this.x_32.x_84(true);
x_3tj = x_2o.getEl();
x_1n = x_1n || x_3ti.x_1n;
if (undefined === x_m2) { x_m2 = x_3ti.x_m2;
}
this.x_3sm = x_3tj.mask.defer(x_m2, x_3tj, [x_1n, 'x-mask-loading']);
},

x_jt: function () {
var x_3tj;
if (null === this.x_3sm) {
return;
}
x_3tj = this.x_2o.getEl();
this.x_32.x_84(false);
clearInterval(this.x_3sm);
this.x_3sm = null;
x_3tj.unmask();
},

x_3t1: function (x_3tk, x_1kb) {
var x_2pa = this.x_3sl[x_1kb.x_1j];
this.x_ly(x_2pa.x_1n, x_2pa.x_m2);
x_2pa.x_3t0.apply(x_3tk, arguments);
},

x_2g: function(x_2n) {
var x_2o = this.x_2o,
x_1b = kerio.lib,
x_3tl = x_1b.x_2rt( x_1b.x_2s7(x_2n, this.x_36n) );
Ext.apply(x_2o, x_3tl);
if (!x_2o.boxReady) {
this.x_3t9 = x_2n.x_1u; this.x_3ta = x_2n.x_1v;
return;
}
x_2o.setWidth(x_3tl);
},

x_3tm: function() {
var x_2o = this.x_2o,
x_3tl = x_2o.boxReady ? x_2o.getSize() : {width: this.x_3t9, height: this.x_3t9},
x_2n = {
x_1u: x_3tl.width,
x_1v: x_3tl.height,
x_l0: x_2o.minWidth,
x_l1: x_2o.minHeight
};
return kerio.lib.x_2rt(x_2n);
},

x_3st: function(x_2o, x_1u, x_1v) {
this.x_2sk.x_3ss.call(this, this, x_1u, x_1v);
}
}); 
if (Ext.isIE || Ext.isSafari) {
Ext.Window.prototype.onRender = Ext.Window.prototype.onRender.createSequence(function(){
var x_24 = this.mask;
if (x_24) {
x_24.on('click', function () {
var x_16 = kerio.lib.x_2uq.x_332();
if (x_16) {
x_16.x_333.x_334();
}
});
}
this.getEl().on('click', function (x_4e) {
var x_2ns = Ext.get(x_4e.getTarget()),
x_3tn = null;
if (x_2ns) {

if ('file' === x_2ns.dom.type) {
x_3tn = Ext.getCmp(x_2ns.dom.parentNode.firstChild.id);
}
else {
x_3tn = Ext.getCmp(x_2ns.id);
}
}

if (!x_3tn || !(x_3tn instanceof Ext.form.Field)) {
x_3tn = kerio.lib.x_2uq.x_332();
if (x_3tn) {
x_3tn.x_333.x_334();
}
}
});
});
}


kerio.lib.x_32r = function(x_1j, x_2v) {
var x_2o;
kerio.lib.x_32r.superclass.constructor.call(this);
this.x_1j = x_1j;
x_2v.x_a6 = x_2v.x_1j;
x_2v.x_1j = x_1j;
this.x_a6 = x_2v.x_a6;
x_2o = this.x_2ql(x_2v); this.x_2o = x_2o;
kerio.lib.x_2sf(x_2o, {x_2vk: this});
kerio.lib.x_2qj(this, x_1j);    this.x_2w7(x_2v);
x_2o.on('render', this.x_31f, this);
this.x_3to();
if ((false === x_2v.x_2fb) || (true === x_2v.x_1m)) {
this.x_2k(false);
}
if (true === x_2v.x_31) {
this.x_84(true);
}
if (true === x_2v.x_5p) {
this.x_85(true);
}
if (true === x_2v.x_3tp) {
this.x_3tq = true;
x_2o.on('render', this.x_3tr, this);
}
if (undefined !== x_2v.x_b2) {
this.x_3ts = x_2v.x_b2;
this.x_b2(x_2v.x_b2);
}

this.x_3tt = (true === x_2v.x_1l);
if (Ext.isIE) {
this.x_2o.on('render', function (x_3tu) {
var
x_3tv = Ext.get(x_3tu.getEl().findParent('.x-form-element')),
x_3tw = x_3tu.ownerCt;
if (x_3tv && (x_3tw.hideLabels || this.x_3tt)) {
x_3tv.setStyle({position: 'static'});
}
}, this);
}
};
Ext.extend(kerio.lib.x_32r, kerio.lib.x_1md,

{

x_3tx: true,

x_3ty: true,
x_3tz: true,
x_3u0: false,
x_3u1: false,
x_35u: true,
x_1kn: false,
x_2db: false,

x_36n: {
x_1j: 'id',
x_a6: 'name',
x_23: 'fieldLabel',
x_1o: 'value',
x_3u2: 'style',
x_31: 'disabled',
x_1m: 'hidden',
x_5p: 'readOnly',
x_1u: 'width',
x_3u3: 'anchor',
x_1p: 'cls',
x_1l: 'hideLabel'
}, x_3ay: {},

x_3u4: 'readonly',

x_3n4: null,

x_i5: function (x_2o) {
var x_1c;
if (!this.x_3n6()) {
return;
}
x_1c = this.x_9d || null;
if (x_1c && (true === x_1c.x_3u5)) {
x_1c.x_i5.call(x_1c, x_1c, this);
}
this.x_3u6();
this.x_3to();
},

x_3u6: function() {
if (this.x_3u7) {
this.x_3u7.call(this, this.x_9d || null, this, this.x_2t());
}
},

x_3to: function () {
this.x_3n4 = this.x_2t();
},

x_3n6: function () {
return (this.x_3n4 !== this.x_2t());
},

x_31: function() {
return (this.x_3u0 || this.x_1kn);
}, 
x_3u8: function () {
return this.x_3u0;
},

x_84: function(x_1r) {
var
x_3u9,
x_3ua;
x_1r = (false !== x_1r);
x_3u9 = this.x_31();
x_3ua = (x_1r || this.x_3u0);
this.x_1kn = x_1r;
if (x_3u9 !== x_3ua) {
this.x_3nj(x_3ua);
}
}, 
x_3ub: function (x_1r) {
var
x_3u9,
x_3ua;
x_3u9 = this.x_31();
x_3ua = (x_1r || this.x_1kn);
this.x_3u0 = x_1r;
if (x_3u9 !== x_3ua) {
this.x_3nj(x_3ua);
}
},

x_3nj: function (x_1r) {
var x_2o = this.x_2o;
if (x_1r && true === x_2o.hasFocus) {
x_2o.blur();
}
if (true === this.x_3ty) {
x_2o.setDisabled(x_1r);
}
else {
if (this.x_5p()) {
x_2o.setDisabled(true);
}
else {
x_2o.setDisabled(x_1r);
}
}
this.x_3uc(x_1r);
},

x_3uc: function (x_1r) {
var
x_2o = this.x_2o,
x_3ud = x_2o.disabledClass,
x_2un,
x_3ue;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_2un = this.x_3tx ? x_2o.container : x_2o.el;
x_3ue = Ext.get(x_2o.container.dom.previousSibling);
if (x_3ue && x_3ue.dom.htmlFor == x_2o.id) {
if (x_1r) {
x_3ue.addClass(x_3ud);
}
else {
x_3ue.removeClass(x_3ud);
}
}
if (x_1r) {
x_2un.addClass(x_3ud);
}
else {
x_2un.removeClass(x_3ud);
}
},

x_2fb: function() {
return (this.x_3tz && this.x_35u);
}, 
x_3uf: function() {
return this.x_3tz;
},

x_2k: function(x_2er) {
var	x_3ug;
x_2er = (false !== x_2er);
x_3ug = this.x_35u;
this.x_35u = x_2er;
if (x_3ug !== x_2er) {
this.x_2o.setVisible(x_2er);
this.x_3uh(x_2er);
}
}, 
x_3uh: function (x_2er) {
var
x_2o = this.x_2o,
x_2un;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_2un = this.x_3tx ? x_2o.el.parent('.x-form-item') : x_2o.el;
if(x_2un) {
if (x_2er) {
x_2un.removeClass('x-hide-display');
}
else {
x_2un.addClass('x-hide-display');
}
}
},

x_5p: function() {
return (this.x_3u1 || this.x_2db);
}, 
x_3ui: function () {
return this.x_3u1;
},

x_85: function(x_35t) {
var
x_3u9,
x_3ua;
x_35t = (false !== x_35t);
x_3u9 = this.x_5p();
x_3ua = (x_35t || this.x_3u1);
this.x_2db = x_35t;
if (x_3u9 !== x_3ua) {
this.x_3nm(x_3ua);
}
}, 
x_3uj: function (x_35t) {
var
x_3u9,
x_3ua;
x_3u9 = this.x_5p();
x_3ua = (x_35t || this.x_2db);
this.x_3u1 = x_35t;
if (x_3u9 !== x_3ua) {
this.x_3nm(x_3ua);
}
},

x_3nm: function (x_35t) {
if ((false === this.x_3ty) && !this.x_31()) { this.x_2o.setDisabled(x_35t);
}
this.x_3uk(x_35t);
},

x_3uk: function (x_35t) {
var x_2o = this.x_2o,
x_2un;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_2un = this.x_3tx ? x_2o.container : x_2o.el;
x_2o.readOnly = x_35t;
x_2o.getEl().dom.readOnly = x_35t;
if (x_35t) {
if (x_2o.hasFocus) {
x_2o.blur();
}
x_2un.addClass('readonly');
}
else {
x_2un.removeClass('readonly');
}
},

x_b2: function(x_3ul) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_3um = this.x_2o.getEl().up('.x-form-item');
if (x_3um) {
x_3um.setStyle('margin-left', (x_3ul * kerio.lib.x_6b.x_2p5) + 'px');
}
}, 
x_1d3: function() {
var x_34p;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_34p = this.x_31s().x_333;
if (x_34p) {
x_34p.x_33q(x_34p.x_33z(this.x_2o));
x_34p.x_334();
}
else {
this.x_2o.focus();
}
}, 
x_3un: function () {
return this.x_2o.initialConfig.value;
},

x_2h: function () {
this.x_9w(this.x_3un());
},

x_2w7: function(x_2v) {
var x_2o = this.x_2o;
if (x_2v.x_gf) {
this.x_3lc = x_2v.x_gf;
x_2o.on('focus', this.x_3uo, this);
}
if (x_2v.x_gj) {
this.x_3up = x_2v.x_gj;
this.x_3uq();
}
this.x_3u7 = x_2v.x_9t;
}, 
x_3uq: function () {
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.getEl().on('blur', this.x_3ur, this);
},

x_3uo: function(x_34b) {
this.x_3lc(this.x_9d || null, this);
}, 
x_3ur: function(x_34b) {
this.x_3up(this.x_9d || null, this);
}, 
x_3us: function (x_2er) {
x_2er = (undefined === x_2er) ? true : x_2er;
this.x_3tz = x_2er;
},

x_3tr: function (x_3tu) {
var x_3ut = Ext.get(x_3tu.getEl().findParent('.x-form-item')),
x_3uu = Ext.get(x_3tu.getEl().findParent('.x-form-element')),
x_3uv,
x_br = 0;
if (x_3ut) {
x_3uv = x_3ut.child('.x-form-item-label');
}
if (!x_3uv) {
return;
}
x_br = Ext.util.TextMetrics.measure(x_3uv.id, x_3tu.fieldLabel).width;
x_3uv.setStyle({width: x_br + 'px'});
x_3uu.setStyle({paddingLeft: (x_br + 5) + 'px'});
this.x_3uw = x_br;
},

x_se: function (x_1p) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_2o = this.x_2o,
x_35o = x_2o.wrap || x_2o.el;
if (x_35o) {
x_35o.addClass(x_1p);
}
},

x_sd: function (x_1p) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_2o = this.x_2o,
x_35o = x_2o.wrap || x_2o.el;
if (x_35o) {
x_35o.removeClass(x_1p);
}
},

x_2t: function () {
return this.x_2o.getValue();
}
});


kerio.lib.x_2q0 = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2ou;
this.x_3ux = x_2v.x_3uy;
kerio.lib.x_2q0.superclass.constructor.call(this, x_1j, x_2v);
this.x_1j = x_1j;
this.x_3uz = {}; this.x_1e = {};
if (this.x_3v0) {
if (!x_2v.x_1p) {
x_2v.x_1p = this.x_3v0;
}
else {
x_2v.x_1p += ' ' + this.x_3v0;
}
}
var x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
this.x_356(x_2v, x_2o);
kerio.lib.x_2qj(this, x_1j);
kerio.lib.x_2sf(x_2o, {x_2vk: this});
if (true === x_2v.x_31) {
this.x_84(true);
}
if (true === x_2v.x_5p) {
this.x_85(true);
}
if ((true === x_2v.x_1m) || (false === x_2v.x_2fb)) {
this.x_2k(false);
}
x_2o.on('render', this.x_31f, this);
};
Ext.extend(kerio.lib.x_2q0, kerio.lib.x_34d,

{
x_1kn: false,
x_35u: true,
x_2db: false,
x_3tz: true,
x_3u0: false,
x_3u1: false,
x_3v0: 'formContainer',
x_3v1: {
x_1p: 'cls',
x_23: 'title',
x_1l: 'hideLabels',
x_br: 'labelWidth',
x_1v: 'height',
x_1u: 'width',
x_3v2: 'columnWidth',
x_3u2: 'style',
x_1h: 'anchor',
x_3v3: 'labelAlign'
},
x_3ay: {
layout: 'form',
border: false,
bodyBorder: false,
layoutConfig: {
labelSeparator: ''
},
autoWidth: false,
labelSeparator: '',
anchor: '0'	,
labelWidth: kerio.lib.x_6b.x_2p9
},
x_2eg: 'x_gc',

x_3v4: Ext.Panel,

x_2ql: function(x_2v) {
var x_3v5,
x_2o;
x_3v5 = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_3v1);
this.x_3uw = x_3v5.labelWidth;
this.x_3v6(x_3v5, x_2v);
x_3v5.id = this.x_1j;
x_3v5.items = this.x_3v7(x_2v);
x_2o = new this.x_3v4(x_3v5);
x_2o.on('render', this.x_3v8, this);
this.x_3v9 = (true === x_2v.x_x7);
if (this.x_3v9 ||
((undefined !== x_2v.x_1x)) && (!x_2v.x_1v)) {
x_2o.on('render', this.x_3va, this);
}
return x_2o;
}, 
x_3v8: function (x_2bo) {
var x_3vb = x_2bo.ownerCt,
x_3vc, x_342, x_34b;
if (x_3vb._kx && x_3vb._kx.x_3vd) {
return;
}
x_3vc = x_3vb.items;
x_342 = x_3vc.getCount();
x_34b = x_3vc.itemAt(x_342 - 1);
if (x_34b._kx && (x_34b._kx.x_2vk instanceof kerio.lib.x_2q0)) {
x_34b.addClass('lastFormContainer');
kerio.lib.x_2sf(x_3vb, {x_3vd: true});
}
},

x_3v6: function (x_370, x_2v) {
var x_3ve = 'padding-left',
x_b2 = x_2v.x_b2,
x_3vf = kerio.lib.x_6b.x_2p5,
x_3ul;
if (x_b2) {
x_3ul = (x_b2 * x_3vf) + 'px';
if (!x_370.style) {
x_370.style = x_3ve + ': ' + x_3ul;
}
else {
x_370.style += ' ;' + x_3ve + ': '  + x_3ul;
}
}
},

x_3v7: function (x_2v) {
var x_3vg = x_2v.x_1e,
x_1x = x_2v.x_1x,
x_1e = [],
x_g6,
x_41, x_42,
x_3vh,
x_3uy = x_2v.x_3uy;
if (!x_3vg && !x_1x) {
return undefined;
}
if (x_1x) {
x_1x.x_3ql = true;
x_1x = x_1x.x_2bn || x_1x.x_2o;
x_1x.anchor = '0 0';
x_1x.addClass('formContent');
return x_1x;
}
for(x_41=0, x_42=x_3vg.length; x_41<x_42; x_41++) {
x_3vh = x_3vg[x_41];
x_3vh.x_3uy = x_3uy;
x_g6 = this.x_3vi(x_3vh).x_2o;
x_1e.push(x_g6);
}
return x_1e;
},

x_3vi: function(x_2v) {
var x_2u6,
x_3vj, x_3vk,
x_3vl = (true === this.x_3vm) ? this : this.x_3ux,
x_3vn = x_3vl.x_1j,
x_1vz = x_2v.x_1f || this.x_2eg,
x_1b = kerio.lib,
x_g6,
x_3vo;
if (x_2v.x_1j) {
x_3vj = x_2v.x_1j;
}
else {
x_3vj = x_1b.x_2tl();
}
if (undefined === x_2v.x_3u3 && (typeof x_2v.x_1u != 'number')) {
x_2v.x_3u3 = '0';
}
else if (false === x_2v.x_3u3) {
delete x_2v.x_3u3;
}
x_3vk = x_3vj;
if ('x_7a' == x_1vz) {
x_3vk = x_2v.x_7b;
x_3vj = x_3vk + '_' + x_2v.x_1o;
}
x_2u6 = x_1b.x_2u5(x_1vz);
if (!x_2v.x_br) {
x_2v.x_br = this.x_3uw;
}
x_g6 = new x_2u6(x_3vn + '_' + x_3vj, x_2v);
x_g6.x_2p = this;
if (x_g6.x_3h == x_1b.x_6b.x_2oj) {
x_3vo = x_3vl.x_1e[x_3vk];
if (undefined === x_3vo) { x_3vo = new x_1b.x_3vp(x_3vn + '_' + x_3vk);
this.x_3uz[x_3vk] = x_3vo;
x_3vl.x_1e[x_3vk] = x_3vo;
x_3vl.x_3vq[x_3vk] = x_3vo;
}
x_3vo.x_3vr(x_g6, x_2v);
}
else {
this.x_3uz[x_3vk] = x_g6;
x_3vl.x_1e[x_3vk] = x_g6;
if (x_g6 instanceof kerio.lib.x_32r) {
x_3vl.x_3vq[x_3vk] = x_g6;
}
}
x_g6.x_1c = x_3vl; x_g6.x_9d = x_3vl; var x_2m1 = x_1b.x_6b;
var x_3h = x_g6.x_3h;
if (x_3h != x_2m1.x_2om &&
x_3h != x_2m1.x_2on &&
x_3h != x_2m1.x_2oz &&
x_3h != x_2m1.x_2op) {
if (x_g6 instanceof x_1b.x_32r) {
x_3vl.x_32e(x_g6.x_2o);
}
}
return x_g6;
},

x_3vs: function (x_nv, x_319) {
var x_1e = this.x_3uz,
x_g6,
x_1kp,
x_74;
if (!Ext.isArray(x_319)) {
x_319 = [x_319];
}
for (x_1kp in x_1e) {
x_g6 = x_1e[x_1kp];
if (!x_g6 || 'function' == Ext.type(x_g6)) {
continue;
}
x_74 = x_g6[x_nv];
if ('function' == Ext.type(x_74)) {
x_74.apply(x_g6, x_319);
}
}
},

x_84: function (x_1r) {
var
x_3u9,
x_3ua;
kerio.lib.x_2q0.superclass.x_84.call(this, x_1r);
x_1r = (undefined === x_1r) ? true : x_1r;
x_3u9 = this.x_31();
x_3ua = x_1r || this.x_3u0;
this.x_1kn = x_1r;
if (x_3u9 !== x_3ua) {
this.x_3vs('x_3ub', x_3ua);
}
},

x_3ub: function (x_1r) {
var
x_3u9,
x_3ua;
x_3u9 = this.x_31();
x_3ua = (x_1r || this.x_1kn);
this.x_3u0 = x_1r;
if (x_3u9 !== x_3ua) {
this.x_3vs('x_3ub', x_3ua);
}
},

x_85: function (x_35t) {
var
x_3u9,
x_3ua;
x_35t = (undefined === x_35t) ? true : x_35t;
kerio.lib.x_2q0.superclass.x_85.call(this, x_35t);
x_3u9 = this.x_5p();
x_3ua = (x_35t || this.x_3u1);
this.x_2db = x_35t;
if (x_3u9 !== x_3ua) {
this.x_3vs('x_3uj', x_3ua);
}
},

x_3uj: function (x_35t) {
var
x_3u9,
x_3ua;
x_3ua = (x_35t || this.x_2db);
x_3u9 = this.x_5p();
this.x_3u1 = x_35t;
if (x_3u9 !== x_3ua) {
this.x_3vs('x_3uj', x_3ua);
}
},

x_2k: function (x_2er) {
var
x_2o = this.x_2o,
x_3ug;
kerio.lib.x_2q0.superclass.x_2k.call(this, x_2er);
x_2er = (undefined === x_2er) ? true : x_2er;
x_3ug = this.x_35u;
this.x_35u = x_2er;
if (x_3ug === x_2er) {
return;
}
if (true === x_2er) {
x_2er = this.x_3tz;
}
x_2o.setVisible(this.x_35u);
this.x_3vs('x_3us', x_2er);
this.x_3uh(x_2er);
},

x_3uh: function (x_2er) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
if (this.x_2o.layout.layout) {
this.x_2o.doLayout();
}
},

x_31: kerio.lib.x_32r.prototype.x_31,

x_3u8: kerio.lib.x_32r.prototype.x_3u8,

x_5p: kerio.lib.x_32r.prototype.x_5p,

x_3ui: kerio.lib.x_32r.prototype.x_3ui,

x_2fb: kerio.lib.x_32r.prototype.x_2fb,

x_3uf: kerio.lib.x_32r.prototype.x_3uf,

x_3us: function (x_2er) {
x_2er = (undefined === x_2er) ? true : x_2er;
this.x_3tz = x_2er;
if (true === x_2er) {
x_2er = this.x_35u;
}
this.x_3vs('x_3us', x_2er);
},

x_29: function (x_1j) {
var x_1e = this.x_3uz,
x_3vt = x_1e[x_1j],
x_g6,
x_1kp,
x_2q0 = kerio.lib.x_2q0;
if (!x_3vt) {
for (x_1kp in x_1e) {
x_g6 = x_1e[x_1kp];
if (x_g6 instanceof x_2q0) {
x_3vt = x_g6.x_29(x_1j);
if (x_3vt) {
return x_3vt;
}
}
}
}
else {
return x_3vt;
}
},

x_3va: function (x_2bo) {
var x_3vc = x_2bo.ownerCt.items,
x_3vu = 0,
x_42 = x_3vc.length,
x_41,
x_g6;
for (x_41=0; x_41<x_42; x_41++) {
x_g6 = x_3vc.itemAt(x_41);
if (x_g6._kx) {
if (x_g6._kx.x_2vk.x_1j == this.x_1j) {
continue;
}
if (!x_g6._kx.x_3vv) {
x_g6.on('resize', this.x_3vw, this);
kerio.lib.x_2sf(x_g6, {x_3vv: true});
}
}
if (x_g6.rendered) {
x_3vu += x_g6.getSize().height || 0;
}
else {
x_3vu += x_g6.height || 0;
}
}
x_2bo.anchor = '0 -' + x_3vu;
},

x_3vw: function (x_2bo, x_3vx, x_3vy) {
var x_2o,
x_3vz,
x_3qk;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_3qk = Ext.isIE ? x_2bo.getEl().dom.clientHeight : x_2bo.lastSize.height;
if (x_3vy != x_3qk) {
x_2o = this.x_2o;
this.x_3va(x_2o);
x_2o.anchorSpec = null;
x_3vz = x_2o.ownerCt;
if (x_3vz && x_3vz.layout.layout) {
if (Ext.isIE) {
x_3vz.doLayout.defer(10, x_3vz, [false]);
}
else {
x_3vz.doLayout(false);
}
}
}
},

x_2g: function (x_2n) {
var x_2o = this.x_2o,
x_3w0 = {width: x_2n.x_1u, height: x_2n.x_1v};
if (!x_2o.boxReady) {
x_3w0.width  = (undefined === x_3w0.width ) ? x_2o.initialConfig.width  : x_3w0.width;
x_3w0.height = (undefined === x_3w0.height) ? x_2o.initialConfig.height : x_3w0.height;
}
x_2o.setSize(x_3w0);
}
}); 
kerio.lib.x_2q1 = function (x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2ov;
kerio.lib.x_2q1.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2q1, kerio.lib.x_2q0, {

x_3v0: 'formFieldsetContainer',
x_3ay: Ext.applyIf({
border: true,
height: 'auto' }, kerio.lib.x_2q0.prototype.x_3ay),
x_3v4: Ext.form.FieldSet
}); 
kerio.lib.x_2q2 = function (x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2ow;
kerio.lib.x_2q2.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2q2, kerio.lib.x_2q0, {

x_3v0: 'formColumnContainer',
x_3w1: 'column',

x_3w2: {
x_1f: 'x_1g',
x_1p: ''
},
x_3ay: Ext.applyIf({
height: 'auto',
layout: 'column'
}, kerio.lib.x_2q0.prototype.x_3ay),

x_2ql: function (x_2v) {
var x_5x = x_2v.x_1e,
x_u2,
x_3v2,
x_2o,
x_3w3,
x_41, x_42 = x_5x.length,
x_9m = kerio.lib.x_2rm;
for (x_41=0; x_41<x_42; x_41++) {
x_u2 = x_5x[x_41];
x_3v2 = x_u2.x_1u;
x_3w3 = this.x_3w1 + x_41;
if (!x_u2.x_1e && !x_u2.x_1x) { x_5x[x_41] = x_9m(this.x_3w2);
x_5x[x_41].x_1u = x_3v2;
delete x_u2.x_1u;
x_5x[x_41].x_1l = x_u2.x_1l;
delete x_u2.x_1l;
x_5x[x_41].x_b2 = x_u2.x_b2;
delete x_u2.x_b2;
x_5x[x_41].x_1e = [x_u2];
x_u2 = x_5x[x_41];
}
if (x_3v2 && ('string' == Ext.type(x_3v2)) && (x_3v2.lastIndexOf('%') == x_3v2.length - 1)) {
x_u2.x_3v2 = parseInt(x_3v2, 10) / 100;
delete x_u2.x_1u;
}
if (!x_u2.x_1p) {
x_u2.x_1p = x_3w3;
}
else {
x_u2.x_1p += ' ' + x_3w3;
}
}
x_2o = kerio.lib.x_2q2.superclass.x_2ql.call(this, x_2v);
if (this.x_3v9)	 {
x_2o.on('resize', this.x_3w4, this);
}
return x_2o;
},

x_3us: function (x_2er) {
x_2er = (undefined === x_2er) ? true : x_2er;
kerio.lib.x_2q2.superclass.x_3us.call(this, x_2er);
this.x_3w5();
},

x_2k: function (x_2er) {
x_2er = (undefined === x_2er) ? true : x_2er;
kerio.lib.x_2q2.superclass.x_2k.call(this, x_2er);
this.x_3w5();
},

x_3w5: function () {
var x_2o = this.x_2o,
x_3qk,
x_1e,
x_g6,
x_41,
x_42;
if (!this.x_3v9 || !this.x_2fb() || !this.x_3w6) {
return;
}
this.x_3w6 = false;
x_3qk = x_2o.lastSize.height;
delete x_2o.lastSize.height;
x_1e = x_2o.items;
for (x_41 = 0, x_42 = x_1e.getCount(); x_41 < x_42;x_41++) {
x_g6 = x_1e.get(x_41);
if (x_g6._kx && x_g6._kx.x_3v9) {
delete x_1e.get(x_41).lastSize.height;
}
}
this.x_2g({x_1v: x_3qk});
},

x_3w4: function (x_2bo, x_3vx, x_3vy) {
var x_1e = x_2bo.items,
x_342 = x_1e.getCount(),
x_g6,
x_41,
x_1v,
x_2b = null,
x_3w7 = Ext.form.FieldSet,
x_2q0 = kerio.lib.x_2q0,
x_3w8;
if (false === this.x_2fb()) {
this.x_3w6 = true;
return;
}
for (x_41=0; x_41 < x_342; x_41++) {
x_g6 = x_1e.get(x_41);
x_2b = x_g6._kx ? x_g6._kx.x_2vk : null;
x_3w8 = (x_2b instanceof x_2q0);
if (!x_2b || !x_2b.x_3v9 || !x_3w8 || ('number' != Ext.type(x_3vy))) {
continue;
}
if (Ext.isIE && (x_g6 instanceof x_3w7)) {
x_1v = x_3vy - 10;
}
else {
x_1v = x_3vy;
}
x_2b.x_2g({x_1v: x_1v});
}
}
}); 
kerio.lib.x_2q3 = function (x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2ox;
kerio.lib.x_2q3.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2q3, kerio.lib.x_2q2, {

x_3v0: 'formRowContainer',
x_3w9: {
x_1f: 'x_1i',
x_1l: true,
x_1o: ''
},

x_2ql: function (x_2v) {
var x_5x = x_2v.x_1e,
x_u2,
x_3v2,
x_2o,
x_41, x_42 = x_5x.length,
x_3wa = 0,
x_3wb = 100,
x_9m = kerio.lib.x_2rm,
x_3ul = kerio.lib.x_6b.x_2p5,
x_3wc = null,
x_3wd = (x_5x[0] == '->'),
x_3we = (x_3wd) ? 1 : 0;
if (x_2v.x_23) {
x_u2 = x_5x[(!x_3wd) ? 0 : 1];
x_u2.x_23 = x_2v.x_23;
delete x_2v.x_23;
}
for (x_41 = 0; x_41 < x_42; x_41++) {
x_u2 = x_5x[x_41];
if (('string' == Ext.type(x_u2)) && ('->' == x_u2)) {
x_3wc = x_41;
continue;
}
x_3v2 = x_u2.x_1u;
if ((undefined === x_3v2) && (x_u2.x_1f != 'x_rc')) {
x_3wa++;
}
else if ('string' == Ext.type(x_3v2)) {
if ('auto' != x_3v2) {
x_3wb -= parseInt(x_3v2, 10);
}
}
}
if (null !== x_3wc) {
x_5x[x_3wc] = x_9m(this.x_3w9);
x_5x[x_3wc].x_1u = x_3wb + '%';
x_3wb = 0;
}
for (x_41 = 0; x_41 < x_42; x_41++) {
x_u2 = x_5x[x_41];
x_3v2 = x_u2.x_1u;
if (x_41 > x_3we) {
x_u2.x_1l = (false === x_u2.x_1l) ? false : true;
}
if ((undefined === x_3v2) && (x_u2.x_1f != 'x_rc')) {
x_3v2 = Math.round(x_3wb / x_3wa) + '%';
}
if (x_3v2) {
if (!(('string' == Ext.type(x_3v2)) && (x_3v2.lastIndexOf('%') == x_3v2.length - 1))) {
if (true !== x_u2.x_1l) {
x_3v2 += ((undefined !== x_u2.x_br) ? x_u2.x_br : x_2v.x_br);
x_3v2 += 5; }
if (x_u2.x_b2) {
x_3v2 += (x_u2.x_b2 * x_3ul);
}
}
}
x_5x[x_41] = x_9m(this.x_3w2);
x_5x[x_41].x_1u = x_3v2;
delete x_u2.x_1u;
x_5x[x_41].x_1l = x_u2.x_1l;
delete x_u2.x_1l;
x_5x[x_41].x_b2 = x_u2.x_b2;
delete x_u2.x_b2;
x_5x[x_41].x_1e = [x_u2];
}
x_2o = kerio.lib.x_2q3.superclass.x_2ql.call(this, x_2v);
return x_2o;
}
}); 
Ext.layout.AnchorLayout.prototype.adjustHeightAnchor = function(x_1o, x_3wf){
var x_3vc = x_3wf.ownerCt.items,
x_41, x_42 = x_3vc.length,
x_3ut = null,
x_g6, x_3wg = 0, x_3wh = 0;
for (x_41 = 0; x_41<x_42; x_41++) {
x_g6 = x_3vc.itemAt(x_41);
if (x_g6.rendered) {
if (x_g6 instanceof Ext.form.Field) {
x_3ut = Ext.get(x_g6.getEl().findParent('.x-form-item'));
if (x_3ut) {
x_3wg += x_3ut.getMargins('tb');
}
}
else {
x_3wg += x_g6.getEl().getMargins('tb');
}
}
if (x_g6.anchor && (2 == x_g6.anchor.split(' ').length)) {
x_3wh++;
}
}

x_1o -= (Ext.isIE && x_g6 instanceof Ext.form.FieldSet) ? 10 : 0;
return x_1o - Math.floor(x_3wg / x_3wh);
};

Ext.layout.FormLayout.prototype.adjustWidthAnchor = function(x_1o, x_3wf){
var x_2b = x_3wf._kx ? x_3wf._kx.x_2vk : null;
if (x_3wf.isFormField) {
if (x_2b && x_2b.x_3ts) {
x_1o -= x_2b.x_3ts * kerio.lib.x_6b.x_2p5;
}
if (!x_3wf.hideLabel) {
if (x_2b && x_2b.x_3uw) {
x_1o -= (x_2b.x_3uw + 5); }
else {
x_1o -= this.labelAdjust;
}
}
}
return x_1o;
};

Ext.form.FieldSet.prototype.adjustSize  = function (x_1u, x_1v) {
var x_3wi = (Ext.isGecko || Ext.isSafari),
x_3wj = ('number' == Ext.type(x_1v)),
x_3wk = (this.anchor && (this.anchor.split(' ').length < 2));
if(x_3wi && this.rendered && x_3wk && x_3wj) {
x_1v = x_1v + this.getEl().getPadding('t');
}
return Ext.form.FieldSet.superclass.adjustSize.call(this, x_1u, x_1v);
};


kerio.lib.x_1t = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_1l2;
this.x_3vq = {};
this.x_3wl = {};
x_2v = kerio.lib.x_2r7(x_2v);
kerio.lib.x_1t.superclass.constructor.call(this, x_1j, x_2v);
if (x_2v.x_4c) {
this.x_4c = x_2v.x_4c;
}
};
Ext.extend(kerio.lib.x_1t, kerio.lib.x_2q0,

{
x_3vm: true,
x_3v0: 'form',
x_3v4: Ext.form.FormPanel,
x_3v1: Ext.applyIf({
x_3wm: 'url'
}, kerio.lib.x_2q0.prototype.x_3v1),
x_3ay: Ext.applyIf({
fileUpload: true,
autoScroll: true,
method: 'post',
url: '',
baseParams: ''
}, kerio.lib.x_2q0.prototype.x_3ay),

x_2ql: function(x_2v) {
var x_370,
x_2o;
if (x_2v.x_9t) {
this.x_3u7 = x_2v.x_9t;
this.x_3u5 = true;
}
x_370 = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_3v1);
this.x_3uw = x_370.labelWidth;
Ext.apply(x_370, {
id: this.x_1j,
listeners: {
show: function(x_2bo){
if (x_2bo.layout.layout) {
x_2bo.doLayout();
}
},
resize: function (x_3wn) {
var
x_3wo = (true === x_3wn.initialConfig.autoScroll),
x_2nv;
if (Ext.isSafari && (true === x_3wo)) {
x_2nv = x_3wn.body;
if (x_2nv) {
x_2nv.setStyle('overflow', 'hidden');
x_2nv.setStyle.defer(10, x_2nv, ['overflow', 'auto']);
}
}
}
}
});
x_2v.x_3uy = this;
x_370.items = this.x_3v7(x_2v);
x_2o = new this.x_3v4(x_370);
return x_2o;
}, 
x_i5: function (x_1c, x_g6) {
var x_3wp = (x_g6.x_3h == kerio.lib.x_6b.x_2oj);
if (true === this.x_3wq) {
this.x_3wr = true;
}
else {
if (!x_3wp || (x_3wp && x_g6.x_7d())) {
this.x_3ws();
}
}
},

x_3ws: function () {
if (true === this.x_3u5) {
this.x_3u7.call(this, this);
}
},

x_3wt: function () {
this.x_3wq = true;
},

x_3wu: function () {
this.x_3wq = false;
if (true === this.x_3wr) {
this.x_3wr = false;
this.x_3ws();
}
},

x_29: function (x_1ko) {
var x_3wv = this.x_3wl,
x_3vt = x_3wv[x_1ko];
if (!x_3vt) {
x_3vt = kerio.lib.x_2q0.prototype.x_29.call(this, x_1ko);
if (x_3vt) {
x_3wv[x_1ko] = x_3vt;
}
}
return x_3vt;
},

x_7i: function(x_3ww) {
var x_47 = {}, x_g6,
x_vp = this.x_3vq,
x_2m1 = kerio.lib.x_6b,
x_1kp;
for (x_1kp in x_vp) {
x_g6 = x_vp[x_1kp];
if ('function' == Ext.type(x_g6)) {
continue;
}
if (x_g6 && (!x_g6.x_1kn || x_3ww)) { switch(x_g6.x_3h) {
case x_2m1.x_2om:
break;
case x_2m1.x_2on:
break;
case x_2m1.x_2oo:
break;
case x_2m1.x_2op:
break;
default:
x_47[x_1kp] = x_g6.x_2t();
}
}
}
return x_47;
}, 
x_7k: function(x_47) {
this.x_3wx(x_47, false);
}, 
x_2em: function(x_47) {
this.x_3wx(x_47, true);
}, 
x_3wx: function(x_47, x_3wy) {
var x_vp = this.x_3vq,
x_g6,
x_1kp,
x_3es;
this.x_3wt();
if (x_3wy) {
x_3es = this.x_7i(true);
}
for (x_1kp in x_47) {
if (typeof x_47[x_1kp] != 'function') {
x_g6 = x_vp[x_1kp];
if (x_g6) {
if (typeof x_g6.x_9w == 'function') {
if (!x_3wy || x_3es[x_1kp] !== x_47[x_1kp]) {
x_g6.x_9w(x_47[x_1kp]);
}
}
}
}
}
this.x_3wu();
}, 
x_ez: function(x_3wz, x_3x0) {
var x_10q = {
x_6a: x_3wz,
x_6p: 'post',
x_2e: this.x_xl,
x_2q: this
};
if (x_3x0) {
this.x_3x1 = x_3x0;
}
kerio.lib.x_6t.x_6u(x_10q);
}, 
x_iy: function(x_3wz, x_jk) {
var x_10q = {
x_6a: x_3wz,
x_6p: 'post',
x_2e: x_jk,
x_2q: this,
x_28: this.x_7i()
};
kerio.lib.x_6t.x_6u(x_10q);
}, 
x_xl: function(x_6v, x_6w) {
var x_47;
if (x_6w) {
x_47 = x_6v.x_ac;
this.x_7k(x_47);
if (this.x_3x1 && typeof this.x_3x1 == 'function') {
this.x_3x1(x_47);}
}
}, 
x_2h: function() {
var
x_vp = this.x_3vq,
x_g6;
this.x_3wt();
for (var x_1kp in x_vp) {
x_g6 = x_vp[x_1kp];
if (!x_g6 || 'function' == Ext.type(x_g6)) {
continue;
}
x_g6.x_2h();
}
this.x_3wu();
this.x_3x2();
}, 
x_85: function(x_bh, x_35t) {
if (('boolean' == Ext.type(arguments[0])) || (0 === arguments.length)) {
kerio.lib.x_1t.superclass.x_85.apply(this, arguments);
return;
}
x_35t = (undefined === x_35t) ? true : x_35t;
var x_g6,
x_1e = this.x_1e,
x_41,
x_42;
if (!Ext.isArray(x_bh)) {
x_bh = [x_bh];
}
for (x_41=0, x_42=x_bh.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_bh[x_41]];
if (!x_g6 || 'function' == Ext.type(x_g6)) {
continue;
}
x_g6.x_85(x_35t);
}
}, 
x_7f: function(x_35t) {
kerio.lib.x_1t.superclass.x_85.call(this, x_35t);
}, 
x_170: function(x_1yx) {
kerio.lib.x_1t.superclass.x_84.call(this, x_1yx);
}, 
x_3x3: function(x_2er) {
kerio.lib.x_1t.superclass.x_2k.call(this, x_2er);
}, 
x_84: function(x_bh, x_1yx) {
if (('boolean' == Ext.type(arguments[0])) || (0 === arguments.length)) {
kerio.lib.x_1t.superclass.x_84.apply(this, arguments);
return;
}
x_1yx = (undefined === x_1yx) ? true : x_1yx;
var x_g6,
x_1e = this.x_1e,
x_41,
x_42;
if (!Ext.isArray(x_bh)) {
x_bh = [x_bh];
}
for (x_41=0, x_42=x_bh.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_bh[x_41]];
if (!x_g6 || 'function' == Ext.type(x_g6)) {
continue;
}
x_g6.x_84(x_1yx);
}
}, 
x_2k: function (x_bh, x_1v3) {
if (('boolean' == Ext.type(arguments[0])) || (0 === arguments.length)) {
kerio.lib.x_1t.superclass.x_2k.apply(this, arguments);
return;
}
x_1v3 = (undefined === x_1v3) ? true : x_1v3;
var x_g6,
x_1e = this.x_1e,
x_41,
x_42;
if (!Ext.isArray(x_bh)) {
x_bh = [x_bh];
}
for (x_41=0, x_42=x_bh.length; x_41 < x_42; x_41++) {
x_g6 = x_1e[x_bh[x_41]];
if (!x_g6 || 'function' == Ext.type(x_g6)) {
continue;
}
x_g6.x_2k(x_1v3);
}
},

x_3x2: function () {
var x_1e = this.x_1e;
var x_g6;
for (var x_1kp in x_1e) {
x_g6 = x_1e[x_1kp];
if (x_g6.x_1g4) {
x_g6.x_1g4(false);
}
}
},

x_1d3: function(x_ax) {
var x_g6 = this.x_1e[x_ax];
if (x_g6) {
x_g6.x_1d3();
return true;
}
return false;
}, 
x_4c: function(x_4d, x_4e) {
kerio.lib.x_nq('Internal error: Override x_4c method in object with ID ' + this.x_1j
+ ' to make this object behaving as an observer', 'form.js');
}, 
x_3x4: function () {
var x_3x5 = this.x_3x6,
x_1e = this.x_1e,
x_g6, x_1kp;
if (!x_3x5) { x_3x5 = {};
this.x_3x6 = x_3x5;
for (x_1kp in x_1e) {
x_g6 = x_1e[x_1kp];
if (x_g6 instanceof kerio.lib.x_2pl) {
x_3x5[x_1kp] = x_g6;
x_g6.x_lk();
}
}
}
else { for (x_1kp in x_1e) {
x_g6 = x_1e[x_1kp];
if ('object' !== Ext.type(x_g6)) {
continue;
}
x_g6.x_lk();
}
}
}
}); 
Ext.form.FormPanel.prototype.onEnable = function () {
Ext.form.FormPanel.superclass.onEnable.call(this);
};
Ext.form.FormPanel.prototype.onDisable = function () {
Ext.form.FormPanel.superclass.onDisable.call(this);
};


kerio.lib.x_q2 = function(x_1j, x_p6) {
this.x_1j = x_1j;
this.x_p6 = []; for (var x_41 = 0; x_41 < x_p6.length; x_41++) {
var x_1c = x_p6[x_41];
this.x_p6.push(x_1c);
x_1c.x_q3 = this;
}
this.x_2vk = this;
};
kerio.lib.x_q2.prototype = {

x_55: function(x_p6) {
for (var x_41 = 0; x_41 < x_p6.length; x_41++) {
var x_1c = x_p6[x_41];
this.x_p6.push(x_1c);
x_1c.x_q3 = this;
}
}, 
x_7i: function(x_3ww) {
var x_47 = {};
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
Ext.apply(x_47, this.x_p6[x_41].x_7i(x_3ww));
}
return x_47;
}, 
x_7k: function(x_47) {
this.x_3wx(x_47, false);
}, 
x_2em: function(x_47) {
this.x_3wx(x_47, true);
}, 
x_3wx: function(x_47, x_3wy) {
var x_p6 = this.x_p6;
if ('string' == typeof(x_47)) {
x_47 = Ext.util.JSON.decode(x_47);
}
for (var x_41 = 0, x_42 = x_p6.length; x_41 < x_42; x_41++) {
if (x_3wy) {
x_p6[x_41].x_2em(x_47);
}
else {
x_p6[x_41].x_7k(x_47);
}
}
}, 
x_ez: function(x_3wz, x_3x0) {
var x_10q = {
x_6a: x_3wz,
x_6p: 'post',
x_2e: this.x_xl,
x_2q: this
};
if (x_3x0) {
this.x_3x1 = x_3x0;
}
kerio.lib.x_6t.x_6u(x_10q);
}, 
x_xl: function(x_6v, x_6w) {
var x_47 = x_6v.x_ac;
if (x_6w) {
this.x_7k(x_47);
if (this.x_3x1 && typeof this.x_3x1 == 'function') {
this.x_3x1(x_47);}
}
}, 
x_2h: function() {
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_2h();
}
}, 
x_iy: function(x_3wz, x_jk) {
var x_10q = {
x_6a: x_3wz,
x_6p: 'post',
x_2e: x_jk,
x_2q: this,
x_28: this.x_7i()
};
kerio.lib.x_6t.x_6u(x_10q);
}, 
x_84: function(x_bh, x_1yx) {
x_1yx = (undefined === x_1yx) ? true : x_1yx;
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_84(x_bh, x_1yx);
}
},

x_2k: function(x_bh, x_1v3) {
x_1v3 = (undefined === x_1v3) ? true : x_1v3;
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_2k(x_bh, x_1v3);
}
},

x_85: function(x_bh, x_35t) {
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_85(x_bh, x_35t);
}
},

x_2r: function(x_bh) {
this.x_2k(x_bh);
},

x_1v3: function(x_bh, x_1v3) {
this.x_2k(x_bh, x_1v3);
},

x_1r: function(x_bh) {
this.x_84(x_bh);
},

x_bg: function(x_bh, x_bg) {
x_bg = (undefined === x_bg) ? true : x_bg;
this.x_84(x_bh, !x_bg);
},

x_170: function(x_1r) {
var x_41, x_42;
x_1r = (false !== x_1r);
for (x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_170(x_1r);
}
},

x_7f: function(x_3x7) {
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
this.x_p6[x_41].x_7f(x_3x7);
}
},

x_1d3: function(x_ax) {
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
if (this.x_p6[x_41].x_1d3(x_ax)) {
return true;
}
}
},

x_3x8: function(x_1j) {
for (var x_41 = 0, x_42 = this.x_p6.length; x_41 < x_42; x_41++) {
var x_1c = this.x_p6[x_41];
if (x_1c.x_1j == x_1j) {
return x_1c;
}
}
return false;
},

x_32m: function(x_1g4) {
var
x_3x9 = this.x_p6,
x_42     = x_3x9.length,
x_32o = new kerio.lib.x_32p(),
x_41,
x_1c;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_1c = x_3x9[x_41];
if (!x_1c) {
continue; }
if (x_1c.x_32m) { x_32o.x_55(x_1c.x_32m(x_1g4), x_32o.x_32q); }
} return x_32o;
},

x_o4: function(x_bf) {
var
x_2t2 = (false !== x_bf), x_s8;
x_s8 = this.x_32m(x_2t2);
return x_s8.x_o4(x_2t2);
}
};


kerio.lib.x_2pq = function(x_1j, x_2v)
{
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2oj;
this.x_3xa = x_2v.x_1o;
kerio.lib.x_2pq.superclass.constructor.call(this, x_1j, x_2v);

if (Ext.isSafari) {
this.x_2o.on('render', this.x_3xb, this);
}
};
Ext.extend(kerio.lib.x_2pq, kerio.lib.x_32r,

{

x_3ty: false,

x_36n: Ext.apply({}, kerio.lib.x_32r.prototype.x_36n, {
x_1s: 'boxLabel',
x_7d: 'checked',
x_7b: 'name'
}),

x_3ay: Ext.apply({}, kerio.lib.x_32r.prototype.x_3ay, {
checked: false
}),

x_2ql: function(x_2v) {
delete this.x_36n.x_a6; var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
this.x_1s = x_2v.x_1s;
var x_2o = new kerio.lib.x_3xc(x_3ez);
return x_2o;
}, 
x_2w7: function(x_2v) {
kerio.lib.x_2pq.superclass.x_2w7.call(this, x_2v);
this.x_2o.on('check', this.x_i5, this);
},

x_3xd: function(x_si) {
if (this.x_3xe) {
this.x_3xe.x_3xd(this, x_si);
}
else {
this.x_2o.setValue(x_si);
}
},

x_7d: function() {
return this.x_2o.checked;
},

x_3xf: function(x_1s, x_3xg){
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_3ue = this.x_2o.wrap.dom.getElementsByTagName('label')[0];
var x_1fr = '';
if (x_3xg && this.x_1s) {
x_1fr = this.x_1s;
}
x_3ue.innerHTML = x_1fr + kerio.lib.x_qc(x_1s);
},

x_2t: function() {
return this.x_2o.value;
},

x_3xh: function() {
return this.x_3xe ? this.x_3xe.x_3xi : this.x_2o.value;
}, 
x_3un: function () {
return this.x_2o.initialConfig.checked;
},

x_3xj: function(x_1j, x_2v) {
var x_3xk = x_2v.x_7b;
if (!x_3xk) {
return;
}
var x_3vo = kerio.lib.x_1t6(x_3xk);
if (!x_3vo) {
x_3vo = new kerio.lib.x_3vp(x_3xk);
}
x_3vo.x_3vr(this, x_2v);
this.x_3xe = x_3vo;
}, 
x_2d1: function() {
return this.x_3xe;
}, 
x_2h: function () {
this.x_9w(this.x_3un());
},
x_3xb: function(x_2o){
var x_1s = x_2o.wrap.down('label.x-form-cb-label');
if (x_1s && (x_1s.dom.htmlFor == x_2o.getEl().dom.id)) {
x_1s.on('click', x_2o.focus, x_2o);
}
},

x_3u6: function() {
var x_1o;
if (!this.x_3u7) {
return;
}
if (this.x_3xe) {
x_1o = this.x_3xe.x_2t();
}
else {
x_1o = this.x_2t();
}
this.x_3u7.call(this, this.x_9d || null, this, x_1o);
},

x_3n6: function () {
var x_3vo = this.x_2d1(),
x_s8 = false;
if (x_3vo) {
x_s8 = (this.x_3n4 !== x_3vo.x_2t());
}
else {
x_s8 = kerio.lib.x_2pq.superclass.x_3n6.call(this);
}
return x_s8;
},

x_3to: function (x_1o) {
var x_3vo = this.x_2d1();
if (x_3vo) {
this.x_3n4 = x_3vo.x_2t();
}
else {
kerio.lib.x_2pq.superclass.x_3to.call(this);
}
}
}); 
kerio.lib.x_3xc = function(x_2v) {
kerio.lib.x_3xc.superclass.constructor.call(this, x_2v);
};
Ext.extend(kerio.lib.x_3xc, Ext.form.Radio,

{
setValue: function(v){
this.checked = (v === true || v === 'true' || v == '1' || String(v).toLowerCase() == 'on');
if(this.el && this.el.dom){
this.el.dom.checked = this.checked;
this.el.dom.defaultChecked = this.checked;
}
},
onClick: function() {
if(this.el.dom.checked != this.checked){
this._kx.x_2vk.x_3xe.x_3xd(this._kx.x_2vk, true);
}
}
});  

kerio.lib.x_ar = function(x_1j, x_2v)
{
this.x_3h = kerio.lib.x_6b.x_2oh;
kerio.lib.x_ar.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_ar, kerio.lib.x_2pq,

{

x_36n: Ext.apply({}, kerio.lib.x_2pq.prototype.x_36n, {
x_3xl: 'x_3xl'
}),

x_3ay: Ext.apply({}, kerio.lib.x_2pq.prototype.x_3ay, {
}),

x_2ql: function(x_2v) {
var x_3xm = (undefined === x_2v.x_3xm) ? true : x_2v.x_3xm;
var x_3xl = (undefined === x_2v.x_3xl) ? false : x_2v.x_3xl;
var x_3ez = kerio.lib.x_2sl(x_2v, null, this.x_36n);
var x_2o;
if (x_3xm && !x_3xl) {
x_2o = new Ext.form.Checkbox(x_3ez);
}
else {
x_2o = new kerio.lib.x_3xn(x_3ez);
}
return x_2o;
}, x_3xo: function(x_3xp) {
this.x_2o.x_3xo(x_3xp);
},

x_2t: function() {
return this.x_7d();
},

x_1fw: function() {
return this.x_3xa;
},

x_9w: function(x_1o) {
this.x_2o.setValue(x_1o);
}
}); 
kerio.lib.x_3xn = function(x_2v) {
Ext.form.x_3xq.superclass.constructor.call(this, x_2v);
this.addEvents({
check : true
});
this.x_2e3 = 0;
this.x_3xr = 1;
this.onFocus = function(){}; this.x_3xs = this.boxLabel;
this.x_3xl = true;
this.hiddenName = this.name;
this.x_2er = true;
};
Ext.extend(kerio.lib.x_3xn, Ext.form.Field, {
defaultAutoCreate : { tag: "div", style: 'float: left', cls: ''},

initEvents : function(){
this.el.on('click', this.x_3f5,  this);
this.originalValue = this.getValue();
},

onRender: function(x_3xt, x_35m) {
if (!this.el) {
this.el = x_3xt.createChild(this.defaultAutoCreate);
this.el.dom.id = this.id;
kerio.lib.x_3xn.superclass.onRender.call(this, x_3xt, x_35m);
}
var x_2v = {tag: 'input', type: 'checkbox', style: 'outline:0px; position:absolute; top: -1000px; left: -1000px', name: this.name + '_hidden', value: this.value};
var x_3xu = this.el.createChild(x_2v);
var x_3ue;
x_2v = {tag: 'div', id: Ext.id(), cls: 'x-form-three-state-checkbox-img', style: 'font-size:8px;'};
var x_3xv = this.el.createChild(x_2v);
x_2v = {tag: 'input', type: 'hidden', name: this.name, id: Ext.id(), value: this.x_si};
var x_3xw = this.el.createChild(x_2v);
this.wrap = this.el.wrap({cls: 'x-form-check-wrap x-form-three-state-checkbox'});
if(this.x_3xs){
x_3ue = this.wrap.createChild({tag: 'label', htmlFor: x_3xv.id, cls: 'x-form-cb-label', html: this.x_3xs});
if (Ext.isGecko) {
x_3ue.on('click', this.x_3f5,  this);
}
}
this.x_3xv = x_3xv;
this.x_3xu = x_3xu;
this.x_3xw = x_3xw;
x_3xu.on('focus', this.x_3lc, this);
x_3xu.on('blur', this.x_3up, this);
this.x_si = this.checked;
this.setValue(this.x_si);
}, 
setValue: function(x_1o) {
if (true === x_1o || 'true' === x_1o || '1' == x_1o) {
this.x_si = true;
}
else if ('part' == x_1o || '-1' == x_1o){
this.x_si = 'part';
this.x_3xl = true;
}
else{
this.x_si = false;
}
var x_35o = this.x_3xv;
if(x_35o){
if (true === this.x_si){
x_35o.removeClass('x-form-three-state-checkbox-unchecked');
x_35o.removeClass('x-form-three-state-checkbox-partchecked');
x_35o.addClass('x-form-three-state-checkbox-checked');
this.x_2e3 = 0;
this.x_3xr = 1;
this.x_3xw.dom.value = 'on';
this.x_3xw.dom.disabled = false;
}
else if(false === this.x_si) {
x_35o.removeClass('x-form-three-state-checkbox-checked');
x_35o.removeClass('x-form-three-state-checkbox-partchecked');
x_35o.addClass('x-form-three-state-checkbox-unchecked');
this.x_2e3 = 1;
this.x_3xr = this.x_3xl ? 2 : 0;
this.x_3xw.dom.value = '';
this.x_3xw.dom.disabled = true;
}
else if('part' == this.x_si) {
x_35o.removeClass('x-form-three-state-checkbox-unchecked');
x_35o.removeClass('x-form-three-state-checkbox-checked');
x_35o.addClass('x-form-three-state-checkbox-partchecked');
this.x_2e3 = 2;
this.x_3xr = 0;
this.x_3xw.dom.value = 'part';
this.x_3xw.dom.disabled = false;
}
this.value = this.x_si;
this.fireEvent("check", this, this.x_si);
}
},

getValue: function() {
return this.value;
},

x_3f5: function(x_96) {
if (this.disabled) {
return;
}
this.x_3xu.dom.focus();
var x_1o;
switch(this.x_3xr) {
case 0:
x_1o = true;
break;
case 2:
x_1o = 'part';
break;
default:
x_1o = false;
break;
}
this.setValue(x_1o);
},

x_3xo: function(x_3xp) {
var x_2e3 = (undefined === x_3xp) ? true : x_3xp;
this.x_3xl = x_2e3;
},

onHide: function(){
var x_35o = this.el.findParent('div.x-form-element');
x_35o.style.display = 'none';
x_35o.style.visibility = 'hidden';
this.x_2er = false;
},

onShow : function(){
var x_35o = this.el.findParent('div.x-form-element');
x_35o.style.display = '';
x_35o.style.visibility = 'visible';
this.x_2er = true;
},

isVisible: function() {
return this.x_2er;
},

onDisable : function(){
var x_35o = this.el.findParent('div.x-form-element', 5, true);
x_35o.addClass(this.disabledClass);
this.x_3xu.dom.disabled = true;
},

onEnable : function(){
var x_35o = this.el.findParent('div.x-form-element', 5, true);
x_35o.removeClass(this.disabledClass);
this.x_3xu.dom.disabled = false;
},

x_3lc: function() {
var x_35o = this.el.findParent('div.x-form-field', 5, true);
x_35o.addClass('x-form-three-state-checkbox-focus');
},

x_3up: function() {
var x_35o = this.el.findParent('div.x-form-field', 5, true);
x_35o.removeClass('x-form-three-state-checkbox-focus');
}
});


kerio.lib.x_3vp = function(x_1j) {
this.x_3h = kerio.lib.x_6b.x_2oq;
this.x_1j = x_1j;
this.x_3uz = [];
kerio.lib.x_2qj(this, x_1j);
};
kerio.lib.x_3vp.prototype = {
x_1kn: false,
x_2db: false,
x_3xa: null,
x_3u0: false,
x_3u1: false,
x_3tz: true,

x_3vr: function(x_7a, x_2v) {
this.x_3uz.push(x_7a);
x_7a.x_3xe = this;
x_7a.x_3to();
var x_3xx = true,
x_3xy = true,
x_3xz = true;
for (var x_41=0, x_42=this.x_3uz.length; x_41<x_42; x_41++) {
if (!this.x_3uz[x_41].x_31()) {
x_3xx = false;
}
if (!this.x_3uz[x_41].x_5p()) {
x_3xy = false;
}
if (!this.x_3uz[x_41].x_2fb()) {
x_3xz = false;
}
}
this.x_1kn = x_3xx;
this.x_2db = x_3xy;
this.x_35u =  x_3xz;
if (x_2v.x_7d) {
this.x_3xi = x_2v.x_1o;
this.x_3xa = x_2v.x_1o;
}
}, 
x_3xd: function(x_3y0, x_si) {
var x_7a,
x_3y1,
x_7d,
x_1e = this.x_3uz,
x_41, x_42 = x_1e.length;
this.x_3xa = (true === x_si) ? x_3y0.x_2t() : null;
for (x_41 = 0; x_41 < x_42; x_41++) {
x_7a = x_1e[x_41];
x_7d = (x_7a == x_3y0) ? x_si : false;
x_3y1 = x_7a.x_2o;
x_3y1.setValue(x_7d);
}
for (x_41=0; x_41 < x_42; x_41++) {
x_7a = x_1e[x_41];
x_7a.x_i5.call(x_7a, x_7a.x_2o);
}
},

x_3y2: function () {
var x_1e = this.x_3uz;
var x_7a;
for (var x_41 = 0, x_42 = x_1e.length; x_41<x_42; x_41++) {
x_7a = x_1e[x_41];
if (x_7a.x_7d()) {
this.x_3xd(x_7a, false);
return;
}
}
},

x_9w: function (x_1o) {
var x_1e = this.x_3uz,
x_7a;
if (undefined === x_1o) {
return;
}
if ((null === x_1o) || ('' === x_1o)) {
this.x_3y2();
return;
}
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_7a = x_1e[x_41];
if (x_1o == x_7a.x_3xa) {
this.x_3xd(x_7a, true);
return;
}
}
},

x_2t: function () {
return this.x_3xa;
},

x_3un: function () {
return ((undefined !== this.x_3xi) ? this.x_3xi : null);
},

x_2h: function () {
this.x_9w(this.x_3un());
},

x_84: kerio.lib.x_32r.prototype.x_84,

x_3ub: kerio.lib.x_32r.prototype.x_3ub,

x_31: kerio.lib.x_32r.prototype.x_31,

x_3u8: kerio.lib.x_32r.prototype.x_3u8,

x_3nj: function(x_1yx) {
x_1yx = (undefined === x_1yx) ? true : x_1yx;
var x_1e = this.x_3uz;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_1e[x_41].x_84(x_1yx);
}
},

x_85: kerio.lib.x_32r.prototype.x_85,

x_3uj: kerio.lib.x_32r.prototype.x_3uj,

x_3ui: kerio.lib.x_32r.prototype.x_3ui,

x_5p: kerio.lib.x_32r.prototype.x_5p,

x_3nm: function (x_35t) {
x_35t = (undefined === x_35t) ? true : x_35t;
var x_1e = this.x_3uz;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_1e[x_41].x_85(x_35t);
}
},

x_2k: function (x_1v3) {
x_1v3 = (undefined === x_1v3) ? true : x_1v3;
var x_1e = this.x_3uz;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_1e[x_41].x_2k(x_1v3);
}
this.x_35u = x_1v3;
},

x_3us:  kerio.lib.x_32r.prototype.x_3us,

x_2fb: kerio.lib.x_32r.prototype.x_2fb,

x_3uf: kerio.lib.x_32r.prototype.x_3uf,

x_yw: function (x_3y3, x_1yx) {
x_1yx = (undefined === x_1yx) ? true : x_1yx;
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_84(x_1yx);
}
},

x_3y5: function (x_3y3, x_1v3) {
x_1v3 = (undefined === x_1v3) ? true : x_1v3;
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_2k(x_1v3);
}
},

x_3y6: function (x_3y3, x_35t) {
x_35t = (undefined === x_35t) ? true : x_35t;
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_85(x_35t);
}
},

x_3y7: function (x_3y3, x_1s, x_3xg) {
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_3xf(x_1s, x_3xg);
}
},

x_3y4: function (x_3y3) {
var x_1e = this.x_3uz;
var x_7a;
for (var x_41 = 0, x_42 = x_1e.length; x_41 < x_42; x_41++) {
x_7a = x_1e[x_41];
if (x_3y3 == x_7a.x_2t()) {
return x_7a;
}
}
return false;
},

x_3y8: function (x_3y3, x_1p) {
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_se(x_1p);
}
},

x_3y9: function (x_3y3, x_1p) {
var x_7a = this.x_3y4(x_3y3);
if (x_7a) {
x_7a.x_sd(x_1p);
}
}
};  

kerio.lib.x_9b = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2ol;
this.x_3ya(x_2v); kerio.lib.x_9b.superclass.constructor.call(this, x_1j, x_2v);
this.x_3yb = this.x_3n4;
this.x_3yc();
this.x_27({ x_3yd: true === x_2v.x_ge });
};

Ext.extend(kerio.lib.x_9b,  kerio.lib.x_32r,

{

x_3yb: null,

x_36n: Ext.apply({}, kerio.lib.x_32r.prototype.x_36n, {
x_1k0: 'emptyText',
x_93: 'maxLength',
x_3ye: 'invalidText'
}),

x_3ay: Ext.apply({}, kerio.lib.x_32r.prototype.x_3ay, {
value: '',
preventMark: true }),

x_3ya: function (x_2v) {
if (-1 === x_2v.x_93) {
delete x_2v.x_93;
}
else {
x_2v.x_93 = x_2v.x_93 || kerio.lib.x_6b.x_2p6;
this.x_3yf = x_2v.x_93;
}
},

x_3yg: function (x_370, x_3yh) {
x_370.allowBlank = (!x_3yh || undefined === x_3yh.x_b7) ?
true : x_3yh.x_b7;
},

x_2ql: function(x_2v) {
var
x_3ez,
x_2o;
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
if (true === x_2v.x_1jz) {
x_3ez.inputType = 'password';
}
else if (true === x_2v.x_3yi) {
x_3ez.inputType = 'hidden';
}
else if (true === x_2v.x_3yj) {
x_3ez.inputType = 'file';
}
this.x_3yg(x_3ez, x_2v.x_b6);
x_2o = new Ext.form.TextField(x_3ez);
if (true === x_2v.x_3yj) {
x_2o.onFocus = Ext.emptyFn;
}
return x_2o;
}, 
x_3yc: function() {
var x_2o = this.x_2o;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_2o.on('blur', this.x_3yk, this);
x_2o.getEl().on((Ext.isIE ? 'keydown' : 'keypress'), this.x_3yl, this);
},

x_3yk: function () {
var x_2o = this.x_2o;
if (x_2o.preventMark && this.x_3ym()) {
x_2o.un('blur', this.x_3yk, this);
x_2o.preventMark = false;
this.x_3yn();
}
},

x_3yl: function (x_96) {
var x_2o = this.x_2o;
if (Ext.EventObject.TAB === x_96.getKey()) {
return;
}
x_2o.getEl().un((Ext.isIE ? 'keydown' : 'keypress'), this.x_3yl, this);
if (x_2o.preventMark) {
x_2o.preventMark = false;
}
},

x_9w: function(x_1o) {
if (this.x_3yf) {
if (typeof x_1o != 'string') {
x_1o += '';
}
x_1o = x_1o.substring(0, this.x_3yf);
}
this.x_3yb = x_1o;
this.x_2o.setValue(x_1o);
this.x_i5(this.x_2o);
},

x_og: function(x_1k0) {
this.x_2o.emptyText = x_1k0;
this.x_2o.on('focus', this.x_2o.preFocus, this.x_2o);
if(this.x_2o.emptyText){
this.x_2o.on('blur', this.x_2o.postBlur, this.x_2o);
this.x_2o.applyEmptyText();
}
},

x_ok: function() {
return this.x_2o.emptyText;
},

x_3yo: function() {
this.x_2o.applyEmptyText();
},

x_3yp: function(x_1o) {
this.x_2o.setRawValue(x_1o);
},

x_o4: function(x_1g4) {
var
x_o4,
x_2o = this.x_2o;
if(!this.x_2fb() || this.x_31()) {
return true;
}
x_1g4 = (false !== x_1g4);
x_o4 = x_2o.isValid(!x_1g4);

if (!x_2o.rendered && !x_o4 && x_1g4) {
this.x_3yq();
}
return x_o4;
},

x_3yr: function(x_3ys, x_3yt) {
this.x_2o.regex = x_3ys;
if (x_3yt) {
this.x_2o.regexText = x_3yt;
}
},

x_3yu: function(x_nv, x_3ye) {
var x_74 = kerio.lib.x_10o.x_2ej(x_nv);
var x_2o = this.x_2o;
kerio.lib.x_2sf(x_2o, {
x_3yv: x_74,
x_3yw: x_3ye
});
x_2o.validator = function(x_1o) {
var x_3yx = this._kx.x_3yv.call(kerio.lib.x_10o, x_1o);
if (true !== x_3yx) {
return this._kx.x_3yw || '';
}
return true;
};
},

x_3ym: function() {
return (this.x_3yb !== this.x_2t());
},

x_2w7: function(x_2v) {
var x_2o = this.x_2o;
kerio.lib.x_9b.superclass.x_2w7.call(this, x_2v);
if (this.x_3yf) {
x_2o.on('render', function(){this.el.on('focus', this._kx.x_2vk.x_3yy, this._kx.x_2vk);}, x_2o);
x_2o.on('render', function(){this.el.on('blur', this._kx.x_2vk.x_3yy, this._kx.x_2vk);}, x_2o);
}
if (x_2v.x_b6) {
if (x_2v.x_b6.x_2f6) {
this.x_3yr(x_2v.x_b6.x_2f6, x_2v.x_b6.x_3ye);
}
if (x_2v.x_b6.x_nv) {
this.x_3yu(x_2v.x_b6.x_nv,  x_2v.x_b6.x_3ye);
}
}
x_2o.on('render', this.x_3yz, this);
x_2o.on('blur', this.x_3z0, this);
if (x_2v.x_2k9) {
this.x_2k9 = x_2v.x_2k9;
x_2o.on('render', function(){this.x_2o.el.on('keyup', this.x_3z1, this);}, this);
}
if (x_2v.x_94) {
this.x_94 = x_2v.x_94;
x_2o.on('render', function() {
var x_36v = (Ext.isIE ? 'keydown' : 'keypress');
this.x_2o.el.on(x_36v, this.x_3z2, this);
}, this);
}
if (x_2v.x_3z3) {
this.x_3z3 = x_2v.x_3z3;
x_2o.on('render', function(){this.x_2o.el.on('keydown', this.x_3z4, this);}, this);
}
if (Ext.isIE) { x_2o.on('render', function(){this.x_2o.el.dom.attachEvent('onkeydown', function(){return !(window.event.keyCode == 27);});}, this);
}
},

x_3yz: function () {
var x_35o = this.x_2o.getEl();
x_35o.on('keyup', this.x_i5, this);
x_35o.on('blur', this.x_i5, this);
x_35o.on('contextmenu', this.x_3z5, this);
x_35o.on('mouseout', this.x_3z6, this);
if (this.x_3yd) {
x_35o.on('keypress', this.x_3z7, this);
}
},

x_3z1: function(x_4e) {
this.x_2k9(this.x_9d || null, this, x_4e);
},

x_3z5: function(x_4e) {
var x_3z8 = this;
this.x_3h9 = this.x_2o.getRawValue();
this.x_3z0();
this.x_3z9 = setInterval(function() {
x_3z8.x_3za.call(x_3z8, x_4e);
}, 200);
},

x_3z6: function(x_96) {
var x_2o = this.x_2o;
if (!this.x_3n6()) {
return;
}
if (x_2o.hasFocus) {
x_2o.preventMark = false;
this.x_3yn();
this.x_i5(x_2o);
}
},

x_3za: function(x_4e) {
var x_2o;
if (this.x_3h9 != this.x_2o.getRawValue()) {
x_2o = this.x_2o;
this.x_3z0();
x_2o.preventMark = false;
this.x_3yn();
this.x_i5(x_2o);
}
},

x_3z0: function(x_1f) {
if (this.x_3z9) {
clearInterval(this.x_3z9);
}
},

x_3z2: function(x_4e) {
this.x_94(this.x_9d || null, this, x_4e);
},

x_3z4: function(x_4e) {
this.x_3z3(this.x_9d || null, this, x_4e);
},

x_3yy: function(x_96) {
if (this.x_2o.rendered) {
if (this.x_2o.emptyText && Ext.isSafari) {
this.x_2o.preFocus();
}
if ('focus' == x_96.type) {
this.x_2o.el.dom.maxLength = this.x_3yf;
}
else {
this.x_2o.el.dom.removeAttribute('maxLength');
}
}
},

x_1g4: function(x_3zb, x_3zc) {
kerio.lib.x_2sf(this.x_2o, {x_3zd: x_3zb});
this.x_3yq(x_3zb, x_3zc);
},

x_3yq: function(x_3zb, x_3zc) {
var
x_2o = this.x_2o,
x_3ze;
if (this.x_317(arguments.callee, arguments)) {
return;
}
x_3zb = (undefined === x_3zb) ? true : x_3zb;
x_3ze = x_2o.preventMark;

x_2o.preventMark = false;
if (x_3zb) {
x_2o.markInvalid(x_3zc);
}
else {
x_2o.clearInvalid();
}
x_2o.preventMark = x_3ze; },

x_3zf: function(x_gc) {
var x_2o = this.x_2o;
x_2o._kx.x_3yw = x_gc;
x_2o.invalidText = x_gc;
if (x_2o.rendered && (x_2o.getEl().dom.qtip && ('' !== x_2o.getEl().dom.qtip))) {
x_2o.getEl().dom.qtip = x_gc;
}
},

x_3nj: function (x_1yx) {
var x_2o = this.x_2o;
x_1yx = (false !== x_1yx);
kerio.lib.x_9b.superclass.x_3nj.call(this, x_1yx);

if (true === x_2o.rendered) {
if (x_1yx) {
this.x_3yq(false);
}
else {
this.x_3yn();
}
}
},

x_3yn: function () {
var x_2o = this.x_2o;
x_2o.validateValue(x_2o.processValue(x_2o.getRawValue()));
},

x_2h: function () {
var x_2o = this.x_2o;
kerio.lib.x_9b.superclass.x_2h.call(this);
x_2o.preventMark = false;
x_2o.clearInvalid();
x_2o.preventMark = true;
this.x_3yc();
},
x_3z7: function(x_96) {
var
x_2u9 = x_96.charCode,
x_3zg = String.fromCharCode(x_2u9),
x_3zh = kerio.lib.x_2u7,
x_ut = this.x_2t(),
x_2am = x_96.getTarget(),
x_3zi = x_2am.selectionStart,
x_3zj = x_2am.selectionEnd,
x_3zk,
x_3zl,
x_3zm;
if (0 === x_2u9) {
return; }
x_3zk = x_3zh(x_ut);
x_3zl = x_3zh( x_ut.slice(x_3zi, x_3zj) );
x_3zm = x_3zk + x_3zh(x_3zg) - x_3zl;
if (this.x_3yf < x_3zm) {
x_96.stopEvent();
}
},

x_i5: function (x_2o) {
var
x_uv = this.x_2t(),
x_93 = this.x_3yf,
x_3zh = kerio.lib.x_2u7;
if (this.x_3yd && x_93 < x_3zh(x_uv)) {
this.x_9w(kerio.lib.x_2ub(x_uv, 0, x_93));
}
kerio.lib.x_9b.superclass.x_i5.call(this, x_2o);
}
});

Ext.form.TextField.prototype._kxp = {
x_1lf: Ext.form.TextField.prototype.validate,
x_3zn: Ext.form.TextField.prototype.preFocus
};

Ext.form.TextField.prototype.validate = function() {
if (this._kx && (true !== this._kx.x_3zd)) {
this._kxp.x_1lf.call(this);
}
}; 
Ext.form.TextField.prototype.preFocus = function () {
if (!this._kx.x_2vk.x_5p()) {
this._kxp.x_3zn.call(this);
}
};


kerio.lib.x_x1 = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2oi;
kerio.lib.x_x1.superclass.constructor.call(this, x_1j, x_2v);
};

Ext.extend(kerio.lib.x_x1, kerio.lib.x_9b,

{

x_36n: Ext.apply({}, kerio.lib.x_9b.prototype.x_36n, {
x_3zo: 'allowDecimals',
x_3zp: 'decimalPrecision',
x_vq: 'allowNegative',
x_b5: 'maxValue',
x_r9: 'minValue'
}),

x_3ay: Ext.apply({}, kerio.lib.x_9b.prototype.x_3ay, {
allowNegative: false,
allowDecimals: false
}),

x_2ql: function(x_2v) {
var
x_3ez,
x_2o;
if (undefined !== x_2v.x_1o) {
x_2v.x_1o = String(x_2v.x_1o);
}
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
this.x_3yg(x_3ez, x_2v.x_b6);
x_2o = new Ext.form.NumberField(x_3ez);
return x_2o;
} }); 

kerio.lib.x_3zq = function(x_1j, x_2v) {
kerio.lib.x_3zq.superclass.constructor.call(this, x_1j, x_2v);
}; 
Ext.extend(kerio.lib.x_3zq, kerio.lib.x_9b,

{
});
if (Ext.isIE7) {
kerio.lib.x_3zq.prototype.x_b2 = function (x_3ul) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
kerio.lib.x_3zq.superclass.x_b2.call(this, x_3ul);
this.x_2o.getEl().setStyle('margin-left', -(x_3ul * kerio.lib.x_6b.x_2p5) + 'px');
};
}


kerio.lib.x_2kb = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2p1;
this.x_3zr = {};
kerio.lib.x_2kb.superclass.constructor.call(this, x_1j, x_2v);
this.x_2o.on('render', this.x_3zs, this);
}; 
Ext.extend(kerio.lib.x_2kb, kerio.lib.x_3zq,

{

x_36n: Ext.apply({}, kerio.lib.x_3zq.prototype.x_36n, {
x_2k1: 'triggers',
x_1y: 'title',
x_3zt: 'toggle',
x_3zu: 'isPressed',
x_7b: 'groupId'
}), 
x_3ay: Ext.apply({}, kerio.lib.x_3zq.prototype.x_3ay, {
isPressed: false
}),

x_2ql: function (x_2v) {
var
x_2o,
x_3zv,
x_3zw,
x_3ez,
x_2k1 = x_2v.x_2k1,
x_3zx = this.x_3zr,
x_1b = kerio.lib;
for (var x_41 = 0, x_42 = x_2k1.length; x_41 < x_42; x_41++) {
x_3zv = x_2k1[x_41];
if (x_3zv.x_25) {
x_3zw = x_3zv.x_1j;
if (undefined === x_3zw) {
x_3zw = x_1b.x_2tl();
x_2k1[x_41].x_1j = x_3zw;
}
x_3zx[x_3zw] = x_3zv.x_25;
}
}
this.x_3zy = x_2v.x_3zz || x_2k1[0].x_1j;
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
this.x_3yg(x_3ez, x_2v.x_b6);
x_2o = new kerio.lib.x_400(x_3ez);
x_2o.on('triggerclick', this.x_401, this);
x_2o.on('specialkey', this.x_402, this);
return x_2o;
},

x_401: function (x_403, x_404) {
var x_3zw = x_404._kx.x_1j;
this.x_3zr[x_3zw].call(this, this.x_9d || null, this, x_3zw);
},

x_405: function (x_3zw) {
return this.x_2o.getTrigger(x_3zw);
},

x_402: function (x_406, x_96) {
if (Ext.EventObject.ENTER == x_96.getKey()) {
this.x_401(x_406, this.x_405(this.x_3zy), x_96);
}
},

x_2kq: function (x_3zw, x_2er) {
var
x_41,
x_42,
x_407;
if (!Ext.isArray(x_3zw)) {
x_3zw = [x_3zw];
}
for (x_41 = 0, x_42 = x_3zw.length; x_41 < x_42; x_41++) {
x_407 = this.x_405(x_3zw[x_41]);
if (false !== x_2er) {
x_407.show();
}
else {
x_407.hide();
}
}
},

x_2la: function (x_3zw) {
var x_407 = this.x_405(x_3zw);
return x_407.isDisplayed();
},

x_408: function(x_3zw) {
return (true === this.x_2o.getTrigger(x_3zw)._kx.x_3zu);
},

x_3zs: function () {
var
x_2n,
x_2o = this.x_2o,
x_409 = x_2o.getEl(),
x_1u = x_409.getWidth(),
x_1v = x_409.getHeight(),
x_40a = x_409.getBorderWidth('l'),
x_40b = x_409.getBorderWidth('t'),
x_40c = this.x_40d,
x_3fi = this.x_40e;
if (!x_40c) {
x_40c = x_409.parent().createChild({
tag: 'div',
style: 'border: none; position: absolute; z-index: 950; background: transparent'
}, x_409);
this.x_40f = x_40c.createChild({
tag: 'div',
cls: 'formFieldProgress'
});
x_3fi = x_409.parent().createChild({
tag: 'input',
type: 'text',
cls: 'x-form-field x-form-text',
style: 'border: none; position: absolute; z-index: 1000; background: transparent;'
}, x_409);
this.x_40d = x_40c;
this.x_40e = x_3fi;
x_2o.on('resize', this.x_3zs, this);
}
x_2n = {
width: x_1u - x_40a - x_409.getBorderWidth('r'),
height: x_1v - x_40b - x_409.getBorderWidth('b')
};
x_40c.setSize(x_2n);
x_3fi.setSize(x_2n);
x_40c.setTop(x_40b + 'px');
x_40c.setLeft(x_40a + 'px');
x_3fi.setTop(x_40b + 'px');
x_3fi.setLeft(x_40a + 'px');
x_3fi.on('keyup', function () {
this.x_9w(this.x_40e.dom.value);
}, this);
if (Ext.isIE) {
x_3fi.setStyle('padding-top', '2px');
}
this.x_40g(false);
},

x_40g: function (x_2er) {
x_2er = (false !== x_2er);
if (x_2er) { this.x_2o.getEl().setStyle('color', 'white');
}
else {
this.x_2o.getEl().setStyle('color', '');
}
this.x_40d.setDisplayed(x_2er);
this.x_40e.setDisplayed(x_2er);
},

x_2l7: function () {
if (true === this.x_40h) {
this.x_2kr();
}
this.x_3zs();
this.x_40f.setWidth(0);
this.x_40e.dom.value = this.x_2o.getEl().getValue();
this.x_40g(true);
this.x_40h = true;
},

x_2kk: function (x_1o) {
if (x_1o > 100) {
x_1o = 100;
}
this.x_40f.setWidth(x_1o + '%');
},

x_40i: function (x_1o, x_b5) {
var x_40j = Math.floor(x_1o * 100 / x_b5);
if (true !== this.x_40h) {
this.x_2l7();
}
this.x_2kk(x_40j);
if (x_1o > 100) {
this.x_2kr();
}
},

x_2kr: function () {
if (true === this.x_40h) {
this.x_40g(false);
this.x_40h = false;
}
},
x_2k8: function () {
return (true === this.x_40h);
}
});


kerio.lib.x_400 = function (x_2v) {
kerio.lib.x_2sf(this, {
x_40k: {}
});
kerio.lib.x_400.superclass.constructor.call(this, x_2v);
};

Ext.extend(kerio.lib.x_400, Ext.form.TriggerField,

{

initComponent : function(){
var
x_40l,
x_41,
x_3zv,
x_3zw,
x_40m,
x_40n = Ext.BLANK_IMAGE_URL,
x_2k1 = this.initialConfig.triggers,
x_42 = x_2k1.length,
x_1b = kerio.lib,
x_40o = {},
x_40p = {};
x_1b.x_400.superclass.initComponent.call(this);
x_40l = {tag:'span', cls:'multiTrigger', cn:[]};
for (x_41 = 0; x_41 < x_42; x_41++) {
x_3zv = x_2k1[x_41];
x_3zw = x_3zv.id;
x_40m = {
id: this.id + '_' + x_3zw,
tag: 'img',
src: x_40n,
cls: 'x-form-trigger ' + x_3zv.cls
};
this._kx.x_40k[this.id + '_' + x_3zw] = x_3zw;
if (undefined !== x_3zv.title) {
x_40m.qtip = x_3zv.title;
}
x_40l.cn.push(x_40m);
if (true === x_3zv.hidden) {
x_40o[x_3zw] = true;
}
if (undefined !== x_3zv.toggle) {
x_40p[x_3zw] = {
x_3zu: (true === x_3zv.toggle.isPressed),
x_7b: x_3zv.toggle.groupId
};
}
}
kerio.lib.x_2sf(this, {
x_40o: x_40o,
x_40p: x_40p
});
this.triggerConfig = x_40l;
},

getTrigger : function(x_fk){
return this._kx.x_40q.get(x_fk);
},

initTrigger : function(){
var
x_41,
x_42,
x_404,
x_3zw,
x_2k1 = this.trigger.select('.x-form-trigger', true).elements,
x_40o = this._kx.x_40o,
x_40p = this._kx.x_40p,
x_40q = new Ext.util.MixedCollection(false, function (x_g6) {return x_g6._kx.x_1j;}),
x_1b = kerio.lib;
if (!Ext.isIE) { this.el.getWidth = Ext.Element.prototype.getComputedWidth;
}
this.trigger.getWidth = kerio.lib.x_400.prototype._kxp.x_40r;
x_1b.x_2sf(this.trigger, {x_2k6: this});
this.wrap.addClass('multiTriggerField');
for (x_41 = 0, x_42 = x_2k1.length; x_41 < x_42; x_41++) {
x_404 = x_2k1[x_41];
x_3zw = this._kx.x_40k[x_404.id];
x_1b.x_2sf(x_404, {
x_2k6: this,
x_1j: x_3zw
});
x_404.hide = this._kxp.x_40s;
x_404.show = this._kxp.x_40t;
if (true === x_40o[x_3zw]) {
x_404.setDisplayed(false);
}
if (undefined !== x_40p[x_3zw]) {
x_1b.x_2sf(x_404, {
x_40u: true,
x_3zu: x_40p[x_3zw].x_3zu,
x_40v: x_40p[x_3zw].x_7b
});
if (x_404._kx.x_3zu) {
x_404.addClass('triggerPressed');
}
x_404.on('mousedown', this._kxp.x_40w, this);
}
x_404.on('click', this._kxp.x_40x, this, {preventDefault:true});
x_404.addClassOnOver('x-form-trigger-over');
x_404.addClassOnClick('x-form-trigger-click');
}
delete this._kx.x_40o;
delete this._kx.x_40p;
x_40q.addAll(x_2k1);
x_1b.x_2sf(this, {x_40q: x_40q});
x_1b.x_2sf(this.trigger, {x_40q: x_40q});
}
});

kerio.lib.x_400.prototype._kxp = Ext.apply({}, kerio.lib.x_400.prototype._kxp, {

x_40w: function (x_96) {
this._kxp.x_40y.call(this, this._kxp.x_40z.call(this, x_96));
},

x_40y: function (x_404) {
var
x_410,
x_41,
x_411 = this._kx.x_40q,
x_412 = x_411.getCount(),
x_3zu = x_404._kx ? x_404._kx.x_3zu : false,
x_7b = x_404._kx ? x_404._kx.x_40v : null;
if (x_7b) {
if (x_3zu) {
return;
}
for (x_41 = 0; x_41 < x_412; x_41++) {
x_410 = x_411.get(x_41);
if ((x_410._kx.x_40v == x_7b) && x_410._kx.x_3zu) {
x_410.removeClass('triggerPressed');
x_410._kx.x_3zu = false;
break;
}
}
}
if (x_3zu) {
x_404.removeClass('triggerPressed');
}
else {
x_404.addClass('triggerPressed');
}
x_404._kx.x_3zu = !x_3zu;
},

x_40x: function (x_96) {
var x_404 = this._kxp.x_40z.call(this, x_96);
this.el.focus();
this.fireEvent('triggerclick', this, x_404);
},

x_40z: function (x_96) {
return this.getTrigger(this._kx.x_40k[x_96.getTarget().id]);
},

x_40s: function () {
var x_2k6 = this._kx.x_2k6;
x_2k6._kxp.x_2kq.call(x_2k6, this, false);
},

x_40t: function () {
var x_2k6 = this._kx.x_2k6;
x_2k6._kxp.x_2kq.call(x_2k6, this, true);
},

x_2kq: function (x_404, x_2er) {
var x_413 = this.wrap.getWidth();
x_404.setDisplayed(x_2er);
this.el.setWidth(x_413 - this.trigger.getWidth());
},

x_40r: function () {
var
x_2k1 = this._kx ? this._kx.x_40q : null,
x_414 = 0,
x_404,
x_41, x_42;
if (!x_2k1) {
return 0;
}
for (x_41 = 0, x_42 = x_2k1.getCount(); x_41 < x_42; x_41++) {
x_404 = x_2k1.get(x_41);
if ('none' != x_404.getStyle('display')) {
x_414 += x_404.getComputedWidth();
}
}
return x_414;
}
});


kerio.lib.x_2pw = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2ok;
kerio.lib.x_2pw.superclass.constructor.call(this, x_1j, x_2v);
};

Ext.extend(kerio.lib.x_2pw,  kerio.lib.x_9b,

{

x_36n: Ext.apply({}, kerio.lib.x_9b.prototype.x_36n, {
x_1h: 'anchor',
x_1v: 'height'
}), 
x_3ay: Ext.apply({}, kerio.lib.x_9b.prototype.x_3ay, {
maxLength: kerio.lib.x_6b.x_2p7,
style: 'overflow: auto; %+'
}),

x_2ql: function(x_2v) {
var
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n),
x_2o = new Ext.form.TextArea(x_3ez);
if ((undefined === x_2v.x_1v) && (undefined === x_2v.x_1h)) {
x_2o.on('render', this.x_3va, this);
}
this.x_3yg(x_3ez, x_2v.x_b6);
return x_2o;
}, 
x_3va: function (x_2o) {
var x_1h, x_415;
kerio.lib.x_2q0.prototype.x_3va.call(this, x_2o);

if (Ext.isSafari && Ext.isWindows) {
x_1h = x_2o.anchor.split(' ');
x_415 = parseInt(x_1h[1], 10);
x_415 -= 2;
x_2o.anchor = x_1h[0] + ' ' + x_415; }
},

x_3vw: kerio.lib.x_2q0.prototype.x_3vw
});


kerio.lib.x_2pu = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2ot;
kerio.lib.x_2pu.superclass.constructor.call(this, x_1j, x_2v);
};

Ext.extend(kerio.lib.x_2pu, kerio.lib.x_x1,

{

x_36n: Ext.apply({}, kerio.lib.x_x1.prototype.x_36n, {
x_341: 'incrementValue'
}),

x_3ay: Ext.apply({}, kerio.lib.x_x1.prototype.x_3ay, {
width: 60
}),

x_2ql: function(x_2v) {
var
x_416 = ('auto' == x_2v.x_1u),
x_3ez,
x_2o;
if (undefined !== x_2v.x_1o) {
x_2v.x_1o = String(x_2v.x_1o);
}
x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
if (!x_416) {
delete x_3ez.anchor;
}
this.x_3yg(x_3ez, x_2v.x_b6);
x_2o = new kerio.lib.x_417(x_3ez);
return x_2o;
}, 
x_2w7: function (x_2v) {
kerio.lib.x_2pu.superclass.x_2w7.call(this, x_2v);
this.x_2o.on('spinchanged', this.x_i5, this);
}
}); 
kerio.lib.x_417 = function (x_2v) {
kerio.lib.x_417.superclass.constructor.call(this, x_2v);
this.addEvents({
'spinup' : true,
'spindown' : true
});
};

Ext.extend(kerio.lib.x_417, Ext.form.NumberField,

{
defaultAutoCreate : {tag: "input", type: "text", size: "16", autocomplete: "off"},
autoSize: Ext.emptyFn,
monitorTab : true,
deferHeight : true,
mimicing : false,
triggerClass: 'spinnerTrigger',
splitterClass: 'spinnerSplitter',
fieldClass: 'x-form-field spinnerField',
defaultValue: 0,
incrementValue: 1,

onRender: function(ct, position){
kerio.lib.x_417.superclass.onRender.call(this, ct, position);
Ext.form.TriggerField.prototype.onRender.call(this, ct, position);
var x_418 = this.wrap.createChild({tag: 'div', cls: this.splitterClass, style: 'width:13px; height:2px;'});
x_418.setRight(2);
x_418.setTop(10);
this.splitter = x_418;
this._kxp.x_419.call(this);
},

onDestroy: function(){
if(this.trigger){
this.trigger.removeAllListeners();
this.trigger.remove();
}
if(this.wrap){
this.wrap.remove();
}
kerio.lib.x_417.superclass.onDestroy.call(this);
},

onFocus: function(){
kerio.lib.x_417.superclass.onFocus.call(this);
if(!this.mimicing){
this.wrap.addClass('x-trigger-wrap-focus');
this.mimicing = true;
Ext.get(Ext.isIE ? document.body : document).on("mousedown", this.mimicBlur, this, {delay: 10});
if(this.monitorTab){
this.el.on("keydown", this.checkTab, this);
}
}
},

checkTab : function(e){
if(e.getKey() == e.TAB){
this.triggerBlur();
}
},

mimicBlur: function(e){
if(!this.wrap.contains(e.target) && this.validateBlur(e)){
this.triggerBlur();
}
},

triggerBlur: function(){
this.mimicing = false;
Ext.get(Ext.isIE ? document.body : document).un("mousedown", this.mimicBlur);
if(this.monitorTab){
this.el.un("keydown", this.checkTab, this);
}
this.beforeBlur();
this.wrap.removeClass('x-trigger-wrap-focus');
kerio.lib.x_417.superclass.onBlur.call(this);
},

validateBlur : function(e){
return true;
},

onDisable: function(){
kerio.lib.x_417.superclass.onDisable.call(this);
if(this.wrap){
this.wrap.addClass('x-item-disabled');
}
},

onEnable: function(){
kerio.lib.x_417.superclass.onEnable.call(this);
if(this.wrap){
this.wrap.removeClass('x-item-disabled');
}
},

initTrigger: function() {
Ext.form.TriggerField.prototype.initTrigger.call(this);
},

onTriggerClick: Ext.emptyFn,

onShow: Ext.form.TriggerField.prototype.onShow,

onHide: Ext.form.TriggerField.prototype.onHide,

onResize: Ext.form.TriggerField.prototype.onResize,

adjustSize: Ext.form.TriggerField.prototype.adjustSize,

getResizeEl: Ext.form.TriggerField.prototype.getResizeEl,

getPositionEl: Ext.form.TriggerField.prototype.getPositionEl,

alignErrorIcon: Ext.form.TriggerField.prototype.alignErrorIcon,

autoSize: Ext.emptyFn
});

kerio.lib.x_417.prototype._kxp = Ext.apply({}, kerio.lib.x_417.prototype._kxp, {
x_41a: 100, 
x_419: function(){
this.keyNav = new Ext.KeyNav(this.el, {
'up': function(x_4e){
this._kxp.x_41b.call(this, false);
},
'down': function(x_4e) {
this._kxp.x_41b.call(this, true);
},
scope: this
});
this.x_41c = new Ext.util.DelayedTask(this._kxp.x_41d, this);
var x_41e = {preventDefault: true};
this.repeater = new Ext.util.ClickRepeater(this.trigger);
this.repeater.on('click', this._kxp.x_40x, this, x_41e);
var x_3zv = this.trigger;
x_3zv.on('mouseover', this._kxp.x_41f, this, x_41e);
x_3zv.on('mouseout',  this._kxp.x_41g,  this, x_41e);
x_3zv.on('mousemove', this._kxp.x_41h, this, x_41e);
x_3zv.on('mousedown', this._kxp.x_3j0, this, x_41e);
x_3zv.on('mouseup',   this._kxp.x_41i,   this, x_41e);
this.wrap.on('mousewheel',   this._kxp.x_41j, this);
},

x_41d: function () {
this.fireEvent('spinchanged', this, this.getValue());
},

x_41f: function(){
if(this.disabled){
return;
}
var x_41k = this._kxp.x_41l.call(this);
this.__tmphcls = (Ext.EventObject.getPageY() < x_41k) ? 'spinnerOverup' : 'spinnerOverdown';
this.trigger.addClass(this.__tmphcls);
},

x_41g: function(){
this.trigger.removeClass(this.__tmphcls);
},

x_41h: function(){
if(this.disabled){
return;
}
var x_41k = this._kxp.x_41l.call(this);
if( ((Ext.EventObject.getPageY() > x_41k) && this.__tmphcls == 'spinnerOverup') ||
((Ext.EventObject.getPageY() < x_41k) && this.__tmphcls == 'spinnerOverdown')){
}
},

x_3j0: function(){
if(this.disabled){
return;
}
var x_41k = this._kxp.x_41l.call(this);
this.__tmpccls = (Ext.EventObject.getPageY() < x_41k) ? 'spinnerClickup' : 'spinnerClickdown';
this.trigger.addClass(this.__tmpccls);
},

x_41i: function(){
this.trigger.removeClass(this.__tmpccls);
},

x_40x: function(){
if (this.disabled || this.getEl().dom.readOnly) {
return;
}
var x_41k = this._kxp.x_41l.call(this);
this._kxp.x_41b.call(this, Ext.EventObject.getPageY() > x_41k);
this._kx.x_2vk.x_3yk();
},

x_41l: function(){
var x_64 = this.trigger.getTop();
var x_1v = this.trigger.getHeight();
var x_41k = x_64 + (x_1v / 2);
return x_41k;
},

x_41j : function(x_4e){
if(this.disabled || this.getEl().dom.readOnly){
Ext.EventObject.preventDefault();	return;
}
var x_41m = x_4e.getWheelDelta();
if (0 !== x_41m) {
x_4e.stopEvent();
this._kxp.x_41b.call(this, x_41m < 0);
this._kx.x_2vk.x_3yk();
}
},

x_41b: function (x_41n) {
var x_1o = parseFloat(this.getValue());
var x_av = (true === x_41n) ? -1 : 1;
var x_341 = this.incrementValue;
x_1o += (x_341 * x_av);
x_1o = isNaN(x_1o) ? this.defaultValue : x_1o;
x_1o = this._kxp.x_41o.call(this, x_1o);
if (this.emptyText) {
this.el.removeClass(this.emptyClass);
}
this.setRawValue(x_1o);
this.validate();
var x_36v = (true === x_41n) ? 'spindown' : 'spinup';
this.fireEvent(x_36v, this, x_1o);
this.x_41c.delay(this._kxp.x_41a);
},

x_41o: function(x_1o){
if((undefined !== this.minValue) && x_1o < this.minValue){
x_1o = this.minValue;
}
if((undefined !== this.maxValue) && x_1o > this.maxValue){
x_1o = this.maxValue;
}
if ((false === this.allowNegative) && (x_1o < 0)) {
x_1o = 0;
}
return this._kxp.x_41p.call(this, x_1o);
},

x_41p: function(x_1o){
var x_41q = isNaN(x_1o);
if(!this.allowDecimals || this.decimalPrecision == -1 || x_41q || !x_1o){
return x_41q ? '' : x_1o;
}
return parseFloat(parseFloat(x_1o).toFixed(this.decimalPrecision));
}
});


kerio.lib.x_2pm = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2om;
kerio.lib.x_2pm.superclass.constructor.call(this, x_1j, x_2v);
};

Ext.extend(kerio.lib.x_2pm, kerio.lib.x_32r,

{

x_36n: Ext.apply({}, kerio.lib.x_32r.prototype.x_36n, {
x_1u: 'width',
x_1p: 'ctCls',
_kx: '_kx', x_x6: 'x_x6',       x_41r: 'x_41r'  }),

x_3ay: Ext.apply({}, kerio.lib.x_32r.prototype.x_3ay, {
value: ''
}),

x_2ql: function(x_2v) {
x_2v = this.x_41s(x_2v);
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
var x_2o = new kerio.lib.x_41t(x_3ez);
return x_2o;
},

x_41s: function(x_2v) {
if (x_2v.x_kp) {
x_2v.x_1o = x_2v.x_kp;
}
else if (x_2v.x_1o) {
x_2v.x_1o = Ext.util.Format.htmlEncode(x_2v.x_1o);
}
kerio.lib.x_2sf(x_2v, {
x_x6: x_2v.x_x6 || '',
x_41r: x_2v.x_41r || 'left top'
});
delete x_2v.x_x6;
delete x_2v.x_41r;
if ((!x_2v.x_23 && (false !== x_2v.x_1l)) || ('' === x_2v.x_23)) {
x_2v.x_1l = true;
}
return x_2v;
}, 
x_9w: function(x_1o) {
this.x_2i(Ext.util.Format.htmlEncode(x_1o));
},

x_2i: function(x_1o) {
this.x_2o.setValue(x_1o);
},

x_2h: function () {
this.x_2i(this.x_3un());
}
});

kerio.lib.x_41t = function(x_2v) {
if (undefined === x_2v.width) {
x_2v.autoWidth = true;
}
kerio.lib.x_41t.superclass.constructor.call(this, x_2v);
this.onFocus = function(){}; };
Ext.extend(kerio.lib.x_41t, Ext.form.Field, {

onRender: function(x_3xt, x_35m) {
var x_41u,
x_41v,
x_3rp;
if (!this.el) {
this.el = x_3xt.createChild({
tag: 'div',
cls: 'template-text'
});
x_41u = Ext.DomHelper.append(this.el, {tag: 'div'});
Ext.DomHelper.append(x_41u, {tag: 'div'});
var x_x6 = this._kx.x_x6;
if ((undefined !== x_x6) && ('' !== x_x6)) {
x_41u.style.backgroundImage = 'url(' + x_x6 + '.' + (kerio.lib.x_2nx ? 'gif' : 'png') + ')';
var x_41r = this._kx.x_41r;
x_41u.style.backgroundPosition = 'top ' + x_41r;
x_41u.className = 'template-text-icon-' + x_41r;
}
}
kerio.lib.x_41t.superclass.onRender.call(this, x_3xt, x_35m);
if (Ext.isIE && !Ext.isIE7) {
x_41v = this.container.dom;
x_3rp = x_41v.parentNode.firstChild;
if (x_3rp.style.display === '') {
x_3rp.style.paddingBottom = '0px';
x_3rp = x_41v.firstChild;
x_3rp.style.textIndent = '-3px';
x_3rp.style.paddingLeft = '4px';
}
}
}, 
setValue: function(x_1o) {
if (this.rendered){
this.el.dom.firstChild.innerHTML = x_1o;
}
this.value = x_1o;
var x_3tw = this.ownerCt,
x_41w;
if (x_3tw) {
x_41w = x_3tw.initialConfig.width;
if ('auto' == x_41w) {
if (x_3tw.ownerCt && x_3tw.ownerCt.layout instanceof Ext.layout.ColumnLayout) {
if (Ext.isIE) { x_3tw.el.setWidth(x_3tw.body.dom.scrollWidth + 'px');
}
x_3tw.ownerCt.doLayout();
}
}
}
},

onDisable: function () {
this.getActionEl().addClass(this.disabledClass);
}
});


kerio.lib.x_2pn = function(x_1j, x_2v) {
kerio.lib.x_2pn.superclass.constructor.call(this, x_1j, x_2v);  this.x_3h = kerio.lib.x_6b.x_2on;
};

Ext.extend(kerio.lib.x_2pn, kerio.lib.x_2pm,

{

x_36n: Ext.apply({}, kerio.lib.x_2pm.prototype.x_36n, {
_kx: '_kx',
x_pv: 'x_pv',
x_rb: 'x_rb',
x_41x: 'x_41x',
x_41y: 'x_41y'
}),

x_3ay: {
},

x_41s: function(x_2v) {
var x_rb = {},
x_41z,
x_1o;
x_2v = kerio.lib.x_2pn.superclass.x_41s.call(this, x_2v);
delete x_2v.x_1o;
if (!x_2v._kx) {
x_2v._kx = {};
}
x_41z = x_2v.x_rb;
for (x_1o in x_2v.x_rb) {
if ('function' == Ext.type(x_41z[x_1o])) {
continue;
}
x_rb[x_1o] = kerio.lib.x_qc(x_41z[x_1o]);
}
x_41z = x_2v.x_41x;
for (x_1o in x_2v.x_41x) {
if ('function' == Ext.type(x_41z[x_1o])) {
continue;
}
x_rb[x_1o] = x_41z[x_1o];
}
kerio.lib.x_2sf(x_2v, {
x_pv: x_2v.x_pv,
x_41y: x_2v.x_41y,
x_rb: x_rb
});
delete x_2v.x_pv;
delete x_2v.x_41y;
delete x_2v.x_rb;
delete x_2v.x_41x;
return x_2v;
}, 
x_2ql: function(x_2v) {
x_2v = this.x_41s(x_2v);
var x_rb = x_2v._kx.x_rb;
var x_41x = x_2v._kx.x_41x;
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
x_3ez._kx.x_rb = x_rb; x_3ez._kx.x_41x = x_41x; var x_2o = new kerio.lib.x_420(x_3ez);
return x_2o;
},

x_9w: function(x_bk) {
for (var x_1o in x_bk) {
x_bk[x_1o] = kerio.lib.x_qc(x_bk[x_1o]);
}
this.x_2i(x_bk);
},

x_2i: function(x_bk) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
this.x_2o.setValue(x_bk);
},

x_2t: function() {
return this.x_2o.getValue();
},

x_2h: function () {
this.x_2i(this.x_3un());
},

x_3un: function () {
return this.x_2o.initialConfig._kx.x_rb;
}
});

kerio.lib.x_420 = function(x_2v) {
this.value = x_2v._kx.x_rb || '';
kerio.lib.x_420.superclass.constructor.call(this, x_2v);
this.hiddenName = x_2v.name;
};

Ext.extend(kerio.lib.x_420, kerio.lib.x_41t, {

onRender: function(x_3xt, x_35m) {
if (typeof this._kx.x_41y == 'string') {
this._kx.x_pv = this._kx.x_pv.replace(/{(.*?)}/g, '<span class="{cls:trim}">{$1}</span>');
this._kx.x_rb.cls = this._kx.x_41y;
}
this._kx.x_421 = new Ext.Template('<div>' + this._kx.x_pv + '</div>');
kerio.lib.x_420.superclass.onRender.call(this, x_3xt, x_35m);
}, 
setValue: function(x_1o) {
for (var x_1mc in this._kx.x_rb) {
if (undefined === x_1o[x_1mc]) {
x_1o[x_1mc] = this._kx.x_rb[x_1mc];
}
}
this._kx.x_421.overwrite(this.el.dom.firstChild.firstChild, x_1o);
this.value = x_1o;
} });


kerio.lib.x_2pv = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2og;
kerio.lib.x_2pv.superclass.constructor.call(this, x_1j, x_2v);
var x_2o = this.x_2o;
x_2o.on('render', this.x_39m, this);
x_2o.on('show', this.x_422, this);
x_2o.on('hide', this.x_3t6, this);
}; Ext.extend(kerio.lib.x_2pv, kerio.lib.x_32r,

{

x_36n: Ext.apply({}, kerio.lib.x_32r.prototype.x_36n, {
x_1pq: 'format',
x_423: 'startDay',
x_424: 'minValue',
x_425: 'maxValue'
}),

x_3ay: Ext.apply({}, kerio.lib.x_9b.prototype.x_3ay, {
format: 'Y-m-d',
width: 100
}),

x_2ql: function(x_2v) {
var x_424 = x_2v.x_424,
x_425 = x_2v.x_425,
x_416 = ('auto' == x_2v.x_1u),
x_1o = x_2v.x_1o,
x_1pq, x_1kd,
x_426 = Date.parseDate;
if (x_2v.x_ka) {
this.x_427 = x_2v.x_ka;
}
if (x_416) {
delete x_2v.x_1u;
}
var x_39a = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
x_39a.id = this.x_1j; x_1pq = x_39a.format;
if (x_1o) {
x_1kd = x_426(x_1o, x_1pq);
if (!Ext.isDate(x_1kd)) {
x_1kd = x_426(x_1o, 'U');
}
x_39a.value = x_426(x_1kd.format(x_1pq), x_1pq);
}
x_39a.minValue = x_424;
x_39a.maxValue = x_425;
if (x_424 && !Ext.isDate(x_424)) {
x_39a.minValue = x_426(x_424, x_1pq);
}
if (x_425 && !Ext.isDate(x_425)) {
x_39a.maxValue = x_426(x_425, x_1pq);
}
if (!x_416) {
delete x_39a.anchor;
}
var x_2o = new Ext.form.DateField(x_39a);
if (x_2o.initialConfig.value) {
this.x_3yb = x_2o.initialConfig.value.format('U');
}
return x_2o;
}, 
x_3nj: function(x_1yx) {
kerio.lib.x_2pv.superclass.x_3nj.call(this, x_1yx);
if (this.x_5p()) {
this.x_2o.setDisabled(true);
}
}, 
x_2k: function(x_2er) {
x_2er = (false !== x_2er);
this.x_35u = x_2er;
this.x_2o.setVisible(x_2er);
}, 
x_428: function (x_2er) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var x_2o = this.x_2o;
var x_429 = Ext.get(x_2o.getEl().findParent('.x-form-item'));
if (x_429) {
if (x_2er) {
x_429.removeClass('x-hide-display');
}
else {
x_429.addClass('x-hide-display');
}
}
},

x_3t6: function (x_42a) {
this.x_428(false);
},

x_422: function (x_42a) {
this.x_428(true);
},

x_3nm: function(x_5p) {
var x_31a = this.x_31l();
x_5p = (false !== x_5p);
kerio.lib.x_2pv.superclass.x_3nm.call(this, x_5p);
if (this.x_317(arguments.callee, arguments, x_31a)) {
return;
}
var x_2o = this.x_2o;
var x_31 = this.x_31();
var x_42b = x_2o.el;
var x_42c = x_2o.wrap;
x_42b.dom.disabled = x_31;
x_2o.disabled = x_5p;
x_42b.dom.readOnly = true;
var x_3ud = x_2o.disabledClass;
if (x_5p) {
x_42b.un('focus', x_2o.onFocus);
x_42b.un('blur', x_2o.onBlur);
if (x_42c) {
x_42c.addClass(['readonly', x_3ud]);
}
x_42b.addClass(['readonly', x_3ud]);
}
else {
x_42b.on('focus', x_2o.onFocus, x_2o);
x_42b.on('blur', x_2o.onBlur, x_2o);
if (x_42c) {
x_42c.removeClass(['readonly', x_3ud]);
}
x_42b.removeClass(['readonly', x_3ud]);
}
if (x_31) {
this.x_84(true);
}
}, 
x_2t: function() {
var x_1o = this.x_2o.getValue();
return x_1o.format ? x_1o.format('U') : x_1o;
},

x_9w: function(x_1kd) {
this.x_2o.setValue(Date.parseDate(x_1kd, 'U'));
},

x_39m: function (x_42a) {
var x_35o = x_42a.getEl();
x_35o.dom.setAttribute('readOnly', true);
x_35o.on('mousedown', x_42a.onTriggerClick, x_42a);
x_35o.addClass('x-date-noedit');
},

x_3un: function () {
return this.x_3yb;
}
}); 
Ext.form.DateField.prototype.setValue = Ext.form.DateField.prototype.setValue.createSequence(function (x_1kd) {
if (!x_1kd) {
return;
}
var x_2fs = (this._kx ? this._kx.x_2vk : false);
if (x_2fs) {
if (!Ext.isDate(x_1kd)) {
x_1kd = Date.parseDate(x_1kd, 'U');
}
x_2fs.x_i5.call(x_2fs, this);
}
});


kerio.lib.x_2pp = function(x_1j, x_2v) {
this.x_3h = this.x_3h || kerio.lib.x_6b.x_2oo;
kerio.lib.x_2pp.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2pp, kerio.lib.x_32r,

{
x_3tx: false,
x_3ty: false,

x_36n: {
x_23: 'text',
x_a6: 'name',
x_31: 'disabled',
x_1m: 'hidden',
x_3u2: 'style'
},

x_3ay: {
cls: 'toolbarButtons %+',
minWidth: kerio.lib.x_6b.x_2p8
},

x_2ql: function(x_2v) {
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
var x_2o = new Ext.Button(x_3ez);
this.x_42d = x_2v.x_24;
x_2o.on('render', function (x_42e) {
var x_3vz = x_42e.ownerCt;
if (x_3vz) {
x_3vz.addClass('buttonInForm');
}
}, this);
return x_2o;
},

x_2w7: function (x_2v) {
if (x_2v.x_25) {
this.x_3f5 = x_2v.x_25;
this.x_2o.on('click', this.x_42f, this);
}
},

x_42f: function(x_34b) {
var
x_37o = this.x_31s(),
x_2pa;
if (x_37o && x_37o.x_1al) {
x_2pa = this.x_42d;
if (false !== x_2pa) {  x_2pa = x_2pa ? x_2pa : x_37o.x_1al;
kerio.lib.x_1k8(x_37o, x_2pa);
}
}
this.x_3f5.call(this, this.x_9d, this);
},

x_2h: Ext.emptyFn,

x_2t: Ext.emptyFn
});

kerio.lib.x_42g = Ext.extend(Ext.form.ComboBox, {

initComponent:function() {
this.tpl = '<tpl for="."><div class="x-combo-list-item">'
+ '<div class="icon '+ this.listClass +' {' + this.iconClsField + '}"></div>'
+ '{[fm.htmlEncode(values.' + this.displayField + ')]}'
+ '</div></tpl>';
kerio.lib.x_42g.superclass.initComponent.call(this);
this.on('focus', function() {this.icon.addClass('x-form-focus');});
this.on('blur' , function() {this.icon.removeClass('x-form-focus');});
},

onRender:function(ct, position) {
kerio.lib.x_42g.superclass.onRender.call(this, ct, position);
this.wrap.addClass('iconSelect');
this.el.addClass('iconInput');
this.icon = Ext.DomHelper.insertFirst(this.el.up('div.x-form-field-wrap'),
{tag: 'div', cls:'x-form-text iconWrap', children: [{tag: 'div', cls:'icon'}]}, true
);
this.icon.on('mousedown', this._switchExpand, this);
this.setIconCls();
},

onResize: function(w, h) {
var x_42h = 21;
kerio.lib.x_42g.superclass.onResize.call(this, w, h);
if (typeof w == 'number') {
this.el.setWidth(this.adjustWidth('input', w - this.trigger.getWidth() - x_42h));
}
this.wrap.setWidth(this.el.getWidth()+this.trigger.getWidth() + x_42h);
},

setIconCls:function() {
var
x_42i = this.store.query(this.valueField, this.getValue()).itemAt(0),
x_1p = 'icon ' + this.listClass + ' ';
if (this.icon) {
x_1p += (x_42i ? x_42i.get(this.iconClsField) : 'empty');
this.icon.dom.firstChild.className = x_1p;
}
},

setValue: function(value) {
kerio.lib.x_42g.superclass.setValue.call(this, value);
this.setIconCls();
},

_switchExpand: function(value) {
var x_m2 = Ext.isIE ? 10 : 0;
this.focus();
if (this.isExpanded()) {
this.collapse.defer(x_m2, this);
}
else {
this.expand.defer(x_m2, this);
}
}
});



kerio.lib.x_a9 = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_1kk;
kerio.lib.x_a9.superclass.constructor.call(this, x_1j, x_2v);
this.x_1j = x_1j;
this.x_42j = false;    }; 
Ext.extend(kerio.lib.x_a9, kerio.lib.x_3zq,

{

x_36n: Ext.apply({}, kerio.lib.x_3zq.prototype.x_36n, {
x_42k: 'listWidth',
x_a5: 'displayField',
x_a7: 'valueField',
x_1k0: 'emptyText',
x_wk: 'editable',
x_un: 'listClass'
}), 
x_3ay: Ext.apply({}, kerio.lib.x_3zq.prototype.x_3ay, {
hiddenName: '',
typeAhead: false,
editable: false,
triggerAction: 'all',  minChars: 0 }),
x_42l: -1,
x_42m: false,
x_42n: false,

x_2ql: function(x_2v) {
var x_2o;
x_2v.x_uo = (false !== x_2v.x_uo);
x_2v.x_a5 = (undefined !== x_2v.x_a5) ? x_2v.x_a5 : 'name';
x_2v.x_a7 = (undefined !== x_2v.x_a7) ? x_2v.x_a7 : 'value';
this.x_42o = x_2v.x_a5;
this.x_42p = x_2v.x_a7;
this.x_42q = false;
this.x_42n = (true === x_2v.x_wk);
this.x_42r = (x_2v.x_65 && (undefined !== x_2v.x_65.x_42s)) ? x_2v.x_65.x_42s : true;
this.x_3co(x_2v);
var x_39a = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n);
x_39a.tpl = '<tpl for="."><div class="x-combo-list-item">{[fm.htmlEncode(values.' + x_39a.displayField + ')]}</div></tpl>';
x_39a.hiddenName = x_2v.x_a6; x_39a.hiddenId = this.x_1j + '_hidden';
x_39a.store = this.x_2hl;
x_39a.mode = this.x_3cl ? 'local' : 'remote';
this.x_3yg(x_39a, x_2v.x_b6);
x_39a.id = this.x_1j; if (x_2v.x_um) {
this.x_42t = true;
x_39a.iconClsField = x_2v.x_um;
x_2o = new kerio.lib.x_42g(x_39a);
}
else {
this.x_42u = Ext.isIE;
x_2o = new Ext.form.ComboBox(x_39a);
}
if (true === this.x_42n) {
x_2o.onKeyUp = Ext.emptyFn;
x_2o.on('render', function (x_2o) {
x_2o.getEl().on('keypress', this.x_42v, this);
}, this);
kerio.lib.x_2sf(x_2o, {x_42w: x_2o.getValue});
x_2o.getValue = this.x_42x;
}
if (this.x_3cl) {
this.x_42q = true;
}
return x_2o;
}, 
x_3co: function(x_2v) {
var x_42y,
x_o5;
if (undefined !== x_2v.x_65) {
x_o5 = this.x_42z(x_2v);
x_42y = false;
}
else {
if (undefined !== x_2v.x_5z) {
x_o5 = this.x_430(x_2v.x_5z);
x_42y = true;
}
}
this.x_3cl = x_42y;
this.x_2hl = x_o5;
},

x_2w7: function(x_2v) {
var x_2o = this.x_2o;
var x_3df = this.x_2hl;
kerio.lib.x_a9.superclass.x_2w7.call(this, x_2v);
x_2o.on('render', this.x_39m, this);
this.x_431 = true;
x_2o.on('expand', this.x_432, this);
x_2o.on('collapse', this.x_433, this);
if (x_2v.x_uq) {
this.x_3mz = x_2v.x_uq;
}
x_2o.on('select', this.x_434, this);
if (this.x_3cl) {
if (x_2v.x_uo) {
this.x_3xi = x_2v.x_1o;
this.x_435 = true;
this.x_436(x_3df, x_3df.getRange());
}
if (undefined !== x_2v.x_2in) {
x_2v.x_2in.call(this);
}
}
else {
x_3df.on('beforeload', this.x_437, this);
x_3df.on('load', this.x_438, this);
if (x_2v.x_uo || (undefined !== x_2v.x_2in) || (undefined === x_2v.x_1o)) {
this.x_435 = x_2v.x_uo;
this.x_3xi = x_2v.x_1o;
x_3df.on('load', this.x_436, this);
this.x_439 = x_2v.x_2in;
}
}
}, 
x_437: function(x_3dw, x_6q) {
var x_3do;
delete x_3dw.baseParams.query;
this.x_42q = false;
if (this.x_42r) {
if (this.x_43a) {
this.x_2o.onLoad();
this.x_438(this.x_2hl);
return false;
}
else {
this.x_43a = true;
}
}
if (this.x_3dg) {
x_3do = {
object: this.x_3dg.object,
method: this.x_3dg.method,
params: Ext.encode(this.x_3dg.params)
};
x_3dw.baseParams = x_3do;
}
this.x_42j = true;
}, 
x_436: function(x_3dw, x_3dx, x_6q) {
this.x_42j = false;
var x_a7 = this.x_42p,
x_2o = this.x_2o,
x_1o,
x_43b,
x_43c;
if (undefined === this.x_3xi) {
if (0 < x_3dx.length) {
x_1o = x_3dx[0].data[x_a7];
x_2o.setValue(x_1o);
}
}
else if (this.x_435) {
x_1o = x_2o.getValue();
if (0 < x_3dx.length) {
x_43b = true;
if ('' !== x_1o) {
x_43c = x_3dw.query(x_a7, x_1o, false, true);
x_43b = (0 === x_43c.length);
}
if (x_43b) {
x_1o = x_3dx[0].data[x_a7];
x_2o.setValue(x_1o);
}
else {
if (!this.x_3cl) {
x_2o.setValue(x_1o);
}
}
}
}
this.x_42l = this.x_2hl.find(x_a7, this.x_2t());
this.x_3yb = x_1o;
this.x_3to();
if (undefined !== this.x_439) {
x_3dw.un('load', this.x_436);
this.x_439.call(this);
}
}, 
x_438: function(x_3dw, x_3dx, x_6q) {
this.x_42q = true;
if (false === this.x_42r) {
this.x_2o.lastQuery = undefined;
}
}, 
x_430: function(x_43d) {
var
x_47 = [],
x_1ni = [this.x_42o, this.x_42p],
x_43e;
for (var x_g6 = 0; x_g6 < x_43d.length; x_g6++ ) {
if (x_43d[x_g6] instanceof Object) {
x_43e = x_43d[x_g6];
x_47[x_g6] = [x_43e[this.x_42o], x_43e[this.x_42p]];
for (var x_43f in x_43e) {
if (x_43f != this.x_42o && x_43f != this.x_42p) {
x_47[x_g6].push(x_43e[x_43f]);
if (0 === x_g6) {
x_1ni.push(x_43f);
}
}
}
}
}
var x_43g = {
fields: x_1ni,
data: x_47
};
return new Ext.data.SimpleStore(x_43g);
}, 
x_42z: function(x_2v) {
var x_65 = x_2v.x_65;
var x_68 = ((undefined !== x_65.x_68) ? x_65.x_68 : 'data');
var x_43h = [
{name: x_2v.x_a5},
{name: x_2v.x_a7}
];
if (!x_2v.x_a8) {
x_43h[0].mapping = 0;
x_43h[1].mapping = 1;
}
var x_43i = new Ext.data.JsonReader({root: x_68}, x_43h);
var x_3d1 = new kerio.lib.x_3cf({
x_6a: x_65.x_6a
});
this.x_3dg = x_65.x_66 || {};
var x_43j = (false !== x_65.x_67);
var x_66 = kerio.lib.x_2rm(this.x_3dg);
var x_43g = {
autoLoad: ((false === x_43j) ? undefined : {params: x_66}),
proxy: x_3d1,
reader: x_43i
};
return new Ext.data.Store(x_43g);
}, 
x_39m: function(x_43k) {
var
x_2o = this.x_2o,
x_9d,
x_43l;
x_2o.un('render', this.x_39m, this);
x_9d = this.x_9d;
this.x_43m = (x_9d && (kerio.lib.x_6b.x_1l4 === x_9d.x_3h));
if (this.x_43m) {
x_43l = x_2o.container.dom.previousSibling;
if (x_43l && x_43l.previousSibling) {
this.x_43n = x_43l.previousSibling.style;
}
}
if (this.x_3mz) {
if (x_2o.inEditor) {
x_2o.on('beforeshow', this.x_43o, this);
}
else {
x_2o.on('focus', this.x_43o, this);
x_2o.on('blur', this.x_43p, this);
}
}
}, 
x_433: function(x_43k) {
x_43k.wrap.removeClass('x-trigger-wrap-focus');
}, 
x_432: function(x_43k) {
var x_42k;
x_43k.wrap.addClass('x-trigger-wrap-focus');
if (this.x_431) {
this.x_43q();
delete this.x_431;
}
if (true === this.x_42u) {
x_42k = x_43k.el.getComputedWidth() + x_43k.trigger.dom.width;
x_43k.innerList.setWidth(x_42k);
x_43k.list.setWidth(x_42k);
this.x_42u = false;
}
}, 
x_i5: function(x_3sj, x_3n9) {
if (x_3n9 instanceof Ext.data.Record) {
this.x_42l = this.x_2hl.indexOf(x_3n9);
kerio.lib.x_2t2(this, kerio.lib.x_6b.x_6d.x_6e.x_4l);
}
kerio.lib.x_a9.superclass.x_i5.call(this, x_3sj);
}, 
x_3yz: function () {
if (true === this.x_42n) {
kerio.lib.x_a9.superclass.x_3yz.apply(this, arguments);
}
},

x_2ll: function() {
return this.x_42q;
}, 
x_2ho: function() {
this.x_42q = false;
this.x_43a = false;
this.x_2hl.reload();
}, 
x_43r: function(x_a6, x_1o) {
var x_28 = this.x_3dg.params;
x_28[x_a6] = x_1o;
}, 
x_43s: function(x_28) {
var x_66 = this.x_3dg.params;
Ext.apply(x_66, x_28);
}, 
x_43t: function() {
var x_g6 = this.x_2hl.data.items[this.x_42l];
if (undefined === x_g6) {
return null;
}
return x_g6.json;
}, 
x_ao: function(x_1o) {
var x_2o = this.x_2o;
var x_3n9 = x_2o.findRecord(x_2o.valueField, x_1o);
return (x_3n9 ? true : false);
}, 
x_am: function() {
return this.x_2hl.data.length;
}, 
x_2t: function() {
return this.x_2o.getValue();
}, 
x_42x: function () {
var
x_1o,
x_2b = this._kx.x_2vk;
if (true === x_2b.x_42m) {
x_1o = Ext.form.ComboBox.superclass.getValue.call(this);
}
else {
x_1o = this._kx.x_42w.call(this);
}
return x_1o;
},

x_9w: function(x_1o) {
var x_o5 = this.x_2hl,
x_2o = this.x_2o,
x_43u = this.x_42p,
x_fk = x_o5.find(x_43u, x_1o),
x_3n9 = x_o5.getAt(x_fk);
if (undefined === x_1o) {
return;
}
this.x_42l = x_fk;
if (!this.x_42n && (-1 === x_fk)) {
}
if (this.x_43v && this.x_43v[x_1o]) {
x_fk = 0;
x_3n9 = x_o5.getAt(x_fk);
x_1o = x_3n9.data[x_43u];
}
x_2o.setValue(x_1o);
this.x_3yb = x_1o;
if (x_3n9 || true === this.x_42n) { this.x_i5(x_2o, x_3n9, x_fk);
}
}, 
x_vj: function() {
var x_o5 = this.x_2hl,
x_43w = this.x_42l,
x_gc;
if (-1 !== x_43w)	{
x_gc = x_o5.getAt(x_43w).get(this.x_42o);
}
else {
x_gc = this.x_2o.value;
}
return x_gc;
}, 
x_43x: function () {
return this.x_42l;
},

x_1h5: function(x_fk) {
var x_2o = this.x_2o;
var x_3n9 = this.x_2hl.getAt(x_fk);
this.x_9w(x_3n9.data[this.x_42p]);
x_2o.collapse();
}, 
x_43y: function (x_a6) {
var x_fk = this.x_2hl.find(this.x_42o, x_a6);
if (-1 === x_fk) {
kerio.lib.x_nq('Internal error: Record with display field (' + this.x_42o + ') \'' + x_a6 + '\' is not in DataStore', 'formSelect.js');
return;
}
this.x_1h5(x_fk);
},

x_2k: function(x_2er) {
x_2er = (false !== x_2er);
if (this.x_43m && this.x_43n) {
this.x_43n.display = (x_2er) ? '' : 'none';
}
kerio.lib.x_a9.superclass.x_2k.call(this, x_2er);
}, 
x_3nm: function(x_5p) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var
x_2o = this.x_2o,
x_42b = x_2o.getEl(),
x_43z = x_2o.container ? x_2o.container : x_42b,
x_wk = this.x_42n,
x_440 = x_43z.hasClass(this.x_3u4);
if ((x_440 && x_5p) || (!x_440 && !x_5p)) {
return;
}
if (x_5p) {
x_2o.trigger.un('click', x_2o.onTriggerClick);
if (x_wk) {
x_42b.dom.setAttribute('readOnly', true);
}
else {
x_42b.un('mousedown', x_2o.onTriggerClick);
}
x_43z.addClass(this.x_3u4);
}
else {
x_2o.trigger.on('click', x_2o.onTriggerClick, x_2o, {preventDefault:true});
if (x_wk) {
x_42b.dom.removeAttribute('readOnly');
}
else {
x_42b.on('mousedown', x_2o.onTriggerClick, x_2o);
}
x_43z.removeClass(this.x_3u4);
}
}, 
x_8f: function() {
this.x_2hl.removeAll();
this.x_42l = -1;
}, 
x_an: function(x_gk) {
var x_441,
x_41, x_309,
x_3ed = Ext.data.Record.create([{name: this.x_42o}, {name: this.x_42p}]);
if (x_gk instanceof Array) {
for (x_41 = 0, x_309 = x_gk.length; x_41 < x_309; x_41++) {
x_441 = new x_3ed(x_gk[x_41]);
this.x_2hl.add(x_441);
}
}
else {
x_441 = new x_3ed(x_gk);
this.x_2hl.add(x_441);
}
}, 
x_7k: function (x_47, x_3ac, x_442) {
var x_1o,
x_3n9,
x_fk = 0,
x_a7 = this.x_42p,
x_o5 = this.x_2hl;
x_3ac = (true === x_3ac);
if (!x_3ac) {
this.x_8f();
}
this.x_an(x_47);
if (undefined !== x_442) {
x_fk = x_o5.find(x_a7, x_442);
if (x_fk < 0) {
x_fk = 0;
}
}
x_3n9 = x_o5.getAt(x_fk);
x_1o = x_3n9.data[x_a7];
this.x_9w(x_1o);
},

x_443: function(x_1o) {
var x_fk = this.x_2hl.find(this.x_42p, x_1o);
if (-1 === x_fk) {
return -1;
}
return this.x_2hl.getAt(x_fk);
}, 
x_444: function(x_3n9, x_1j) {
var x_1o = x_3n9.data[this.x_42p];
var x_445 = this.x_43v[x_1o];
return !(x_445 && (x_445.id === x_3n9.id));
}, 
x_43q: function() {
if (this.x_43v && (0 < this.x_43v.length)) {
this.x_2hl.filterBy(this.x_444, this);
}
}, 
x_1su: function(x_1o, x_2er) {
if (this.x_317(arguments.callee, arguments)) {
return;
}
var
x_446 = this.x_43v,
x_447 = true,
x_3n9;
if (!this.x_43v) {
if (x_2er) {
return; }
x_446 = [];
this.x_43v = x_446;
this.x_448 = 0;
}
if (x_2er) {
if (x_446[x_1o]) {
delete x_446[x_1o];
this.x_448--;
if (0 === this.x_448) {
this.x_43v = [];
this.x_2hl.clearFilter();
return;
}
}
else {
x_447 = false;
}
}
else {
x_3n9 = this.x_443(x_1o);
if (-1 === x_3n9) {
return;
}
if (!x_446[x_1o]) {
x_446[x_1o] = x_3n9;
this.x_448++;
}
}
if (x_447) {
this.x_43q();
}
}, 
x_42v: function (x_96) {
if (x_96.isSpecialKey()) {
return; }
this.x_42m = true;
this.x_42l = -1;
},

x_3z6: function () {
if (this.x_3n6()) {
this.x_42l = -1;
this.x_42m = true;
}
kerio.lib.x_a9.superclass.x_3z6.apply(this, arguments);
},

x_3za: function(x_4e) {
if (this.x_3h9 != this.x_2o.getRawValue()) {
this.x_42l = -1;
this.x_42m = true;
}
kerio.lib.x_a9.superclass.x_3za.apply(this, arguments);
},

x_3yc: function() {
if (true === this.x_42n) {
kerio.lib.x_a9.superclass.x_3yc.apply(this, arguments);
}
},

x_434: function (x_3sj, x_3n9, x_fk) {
if (true === this.x_42n) {
this.x_42m = false;
}
this.x_i5.apply(this, arguments);
},

x_wk: function () {
return (true === this.x_42n);
},

x_43o: function() {
var
x_uq = this.x_3mz,
x_2o = this.x_2o;
if (x_uq.x_1o == x_2o.getValue()) {
x_2o.setRawValue(x_uq.x_us);
if (x_2o.setIconCls) {
x_2o.setIconCls.call(x_2o);
}
}
},

x_43p: function() {
var
x_uq = this.x_3mz,
x_2o = this.x_2o;
if (true !== x_2o.inEditor && x_uq.x_1o == x_2o.getValue()) {
x_2o.setRawValue(x_uq.x_1o);
}
}
}); Ext.form.ComboBox.prototype._kxp = Ext.apply({}, Ext.form.ComboBox.prototype._kxp, {
x_449: Ext.form.ComboBox.prototype.restrictHeight
});

Ext.form.ComboBox.prototype.restrictHeight = function(){
var x_44a = (null !== this.el.up('.x-toolbar')),
x_ic = this.list,
x_44b;
this._kxp.x_449.call(this);
if (this._kx.x_2vk.x_42t) {
x_ic.setLeft(x_ic.getLeft() - (Ext.isIE ? 23 : 21));  }
if (kerio.lib.x_2ny && !x_44a) {
x_ic.setLeft(x_ic.getLeft());
}
if (kerio.lib.x_1rv && !x_44a) {
x_44b = (null !== this.el.up('.x-window'));
if (!x_44b) {
x_ic.setLeft(x_ic.getLeft() + 1);
}
}
};


kerio.lib.x_2ps = function(x_1j, x_2v) {
var x_29a = kerio.lib.x_6b.x_29k,
x_295 = (x_2v.x_295 || kerio.lib.x_29l() || []).join(':'),
x_29k = [],
x_299,
x_41,
x_42 = x_29a.length;
if ('' === x_295) {
x_29k = x_29a;
}
else {
for (x_41 = 0; x_41 < x_42; x_41++) {
x_299 = x_29a[x_41].x_1j;
if (-1 != x_295.indexOf(x_299)) {
x_29k.push(x_29a[x_41]);
}
}
}
Ext.apply(x_2v, {
x_1p          : 'selectLanguage',
x_a5       : 'x_44c',
x_a7         : 'x_1j',
x_um : 'x_1j',
x_5z          : x_29k,
x_un      : 'flag'  });
kerio.lib.x_2ps.superclass.constructor.call(this, x_1j, x_2v);
}; 
Ext.extend(kerio.lib.x_2ps, kerio.lib.x_a9,

{
});


kerio.lib.x_2po = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2op;
kerio.lib.x_2po.superclass.constructor.call(this, x_1j, x_2v);
}; 
Ext.extend(kerio.lib.x_2po, kerio.lib.x_32r,

{
x_3tx: false,

x_44d: {
width: 10, cls: 'x-form-item %+',
hideLabel: true
},

x_2ql: function(x_2v) {
this.x_3xa = x_2v.x_1o || 0;
this.x_44e = x_2v.x_b5 || 0;
this.x_44f = x_2v.x_kv || {x_1n: '', x_44g: ''};
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_44d, this.x_36n);
var x_1o = (0 === this.x_44e) ? 0 : this.x_3xa / this.x_44e;
this.x_44h = x_1o;
x_3ez.value = x_1o;
this.x_44i = true === x_2v.x_44j;
if (!this.x_44i) {
x_3ez.text = Math.floor(x_1o * 100) + ' %';
}
return new Ext.ProgressBar(x_3ez);
}, 
x_44k: function() {
if(!this.x_2o.rendered) {
return;
}
if (0 === this.x_44e) {
this.x_44l(false, false);
return;
}
var
x_1o,
x_gc = null,
x_44m = (this.x_3xa > this.x_44e),
x_44n = this.x_44l(x_44m);
if (!x_44m) {
x_1o = this.x_44h;
if (!this.x_44i) {
x_gc = Math.floor(x_1o * 100) + ' %';
}
this.x_2o.updateProgress(x_1o, x_gc);
}
if (x_44n) {
this.x_44o();
}
}, 
x_44p: function(x_1o) {
var x_44q = /^[0-9]{1,}[.0-9]{0,}$/;
return x_44q.test(x_1o);
}, 
x_9w: function(x_uv) {
if (undefined !== x_uv) {
if (!this.x_44p(x_uv)) {
return;
}
this.x_3xa = x_uv;
}
this.x_44h = (0 === this.x_44e) ? 0 : this.x_3xa / this.x_44e;
this.x_44k();
}, 
x_44r: function(x_44s) {
if (this.x_44p(x_44s)) {
this.x_44e = x_44s;
this.x_9w();
}
}, 
x_44l: function(x_44t, x_44u) {
x_44t = (false !== x_44t);
if (false !== x_44u) {
x_44u = !x_44t;
}
this.x_44v.style.display = (x_44u) ? 'block' : 'none';
this.x_44w.style.display = (x_44t) ? 'block' : 'none';
if (x_44t || !x_44u) {
this.x_2o.el.addClass('x-form-progress-bar-exceeded');
}
else {
this.x_2o.el.removeClass('x-form-progress-bar-exceeded');
}
var x_44x = x_44u && !this.x_44y;
this.x_44y = x_44u;
return x_44x;
}, 
x_44o: function() {
var x_2o = this.x_2o,
x_1u,
x_1v;
if (2 < Math.abs(this.x_44v.offsetWidth - x_2o.container.dom.offsetWidth)) {
x_2o.el.setWidth(x_2o.container.dom.offsetWidth);
}
x_1u = this.x_44v.offsetWidth;
x_1v = this.x_44v.offsetHeight;x_2o.textEl.setHeight(x_1v);
x_2o.textEl.setWidth(x_1u);
if (2 <= x_2o.progressBar.dom.offsetHeight) {
x_2o.progressBar.dom.style.height = (x_1v - 2) + 'px';
}
x_2o.updateProgress(this.x_44h);
}, 
x_44z: function() {
if (this.x_44f) {
return this.x_44f.x_1n;
}
return '';
}, 
x_450: function(x_1n) {
if (this.x_44f) {
this.x_44f.x_1n = x_1n;
if (this.x_2o.rendered) {
this.x_44w.innerHTML = x_1n;
}
}
}, 
x_2t: Ext.emptyFn
}); Ext.ProgressBar.prototype._kxp = {
x_39m: Ext.ProgressBar.prototype.onRender
};

Ext.ProgressBar.prototype.onRender = function(x_1g, x_35m) {
Ext.ProgressBar.prototype._kxp.x_39m.call(this, x_1g, x_35m);
var x_2vk = this._kx ? this._kx.x_2vk : null;
if (!x_2vk || x_2vk.x_451) {
return;
}
var x_452 = this.el.createChild({
tag: 'div',
style: 'display: none',
cls: x_2vk.x_44f.x_44g
});
x_2vk.x_44w = x_452.dom;
x_452.dom.innerHTML = x_2vk.x_44f.x_1n;
x_2vk.x_44v = this.el.dom.firstChild;
x_2vk.x_451 = true;
var x_453 = this.ownerCt;
x_453.on('afterlayout', x_2vk.x_44o, x_2vk);
x_453.on('show', x_2vk.x_44o, x_2vk);
this.on('show', x_2vk.x_44o, x_2vk);
this.on('resize', x_2vk.x_44o, x_2vk);
this._kx.x_2vk.x_9w();
}; 

kerio.lib.x_2pl = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2os;
kerio.lib.x_2pl.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2pl, kerio.lib.x_2pp,

{
x_3tx: true,
x_454: true,
x_36n: {
x_1j: 'id',
x_23: 'text',
x_6a: 'url',
x_a6: 'inputName' },
x_3ay: Ext.apply({}, kerio.lib.x_2pp.prototype.x_3ay, {
}),
x_455: null,

x_2ql: function(x_2v) {
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n),
x_2o = new kerio.lib.x_456(x_3ez);
this.x_lh = x_2v;
this.x_454 = (false !== x_2v.x_65.x_kr);
x_2o.on('fileselected', this.x_i5, this);
return x_2o;
},

x_2w7: function (x_2v) {
if (x_2v.x_457) {
this.x_458 = x_2v.x_457;
}
if (x_2v.x_1p4) {
this.x_459 = x_2v.x_1p4;
}
},

x_45a: function (x_6v, x_6w) {
if (this.x_459) {
this.x_459.call(this, this.x_9d, this, x_6v, x_6w);
}
},

x_i5: function (x_2o, x_1o) {
if (this.x_lh.x_9t) {
this.x_lh.x_9t.call(this, this.x_9d, this, x_1o);
}
if (this.x_454) {
this.x_lk();
}
},

x_2t: function () {
return this.x_2o.getValue();
},

x_45b: function() {
var x_1c = Ext.DomHelper.append(document.body, {
tag: 'form',
method: 'post',
style: 'position:absolute; left:-10000px; top:-10000px; width:0px; height:0px;'
});
return x_1c;
},

x_45c: function () {
var x_3a5 = true,
x_3xw = this.x_2t();
if (this.x_458) {
x_3a5 = this.x_458.call(this, this.x_9d, this, x_3xw);
}
return x_3a5;
},

x_lk: function () {
if (false === this.x_45c()) {
return;
}
var x_45d = this.x_2o._kx.x_45e,
x_l9 = this.x_45f,
x_65 = this.x_lh.x_65,
x_66 = kerio.lib.x_2rm(x_65.x_66) || {},
x_j4;
if (!x_l9) {
x_l9 = this.x_45b();
this.x_45f = x_l9;
}
x_45d.appendTo(x_l9);
x_66.params = Ext.encode(Ext.apply(x_66.params || {}, this.x_455));
x_j4 = {
x_6a: x_65.x_6a,
x_6p: 'post',
x_1c: x_l9,
x_3bc: true,
x_28: x_66,
x_2q: this,
x_2e: this.x_45a
};
kerio.lib.x_6t.x_6u(x_j4);
x_45d.removeAllListeners();
x_45d.remove();
this.x_2o._kxp.x_45g.call(this.x_2o);
},

x_1p5: function (x_28) {
if (!this.x_455) {
this.x_455 = {};
}
this.x_455 = Ext.apply(this.x_455, x_28);
},

x_2h: function () {
var x_2o = this.x_2o,
x_45d = x_2o._kx.x_45e;
kerio.lib.x_2pl.superclass.x_2h.call(this);

if (x_2o.rendered) {
x_45d.removeAllListeners();
x_45d.remove();
x_2o._kxp.x_45g.call(x_2o);
}
},

x_3nm: function(x_35t){
var x_2o = this.x_2o,
x_45e = x_2o._kx.x_45e,
x_31a = this.x_31l();
kerio.lib.x_2pl.superclass.x_3nm.call(this);
if (this.x_317(arguments.callee, arguments, x_31a)) {
return;
}
x_45e.dom.disabled = x_35t || this.x_31();
x_45e[x_35t ? 'addClass' : 'removeClass']('readonly');
x_2o.button[x_35t ? 'addClass' : 'removeClass']('readonly');
}
});

kerio.lib.x_456 = Ext.extend(Ext.form.TextField, {
text: 'Browse&hellip;',
hideLabel: true,
defaultAutoCreate: Ext.applyIf({
type: 'hidden'
}, Ext.form.TextField.prototype.defaultAutoCreate),

onRender: function (x_3xt, x_35m) {
kerio.lib.x_456.superclass.onRender.call(this, x_3xt, x_35m);
this.wrap = this.el.wrap({cls:'x-form-field-wrap fileUploadWrap'});
this.el.dom.removeAttribute('name');
var x_45h = {
id: this.id + '_' + 'x_1kb',
text: this.text,
renderTo: this.wrap,
cls: 'fileInputButton'
};
this.button = new Ext.Button(x_45h);
this.wrap.setWidth(this.button.getEl().getWidth());
this._kxp.x_45g.call(this);
},

onResize: function (w, h){
kerio.lib.x_456.superclass.onResize.call(this, w, h);
this.wrap.setWidth(w);
},

preFocus: Ext.emptyFn,

getResizeEl: function (){
return this.wrap;
},

getPositionEl: function (){
return this.wrap;
},

disable: function () {
kerio.lib.x_456.superclass.disable.call(this);
this._kxp.x_45i.call(this, true);
},

enable: function () {
kerio.lib.x_456.superclass.enable.call(this);
this._kxp.x_45i.call(this, false);
},

show: function() {
kerio.lib.x_456.superclass.show.call(this);
this._kxp.x_428.call(this, true);
},

hide: function () {
kerio.lib.x_456.superclass.hide.call(this);
this._kxp.x_428.call(this, false);
}
});

kerio.lib.x_456.prototype._kxp = Ext.apply({}, kerio.lib.x_456.prototype._kxp, {
x_45g: function () {
var
x_45j = 50,
x_1kb = this.button,
x_45k = x_1kb.getEl().getWidth(),
x_45e = null;
x_45e = this.wrap.createChild({
id: this.id + '_' + 'x_45l',
name: this.inputName,
cls: 'fileInput',
tag: 'input',
type: 'file',
size: 1
});
x_45e.on('change', this._kxp.x_45m, this);
if (x_45k > 0) {
x_45j = Math.ceil(x_45k / 2);
}
x_45e.setStyle('font-size', x_45j + 'px');
x_45e.on('mouseover', function () {
if (!this.disabled) {
this.el.addClass('x-btn-over');
}
}, x_1kb);
x_45e.on('mouseout', function () {
this.el.removeClass('x-btn-over');
}, x_1kb);
x_45e.on('mousedown', x_1kb.onMouseDown, x_1kb);
kerio.lib.x_2sf(this, {x_45e: x_45e});
this._kxp.x_45i(true === this.disabled);
},
x_45m: function () {
var x_1o = this._kx.x_45e.dom.value;
this.setValue(x_1o);
this.fireEvent('fileselected', this, x_1o);
},

x_45i: function (x_1r) {
var x_45e;
if (!this.rendered) {
return;
}
x_45e = this._kx.x_45e;
this.button[x_1r ? 'disable' : 'enable']();
x_45e.dom.disabled = x_1r || this._kx.x_2vk.x_5p();
x_45e[x_1r ? 'addClass' : 'removeClass']('disabled');
},

x_428: function (x_1v3) {
if (!this.rendered) {
return;
}
this.wrap.setDisplayed(x_1v3);
}
});


kerio.lib.x_2py = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2oz;
kerio.lib.x_2py.superclass.constructor.call(this, x_1j, x_2v);
};
Ext.extend(kerio.lib.x_2py, kerio.lib.x_32r,

{
x_36n: Ext.applyIf({
x_1v: 'height'
}, kerio.lib.x_32r.prototype.x_36n),
x_3ay: {
cls: 'formImage %+'
},

x_2ql: function(x_2v) {
var x_3ez = kerio.lib.x_2sl(x_2v, this.x_3ay, this.x_36n),
x_2o = new kerio.lib.x_45n(x_3ez);
return x_2o;
},

x_2w7: Ext.emptyFn,

x_2t: function () {
return this.x_2o.getValue();
},

x_9w: function (x_1o) {
this.x_2o.setValue(x_1o);
}
});

kerio.lib.x_45n = Ext.extend(Ext.form.Field, {
hideLabel: true,
defaultAutoCreate: {
tag: 'img',
border: 0
},

onRender: function (x_3xt, x_35m) {
var x_41v = null,
x_45o = '';
kerio.lib.x_45n.superclass.onRender.call(this, x_3xt, x_35m);
x_41v = this.el.dom;
x_45o = this._kxp.x_45p.call(this, this.value);
this._kxp.x_45q.call(this, x_45o);
x_41v.removeAttribute('name');
},

preFocus: Ext.emptyFn,

initValue: function () {
if (undefined !== this.value) {
this.setValue(this.value);
}
},

setValue: function (x_1o) {
var x_45o = '';
this.value = x_1o;
if(this.rendered){
this.el.dom.src = x_1o;
x_45o = this._kxp.x_45p.call(this, x_1o);
this._kxp.x_45q.call(this, x_45o);
}
},

getValue: function () {
return this.value;
},

setSize: function(x_1u, x_1v) {
var	x_2n = {};
kerio.lib.x_45n.superclass.setSize.call(this, x_1u, x_1v);
if (this.rendered) {
if('object' !== Ext.type(x_1u)){
x_2n.x_1u = x_1u;
x_2n.x_1v = x_1v;
}
else {
x_2n = x_1u;
}
this._kxp.x_45r.call(this, x_2n);
}
}
});

kerio.lib.x_45n.prototype._kxp = Ext.apply({}, kerio.lib.x_45n.prototype._kxp, {

x_45r: function (x_2n) {
var x_41v = null;
if (!this.rendered) {
return;
}
x_41v = this.el.dom;
if (undefined !== x_2n.x_1u) {
x_41v.setAttribute('width', x_2n.x_1u);
}
if (undefined !== x_2n.x_1v) {
x_41v.setAttribute('height', x_2n.x_1v);
}
},

x_45p: function (x_2nc) {
if (!x_2nc) {
return '';
}
var x_45o = x_2nc.substr(x_2nc.lastIndexOf('/') + 1),
x_45s = x_45o.lastIndexOf('?');
if (-1 !== x_45s) {
x_45o = x_45o.substr(0, x_45s);
}
return x_45o;
},

x_45q: function (x_45t) {
if (this.rendered) {
this.el.dom.setAttribute('alt', x_45t);
}
}
});


kerio.lib.x_kz = function(x_1j, x_2v) {
this.x_3h = kerio.lib.x_6b.x_2or;
if (!x_2v.x_1p) {
x_2v.x_1p = 'wizard';
}
else {
x_2v.x_1p += ' wizard';
}
kerio.lib.x_kz.superclass.constructor.call(this, x_1j, x_2v);
this.x_2w7(x_2v);
this.x_45u = true;    this.x_45v = '<div class="wizardHeader">{x_45w} - {x_10y}</div>';
this.x_45x = [];
this.x_45y = [];
this.x_m5 = 0;
this.x_2vv = {
x_45z: false,
x_460: false,
x_32: null,
x_461: null,
x_462: null,
x_463: null
};
this.x_464 = null;
if (false === x_2v.x_t3) {
this.x_45u = false;
}
this.x_465();
this.x_2o.on('render', function(){
this.x_466();
this.x_467(0);
}, this);
};

kerio.lib.x_36(kerio.lib.x_kz, kerio.lib.x_py,

{

x_2w7: function(x_2v) {
if (x_2v.x_468) {
this.x_469 = x_2v.x_468;
}
if (x_2v.x_46a) {
this.x_46b = x_2v.x_46a;
}
},

x_466: function() {
var x_46c = this.x_2o.header.child('.x-tab-strip-wrap');
if (this.x_45u) {
x_46c.applyStyles('display: none');
}
else {
x_46c.applyStyles('display: none');
}
},

x_46d: function () {
var x_46c = this.x_2o.header.child('.x-tab-strip-wrap');
var x_46e = new Ext.Template(this.x_45v);
x_46e.compile();
x_46e.x_9d = x_46c.insertSibling({tag: 'div', id: this.x_1j + '_header'}, 'before');
this.x_464 = x_46e;
},

x_465: function() {
var x_46f;
var x_45x = this.x_45x;
var x_2o = this.x_2o;
var x_m4 = x_2o.getActiveTab();
for (var x_31y in this.x_1e) {
if (x_31y.indexOf(this.x_3fu) !== -1) {
x_31y = x_31y.substr(this.x_3fu.length);
}
x_46f = this.x_3gc(x_31y);
if (x_46f instanceof Ext.Panel) {    x_45x.push(x_31y);
if (x_m4 && (x_m4.getId() == x_46f.getId())) {
this.x_m5 = x_45x.length - 1;
}
}
}
},

x_467: function(x_av) {
var x_46g = (0 !== x_av);
if ((x_46g && undefined !== this.x_469) && (false === this.x_469(this))) {
return;
}
var x_46h = this.x_m5 + x_av;
var x_ln = this.x_2vv;
var x_32 = x_ln.x_32;
var x_46i = this.x_2o.items.length; var x_46j = this.x_45y.length;
var x_46f, x_31y, x_41, x_46k;
var x_46l = x_46h + 1;
var x_46m = 0;
var x_46n = 0;
var x_46o;
var x_45y;
var x_46p;
var x_1n;
if (x_46j > 0) {
if (x_av < 0) {
for (x_41 = x_46h; x_41 >= 0; x_41--) {
if (this.x_46q(x_46h)) {
this.x_m5--;
x_46h--;
x_46l--;
}
}
}
if (x_av > 0) {
for (x_41 = x_46h; x_41 < x_46i; x_41++) {
if (this.x_46q(x_46h)) {
this.x_m5++;
x_46h++;
x_46l++;
}
}
}
if (0 === x_av && 0 === this.x_m5) {
for (x_41 = 0; x_41 < x_46i; x_41++) {
if (this.x_46q(this.x_m5)) {
this.x_m5++;
x_46h++;
x_46l++;
}
}
}
x_46o = this.x_45x;
x_45y = this.x_45y;
for (x_41 = 0; x_41 < x_46i; x_41++) {
for (x_46k = 0; x_46k < x_46j; x_46k++) {
if (x_41 < x_46h) { if (x_46o[x_41] == x_45y[x_46k]) {
x_46m++;
}
}
else if (x_41 > (x_46h + 1)) { if (x_46o == x_45y[x_46k]) {
x_46n++;
}
}
}
}
x_46l -= x_46m;
}
if (x_46h < x_46i && x_46h >= 0) {
this.x_m5 = x_46h;
x_31y = this.x_45x[x_46h];
x_46f = this.x_3gc(x_31y);
kerio.lib.x_py.prototype.x_lf.call(this, x_31y);
if (this.x_45u) {
x_46p = { x_49: [x_46l], x_fo: x_46i };
switch ((x_46i - x_46j)) {
case 2: x_1n = kerio.lib.x_x(	'page %1 of 2', 'common', x_46p); break;
case 3: x_1n = kerio.lib.x_x(	'page %1 of 3', 'common', x_46p); break;
case 4: x_1n = kerio.lib.x_x(	'page %1 of 4', 'common', x_46p); break;
case 5: x_1n = kerio.lib.x_x(	'page %1 of 5', 'common', x_46p); break;
case 6: x_1n = kerio.lib.x_x(	'page %1 of 6', 'common', x_46p); break;
case 7: x_1n = kerio.lib.x_x(	'page %1 of 7', 'common', x_46p); break;
case 8: x_1n = kerio.lib.x_x(	'page %1 of 8', 'common', x_46p); break;
}
if (!this.x_464) {
this.x_46d();
}
this.x_464.overwrite(this.x_464.x_9d,
{x_45w: x_46f.title, x_10y: x_1n}
);
}
}
x_ln.x_45z = (x_46h - x_46m <= 0);
x_ln.x_460 = (x_46h + x_46n >= x_46i - 1);
if (x_32) {
x_32.x_3b(x_ln.x_461, !x_ln.x_45z);
x_32.x_3b(x_ln.x_462, !x_ln.x_460);
if (x_ln.x_463) {
x_32.x_jp(x_ln.x_462, !x_ln.x_460);
x_32.x_jp(x_ln.x_463, x_ln.x_460);
}
}
if (x_46g && (undefined !== this.x_46b)) {
this.x_46b(this);
}
},

x_m6: function(x_1le) {
var x_2z9 = -1;
if (true === x_1le) { this.x_46r(x_2z9);
}
else {
this.x_467(x_2z9);
}
},

x_m7: function(x_1le) {
var x_2z9 = +1;
if (true === x_1le) { this.x_46r(x_2z9);
}
else {
this.x_467(x_2z9);
}
},

x_46r: function(x_2z9) {
var
x_32i = this.x_tc(),
x_q1 = this.x_3gj(this.x_45x[x_32i]),
x_32o = new kerio.lib.x_46s(this);
if (!x_q1 || !x_q1.x_32m) {
this.x_467(x_2z9);
return;
}
x_32o.x_55(x_q1.x_32m(true));
if (x_32o.x_o4(true, x_2z9)) {
this.x_467(x_2z9);
}
},

x_46t: function(x_2v) {
var
x_32 = x_2v.x_32,
x_ln = this.x_2vv,
x_2d8 = x_2v.x_2d8;
if (false !== x_2d8 && true !== x_2d8) { x_2d8 = kerio.lib.x_6b.x_107;
}
x_ln.x_32 = x_32;
x_ln.x_461 = x_2v.x_461;
x_ln.x_462 = x_2v.x_462;
x_ln.x_463 = x_2v.x_463;
x_ln.x_2d8 = x_2d8;
this.x_2o.on('render', this.x_46u, this);
},

x_46u: function() {
var
x_ln = this.x_2vv,
x_2d8 = x_ln.x_2d8,
x_32 = x_ln.x_32,
x_46v = x_32.x_1e[x_ln.x_461],
x_46w = x_32.x_1e[x_ln.x_462],
x_2se = kerio.lib.x_2sf;
x_2se(x_46v, {
x_k4: this,
x_46x: x_46v.handler,
x_2d8: x_2d8 }); x_46v.handler = function(x_32) {
var x_37n = this._kx;
if (x_37n.x_46x) {
if (false === x_37n.x_46x.call(this, x_32)) {
return;
}
}
x_37n.x_k4.x_m6(x_37n.x_2d8);
};
x_2se(x_46w, {
x_k4: this,
x_46x: x_46w.handler,
x_2d8: x_2d8 }); x_46w.handler = function(x_32) {
var x_37n = this._kx;
if (x_37n.x_46x) {
if (false === x_37n.x_46x.call(this, x_32)) {
return;
}
}
x_37n.x_k4.x_m7(x_37n.x_2d8);
};
if (x_ln.x_463) {
x_32.x_jq(x_ln.x_463);
}
},

x_2h: function() {
this.x_m5 = 0;
this.x_467(0);
},

x_lf: function(x_31y) {
var x_45x = this.x_45x;
for (var x_41 = 0, x_42 = x_45x.length; x_41 < x_42; x_41++) {
if (x_31y == x_45x[x_41]) {
this.x_m5 = x_41;
break;
}
}
this.x_467(0);
},

x_46y: function(x_31y) {
var x_36z = this.x_45y;
for (var x_41 = 0, x_42 = x_36z.length; x_41 < x_42; x_41++) {
if (x_36z[x_41] == x_31y) {
return;
}
}
x_36z.push(x_31y);
this.x_467(0);
},

x_46z: function(x_31y) {
var x_36z = this.x_45y;
var x_470 = [];
for (var x_41 = 0, x_42 = x_36z.length; x_41 < x_42; x_41++) {
if (x_36z[x_41] != x_31y) {
x_470.push(x_36z[x_41]);
}
}
this.x_45y = x_470;
this.x_467(0);
},

x_tc: function() {
return this.x_m5;
},

x_46q: function(x_32i) {
for (var x_46k = 0, x_42 = this.x_45y.length; x_46k < x_42; x_46k++) {
if (this.x_45x[x_32i] == this.x_45y[x_46k]) {
return true;
}
}
return false;
},

x_32m: function(x_1g4) {
var
x_32o = new kerio.lib.x_32p(),
x_pz = this.x_1e,  x_32i = -1,        x_31y,                x_3gk,               x_3gl;          for (x_31y in x_pz) {
x_3gk = x_pz[x_31y];
x_32i++; if (!x_3gk || !x_3gk._kx || !x_3gk._kx.x_2vk) {
continue; }
x_3gl = x_3gk._kx.x_2vk; if (!x_3gl.x_32m) {
continue; }
if (this.x_46q(x_32i) || x_3gk.disabled) {
continue;
}
x_32o.x_55(              x_3gl.x_32m(x_1g4),
x_32o.x_32q         ); } return x_32o;
} });    

kerio.lib.x_113 = function() {
var x_1b = kerio.lib,
x_x = x_1b.x_x;
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">' + x_x("Loading…", "extJs") + '</div>';
if(Ext.View){
Ext.View.prototype.emptyText = '';
}
if(Ext.grid.Grid){
Ext.grid.Grid.prototype.ddText = x_x("{0} selected row(s)", "extJs_grid");
}
if(Ext.TabPanelItem){
Ext.TabPanelItem.prototype.closeText = x_x("Close this tab", "extJs_tabPanel");
}
if(Ext.form.Field){
Ext.form.Field.prototype.invalidText = x_x("The value in this field is invalid", "extJs_field");
}
if(Ext.LoadMask){
Ext.LoadMask.prototype.msg = x_x("Loading…", "extJs");
}
Date.monthNames = [
x_x("January", "extJs_monthNames"),
x_x("February", "extJs_monthNames"),
x_x("March", "extJs_monthNames"),
x_x("April", "extJs_monthNames"),
x_x("May", "extJs_monthNames"),
x_x("June", "extJs_monthNames"),
x_x("July", "extJs_monthNames"),
x_x("August", "extJs_monthNames"),
x_x("September", "extJs_monthNames"),
x_x("October", "extJs_monthNames"),
x_x("November", "extJs_monthNames"),
x_x("December", "extJs_monthNames")
];
Date.getShortMonthName = function(month) {
return Date.monthNames[month].substring(0, 3);
};
Date.monthNumbers = {
Jan : 0,
Feb : 1,
Mar : 2,
Apr : 3,
May : 4,
Jun : 5,
Jul : 6,
Aug : 7,
Sep : 8,
Oct : 9,
Nov : 10,
Dec : 11
};
Date.getMonthNumber = function(name) {
return Date.monthNumbers[name.substring(0, 1).toUpperCase() + name.substring(1, 3).toLowerCase()];
};
Date.dayNames = [
x_x("Sunday", "extJs_dayNames"),
x_x("Monday", "extJs_dayNames"),
x_x("Tuesday", "extJs_dayNames"),
x_x("Wednesday", "extJs_dayNames"),
x_x("Thursday", "extJs_dayNames"),
x_x("Friday", "extJs_dayNames"),
x_x("Saturday", "extJs_dayNames")
];
Date.getShortDayName = function(day) {
return Date.dayNames[day].substring(0, 3);
};
if(Ext.MessageBox){
Ext.MessageBox.buttonText = {
ok     : x_x("OK", "extJs_messageBox"),
cancel : x_x("Cancel", "extJs_messageBox"),
yes    : x_x("Yes", "extJs_messageBox"),
no     : x_x("No", "extJs_messageBox")
};
}
if(Ext.util.Format){
Ext.util.Format.date = function(v, format){
if(!v) {return '';} 
if(!(v instanceof Date)) {v = new Date(Date.parse(v));}
return v.dateFormat(format || kerio.lib.x_x("m/d/Y", "extJs_dateFormat"));
};
}
if(Ext.DatePicker){
Ext.apply(Ext.DatePicker.prototype, {
todayText         : x_x("Today", "extJs_datePicker"),
minText           : x_x("This date is before the minimum date", "extJs_datePicker"),
maxText           : x_x("This date is after the maximum date", "extJs_datePicker"),
disabledDaysText  : '', disabledDatesText : '', monthNames        : Date.monthNames,
dayNames          : Date.dayNames,
nextText          : x_x("Next Month (Control+Right)", "extJs_datePicker"),
prevText          : x_x("Previous Month (Control+Left)", "extJs_datePicker"),
monthYearText     : x_x("Choose a month (Control+Up/Down to move years)", "extJs_datePicker"),
todayTip          : x_x("{0} (Spacebar)", "extJs_datePicker"),
format            : x_x("m/d/y", "extJs_datePicker"),
okText            : "&#160;" + x_x("OK", "extJs_datePicker") + "&#160;",
cancelText        : x_x("Cancel", "extJs_datePicker"),
startDay          : 0
});
}
if(Ext.PagingToolbar){
Ext.apply(Ext.PagingToolbar.prototype, {
beforePageText : x_x("Page", "extJs_paging"),
afterPageText  : x_x("of {0}", "extJs_paging"),
firstText      : x_x("First Page", "extJs_paging"),
prevText       : x_x("Previous Page", "extJs_paging"),
nextText       : x_x("Next Page", "extJs_paging"),
lastText       : x_x("Last Page", "extJs_paging"),
refreshText    : x_x("Refresh", "extJs_paging"),
displayMsg     : x_x("Displaying {0} - {1} of {2}", "extJs_paging"),
emptyMsg       : x_x("No data to display", "extJs_paging")
});
}
if(Ext.form.TextField){
Ext.apply(Ext.form.TextField.prototype, {
minLengthText : x_x("The minimum length for this field is {0}", "extJs_textField"),
maxLengthText : x_x("The maximum length for this field is {0}", "extJs_textField"),
blankText     : x_x("This field is required", "extJs_textField"),
regexText     : '', emptyText     : null
});
}
if(Ext.form.NumberField){
Ext.apply(Ext.form.NumberField.prototype, {
minText : x_x("The minimum value for this field is {0}", "extJs_numberField"),
maxText : x_x("The maximum value for this field is {0}", "extJs_numberField"),
nanText : x_x("{0} is not a valid number", "extJs_numberField")
});
}
if(Ext.form.DateField){
Ext.apply(Ext.form.DateField.prototype, {
disabledDaysText  : x_x("Disabled", "extJs_dateField"),
disabledDatesText : x_x("Disabled", "extJs_dateField"),
minText           : x_x("The date in this field must be after {0}", "extJs_dateField"),
maxText           : x_x("The date in this field must be before {0}", "extJs_dateField"),
invalidText       : x_x("{0} is not a valid date - it must be in the format {1}", "extJs_dateField"),
format            : x_x("m/d/y", "extJs_dateField"),
altFormats        : x_x("m/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d", "extJs_dateField")
});
}
if(Ext.form.ComboBox){
Ext.apply(Ext.form.ComboBox.prototype, {
loadingText       : x_x("Loading…", "extJs"),
valueNotFoundText : undefined
});
}
if(Ext.form.VTypes){
Ext.apply(Ext.form.VTypes, {
emailText    : x_x("This field should be an email address in the format user@domain.com", "extJs_vTypes"),
urlText      : x_x("This field should be a URL in the format ", "extJs_vTypes")+x_x("/www.domain.com", "extJs_vTypes"),
alphaText    : x_x("This field should only contain letters and _", "extJs_vTypes"),
alphanumText : x_x("This field should only contain letters, numbers and _", "extJs_vTypes")
});
}
if(Ext.form.HtmlEditor){
Ext.apply(Ext.form.HtmlEditor.prototype, {
createLinkText : x_x("Please enter the URL for the link:", "extJs_htmlEditor"),
buttonTips : {
bold : {
title: x_x("Bold (Ctrl+B)", "extJs_htmlEditor"),
text: x_x("Make the selected text bold.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
italic : {
title: x_x("Italic (Ctrl+I)", "extJs_htmlEditor"),
text: x_x("Make the selected text italic.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
underline : {
title: x_x("Underline (Ctrl+U)", "extJs_htmlEditor"),
text: x_x("Underline the selected text.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
increasefontsize : {
title: x_x("Grow Text", "extJs_htmlEditor"),
text: x_x("Increase the font size.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
decreasefontsize : {
title: x_x("Shrink Text", "extJs_htmlEditor"),
text: x_x("Decrease the font size.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
backcolor : {
title: x_x("Text Highlight Color", "extJs_htmlEditor"),
text: x_x("Change the background color of the selected text.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
forecolor : {
title: x_x("Font Color", "extJs_htmlEditor"),
text: x_x("Change the color of the selected text.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
justifyleft : {
title: x_x("Align Text Left", "extJs_htmlEditor"),
text: x_x("Align text to the left.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
justifycenter : {
title: x_x("Center Text", "extJs_htmlEditor"),
text: x_x("Center text in the editor.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
justifyright : {
title: x_x("Align Text Right", "extJs_htmlEditor"),
text: x_x("Align text to the right.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
insertunorderedlist : {
title: x_x("Bullet List", "extJs_htmlEditor"),
text: x_x("Start a bulleted list.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
insertorderedlist : {
title: x_x("Numbered List", "extJs_htmlEditor"),
text: x_x("Start a numbered list.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
createlink : {
title: x_x("Hyperlink", "extJs_htmlEditor"),
text: x_x("Make the selected text a hyperlink.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
},
sourceedit : {
title: x_x("Source Edit", "extJs_htmlEditor"),
text: x_x("Switch to source editing mode.", "extJs_htmlEditor"),
cls: "x-html-editor-tip"
}
}
});
}
if(Ext.grid.GridView){
Ext.apply(Ext.grid.GridView.prototype, {
sortAscText  : x_x("Sort Ascending", "extJs_gridView"),
sortDescText : x_x("Sort Descending", "extJs_gridView"),
lockText     : x_x("Lock Column", "extJs_gridView"),
unlockText   : x_x("Unlock Column", "extJs_gridView"),
columnsText  : x_x("Columns", "extJs_gridView"),
emptyText    : x_x("Nothing to display", "extJs_gridView")
});
}
if(Ext.grid.GroupingView){
Ext.apply(Ext.grid.GroupingView.prototype, {
emptyGroupText : x_x("(None)", "extJs_groupingView"),
groupByText    : x_x("Group By This Field", "extJs_groupingView"),
showGroupsText : x_x("Show in Groups", "extJs_groupingView")
});
}
if(Ext.grid.PropertyColumnModel){
Ext.apply(Ext.grid.PropertyColumnModel.prototype, {
nameText   : x_x("Name", "extJs_propertyColumnModel"),
valueText  : x_x("Value", "extJs_propertyColumnModel"),
dateFormat : x_x("m/j/Y", "extJs_propertyColumnModel")
});
}
if(Ext.layout.BorderLayout.SplitRegion){
Ext.apply(Ext.layout.BorderLayout.SplitRegion.prototype, {
splitTip            : x_x("Drag to resize.", "extJs_splitRegion"),
collapsibleSplitTip : x_x("Drag to resize. Double-click to hide.", "extJs_splitRegion")
});
}
Ext.apply(x_1b.x_6t, { x_3bd: {
x_zr: x_x('The server is not responding.', 'extJs_ajax'),
x_zs: x_x('The server returned an invalid response.', 'extJs_ajax')
}});
Ext.apply(x_1b.x_26.prototype, {
x_3su: Ext.apply(x_1b.x_26.prototype.x_3su, {
x_1n: x_x('Saving…', 'extJs')
})
});
Ext.apply(x_1b.x_4g.prototype, {
x_3oo: x_x('Print', 'extJs'),
x_3rh: x_x('Print Preview', 'extJs')
});
x_1b.x_6b.x_29k = [
{x_1j: 'cs', x_29j: 'flag cs', x_23: 'Čeština'   , x_44c: x_x('Czech'     , 'kLib')},
{x_1j: 'de', x_29j: 'flag de', x_23: 'Deutsch'   , x_44c: x_x('German'    , 'kLib')},
{x_1j: 'en', x_29j: 'flag en', x_23: 'English'   , x_44c: x_x('English'   , 'kLib')},
{x_1j: 'es', x_29j: 'flag es', x_23: 'Español'   , x_44c: x_x('Spanish'   , 'kLib')},
{x_1j: 'fr', x_29j: 'flag fr', x_23: 'Français'  , x_44c: x_x('French'    , 'kLib')},
{x_1j: 'hr', x_29j: 'flag hr', x_23: 'Hrvatski'  , x_44c: x_x('Croatian'  , 'kLib')},
{x_1j: 'hu', x_29j: 'flag hu', x_23: 'Magyar'    , x_44c: x_x('Hungarian' , 'kLib')},
{x_1j: 'it', x_29j: 'flag it', x_23: 'Italiano'  , x_44c: x_x('Italian'   , 'kLib')},
{x_1j: 'ja', x_29j: 'flag ja', x_23: '日本語'     , x_44c: x_x('Japanese'  , 'kLib')},
{x_1j: 'nl', x_29j: 'flag nl', x_23: 'Nederlands', x_44c: x_x('Dutch'     , 'kLib')},
{x_1j: 'pl', x_29j: 'flag pl', x_23: 'Polski'    , x_44c: x_x('Polish'    , 'kLib')},
{x_1j: 'pt', x_29j: 'flag pt', x_23: 'Português' , x_44c: x_x('Portuguese', 'kLib')},
{x_1j: 'ru', x_29j: 'flag ru', x_23: 'Русский'   , x_44c: x_x('Russian'   , 'kLib')},
{x_1j: 'sk', x_29j: 'flag sk', x_23: 'Slovenčina', x_44c: x_x('Slovak'    , 'kLib')},
{x_1j: 'sv', x_29j: 'flag sv', x_23: 'Svenska'   , x_44c: x_x('Swedish'   , 'kLib')},
{x_1j: 'zh', x_29j: 'flag zh', x_23: '中文'       , x_44c: x_x('Chinese'   , 'kLib')}
];
x_1b.x_6b.x_37i = [
{x_1j: 'FFFFFF',       x_23: x_x('White', 'kLib'),       x_cy: 'colorItem backgroundFFFFFF'},
{x_1j: 'FFFFCC',      x_23: x_x('Yellow', 'kLib'),      x_cy: 'colorItem backgroundFFFFCC'},
{x_1j: 'CCFFFF',        x_23: x_x('Blue', 'kLib'),        x_cy: 'colorItem backgroundCCFFFF'},
{x_1j: 'FFCCCC',         x_23: x_x('Red', 'kLib'),         x_cy: 'colorItem backgroundFFCCCC'},
{x_1j: 'CCFFCC',       x_23: x_x('Green', 'kLib'),       x_cy: 'colorItem backgroundCCFFCC'},
{x_1j: 'CCCCFF',     x_23: x_x('Magenta', 'kLib'),     x_cy: 'colorItem backgroundCCCCFF'},
{x_1j: 'FFCCFF',        x_23: x_x('Pink', 'kLib'),        x_cy: 'colorItem backgroundFFCCFF'},
{x_1j: 'CCCCCC',        x_23: x_x('Grey', 'kLib'),        x_cy: 'colorItem backgroundCCCCCC'}
];
x_1b.x_6b.x_2pa.x_1n = x_x('Please wait…', 'kLib');
};  

kerio.lib.x_471 = function(x_472) {
this.x_34n = [];
};
Ext.apply(kerio.lib.x_471.prototype, {

x_55: function(x_74, x_28, x_2q, x_473) {
var
x_474 = this.x_34n,
x_475;
if ('function' !== typeof x_74) {
return;
}
if (!x_28 || Array !== x_28.constructor) {
x_28 = [ x_28 ];
}
x_475 = {
x_74: x_74,
x_28: x_28,
x_2q: x_2q
};
if (true === x_473) {
x_474.unshift(x_475);  }
else {
x_474.push(x_475);  }
}, 
x_476: function() {
return this.x_34n.length;
},

x_477: function() {
return 0 === this.x_476();
},

x_2zx: function() {
var x_478 = this.x_476();
this.x_34n = [];
return x_478;
}, 
x_479: function(x_47a, x_47b) {
var
x_474 = this.x_34n,
x_31g,
x_47c,
x_41,
x_42;
for (x_41 = 0, x_42 = x_474.length; x_41 < x_42; x_41++) {
x_31g = x_474[x_41];
x_47c = (x_47b)
? x_47a
: x_31g.x_2q || x_47a || window;
x_31g.x_74.apply(x_47c, x_31g.x_28);
delete x_474[x_41];
} this.x_2zx();
}, 
x_47d: function() {
this.x_479(this);
},

x_47c: function(x_2q) {
this.x_479(x_2q, true);
},

x_1gr: function() {
var x_47e = new kerio.lib.x_471();
x_47e.x_34n = kerio.lib.x_9m(this.x_34n);
return x_47e;
},

x_1mt: function(x_47f) {
if (x_47f instanceof kerio.lib.x_471) {
this.x_34n = this.x_34n.concat(x_47f.x_34n);
return this.x_476();
}
else {
return -1;
}
}
}); 

kerio.lib.x_32p = function() {
this.x_47g = 0;
this.x_47h = 0;
this.x_2q5 = new kerio.lib.x_471();
this.x_47i = null;
this.x_32q = true; };
Ext.apply(kerio.lib.x_32p.prototype, {

x_32t: function(x_47j) {
if (x_47j) {
this.x_47h++;
}
else {
this.x_47g++;
}
return this.x_3gi(); }, 
x_55: function(x_47f, x_47k) {
if (x_47f instanceof kerio.lib.x_32p) {
if (false !== x_47k) {
this.x_2q5.x_1mt(x_47f.x_2q5);
}
this.x_47h += x_47f.x_47h;
this.x_47g += x_47f.x_47g;
return this.x_3gi(); }
else {
kerio.lib.x_nq('Internal error: invalid result of x_o4 method!');
return -1;
}
}, 
x_32s: function(x_74, x_28, x_2q, x_473) {
this.x_2q5.x_55(x_74, x_28, x_2q, x_473);
}, 
x_3gi: function(x_47l) {
var
x_3zb = this.x_47g,
x_47m = this.x_47h;
this.x_32q = (0 === x_3zb && 0 === x_47m);
switch (x_47l) {
case true:
return x_47m;
case false:
return x_3zb;
default:
return (x_3zb + x_47m);
}
}, 
x_o4: function(x_bf) {
if (true === x_bf) { this.x_47n();
}
return 0 === this.x_3gi();
}, 
x_47n: function() {
var x_1n;
if (this.x_o4()) {
return; }
x_1n = this.x_47o();
this.x_2q5.x_47d();
kerio.lib.x_48(x_1n.x_1y, x_1n.x_1n);
}, 
x_47o: function() {
var
x_47p = this.x_3gi(),
x_47q      = this.x_3gi(false),
x_47r      = this.x_3gi(true),
x_x = kerio.lib.x_x,
x_1n,
x_1y;
switch (x_47p) {
case 0:
x_1n = ''; break;
case 1:
if (x_47r) {
x_1n = x_x('Highlighted field is required.', 'kLib');
} else {
x_1n = x_x('Highlighted field is incorrect.', 'kLib');
} break;
default: if (0 === x_47q) { x_1n = x_x('Highlighted fields are required.', 'kLib');
} else if (0 === x_47r) { x_1n = x_x('Highlighted fields are incorrect.', 'kLib');
} else { x_1n = x_x('Highlighted fields are required or incorrect.', 'kLib');
} break;
} x_1y = x_x('Validation warning', 'kLib');
return {
x_1n: x_1n,
x_1y:   x_1y
};
} }); 
kerio.lib.x_46s = function(x_k4) {
kerio.lib.x_46s.superclass.constructor.call(this);
if (x_k4 && kerio.lib.x_6b.x_2or === x_k4.x_3h) {
this.x_47i = x_k4;
}
else {
kerio.lib.x_nq('Internal error: invalid widget for WizardValidationResults constructor!');
return null;
}
this.x_47s = 0; };
Ext.extend(kerio.lib.x_46s, kerio.lib.x_32p, {


x_o4: function(x_bf, x_2z9) {
if (true === x_bf) { this.x_47n(x_2z9);
}
return 0 === this.x_3gi();
},

x_47n: function(x_2z9) {
var x_1n;
if (this.x_o4()) {
return; }
x_1n = this.x_47o();
this.x_47s = x_2z9;
kerio.lib.x_4b(x_1n.x_1y, x_1n.x_1n, this.x_47t, this, 'Yes');
}, 
x_47t: function(x_6v) {
var x_k4 = this.x_47i;
if ('yes' === x_6v) {
this.x_2q5.x_47d();
}
else {
if (0 > this.x_47s) {
x_k4.x_m6();
}
else {
x_k4.x_m7();
}
}
}, 
x_47o: function() {
var
x_47p = this.x_3gi(),
x_47q      = this.x_3gi(false),
x_47r      = this.x_3gi(true),
x_k4 = this.x_47i,
x_47u = (null !== x_k4),
x_x = kerio.lib.x_x,
x_47v = '<br>', x_1n,
x_1y;
x_1n = this.constructor.superclass.x_47o.call(this); x_1n = x_1n.x_1n; x_1n += x_47v;
switch (x_47p) {
case 0:
x_1n = '';  break;
case 1:
if (x_47r) {
x_1n += x_x('Do you want to specify it now?', 'kLib');
} else {
x_1n += x_x('Do you want to fix it now?', 'kLib');
} break;
default: if (0 === x_47q) { x_1n += x_x('Do you want to specify them now?', 'kLib');
} else if (0 === x_47r) { x_1n += x_x('Do you want to fix them now?', 'kLib');
} else { x_1n += x_x('Do you want to fix them now?', 'kLib');
} break;
} x_1y = x_x('Page validation warning', 'kLib');
return {
x_1n: x_1n,
x_1y:   x_1y
};
} }); 

kerio.lib.x_47w = function (x_2v) {
kerio.lib.x_47w.superclass.constructor.call(this, x_2v);
this.store.on('load', this._kxp.x_47x, this);
};
Ext.extend(kerio.lib.x_47w, Ext.DataView,

{
refresh: Ext.emptyFn,
_kxp: {
x_hg: function(){
this._kxp.x_47y.call(this);
kerio.lib.x_47w.superclass.refresh.call(this);
},
x_47y: function () {
if (this.store.getCount() <= 0) {
this.setWidth(this.el.findParent('.x-panel-bwrap', 5, true).down('.x-panel-body').getWidth(true));
}
else {
this.setWidth(this.width);
}
},
x_47x: function () {
var x_47z;
if (this.store.getCount() <= 0) {
this.el.update(this.emptyText);
x_47z = this.el.child('.x-grid-empty');
x_47z.setDisplayed(true);
this.store.un('load', this._kxp.x_47x);
}
}
}
});


kerio.lib.x_2jf = function(x_1j, x_2v) {
var
x_1b = kerio.lib,
x_480,
x_2o;
this.x_3h = kerio.lib.x_6b.x_2p0;
x_2v = kerio.lib.x_2r7(x_2v);
x_2v = x_1b.x_2sl.call(this, x_2v, this.x_3ay);
x_480 = x_2v.x_65;
this.x_2jk = {
x_3hs: x_2v.x_3hs,
x_2lk: x_2v.x_2lk,
x_481: x_2v.x_481,
x_2jg: x_2v.x_2jg,
x_69: x_480.x_69 || 'totalItems',
x_68: x_480.x_68 || 'data',
x_2jj: x_480.x_2jj || 'start',
x_2jl: x_480.x_2jl || 'limit',
x_2j0: x_2v.x_2j0
};
x_1b.x_2jf.superclass.constructor.call(this, x_1j, x_2v);
this.x_1j = x_1j;
this.x_2vv = {};
this.x_2zw = new kerio.lib.x_2zv();  this.x_482 = false;                         x_2o = this.x_2ql(x_2v);
this.x_2o = x_2o;
this.x_356(x_2v, x_2o);
x_1b.x_2sf(x_2o, {x_2vk: this});
x_1b.x_2qj(this, x_1j);
this.x_3de = false !== x_2v.x_67;
if (x_2v.x_5t) {
this.x_39l(x_2v.x_5t);
}

if (this.x_3de) {
this.x_1za.load(this.x_3dg);
}
}; Ext.extend(kerio.lib.x_2jf, kerio.lib.x_34d,

{
x_3ay: {
x_1p: 'rowView %+',
x_3hs: 16,
x_2lk: 1024,
x_481: 200,
x_2jg: '<div class="singleRow">{row}</div>'
},

x_2ll: false,

x_2ql: function(x_2v) {
var
x_bm = this.x_1j + '_',
x_o5,
x_2bo;
this.x_27({
x_483: x_2v.x_2iw,
x_2kv: x_2v.x_2iy,
x_484: {  x_485: x_bm + 'x_2vn',
x_486: x_bm + 'x_487',
x_488: x_bm + 'x_2vj',
x_489: x_bm + 'x_489',
x_48a: x_bm + 'x_48a',
x_48b: x_bm + 'x_48b',
x_48c: x_bm + 'x_1k0'
}
});
x_o5 = this.x_3co(x_2v);
x_2bo = this.x_48d(x_2v);
this.x_27({
x_1za: x_o5.x_2o,
x_2hl: x_o5
});
return x_2bo;
},

x_48d: function(x_2v) {
var x_2bo;
x_2bo = new Ext.Panel({
cls: x_2v.x_1p,
autoWidth:true,
layout:'fit',
autoScroll: false
});
x_2bo.on('afterLayout', this.x_48e, this, {single: true});
x_2bo.on('resize', this.x_3st, this);
return x_2bo;
},

x_3co: function(x_2v) {
var
x_o5,
x_3ev;
x_o5 = new kerio.lib.x_3ck(this, {
x_1z3: x_2v.x_1z3,
x_65: x_2v.x_65,
x_5z: x_2v.x_5z,
x_2d: this.x_3cs
});
this.x_3dg = x_o5.x_3dg;  x_3ev = x_o5.x_2o;
x_3ev.on('load', this.x_2jt, this);
return x_o5;
},

x_48e: function() {
var
x_2vj,
x_pv,
x_48f,
x_48g = this.x_484,
x_10q = this.x_2jk,
x_2lk = x_10q.x_2lk;
x_pv = new Ext.XTemplate(
'<tpl for=".">',
x_10q.x_2jg,
'</tpl>'
);
this.x_2o.bwrap.createChild({tag: 'div', id: x_48g.x_488, cls: 'proxyScroller', children:
[
{tag: 'div', id: x_48g.x_489, cls: 'spacer', style:'width: ' + x_2lk + 'px'},
{tag: 'div', id: x_48g.x_48b  , cls: 'data'  },
{tag: 'div', id: x_48g.x_48a , cls: 'spacer', style:'width: ' + x_2lk + 'px'}
]
});
x_2vj = Ext.get(x_48g.x_488);
x_48f = new kerio.lib.x_47w({
store: this.x_1za,
tpl: x_pv,
width: x_2lk,
multiSelect: true,
overClass:'x-view-over',
selectedClass: 'selectedRow',
itemSelector:'div.singleRow',
emptyText: '<div class="x-grid-empty" id="' + x_48g.x_48c + '" style="display: none">'
+ Ext.grid.GridView.prototype.emptyText + '</div>',
applyTo: x_48g.x_48b
});
if (this.x_48h) {
x_48f.on('contextmenu', this.x_39v, this);
}
x_48f.on('click',  this.x_48i, this);
if (false === x_10q.x_2j0) {
x_48f.on('beforeselect', this.x_48j);
}
this.x_27({
x_2jr: x_48f,
x_2ln: x_2vj,
x_2lq: this.x_48k(),
x_48l: new Ext.util.DelayedTask(this.x_48m, this)
});
this.x_48n();
},

x_48k: function() {
var x_48o = new kerio.lib.x_2vi({
x_ax: this.x_2o.body,
x_2vj: this.x_484.x_488,
x_2vk: this,
x_2vy: this.x_2jk.x_2lk,
x_2iy: this.x_48p,
x_2vx: this.x_2jk.x_3hs
});
return x_48o;
},

x_48n: function() {
var
x_48g = this.x_484,
x_48q = Ext.get(x_48g.x_489),
x_48r = Ext.get(x_48g.x_48b),
x_48s = Ext.get(x_48g.x_48a),
x_ln = this.x_2jn(),
x_2l5 = x_ln.x_2l5,
x_2wt = x_2l5.x_2wt,
x_3hs = x_2l5.x_2vx,
x_48t;
x_48t = Math.ceil(x_2wt / x_3hs) * x_3hs;
x_48q.setHeight(x_48t);
x_48r.setHeight(x_48t);
x_48s.setHeight(x_48t);
this.x_2ln.dom.scrollTop = x_48t + x_2l5.x_2x5;
if (Ext.isGecko) {
this.x_2lq.x_2xz();
}
this.x_2w4({
x_1g5: x_2l5.x_2l6,
x_48t: x_48t,
x_3hs: x_3hs
});
},

x_2w4: function(x_2ws) {
this.x_2vv = Ext.apply(this.x_2vv, x_2ws);
},

x_2jn: function() {
var x_2l5 = this.x_2lq.x_2jn();
this.x_2w4({
x_2l5: x_2l5
});
return this.x_2vv;
},

x_3st: function(x_2bo, x_3vx, x_3vy, x_48u, x_48v) {
if (x_48v && this.x_2ll) {
this.x_2lq.x_2xu();
this.x_48n();
this.x_48w.call(this);
}
},

x_48m : function() {
this.x_48w.call(this);
},

x_3cs: function(x_3m, x_6q, x_48x) {
var
x_10q = this.x_2jk,
x_2jp = x_48x[x_10q.x_69],
x_1ct = x_6q.params[x_10q.x_2jj],
x_1g5 = x_6q.params[x_10q.x_2jl],
x_ln = this.x_2jn(),
x_48t = x_ln.x_48t,
x_2l5 = x_ln.x_2l5,
x_2w0 = x_2l5.x_2w0,  x_2x5 = x_2l5.x_2x5;
if (x_2l5.x_2x6) {
return;
}
if (-1 !== x_1ct && x_1ct !== x_2w0) {
return;
}
if (x_2jp !== x_ln.x_2jp && (false === this.x_2ll)) {
x_2w0 = -1 === x_1ct ? x_2jp - x_1g5 : x_2w0;
if (x_2w0 < 0) {
x_2w0 = 0;
}
this.x_2js(x_2jp, x_2w0);
x_2x5 = this.x_2jn().x_2l5.x_2x5;
}
this.x_2w4({x_2w0: x_2w0});
this.x_2jr._kxp.x_hg.call(this.x_2jr);
this.x_2ln.dom.scrollTop = x_48t + x_2x5;
this.x_2ll = true;
this.x_2w4({
x_1ct: x_1ct,
x_1g5: x_1g5,
x_2lo: this.x_2ln.dom.scrollTop,
x_2jv: x_2l5.x_2jv
});
if (this.x_483) {
this.x_483(this, this.x_2jn());
}
return;
},

x_2js: function(x_2jp, x_2w0) {
var x_48o = this.x_2lq;
x_48o.x_2xv(x_2jp, x_2w0);
this.x_2w4({
x_2jp: x_2jp
});
if (undefined !== x_2w0) {
this.x_2w4({x_1ct: x_2w0});
}
},

x_48w: function() {
var
x_ln = this.x_2jn(),
x_1ct = x_ln.x_2l5.x_2w0,  x_1g5 = x_ln.x_1g5,
x_2jp = x_ln.x_2jp,
x_28 = {},
x_o5 = this.x_2hl,
x_2jj = this.x_2jk.x_2jj,
x_2jl = this.x_2jk.x_2jl,
x_3px = x_o5.x_3dr;
if (x_1ct + x_1g5 > x_2jp - 1) {
x_1ct = x_2jp - x_1g5;
if (x_1ct < 0) {
x_1ct = 0;
}
}
if (x_3px[x_2jj] != x_1ct || x_3px[x_2jl] != x_1g5) {
x_28[x_2jj] = x_1ct;
x_28[x_2jl] = x_1g5;
x_o5.x_6y(x_28);
}
},

x_2bl: function(x_1ct) {
var
x_28 = {};
this.x_482 = true;
this.x_48y = true;  x_28[this.x_2jk.x_2jj] = x_1ct;
x_28[this.x_2jk.x_2jl] = this.x_2jn().x_1g5;
this.x_2hl.x_6y(x_28);
},

x_39l: function(x_2v) {
var x_5t;
if (x_2v.x_3h && kerio.lib.x_6b.x_1mf == x_2v.x_3h) {
x_5t = x_2v;
}
else {
x_5t = new kerio.lib.x_29p(this.x_1j + '_contextMenu', x_2v);
}
x_5t.x_27({x_3m: this});
this.x_27({x_48h: x_5t});
},

x_39v: function(x_2o, x_fk, x_48z, x_96) {
x_96.stopEvent();
var
x_35m = x_96.getXY(),
x_5t = this.x_48h.x_2o;
x_5t.showAt(x_35m);
},

x_48i: function(x_48f, x_fk, x_1pe, x_96) {
var
x_490 = x_48f.getSelectedIndexes(),
x_3iq = this.x_2zw,
x_ln = this.x_2jn(),
x_1ct = x_ln.x_1ct,
x_1g5 = x_ln.x_1g5,
x_2jp = x_ln.x_2jp,
x_y7 = kerio.lib.x_2b8('x_2o0'),
x_gc = '',
x_42 = x_490.length,
x_41;
if (-1 === x_1ct) {
x_1ct = x_2jp - x_1g5;
if (x_1ct < 0) {
x_1ct = 0;
}
}
x_490.sort();
if (true !== x_96.shiftKey && true !== x_96.ctrlKey) {  x_3iq.x_2zx();
}
for (x_41 = 0; x_41 < x_42; x_41++) {
x_gc += x_48f.getNode(x_490[x_41]).innerHTML + '\n';
}
x_3iq.x_55(x_490, x_1ct, x_1g5);
x_y7.value = x_gc;
x_y7.select();
},

x_2jt: function() {
var
x_48f = this.x_2jr,
x_3ew = x_48f.store.data.items,
x_3iq = this.x_2zw,
x_ln = this.x_2jn(),
x_1ct = x_ln.x_1ct,
x_1g5 = x_ln.x_1g5,
x_2jp = x_ln.x_2jp,
x_41,
x_42;
if (-1 === x_1ct) {
x_1ct = x_2jp - x_1g5;
if (x_1ct < 0) {
x_1ct = 0;
}
}
x_48f.suspendEvents();
for (x_41 = 0, x_42 = x_3ew.length; x_41 < x_42; x_41++) {
if (x_3iq.x_1am(x_41 + x_1ct) && false === x_48f.isSelected(x_41)) {
x_48f.select(x_41, true);
}
else if (!x_3iq.x_1am(x_41 + x_1ct) && true === x_48f.isSelected(x_41)) {
x_48f.deselect(x_41);
}
}
x_48f.resumeEvents();
},

x_48j: function(x_48f, x_1pe, x_3iq) {
if (!Ext.EventObject.shiftKey) {
x_48f.clearSelections(true);
}
return true;
},

x_48p: function(x_2vn, x_2yt, x_2w0) {
var
x_ln = this.x_2jn(),
x_2l5 = x_ln.x_2l5,
x_2x5 = x_2l5.x_2x5,
x_2yo = (x_2w0 - x_ln.x_2w0) * x_2l5.x_2vx;
this.x_2ln.dom.scrollTop = x_ln.x_48t + x_2yo + x_2x5;
this.x_2w4({x_491: x_2yt});
if (this.x_2kv) {
this.x_2kv.call(this, this, this.x_2jn());
}
this.x_2hl.x_3eu();
this.x_48l.cancel();
this.x_48l.delay(this.x_2jk.x_481);
},

x_2ke: function() {
return this.x_2jn().x_1g5;
},

x_2l4: function() {
return this.x_2zw.x_2l4();
},

x_492: function() {
var x_3px = this.x_3dr;
return {
x_1t9: x_3px.fromLine,
x_493: x_3px.fromLine + x_3px.countLines
};
},

x_tz: function(x_494, x_3ol){
var x_3iq = this.x_2zw;
if (true !== x_3ol) {
x_3iq.x_2zx();
}
x_3iq.x_55(x_494);
this.x_2jt();
},

x_2ku: function (x_fl, x_2yj) {
this.x_2lq.x_2yi(x_fl, x_2yj);
},

x_2kt: function (x_fl) {
var
x_495,
x_2jp,
x_496,
x_ln = this.x_2jn(),
x_3ek = x_ln.x_1ct,
x_497 = x_ln.x_1g5 - 1;
if (0 !== x_ln.x_2l5.x_2x2) {
x_497 -= 1;
}
if (-1 === x_3ek) {
x_2jp = x_ln.x_2jp;
x_495 = (x_fl <= x_2jp - 1 && x_fl >= x_2jp - x_497);
}
else {
x_496 = x_ln.x_1ct + x_497;
x_495 = (x_fl >= x_3ek && x_fl <= x_496);
}
return x_495;
}
});



kerio.lib.x_2jc = function(x_2v) {
var
x_2j4 = x_2v.x_2j4,
x_42 = x_2j4.length,
x_498 = {},
x_499,
x_41;
this.x_2o = new Ext.util.TaskRunner(x_2v.x_2j3);
for (x_41 = 0; x_41 < x_42; x_41++) {
x_499 = x_2j4[x_41];
x_498[x_499.x_1j] = {
run     : x_499.x_2j6,
interval: x_499.x_2j8,
scope   : x_499.x_2q || this,

_kx: {
x_49a: false,
x_49b: false
}
};
}
this.x_49c = x_498;
};
kerio.lib.x_2jc.prototype =

{

x_1ct: function(x_49d) {
var x_49e = this.x_49c[x_49d];
if (false === x_49e._kx.x_49a) {
x_49e._kx.x_49a = true;
this.x_2o.start(x_49e);
}
},

x_lg: function(x_49d) {
var x_49e = this.x_49c[x_49d];
if (true === x_49e._kx.x_49a) {
x_49e._kx.x_49a = false;
this.x_2o.stop(x_49e);
}
},

x_2jx: function(x_49d) {
var x_49e = this.x_49c[x_49d];
if (x_49e._kx.x_49a) {
x_49e._kx.x_49b = true;
this.x_2o.stop(x_49e);
}
},

x_2jz: function(x_49d) {
var x_49e = this.x_49c[x_49d];
if (x_49e._kx.x_49b) {
x_49e._kx.x_49b = false;
this.x_2o.start(x_49e);
}
}
};
