1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.BAdminCoreEmail= function() {}
8 Roo.apply(Pman.Dialog.BAdminCoreEmail.prototype, {
11 'dc0de523c25be298ba751c63c694109e' :"Responsive Email (1)",
12 '2df994fe4798f819768c87824ec15ced' :"Email address:",
13 '843627586c62e389041a4d8800143974' :"Searching",
14 'd300e4dc3731ba320cbd6aafb9168b06' :"<i class=\"fa fa-repeat\"></i> Convert HTML to Text",
15 'ecc28898262b5b932c0a9e77315f31f7' :"<i class='fa fa-camera'></i> Images /Attachments",
16 '9e6cfe444e5e2a180173ca6b1a621415' :"<i class='fa fa-minus'></i> Delete",
17 '71d7f75db6d01a9c60670fda5a41e629' :"Subjects:",
18 'a0ffbff9bc1fb40496f2b7b07f710732' :"Message Editor",
19 '4cd559a2b504a2bb3b2c26628c7a9184' :"<i class='fa fa-file-text'></i> Use Template",
20 '2c466a2c159463f1d9ef5a7b57b52827' :"Select BCC Group",
21 '76348cf9ddb92acc65440418b185db2d' :"File Name",
22 '396ecabf0cd1f9503e591418851ef406' :"Edit / Create Message",
23 '73ea6b4441cdced246d236b22c8f991c' :"HTML File",
24 '31bb2f6e9b8fb11cbb7fb63c6025223f' :"Select Template",
25 '3858712080cb3d846ea206d1d1070674' :"Test Class (for system reference only):",
26 '296993584750e6ab52793cf0e6fbe27a' :"Display Order",
27 '0a5fecb1d88a50f47cc2ed2fd985c304' :"BCC Group:",
28 'b78a3223503896721cca1303f776159b' :"Title",
29 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
30 'c4ca4238a0b923820dcc509a6f75849b' :"1",
31 '1e6d57e813355689e9c77e947d73ad8f' :"From:",
32 'e3e8fe3bbe6bed494a417c58c4fcf4be' :"<i class='fa fa-plus'></i> Add",
33 '292f75d54a6892cfe18a93e64230112a' :"Mailout Name:",
34 '5feb9bf3c03b32635135006cbacb9542' :"Insert Field",
35 'b9c49611cfda3259a2b837b39489e650' :"Add Image",
36 '222be0de36fcd69d624f72a2ba121b4e' :"<i class=\"fa fa-cog\"></i> Image Manager",
37 'e44b145bd8b49b06e0ad2ced1ad56466' :"Plain Text",
38 'c9cc8cce247e49bae79f15173ce97354' :"Save",
39 'b3724add3f98fe41c39cc0e56edc18bc' :"<i class='fa fa-clipboard'></i> Import",
40 'e6b391a8d2c4d45902a23a8b6585703d' :"URL",
41 '36a65bbd12f7586ea1f9b0be4e8848aa' :"HTML Editor"
47 show : function(data, cb)
55 this.dialog.show(this.data._el);
58 this.form.setValues(data);
59 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
67 this.dialog = Roo.factory({
70 title : _this._strings['396ecabf0cd1f9503e591418851ef406'] /* Edit / Create Message */,
72 '|xns' : 'Roo.bootstrap',
76 html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
80 click : function (_self, e)
86 '|xns' : 'Roo.bootstrap'
90 html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
94 click : function (_self, e)
98 _this.form.preValidate(function(res) {
102 //_this.form.doAction("submit");
108 '|xns' : 'Roo.bootstrap'
114 xns : Roo.bootstrap.layout,
115 '|xns' : 'Roo.bootstrap.layout',
118 alwaysShowTabs : true,
120 xns : Roo.bootstrap.layout,
121 '|xns' : 'Roo.bootstrap.layout'
131 title : _this._strings['a0ffbff9bc1fb40496f2b7b07f710732'] /* Message Editor */,
132 tpl : '<a href=\"#\"><span class=\"icon\"><i class=\"fa fa-pencil\"></i></span> <span unselectable=\"on\" title=\"{text}\">{text}</span><span class=\"badge\">{badge}</span></a>',
133 xns : Roo.bootstrap.panel,
134 '|xns' : 'Roo.bootstrap.panel',
139 '|xns' : 'Roo.bootstrap',
143 style : 'margin-top: 20px; margin-bottom: 20px;',
145 '|xns' : 'Roo.bootstrap',
151 '|xns' : 'Roo.bootstrap',
154 xtype : 'ButtonGroup',
156 '|xns' : 'Roo.bootstrap',
160 html : _this._strings['b3724add3f98fe41c39cc0e56edc18bc'] /* <i class='fa fa-clipboard'></i> Import */,
162 '|xns' : 'Roo.bootstrap',
166 '|xns' : 'Roo.bootstrap',
170 html : _this._strings['e6b391a8d2c4d45902a23a8b6585703d'] /* URL */,
172 click : function (_self, e)
174 Pman.Dialog.BAdminCoreImportUrl.show({
175 target : '/Core/ImportMailMessage.php'
179 _this.form.findField('bodytext').setValue(data);
185 '|xns' : 'Roo.bootstrap'
189 html : _this._strings['73ea6b4441cdced246d236b22c8f991c'] /* HTML File */,
191 click : function (_self, e)
193 Pman.Dialog.BAdminImage.show({
194 _url : baseURL + '/Core/ImportMailMessage.php'
197 _this.form.findField('bodytext').setValue(data);
203 '|xns' : 'Roo.bootstrap'
210 html : _this._strings['4cd559a2b504a2bb3b2c26628c7a9184'] /* <i class='fa fa-file-text'></i> Use Template */,
212 '|xns' : 'Roo.bootstrap',
216 '|xns' : 'Roo.bootstrap',
220 html : _this._strings['dc0de523c25be298ba751c63c694109e'] /* Responsive Email (1) */,
222 click : function (_self, e)
225 var l = document.location;
228 url : baseURL + '/Core/ImportMailMessage.php',
233 importUrl : l.protocol +'//' + l.host + rootURL + '/Pman/Crm/mail_templates/responsive1.html'
235 success : function (res) {
237 _this.form.findField('bodytext').setValue(res.data);
244 '|xns' : 'Roo.bootstrap'
257 '|xns' : 'Roo.bootstrap',
263 displayField : 'file',
265 forceSelection : true,
266 hiddenName : 'template',
269 placeholder : _this._strings['31bb2f6e9b8fb11cbb7fb63c6025223f'] /* Select Template */,
270 selectOnFocus : true,
271 triggerAction : 'all',
275 select : function (combo, record, index)
286 _this.form.findField('bodytext').setValue(record.data.content);
291 '|xns' : 'Roo.bootstrap',
295 sortInfo : { direction : 'DESC', field: 'file' },
297 beforeload : function (_self, o){
298 o.params = o.params || {};
306 url : baseURL + '/Core/MailTemplateList.php',
311 xtype : 'JsonReader',
312 fields : [{"name":"file","type":"string"},{"name":"content","type":"string"}],
315 totalProperty : 'total',
328 preValidate : function(done_callback) {
330 Roo.MessageBox.progress("Uploading Images", "Uploading");
332 if(!_this.form.findField('bodytext').editorcore.sourceEditMode){
333 _this.form.findField('bodytext').syncValue();
335 _this.form.findField('bodytext').pushValue();
338 var html = _this.form.findField('bodytext').getValue();
340 var s = Roo.get(_this.form.findField('bodytext').editorcore.doc.documentElement);
342 var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';
347 s.select('img[src]').each(function(i) {
352 var total = nodes.length;
354 var mkimg = function() {
356 Roo.MessageBox.hide();
357 _this.form.findField('bodytext').syncValue();
359 _this.form.doAction("submit");
364 var n = i.getAttribute('src').match(/(baseURL|server_baseurl)/);
371 n = i.getAttribute('src').match(/^http(.*)/);
381 url : baseURL + '/Roo/Images.php',
384 onid : _this.form.findField('id').getValue(),
386 _remote_upload : i.src
388 success : function(res){
389 if(res.success == true){
390 i.setAttribute('src', res.data);
391 Roo.MessageBox.updateProgress( (total - nodes.length) / total , "Done " + (total - nodes.length) + '/' + total);
400 url : baseURL + '/Roo/crm_mailing_list_message.php',
402 actioncomplete : function(_self,action)
405 if (action.type == 'setdata') {
407 setInterval(_this.form.findField('bodytext').autosave, 5000);
409 _this.data.module = _this.data.module || 'crm_mailing_list_message';
410 _this.form.url = baseURL + '/Roo/' + _this.data.module;
412 //_this.html_preview.hide();
413 //_this.preview_btn.hide();
415 if(_this.data.id*1 > 0){
416 _this.dialog.el.mask("Loading");
417 this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }})
418 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
420 //_this.html_preview.show();
421 //_this.preview_btn.show();
424 _this.form.setValues({
425 'from_name' : Pman.Login.authUser.name,
426 'from_email' : Pman.Login.authUser.email
431 if (action.type == 'load') {
432 _this.dialog.el.unmask();
434 _this.form.findField('bodytext').originalValue = _this.form.findField('bodytext').getValue();
438 if (action.type =='submit') {
440 _this.dialog.el.unmask();
443 if (_this.callback) {
444 _this.callback.call(_this, action.result.data);
450 actionfailed : function (_self, action)
452 if (action.type == 'submit') {
455 render : function (_self)
461 '|xns' : 'Roo.bootstrap',
466 '|xns' : 'Roo.bootstrap',
472 '|xns' : 'Roo.bootstrap',
477 fieldLabel : _this._strings['292f75d54a6892cfe18a93e64230112a'] /* Mailout Name: */,
481 '|xns' : 'Roo.bootstrap'
489 '|xns' : 'Roo.bootstrap',
493 boxLabel : 'Enabled - will be sent out',
499 check : function (_self, checked)
501 var boxLabel = 'Enabled - will be sent out';
504 boxLabel = 'Disabled - will NOT be sent out';
507 //this.setBoxLabel(boxLabel);
511 '|xns' : 'Roo.bootstrap'
520 '|xns' : 'Roo.bootstrap',
527 '|xns' : 'Roo.bootstrap',
532 fieldLabel : _this._strings['1e6d57e813355689e9c77e947d73ad8f'] /* From: */,
536 '|xns' : 'Roo.bootstrap'
545 '|xns' : 'Roo.bootstrap',
551 '|xns' : 'Roo.bootstrap',
556 fieldLabel : _this._strings['2df994fe4798f819768c87824ec15ced'] /* Email address: */,
560 '|xns' : 'Roo.bootstrap'
569 '|xns' : 'Roo.bootstrap',
575 '|xns' : 'Roo.bootstrap',
581 displayField : 'name',
583 fieldLabel : _this._strings['0a5fecb1d88a50f47cc2ed2fd985c304'] /* BCC Group: */,
584 forceSelection : true,
585 hiddenName : 'bcc_group',
588 loadingText : _this._strings['843627586c62e389041a4d8800143974'] /* Searching */,
590 name : 'bcc_group_name',
592 placeholder : _this._strings['2c466a2c159463f1d9ef5a7b57b52827'] /* Select BCC Group */,
593 triggerAction : 'all',
597 '|xns' : 'Roo.bootstrap',
601 sortInfo : { direction : 'ASC', field: 'name' },
603 beforeload : function (_self, o){
604 o.params = o.params || {};
606 o.params._direct_return = 1;
614 url : baseURL + '/Roo/Core_group',
619 xtype : 'JsonReader',
620 fields : [{"name":"name","type":"string"},{"name":"id","type":"int"}],
623 totalProperty : 'total',
636 '|xns' : 'Roo.bootstrap',
642 '|xns' : 'Roo.bootstrap',
647 fieldLabel : _this._strings['71d7f75db6d01a9c60670fda5a41e629'] /* Subjects: */,
651 '|xns' : 'Roo.bootstrap'
660 '|xns' : 'Roo.bootstrap',
665 '|xns' : 'Roo.bootstrap',
669 header : _this._strings['36a65bbd12f7586ea1f9b0be4e8848aa'] /* HTML Editor */,
672 '|xns' : 'Roo.bootstrap',
677 '|xns' : 'Roo.bootstrap',
683 '|xns' : 'Roo.bootstrap',
688 displayField : 'filename',
690 forceSelection : true,
693 loadingText : _this._strings['843627586c62e389041a4d8800143974'] /* Searching */,
694 placeholder : _this._strings['b9c49611cfda3259a2b837b39489e650'] /* Add Image */,
695 tpl : '<li>\n <a>\n <div class=\"row\" style=\"white-space: nowrap\">\n <div class=\"col-md-4\">\n <img \n src=\"{public_baseURL}/Core/Images/Thumb/150x150/{id}.jpg\" \n height=\"70\" \n width=\"70\"\n >\n </div>\n <div class=\"col-md-8\">\n <b>{filename}</b>\n </div>\n </div>\n </a>\n</li>',
696 triggerAction : 'all',
700 beforequery : function (combo, query, forceAll, cancel, e)
702 var id = _this.form.findField('id').getValue() * 1;
704 Roo.MessageBox.alert("Error", "Save message first");
708 render : function (_self)
710 _this.extendimgselect = _self;
712 select : function (combo, record, index)
720 var editor = _this.form.findField('bodytext').editorcore;
721 var curnode = editor.getSelectedNode();
723 if (curnode && curnode.tagName == 'IMG') {
724 curnode.src= String.format('{0}/Images/{1}/{2}#image-{1}',
725 baseURL, record.data.id, record.data.filename
727 // note -forces an update... hopefully...
728 editor.owner.fireEvent('editorevent', editor, false);
731 editor.insertAtCursor(
732 String.format('<img src="{0}/Images/{1}/{2}#image-{1}">',
733 baseURL, record.data.id, record.data.filename
742 '|xns' : 'Roo.bootstrap',
746 sortInfo : '{ direction : \'ASC\', field: \'id\' }',
748 beforeload : function (_self, o){
750 o.params = o.params || {};
752 var id = _this.form.findField('id').getValue() * 1;
754 Roo.MessageBox.alert("Error", "Save email template first");
758 o.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';
760 // o.params.imgtype = 'PressRelease';
761 //o.params['query[imagesize]'] = '150x150';
770 url : baseURL + '/Roo/Images.php',
775 xtype : 'JsonReader',
776 fields : [{"name":"id","type":"int"},{"name":"filename","type":"string"},{"name":"url_thumb","type":"string"}],
779 totalProperty : 'total',
791 '|xns' : 'Roo.bootstrap',
796 displayField : 'name',
798 forceSelection : true,
801 loadingText : _this._strings['843627586c62e389041a4d8800143974'] /* Searching */,
802 placeholder : _this._strings['5feb9bf3c03b32635135006cbacb9542'] /* Insert Field */,
803 triggerAction : 'all',
807 render : function (_self)
809 _this.unsubscribeselect = _self;
811 select : function (combo, record, index)
817 var editor = _this.form.findField('bodytext').editorcore;
819 if(record.data.name == 'Unsubscribe'){
820 editor.insertAtCursor(
821 String.format('<a href="{0}">{1}</a>',
822 record.data.type, record.data.name
828 editor.insertAtCursor(
837 '|xns' : 'Roo.bootstrap',
839 xtype : 'SimpleStore',
841 [ '{person.firstname}', "First Name"],
842 [ '{person.lastname}' , "Last Name"],
843 [ '{person.name}', "Full Name"],
844 [ '#unsubscribe', "Unsubscribe"]
846 fields : [ 'type', 'name'],
857 '|xns' : 'Roo.bootstrap',
861 html : _this._strings['222be0de36fcd69d624f72a2ba121b4e'] /* <i class="fa fa-cog"></i> Image Manager */,
864 click : function (_self, e)
866 Pman.Dialog.BAdminImageManager.show({});
871 '|xns' : 'Roo.bootstrap'
878 xtype : 'HtmlEditor',
879 autosave : function() {
881 var body = _this.form.findField('bodytext');
883 //if(!body.wrap.isVisible(true) || body.getValue() == '' || !body.isDirty()){ /////////isDirty() has not defined
885 if(!body.wrap.isVisible(true) || body.getValue() == ''){
886 Roo.log('body not dirty');
890 Roo.log('body dirty, auto save!');
892 body.fireEvent('autosave', body);
897 autosave : function (_self)
901 var id = _this.form.findField('id').getValue() * 1;
903 if(!_self.editorcore.sourceEditMode){
911 url : baseURL + '/Roo/Events.php',
916 on_id : (id > 0) ? id : 0,
917 on_table : 'crm_mailing_list_message',
919 source: _self.getValue()
921 success : function() {
922 _self.originalValue = _self.getValue();
927 Roo.log('body autosave failed?!');
932 savedpreview : function (_self)
934 var id = _this.form.findField('id').getValue() * 1;
936 var successFn = function(res){
937 return res.data.POST.source;
943 on_id : (id < 1) ? 0 : id,
944 on_table : 'crm_mailing_list_message',
945 successFn : successFn
950 Pman.Dialog.CoreAutoSavePreview.show(params, function(res){
952 _self.originalValue = res;
958 '|xns' : 'Roo.bootstrap'
969 '|xns' : 'Roo.bootstrap',
974 style : 'text-align: center;',
976 '|xns' : 'Roo.bootstrap',
980 html : _this._strings['d300e4dc3731ba320cbd6aafb9168b06'] /* <i class="fa fa-repeat"></i> Convert HTML to Text */,
982 click : function (_self, e)
984 var h = _this.form.findField('bodytext').getValue();
985 var p = _this.form.findField('plaintext');
988 url : baseURL + '/Core/ImportMailMessage.php',
\r
992 _convertToPlain : true,
993 _check_unsubscribe : true
\r
995 success : function(res) {
\r
996 if(res.success == true){
997 p.setValue(res.data);
1004 xns : Roo.bootstrap,
1005 '|xns' : 'Roo.bootstrap'
1014 click : function (_self, e)
1016 var h = _this.form.findField('bodytext').getValue();
1017 var p = _this.form.findField('plaintext');
1019 new Pman.Request({
\r
1020 url : baseURL + '/Core/ImportMailMessage.php',
\r
1024 _convertToPlain : true,
1025 _check_unsubscribe : true
\r
1027 success : function(res) {
\r
1028 if(res.success == true){
1029 p.setValue(res.data);
1036 xns : Roo.bootstrap,
1037 '|xns' : 'Roo.bootstrap',
1041 xns : Roo.bootstrap,
1042 '|xns' : 'Roo.bootstrap',
1045 xtype : 'Container',
1046 header : _this._strings['e44b145bd8b49b06e0ad2ced1ad56466'] /* Plain Text */,
1048 xns : Roo.bootstrap,
1049 '|xns' : 'Roo.bootstrap',
1054 xns : Roo.bootstrap,
1055 '|xns' : 'Roo.bootstrap'
1065 xns : Roo.bootstrap,
1066 '|xns' : 'Roo.bootstrap',
1071 xns : Roo.bootstrap,
1072 '|xns' : 'Roo.bootstrap',
1076 fieldLabel : _this._strings['3858712080cb3d846ea206d1d1070674'] /* Test Class (for system reference only): */,
1077 inputType : 'hidden',
1078 labelAlign : 'left',
1080 name : 'text_class',
1081 xns : Roo.bootstrap,
1082 '|xns' : 'Roo.bootstrap'
1092 xns : Roo.bootstrap,
1093 '|xns' : 'Roo.bootstrap'
1105 fitContainer : true,
1108 title : _this._strings['ecc28898262b5b932c0a9e77315f31f7'] /* <i class='fa fa-camera'></i> Images /Attachments */,
1110 activate : function (_self)
1114 _this.igrid.store.load();
1117 render : function (_self)
1121 _this.igrid.store.load();
1125 xns : Roo.bootstrap.panel,
1126 '|xns' : 'Roo.bootstrap.panel',
1128 xtype : 'NavSimplebar',
1129 xns : Roo.bootstrap,
1130 '|xns' : 'Roo.bootstrap',
1135 xns : Roo.bootstrap,
1136 '|xns' : 'Roo.bootstrap',
1139 xtype : 'ButtonGroup',
1140 xns : Roo.bootstrap,
1141 '|xns' : 'Roo.bootstrap',
1145 html : _this._strings['e3e8fe3bbe6bed494a417c58c4fcf4be'] /* <i class='fa fa-plus'></i> Add */,
1147 click : function (_self, e)
1149 var id = _this.form.findField('id').getValue();
1152 Roo.MessageBox.alert('Error', 'Please save the email template first');
1156 var ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';
1158 Pman.Dialog.BAdminImage.show( { id : 0, onid: id, ontable: ontable }, function() {
1160 _this.igrid.store.load();
1164 xns : Roo.bootstrap,
1165 '|xns' : 'Roo.bootstrap'
1169 html : _this._strings['9e6cfe444e5e2a180173ca6b1a621415'] /* <i class='fa fa-minus'></i> Delete */,
1171 click : function (_self, e)
1173 var s = _this.igrid.selModel.getSelected();
1175 if (!s || isNaN(s.id *1)) {
1177 Roo.MessageBox.alert("Error", "Select a image");
1181 Roo.MessageBox.confirm("Confirm", "Are sure you want to delete this image?", function (v){
1187 url : baseURL + '/Roo/Images.php',
1192 success : function()
1194 Roo.log('Got Success!!');
1195 _this.igrid.store.load();
1201 xns : Roo.bootstrap,
1202 '|xns' : 'Roo.bootstrap'
1213 rowSelection : true,
1215 render : function (_self)
1224 xns : Roo.bootstrap,
1225 '|xns' : 'Roo.bootstrap',
1229 sortInfo : { field : 'filename', direction: 'ASC' },
1231 beforeload : function (_self, o)
1233 o.params = o.params || {};
1235 if (typeof(_this.data) == 'undefined') {
1240 if(_this.data.id * 1 >= 0)
1242 o.params.onid = _this.data.id;
1244 o.params.ontable = (_this.data.module) ? _this.data.module : 'crm_mailing_list_message';
1249 '|xns' : 'Roo.data',
1251 xtype : 'HttpProxy',
1253 url : baseURL + '/Roo/Images.php',
1258 xtype : 'JsonReader',
1293 'name': 'displayorder',
1301 'name': 'parent_image_id',
1307 'dateFormat': 'Y-m-d'
1326 'name': 'parent_image_id_id',
1330 'name': 'parent_image_id_filename',
1334 'name': 'parent_image_id_ontable',
1338 'name': 'parent_image_id_onid',
1342 'name': 'parent_image_id_mimetype',
1346 'name': 'parent_image_id_width',
1350 'name': 'parent_image_id_height',
1354 'name': 'parent_image_id_filesize',
1358 'name': 'parent_image_id_displayorder',
1362 'name': 'parent_image_id_language',
1366 'name': 'parent_image_id_parent_image_id',
1370 'name': 'parent_image_id_created',
1374 'name': 'parent_image_id_imgtype',
1378 'name': 'parent_image_id_linkurl',
1382 'name': 'parent_image_id_descript',
1386 'name': 'parent_image_id_title',
1392 totalProperty : 'total',
1399 xtype : 'ColumnModel',
1400 dataIndex : 'filename',
1401 header : _this._strings['76348cf9ddb92acc65440418b185db2d'] /* File Name */,
1403 renderer : function(v,x,r)
1405 var width = r.data.width;
1406 var height = r.data.height;
1409 height = Math.round(height * 50 / width);
1413 return '<img src="' + baseURL + '/Images/' + r.data.id + '/' + r.data.filename + '" width="' + width + '" height="' + height + '" /> ' + r.data.filename;
1419 xtype : 'ColumnModel',
1420 dataIndex : 'title',
1421 header : _this._strings['b78a3223503896721cca1303f776159b'] /* Title */,
1423 renderer : function(v)
1425 return String.format('{0}', v);
1431 xtype : 'ColumnModel',
1432 dataIndex : 'displayorder',
1433 header : _this._strings['296993584750e6ab52793cf0e6fbe27a'] /* Display Order */,
1435 renderer : function(v)
1437 return String.format('{0}', v);
1451 Roo.apply(Pman.Dialog.BAdminCoreEmail, Pman.Dialog.BAdminCoreEmail.prototype);