!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(this,function(){return function(e){function t(i){if(n[i])return n[i].exports;var a=n[i]={exports:{},id:i,loaded:!1};return e[i].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}var n={};return t.m=e,t.c=n,t.p="/",t(0)}({0:function(e,t,n){n(291),n(292),n(293),n(290),n(654)},1:function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var i={},a=0;a<this.length;a++){var r=this[a][0];"number"==typeof r&&(i[r]=!0)}for(a=0;a<t.length;a++){var o=t[a];"number"==typeof o[0]&&i[o[0]]||(n&&!o[2]?o[2]=n:n&&(o[2]="("+o[2]+") and ("+n+")"),e.push(o))}},e}},2:function(e,t,n){function i(e,t){for(var n=0;n<e.length;n++){var i=e[n],a=d[i.id];if(a){a.refs++;for(var r=0;r<a.parts.length;r++)a.parts[r](i.parts[r]);for(;r<i.parts.length;r++)a.parts.push(c(i.parts[r],t))}else{for(var o=[],r=0;r<i.parts.length;r++)o.push(c(i.parts[r],t));d[i.id]={id:i.id,refs:1,parts:o}}}}function a(e){for(var t=[],n={},i=0;i<e.length;i++){var a=e[i],r=a[0],o=a[1],s=a[2],l=a[3],c={css:o,media:s,sourceMap:l};n[r]?n[r].parts.push(c):t.push(n[r]={id:r,parts:[c]})}return t}function r(e,t){var n=g(),i=T[T.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),T.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function o(e){e.parentNode.removeChild(e);var t=T.indexOf(e);t>=0&&T.splice(t,1)}function s(e){var t=document.createElement("style");return t.type="text/css",r(e,t),t}function l(e){var t=document.createElement("link");return t.rel="stylesheet",r(e,t),t}function c(e,t){var n,i,a;if(t.singleton){var r=C++;n=m||(m=s(t)),i=p.bind(null,n,r,!1),a=p.bind(null,n,r,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=l(t),i=u.bind(null,n),a=function(){o(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),i=A.bind(null,n),a=function(){o(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else a()}}function p(e,t,n,i){var a=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,a);else{var r=document.createTextNode(a),o=e.childNodes;o[t]&&e.removeChild(o[t]),o.length?e.insertBefore(r,o[t]):e.appendChild(r)}}function A(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function u(e,t){var n=t.css,i=t.sourceMap;i&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([n],{type:"text/css"}),r=e.href;e.href=URL.createObjectURL(a),r&&URL.revokeObjectURL(r)}var d={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},h=f(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),g=f(function(){return document.head||document.getElementsByTagName("head")[0]}),m=null,C=0,T=[];e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=h()),"undefined"==typeof t.insertAt&&(t.insertAt="bottom");var n=a(e);return i(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o],l=d[s.id];l.refs--,r.push(l)}if(e){var c=a(e);i(c,t)}for(var o=0;o<r.length;o++){var l=r[o];if(0===l.refs){for(var p=0;p<l.parts.length;p++)l.parts[p]();delete d[l.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},62:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAAnNCSVQICFXsRgQAAAAJcEhZcwAAAbsAAAG7ATrs4+IAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAABXklEQVQYGQXBy04TYRgA0DMzP2BpuCSgKF7QiBE3JiaujWsjr+DK59A3MXFvcGPcujKsTDSYIFq80QpYmloLxVJmPs/JAnCUufV9+c8ys42rDZv1AISwsbj+8le/G53oxEF0oxt7/fW1jcUQhBerXwa/Yzd24lccRCd2oxX70Y7GYO1hyMKb5pWLGUIyITNSITe007x/OXF07hAhkwxRKlEJ3QUS3ZSbBpwiIWT6momcUy0f1eWSSZOSwoxtDZCT+6vnmzpamn46q1AzFEgwa1rblGMjldJ7ybiaQKKMZlazIlywp5JbcMaWvlpFosiWFFruOFSplDoqI3NOchInp1/H5q3oKxDGzBo39ENRkmN0Q13LJZMyuRB6eualE3K2njaqgUWftA0M/HNoyox2tfmELPD47vnnSzfvFT37SoUFw/Lt1udHz96RBeDBxLXVudvZ9cpw+/jD9qvXQ+A/WHapO5F2Z28AAAAASUVORK5CYII="},290:function(e,t){/**
	 * Tine 2.0
	 * 
	 * @package     CoreData
	 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
	 * @author      Philipp Schüle <p.schuele@metaways.de>
	 * @copyright   Copyright (c) 2007-2016 Metaways Infosystems GmbH (http://www.metaways.de)
	 *
	 */
Ext.ns("Tine","Tine.CoreData"),Tine.CoreData.Application=Ext.extend(Tine.Tinebase.Application,{}),Tine.CoreData.MainScreen=Ext.extend(Tine.widgets.MainScreen,{getCanonicalPathSegment:function(){var e=this.getCenterPanel().app,t=e?e.name:"unknown";return[this.supr().getCanonicalPathSegment.call(this),t].join(Tine.Tinebase.CanonicalPath.separator)},getNorthPanel:function(e){return e=e||this.getActiveContentType(),this[e+"ActionToolbar"]||(""===e?this[e+"ActionToolbar"]=new Ext.Toolbar({items:[]}):this[e+"ActionToolbar"]=Ext.isFunction(this[e+this.centerPanelClassNameSuffix].getActionToolbar)?this[e+this.centerPanelClassNameSuffix].getActionToolbar():Tine.CoreData.Manager.getToolbar(e)),this[e+"ActionToolbar"]},getCenterPanel:function(e){return e=e||this.getActiveContentType(),this[e+this.centerPanelClassNameSuffix]||(""===e?this[e+this.centerPanelClassNameSuffix]=new Ext.Panel({html:this.app.i18n._("Please select core data from tree ...")}):this[e+this.centerPanelClassNameSuffix]=Tine.CoreData.Manager.getGrid(e)),this[e+this.centerPanelClassNameSuffix]},getWestPanel:function(){var e="WestPanel";if(!this[e]){var t={app:this.app,listeners:{scope:this,selectionchange:function(){var e=this.getCenterPanel();if(e)try{var t=e.getGrid();if(t){var n=t.getSelectionModel();n&&(n.clearSelections(),e.actionUpdater.updateActions(n))}}catch(e){}}}};try{Tine[this.app.name].hasOwnProperty(e)?this[e]=new Tine[this.app.appName][e](t):this[e]=new Tine.widgets.mainscreen.WestPanel(t)}catch(t){Tine.log.error("Could not create westPanel"),Tine.log.error(t.stack?t.stack:t),this[e]=new Ext.Panel({html:"ERROR"})}}return this[e]}})},291:function(e,t){/*
	 * Tine 2.0
	 *
	 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
	 * @author      Philipp Schüle <p.schuele@metaways.de>
	 * @copyright   Copyright (c) 2016 Metaways Infosystems GmbH (http://www.metaways.de)
	 *
	 */
Ext.ns("Tine.CoreData"),Tine.CoreData.Manager=function(){var e={},t={},n={};return{getGrid:function(t,n){return e.hasOwnProperty(t)?(constr=e[t].constr,n||(n=e[t].options)):Tine.log.warn("Id not registered in CoreData manager: "+t),Ext.isFunction(constr)?new constr(n):null},getEditDialog:function(e,n){return t.hasOwnProperty(e)&&(constr=t[type]),Ext.isFunction(constr)?new constr(n):null},getToolbar:function(e,t){return n.hasOwnProperty(e)?(constr=n[type],t||(t=n[e].options)):Tine.log.warn("Id not registered in CoreData manager: "+e),Ext.isFunction(constr)?new constr(t):null},registerGrid:function(t,n,i){e[t]={constr:n,options:i}},registerToolbar:function(e,t,i){n[e]={constr:t,options:i}},registerEditDialog:function(e,n){t[e]=n}}}()},292:function(e,t){/**
	 * Tine 2.0
	 *
	 * @package     CoreData
	 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
	 * @author      Philipp Schüle <p.schuele@metaways.de>
	 * @copyright   Copyright (c) 2016 Metaways Infosystems GmbH (http://www.metaways.de)
	 *
	 */
Ext.ns("Tine","Tine.CoreData"),Tine.CoreData.TreePanel=function(e){Ext.apply(this,e),this.id="TreePanel",Tine.CoreData.TreePanel.superclass.constructor.call(this)},Ext.extend(Tine.CoreData.TreePanel,Ext.tree.TreePanel,{autoScroll:!0,border:!1,initComponent:function(){this.app||(this.app=Tine.Tinebase.appMgr.get("CoreData"));var e=this.getCoreDataNodes("/general"),t=this.getCoreDataNodes("/applications");this.root={path:"/",cls:"tinebase-tree-hide-collapsetool",text:this.app.i18n._("Core Data"),expanded:!0,children:[{path:"/general",id:"general",expanded:!0,text:this.app.i18n._("General Data"),hidden:0==e.length,children:e},{path:"/applications",id:"applications",expanded:!0,text:this.app.i18n._("Application Data"),children:t}]},this.on("click",this.onClick,this),Tine.CoreData.TreePanel.superclass.initComponent.call(this)},getCoreDataNodes:function(e){if(!Tine.CoreData.registry.get("coreData"))return[];var t=[],n={};return Ext.each(Tine.CoreData.registry.get("coreData").results,function(i){if("/applications"===e&&"Tinebase"!==i.application_id.name||"/general"===e&&"Tinebase"===i.application_id.name){var a=Tine.Tinebase.appMgr.get(i.application_id.name);n[i.application_id.name]||(n[i.application_id.name]=[],t.push({path:e+"/"+i.application_id.id,id:i.application_id.id,text:a.i18n._(i.application_id.name),attributes:i.application_id})),n[i.application_id.name].push({path:e+"/"+i.application_id.id+"/"+i.id,id:i.id,text:a.i18n._(i.label),leaf:!0,attributes:i})}},this),"/general"===e?n.Tinebase?n.Tinebase:[]:(Ext.each(t,function(e){e.children=n[e.attributes.name]}),t)},onClick:function(e,t){if(!(e.attributes.attributes&&e.attributes.attributes.id&&e.leaf))return!1;Tine.log.debug("Tine.CoreData.TreePanel::onClick"),Tine.log.debug(e);var n=this.app.getMainScreen();n.setActiveContentType(e.attributes.attributes.id),n.getCenterPanel().getStore().reload()}})},293:function(e,t){/* 
	 * Tine 2.0
	 * 
	 * @license     http://www.gnu.org/licenses/agpl.html AGPL Version 3
	 * @author      Philipp Schüle <p.schuele@metaways.de>
	 * @copyright   Copyright (c) 216 Metaways Infosystems GmbH (http://www.metaways.de)
	 */
Ext.ns("Tine.CoreData"),Tine.CoreData.WestPanel=Ext.extend(Tine.widgets.mainscreen.WestPanel,{getAdditionalItems:function(){return[new Tine.CoreData.TreePanel({height:"auto"})]}})},567:function(e,t,n){t=e.exports=n(1)(),t.push([e.id,".CoreDataIconCls{background-image:url("+n(62)+")!important}.x-btn-medium .CoreDataIconCls{background-image:url("+n(1193)+")!important}.x-btn-large .CoreDataIconCls{background-image:url("+n(1554)+")!important}",""])},654:function(e,t,n){var i=n(567);"string"==typeof i&&(i=[[e.id,i,""]]);n(2)(i,{});i.locals&&(e.exports=i.locals)},1193:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAQAAABuvaSwAAAAAnNCSVQICFXsRgQAAAAJcEhZcwAAAmEAAAJhAcEwVfoAAAAZdEVYdFNvZnR3YXJlAHd3dy5pbmtzY2FwZS5vcmeb7jwaAAACSUlEQVQYGQXBv24bBRwA4O/OZ+ykJjEkTdJWKFabtBUMPAESgr4BQgwMZWaFkaEDj1CQGKtOVIIXQJVYCiP/JKSqVEpIYjs2SZr4750v9+P7kgAAMF5yHd3WDABACCEs0sMP//ixOxgXZRQxizLGRXfw5w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