|
|
|
@ -4,57 +4,58 @@
|
|
|
|
|
Copyright (c) 2005-2011 Mibew Messenger Community
|
|
|
|
|
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,
|
|
|
|
|
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",
|
|
|
|
|
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)))+" "+h((g=(g=a.user,null==g||!1===g?g:g.name),typeof g===p?g.apply(a):
|
|
|
|
|
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: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="'+
|
|
|
|
|
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:{},
|
|
|
|
|
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);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,
|
|
|
|
|
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",
|
|
|
|
|
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">';
|
|
|
|
|
(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">';
|
|
|
|
|
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"> </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=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===
|
|
|
|
|
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=
|
|
|
|
|
[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,
|
|
|
|
|
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 \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"> </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.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,
|
|
|
|
|
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=
|
|
|
|
|
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}):
|
|
|
|
|
(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+=
|
|
|
|
|
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 ";
|
|
|
|
|
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+=
|
|
|
|
|
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>";
|
|
|
|
|
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="');
|
|
|
|
|
(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",
|
|
|
|
|
"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,
|
|
|
|
|
"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",
|
|
|
|
|
b)))+'</a>\n <div class="clear"> </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||
|
|
|
|
|
!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))+
|
|
|
|
|
'">\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;
|
|
|
|
|
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===
|
|
|
|
|
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 \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"> </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((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,
|
|
|
|
|
"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,
|
|
|
|
|
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===
|
|
|
|
|
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)?
|
|
|
|
|
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,
|
|
|
|
|
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",
|
|
|
|
|
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,
|
|
|
|
|
(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 ';
|
|
|
|
|
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",
|
|
|
|
|
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;
|
|
|
|
|
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===
|
|
|
|
|
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 ')}
|
|
|
|
|
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,
|
|
|
|
|
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 \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"> </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",
|
|
|
|
|
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>'});
|
|
|
|
|
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={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="'+
|
|
|
|
|
(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",
|
|
|
|
|
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='<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">';
|
|
|
|
|
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>"})})();
|
|
|
|
|
(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)+
|
|
|
|
|
'" 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;
|
|
|
|
|
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;
|
|
|
|
|
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,
|
|
|
|
|
"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",
|
|
|
|
|
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,
|
|
|
|
|
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===
|
|
|
|
|
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?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;
|
|
|
|
|
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)))+" "+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),
|
|
|
|
|
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==
|
|
|
|
|
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))+
|
|
|
|
|
'">\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;
|
|
|
|
|
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===
|
|
|
|
|
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 \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"> </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((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,
|
|
|
|
|
"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){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;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>'+
|
|
|
|
|
(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||
|
|
|
|
|
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,
|
|
|
|
|
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)))+'">');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)});
|
|
|
|
|
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=
|
|
|
|
|
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+=
|
|
|
|
|
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=
|
|
|
|
|
[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=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,
|
|
|
|
|
"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="';
|
|
|
|
|
(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,
|
|
|
|
|
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}))||
|
|
|
|
|
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,
|
|
|
|
|
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"> </div>\n</form>'});
|
|
|
|
|
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))+
|
|
|
|
|
'">\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,
|
|
|
|
|
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,
|
|
|
|
|
(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}))||
|
|
|
|
|
0===b)d+=b;return d+"\n "},f),data:f}))||0===f)a+=f;return a+='\n \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"> </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(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):
|
|
|
|
|
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}):
|
|
|
|
|
(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+=
|
|
|
|
|
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 ";
|
|
|
|
|
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;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>";
|
|
|
|
|
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=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",
|
|
|
|
|
"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,
|
|
|
|
|
"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",
|
|
|
|
|
b)))+'</a>\n <div class="clear"> </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==
|
|
|
|
|
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))+
|
|
|
|
|
'">\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;
|
|
|
|
|
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===
|
|
|
|
|
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 \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"> </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: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>'})})();
|
|
|
|
|