(function(){var a=Ext.Button.prototype.onClick;Ext.override(Ext.Button,{onClick:function(c){c=new Ext.EventObjectImpl(c);this.focus();a.call(this,c);this.isDestroyed||this.blur()},template:new Ext.Template('<div id="{4}" class="x-btn {3}"><div class="{1}">','<em class="{2}" class="x-unselectable" unselectable="on"><button type="{0}"></button></em>',"</div></div>")})})();
(function(){var a=Ext.Component.prototype.initComponent,c=Ext.Component.prototype.destroy;Ext.override(Ext.Component,{stateful:!1,statefulRelativeDimensions:!0,statefulName:void 0,initComponent:function(){!1!==this.stateful&&(this.stateId||(this.stateId=Ext.id(null,"state-")),Ext.state.Manager.register(this));a.apply(this,arguments)},getStateName:function(){var b=this.statefulName;b||(b=this.getXType().match(/(?:zarafa\.)?(.*)/)[1]);return b},destroy:function(){if(this.plugins)for(var b in this.plugins){var a=
this.plugins[b];a instanceof Ext.util.Observable&&a.purgeListeners()}!1!==this.stateful&&Ext.state.Manager.unregister(this);c.apply(this,arguments)}})})();(function(){Ext.override(Ext.Container,{bufferResize:!1})})();
(function(){var a=Ext.DataView.prototype.onClick,c=Ext.DataView.prototype.initComponent;Ext.override(Ext.DataView,{initComponent:function(){c.apply(this,arguments);this.addEvents("extraitemclick","beforeextraitemclick")},onClick:function(b){var c=!1,f;this.extraItemSelector&&(c=b.getTarget(this.extraItemSelector,this.getTemplateTarget()));c?(f=this.indexOf(c),!1!==this.onExtraItemClick(c,f,b)&&this.fireEvent("extraitemclick",this,f,c,b)):a.apply(this,arguments)},onExtraItemClick:function(b,a,c){return!1===
this.fireEvent("beforeextraitemclick",this,a,b,c)?!1:!0}})})();
(function(){Ext.Element.addMethods({addUnits:function(a){Ext.isEmpty(a)||"auto"==a?a=a||"":isNaN(a)?a="":/\d+(px|em|%|en|ex|pt|in|cm|mm|pc)$/i.test(a)||(a+=this.defaultUnit||"px");return a},swallowEvent:function(a,b){var c=this,f=!0===b?this.swallowEventHandlerPreventDefault:this.swallowEventHandler;if(Ext.isArray(a))return Ext.each(a,function(b){c.on(b,f,this)}),c;c.on(a,f,this);return c},swallowEventHandler:function(a){a.stopPropagation()},swallowEventHandlerPreventDefault:function(a){a.stopPropagation();
a.preventDefault()},spitOutEvent:function(a,b){var c=this,f=!0===b?this.swallowEventHandlerPreventDefault:this.swallowEventHandler;if(Ext.isArray(a))return Ext.each(a,function(b){c.un(b,f,this)}),c;c.un(a,f,this);return c},selectable:function(){this.dom.unselectable="off";return this.spitOutEvent("selectstart",!0).removeClass("x-unselectable")},clearClass:function(){this.dom.className=""},fireEvent:function(a,b){var c=/^(scroll|resize|load|unload|abort|error)$/,f=/^(focus|blur|select|change|reset|keypress|keydown|keyup)$/,
e=/^(wheel)$/;a=a.toLowerCase();a.replace(/^on/,"");var g;/^(click|dblclick|mousedown|mouseup|mouseover|mouseout|contextmenu)$/.test(a)?(g=document.createEvent("MouseEvents"),g.initMouseEvent(a,!0,!0,window,"dblclick"==a?2:1,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,0,null)):f.test(a)?(g=document.createEvent("UIEvents"),g.initUIEvent(a,!0,!0,window,0)):c.test(a)?(g=document.createEvent("HTMLEvents"),g.initEvent(a,!0,!0)):e.test(a)&&(g=new WheelEvent("wheel",b));
g&&this.dom.dispatchEvent(g)},getAlignToXY:function(a,b,d){a=Ext.get(a);if(!a||!a.dom)throw"Element.alignToXY with an element that doesn't exist";d=d||[0,0];b=(b&&"?"!=b?/-/.test(b)||""===b?b||"tl-bl":"tl-"+b:"tl-bl?").toLowerCase();var c=Zarafa.core.BrowserWindowMgr.getOwnerWindow(a),e,g,h,n=c.innerWidth-10,l=c.innerHeight-10,p,u,m,c=c.document,t=c.documentElement;m=c.body;c=(t.scrollLeft||m.scrollLeft||0)+5;t=(t.scrollTop||m.scrollTop||0)+5;h=b.match(/^([a-z]+)-([a-z]+)(\?)?$/);if(!h)throw"Element.alignTo with an invalid alignment "+
b;p=h[1];m=h[2];h=!!h[3];e=this.getAnchorXY(p,!0);g=a.getAnchorXY(m,!1);b=g[0]-e[0]+d[0];d=g[1]-e[1]+d[1];h&&(h=this.getWidth(),e=this.getHeight(),a=a.getRegion(),g=p.charAt(0),p=p.charAt(p.length-1),u=m.charAt(0),m=m.charAt(m.length-1),g="t"==g&&"b"==u||"b"==g&&"t"==u,m="r"==p&&"l"==m||"l"==p&&"r"==m,b+h>n+c&&(b=m?a.left-h:n+c-h),b<c&&(b=m?a.right:c),d+e>l+t&&(d=g?a.top-e:l+t-e),d<t&&(d=g?a.bottom:t));return[b,d]},adjustForConstraints:function(a,b,d){var c=Zarafa.core.BrowserWindowMgr.getActive();
return this.getConstrainToXY(b||c.document,!1,d,a)||a},getConstrainToXY:function(a,b,d,f){var c={top:0,left:0,bottom:0,right:0};return function(a,b,d,e){var f=Zarafa.core.BrowserWindowMgr.getActive();a=Ext.get(a);d=d?Ext.applyIf(d,c):c;var g,n=0,h=0;a.dom==f.document.body||a.dom==f.document?(g=f.innerWidth,f=f.innerHeight):(g=a.dom.clientWidth,f=a.dom.clientHeight,b||(h=a.getXY(),n=h[0],h=h[1]));a=a.getScroll();n+=d.left+a.left?a.left:0;h+=d.top+a.top?a.top:0;g-=d.right?d.right:0;f-=d.bottom?d.bottom:
0;d=n+g;g=h+f;e=e||(b?[this.getLeft(!0),this.getTop(!0)]:this.getXY());b=e[0];e=e[1];a=this.getConstrainOffset();f=this.dom.offsetWidth+a;a=this.dom.offsetHeight+a;var l=!1;b+f>d&&(b=d-f,l=!0);e+a>g&&(e=g-a,l=!0);b<n&&(b=n,l=!0);e<h&&(e=h,l=!0);return l?[b,e]:!1}}()});var a=Ext.Element.get;Ext.override(Ext.Element,{get:function(c){var b=null,d=Zarafa.core.BrowserWindowMgr.getActive();if(Ext.isDefined(d)&&"mainBrowserWindow"!==d.name&&"string"===typeof c)var f=d.document.getElementById(c),b=f?new Ext.Element(f):
f;null===b&&(b=a.apply(this,arguments));null===b&&"string"===typeof c?(f=Zarafa.core.BrowserWindowMgr.browserWindows,f.each(function(a){if(Ext.isDefined(a)&&"mainBrowserWindow"!==a.name&&a!==d&&(a=a.document.getElementById(c)))return b=new Ext.Element(a),!1})):(f=Zarafa.core.BrowserWindowMgr.browserWindows,Ext.isDefined(f)&&f.each(function(a){if(a.document===c){var d=function(){};d.prototype=Ext.Element.prototype;b=new d;b.dom=a.document}}));return b}});Ext.get=Ext.Element.prototype.get;Ext.Element.addMethods(function(){function a(a,
b){return b.charAt(1).toUpperCase()}function b(b){return f[b]||(f[b]="float"==b?d.cssFloat?"cssFloat":"styleFloat":b.replace(e,a))}var d=Ext.supports,f={},e=/(-[a-z])/gi,g=document.defaultView,h=/alpha\(opacity=(.*)\)/i;return{getStyle:function(){return g&&g.getComputedStyle?function(a){var c=this.dom,e,f,h;if(c==Zarafa.core.BrowserWindowMgr.getActive().document)return null;a=b(a);h=(e=c.style[a])?e:(f=g.getComputedStyle(c,""))?f[a]:null;"marginRight"!=a||"0px"==h||d.correctRightMargin||(e=c.style.display,
c.style.display="inline-block",h=g.getComputedStyle(c,"").marginRight,c.style.display=e);"backgroundColor"!=a||"rgba(0, 0, 0, 0)"!=h||d.correctTransparentColor||(h="transparent");return h}:function(a){var c=this.dom,d,e;if(c==document)return null;if("opacity"==a)return c.style.filter.match&&(d=c.style.filter.match(h))&&(a=parseFloat(d[1]),!isNaN(a))?a?a/100:0:1;a=b(a);return c.style[a]||((e=c.currentStyle)?e[a]:null)}}(),setStyle:function(a,c){var d,e;"object"!=typeof a&&(d={},d[a]=c,a=d);for(e in a)c=
a[e],"opacity"==e?this.setOpacity(c):this.dom.style[b(e)]=c;return this}}}())})();(function(){Ext.apply(Ext.EventObjectImpl.prototype,{SEMI_COLON:186,EQUAL_SIGN:187,COMMA:188,DASH:189,PERIOD:190,FORWARD_SLASH:191,OPEN_BRACKET:219,BACK_SLASH:220,CLOSE_BRACKET:221,SINGLE_QUOTE:222});var a=Ext.EventObject.setEvent;Ext.EventObject.setEvent=function(c){c=a.call(this,c);Ext.isMac&&c.ctrlKey&&!c.browserEvent.metaKey&&(c.ctrlKey=!1);Ext.isMac||(c.ctrlKey=c.browserEvent.ctrlKey||!1);return c}})();Ext.namespace("Ext.MessageBox");
Ext.MessageBox=Ext.extend(Object,{OK:void 0,CANCEL:void 0,OKCANCEL:void 0,YESNO:void 0,YESNOCANCEL:void 0,INFO:"ext-mb-info",WARNING:"ext-mb-warning",QUESTION:"ext-mb-question",ERROR:"ext-mb-error",defaultTextHeight:75,maxWidth:600,minWidth:100,minProgressWidth:250,minPromptWidth:250,buttonText:void 0,browserWindowsMessageBoxProps:"dlg opt mask msgEl buttons textboxEl textareaEl progressBar iconEl iconCls".split(" "),browserWindowsMessageBox:void 0,dlg:void 0,opt:void 0,mask:void 0,waitTimer:void 0,
bodyEl:void 0,msgEl:void 0,textboxEl:void 0,textareaEl:void 0,progressBar:void 0,pp:void 0,iconEl:void 0,spacerEl:void 0,buttons:void 0,activeTextEl:void 0,bwidth:void 0,bufferIcon:"",iconCls:"",buttonNames:["ok","yes","no","cancel"],activeWindowName:void 0,constructor:function(a){this.OK={ok:!0};this.CANCEL={cancel:!0};this.OKCANCEL={ok:!0,cancel:!0};this.YESNO={yes:!0,no:!0};this.YESNOCANCEL={yes:!0,no:!0,cancel:!0};this.buttonText={ok:"OK",cancel:"Cancel",yes:"Yes",no:"No"};this.browserWindowsMessageBox=
new Ext.util.MixedCollection},handleButton:function(a){var c=Zarafa.core.BrowserWindowMgr.getActive();this.buttons[a].blur();this.dlg.isVisible()&&(this.dlg.hide(),this.handleHide(),Ext.callback(this.opt.fn,this.opt.scope||c,[a,this.activeTextEl.dom.value,this.opt],1))},handleHide:function(){this.opt&&this.opt.cls&&this.dlg.el.removeClass(this.opt.cls);this.progressBar.reset()},handleEsc:function(a,c,b){this.opt&&!1!==this.opt.closable&&(this.dlg.hide(),this.handleHide());b&&b.stopEvent()},updateButtons:function(a){var c=
0,b;if(!a)return Ext.each(this.buttonNames,function(a){this.buttons[a].hide()},this),c;this.dlg.footer.dom.style.display="";Ext.iterate(this.buttons,function(d,f){(b=a[d])?(f.show(),f.setText(Ext.isString(b)?b:Ext.MessageBox.buttonText[d]),c+=f.getEl().getWidth()+15):f.hide()});return c},getDialog:function(a){if(this.dlg)this.textboxEl.enableDisplayMode(),this.textareaEl.enableDisplayMode(),this.browserWindowsMessageBox.replace(this.activeWindowName,Ext.copyTo({},this,this.browserWindowsMessageBoxProps));
else{var c=[];this.buttons={};Ext.each(this.buttonNames,function(a){c.push(this.buttons[a]=new Ext.Button({text:this.buttonText[a],handler:this.handleButton.createDelegate(this,[a]),hideMode:"offsets"}))},this);this.dlg=new Ext.Window({autoCreate:!0,title:a,resizable:!1,constrain:!0,constrainHeader:!0,minimizable:!1,maximizable:!1,stateful:!1,modal:!0,shim:!0,buttonAlign:"center",width:400,height:100,minHeight:80,plain:!0,footer:!0,closable:!0,close:function(){this.opt&&this.opt.buttons&&this.opt.buttons.no&&
!this.opt.buttons.cancel?this.handleButton("no"):this.handleButton("cancel")}.createDelegate(this),fbar:new Ext.Toolbar({items:c,enableOverflow:!1})});a=Zarafa.core.BrowserWindowMgr.getActive();this.dlg.render(a.document.body);this.dlg.getEl().addClass("x-window-dlg");this.mask=this.dlg.mask;this.bodyEl=this.dlg.body.createChild({html:'<div class="ext-mb-icon"></div><div class="ext-mb-content"><span class="ext-mb-text"></span><br /><div class="ext-mb-fix-cursor"><input type="text" class="ext-mb-input" /><textarea class="ext-mb-textarea"></textarea></div></div>'});
this.iconEl=Ext.get(this.bodyEl.dom.firstChild);var b=this.bodyEl.dom.childNodes[1];this.msgEl=Ext.get(b.firstChild);this.textboxEl=Ext.get(b.childNodes[2].firstChild);this.textboxEl.enableDisplayMode();this.textboxEl.addKeyListener([10,13],function(){this.dlg.isVisible()&&this.opt&&this.opt.buttons&&(this.opt.buttons.ok?this.handleButton("ok"):this.opt.buttons.yes&&this.handleButton("yes"))},this);this.textareaEl=Ext.get(b.childNodes[2].childNodes[1]);this.textareaEl.enableDisplayMode();this.progressBar=
new Ext.ProgressBar({renderTo:this.bodyEl});this.bodyEl.createChild({cls:"x-clear"});this.browserWindowsMessageBox.add(a.name,Ext.copyTo({},this,this.browserWindowsMessageBoxProps));this.activeWindowName=a.name}return this.dlg},updateText:function(a){this.dlg.isVisible()||this.opt.width||this.dlg.setSize(this.maxWidth,100);this.msgEl.update(a?a+" ":"&#160;");var c=""!=this.iconCls?this.iconEl.getWidth()+this.iconEl.getMargins("lr"):0,b=this.msgEl.getWidth()+this.msgEl.getMargins("lr"),d=this.dlg.getFrameWidth("lr"),
f=this.dlg.body.getFrameWidth("lr"),b=Math.max(Math.min(this.opt.width||c+b+d+f,this.opt.maxWidth||this.maxWidth),Math.max(this.opt.minWidth||this.minWidth,this.bwidth||0));!0===this.opt.prompt&&this.activeTextEl.setWidth(b-c-d-f);!0!==this.opt.progress&&!0!==this.opt.wait||this.progressBar.setSize(b-c-d-f);Ext.isIE9m&&b==this.bwidth&&(b+=4);this.msgEl.update(a||"&#160;");this.dlg.setSize(b,"auto").center();return this},updateProgress:function(a,c,b){this.progressBar.updateProgress(a,c);b&&this.updateText(b);
return this},isVisible:function(){return this.dlg&&this.dlg.isVisible()},hide:function(){var a=this.dlg?this.dlg.activeGhost:null;if(this.isVisible()||a)this.dlg.hide(),this.handleHide(),a&&this.dlg.unghost(!1,!1);return this},show:function(a){this.isVisible()&&this.hide();this.opt=a;var c=this.getDialog(this.opt.title||"&#160;");c.setTitle(this.opt.title||"&#160;");var b=!1!==this.opt.closable&&!0!==this.opt.progress&&!0!==this.opt.wait;c.tools.close.setDisplayed(b);this.activeTextEl=this.textboxEl;
this.opt.prompt=this.opt.prompt||(this.opt.multiline?!0:!1);this.opt.prompt?this.opt.multiline?(this.textboxEl.hide(),this.textareaEl.show(),this.textareaEl.setHeight(Ext.isNumber(this.opt.multiline)?this.opt.multiline:this.defaultTextHeight),this.activeTextEl=this.textareaEl):(this.textboxEl.show(),this.textareaEl.hide()):(this.textboxEl.hide(),this.textareaEl.hide());this.activeTextEl.dom.value=this.opt.value||"";if(this.opt.prompt)c.focusEl=this.activeTextEl;else{a=this.opt.buttons;var d=null;
a&&a.ok?d=this.buttons.ok:a&&a.yes&&(d=this.buttons.yes);d&&(c.focusEl=d)}Ext.isDefined(this.opt.iconCls)&&c.setIconClass(this.opt.iconCls);this.setIcon(Ext.isDefined(this.opt.icon)?this.opt.icon:this.bufferIcon);this.bwidth=this.updateButtons(this.opt.buttons);this.progressBar.setVisible(!0===this.opt.progress||!0===this.opt.wait);this.updateProgress(0,this.opt.progressText);this.updateText(this.opt.msg);this.opt.cls&&c.el.addClass(this.opt.cls);c.proxyDrag=!0===this.opt.proxyDrag;c.modal=!1!==this.opt.modal;
c.mask=!1!==this.opt.modal?this.mask:!1;c.isVisible()||(Zarafa.core.BrowserWindowMgr.getActive().document.body.appendChild(this.dlg.el.dom),c.setAnimateTarget(this.opt.animEl),c.on("show",function(){!0===b?c.keyMap.enable():c.keyMap.disable()},this,{single:!0}),c.show(this.opt.animEl));!0===this.opt.wait&&this.progressBar.wait(this.opt.waitConfig);return this},setIcon:function(a){if(this.dlg)return this.bufferIcon=void 0,a&&""!=a?(this.iconEl.removeClass("x-hidden"),this.iconEl.replaceClass(this.iconCls,
a),this.bodyEl.addClass("x-dlg-icon"),this.iconCls=a):(this.iconEl.replaceClass(this.iconCls,"x-hidden"),this.bodyEl.removeClass("x-dlg-icon"),this.iconCls=""),this;this.bufferIcon=a},progress:function(a,c,b){this.show({title:a,msg:c,buttons:!1,progress:!0,closable:!1,minWidth:this.minProgressWidth,progressText:b});return this},wait:function(a,c,b){this.show({title:c,msg:a,buttons:!1,closable:!1,wait:!0,modal:!0,minWidth:this.minProgressWidth,waitConfig:b});return this},alert:function(a,c,b,d){this.show({title:a,
msg:c,buttons:this.OK,fn:b,scope:d,minWidth:this.minWidth});return this},confirm:function(a,c,b,d){this.show({title:a,msg:c,buttons:this.YESNO,fn:b,scope:d,icon:this.QUESTION,minWidth:this.minWidth});return this},prompt:function(a,c,b,d,f,e){this.show({title:a,msg:c,buttons:this.OKCANCEL,fn:b,minWidth:this.minPromptWidth,scope:d,prompt:!0,multiline:f,value:e});return this},setActiveWindowMessageBox:function(a){var c=this.browserWindowsMessageBox.get(a);if(c)this.browserWindowsMessageBox.replace(this.activeWindowName,
Ext.copyTo({},this,this.browserWindowsMessageBoxProps)),Ext.apply(this,c);else{var b={};Ext.each(this.browserWindowsMessageBoxProps,function(a){b[a]=void 0});Ext.apply(this,b)}this.activeWindowName=a},removeBrowserWindowMessageBox:function(a){this.browserWindowsMessageBox.removeKey(a)}});Ext.MessageBox=new Ext.MessageBox;Ext.Msg=Ext.MessageBox;
(function(){var a=Ext.QuickTip.prototype.register,c=Ext.QuickTip.prototype.getTipCfg;Ext.override(Ext.QuickTip,{register:function(b){b.title=Ext.util.Format.htmlEncode(b.title);b.text=Ext.util.Format.htmlEncode(b.text);a.apply(this,arguments)},getTipCfg:function(a){return Ext.util.Format.htmlEncode(c.apply(this,arguments))}})})();Ext.namespace("Ext.QuickTips");
Ext.QuickTips=Ext.extend(Object,{browserQuickTips:void 0,tip:void 0,disabled:!1,constructor:function(a){this.browserQuickTips=new Ext.util.MixedCollection},init:function(a){if(Ext.isReady)this.tip=new Ext.QuickTip({elements:"header,body",disabled:this.disabled}),!1!==a&&this.tip.render(Ext.getBody()),this.browserQuickTips.add(Zarafa.core.BrowserWindowMgr.getOwnerWindow(this.tip).name,this.tip);else Ext.onReady(function(){Ext.QuickTips.init(a)})},ddDisable:function(){this.tip&&!this.disabled&&this.tip.disable()},
ddEnable:function(){this.tip&&!this.disabled&&this.tip.enable()},enable:function(){this.tip&&this.tip.enable();this.disabled=!1},disable:function(){this.tip&&this.tip.disable();this.disabled=!0},isEnabled:function(){return void 0!==this.tip&&!this.tip.disabled},getQuickTip:function(){return this.tip},register:function(){this.tip.register.apply(this.tip,arguments)},unregister:function(){this.tip.unregister.apply(this.tip,arguments)},tips:function(){this.tip.register.apply(this.tip,arguments)}});
Ext.QuickTips=new Ext.QuickTips;(function(){var a=Ext.Tip.prototype.doAutoWidth;Ext.override(Ext.Tip,{doAutoWidth:function(){a.call(this,Ext.isIE?1:0)}})})();(function(){var a=Ext.Toolbar.TextItem.prototype.onRender;Ext.override(Ext.Toolbar.TextItem,{onRender:function(c,b){a.apply(this,arguments);this.el&&this.el.unselectable()}})})();
(function(){var a=Ext.Window.prototype.beforeShow,c=Ext.Window.prototype.onWindowResize;Ext.override(Ext.Window,{browserWindow:void 0,beforeShow:function(){a.call(this);this.correctMaskSize();this.browserWindow=this.el.dom.ownerDocument.defaultView},afterShow:function(a){if(this.isDestroyed)return!1;this.proxy.hide();this.el.setStyle("display","block");this.el.show();this.maximized&&this.fitContainer();if(this.monitorResize||this.modal||this.constrain||this.constrainHeader)if("mainBrowserWindow"===
this.browserWindow.name)Ext.EventManager.onWindowResize(this.onWindowResize,this);else Zarafa.core.BrowserWindowMgr.on("separatewindowresize",this.onSeparateWindowResize,this);this.doConstrain();this.doLayout();this.keyMap&&this.keyMap.enable();this.toFront();this.updateHandles();a&&(Ext.isIE||Ext.isWebKit)&&(a=this.getSize(),this.onResize(a.width,a.height));this.onShow();this.fireEvent("show",this)},afterHide:function(){this.proxy.hide();if(this.monitorResize||this.modal||this.constrain||this.constrainHeader)"mainBrowserWindow"===
this.browserWindow.name?Ext.EventManager.removeResizeListener(this.onWindowResize,this):Zarafa.core.BrowserWindowMgr.un("separatewindowresize",this.onSeparateWindowResize,this);this.keyMap&&this.keyMap.disable();this.onHide();this.fireEvent("hide",this)},onWindowResize:function(){c.call(this);this.correctMaskSize()},onSeparateWindowResize:function(a){if(a===this.browserWindow)this.onWindowResize()},correctMaskSize:function(){this.modal&&(this.mask.hide(),this.mask.setSize(this.mask.dom.ownerDocument.body.scrollWidth,
this.mask.dom.ownerDocument.body.scrollHeight),this.mask.show())}})})();(function(){var a=Ext.data.Node.prototype.appendChild,c=Ext.data.Node.prototype.removeChild;Ext.override(Ext.data.Node,{appendChild:function(b){this.leaf=!1;return a.apply(this,arguments)},removeChild:function(a,d){var b=c.apply(this,arguments);this.hasChildNodes()||(this.leaf=!0);return b}})})();
(function(){var a=function(a){return void 0!==a&&null!==a&&""!==a?parseInt(a,10):this.useNull?null:0};Ext.data.Types.INT.convert=a;Ext.data.Types.INTEGER.convert=a;a=function(a){return void 0!==a&&null!==a&&""!==a?parseFloat(a,10):this.useNull?null:0};Ext.data.Types.FLOAT.convert=a;Ext.data.Types.NUMBER.convert=a})();(function(){var a=Ext.dd.DD.prototype.unreg;Ext.override(Ext.dd.DD,{scroll:!1,unreg:function(){a.apply(this,arguments);this==this.DDM.dragCurrent&&(this.DDM.dragCurrent=null)}})})();
(function(){var a=Ext.dd.DragDropMgr.getLocation;Ext.apply(Ext.dd.DragDropMgr,{getGroupDDById:function(a,b){return this.ids[a]&&this.ids[a][b]?this.ids[a][b]:null},getLocation:function(c){var b=c.getEl(),d=a.apply(this,arguments);if(b&&d)for(b=Ext.get(b.parentNode);b&&d;)b.isScrollable()&&(d=d.intersect(b.getRegion())),b=b.parent();return d},getZIndex:function(a){return-1},initEvents:function(a){Ext.EventManager.on(a.document,"mousemove",this.handleMouseMove,this,!0);Ext.EventManager.on(a.document,
"mouseup",this.handleMouseUp,this,!0)},isOverTarget:function(a,b,d){var c=this.locationCache[b.id];c&&this.useCache||(c=this.getLocation(b),this.locationCache[b.id]=c);if(!c)return!1;b.cursorIsOver=c.contains(a);var e=this.dragCurrent;if(!e||!e.getTargetCoord||!d&&!e.constrainX&&!e.constrainY)return b.cursorIsOver?(d=Zarafa.core.BrowserWindowMgr.getActive(),b=Zarafa.core.BrowserWindowMgr.getOwnerWindow(b),d===b):!1;b.overlap=null;a=e.getTargetCoord(a.x,a.y);e=e.getDragEl();return(c=(new Ext.lib.Region(a.y,
a.x+e.offsetWidth,a.y+e.offsetHeight,a.x)).intersect(c))?(b.overlap=c,d?!0:b.cursorIsOver):!1}})})();
(function(){var a=Ext.dd.DragSource.prototype.onDragOver,c=Ext.dd.DragSource.prototype.onDragOut,b=Ext.dd.DragSource.prototype.onDragDrop;Ext.override(Ext.dd.DragSource,{onDragEnter:function(a,b){if(this.cachedTarget)this.onDragOut(a,this.cachedTarget.id);var c;if((this.cachedTarget=c=this.ddGroup?Ext.dd.DragDropMgr.getGroupDDById(this.ddGroup,b):Ext.dd.DragDropMgr.getDDById(b))&&!1!==this.beforeDragEnter(c,a,b)){if(c.isNotifyTarget){var d=c.notifyEnter(this,a,this.dragData);this.proxy.setStatus(d)}else this.proxy.setStatus(this.dropAllowed);
this.afterDragEnter&&this.afterDragEnter(c,a,b)}},onDragOver:function(b,c){if(!this.cachedTarget)this.onDragEnter(b,c);this.cachedTarget=this.cachedTarget||Ext.dd.DragDropMgr.getGroupDDById(this.ddGroup,c);return a.apply(this,arguments)},onDragOut:function(a,b){if(this.cachedTarget)return c.apply(this,arguments)},onDragDrop:function(a,c){if(this.cachedTarget)return b.apply(this,arguments)}})})();
(function(){Ext.override(Ext.form.BasicForm,{updateRecord:function(a){a.beginEdit();var c,b;a.fields.each(function(d){if(c=this.findField(d.name))b=c.getValue(),!1!==Ext.type(b)&&b.getGroupValue?b=b.getGroupValue():!0!==c.isSingleValued&&c.eachItem&&(b=[],c.eachItem(function(a){b.push(a.getValue())})),a.set(d.name,b)},this);a.endEdit();return this},setValues:function(a){if(Ext.isArray(a))for(var c=0,b=a.length;c<b;c++){var d=a[c],f=this.findField(d.id);!f||f.hasFocus&&f.originalValue!=f.el.dom.value||
(f.setValue(d.value),this.trackResetOnLoad&&(f.originalValue=f.getValue()))}else for(b in a)Ext.isFunction(a[b])||!(c=this.findField(b))||c.hasFocus&&c.originalValue!=c.el.dom.value||(c.setValue(a[b]),this.trackResetOnLoad&&(c.originalValue=c.getValue()));return this}})})();
(function(){var a=Ext.form.Checkbox.prototype.onRender;Ext.override(Ext.form.Checkbox,{onRender:function(c,b){a.apply(this,arguments);this.wrap.addClass("x-form-item");if(this.boxLabel&&this.el){var d=Ext.query(".x-form-cb-label",this.el.parent().dom)[0];d&&Ext.get(d).unselectable()}}})})();
(function(){var a=Ext.form.ComboBox.prototype.initList,c=Ext.form.ComboBox.prototype.expand,b=Ext.form.ComboBox.prototype.initComponent;Ext.override(Ext.form.ComboBox,{defaultAutoCreate:{tag:"input",type:"text",size:"24",autocomplete:"off",spellcheck:"true"},initComponent:function(){b.apply(this,arguments);this.addEvents("beforeexpand")},initList:function(){this.tpl||(this.tpl='<tpl for="."><div class="x-combo-list-item">{'+this.displayField+":htmlEncode}</div></tpl>");a.apply(this,arguments)},expand:function(){!this.isExpanded()&&
this.hasFocus&&!1!==this.fireEvent("beforeexpand",this)&&c.apply(this,arguments)},getListParent:function(){var a=this.getEl()?this.getEl().dom.ownerDocument:void 0;return a?a.body:document.body}})})();
(function(){var a=Ext.form.DateField.prototype.getValue,c=Ext.form.DateField.prototype.initComponent,b=Ext.form.DateField.prototype.onTriggerClick,d=Ext.form.DateField.prototype.menuEvents;Ext.override(Ext.form.DateField,{showNow:!1,initComponent:function(){this.initialConfig.startDay||(this.startDay=container.getSettingsModel().get("zarafa/v1/main/week_start"));c.apply(this,arguments);this.addEvents("selectnow");if(0>this.startDay||this.startDay>=Date.dayNames.length)this.startDay=0},getValue:function(){var b=
a.apply(this,arguments);return Ext.isEmpty(b)?null:b},processValue:function(a){return Ext.isEmpty(a)?"":a},onTriggerClick:function(){this.showNow&&null==this.menu&&(this.menu=new Ext.menu.DateMenu({hideOnClick:!1,focusOnSelect:!1,initialConfig:{showNow:!0,todayText:_("Now")}}));b.apply(this,arguments);this.showNow&&this.menu.relayEvents(this.menu.picker,["selectnow"])},menuEvents:function(a){d.apply(this,arguments);if(this.showNow)this.menu[a]("selectnow",this.onSelectnow,this)},onSelectnow:function(a,
b){this.fireEvent("selectnow",this,b)}})})();(function(){Ext.override(Ext.form.DisplayField,{cls:"x-form-item"})})();(function(){Ext.override(Ext.form.FormPanel,{labelAlign:"right"})})();(function(){var a=Ext.form.Label.prototype.onRender;Ext.override(Ext.form.Label,{cls:"x-form-item-label",onRender:function(c,b){a.apply(this,arguments);this.positionEl=this.el.wrap({cls:"x-form-item"});this.el.unselectable()}})})();
(function(){Ext.override(Ext.form.TextField,{defaultAutoCreate:{tag:"input",type:"text",size:"20",autocomplete:"off",spellcheck:"true"}})})();(function(){Ext.override(Ext.form.TriggerField,{defaultAutoCreate:{tag:"input",type:"text",size:"16",autocomplete:"off",spellcheck:"true"}})})();
(function(){var a=/^(100?|\d?\d)?%?$/,c=/^[1-9]\d*$/i,b=/^(\w+)([\-+.\'][\w]+)*@(\w[\-\w]*\.){1,5}([A-Za-z]){2,10}$/;Ext.apply(Ext.form.VTypes,{percentage:function(b){return a.test(b)},percentageText:_("Value must be between 0% to 100%"),naturalInteger:function(a){return c.test(a)},naturalIntegerText:_("Number must be higher than zero"),email:function(a){return b.test(a)}})})();
(function(){var a=Ext.grid.ColumnModel.prototype.setColumnWidth;Ext.override(Ext.grid.ColumnModel,{setColumnWidth:function(c,b,d){isFinite(b)&&a.apply(this,arguments)}})})();
(function(){var a=Ext.grid.GridPanel.prototype.onClick;Ext.override(Ext.grid.GridPanel,{onClick:function(c){a.apply(this,arguments);"INPUT"!==c.target.tagName&&this.view.focusEl.focus()},reconfigure:function(a,b){!1!==this.stateful&&b!==this.colModel&&this.mun(this.colModel,"hiddenchange",this.saveState,this);var c=this.rendered;c&&this.loadMask&&(this.loadMask.destroy(),this.loadMask=new Ext.LoadMask(this.bwrap,Ext.apply({},{store:a},this.initialConfig.loadMask)));this.view&&this.view.initData(a,
b);this.store=a;this.colModel=b;!1!==this.stateful&&(this.initStateEvents(),this.initState());c&&this.view.refresh(!0);this.fireEvent("reconfigure",this,a,b)}})})();
(function(){var a=Ext.grid.GridView.prototype.onColConfigChange,c=Ext.grid.GridView.prototype.initTemplates;Ext.override(Ext.grid.GridView,{getColumnWidth:function(a){a=this.cm.getColumnWidth(a);var b=this.borderWidth;return Ext.isNumber(a)?Ext.isBorderBox?a+"px":Math.max(a-b,0)+"px":a},onColConfigChange:function(){var b=this.grid;!1!==b.stateful&&b.initState();a.apply(this,arguments)},initTemplates:function(){c.apply(this);var a=new Ext.Template('<td class="x-grid3-hd x-grid3-cell x-grid3-td-{id} {css} {cls}" style="{style}">',
'<div {tooltip} {attr} class="x-grid3-hd-inner x-grid3-hd-{id}" unselectable="on" style="{istyle}">',this.grid.enableHdMenu?'<a class="x-grid3-hd-btn" href="#"></a>':"",'<div class="zarafa-x-grid3-hd-title">{value}</div>','<img alt="" class="x-grid3-sort-icon" src="',Ext.BLANK_IMAGE_URL,'" />',"</div>","</td>");a.disableFormats=!0;this.templates.hcell=a.compile()},renderHeaders:function(){var a=this.cm,c=this.templates,f=c.hcell,e,g=a.getColumnCount(),h=g-1,n=[],l;for(l=0;l<g;l++)e=0==l?"x-grid3-cell-first ":
l==h?"x-grid3-cell-last ":"",e={id:a.getColumnId(l),value:a.getColumnHeader(l)||"",style:this.getColumnStyle(l,!0),css:e,tooltip:this.getColumnTooltip(l),cls:a.getColumnAt(l).headerCls||""},"right"==a.config[l].align?e.istyle="padding-right: 16px;":delete e.istyle,n[l]=f.apply(e);return c.header.apply({cells:n.join(""),tstyle:String.format("width: {0};",this.getTotalWidth())})}})})();
(function(){var a=navigator.userAgent.toLowerCase(),c=!Ext.isOpera&&(/msie/.test(a)||/trident/.test(a)),b=Ext.getDom;Ext.apply(Ext,{isIE:c,isIE10:c&&/msie 10/.test(a),isIE11:c&&/rv:11/.test(a),isEdge:/Edge\/\d./i.test(navigator.userAgent),clone:function(a){if(null===a||void 0===a)return a;if(a.nodeType&&a.cloneNode)return a.cloneNode(!0);var b=Object.prototype.toString.call(a);if("[object Date]"===b)return new Date(a.getTime());var c;if("[object Array]"===b)for(b=a.length,c=[];b--;)c[b]=Ext.clone(a[b]);
else if("[object Object]"===b&&a.constructor===Object){c={};for(var d in a)c[d]=Ext.clone(a[d])}return c||a},isArray:function(a){return Array.isArray(a)},getDom:function(a){var c=null,d=Zarafa.core.BrowserWindowMgr.getActive();Ext.isDefined(d)&&"mainBrowserWindow"!==d.name&&"string"===typeof a&&(c=d.document.getElementById(a));null===c&&(c=b.apply(this,arguments));if(null===c&&"string"===typeof a){var g=Zarafa.core.BrowserWindowMgr.browserWindows;Ext.isDefined(g)&&g.each(function(b){var e=b.document.getElementById(a);
"mainBrowserWindow"!==b.name&&b!==d&&null!==e&&(c=e)})}return c},getBody:function(){var a=Zarafa.core.BrowserWindowMgr.getActive(),a=Ext.isDefined(a)?a.document:document;return Ext.get(a.body||a.documentElement)},getDoc:function(){var a=Zarafa.core.BrowserWindowMgr.getActive(),a=Ext.isDefined(a)?a.document:document;return Ext.get(a)}})})();
(function(){var a=Ext.layout.BorderLayout.Region.prototype.beforeCollapse,c=Ext.layout.BorderLayout.Region.prototype.onExpand;Ext.override(Ext.layout.BorderLayout.Region,{beforeCollapse:function(){this.splitEl&&this.splitEl.addClass("x-hide-display");a.apply(this,arguments)},onExpand:function(){this.splitEl&&this.splitEl.removeClass("x-hide-display");c.apply(this,arguments)}})})();
(function(){var a=Ext.layout.ToolbarLayout.prototype.configureItem,c=Ext.layout.ToolbarLayout.prototype.hideItem,b=Ext.layout.ToolbarLayout.prototype.unhideItem,d=Ext.layout.ToolbarLayout.prototype.onLayout,f=Ext.layout.ToolbarLayout.prototype.addComponentToMenu;Ext.override(Ext.layout.ToolbarLayout,{triggerWidth:41,overflowTabIndex:void 0,onLayout:function(a,b){d.apply(this,arguments);a.items.each(function(a){Ext.isFunction(a.doLayout)&&a.doLayout()},this);this.overflowTabIndex&&this.more&&Ext.get(this.more.el).child("button").set({tabIndex:this.overflowTabIndex})},
configureItem:function(b){var c=this.container,d=c.getLayoutTarget();a.apply(this,arguments);b.on("show",function(a){if(!0!==a.xtbHidden)this.onLayout(c,d)},this);b.on("hide",function(a){if(!0!==a.xtbHidden)this.onLayout(c,d)},this)},hideItem:function(a){var b=this;c.apply(this,arguments);a.xtbOrigShow=a.show;a.show=function(){a.xtbOrigShow(!0);a.xtbWidth=a.getPositionEl().dom.parentNode.offsetWidth;a.xtbOrigHide(!1)};a.xtbOrigHide=a.hide;a.hide=function(){b.unhideItem(a);a.hide()}},unhideItem:function(a){a.show=
a.xtbOrigShow;delete a.xtbOrigShow;a.hide=a.xtbOrigHide;delete a.xtbOrigHide;delete a.xtbWidth;b.apply(this,arguments)},addComponentToMenu:function(a,b){if(!0===b.xtbHidden||!0!==b.hidden)Ext.isDefined(b.menu)&&b.splitOnMoreMenu?Ext.each(b.menu.items.items,function(b){a.add(this.createMenuConfig(b))},this):f.apply(this,arguments)},initMore:function(){if(!this.more){this.moreMenu=new Ext.menu.Menu({ownerCt:this.container,listeners:{beforeshow:this.onBeforeShowMoreMenu,scope:this}});this.more=new Ext.Button({iconCls:"icon_more",
ownerCt:this.container,tooltip:_("More options"),overflowText:_("More options"),listeners:{afterrender:this.afterMoreButtonRender,scope:this}});var a=this.insertCell(this.more,this.extrasTr,100);this.more.render(a)}},afterMoreButtonRender:function(a){a.menu=this.moreMenu},onBeforeShowMoreMenu:function(a){this.beforeMoreShow(a);a.items.each(function(a){Ext.isFunction(a.beforeShow)&&a.beforeShow.call(a.scope||a,a)},this)}})})();
(function(){var a=Ext.layout.boxOverflow.Menu.prototype.addComponentToMenu;Ext.override(Ext.layout.boxOverflow.Menu,{addComponentToMenu:function(c,b){!0!==b.xtbHidden&&!0===b.hidden||a.apply(this,arguments)}})})();(function(){var a=Ext.menu.Menu.prototype.constructor;Ext.override(Ext.menu.Menu,{constructor:function(){a.apply(this,arguments);this.on("hide",this.onMenuHide,this)},onMenuHide:function(a){Ext.isDefined(a.ownerCt)||Ext.isDefined(a.parentMenu)||!a.autoDestroy||a.destroy()}})})();
(function(){Ext.apply(Ext.state.Manager,{components:new Ext.util.MixedCollection(!1,function(a){return a.getStateId()}),register:function(a){this.components.add(a)},unregister:function(a){this.components.remove(a)},getComponent:function(a){return this.components.get(a)}})})();
(function(){Ext.override(Ext.tree.DefaultSelectionModel,{select:function(a,c,b){if(!Ext.fly(a.ui.wrap).isVisible()&&c)return c.call(this,a);c=this.selNode;if(a==c)if(b||!Ext.isDefined(b))a.ui.onSelectedChange(!0);else a.ui.addClass("x-tree-selected");else if(!1!==this.fireEvent("beforeselect",this,a,c)){if(c&&c.ui)c.ui.onSelectedChange(!1);this.selNode=a;a.ui.onSelectedChange(!0);this.fireEvent("selectionchange",this,a,c)}return a}})})();
(function(){var a=Ext.tree.TreeEditor.prototype.bindScroll,c=Ext.tree.TreeEditor.prototype.fitToTree;Ext.override(Ext.tree.TreeEditor,{fitToTree:function(){this.tree&&!0!==this.tree.isDestroyed&&c.apply(this,arguments)},bindScroll:function(){this.tree&&!0!==this.tree.isDestroyed&&a.apply(this,arguments)}})})();(function(){Ext.override(Ext.tree.TreeSorter,{doSort:function(a){if(a.childNodes){var c=document.activeElement;a.sort(this.sortFn);c&&"IFRAME"!==c.tagName&&c.focus()}}})})();
(function(){Ext.apply(Ext.util.Format,{fileSize:function(a){Ext.isNumber(a)||(a=0);if(1024>a)return String.format(ngettext("{0} byte","{0} bytes",a),a);a=parseFloat((a/1024).toFixed(1));if(1024>a)return String.format(ngettext("{0} KB","{0} KB",a),a);a=parseFloat((a/1024).toFixed(1));if(1024>a)return String.format(ngettext("{0} MB","{0} MB",a),a);a=parseFloat((a/1024).toFixed(1));if(1024>a)return String.format(ngettext("{0} GB","{0} GB",a),a);a=parseFloat((a/1024).toFixed(1));return String.format(ngettext("{0} TB",
"{0} TB",a),a)},percentage:function(a,c){Ext.isDefined(c)||(c=2);return(100*a).toFixed(c)+"%"},duration:function(a,c){c=Ext.isDefined(c)?c:0;if(60>a)return String.format(ngettext("{0} minute","{0} minutes",a),a);a=parseFloat((a/60).toFixed(c));if(24>a)return String.format(ngettext("{0} hour","{0} hours",a),a);a=parseFloat((a/24).toFixed(c));if(7>a)return String.format(ngettext("{0} day","{0} days",a),a);a=parseFloat((a/7).toFixed(c));return String.format(ngettext("{0} week","{0} weeks",a),a)},indent:function(a,
c){for(var b=(Ext.isDefined(a)?a:1)*(Ext.isDefined(c)?c:4),d="",f=0;f<b;f++)d+="&nbsp;";return d},elide:function(a,c,b,d){d=d?"..":"...";c=c||0;b=Ext.isDefined(b)?b:c;return 0===c&&0===b?a:a&&a.length>c+b?a.substr(0,c)+d+a.substr(a.length-b):a},htmlEncodeUndef:function(a){return this.htmlEncode(this.undef.apply(this,arguments))},htmlEncodeDefaultValue:function(a,c){return this.htmlEncode(this.defaultValue.apply(this,arguments))},htmlEncodeElide:function(a,c,b,d){return this.htmlEncode(this.elide.apply(this,
arguments))},htmlEncodeEllipsis:function(a,c,b){return this.htmlEncode(this.ellipsis.apply(this,arguments))},basename:function(a){return a.split("\\").pop()},htmlEncodeBasename:function(a){return this.htmlEncode(this.basename.apply(this,arguments))},sensitivityString:function(a){return Zarafa.core.mapi.Sensitivity.getDisplayName(a)},importanceString:function(a){return Zarafa.core.mapi.Importance.getDisplayName(a)},meetingStatusString:function(a){return Zarafa.core.mapi.MeetingStatus.getDisplayName(a)},
responseStatusString:function(a){return Zarafa.core.mapi.ResponseStatus.getDisplayName(a)},taskStatusString:function(a){return Zarafa.core.mapi.TaskStatus.getDisplayName(a)},busyStatusString:function(a){return Zarafa.core.mapi.BusyStatus.getDisplayName(a)}})})();
(function(){Ext.override(Ext.ux.Spinner,{doRender:function(a,c){var b=this.el=this.field.getEl(),d=this.field;d.wrap?this.wrap=d.wrap.addClass("x-form-field-wrap"):d.wrap=this.wrap=b.wrap({cls:"x-form-field-wrap"});this.trigger=this.wrap.createChild({tag:"img",src:Ext.BLANK_IMAGE_URL,cls:"x-form-trigger "+this.triggerClass});d.width||this.wrap.setWidth(b.getWidth()+this.trigger.getWidth());this.splitter=this.wrap.createChild({tag:"div",cls:this.splitterClass,style:"width:13px; height:2px;"});this.splitter.setRight(Ext.isIE?
1:2).setTop(10).show();Ext.isEmpty(d.boxLabel)||this.wrap.createChild({tag:"label",htmlFor:this.el.id,cls:"x-form-cb-label",html:d.boxLabel});this.proxy=this.trigger.createProxy("",this.splitter,!0);this.proxy.addClass("x-form-spinner-proxy");this.proxy.setStyle("left","0px");this.proxy.setSize(14,1);this.proxy.hide();this.dd=new Ext.dd.DDProxy(this.splitter.dom.id,"SpinnerDrag",{dragElId:this.proxy.id});this.initTrigger();this.initSpinner()},initSpinner:function(){this.field.addEvents({spin:!0,spinup:!0,
spindown:!0});this.keyNav=new Ext.KeyNav(this.el,{up:function(a){a.preventDefault();this.onSpinUp()},down:function(a){a.preventDefault();this.onSpinDown()},pageUp:function(a){a.preventDefault();this.onSpinUpAlternate()},pageDown:function(a){a.preventDefault();this.onSpinDownAlternate()},scope:this});this.field.mon(this.trigger,"click",this.onTriggerClick,this,{preventDefault:!0});this.field.mon(this.trigger,{mouseover:this.onMouseOver,mouseout:this.onMouseOut,mousemove:this.onMouseMove,mousedown:this.onMouseDown,
mouseup:this.onMouseUp,scope:this,preventDefault:!0});this.field.mon(this.wrap,"mousewheel",this.handleMouseWheel,this);this.dd.setXConstraint(0,0,10);this.dd.setYConstraint(1500,1500,10);this.dd.endDrag=this.endDrag.createDelegate(this);this.dd.startDrag=this.startDrag.createDelegate(this);this.dd.onDrag=this.onDrag.createDelegate(this)}})})();Ext.namespace("Zarafa.util");
Zarafa.util.Translations={msg:_("The quick brown fox jumps over the lazy dog"),SplitTranslation:function(a,c){if(!Ext.isDefined(c))return a;var b=a.indexOf(c);if(-1==b)return a;for(var d=b-1;" "==a[d]&&0<=d;)d--;for(b+=c.length;" "==a[b]&&b<a.length;)b++;return[a.substr(0,d+1),a.substr(b)]},MultiSplitTranslation:function(a,c){Ext.isArray(c)||(c=[c]);var b=new Ext.util.MixedCollection;b.add(a);for(var d=0;d<c.length;d++)b.each(function(a,e){var f=Zarafa.util.Translations.SplitTranslation(a,c[d]);if(!Ext.isArray(f))return!0;
b.removeAt(e);Ext.isEmpty(f[0])||(b.insert(e,f[0]),e++);b.insert(e,c[d]);e++;Ext.isEmpty(f[1])||b.insert(e,f[1]);return!1});return b.getRange()}};
(function(){Ext.apply(Date,{dayNames:[_("Sunday"),_("Monday"),_("Tuesday"),_("Wednesday"),_("Thursday"),_("Friday"),_("Saturday")],monthNames:[_("January"),_("February"),_("March"),_("April"),_("May"),_("June"),_("July"),_("August"),_("September"),_("October"),_("November"),_("December")]});Ext.PagingToolbar.tmpPageText=Zarafa.util.Translations.SplitTranslation(_("Page {A} of {0}"),"{A}");Ext.override(Ext.PagingToolbar,{displayMsg:_("Displaying messages {0} - {1} of {2}"),emptyMsg:_("No messages to display"),
beforePageText:Ext.PagingToolbar.tmpPageText[0],afterPageText:Ext.PagingToolbar.tmpPageText[1],firstText:_("First Page"),prevText:_("Previous Page"),nextText:_("Next Page"),lastText:_("Last Page"),refreshText:_("Refresh")});delete Ext.PagingToolbar.tmpPageText;Ext.override(Ext.DatePicker,{todayText:_("Today"),okText:"&nbsp;"+_("OK")+"&nbsp;",cancelText:_("Cancel"),todayTip:_("{0} (Spacebar)"),minText:_("This date is before the minimum date"),maxText:_("This date is after the maximum date"),format:_("d/m/Y"),
disabledDaysText:_("Disabled"),disabledDatesText:_("Disabled"),nextText:_("Next Month (Control+Right)"),prevText:_("Previous Month (Control+Left)"),monthYearText:_("Choose a month (Control+Up/Down to move years)"),monthNames:Date.monthNames,dayNames:Date.dayNames});Ext.override(Ext.grid.GridView,{sortAscText:_("Sort Ascending"),sortDescText:_("Sort Descending"),columnsText:_("Columns")});Ext.override(Ext.grid.GroupingView,{groupByText:_("Group By This Field"),showGroupsText:_("Show in Groups"),emptyGroupText:_("(None)")});
Ext.MessageBox.buttonText.ok=_("Ok");Ext.MessageBox.buttonText.cancel=_("Cancel");Ext.MessageBox.buttonText.yes=_("Yes");Ext.MessageBox.buttonText.no=_("No");Ext.override(Ext.LoadMask,{msg:_("Loading")+"..."});Ext.override(Ext.form.ComboBox,{loadingText:_("Loading")+"..."});Ext.override(Ext.form.Field,{invalidText:_("The value in this field is invalid")});Ext.override(Ext.form.TextField,{minLengthText:_("The minimum length for this field is {0}"),maxLengthText:_("The maximum length for this field is {0}"),
blankText:_("This field is required")});Ext.override(Ext.form.NumberField,{minText:_("The minimum value for this field is {0}"),maxText:_("The maximum value for this field is {0}"),nanText:_("{0} is not a valid number")});Ext.override(Ext.form.DateField,{format:_("d/m/Y"),disabledDaysText:_("Disabled"),disabledDatesText:_("Disabled"),minText:_("The date in this field must be equal to or after {0}"),maxText:_("The date in this field must be equal to or before {0}"),invalidText:_("{0} is not a valid date - it must be in the format {1}")});
Ext.override(Ext.form.CheckboxGroup,{blankText:_("You must select at least one item in this group")});Ext.override(Ext.form.RadioGroup,{blankText:_("You must select one item in this group")});Ext.override(Ext.form.TimeField,{minText:_("The time in this field must be equal to or after {0}"),maxText:_("The time in this field must be equal to or before {0}"),invalidText:_("{0} is not a valid time"),format:_("G:i")});Ext.override(Ext.grid.GridView,{sortAscText:_("Sort Ascending"),sortDescText:_("Sort Descending"),
columnsText:_("Columns")});Ext.override(Ext.grid.PropertyColumnModel,{nameText:_("Name"),valueText:_("Value"),dateFormat:_("d/m/Y"),trueText:_("true"),falseText:_("false")});Ext.apply(Ext.form.VTypes,{emailText:_('This field should be an e-mail address in the format "user@example.com"'),urlText:String.format(_('This field should be a URL in the format "{0}"'),"http://www.example.com"),alphaText:_("This field should only contain letters and _"),alphanumText:_("This field should only contain letters, numbers and _")})})();
(function(){var a=Ext.DatePicker.prototype.onRender,c=Ext.DatePicker.prototype.update,b=Ext.DatePicker.prototype.beforeDestroy,d=Ext.DatePicker.prototype.initComponent,f=Ext.DatePicker.prototype.selectToday;Ext.override(Ext.DatePicker,{width:"180",showWeekNumber:!1,weekCells:void 0,showNow:!1,initComponent:function(){this.initialConfig.startDay||(this.startDay=container.getSettingsModel().get("zarafa/v1/main/week_start"));if(0>this.startDay||this.startDay>=Date.dayNames.length)this.startDay=0;d.apply(this,
arguments)},onRender:function(){a.apply(this,arguments);this.getEl().down("table").applyStyles({width:this.width})},update:function(a,b){if(!0===this.showWeekNumber&&!Ext.isDefined(this.weekCells)){var d=this.el.child("table.x-date-inner",!0),e=d.tHead.rows[0],f={tag:"th",html:"<span>"+_("Wk")+"</span>"};Ext.DomHelper.insertFirst(e,f);d=d.tBodies[0];e={tag:"td",cls:"x-date-weeknumber",html:"<a><em><span></span></em></a>"};for(f=0;f<d.rows.length;f++)Ext.DomHelper.insertFirst(d.rows[f],e);this.weekCells=
this.el.select("td.x-date-weeknumber a em span")}c.apply(this,arguments);if(!0===this.showWeekNumber)for(var d=this.weekCells.elements,e=a.getFirstDateOfMonth(),f=0,g=d.length;f<g;f++)d[f].innerHTML=e.getWeekOfYear(),e=e.add(Date.DAY,7)},beforeDestroy:function(){b.apply(this,arguments);this.rendered&&Ext.isDefined(this.weekCells)&&(Ext.destroy(this.weekCells.el),delete this.weekCells)},selectToday:function(){this.showNow&&this.fireEvent("selectnow",this,this.value);f.apply(this,arguments)}})})();
(Ext.isIE||Ext.isEdge)&&function(){Ext.apply(Ext.EventManager,function(){function a(a){var b=!1,c=0,d=z.length,f=!1,e;if(a){if(a.getElementById||a.navigator){for(;c<d;++c){e=z[c];try{if(e.el===a){b=e.id;break}}catch(E){}}b||(b=Ext.id(a),z.push({id:b,el:a}),f=!0)}else b=Ext.id(a);Ext.elCache[b]||(Ext.Element.addToCache(new Ext.Element(a),b),f&&(Ext.elCache[b].skipGC=!0))}return b}function c(b,c,d,f,e,g){b=Ext.getDom(b);var k=a(b),k=Ext.elCache[k].events,q;q=v.on(b,c,e);k[c]=k[c]||[];k[c].push([d,e,
g,q,f]);if(b.addEventListener&&"mousewheel"==c){var h=["DOMMouseScroll",e,!1];b.addEventListener.apply(b,h);Ext.EventManager.addListener(A,"unload",function(){b.removeEventListener.apply(b,h)})}b==r&&"mousedown"==c&&Ext.EventManager.stoppedMouseDownEvent.addListener(e)}function b(){if(window!=top)return!1;try{r.documentElement.doScroll("left")}catch(k){return!1}g();return!0}function d(a){if(Ext.isIE&&b())return!0;if("complete"==r.readyState)return g(),!0;x||(t=setTimeout(arguments.callee,2));return!1}
function f(a){B||(B=Ext.query("style, link[rel=stylesheet]"));if(B.length==r.styleSheets.length)return g(),!0;x||(t=setTimeout(arguments.callee,2));return!1}function e(a){r.removeEventListener("DOMContentLoaded",arguments.callee,!1);f()}function g(a){x||(x=!0,t&&clearTimeout(t),C&&r.removeEventListener("DOMContentLoaded",g,!1),Ext.isIE&&d.bindIE&&r.detachEvent("onreadystatechange",d),v.un(A,"load",arguments.callee));m&&!Ext.isReady&&(Ext.isReady=!0,m.fire(),m.listeners=[])}function h(a,b){return function(){var c=
Ext.toArray(arguments);b.target==Ext.EventObject.setEvent(c[0]).target&&a.apply(this,c)}}function n(a,b,c){return function(d){c.delay(b.buffer,a,null,[new Ext.EventObjectImpl(d)])}}function l(a,b,c,d,e){return function(f){Ext.EventManager.removeListener(b,c,d,e);a(f)}}function p(a,b,c){return function(d){var e=new Ext.util.DelayedTask(a);c.tasks||(c.tasks=[]);c.tasks.push(e);e.delay(b.delay||10,a,null,[new Ext.EventObjectImpl(d)])}}function u(a,b,d,e,f){function g(a){if(Ext){a=Ext.EventObject.setEvent(a);
var b;if(k.delegate){if(!(b=a.getTarget(k.delegate,q)))return}else b=a.target;k.stopEvent&&a.stopEvent();k.preventDefault&&a.preventDefault();k.stopPropagation&&a.stopPropagation();!1===k.normalized&&(a=a.browserEvent);e.call(f||q,a,b,k)}}var k=d&&"boolean"!=typeof d?d:{},q=Ext.getDom(a),y;e=e||k.fn;f=f||k.scope;if(!q)throw'Error listening for "'+b+'". Element "'+a+"\" doesn't exist.";k.target&&(g=h(g,k));k.delay&&(g=p(g,k,e));k.single&&(g=l(g,q,b,e,f));k.buffer&&(y=new Ext.util.DelayedTask(g),g=
n(g,k,y));c(q,b,e,y,g,f);return g}var m,t,x=!1,C=Ext.isGecko||Ext.isWebKit||Ext.isSafari,v=Ext.lib.Event,r=document,A=window,D=/^(?:scope|delay|buffer|single|stopEvent|preventDefault|stopPropagation|normalized|args|delegate)$/,z=[],B,w={addListener:function(a,b,c,d,e){if("object"==typeof b)for(var f in b)c=b[f],D.test(f)||(Ext.isFunction(c)?u(a,f,b,c,b.scope):u(a,f,c));else u(a,b,e,c,d)},removeListener:function(b,c,d,e){b=Ext.getDom(b);var f=a(b),g=b&&Ext.elCache[f].events[c]||[],h,k,q;h=0;for(k=
g.length;h<k;h++)if(Ext.isArray(q=g[h])&&q[0]==d&&(!e||q[2]==e)){q[4]&&q[4].cancel();if(e=d.tasks&&d.tasks.length){for(;e--;)d.tasks[e].cancel();delete d.tasks}d=q[1];v.un(b,c,v.extAdapter?q[3]:d);d&&b.addEventListener&&"mousewheel"==c&&b.removeEventListener("DOMMouseScroll",d,!1);d&&b==r&&"mousedown"==c&&Ext.EventManager.stoppedMouseDownEvent.removeListener(d);g.splice(h,1);0===g.length&&delete Ext.elCache[f].events[c];for(e in Ext.elCache[f].events)return!1;Ext.elCache[f].events={};return!1}},removeAll:function(b){b=
Ext.getDom(b);var c=a(b),d=(Ext.elCache[c]||{}).events||{},e,f,g,h,k,l,m;for(h in d)if(d.hasOwnProperty(h))for(e=d[h],f=0,g=e.length;f<g;f++){k=e[f];k[4]&&k[4].cancel();if(k[0].tasks&&(l=k[0].tasks.length)){for(;l--;)k[0].tasks[l].cancel();delete k.tasks}m=k[1];v.un(b,h,v.extAdapter?k[3]:m);b.addEventListener&&m&&"mousewheel"==h&&b.removeEventListener("DOMMouseScroll",m,!1);m&&b==r&&"mousedown"==h&&Ext.EventManager.stoppedMouseDownEvent.removeListener(m)}Ext.elCache[c]&&(Ext.elCache[c].events={})},
getListeners:function(b,c){b=Ext.getDom(b);var d=a(b);return(d=(Ext.elCache[d]||{}).events||{},d[c])?d[c]:null},purgeElement:function(b,c,d){b=Ext.getDom(b);var e=a(b),e=(Ext.elCache[e]||{}).events||{},f,g;if(d){if(e&&e.hasOwnProperty(d))for(f=e[d],e=0,g=f.length;e<g;e++)Ext.EventManager.removeListener(b,d,f[e][0])}else Ext.EventManager.removeAll(b);if(c&&b&&b.childNodes)for(e=0,g=b.childNodes.length;e<g;e++)Ext.EventManager.purgeElement(b.childNodes[e],c,d)},_unload:function(){for(var a in Ext.elCache)Ext.EventManager.removeAll(a);
delete Ext.elCache;delete Ext.Element._flyweights;var b,c,d=Ext.lib.Ajax;"object"==typeof d.conn?b=d.conn:b={};for(c in b)(a=b[c])&&d.abort({conn:a,tId:c})},onDocumentReady:function(a,b,c){Ext.isReady?(m||(m=new Ext.util.Event),m.addListener(a,b,c),m.fire(),m.listeners=[]):(m||(m||(m=new Ext.util.Event),C&&r.addEventListener("DOMContentLoaded",g,!1),Ext.isIE?d()||(d.bindIE=!0,r.attachEvent("onreadystatechange",d)):Ext.isOpera?"complete"==r.readyState&&f()||r.addEventListener("DOMContentLoaded",e,
!1):Ext.isWebKit&&d(),v.on(A,"load",g)),c=c||{},c.delay=c.delay||1,m.addListener(a,b,c))},fireDocReady:g};w.on=w.addListener;w.un=w.removeListener;w.stoppedMouseDownEvent=new Ext.util.Event;return w}())}();
(function(){Ext.Layer=function(a,c){a=a||{};var b=Ext.DomHelper,d=Zarafa.core.BrowserWindowMgr.getActive(),g=a.parentEl,d=g?Ext.getDom(g):d.document.body;c&&(this.dom=Ext.getDom(c));this.dom||(this.dom=b.append(d,a.dh||{tag:"div",cls:"x-layer"}));a.cls&&this.addClass(a.cls);this.constrain=!1!==a.constrain;this.setVisibilityMode(Ext.Element.VISIBILITY);this.id=a.id?this.dom.id=a.id:Ext.id(this.dom);this.zindex=a.zindex||this.getZIndex();this.position("absolute",this.zindex);a.shadow?(this.shadowOffset=
a.shadowOffset||4,this.shadow=new Ext.Shadow({offset:this.shadowOffset,mode:a.shadow})):this.shadowOffset=0;this.useShim=!1!==a.shim&&Ext.useShims;this.useDisplay=a.useDisplay;this.hide()};var a=Ext.Element.prototype,c=[];Ext.extend(Ext.Layer,Ext.Element,{getZIndex:function(){return this.zindex||parseInt((this.getShim()||this).getStyle("z-index"),10)||11E3},getShim:function(){if(!this.useShim)return null;if(this.shim)return this.shim;var a=c.shift();a||(a=this.createShim(),a.enableDisplayMode("block"),
a.dom.style.display="none",a.dom.style.visibility="visible");var d=this.dom.parentNode;a.dom.parentNode!=d&&d.insertBefore(a.dom,this.dom);a.setStyle("z-index",this.getZIndex()-2);return this.shim=a},hideShim:function(){this.shim&&(this.shim.setDisplayed(!1),c.push(this.shim),delete this.shim)},disableShadow:function(){this.shadow&&(this.shadowDisabled=!0,this.shadow.hide(),this.lastShadowOffset=this.shadowOffset,this.shadowOffset=0)},enableShadow:function(a){this.shadow&&(this.shadowDisabled=!1,
Ext.isDefined(this.lastShadowOffset)&&(this.shadowOffset=this.lastShadowOffset,delete this.lastShadowOffset),a&&this.sync(!0))},sync:function(a){var b=this.shadow;if(!this.updating&&this.isVisible()&&(b||this.useShim)){var c=this.getShim(),e=this.getWidth(),g=this.getHeight(),h=this.getLeft(!0),n=this.getTop(!0);b&&!this.shadowDisabled?(a&&!b.isVisible()?b.show(this):b.realign(h,n,e,g),c&&(a&&c.show(),a=b.el.getXY(),c=c.dom.style,b=b.el.getSize(),c.left=a[0]+"px",c.top=a[1]+"px",c.width=b.width+"px",
c.height=b.height+"px")):c&&(a&&c.show(),c.setSize(e,g),c.setLeftTop(h,n))}},destroy:function(){this.hideShim();this.shadow&&this.shadow.hide();this.removeAllListeners();Ext.removeNode(this.dom);delete this.dom},remove:function(){this.destroy()},beginUpdate:function(){this.updating=!0},endUpdate:function(){this.updating=!1;this.sync(!0)},hideUnders:function(a){this.shadow&&this.shadow.hide();this.hideShim()},constrainXY:function(){if(this.constrain){var b=Ext.lib.Dom.getViewWidth(),c=Ext.lib.Dom.getViewHeight(),
f=Ext.getDoc().getScroll(),e=this.getXY(),g=e[0],e=e[1],h=this.shadowOffset,n=this.dom.offsetWidth+h,l=this.dom.offsetHeight+h,p=!1;g+n>b+f.left&&(g=b-n-h,p=!0);e+l>c+f.top&&(e=c-l-h,p=!0);g<f.left&&(g=f.left,p=!0);e<f.top&&(e=f.top,p=!0);p&&(this.avoidY&&(b=this.avoidY,e<=b&&e+l>=b&&(e=b-l-5)),e=[g,e],this.storeXY(e),a.setXY.call(this,e),this.sync())}return this},getConstrainOffset:function(){return this.shadowOffset},isVisible:function(){return this.visible},showAction:function(){this.visible=!0;
!0===this.useDisplay?this.setDisplayed(""):this.lastXY?a.setXY.call(this,this.lastXY):this.lastLT&&a.setLeftTop.call(this,this.lastLT[0],this.lastLT[1])},hideAction:function(){this.visible=!1;!0===this.useDisplay?this.setDisplayed(!1):this.setLeftTop(-1E4,-1E4)},setVisible:function(b,c,f,e,g){b&&this.showAction();if(c&&b){var d=function(){this.sync(!0);e&&e()}.createDelegate(this);a.setVisible.call(this,!0,!0,f,d,g)}else b||this.hideUnders(!0),d=e,c&&(d=function(){this.hideAction();e&&e()}.createDelegate(this)),
a.setVisible.call(this,b,c,f,d,g),b?this.sync(!0):c||this.hideAction();return this},storeXY:function(a){delete this.lastLT;this.lastXY=a},storeLeftTop:function(a,c){delete this.lastXY;this.lastLT=[a,c]},beforeFx:function(){this.beforeAction();return Ext.Layer.superclass.beforeFx.apply(this,arguments)},afterFx:function(){Ext.Layer.superclass.afterFx.apply(this,arguments);this.sync(this.isVisible())},beforeAction:function(){!this.updating&&this.shadow&&this.shadow.hide()},setLeft:function(b){this.storeLeftTop(b,
this.getTop(!0));a.setLeft.apply(this,arguments);this.sync();return this},setTop:function(b){this.storeLeftTop(this.getLeft(!0),b);a.setTop.apply(this,arguments);this.sync();return this},setLeftTop:function(b,c){this.storeLeftTop(b,c);a.setLeftTop.apply(this,arguments);this.sync();return this},setXY:function(b,c,f,e,g){this.fixDisplay();this.beforeAction();this.storeXY(b);e=this.createCB(e);a.setXY.call(this,b,c,f,e,g);c||e();return this},createCB:function(a){var b=this;return function(){b.constrainXY();
b.sync(!0);a&&a()}},setX:function(a,c,f,e,g){this.setXY([a,this.getY()],c,f,e,g);return this},setY:function(a,c,f,e,g){this.setXY([this.getX(),a],c,f,e,g);return this},setSize:function(b,c,f,e,g,h){this.beforeAction();g=this.createCB(g);a.setSize.call(this,b,c,f,e,g,h);f||g();return this},setWidth:function(b,c,f,e,g){this.beforeAction();e=this.createCB(e);a.setWidth.call(this,b,c,f,e,g);c||e();return this},setHeight:function(b,c,f,e,g){this.beforeAction();e=this.createCB(e);a.setHeight.call(this,
b,c,f,e,g);c||e();return this},setBounds:function(b,c,f,e,g,h,n,l){this.beforeAction();n=this.createCB(n);g?a.setBounds.call(this,b,c,f,e,g,h,n,l):(this.storeXY([b,c]),a.setXY.call(this,[b,c]),a.setSize.call(this,f,e,g,h,n,l),n());return this},setZIndex:function(a){this.zindex=a;this.setStyle("z-index",a+2);this.shadow&&this.shadow.setZIndex(a+1);this.shim&&this.shim.setStyle("z-index",a);return this}})})();//# sourceMappingURL=extjs-mod.js.map
