Add ajax loader for Survey and LeaveMessage chat modules

This commit is contained in:
Dmitriy Simushev 2013-03-04 10:50:40 +00:00
parent a3c6141ab7
commit 0b5c5d5aba
12 changed files with 106 additions and 68 deletions

View File

@ -5,5 +5,5 @@
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"showError submitError"}),submitForm:function(){var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());a.name=this.ui.name.val()||"";
a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
a.name=this.ui.name.val()||"";a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);

View File

@ -5,5 +5,5 @@
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(c,d){c.Views.BaseSurveyForm=d.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors"},modelEvents:{invalid:"showError","submit:error":"showError"},preventSubmit:function(a){a.preventDefault()},changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex"),
a=this.model.get("groups")[a].description||"";this.ui.groupDescription.text(a)},showError:function(a,b){this.ui.errors.html("string"==typeof b?b:b.message)}})})(Mibew,Backbone);
(function(c,d){c.Views.BaseSurveyForm=d.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors",ajaxLoader:"#ajax-loader"},modelEvents:{invalid:"hideAjaxLoader showError","submit:error":"hideAjaxLoader showError"},preventSubmit:function(a){a.preventDefault()},
changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex"),a=this.model.get("groups")[a].description||"";this.ui.groupDescription.text(a)},showError:function(a,b){this.ui.errors.html("string"==typeof b?b:b.message)},serializeData:function(){var a=this.model.toJSON();a.page=c.Objects.Models.page.toJSON();return a},showAjaxLoader:function(){this.ui.ajaxLoader.show()},hideAjaxLoader:function(){this.ui.ajaxLoader.hide()}})})(Mibew,Backbone);

View File

@ -5,5 +5,5 @@
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,{validate:!0});
this.model.submit()}})})(Mibew,Handlebars,_);
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,
{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);

View File

@ -164,8 +164,8 @@ a);this.trigger("multiple:add");return a}})})(Mibew,Backbone,_);
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(c,d){c.Views.BaseSurveyForm=d.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors"},modelEvents:{invalid:"showError","submit:error":"showError"},preventSubmit:function(a){a.preventDefault()},changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex"),
a=this.model.get("groups")[a].description||"";this.ui.groupDescription.text(a)},showError:function(a,b){this.ui.errors.html("string"==typeof b?b:b.message)}})})(Mibew,Backbone);
(function(c,d){c.Views.BaseSurveyForm=d.Marionette.ItemView.extend({events:{'change select[name="group"]':"changeGroupDescription","submit form":"preventSubmit"},ui:{groupSelect:'select[name="group"]',groupDescription:"#groupDescription",name:'input[name="name"]',email:'input[name="email"]',message:'textarea[name="message"]',errors:".errors",ajaxLoader:"#ajax-loader"},modelEvents:{invalid:"hideAjaxLoader showError","submit:error":"hideAjaxLoader showError"},preventSubmit:function(a){a.preventDefault()},
changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex"),a=this.model.get("groups")[a].description||"";this.ui.groupDescription.text(a)},showError:function(a,b){this.ui.errors.html("string"==typeof b?b:b.message)},serializeData:function(){var a=this.model.toJSON();a.page=c.Objects.Models.page.toJSON();return a},showAjaxLoader:function(){this.ui.ajaxLoader.show()},hideAjaxLoader:function(){this.ui.ajaxLoader.hide()}})})(Mibew,Backbone);
/*
This file is part of Mibew Messenger project.
http://mibew.org
@ -244,8 +244,8 @@ this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameI
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"showError submitError"}),submitForm:function(){var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());a.name=this.ui.name.val()||"";
a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
a.name=this.ui.name.val()||"";a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);
/*
This file is part of Mibew Messenger project.
http://mibew.org
@ -290,8 +290,8 @@ disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,{validate:!0});
this.model.submit()}})})(Mibew,Handlebars,_);
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,
{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);
/*
This file is part of Mibew Messenger project.
http://mibew.org

View File

@ -56,7 +56,7 @@
{},
BaseView.prototype.modelEvents,
{
'submit:error': 'showError submitError'
'submit:error': 'hideAjaxLoader showError submitError'
}
),
@ -64,6 +64,8 @@
* Update model fields and call model.submit() method.
*/
submitForm: function() {
this.showAjaxLoader();
// Update model fields
var values = {};

View File

@ -33,7 +33,8 @@
name: 'input[name="name"]',
email: 'input[name="email"]',
message: 'textarea[name="message"]',
errors: '.errors'
errors: '.errors',
ajaxLoader: '#ajax-loader'
},
/**
@ -41,8 +42,8 @@
* @type Object
*/
modelEvents: {
'invalid': 'showError',
'submit:error': 'showError'
'invalid': 'hideAjaxLoader showError',
'submit:error': 'hideAjaxLoader showError'
},
/**
@ -76,6 +77,34 @@
}
// TODO: Think about moving this to template
this.ui.errors.html(errorMessage);
},
/**
* Override Backbone.Marionette.ItemView.serializeData to pass some
* extra fields to template.
*
* Pass page data to template.
*
* @returns {Object} Template data
*/
serializeData: function() {
var data = this.model.toJSON();
data.page = Mibew.Objects.Models.page.toJSON();
return data;
},
/**
* Shows ajax loader
*/
showAjaxLoader: function() {
this.ui.ajaxLoader.show();
},
/**
* Hide ajax loader
*/
hideAjaxLoader: function() {
this.ui.ajaxLoader.hide();
}
}
);

View File

@ -42,6 +42,8 @@
* method.
*/
submitForm: function() {
this.showAjaxLoader();
var values = {};
// Update group id

View File

@ -453,7 +453,10 @@ ul li {
.wndbr input {
border: 1px solid #BBC4C4;
}
#sound-region {
#ajax-loader {
display: none;
position: absolute;
top: 200px;
left: 250px;
}
/* ----- */

View File

@ -49,3 +49,4 @@
<a href="javascript:void(0);" class="but" id="send-message">{{L10n "mailthread.perform"}}</a>
<div class="clear">&nbsp;</div>
</form>
<div id="ajax-loader"><img src="{{page.tplRoot}}/images/ajax-loader.gif" alt="Loading..." /></div>

View File

@ -46,3 +46,4 @@
<a href="javascript:void(0);" class="but" id="submit-survey">{{L10n "presurvey.submit"}}</a>
<div class="clear">&nbsp;</div>
</form>
<div id="ajax-loader"><img src="{{page.tplRoot}}/images/ajax-loader.gif" alt="Loading..." /></div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

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