Update structure of Chat Handlebars templates.

Recompile templates.
This commit is contained in:
Dmitriy Simushev 2013-03-01 13:38:12 +00:00
parent 97ca21d295
commit a32cf9128b
51 changed files with 140 additions and 99 deletions

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars); (function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.chat_avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); (function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.history_control,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_); (function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.chat_controls_history,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);

View File

@ -5,5 +5,5 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,d,e){a.Views.RedirectControl=a.Views.Control.extend({template:d.templates.redirect_control,events:e.extend({},a.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){a.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var b=this.model.toJSON();b.user=a.Objects.Models.user.toJSON();return b},redirect:function(){var b=a.Objects.Models.user;if(b.get("isAgent")&&b.get("canPost")&&(b=this.model.get("link"))){var c=a.Objects.Models.page.get("style"); (function(a,d,e){a.Views.RedirectControl=a.Views.Control.extend({template:d.templates.chat_controls_redirect,events:e.extend({},a.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){a.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var b=this.model.toJSON();b.user=a.Objects.Models.user.toJSON();return b},redirect:function(){var b=a.Objects.Models.user;if(b.get("isAgent")&&b.get("canPost")&&(b=this.model.get("link"))){var c=a.Objects.Models.page.get("style");
window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_); window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.refresh_control,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_); (function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.chat_controls_refresh,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.secure_mode_control,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_); (function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.chat_controls_secure_mode,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.send_mail_control,events:e.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),a=a.replace(/\&amp\;/g,"&")+(c?"&style="+c:""),a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_); (function(b,d,e){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.chat_controls_send_mail,events:e.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),a=a.replace(/\&amp\;/g,"&")+(c?"&style="+c:""),a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.sound_control,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.set({enabled:!this.model.get("enabled")})}})})(Mibew,Handlebars,_); (function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.chat_controls_sound,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.set({enabled:!this.model.get("enabled")})}})})(Mibew,Handlebars,_);

View File

@ -5,5 +5,5 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.user_name_control,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a= (function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.chat_controls_user_name,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_); this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);

View File

@ -0,0 +1,8 @@
/*
This file is part of Mibew Messenger project.
http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates.chat_message})})(Mibew,Handlebars);

View File

@ -5,7 +5,7 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},initialize:function(){b.Objects.Models.user.on("change:canPost", (function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.chat_message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},disableInput:function(){this.ui.message.attr("disabled", initialize:function(){b.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},
"disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=0)},checkUserTyping:function(){var a=b.Objects.Models.user, disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=
c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars); 0)},checkUserTyping:function(){var a=b.Objects.Models.user,c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.status,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars); (function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.chat_status_base,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.status_message})})(Mibew,Handlebars); (function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.chat_status_message})})(Mibew,Handlebars);

View File

@ -5,4 +5,4 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.status_typing})})(Mibew,Handlebars); (function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.chat_status_typing})})(Mibew,Handlebars);

View File

@ -157,7 +157,7 @@ a);this.trigger("multiple:add");return a}})})(Mibew,Backbone,_);
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.status,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars); (function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.chat_status_base,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
@ -172,28 +172,28 @@ a=this.model.get("groups").descriptions||[];this.ui.groupDescription.text(a[b]||
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars); (function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.chat_avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.close_control,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_); (function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("chat.close.confirmation");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.history_control,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_); (function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.chat_controls_history,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,d,e){a.Views.RedirectControl=a.Views.Control.extend({template:d.templates.redirect_control,events:e.extend({},a.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){a.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var b=this.model.toJSON();b.user=a.Objects.Models.user.toJSON();return b},redirect:function(){var b=a.Objects.Models.user;if(b.get("isAgent")&&b.get("canPost")&&(b=this.model.get("link"))){var c=a.Objects.Models.page.get("style"); (function(a,d,e){a.Views.RedirectControl=a.Views.Control.extend({template:d.templates.chat_controls_redirect,events:e.extend({},a.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){a.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var b=this.model.toJSON();b.user=a.Objects.Models.user.toJSON();return b},redirect:function(){var b=a.Objects.Models.user;if(b.get("isAgent")&&b.get("canPost")&&(b=this.model.get("link"))){var c=a.Objects.Models.page.get("style");
window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_); window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
@ -201,35 +201,35 @@ window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Ha
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.refresh_control,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_); (function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.chat_controls_refresh,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.secure_mode_control,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_); (function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.chat_controls_secure_mode,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.send_mail_control,events:e.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),a=a.replace(/\&amp\;/g,"&")+(c?"&style="+c:""),a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_); (function(b,d,e){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.chat_controls_send_mail,events:e.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),a=a.replace(/\&amp\;/g,"&")+(c?"&style="+c:""),a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.sound_control,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.set({enabled:!this.model.get("enabled")})}})})(Mibew,Handlebars,_); (function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.chat_controls_sound,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.set({enabled:!this.model.get("enabled")})}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.user_name_control,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a= (function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.chat_controls_user_name,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_); this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
@ -259,24 +259,31 @@ a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.g
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},initialize:function(){b.Objects.Models.user.on("change:canPost", (function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates.chat_message})})(Mibew,Handlebars);
this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},disableInput:function(){this.ui.message.attr("disabled",
"disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=0)},checkUserTyping:function(){var a=b.Objects.Models.user,
c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.status_message})})(Mibew,Handlebars); (function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.chat_message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
initialize:function(){b.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},
disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=
0)},checkUserTyping:function(){var a=b.Objects.Models.user,c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.status_typing})})(Mibew,Handlebars); (function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.chat_status_message})})(Mibew,Handlebars);
/*
This file is part of Mibew Messenger project.
http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.chat_status_typing})})(Mibew,Handlebars);
/* /*
This file is part of Mibew Messenger project. This file is part of Mibew Messenger project.
http://mibew.org http://mibew.org

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.avatar, template: Handlebars.templates.chat_avatar,
/** /**
* Class name for view's DOM element * Class name for view's DOM element

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.close_control, template: Handlebars.templates.chat_controls_close,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.history_control, template: Handlebars.templates.chat_controls_history,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.redirect_control, template: Handlebars.templates.chat_controls_redirect,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.refresh_control, template: Handlebars.templates.chat_controls_refresh,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.secure_mode_control, template: Handlebars.templates.chat_controls_secure_mode,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.send_mail_control, template: Handlebars.templates.chat_controls_send_mail,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.sound_control, template: Handlebars.templates.chat_controls_sound,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -15,7 +15,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.user_name_control, template: Handlebars.templates.chat_controls_user_name,
/** /**
* Map ui events to view methods * Map ui events to view methods

View File

@ -0,0 +1,25 @@
/**
* @preserve This file is part of Mibew Messenger project.
* http://mibew.org
*
* Copyright (c) 2005-2011 Mibew Messenger Community
* License: http://mibew.org/license.php
*/
(function(Mibew, Handlebars) {
/**
* @class Represents message view
*/
Mibew.Views.Message = Mibew.Views.Message.extend(
/** @lends Mibew.Views.Message.prototype */
{
/**
* Template function
* @type Function
*/
template: Handlebars.templates.chat_message
}
);
})(Mibew, Handlebars);

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.message_form, template: Handlebars.templates.chat_message_form,
/** /**
* UI events hash. * UI events hash.

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.status, template: Handlebars.templates.chat_status_base,
/** /**
* Class name for view's DOM element * Class name for view's DOM element

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.status_message template: Handlebars.templates.chat_status_message
} }
); );

View File

@ -18,7 +18,7 @@
* Template function * Template function
* @type Function * @type Function
*/ */
template: Handlebars.templates.status_typing template: Handlebars.templates.chat_status_typing
} }
); );

View File

@ -4,57 +4,58 @@
Copyright (c) 2005-2011 Mibew Messenger Community Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php License: http://mibew.org/license.php
*/ */
(function(){var r=Handlebars.template,s=Handlebars.templates=Handlebars.templates||{};s.user_name_control=r(function(a,e,f,b,c){function j(a,b){var d,g,c;d=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+h((g=(g=a.user,null==g||!1===g?g:g.name),typeof g===p?g.apply(a):g))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="');c={hash:{},data:b};return d+=h((g=f.L10n, (function(){var r=Handlebars.template,s=Handlebars.templates=Handlebars.templates||{};s.chat_avatar=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j=this.escapeExpression;return(a=g["if"].call(c,c.imageLink,{hash:{},inverse:this.program(3,function(){return'<div class="default-avatar"></div>'},f),fn:this.program(1,function(a,b){var f,c;f='<img src="';(c=g.imageLink)?c=c.call(a,{hash:{},data:b}):(c=a.imageLink,c="function"===typeof c?c.apply(a):c);return f+=j(c)+
g?g.call(a,"chat.client.changename",c):m.call(a,"L10n","chat.client.changename",c)))+'"></a>\n '}function k(a,b){var d,g,c;c={hash:{},data:b};d='\n <a href="javascript:void(0)" title="'+(h((g=f.L10n,g?g.call(a,"chat.client.changename",c):m.call(a,"L10n","chat.client.changename",c)))+'">'+h((g=(g=a.user,null==g||!1===g?g:g.name),typeof g===p?g.apply(a):g))+'</a>\n <a class="user-name-control-change tpl-image" title="');c={hash:{},data:b};return d+=h((g=f.L10n,g?g.call(a,"chat.client.changename", '" border="0" alt="" />'},f),data:f}))||0===a?a:""});s.chat_controls_close=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j;a=g.helperMissing;b=this.escapeExpression;f={hash:{},data:f};return c='<div class="tpl-image" title="'+(b((j=g.L10n,j?j.call(c,"chat.window.close_title",f):a.call(c,"L10n","chat.window.close_title",f)))+'"></div>')});s.chat_controls_history=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j;a=g.helperMissing;
c):m.call(a,"L10n","chat.client.changename",c)))+'"></a>\n '}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var l,p="function",h=this.escapeExpression,m=f.helperMissing,n=this;return(a=f["if"].call(e,(l=e.user,null==l||!1===l?l:l.canChangeName),{hash:{},inverse:n.program(6,function(a,b){var d,g;d={hash:{},data:b};return d="\n"+(h((g=f.L10n,g?g.call(a,"chat.client.name",d):m.call(a,"L10n","chat.client.name",d)))+"&nbsp;"+h((g=(g=a.user,null==g||!1===g?g:g.name),typeof g===p?g.apply(a): b=this.escapeExpression;f={hash:{},data:f};return c='<div class="tpl-image" title="'+(b((j=g.L10n,j?j.call(c,"page.analysis.userhistory.title",f):a.call(c,"L10n","page.analysis.userhistory.title",f)))+'"></div>')});s.chat_controls_redirect=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j,k=g.helperMissing,l=this.escapeExpression;return(a=g["if"].call(c,(j=c.user,null==j||!1===j?j:j.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var c,f;
g))+"\n")},c),fn:n.program(1,function(a,b){var d,g;d={hash:{},data:b};d='\n <span class="user-name-control-prefix">'+(h((g=f.L10n,g?g.call(a,"chat.client.name",d):m.call(a,"L10n","chat.client.name",d)))+"</span>\n ");if((g=f["if"].call(a,a.nameInput,{hash:{},inverse:n.program(4,k,b),fn:n.program(2,j,b),data:b}))||0===g)d+=g;return d+="\n"},c),data:c}))||0===a?a:""});s.status_typing=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j;a=f.helperMissing;b=this.escapeExpression; c={hash:{},data:b};return c='\n<div class="tpl-image" title="'+(l((f=g.L10n,f?f.call(a,"chat.window.toolbar.redirect_user",c):k.call(a,"L10n","chat.window.toolbar.redirect_user",c)))+'"></div>\n')},f),data:f}))||0===a?a:""});s.chat_controls_refresh=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j;a=g.helperMissing;b=this.escapeExpression;f={hash:{},data:f};return c='<div class="tpl-image" title="'+(b((j=g.L10n,j?j.call(c,"chat.window.toolbar.refresh",f):a.call(c,
c={hash:{},data:c};return b((j=f.L10n,j?j.call(e,"typing.remote",c):a.call(e,"L10n","typing.remote",c)))});s.leave_message_form=r(function(a,e,f,b,c){function j(a,b){var c,d;c='<input type="hidden" name="group" value="';(d=f.groupId)?d=d.call(a,{hash:{},data:b}):(d=a.groupId,d=typeof d===l?d.apply(a):d);return c+=p(d)+'"/>'}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var k,l="function",p=this.escapeExpression,h=this,m=f.helperMissing;a=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+ "L10n","chat.window.toolbar.refresh",f)))+'"></div>')});s.chat_controls_secure_mode=r(function(){this.compilerInfo=[2,">= 1.0.0-rc.3"];return'<div class="tpl-image" title="SSL"></div>'});s.chat_controls_send_mail=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j;a=g.helperMissing;b=this.escapeExpression;f={hash:{},data:f};return c='<div class="tpl-image" title="'+(b((j=g.L10n,j?j.call(c,"chat.window.toolbar.mail_history",f):a.call(c,"L10n","chat.window.toolbar.mail_history",
p((k=(k=e.page,null==k||!1===k?k:k.style),typeof k===l?k.apply(e):k))+'"/>\n <input type="hidden" name="info" value="');(b=f.info)?b=b.call(e,{hash:{},data:c}):(b=e.info,b=typeof b===l?b.apply(e):b);a+=p(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=f.referrer)?b=b.call(e,{hash:{},data:c}):(b=e.referrer,b=typeof b===l?b.apply(e):b);a+=p(b)+'"/>\n ';if((b=f.unless.call(e,e.groups,{hash:{},inverse:h.noop,fn:h.program(1,function(a,b){var c;return(c=f["if"].call(a,a.groupId,{hash:{}, f)))+'"></div>')});s.chat_controls_sound=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j=g.helperMissing,k=this.escapeExpression;return(a=g["if"].call(c,c.enabled,{hash:{},inverse:this.program(3,function(a,b){var c,f;c={hash:{},data:b};return c='\n <div class="tpl-image sound-control-off" title="'+(k((f=g.L10n,f?f.call(a,"chat.window.toolbar.turn_on_sound",c):j.call(a,"L10n","chat.window.toolbar.turn_on_sound",c)))+'"></div>\n')},f),fn:this.program(1,function(a,
inverse:h.noop,fn:h.program(2,j,b),data:b}))||0===c?c:""},c),data:c}))||0===b)a+=b;b={hash:{},data:c};a=a+'\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+(p((k=f.L10n,k?k.call(e,"form.field.email",b):m.call(e,"L10n","form.field.email",b)))+':</strong></td>\n <td><input type="text" name="email" size="50" value="');(b=f.email)?b=b.call(e,{hash:{},data:c}):(b=e.email,b=typeof b===l?b.apply(e): b){var c,f;c={hash:{},data:b};return c='\n <div class="tpl-image sound-control-on" title="'+(k((f=g.L10n,f?f.call(a,"chat.window.toolbar.turn_off_sound",c):j.call(a,"L10n","chat.window.toolbar.turn_off_sound",c)))+'"></div>\n')},f),data:f}))||0===a?a:""});s.chat_controls_user_name=r(function(a,c,g,b,f){function j(a,c){var e,d,b;e=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+h((d=(d=a.user,null==d||!1===d?d:d.name),typeof d===
b);a+=p(b)+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>';b={hash:{},data:c};a+=p((k=f.L10n,k?k.call(e,"form.field.name",b):m.call(e,"L10n","form.field.name",b)))+':</strong></td>\n <td><input type="text" name="name" size="50" value="';(b=f.name)?b=b.call(e,{hash:{},data:c}):(b=e.name,b=typeof b===l?b.apply(e):b);a+=p(b)+'" class="username"/></td>\n </tr>\n ';if((b=f["if"].call(e,e.groups,{hash:{},inverse:h.noop,fn:h.program(4,function(a,b){var c, p?d.apply(a):d))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="');b={hash:{},data:c};return e+=h((d=g.L10n,d?d.call(a,"chat.client.changename",b):m.call(a,"L10n","chat.client.changename",b)))+'"></a>\n '}function k(a,b){var e,d,c;c={hash:{},data:b};e='\n <a href="javascript:void(0)" title="'+(h((d=g.L10n,d?d.call(a,"chat.client.changename",c):m.call(a,"L10n","chat.client.changename",c)))+'">'+h((d=(d=a.user,null==d||!1===
d,g;g={hash:{},data:b};c='\n <tr>\n <td class="text"><strong>'+(p((d=f.L10n,d?d.call(a,"form.field.department",g):m.call(a,"L10n","form.field.department",g)))+'</strong></td>\n <td><select name="group" style="min-width:200px;">');if((g=(d=(d=a.groups,null==d||!1===d?d:d.select),typeof d===l?d.apply(a):d))||0===g)c+=g;c+='</select></td>\n </tr>\n <tr>\n <td class="text"><strong>';g={hash:{},data:b};return c+=p((d=f.L10n,d?d.call(a,"form.field.department.description", d?d:d.name),typeof d===p?d.apply(a):d))+'</a>\n <a class="user-name-control-change tpl-image" title="');c={hash:{},data:b};return e+=h((d=g.L10n,d?d.call(a,"chat.client.changename",c):m.call(a,"L10n","chat.client.changename",c)))+'"></a>\n '}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var l,p="function",h=this.escapeExpression,m=g.helperMissing,n=this;return(a=g["if"].call(c,(l=c.user,null==l||!1===l?l:l.canChangeName),{hash:{},inverse:n.program(6,function(a,c){var e,d;
g):m.call(a,"L10n","form.field.department.description",g)))+'</strong></td>\n <td class="text" id="groupDescription">'+p((d=(d=a.groups,null==d||!1===d?d:d.defaultDescription),typeof d===l?d.apply(a):d))+"</td>\n </tr>\n "},c),data:c}))||0===b)a+=b;a+="\n <tr>\n <td><strong>";b={hash:{},data:c};a+=p((k=f.L10n,k?k.call(e,"form.field.message",b):m.call(e,"L10n","form.field.message",b)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">'; e={hash:{},data:c};return e="\n"+(h((d=g.L10n,d?d.call(a,"chat.client.name",e):m.call(a,"L10n","chat.client.name",e)))+"&nbsp;"+h((d=(d=a.user,null==d||!1===d?d:d.name),typeof d===p?d.apply(a):d))+"\n")},f),fn:n.program(1,function(a,c){var e,d;e={hash:{},data:c};e='\n <span class="user-name-control-prefix">'+(h((d=g.L10n,d?d.call(a,"chat.client.name",e):m.call(a,"L10n","chat.client.name",e)))+"</span>\n ");if((d=g["if"].call(a,a.nameInput,{hash:{},inverse:n.program(4,k,c),fn:n.program(2,j,c),
(b=f.message)?b=b.call(e,{hash:{},data:c}):(b=e.message,b=typeof b===l?b.apply(e):b);a+=p(b)+"</textarea>\n </td>\n </tr>\n ";if((b=f["if"].call(e,e.showCaptcha,{hash:{},inverse:h.noop,fn:h.program(6,function(){return'\n <tr>\n <td><img id="captcha-img" src="captcha.php"/></td>\n <td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>\n </tr>\n '},c),data:c}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">'; data:c}))||0===d)e+=d;return e+="\n"},f),data:f}))||0===a?a:""});s.chat_layout=r(function(a,c,g,b,f){function j(e){var d;return e=""+('\n <img src="'+q((d=(d=(d=e.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===n?d.apply(e):d))+'" alt=""/>\n ')}function k(e){var d;return e=""+("\n <a onclick=\"window.open('"+q((d=(d=e.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(e):d))+'\');return false;" href="'+q((d=(d=e.page,null==
b={hash:{},data:c};return a+=p((k=f.L10n,k?k.call(e,"mailthread.perform",b):m.call(e,"L10n","mailthread.perform",b)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>'});s.leave_message_layout=r(function(a,e,f,b,c){function j(a){var d;return a=""+('\n <img src="'+n((d=(d=(d=a.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===m?d.apply(a):d))+'" alt=""/>\n ')}function k(a){var d;return a=""+("\n <a onclick=\"window.open('"+n((d= d||!1===d?d:d.webimHost),typeof d===n?d.apply(e):d))+'">\n <img src="'+q((d=(d=(d=e.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===n?d.apply(e):d))+'" alt=""/>\n </a>\n ')}function l(e){var d;return e=""+("\n <a onclick=\"window.open('"+q((d=(d=e.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(e):d))+'\');return false;" href="'+q((d=(d=e.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(e):d))+
(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===m?d.apply(a):d))+'\');return false;" href="'+n((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===m?d.apply(a):d))+'">\n <img src="'+n((d=(d=(d=a.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===m?d.apply(a):d))+'" alt=""/>\n </a>\n ')}function l(a){var d;return a=""+("\n <a onclick=\"window.open('"+n((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d=== '">\n <img src="'+q((d=(d=e.page,null==d||!1===d?d:d.tplRoot),typeof d===n?d.apply(e):d))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function p(e){var d;return e=""+('\n <img src="'+q((d=(d=e.page,null==d||!1===d?d:d.tplRoot),typeof d===n?d.apply(e):d))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var h,m,n="function",q=this.escapeExpression,t=this;b=g.helperMissing;
m?d.apply(a):d))+'\');return false;" href="'+n((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===m?d.apply(a):d))+'">\n <img src="'+n((d=(d=a.page,null==d||!1===d?d:d.tplRoot),typeof d===m?d.apply(a):d))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function p(a){var d;return a=""+('\n <img src="'+n((d=(d=a.page,null==d||!1===d?d:d.tplRoot),typeof d===m?d.apply(a):d))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo= a='\n<div id="top">\n <div id="logo">\n ';if((m=g["if"].call(c,(h=(h=c.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:t.program(6,function(e,d){var a,c,b;a="\n ";if((b=g["if"].call(e,(c=e.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:t.program(9,p,d),fn:t.program(7,l,d),data:d}))||0===b)a+=b;return a+"\n "},f),fn:t.program(1,function(e,d){var a,c,b;a="\n \n ";if((b=g.unless.call(e,(c=e.page,null==c||!1===
[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var h,m="function",n=this.escapeExpression,q=this;a='\n<div id="top2">\n <div id="logo">\n ';if((c=f["if"].call(e,(h=(h=e.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:q.program(6,function(a,d){var g,b,c;g="\n ";if((c=f["if"].call(a,(b=a.page,null==b||!1===b?b:b.webimHost),{hash:{},inverse:q.program(9,p,d),fn:q.program(7,l,d),data:d}))||0===c)g+=c;return g+"\n "},c),fn:q.program(1,function(a, c?c:c.webimHost),{hash:{},inverse:t.program(4,k,d),fn:t.program(2,j,d),data:d}))||0===b)a+=b;return a+"\n "},f),data:f}))||0===m)a+=m;a+='\n &nbsp;\n <div id="page-title">'+q((h=(h=c.page,null==h||!1===h?h:h.title),typeof h===n?h.apply(c):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="chat-header">\n <div class="bgc"><div class="bgl"><div class="bgr">\n \n <div id="controls-region"></div>\n </div></div></div>\n</div>\n\n\n<div id="chat">\n <div class="bgl"><div class="bgr"><div class="sdwbgc"><div class="sdwbgl"><div class="sdwbgr">\n ';
d){var g,b,c;g="\n \n ";if((c=f.unless.call(a,(b=a.page,null==b||!1===b?b:b.webimHost),{hash:{},inverse:q.program(4,k,d),fn:q.program(2,j,d),data:d}))||0===c)g+=c;return g+"\n "},c),data:c}))||0===c)a+=c;return a+='\n &nbsp;\n <div id="page-title">'+n((h=(h=e.page,null==h||!1===h?h:h.title),typeof h===m?h.apply(e):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr" id="description-region">\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'}); if((m=g.unless.call(c,(h=c.user,null==h||!1===h?h:h.isAgent),{hash:{},inverse:t.noop,fn:t.program(11,function(){return'\n <div id="avatar-region"></div>\n '},f),data:f}))||0===m)a+=m;f={hash:{},data:f};return a=a+'\n \n <div id="messages-region"></div>\n \n <div id="status-region"></div>\n </div></div></div></div></div>\n</div>\n\n\n<div id="message-form-region"></div>\n\n\n<div id="footer">'+(q((h=g.L10n,h?h.call(c,"chat.window.poweredby",f):b.call(c,
s.avatar=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j=this.escapeExpression;return(a=f["if"].call(e,e.imageLink,{hash:{},inverse:this.program(3,function(){return'<div class="default-avatar"></div>'},c),fn:this.program(1,function(a,b){var c,e;c='<img src="';(e=f.imageLink)?e=e.call(a,{hash:{},data:b}):(e=a.imageLink,e="function"===typeof e?e.apply(a):e);return c+=j(e)+'" border="0" alt="" />'},c),data:c}))||0===a?a:""});s.close_control=r(function(a,e,f,b, "L10n","chat.window.poweredby",f)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>')});s.chat_message=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j,k=this.escapeExpression,l=g.helperMissing;a={hash:{},data:f};a="<span>"+(k((j=g.formatTime,j?j.call(c,c.created,a):l.call(c,"formatTime",c.created,a)))+"</span> \n");if((j=g["if"].call(c,c.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,
c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return e='<div class="tpl-image" title="'+(b((j=f.L10n,j?j.call(e,"chat.window.close_title",c):a.call(e,"L10n","chat.window.close_title",c)))+'"></div>')});s.history_control=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return e='<div class="tpl-image" title="'+(b((j= c){var b,f;b="<span class='n";(f=g.kindName)?f=f.call(a,{hash:{},data:c}):(f=a.kindName,f="function"===typeof f?f.apply(a):f);b+=k(f)+"'>";(f=g.name)?f=f.call(a,{hash:{},data:c}):(f=a.name,f="function"===typeof f?f.apply(a):f);return b+=k(f)+"</span>: "},f),data:f}))||0===j)a+=j;a+="\n<span class='m";(j=g.kindName)?j=j.call(c,{hash:{},data:f}):(j=c.kindName,j="function"===typeof j?j.apply(c):j);a+=k(j)+"'>";if((j=g["if"].call(c,c.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var b,
f.L10n,j?j.call(e,"page.analysis.userhistory.title",c):a.call(e,"L10n","page.analysis.userhistory.title",c)))+'"></div>')});s.status_message=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};a=this.escapeExpression;(f=f.message)?f=f.call(e,{hash:{},data:c}):(f=e.message,f="function"===typeof f?f.apply(e):f);return a(f)});s.survey_form=r(function(a,e,f,b,c){function j(a,b){var c,d;c='<input type="hidden" name="group" value="';(d=f.groupId)?d=d.call(a,{hash:{},data:b}): f;f={hash:{},data:c};return k((b=g.apply,b?b.call(a,a.message,"urlReplace, nl2br",f):l.call(a,"apply",a.message,"urlReplace, nl2br",f)))},f),fn:this.program(3,function(a,c){var b,f;f={hash:{},data:c};return k((b=g.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",f):l.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",f)))},f),data:f}))||0===j)a+=j;return a+="</span><br/>"});s.chat_message_form=r(function(a,c,g,b,f){function j(a,c){var e,d;e={hash:{},data:c};e='\n <select id="predefined" size="1" class="answer">\n <option>'+
(d=a.groupId,d=typeof d===l?d.apply(a):d);return c+=p(d)+'"/>'}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var k,l="function",p=this.escapeExpression,h=this,m=f.helperMissing;a=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+p((k=(k=e.page,null==k||!1===k?k:k.style),typeof k===l?k.apply(e):k))+'"/>\n <input type="hidden" name="info" value="');(b=f.info)?b=b.call(e,{hash:{},data:c}):(b=e.info,b=typeof b===l?b.apply(e):b);a+= (h((d=g.L10n,d?d.call(a,"chat.window.predefined.select_answer",e):m.call(a,"L10n","chat.window.predefined.select_answer",e)))+"</option>\n ");if((d=g.each.call(a,a.predefinedAnswers,{hash:{},inverse:n.noop,fn:n.program(5,k,c),data:c}))||0===d)e+=d;return e+="\n </select>\n "}function k(a){var c;return a=""+("\n <option>"+h((c=a["short"],typeof c===p?c.apply(a):c))+"</option>\n ")}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||
p(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=f.referrer)?b=b.call(e,{hash:{},data:c}):(b=e.referrer,b=typeof b===l?b.apply(e):b);a+=p(b)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((b=f.unless.call(e,e.showEmail,{hash:{},inverse:h.noop,fn:h.program(1,function(a,b){var c,d;c='<input type="hidden" name="email" value="';(d=f.email)?d=d.call(a,{hash:{},data:b}):(d=a.email,d=typeof d===l?d.apply(a):d);return c+=p(d)+'"/>'},c),data:c}))||0===b)a+=b;a+="\n "; a.helpers;f=f||{};var l,p="function",h=this.escapeExpression,m=g.helperMissing,n=this;a='<div id="message">\n';if((b=g["if"].call(c,(l=c.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:n.noop,fn:n.program(1,function(){return'\n <div class="bgc"><div class="bgl"><div class="bgr">\n <textarea id="message-input" class="message" tabindex="0" rows="4" cols="10"></textarea>\n </div></div></div>\n'},f),data:f}))||0===b)a+=b;a+='\n</div>\n\n<div id="send">\n';if((b=g["if"].call(c,(l=c.user,
if((b=f.unless.call(e,e.groups,{hash:{},inverse:h.noop,fn:h.program(3,function(a,b){var c;return(c=f["if"].call(a,a.groupId,{hash:{},inverse:h.noop,fn:h.program(4,j,b),data:b}))||0===c?c:""},c),data:c}))||0===b)a+=b;a+="\n ";if((b=f.unless.call(e,e.showMessage,{hash:{},inverse:h.noop,fn:h.program(6,function(a,b){var c,d;c='<input type="hidden" name="message" value="';(d=f.message)?d=d.call(a,{hash:{},data:b}):(d=a.message,d=typeof d===l?d.apply(a):d);return c+=p(d)+'"/>'},c),data:c}))||0===b)a+= null==l||!1===l?l:l.canPost),{hash:{},inverse:n.noop,fn:n.program(3,function(a,c){var e,d,b;e='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((b=g["if"].call(a,(d=a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:n.noop,fn:n.program(4,j,c),data:c}))||0===b)e+=b;b={hash:{},data:c};e=e+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+(h((d=g.L10n,d?d.call(a,"chat.window.send_message",b):m.call(a,"L10n","chat.window.send_message",
b;a+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((b=f["if"].call(e,e.groups,{hash:{},inverse:h.noop,fn:h.program(8,function(a,b){var c,d,g;g={hash:{},data:b};c="\n <tr>\n <td><strong>"+(p((d=f.L10n,d?d.call(a,"form.field.department",g):m.call(a,"L10n","form.field.department",g)))+'</strong></td>\n <td><select name="group">');if((g=(d=(d=a.groups,null==d||!1===d?d:d.select),typeof d===l?d.apply(a):d))||0===g)c+=g;c+="</select></td>\n </tr>\n <tr>\n <td><strong>"; b)))+'">');b={hash:{},data:c};return e+=h((d=g.L10n,d?d.call(a,"chat.window.send_message_short_and_shortcut",b):m.call(a,"L10n","chat.window.send_message_short_and_shortcut",b)))+"</a>\n </div>\n"},f),data:f}))||0===b)a+=b;return a+'\n</div>\n<div class="clear"></div>'});s.chat_status_base=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};a=this.escapeExpression;(g=g.title)?g=g.call(c,{hash:{},data:f}):(g=c.title,g="function"===typeof g?g.apply(c):g);return a(g)});
g={hash:{},data:b};return c+=p((d=f.L10n,d?d.call(a,"form.field.department.description",g):m.call(a,"L10n","form.field.department.description",g)))+'</strong></td>\n <td id="groupDescription">'+p((d=(d=a.groups,null==d||!1===d?d:d.defaultDescription),typeof d===l?d.apply(a):d))+"</td>\n </tr>\n "},c),data:c}))||0===b)a+=b;b={hash:{},data:c};a=a+"\n <tr>\n <td><strong>"+(p((k=f.L10n,k?k.call(e,"presurvey.name",b):m.call(e,"L10n","presurvey.name",b)))+'</strong></td>\n <td><input type="text" name="name" size="50" value="'); s.chat_status_message=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};a=this.escapeExpression;(g=g.message)?g=g.call(c,{hash:{},data:f}):(g=c.message,g="function"===typeof g?g.apply(c):g);return a(g)});s.chat_status_typing=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j;a=g.helperMissing;b=this.escapeExpression;f={hash:{},data:f};return b((j=g.L10n,j?j.call(c,"typing.remote",f):a.call(c,"L10n","typing.remote",f)))});s.leave_message_description=
(b=f.name)?b=b.call(e,{hash:{},data:c}):(b=e.name,b=typeof b===l?b.apply(e):b);a+=p(b)+'" class="username" ';if((b=f.unless.call(e,e.canChangeName,{hash:{},inverse:h.noop,fn:h.program(10,function(){return'disabled="disabled"'},c),data:c}))||0===b)a+=b;a+="/></td>\n </tr>\n ";if((b=f["if"].call(e,e.showEmail,{hash:{},inverse:h.noop,fn:h.program(12,function(a,c){var b,d;b={hash:{},data:c};b="\n <tr>\n <td><strong>"+(p((d=f.L10n,d?d.call(a,"presurvey.mail",b):m.call(a,"L10n", r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j,k=g.helperMissing,l=this.escapeExpression;b={hash:{},data:f};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(l((j=g.L10n,j?j.call(c,"leavemessage.close",b):k.call(c,"L10n","leavemessage.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+l((j=(j=c.page,null==j||!1===j?j:j.webimRoot),"function"===typeof j?j.apply(c):j))+'/images/free.gif" alt="');b={hash:{},data:f};a+=
"presurvey.mail",b)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');(d=f.email)?d=d.call(a,{hash:{},data:c}):(d=a.email,d=typeof d===l?d.apply(a):d);return b+=p(d)+'" class="username"/></td>\n </tr>\n '},c),data:c}))||0===b)a+=b;a+="\n ";if((b=f["if"].call(e,e.showMessage,{hash:{},inverse:h.noop,fn:h.program(14,function(a,b){var c,d;c={hash:{},data:b};c="\n <tr>\n <td><strong>"+(p((d=f.L10n,d?d.call(a,"presurvey.question",c):m.call(a, l((j=g.L10n,j?j.call(c,"leavemessage.close",b):k.call(c,"L10n","leavemessage.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">';b={hash:{},data:f};return a+=l((j=g.L10n,j?j.call(c,"leavemessage.descr",b):k.call(c,"L10n","leavemessage.descr",b)))+"</div>"});s.leave_message_form=r(function(a,c,g,b,f){function j(a,c){var b,e;b='<input type="hidden" name="group" value="';(e=g.groupId)?e=e.call(a,{hash:{},data:c}):(e=a.groupId,e=typeof e===l?e.apply(a):e);return b+=p(e)+'"/>'}this.compilerInfo=
"L10n","presurvey.question",c)))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">');(d=f.message)?d=d.call(a,{hash:{},data:b}):(d=a.message,d=typeof d===l?d.apply(a):d);return c+=p(d)+"</textarea></td>\n </tr>\n "},c),data:c}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">';b={hash:{},data:c};return a+=p((k=f.L10n,k?k.call(e,"presurvey.submit",b):m.call(e,"L10n","presurvey.submit", [2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var k,l="function",p=this.escapeExpression,h=this,m=g.helperMissing;a=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+p((k=(k=c.page,null==k||!1===k?k:k.style),typeof k===l?k.apply(c):k))+'"/>\n <input type="hidden" name="info" value="');(b=g.info)?b=b.call(c,{hash:{},data:f}):(b=c.info,b=typeof b===l?b.apply(c):b);a+=p(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=g.referrer)?
b)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>'});s.chat_layout=r(function(a,e,f,b,c){function j(d){var a;return d=""+('\n <img src="'+q((a=(a=(a=d.page,null==a||!1===a?a:a.company),null==a||!1===a?a:a.chatLogoURL),typeof a===n?a.apply(d):a))+'" alt=""/>\n ')}function k(a){var g;return a=""+("\n <a onclick=\"window.open('"+q((g=(g=a.page,null==g||!1===g?g:g.webimHost),typeof g===n?g.apply(a):g))+'\');return false;" href="'+q((g=(g=a.page,null==g|| b=b.call(c,{hash:{},data:f}):(b=c.referrer,b=typeof b===l?b.apply(c):b);a+=p(b)+'"/>\n ';if((b=g.unless.call(c,c.groups,{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){var b;return(b=g["if"].call(a,a.groupId,{hash:{},inverse:h.noop,fn:h.program(2,j,c),data:c}))||0===b?b:""},f),data:f}))||0===b)a+=b;b={hash:{},data:f};a=a+'\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+(p((k=g.L10n,k?k.call(c,
!1===g?g:g.webimHost),typeof g===n?g.apply(a):g))+'">\n <img src="'+q((g=(g=(g=a.page,null==g||!1===g?g:g.company),null==g||!1===g?g:g.chatLogoURL),typeof g===n?g.apply(a):g))+'" alt=""/>\n </a>\n ')}function l(a){var g;return a=""+("\n <a onclick=\"window.open('"+q((g=(g=a.page,null==g||!1===g?g:g.webimHost),typeof g===n?g.apply(a):g))+'\');return false;" href="'+q((g=(g=a.page,null==g||!1===g?g:g.webimHost),typeof g===n?g.apply(a):g))+ "form.field.email",b):m.call(c,"L10n","form.field.email",b)))+':</strong></td>\n <td><input type="text" name="email" size="50" value="');(b=g.email)?b=b.call(c,{hash:{},data:f}):(b=c.email,b=typeof b===l?b.apply(c):b);a+=p(b)+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>';b={hash:{},data:f};a+=p((k=g.L10n,k?k.call(c,"form.field.name",b):m.call(c,"L10n","form.field.name",b)))+':</strong></td>\n <td><input type="text" name="name" size="50" value="';
'">\n <img src="'+q((g=(g=a.page,null==g||!1===g?g:g.tplRoot),typeof g===n?g.apply(a):g))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function p(a){var g;return a=""+('\n <img src="'+q((g=(g=a.page,null==g||!1===g?g:g.tplRoot),typeof g===n?g.apply(a):g))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var h,m,n="function",q=this.escapeExpression,t=this;b=f.helperMissing; (b=g.name)?b=b.call(c,{hash:{},data:f}):(b=c.name,b=typeof b===l?b.apply(c):b);a+=p(b)+'" class="username"/></td>\n </tr>\n ';if((b=g["if"].call(c,c.groups,{hash:{},inverse:h.noop,fn:h.program(4,function(a,c){var b,e,d;d={hash:{},data:c};b='\n <tr>\n <td class="text"><strong>'+(p((e=g.L10n,e?e.call(a,"form.field.department",d):m.call(a,"L10n","form.field.department",d)))+'</strong></td>\n <td><select name="group" style="min-width:200px;">');if((d=(e=(e=a.groups,
a='\n<div id="top">\n <div id="logo">\n ';if((m=f["if"].call(e,(h=(h=e.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:t.program(6,function(a,g){var c,b,e;c="\n ";if((e=f["if"].call(a,(b=a.page,null==b||!1===b?b:b.webimHost),{hash:{},inverse:t.program(9,p,g),fn:t.program(7,l,g),data:g}))||0===e)c+=e;return c+"\n "},c),fn:t.program(1,function(a,g){var c,b,e;c="\n \n ";if((e=f.unless.call(a,(b=a.page,null==b||!1=== null==e||!1===e?e:e.select),typeof e===l?e.apply(a):e))||0===d)b+=d;b+='</select></td>\n </tr>\n <tr>\n <td class="text"><strong>';d={hash:{},data:c};return b+=p((e=g.L10n,e?e.call(a,"form.field.department.description",d):m.call(a,"L10n","form.field.department.description",d)))+'</strong></td>\n <td class="text" id="groupDescription">'+p((e=(e=a.groups,null==e||!1===e?e:e.defaultDescription),typeof e===l?e.apply(a):e))+"</td>\n </tr>\n "},f),data:f}))||
b?b:b.webimHost),{hash:{},inverse:t.program(4,k,g),fn:t.program(2,j,g),data:g}))||0===e)c+=e;return c+"\n "},c),data:c}))||0===m)a+=m;a+='\n &nbsp;\n <div id="page-title">'+q((h=(h=e.page,null==h||!1===h?h:h.title),typeof h===n?h.apply(e):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="chat-header">\n <div class="bgc"><div class="bgl"><div class="bgr">\n \n <div id="controls-region"></div>\n </div></div></div>\n</div>\n\n\n<div id="chat">\n <div class="bgl"><div class="bgr"><div class="sdwbgc"><div class="sdwbgl"><div class="sdwbgr">\n '; 0===b)a+=b;a+="\n <tr>\n <td><strong>";b={hash:{},data:f};a+=p((k=g.L10n,k?k.call(c,"form.field.message",b):m.call(c,"L10n","form.field.message",b)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">';(b=g.message)?b=b.call(c,{hash:{},data:f}):(b=c.message,b=typeof b===l?b.apply(c):b);a+=p(b)+"</textarea>\n </td>\n </tr>\n ";if((b=g["if"].call(c,c.showCaptcha,{hash:{},inverse:h.noop,fn:h.program(6,
if((m=f.unless.call(e,(h=e.user,null==h||!1===h?h:h.isAgent),{hash:{},inverse:t.noop,fn:t.program(11,function(){return'\n <div id="avatar-region"></div>\n '},c),data:c}))||0===m)a+=m;c={hash:{},data:c};return a=a+'\n \n <div id="messages-region"></div>\n \n <div id="status-region"></div>\n </div></div></div></div></div>\n</div>\n\n\n<div id="message-form-region"></div>\n\n\n<div id="footer">'+(q((h=f.L10n,h?h.call(e,"chat.window.poweredby",c):b.call(e, function(){return'\n <tr>\n <td><img id="captcha-img" src="captcha.php"/></td>\n <td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>\n </tr>\n '},f),data:f}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">';b={hash:{},data:f};return a+=p((k=g.L10n,k?k.call(c,"mailthread.perform",b):m.call(c,"L10n","mailthread.perform",b)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>'});
"L10n","chat.window.poweredby",c)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>')});s.secure_mode_control=r(function(){this.compilerInfo=[2,">= 1.0.0-rc.3"];return'<div class="tpl-image" title="SSL"></div>'});s.sound_control=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j=f.helperMissing,k=this.escapeExpression;return(a=f["if"].call(e,e.enabled,{hash:{},inverse:this.program(3,function(a,b){var c, s.leave_message_layout=r(function(a,c,g,b,f){function j(a){var e;return a=""+('\n <img src="'+n((e=(e=(e=a.page,null==e||!1===e?e:e.company),null==e||!1===e?e:e.chatLogoURL),typeof e===m?e.apply(a):e))+'" alt=""/>\n ')}function k(a){var e;return a=""+("\n <a onclick=\"window.open('"+n((e=(e=a.page,null==e||!1===e?e:e.webimHost),typeof e===m?e.apply(a):e))+'\');return false;" href="'+n((e=(e=a.page,null==e||!1===e?e:e.webimHost),typeof e===m?e.apply(a):e))+
e;c={hash:{},data:b};return c='\n <div class="tpl-image sound-control-off" title="'+(k((e=f.L10n,e?e.call(a,"chat.window.toolbar.turn_on_sound",c):j.call(a,"L10n","chat.window.toolbar.turn_on_sound",c)))+'"></div>\n')},c),fn:this.program(1,function(a,c){var b,e;b={hash:{},data:c};return b='\n <div class="tpl-image sound-control-on" title="'+(k((e=f.L10n,e?e.call(a,"chat.window.toolbar.turn_off_sound",b):j.call(a,"L10n","chat.window.toolbar.turn_off_sound",b)))+'"></div>\n')},c),data:c}))||0=== '">\n <img src="'+n((e=(e=(e=a.page,null==e||!1===e?e:e.company),null==e||!1===e?e:e.chatLogoURL),typeof e===m?e.apply(a):e))+'" alt=""/>\n </a>\n ')}function l(a){var e;return a=""+("\n <a onclick=\"window.open('"+n((e=(e=a.page,null==e||!1===e?e:e.webimHost),typeof e===m?e.apply(a):e))+'\');return false;" href="'+n((e=(e=a.page,null==e||!1===e?e:e.webimHost),typeof e===m?e.apply(a):e))+'">\n <img src="'+n((e=(e=a.page,
a?a:""});s.message=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j,k=this.escapeExpression,l=f.helperMissing;a={hash:{},data:c};a="<span>"+(k((j=f.formatTime,j?j.call(e,e.created,a):l.call(e,"formatTime",e.created,a)))+"</span> \n");if((j=f["if"].call(e,e.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var c,e;c="<span class='n";(e=f.kindName)?e=e.call(a,{hash:{},data:b}):(e=a.kindName,e="function"===typeof e?e.apply(a):e);c+=k(e)+"'>";(e=f.name)? null==e||!1===e?e:e.tplRoot),typeof e===m?e.apply(a):e))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function p(a){var e;return a=""+('\n <img src="'+n((e=(e=a.page,null==e||!1===e?e:e.tplRoot),typeof e===m?e.apply(a):e))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var h,m="function",n=this.escapeExpression,q=this;a='\n<div id="top2">\n <div id="logo">\n ';if((f=g["if"].call(c,
e=e.call(a,{hash:{},data:b}):(e=a.name,e="function"===typeof e?e.apply(a):e);return c+=k(e)+"</span>: "},c),data:c}))||0===j)a+=j;a+="\n<span class='m";(j=f.kindName)?j=j.call(e,{hash:{},data:c}):(j=e.kindName,j="function"===typeof j?j.apply(e):j);a+=k(j)+"'>";if((j=f["if"].call(e,e.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var b,e;e={hash:{},data:c};return k((b=f.apply,b?b.call(a,a.message,"urlReplace, nl2br",e):l.call(a,"apply",a.message,"urlReplace, nl2br",e)))},c),fn:this.program(3, (h=(h=c.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:q.program(6,function(a,e){var d,c,b;d="\n ";if((b=g["if"].call(a,(c=a.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:q.program(9,p,e),fn:q.program(7,l,e),data:e}))||0===b)d+=b;return d+"\n "},f),fn:q.program(1,function(a,e){var d,c,b;d="\n \n ";if((b=g.unless.call(a,(c=a.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:q.program(4,k,e),fn:q.program(2,j,e),data:e}))||
function(a,c){var b,e;e={hash:{},data:c};return k((b=f.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",e):l.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",e)))},c),data:c}))||0===j)a+=j;return a+="</span><br/>"});s.message_form=r(function(a,e,f,b,c){function j(a,b){var d,g;d={hash:{},data:b};d='\n <select id="predefined" size="1" class="answer">\n <option>'+(h((g=f.L10n,g?g.call(a,"chat.window.predefined.select_answer",d):m.call(a,"L10n","chat.window.predefined.select_answer", 0===b)d+=b;return d+"\n "},f),data:f}))||0===f)a+=f;return a+='\n &nbsp;\n <div id="page-title">'+n((h=(h=c.page,null==h||!1===h?h:h.title),typeof h===m?h.apply(c):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr" id="description-region">\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'});
d)))+"</option>\n ");if((g=f.each.call(a,a.predefinedAnswers,{hash:{},inverse:n.noop,fn:n.program(5,k,b),data:b}))||0===g)d+=g;return d+="\n </select>\n "}function k(a){var b;return a=""+("\n <option>"+h((b=a["short"],typeof b===p?b.apply(a):b))+"</option>\n ")}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var l,p="function",h=this.escapeExpression,m=f.helperMissing,n=this;a='<div id="message">\n';if((b=f["if"].call(e, s.leave_message_sent_description=r(function(a,c,g,b,f){this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var j,k=g.helperMissing,l=this.escapeExpression;b={hash:{},data:f};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(l((j=g.L10n,j?j.call(c,"chat.mailthread.sent.close",b):k.call(c,"L10n","chat.mailthread.sent.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+l((j=(j=c.page,null==j||!1===j?j:j.webimRoot),"function"===typeof j?j.apply(c):
(l=e.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:n.noop,fn:n.program(1,function(){return'\n <div class="bgc"><div class="bgl"><div class="bgr">\n <textarea id="message-input" class="message" tabindex="0" rows="4" cols="10"></textarea>\n </div></div></div>\n'},c),data:c}))||0===b)a+=b;a+='\n</div>\n\n<div id="send">\n';if((b=f["if"].call(e,(l=e.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:n.noop,fn:n.program(3,function(a,b){var d,g,c;d='\n <div id="postmessage">\n <div id="predefined-wrapper">\n '; j))+'/images/free.gif" alt="');b={hash:{},data:f};a+=l((j=g.L10n,j?j.call(c,"chat.mailthread.sent.close",b):k.call(c,"L10n","chat.mailthread.sent.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">';b={hash:{},data:f};return a+=l((j=g.L10n,j?j.call(c,"leavemessage.sent.message",b):k.call(c,"L10n","leavemessage.sent.message",b)))+"</div>"});s.survey_form=r(function(a,c,g,b,f){function j(a,c){var b,e;b='<input type="hidden" name="group" value="';(e=g.groupId)?e=e.call(a,{hash:{},data:c}):
if((c=f["if"].call(a,(g=a.user,null==g||!1===g?g:g.isAgent),{hash:{},inverse:n.noop,fn:n.program(4,j,b),data:b}))||0===c)d+=c;c={hash:{},data:b};d=d+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+(h((g=f.L10n,g?g.call(a,"chat.window.send_message",c):m.call(a,"L10n","chat.window.send_message",c)))+'">');c={hash:{},data:b};return d+=h((g=f.L10n,g?g.call(a,"chat.window.send_message_short_and_shortcut",c):m.call(a,"L10n","chat.window.send_message_short_and_shortcut", (e=a.groupId,e=typeof e===l?e.apply(a):e);return b+=p(e)+'"/>'}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var k,l="function",p=this.escapeExpression,h=this,m=g.helperMissing;a=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+p((k=(k=c.page,null==k||!1===k?k:k.style),typeof k===l?k.apply(c):k))+'"/>\n <input type="hidden" name="info" value="');(b=g.info)?b=b.call(c,{hash:{},data:f}):(b=c.info,b=typeof b===l?b.apply(c):b);a+=
c)))+"</a>\n </div>\n"},c),data:c}))||0===b)a+=b;return a+'\n</div>\n<div class="clear"></div>'});s.send_mail_control=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return e='<div class="tpl-image" title="'+(b((j=f.L10n,j?j.call(e,"chat.window.toolbar.mail_history",c):a.call(e,"L10n","chat.window.toolbar.mail_history",c)))+'"></div>')});s.survey_layout=r(function(a,e,f,b,c){function j(a){var b; p(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=g.referrer)?b=b.call(c,{hash:{},data:f}):(b=c.referrer,b=typeof b===l?b.apply(c):b);a+=p(b)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((b=g.unless.call(c,c.showEmail,{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){var b,e;b='<input type="hidden" name="email" value="';(e=g.email)?e=e.call(a,{hash:{},data:c}):(e=a.email,e=typeof e===l?e.apply(a):e);return b+=p(e)+'"/>'},f),data:f}))||0===b)a+=b;a+="\n ";
return a=""+('\n <img src="'+q((b=(b=(b=a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===n?b.apply(a):b))+'" alt=""/>\n ')}function k(a){var b;return a=""+("\n <a onclick=\"window.open('"+q((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===n?b.apply(a):b))+'\');return false;" href="'+q((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===n?b.apply(a):b))+'">\n <img src="'+q((b=(b=(b=a.page,null==b||!1=== if((b=g.unless.call(c,c.groups,{hash:{},inverse:h.noop,fn:h.program(3,function(a,c){var b;return(b=g["if"].call(a,a.groupId,{hash:{},inverse:h.noop,fn:h.program(4,j,c),data:c}))||0===b?b:""},f),data:f}))||0===b)a+=b;a+="\n ";if((b=g.unless.call(c,c.showMessage,{hash:{},inverse:h.noop,fn:h.program(6,function(a,c){var b,e;b='<input type="hidden" name="message" value="';(e=g.message)?e=e.call(a,{hash:{},data:c}):(e=a.message,e=typeof e===l?e.apply(a):e);return b+=p(e)+'"/>'},f),data:f}))||0===b)a+=
b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===n?b.apply(a):b))+'" alt=""/>\n </a>\n ')}function l(a){var b;return a=""+("\n <a onclick=\"window.open('"+q((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===n?b.apply(a):b))+'\');return false;" href="'+q((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===n?b.apply(a):b))+'">\n <img src="'+q((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===n?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n </a>\n ')} b;a+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((b=g["if"].call(c,c.groups,{hash:{},inverse:h.noop,fn:h.program(8,function(a,b){var c,e,d;d={hash:{},data:b};c="\n <tr>\n <td><strong>"+(p((e=g.L10n,e?e.call(a,"form.field.department",d):m.call(a,"L10n","form.field.department",d)))+'</strong></td>\n <td><select name="group">');if((d=(e=(e=a.groups,null==e||!1===e?e:e.select),typeof e===l?e.apply(a):e))||0===d)c+=d;c+="</select></td>\n </tr>\n <tr>\n <td><strong>";
function p(a){var b;return a=""+('\n <img src="'+q((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===n?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var h,m,n="function",q=this.escapeExpression,r=this;b=f.helperMissing;a='\n<div id="top2">\n <div id="logo">\n ';if((m=f["if"].call(e,(h=(h=e.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:r.program(6,function(a, d={hash:{},data:b};return c+=p((e=g.L10n,e?e.call(a,"form.field.department.description",d):m.call(a,"L10n","form.field.department.description",d)))+'</strong></td>\n <td id="groupDescription">'+p((e=(e=a.groups,null==e||!1===e?e:e.defaultDescription),typeof e===l?e.apply(a):e))+"</td>\n </tr>\n "},f),data:f}))||0===b)a+=b;b={hash:{},data:f};a=a+"\n <tr>\n <td><strong>"+(p((k=g.L10n,k?k.call(c,"presurvey.name",b):m.call(c,"L10n","presurvey.name",b)))+'</strong></td>\n <td><input type="text" name="name" size="50" value="');
b){var c,e,h;c="\n ";if((h=f["if"].call(a,(e=a.page,null==e||!1===e?e:e.webimHost),{hash:{},inverse:r.program(9,p,b),fn:r.program(7,l,b),data:b}))||0===h)c+=h;return c+"\n "},c),fn:r.program(1,function(a,b){var c,e,h;c="\n \n ";if((h=f.unless.call(a,(e=a.page,null==e||!1===e?e:e.webimHost),{hash:{},inverse:r.program(4,k,b),fn:r.program(2,j,b),data:b}))||0===h)c+=h;return c+"\n "},c),data:c}))||0===m)a+=m;a+='\n &nbsp;\n <div id="page-title">'+ (b=g.name)?b=b.call(c,{hash:{},data:f}):(b=c.name,b=typeof b===l?b.apply(c):b);a+=p(b)+'" class="username" ';if((b=g.unless.call(c,c.canChangeName,{hash:{},inverse:h.noop,fn:h.program(10,function(){return'disabled="disabled"'},f),data:f}))||0===b)a+=b;a+="/></td>\n </tr>\n ";if((b=g["if"].call(c,c.showEmail,{hash:{},inverse:h.noop,fn:h.program(12,function(a,c){var b,e;b={hash:{},data:c};b="\n <tr>\n <td><strong>"+(p((e=g.L10n,e?e.call(a,"presurvey.mail",b):m.call(a,"L10n",
q((h=(h=e.page,null==h||!1===h?h:h.title),typeof h===n?h.apply(e):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr">\n <div class="buttons">\n <a href="javascript:window.close();" title="';m={hash:{},data:c};a+=q((h=f.L10n,h?h.call(e,"leavemessage.close",m):b.call(e,"L10n","leavemessage.close", "presurvey.mail",b)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');(e=g.email)?e=e.call(a,{hash:{},data:c}):(e=a.email,e=typeof e===l?e.apply(a):e);return b+=p(e)+'" class="username"/></td>\n </tr>\n '},f),data:f}))||0===b)a+=b;a+="\n ";if((b=g["if"].call(c,c.showMessage,{hash:{},inverse:h.noop,fn:h.program(14,function(a,c){var b,e;b={hash:{},data:c};b="\n <tr>\n <td><strong>"+(p((e=g.L10n,e?e.call(a,"presurvey.question",b):m.call(a,
m)))+'"><img class="tpl-image iclosewin" src="'+q((h=(h=e.page,null==h||!1===h?h:h.webimRoot),typeof h===n?h.apply(e):h))+'/images/free.gif" alt="';m={hash:{},data:c};a+=q((h=f.L10n,h?h.call(e,"leavemessage.close",m):b.call(e,"L10n","leavemessage.close",m)))+'" /></a>\n </div>\n <div class="messagetxt">';m={hash:{},data:c};return a+=q((h=f.L10n,h?h.call(e,"presurvey.intro",m):b.call(e,"L10n","presurvey.intro",m)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'}); "L10n","presurvey.question",b)))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">');(e=g.message)?e=e.call(a,{hash:{},data:c}):(e=a.message,e=typeof e===l?e.apply(a):e);return b+=p(e)+"</textarea></td>\n </tr>\n "},f),data:f}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">';b={hash:{},data:f};return a+=p((k=g.L10n,k?k.call(c,"presurvey.submit",b):m.call(c,"L10n","presurvey.submit",
s.leave_message_description=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j,k=f.helperMissing,l=this.escapeExpression;b={hash:{},data:c};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(l((j=f.L10n,j?j.call(e,"leavemessage.close",b):k.call(e,"L10n","leavemessage.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+l((j=(j=e.page,null==j||!1===j?j:j.webimRoot),"function"===typeof j?j.apply(e):j))+'/images/free.gif" alt="'); b)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>'});s.survey_layout=r(function(a,c,g,b,f){function j(a){var d;return a=""+('\n <img src="'+q((d=(d=(d=a.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===n?d.apply(a):d))+'" alt=""/>\n ')}function k(a){var d;return a=""+("\n <a onclick=\"window.open('"+q((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(a):d))+'\');return false;" href="'+q((d=(d=a.page,null==
b={hash:{},data:c};a+=l((j=f.L10n,j?j.call(e,"leavemessage.close",b):k.call(e,"L10n","leavemessage.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">';b={hash:{},data:c};return a+=l((j=f.L10n,j?j.call(e,"leavemessage.descr",b):k.call(e,"L10n","leavemessage.descr",b)))+"</div>"});s.refresh_control=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return e='<div class="tpl-image" title="'+ d||!1===d?d:d.webimHost),typeof d===n?d.apply(a):d))+'">\n <img src="'+q((d=(d=(d=a.page,null==d||!1===d?d:d.company),null==d||!1===d?d:d.chatLogoURL),typeof d===n?d.apply(a):d))+'" alt=""/>\n </a>\n ')}function l(a){var d;return a=""+("\n <a onclick=\"window.open('"+q((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(a):d))+'\');return false;" href="'+q((d=(d=a.page,null==d||!1===d?d:d.webimHost),typeof d===n?d.apply(a):d))+
(b((j=f.L10n,j?j.call(e,"chat.window.toolbar.refresh",c):a.call(e,"L10n","chat.window.toolbar.refresh",c)))+'"></div>')});s.redirect_control=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j,k=f.helperMissing,l=this.escapeExpression;return(a=f["if"].call(e,(j=e.user,null==j||!1===j?j:j.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var c,e;c={hash:{},data:b};return c='\n<div class="tpl-image" title="'+(l((e=f.L10n,e?e.call(a,"chat.window.toolbar.redirect_user", '">\n <img src="'+q((d=(d=a.page,null==d||!1===d?d:d.tplRoot),typeof d===n?d.apply(a):d))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function p(a){var d;return a=""+('\n <img src="'+q((d=(d=a.page,null==d||!1===d?d:d.tplRoot),typeof d===n?d.apply(a):d))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[2,">= 1.0.0-rc.3"];g=g||a.helpers;f=f||{};var h,m,n="function",q=this.escapeExpression,r=this;b=g.helperMissing;
c):k.call(a,"L10n","chat.window.toolbar.redirect_user",c)))+'"></div>\n')},c),data:c}))||0===a?a:""});s.status=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};a=this.escapeExpression;(f=f.title)?f=f.call(e,{hash:{},data:c}):(f=e.title,f="function"===typeof f?f.apply(e):f);return a(f)});s.leave_message_sent_description=r(function(a,e,f,b,c){this.compilerInfo=[2,">= 1.0.0-rc.3"];f=f||a.helpers;c=c||{};var j,k=f.helperMissing,l=this.escapeExpression;b={hash:{},data:c}; a='\n<div id="top2">\n <div id="logo">\n ';if((m=g["if"].call(c,(h=(h=c.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:r.program(6,function(a,d){var b,c,f;b="\n ";if((f=g["if"].call(a,(c=a.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:r.program(9,p,d),fn:r.program(7,l,d),data:d}))||0===f)b+=f;return b+"\n "},f),fn:r.program(1,function(a,b){var c,f,h;c="\n \n ";if((h=g.unless.call(a,(f=a.page,null==f||!1===
a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(l((j=f.L10n,j?j.call(e,"chat.mailthread.sent.close",b):k.call(e,"L10n","chat.mailthread.sent.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+l((j=(j=e.page,null==j||!1===j?j:j.webimRoot),"function"===typeof j?j.apply(e):j))+'/images/free.gif" alt="');b={hash:{},data:c};a+=l((j=f.L10n,j?j.call(e,"chat.mailthread.sent.close",b):k.call(e,"L10n","chat.mailthread.sent.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">'; f?f:f.webimHost),{hash:{},inverse:r.program(4,k,b),fn:r.program(2,j,b),data:b}))||0===h)c+=h;return c+"\n "},f),data:f}))||0===m)a+=m;a+='\n &nbsp;\n <div id="page-title">'+q((h=(h=c.page,null==h||!1===h?h:h.title),typeof h===n?h.apply(c):h))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr">\n <div class="buttons">\n <a href="javascript:window.close();" title="';
b={hash:{},data:c};return a+=l((j=f.L10n,j?j.call(e,"leavemessage.sent.message",b):k.call(e,"L10n","leavemessage.sent.message",b)))+"</div>"})})(); m={hash:{},data:f};a+=q((h=g.L10n,h?h.call(c,"leavemessage.close",m):b.call(c,"L10n","leavemessage.close",m)))+'"><img class="tpl-image iclosewin" src="'+q((h=(h=c.page,null==h||!1===h?h:h.webimRoot),typeof h===n?h.apply(c):h))+'/images/free.gif" alt="';m={hash:{},data:f};a+=q((h=g.L10n,h?h.call(c,"leavemessage.close",m):b.call(c,"L10n","leavemessage.close",m)))+'" /></a>\n </div>\n <div class="messagetxt">';m={hash:{},data:f};return a+=q((h=g.L10n,h?h.call(c,"presurvey.intro",m):b.call(c,
"L10n","presurvey.intro",m)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'})})();