Ext.namespace("Zarafa.plugins.zdeveloper");
Zarafa.plugins.zdeveloper.ZDeveloperPlugin=Ext.extend(Zarafa.core.Plugin,{initPlugin:function(){Zarafa.plugins.zdeveloper.ZDeveloperPlugin.superclass.initPlugin.apply(this,arguments);this.registerInsertionPoint(/(.*?)/,this.putMessageBox,this)},putMessageBox:function(a){if("main.categories"===a)return _("INSERT")+": "+a;if(a.match(/(.*?).tabs/))return{xtype:"panel",title:a,listeners:{added:function(){Ext.get(this.tabEl.lastChild).addClass("zdeveloper-insertion-point")},delay:1,single:!0}};if("navigation.center"==
a)return{xtype:"zarafa.contextnavigation",items:[{xtype:"box",autoEl:{tag:"div",html:a,cls:"zdeveloper-insertion-point"}}],context:container.getCurrentContext()};if("context.settings.categories"==a)return{xtype:"zarafa.settingscategory",title:a,iconCls:"zdeveloper-insertion-point",items:[]};if(a.match(/(.*?)toolbar(.*?)/)&&"previewpanel.toolbar.detaillinks"!==a)return{xtype:"button",text:a,cls:"zdeveloper-insertion-point",listeners:{render:function(){this.text||this.setText(Ext.isObject(this.tooltip)?
this.tooltip.title:this.tooltip)}}};if("context.mail.gridrow"==a)return String.format('<td style="width: 112px"><div class="{0}">{1}</div></td>',"grid_compact zdeveloper-insertion-point","context.mail.gridrow");if("context.mail.griddefaultcolumn"==a||"context.addressbook.gridpanel"==a)return{header:'<p class="zdeveloper-insertion-point">context.mail.griddefaultcolumn</p>',width:200,renderer:function(a,b,c){return"context.mail.griddefaultcolumn"},tooltip:_("Sort by: context.mail.griddefaultcolumn")};
if("main.content"!=a)return{xtype:"box",autoEl:{tag:"div",html:a,cls:"zdeveloper-insertion-point"}}}});Zarafa.onReady(function(){container.registerPlugin(new Zarafa.core.PluginMetaData({name:"zdeveloper",displayName:_("ZDeveloper"),pluginConstructor:Zarafa.plugins.zdeveloper.ZDeveloperPlugin}))});//# sourceMappingURL=zdeveloper.js.map
