From 691ce8986ce3f2ecb70d62d965298925bfec677b Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 18 Feb 2013 10:42:54 +0000 Subject: [PATCH] Update Handlebars.js to v1.0.0-rc.3 and recompile templates --- .../webim/js/compiled/default_app.js | 2 +- src/messenger/webim/js/compiled/users_app.js | 2 +- src/messenger/webim/js/libs/handlebars.js | 117 +++++++++++------- .../js/templates/compiled/default_app.tpl.js | 2 +- .../js/templates/compiled/users_app.tpl.js | 2 +- .../dialogs/default/js/compiled/templates.js | 2 +- 6 files changed, 76 insertions(+), 51 deletions(-) diff --git a/src/messenger/webim/js/compiled/default_app.js b/src/messenger/webim/js/compiled/default_app.js index 8eadd8b7..b8e942f1 100644 --- a/src/messenger/webim/js/compiled/default_app.js +++ b/src/messenger/webim/js/compiled/default_app.js @@ -4,7 +4,7 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.default_control=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i="function",j=this.escapeExpression;return f+="",h=c.title,h?g=h.call(b,{hash:{}}):(g=b.title,g=typeof g===i?g():g),f+=j(g)+"",f}),b.sound=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='\n\n',d}c=c||a.helpers;var f,g="function",h=this.escapeExpression,i=this;return f=b.file,f=c["if"].call(b,f,{hash:{},inverse:i.noop,fn:i.program(1,j,e)}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function m(a,b){var d="",e,f;return d+="",f=c.name,f?e=f.call(a,{hash:{}}):(e=a.name,e=typeof e===i?e():e),d+=j(e)+": ",d}function n(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br, allowTags",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br, allowTags",{hash:{}}),j(d)}function o(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br",{hash:{}}),j(d)}c=c||a.helpers;var f="",g,h,i="function",j=this.escapeExpression,k=c.helperMissing,l=this;f+="",g=b.created,h=c.formatTime,g=h?h.call(b,g,{hash:{}}):k.call(b,"formatTime",g,{hash:{}}),f+=j(g)+"\n",g=b.name,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(1,m,e)});if(g||g===0)f+=g;f+="\n",g=b.allowFormatting,g=c["if"].call(b,g,{hash:{},inverse:l.program(5,o,e),fn:l.program(3,n,e)});if(g||g===0)f+=g;return f+="
",f})})();/* +(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.default_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h="function",i=this.escapeExpression;return f+="",(g=c.title)?g=g.call(b,{hash:{},data:e}):(g=b.title,g=typeof g===h?g.apply(b):g),f+=i(g)+"",f}),b.sound=a(function(a,b,c,d,e){function j(a,b){var d="",e;return d+='\n\n',d}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g="function",h=this.escapeExpression,i=this;return f=c["if"].call(b,b.file,{hash:{},inverse:i.noop,fn:i.program(1,j,e),data:e}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function n(a,b){var d="",e;return d+="",(e=c.name)?e=e.call(a,{hash:{},data:b}):(e=a.name,e=typeof e===j?e.apply(a):e),d+=k(e)+": ",d}function o(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",e):l.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",e)))}function p(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br",e):l.call(a,"apply",a.message,"urlReplace, nl2br",e)))}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j="function",k=this.escapeExpression,l=c.helperMissing,m=this;f+="",i={hash:{},data:e},f+=k((g=c.formatTime,g?g.call(b,b.created,i):l.call(b,"formatTime",b.created,i)))+"\n",h=c["if"].call(b,b.name,{hash:{},inverse:m.noop,fn:m.program(1,n,e),data:e});if(h||h===0)f+=h;f+="\n",h=c["if"].call(b,b.allowFormatting,{hash:{},inverse:m.program(5,p,e),fn:m.program(3,o,e),data:e});if(h||h===0)f+=h;return f+="
",f})})();/* This file is part of Mibew Messenger project. http://mibew.org Copyright (c) 2005-2011 Mibew Messenger Community diff --git a/src/messenger/webim/js/compiled/users_app.js b/src/messenger/webim/js/compiled/users_app.js index a731e956..9a292288 100644 --- a/src/messenger/webim/js/compiled/users_app.js +++ b/src/messenger/webim/js/compiled/users_app.js @@ -4,7 +4,7 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.agent=a(function(a,b,c,d,e){function m(a,b){return"away"}function n(a,b){return"online"}function o(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.away",{hash:{}}):i.call(a,"L10n","pending.status.away",{hash:{}}),j(d)}function p(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.online",{hash:{}}):i.call(a,"L10n","pending.status.online",{hash:{}}),j(d)}function q(a,b){return","}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k=this,l="function";f+='',h=c.name,h?g=h.call(b,{hash:{}}):(g=b.name,g=typeof g===l?g():g),f+=j(g),g=b.isLast,g=c.unless.call(b,g,{hash:{},inverse:k.noop,fn:k.program(9,q,e)});if(g||g===0)f+=g;return f}),b.no_threads=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h=c.L10n,g=h?h.call(b,"clients.no_clients",{hash:{}}):i.call(b,"L10n","clients.no_clients",{hash:{}}),f+=j(g)+"",f}),b.no_visitors=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h=c.L10n,g=h?h.call(b,"visitors.no_visitors",{hash:{}}):i.call(b,"L10n","visitors.no_visitors",{hash:{}}),f+=j(g)+"",f}),b.status_panel=a(function(a,b,c,d,e){function m(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.away",{hash:{}}):i.call(a,"L10n","pending.status.away",{hash:{}}),j(d)}function n(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.online",{hash:{}}):i.call(a,"L10n","pending.status.online",{hash:{}}),j(d)}function o(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.setonline",{hash:{}}):i.call(a,"L10n","pending.status.setonline",{hash:{}}),j(d)}function p(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.setaway",{hash:{}}):i.call(a,"L10n","pending.status.setaway",{hash:{}}),j(d)}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='
',h=c.message,h?g=h.call(b,{hash:{}}):(g=b.message,g=typeof g===k?g():g),f+=j(g),g=b.agent,g=g==null||g===!1?g:g.away,g=c["if"].call(b,g,{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e)});if(g||g===0)f+=g;f+='
",f}),b.threads_collection=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
',h=c.L10n,g=h?h.call(b,"pending.table.head.name",{hash:{}}):i.call(b,"L10n","pending.table.head.name",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.actions",{hash:{}}):i.call(b,"L10n","pending.table.head.actions",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.contactid",{hash:{}}):i.call(b,"L10n","pending.table.head.contactid",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.state",{hash:{}}):i.call(b,"L10n","pending.table.head.state",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.operator",{hash:{}}):i.call(b,"L10n","pending.table.head.operator",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.total",{hash:{}}):i.call(b,"L10n","pending.table.head.total",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.waittime",{hash:{}}):i.call(b,"L10n","pending.table.head.waittime",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.etc",{hash:{}}):i.call(b,"L10n","pending.table.head.etc",{hash:{}}),f+=j(g)+'
',f}),b.visitors_collection=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
',h=c.L10n,g=h?h.call(b,"visitors.table.head.name",{hash:{}}):i.call(b,"L10n","visitors.table.head.name",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.actions",{hash:{}}):i.call(b,"L10n","visitors.table.head.actions",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.contactid",{hash:{}}):i.call(b,"L10n","visitors.table.head.contactid",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.firsttimeonsite",{hash:{}}):i.call(b,"L10n","visitors.table.head.firsttimeonsite",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.lasttimeonsite",{hash:{}}):i.call(b,"L10n","visitors.table.head.lasttimeonsite",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invited.by",{hash:{}}):i.call(b,"L10n","visitors.table.head.invited.by",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invitationtime",{hash:{}}):i.call(b,"L10n","visitors.table.head.invitationtime",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invitations",{hash:{}}):i.call(b,"L10n","visitors.table.head.invitations",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.etc",{hash:{}}):i.call(b,"L10n","visitors.table.head.etc",{hash:{}}),f+=j(g)+'
',f}),b.visitor=a(function(a,b,c,d,e){function m(a,b){var d="",e,f;return d+='',f=c.userName,f?e=f.call(a,{hash:{}}):(e=a.userName,e=typeof e===k?e():e),d+=j(e)+"",d}function n(a,b){var d,e;return e=c.userName,e?d=e.call(a,{hash:{}}):(d=a.userName,d=typeof d===k?d():d),j(d)}function o(a,b){var d="",e,f;return d+='',f=c.remote,f?e=f.call(a,{hash:{}}):(e=a.remote,e=typeof e===k?e():e),d+=j(e)+"",d}function p(a,b){var d,e;return e=c.remote,e?d=e.call(a,{hash:{}}):(d=a.remote,d=typeof d===k?d():d),j(d)}function q(a,b){var c;return c=a.invitationInfo,c=c==null||c===!1?c:c.agentName,c=typeof c===k?c():c,j(c)}function r(a,b){return"-"}function s(a,b){var c="",d;return c+='',c}function t(a,b){return"-"}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='\n ',g=b.invitationInfo,g=c.unless.call(b,g,{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e)});if(g||g===0)f+=g;f+='\n\n\n
\n
\n
\n
\n\n',g=b.userIp,g=c["if"].call(b,g,{hash:{},inverse:l.program(7,p,e),fn:l.program(5,o,e)});if(g||g===0)f+=g;f+='\n\n\n',g=b.invitationInfo,g=c["if"].call(b,g,{hash:{},inverse:l.program(11,r,e),fn:l.program(9,q,e)});if(g||g===0)f+=g;f+='\n',g=b.invitationInfo,g=c["if"].call(b,g,{hash:{},inverse:l.program(15,t,e),fn:l.program(13,s,e)});if(g||g===0)f+=g;return f+='\n',h=c.invitations,h?g=h.call(b,{hash:{}}):(g=b.invitations,g=typeof g===k?g():g),f+=j(g)+" / ",h=c.chats,h?g=h.call(b,{hash:{}}):(g=b.chats,g=typeof g===k?g():g),f+=j(g)+'\n',h=c.userAgent,h?g=h.call(b,{hash:{}}):(g=b.userAgent,g=typeof g===k?g():g),f+=j(g)+"",f}),b.queued_thread=a(function(a,b,c,d,e){function m(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.table.speak",{hash:{}}):i.call(a,"L10n","pending.table.speak",{hash:{}}),j(d)}function n(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.table.view",{hash:{}}):i.call(a,"L10n","pending.table.view",{hash:{}}),j(d)}function o(a,b){var d="",e,f;return f=c.L10n,e=f?f.call(a,"chat.client.spam.prefix",{hash:{}}):i.call(a,"L10n","chat.client.spam.prefix",{hash:{}}),d+=j(e)+" ",d}function p(a,b){var d="",e,f;return d+='
',f=c.firstMessagePreview,f?e=f.call(a,{hash:{}}):(e=a.firstMessagePreview,e=typeof e===k?e():e),d+=j(e)+"
",d}function q(a,b){var d="",e,f;return d+='\n
\n ',d}function r(a,b){var d="",e,f;return d+='\n
\n ',d}function s(a,b){var d="",e,f;return d+='\n
\n ',d}function t(a,b){var d="",e,f;return d+='\n
\n ',d}function u(a,b){var d="",e,f;return d+='',f=c.remote,f?e=f.call(a,{hash:{}}):(e=a.remote,e=typeof e===k?e():e),d+=j(e)+"",d}function v(a,b){var d,e;return e=c.remote,e?d=e.call(a,{hash:{}}):(d=a.remote,d=typeof d===k?d():d),j(d)}function w(a,b){var d="",e,f;return d+='',d}function x(a,b){return"-"}function y(a,b){var c;return c=a.ban,c=c==null||c===!1?c:c.reason,c=typeof c===k?c():c,j(c)}function z(a,b){var d,e;return e=c.userAgent,e?d=e.call(a,{hash:{}}):(d=a.userAgent,d=typeof d===k?d():d),j(d)}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='\n
',g=b.ban,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(5,o,e)});if(g||g===0)f+=g;h=c.userName,h?g=h.call(b,{hash:{}}):(g=b.userName,g=typeof g===k?g():g),f+=j(g)+"
\n ",g=b.firstMessage,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(7,p,e)});if(g||g===0)f+=g;f+='\n\n\n
\n ',g=b.canOpen,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(9,q,e)});if(g||g===0)f+=g;f+="\n ",g=b.canView,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(11,r,e)});if(g||g===0)f+=g;f+="\n ",g=b.tracked,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(13,s,e)});if(g||g===0)f+=g;f+="\n ",g=b.canBan,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(15,t,e)});if(g||g===0)f+=g;f+='\n
\n
\n\n',g=b.userIp,g=c["if"].call(b,g,{hash:{},inverse:l.program(19,v,e),fn:l.program(17,u,e)});if(g||g===0)f+=g;f+='\n',h=c.stateDesc,h?g=h.call(b,{hash:{}}):(g=b.stateDesc,g=typeof g===k?g():g),f+=j(g)+'\n',h=c.agentName,h?g=h.call(b,{hash:{}}):(g=b.agentName,g=typeof g===k?g():g),f+=j(g)+'\n\n',g=b.chatting,g=c.unless.call(b,g,{hash:{},inverse:l.program(23,x,e),fn:l.program(21,w,e)});if(g||g===0)f+=g;f+='\n',g=b.ban,g=c["if"].call(b,g,{hash:{},inverse:l.program(27,z,e),fn:l.program(25,y,e)});if(g||g===0)f+=g;return f+="",f})})();/* +(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.agent=a(function(a,b,c,d,e){function l(a,b){return"away"}function m(a,b){return"online"}function n(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.status.away",e):h.call(a,"L10n","pending.status.away",e)))}function o(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.status.online",e):h.call(a,"L10n","pending.status.online",e)))}function p(a,b){return","}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h=c.helperMissing,i=this.escapeExpression,j=this,k="function";f+='',(g=c.name)?g=g.call(b,{hash:{},data:e}):(g=b.name,g=typeof g===k?g.apply(b):g),f+=i(g),g=c.unless.call(b,b.isLast,{hash:{},inverse:j.noop,fn:j.program(9,p,e),data:e});if(g||g===0)f+=g;return f}),b.no_threads=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"clients.no_clients",h):i.call(b,"L10n","clients.no_clients",h)))+"",f}),b.no_visitors=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.no_visitors",h):i.call(b,"L10n","visitors.no_visitors",h)))+"",f}),b.status_panel=a(function(a,b,c,d,e){function m(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.away",e):i.call(a,"L10n","pending.status.away",e)))}function n(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.online",e):i.call(a,"L10n","pending.status.online",e)))}function o(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.setonline",e):i.call(a,"L10n","pending.status.setonline",e)))}function p(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.setaway",e):i.call(a,"L10n","pending.status.setaway",e)))}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='
',(g=c.message)?g=g.call(b,{hash:{},data:e}):(g=b.message,g=typeof g===k?g.apply(b):g),f+=j(g),h=c["if"].call(b,(g=b.agent,g==null||g===!1?g:g.away),{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e),data:e});if(h||h===0)f+=h;f+='
",f}),b.threads_collection=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.name",h):i.call(b,"L10n","pending.table.head.name",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.actions",h):i.call(b,"L10n","pending.table.head.actions",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.contactid",h):i.call(b,"L10n","pending.table.head.contactid",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.state",h):i.call(b,"L10n","pending.table.head.state",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.operator",h):i.call(b,"L10n","pending.table.head.operator",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.total",h):i.call(b,"L10n","pending.table.head.total",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.waittime",h):i.call(b,"L10n","pending.table.head.waittime",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.etc",h):i.call(b,"L10n","pending.table.head.etc",h)))+'
',f}),b.visitors_collection=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.name",h):i.call(b,"L10n","visitors.table.head.name",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.actions",h):i.call(b,"L10n","visitors.table.head.actions",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.contactid",h):i.call(b,"L10n","visitors.table.head.contactid",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.firsttimeonsite",h):i.call(b,"L10n","visitors.table.head.firsttimeonsite",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.lasttimeonsite",h):i.call(b,"L10n","visitors.table.head.lasttimeonsite",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invited.by",h):i.call(b,"L10n","visitors.table.head.invited.by",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invitationtime",h):i.call(b,"L10n","visitors.table.head.invitationtime",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invitations",h):i.call(b,"L10n","visitors.table.head.invitations",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.etc",h):i.call(b,"L10n","visitors.table.head.etc",h)))+'
',f}),b.visitor=a(function(a,b,c,d,e){function n(a,b){var d="",e,f,g;return d+='',(f=c.userName)?f=f.call(a,{hash:{},data:b}):(f=a.userName,f=typeof f===l?f.apply(a):f),d+=k(f)+"",d}function o(a,b){var d;return(d=c.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d=typeof d===l?d.apply(a):d),k(d)}function p(a,b){var d="",e;return d+='',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===l?e.apply(a):e),d+=k(e)+"",d}function q(a,b){var d;return(d=c.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d=typeof d===l?d.apply(a):d),k(d)}function r(a,b){var c;return k((c=(c=a.invitationInfo,c==null||c===!1?c:c.agentName),typeof c===l?c.apply(a):c))}function s(a,b){return"-"}function t(a,b){var c="",d;return c+='',c}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j=c.helperMissing,k=this.escapeExpression,l="function",m=this;f+='\n ',g=c.unless.call(b,b.invitationInfo,{hash:{},inverse:m.program(3,o,e),fn:m.program(1,n,e),data:e});if(g||g===0)f+=g;f+='\n\n\n
\n
\n
\n
\n\n',h=c["if"].call(b,b.userIp,{hash:{},inverse:m.program(7,q,e),fn:m.program(5,p,e),data:e});if(h||h===0)f+=h;f+='\n\n\n',h=c["if"].call(b,b.invitationInfo,{hash:{},inverse:m.program(11,s,e),fn:m.program(9,r,e),data:e});if(h||h===0)f+=h;f+='\n',h=c["if"].call(b,b.invitationInfo,{hash:{},inverse:m.program(11,s,e),fn:m.program(13,t,e),data:e});if(h||h===0)f+=h;return f+='\n',(h=c.invitations)?h=h.call(b,{hash:{},data:e}):(h=b.invitations,h=typeof h===l?h.apply(b):h),f+=k(h)+" / ",(h=c.chats)?h=h.call(b,{hash:{},data:e}):(h=b.chats,h=typeof h===l?h.apply(b):h),f+=k(h)+'\n',(h=c.userAgent)?h=h.call(b,{hash:{},data:e}):(h=b.userAgent,h=typeof h===l?h.apply(b):h),f+=k(h)+"",f}),b.queued_thread=a(function(a,b,c,d,e){function l(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.table.speak",e):h.call(a,"L10n","pending.table.speak",e)))}function m(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.table.view",e):h.call(a,"L10n","pending.table.view",e)))}function n(a,b){var d="",e,f;return f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"chat.client.spam.prefix",f):h.call(a,"L10n","chat.client.spam.prefix",f)))+" ",d}function o(a,b){var d="",e;return d+='
',(e=c.firstMessagePreview)?e=e.call(a,{hash:{},data:b}):(e=a.firstMessagePreview,e=typeof e===j?e.apply(a):e),d+=i(e)+"
",d}function p(a,b){var d="",e,f;return d+='\n
\n ',d}function q(a,b){var d="",e,f;return d+='\n
\n ',d}function r(a,b){var d="",e,f;return d+='\n
\n ',d}function s(a,b){var d="",e,f;return d+='\n
\n ',d}function t(a,b){var d="",e;return d+='',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===j?e.apply(a):e),d+=i(e)+"",d}function u(a,b){var d;return(d=c.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d=typeof d===j?d.apply(a):d),i(d)}function v(a,b){var d="",e;return d+='',d}function w(a,b){return"-"}function x(a,b){var c;return i((c=(c=a.ban,c==null||c===!1?c:c.reason),typeof c===j?c.apply(a):c))}function y(a,b){var d;return(d=c.userAgent)?d=d.call(a,{hash:{},data:b}):(d=a.userAgent,d=typeof d===j?d.apply(a):d),i(d)}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h=c.helperMissing,i=this.escapeExpression,j="function",k=this;f+='\n
',g=c["if"].call(b,b.ban,{hash:{},inverse:k.noop,fn:k.program(5,n,e),data:e});if(g||g===0)f+=g;(g=c.userName)?g=g.call(b,{hash:{},data:e}):(g=b.userName,g=typeof g===j?g.apply(b):g),f+=i(g)+"
\n ",g=c["if"].call(b,b.firstMessage,{hash:{},inverse:k.noop,fn:k.program(7,o,e),data:e});if(g||g===0)f+=g;f+='\n\n\n
\n ',g=c["if"].call(b,b.canOpen,{hash:{},inverse:k.noop,fn:k.program(9,p,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.canView,{hash:{},inverse:k.noop,fn:k.program(11,q,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.tracked,{hash:{},inverse:k.noop,fn:k.program(13,r,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.canBan,{hash:{},inverse:k.noop,fn:k.program(15,s,e),data:e});if(g||g===0)f+=g;f+='\n
\n
\n\n',g=c["if"].call(b,b.userIp,{hash:{},inverse:k.program(19,u,e),fn:k.program(17,t,e),data:e});if(g||g===0)f+=g;f+='\n',(g=c.stateDesc)?g=g.call(b,{hash:{},data:e}):(g=b.stateDesc,g=typeof g===j?g.apply(b):g),f+=i(g)+'\n',(g=c.agentName)?g=g.call(b,{hash:{},data:e}):(g=b.agentName,g=typeof g===j?g.apply(b):g),f+=i(g)+'\n\n',g=c.unless.call(b,b.chatting,{hash:{},inverse:k.program(23,w,e),fn:k.program(21,v,e),data:e});if(g||g===0)f+=g;f+='\n',g=c["if"].call(b,b.ban,{hash:{},inverse:k.program(27,y,e),fn:k.program(25,x,e),data:e});if(g||g===0)f+=g;return f+="",f})})();/* This file is part of Mibew Messenger project. http://mibew.org Copyright (c) 2005-2011 Mibew Messenger Community diff --git a/src/messenger/webim/js/libs/handlebars.js b/src/messenger/webim/js/libs/handlebars.js index 1e86a63b..f9d73a6d 100644 --- a/src/messenger/webim/js/libs/handlebars.js +++ b/src/messenger/webim/js/libs/handlebars.js @@ -1,8 +1,29 @@ +/* + Copyright (C) 2011 by Yehuda Katz + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + THE SOFTWARE. +*/ this.Handlebars={}; -(function(c){c.VERSION="1.0.rc.2";c.helpers={};c.partials={};c.registerHelper=function(a,d,c){c&&(d.not=c);this.helpers[a]=d};c.registerPartial=function(a,d){this.partials[a]=d};c.registerHelper("helperMissing",function(a){if(2!==arguments.length)throw Error("Could not find property '"+a+"'");});var f=Object.prototype.toString;c.registerHelper("blockHelperMissing",function(a,d){var g=d.inverse||function(){},e=d.fn,q=f.call(a);"[object Function]"===q&&(a=a.call(this));return!0===a?e(this):!1===a|| -null==a?g(this):"[object Array]"===q?0= 1.0.0-rc.3"};c.helpers={};c.partials={};c.registerHelper=function(a,d,c){c&&(d.not=c);this.helpers[a]=d};c.registerPartial=function(a,d){this.partials[a]=d};c.registerHelper("helperMissing",function(a){if(2!==arguments.length)throw Error("Could not find property '"+a+"'");});var f=Object.prototype.toString;c.registerHelper("blockHelperMissing",function(a,d){var g=d.inverse||function(){},e=d.fn,p=f.call(a); +"[object Function]"===p&&(a=a.call(this));return!0===a?e(this):!1===a||null==a?g(this):"[object Array]"===p?0a.length&&(a+=this._input.substr(0, @@ -32,42 +53,46 @@ this,e[c],this.conditionStack[this.conditionStack.length-1]);this.done&&this._in d.yytext.substr(0,d.yyleng-4),this.popState(),15;case 4:return this.begin("par"),24;case 5:return 16;case 6:return 20;case 7:return 19;case 8:return 19;case 9:return 23;case 10:return 23;case 11:this.popState();this.begin("com");break;case 12:return d.yytext=d.yytext.substr(3,d.yyleng-5),this.popState(),15;case 13:return 22;case 14:return 36;case 15:return 35;case 16:return 35;case 17:return 39;case 19:return this.popState(),18;case 20:return this.popState(),18;case 21:return d.yytext=d.yytext.substr(1, d.yyleng-2).replace(/\\"/g,'"'),30;case 22:return d.yytext=d.yytext.substr(1,d.yyleng-2).replace(/\\'/g,"'"),30;case 23:return d.yytext=d.yytext.substr(1),28;case 24:return 32;case 25:return 32;case 26:return 31;case 27:return 35;case 28:return d.yytext=d.yytext.substr(1,d.yyleng-2),35;case 29:return"INVALID";case 31:return this.popState(),37;case 32:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/, /^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[} ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@[a-zA-Z]+)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:[0-9]+(?=[}\s]))/,/^(?:[a-zA-Z0-9_$-]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:\s+)/,/^(?:[a-zA-Z0-9_$-/]+)/,/^(?:$)/],conditions:{mu:{rules:[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18, -19,20,21,22,23,24,25,26,27,28,29,32],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[3],inclusive:!1},par:{rules:[30,31],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}}}};c.prototype=f;f.Parser=c;return new c}();Handlebars.Parser=handlebars;Handlebars.parse=function(c){Handlebars.Parser.yy=Handlebars.AST;return Handlebars.Parser.parse(c)};Handlebars.print=function(c){return(new Handlebars.PrintVisitor).accept(c)}; +19,20,21,22,23,24,25,26,27,28,29,32],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[3],inclusive:!1},par:{rules:[30,31],inclusive:!1},INITIAL:{rules:[0,1,32],inclusive:!0}}}};c.prototype=f;f.Parser=c;return new c}();Handlebars.Parser=handlebars;Handlebars.parse=function(c){if(c.constructor===Handlebars.AST.ProgramNode)return c;Handlebars.Parser.yy=Handlebars.AST;return Handlebars.Parser.parse(c)};Handlebars.print=function(c){return(new Handlebars.PrintVisitor).accept(c)}; (function(){Handlebars.AST={};Handlebars.AST.ProgramNode=function(c,f){this.type="program";this.statements=c;f&&(this.inverse=new Handlebars.AST.ProgramNode(f))};Handlebars.AST.MustacheNode=function(c,f,a){this.type="mustache";this.escaped=!a;this.hash=f;a=this.id=c[0];c=this.params=c.slice(1);this.isHelper=(this.eligibleHelper=a.isSimple)&&(c.length||f)};Handlebars.AST.PartialNode=function(c,f){this.type="partial";this.partialName=c;this.context=f};Handlebars.AST.BlockNode=function(c,f,a,d){var g= -c.id;if(g.original!==d.original)throw new Handlebars.Exception(g.original+" doesn't match "+d.original);this.type="block";this.mustache=c;this.program=f;if((this.inverse=a)&&!this.program)this.isInverse=!0};Handlebars.AST.ContentNode=function(c){this.type="content";this.string=c};Handlebars.AST.HashNode=function(c){this.type="hash";this.pairs=c};Handlebars.AST.IdNode=function(c){this.type="ID";this.original=c.join(".");for(var f=[],a=0,d=0,g=c.length;d":">",'"':""","'":"'","`":"`"},f=/[&<>"'`]/g,a=/[&<>"'`]/,d=function(a){return c[a]||"&"};Handlebars.Utils={escapeExpression:function(c){return c instanceof Handlebars.SafeString?c.toString():null==c||!1===c?"":!a.test(c)?c:c.replace(f,d)},isEmpty:function(a){return!a&&0!==a?!0:"[object Array]"===Object.prototype.toString.call(a)&&0===a.length?!0:!1}}})();Handlebars.Compiler=function(){};Handlebars.JavaScriptCompiler=function(){}; -(function(c,f){c.prototype={compiler:c,disassemble:function(){for(var b=this.opcodes,a,c=[],d,e,f=0,g=b.length;fc||this.addDepth(c-1);return a},block:function(b){var a=b.mustache,c=b.program;b=b.inverse;c&&(c=this.compileProgram(c));b&&(b=this.compileProgram(b));var d=this.classifyMustache(a);"helper"===d?this.helperMustache(a,c,b):"simple"===d?(this.simpleMustache(a),this.opcode("pushProgram",c),this.opcode("pushProgram",b),this.opcode("pushHash"),this.opcode("blockValue")):(this.ambiguousMustache(a, -c,b),this.opcode("pushProgram",c),this.opcode("pushProgram",b),this.opcode("pushHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(b){b=b.pairs;var a,c;this.opcode("pushHash");for(var d=0,e=b.length;dthis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return"stack"+this.stackSlot},popStack:function(){var b=this.compileStack.pop(); -if(b instanceof a)return b.value;this.stackSlot--;return b},topStack:function(){var b=this.compileStack[this.compileStack.length-1];return b instanceof a?b.value:b},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'},setupHelper:function(a,c){var d=[];this.setupParams(a,d);var e=this.nameLookup("helpers",c,"helper");return{params:d,name:e,callParams:["depth0"].concat(d).join(", "),helperMissingParams:["depth0",this.quotedString(c)].concat(d).join(", ")}}, -setupParams:function(a,c){var d=[],e=[],f=[],g,l;d.push("hash:"+this.popStack());g=this.popStack();if((l=this.popStack())||g)l||(this.context.aliases.self="this",l="self.noop"),g||(this.context.aliases.self="this",g="self.noop"),d.push("inverse:"+g),d.push("fn:"+l);for(l=0;lc||this.addDepth(c-1);return a},block:function(b){var a=b.mustache,c=b.program;b=b.inverse;c&&(c=this.compileProgram(c)); +b&&(b=this.compileProgram(b));var d=this.classifyMustache(a);"helper"===d?this.helperMustache(a,c,b):"simple"===d?(this.simpleMustache(a),this.opcode("pushProgram",c),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousMustache(a,c,b),this.opcode("pushProgram",c),this.opcode("pushProgram",b),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(b){b=b.pairs;var a,c;this.opcode("pushHash");for(var d=0,e=b.length;d< +e;d++)a=b[d],c=a[1],this.options.stringParams?this.opcode("pushStringParam",c.stringModeValue,c.type):this.accept(c),this.opcode("assignToHash",a[0]);this.opcode("popHash")},partial:function(b){var a=b.partialName;this.usePartial=!0;b.context?this.ID(b.context):this.opcode("push","depth0");this.opcode("invokePartial",a.name);this.opcode("append")},content:function(b){this.opcode("appendContent",b.string)},mustache:function(b){var a=this.options,c=this.classifyMustache(b);"simple"===c?this.simpleMustache(b): +"helper"===c?this.helperMustache(b):this.ambiguousMustache(b);b.escaped&&!a.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousMustache:function(b,a,c){b=b.id;var d=b.parts[0],e=null!=a||null!=c;this.opcode("getContext",b.depth);this.opcode("pushProgram",a);this.opcode("pushProgram",c);this.opcode("invokeAmbiguous",d,e)},simpleMustache:function(b){b=b.id;"DATA"===b.type?this.DATA(b):b.parts.length?this.ID(b):(this.addDepth(b.depth),this.opcode("getContext",b.depth),this.opcode("pushContext")); +this.opcode("resolvePossibleLambda")},helperMustache:function(b,a,c){a=this.setupFullMustacheParams(b,a,c);b=b.id.parts[0];if(this.options.knownHelpers[b])this.opcode("invokeKnownHelper",a.length,b);else{if(this.knownHelpersOnly)throw Error("You specified knownHelpersOnly, but used the unknown helper "+b);this.opcode("invokeHelper",a.length,b)}},ID:function(b){this.addDepth(b.depth);this.opcode("getContext",b.depth);b.parts[0]?this.opcode("lookupOnContext",b.parts[0]):this.opcode("pushContext");for(var a= +1,c=b.parts.length;athis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var b=this.inlineStack;if(b.length){this.inlineStack=[];for(var c=0,d=b.length;c",f}),b.sound=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='\n\n',d}c=c||a.helpers;var f,g="function",h=this.escapeExpression,i=this;return f=b.file,f=c["if"].call(b,f,{hash:{},inverse:i.noop,fn:i.program(1,j,e)}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function m(a,b){var d="",e,f;return d+="",f=c.name,f?e=f.call(a,{hash:{}}):(e=a.name,e=typeof e===i?e():e),d+=j(e)+": ",d}function n(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br, allowTags",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br, allowTags",{hash:{}}),j(d)}function o(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br",{hash:{}}),j(d)}c=c||a.helpers;var f="",g,h,i="function",j=this.escapeExpression,k=c.helperMissing,l=this;f+="",g=b.created,h=c.formatTime,g=h?h.call(b,g,{hash:{}}):k.call(b,"formatTime",g,{hash:{}}),f+=j(g)+"\n",g=b.name,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(1,m,e)});if(g||g===0)f+=g;f+="\n",g=b.allowFormatting,g=c["if"].call(b,g,{hash:{},inverse:l.program(5,o,e),fn:l.program(3,n,e)});if(g||g===0)f+=g;return f+="
",f})})(); \ No newline at end of file +(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.default_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h="function",i=this.escapeExpression;return f+="",(g=c.title)?g=g.call(b,{hash:{},data:e}):(g=b.title,g=typeof g===h?g.apply(b):g),f+=i(g)+"",f}),b.sound=a(function(a,b,c,d,e){function j(a,b){var d="",e;return d+='\n\n',d}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g="function",h=this.escapeExpression,i=this;return f=c["if"].call(b,b.file,{hash:{},inverse:i.noop,fn:i.program(1,j,e),data:e}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function n(a,b){var d="",e;return d+="",(e=c.name)?e=e.call(a,{hash:{},data:b}):(e=a.name,e=typeof e===j?e.apply(a):e),d+=k(e)+": ",d}function o(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",e):l.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",e)))}function p(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br",e):l.call(a,"apply",a.message,"urlReplace, nl2br",e)))}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j="function",k=this.escapeExpression,l=c.helperMissing,m=this;f+="",i={hash:{},data:e},f+=k((g=c.formatTime,g?g.call(b,b.created,i):l.call(b,"formatTime",b.created,i)))+"\n",h=c["if"].call(b,b.name,{hash:{},inverse:m.noop,fn:m.program(1,n,e),data:e});if(h||h===0)f+=h;f+="\n",h=c["if"].call(b,b.allowFormatting,{hash:{},inverse:m.program(5,p,e),fn:m.program(3,o,e),data:e});if(h||h===0)f+=h;return f+="
",f})})(); \ No newline at end of file diff --git a/src/messenger/webim/js/templates/compiled/users_app.tpl.js b/src/messenger/webim/js/templates/compiled/users_app.tpl.js index 32e98367..5334d86e 100644 --- a/src/messenger/webim/js/templates/compiled/users_app.tpl.js +++ b/src/messenger/webim/js/templates/compiled/users_app.tpl.js @@ -4,4 +4,4 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.agent=a(function(a,b,c,d,e){function m(a,b){return"away"}function n(a,b){return"online"}function o(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.away",{hash:{}}):i.call(a,"L10n","pending.status.away",{hash:{}}),j(d)}function p(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.online",{hash:{}}):i.call(a,"L10n","pending.status.online",{hash:{}}),j(d)}function q(a,b){return","}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k=this,l="function";f+='',h=c.name,h?g=h.call(b,{hash:{}}):(g=b.name,g=typeof g===l?g():g),f+=j(g),g=b.isLast,g=c.unless.call(b,g,{hash:{},inverse:k.noop,fn:k.program(9,q,e)});if(g||g===0)f+=g;return f}),b.no_threads=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h=c.L10n,g=h?h.call(b,"clients.no_clients",{hash:{}}):i.call(b,"L10n","clients.no_clients",{hash:{}}),f+=j(g)+"",f}),b.no_visitors=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h=c.L10n,g=h?h.call(b,"visitors.no_visitors",{hash:{}}):i.call(b,"L10n","visitors.no_visitors",{hash:{}}),f+=j(g)+"",f}),b.status_panel=a(function(a,b,c,d,e){function m(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.away",{hash:{}}):i.call(a,"L10n","pending.status.away",{hash:{}}),j(d)}function n(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.online",{hash:{}}):i.call(a,"L10n","pending.status.online",{hash:{}}),j(d)}function o(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.setonline",{hash:{}}):i.call(a,"L10n","pending.status.setonline",{hash:{}}),j(d)}function p(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.status.setaway",{hash:{}}):i.call(a,"L10n","pending.status.setaway",{hash:{}}),j(d)}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='
',h=c.message,h?g=h.call(b,{hash:{}}):(g=b.message,g=typeof g===k?g():g),f+=j(g),g=b.agent,g=g==null||g===!1?g:g.away,g=c["if"].call(b,g,{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e)});if(g||g===0)f+=g;f+='
",f}),b.threads_collection=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
',h=c.L10n,g=h?h.call(b,"pending.table.head.name",{hash:{}}):i.call(b,"L10n","pending.table.head.name",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.actions",{hash:{}}):i.call(b,"L10n","pending.table.head.actions",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.contactid",{hash:{}}):i.call(b,"L10n","pending.table.head.contactid",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.state",{hash:{}}):i.call(b,"L10n","pending.table.head.state",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.operator",{hash:{}}):i.call(b,"L10n","pending.table.head.operator",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.total",{hash:{}}):i.call(b,"L10n","pending.table.head.total",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.waittime",{hash:{}}):i.call(b,"L10n","pending.table.head.waittime",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"pending.table.head.etc",{hash:{}}):i.call(b,"L10n","pending.table.head.etc",{hash:{}}),f+=j(g)+'
',f}),b.visitors_collection=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
',h=c.L10n,g=h?h.call(b,"visitors.table.head.name",{hash:{}}):i.call(b,"L10n","visitors.table.head.name",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.actions",{hash:{}}):i.call(b,"L10n","visitors.table.head.actions",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.contactid",{hash:{}}):i.call(b,"L10n","visitors.table.head.contactid",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.firsttimeonsite",{hash:{}}):i.call(b,"L10n","visitors.table.head.firsttimeonsite",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.lasttimeonsite",{hash:{}}):i.call(b,"L10n","visitors.table.head.lasttimeonsite",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invited.by",{hash:{}}):i.call(b,"L10n","visitors.table.head.invited.by",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invitationtime",{hash:{}}):i.call(b,"L10n","visitors.table.head.invitationtime",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.invitations",{hash:{}}):i.call(b,"L10n","visitors.table.head.invitations",{hash:{}}),f+=j(g)+"",h=c.L10n,g=h?h.call(b,"visitors.table.head.etc",{hash:{}}):i.call(b,"L10n","visitors.table.head.etc",{hash:{}}),f+=j(g)+'
',f}),b.visitor=a(function(a,b,c,d,e){function m(a,b){var d="",e,f;return d+='',f=c.userName,f?e=f.call(a,{hash:{}}):(e=a.userName,e=typeof e===k?e():e),d+=j(e)+"",d}function n(a,b){var d,e;return e=c.userName,e?d=e.call(a,{hash:{}}):(d=a.userName,d=typeof d===k?d():d),j(d)}function o(a,b){var d="",e,f;return d+='',f=c.remote,f?e=f.call(a,{hash:{}}):(e=a.remote,e=typeof e===k?e():e),d+=j(e)+"",d}function p(a,b){var d,e;return e=c.remote,e?d=e.call(a,{hash:{}}):(d=a.remote,d=typeof d===k?d():d),j(d)}function q(a,b){var c;return c=a.invitationInfo,c=c==null||c===!1?c:c.agentName,c=typeof c===k?c():c,j(c)}function r(a,b){return"-"}function s(a,b){var c="",d;return c+='',c}function t(a,b){return"-"}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='\n ',g=b.invitationInfo,g=c.unless.call(b,g,{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e)});if(g||g===0)f+=g;f+='\n\n\n
\n
\n
\n
\n\n',g=b.userIp,g=c["if"].call(b,g,{hash:{},inverse:l.program(7,p,e),fn:l.program(5,o,e)});if(g||g===0)f+=g;f+='\n\n\n',g=b.invitationInfo,g=c["if"].call(b,g,{hash:{},inverse:l.program(11,r,e),fn:l.program(9,q,e)});if(g||g===0)f+=g;f+='\n',g=b.invitationInfo,g=c["if"].call(b,g,{hash:{},inverse:l.program(15,t,e),fn:l.program(13,s,e)});if(g||g===0)f+=g;return f+='\n',h=c.invitations,h?g=h.call(b,{hash:{}}):(g=b.invitations,g=typeof g===k?g():g),f+=j(g)+" / ",h=c.chats,h?g=h.call(b,{hash:{}}):(g=b.chats,g=typeof g===k?g():g),f+=j(g)+'\n',h=c.userAgent,h?g=h.call(b,{hash:{}}):(g=b.userAgent,g=typeof g===k?g():g),f+=j(g)+"",f}),b.queued_thread=a(function(a,b,c,d,e){function m(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.table.speak",{hash:{}}):i.call(a,"L10n","pending.table.speak",{hash:{}}),j(d)}function n(a,b){var d,e;return e=c.L10n,d=e?e.call(a,"pending.table.view",{hash:{}}):i.call(a,"L10n","pending.table.view",{hash:{}}),j(d)}function o(a,b){var d="",e,f;return f=c.L10n,e=f?f.call(a,"chat.client.spam.prefix",{hash:{}}):i.call(a,"L10n","chat.client.spam.prefix",{hash:{}}),d+=j(e)+" ",d}function p(a,b){var d="",e,f;return d+='",d}function q(a,b){var d="",e,f;return d+='\n
\n ',d}function r(a,b){var d="",e,f;return d+='\n
\n ',d}function s(a,b){var d="",e,f;return d+='\n
\n ',d}function t(a,b){var d="",e,f;return d+='\n
\n ',d}function u(a,b){var d="",e,f;return d+='',f=c.remote,f?e=f.call(a,{hash:{}}):(e=a.remote,e=typeof e===k?e():e),d+=j(e)+"",d}function v(a,b){var d,e;return e=c.remote,e?d=e.call(a,{hash:{}}):(d=a.remote,d=typeof d===k?d():d),j(d)}function w(a,b){var d="",e,f;return d+='',d}function x(a,b){return"-"}function y(a,b){var c;return c=a.ban,c=c==null||c===!1?c:c.reason,c=typeof c===k?c():c,j(c)}function z(a,b){var d,e;return e=c.userAgent,e?d=e.call(a,{hash:{}}):(d=a.userAgent,d=typeof d===k?d():d),j(d)}c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='\n \n ",g=b.firstMessage,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(7,p,e)});if(g||g===0)f+=g;f+='\n\n\n
\n ',g=b.canOpen,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(9,q,e)});if(g||g===0)f+=g;f+="\n ",g=b.canView,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(11,r,e)});if(g||g===0)f+=g;f+="\n ",g=b.tracked,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(13,s,e)});if(g||g===0)f+=g;f+="\n ",g=b.canBan,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(15,t,e)});if(g||g===0)f+=g;f+='\n
\n
\n\n',g=b.userIp,g=c["if"].call(b,g,{hash:{},inverse:l.program(19,v,e),fn:l.program(17,u,e)});if(g||g===0)f+=g;f+='\n',h=c.stateDesc,h?g=h.call(b,{hash:{}}):(g=b.stateDesc,g=typeof g===k?g():g),f+=j(g)+'\n',h=c.agentName,h?g=h.call(b,{hash:{}}):(g=b.agentName,g=typeof g===k?g():g),f+=j(g)+'\n\n',g=b.chatting,g=c.unless.call(b,g,{hash:{},inverse:l.program(23,x,e),fn:l.program(21,w,e)});if(g||g===0)f+=g;f+='\n',g=b.ban,g=c["if"].call(b,g,{hash:{},inverse:l.program(27,z,e),fn:l.program(25,y,e)});if(g||g===0)f+=g;return f+="",f})})(); \ No newline at end of file +(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.agent=a(function(a,b,c,d,e){function l(a,b){return"away"}function m(a,b){return"online"}function n(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.status.away",e):h.call(a,"L10n","pending.status.away",e)))}function o(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.status.online",e):h.call(a,"L10n","pending.status.online",e)))}function p(a,b){return","}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h=c.helperMissing,i=this.escapeExpression,j=this,k="function";f+='',(g=c.name)?g=g.call(b,{hash:{},data:e}):(g=b.name,g=typeof g===k?g.apply(b):g),f+=i(g),g=c.unless.call(b,b.isLast,{hash:{},inverse:j.noop,fn:j.program(9,p,e),data:e});if(g||g===0)f+=g;return f}),b.no_threads=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"clients.no_clients",h):i.call(b,"L10n","clients.no_clients",h)))+"",f}),b.no_visitors=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.no_visitors",h):i.call(b,"L10n","visitors.no_visitors",h)))+"",f}),b.status_panel=a(function(a,b,c,d,e){function m(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.away",e):i.call(a,"L10n","pending.status.away",e)))}function n(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.online",e):i.call(a,"L10n","pending.status.online",e)))}function o(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.setonline",e):i.call(a,"L10n","pending.status.setonline",e)))}function p(a,b){var d,e;return e={hash:{},data:b},j((d=c.L10n,d?d.call(a,"pending.status.setaway",e):i.call(a,"L10n","pending.status.setaway",e)))}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression,k="function",l=this;f+='
',(g=c.message)?g=g.call(b,{hash:{},data:e}):(g=b.message,g=typeof g===k?g.apply(b):g),f+=j(g),h=c["if"].call(b,(g=b.agent,g==null||g===!1?g:g.away),{hash:{},inverse:l.program(3,n,e),fn:l.program(1,m,e),data:e});if(h||h===0)f+=h;f+='
",f}),b.threads_collection=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.name",h):i.call(b,"L10n","pending.table.head.name",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.actions",h):i.call(b,"L10n","pending.table.head.actions",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.contactid",h):i.call(b,"L10n","pending.table.head.contactid",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.state",h):i.call(b,"L10n","pending.table.head.state",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.operator",h):i.call(b,"L10n","pending.table.head.operator",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.total",h):i.call(b,"L10n","pending.table.head.total",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.waittime",h):i.call(b,"L10n","pending.table.head.waittime",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"pending.table.head.etc",h):i.call(b,"L10n","pending.table.head.etc",h)))+'
',f}),b.visitors_collection=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
',h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.name",h):i.call(b,"L10n","visitors.table.head.name",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.actions",h):i.call(b,"L10n","visitors.table.head.actions",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.contactid",h):i.call(b,"L10n","visitors.table.head.contactid",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.firsttimeonsite",h):i.call(b,"L10n","visitors.table.head.firsttimeonsite",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.lasttimeonsite",h):i.call(b,"L10n","visitors.table.head.lasttimeonsite",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invited.by",h):i.call(b,"L10n","visitors.table.head.invited.by",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invitationtime",h):i.call(b,"L10n","visitors.table.head.invitationtime",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.invitations",h):i.call(b,"L10n","visitors.table.head.invitations",h)))+"",h={hash:{},data:e},f+=j((g=c.L10n,g?g.call(b,"visitors.table.head.etc",h):i.call(b,"L10n","visitors.table.head.etc",h)))+'
',f}),b.visitor=a(function(a,b,c,d,e){function n(a,b){var d="",e,f,g;return d+='',(f=c.userName)?f=f.call(a,{hash:{},data:b}):(f=a.userName,f=typeof f===l?f.apply(a):f),d+=k(f)+"",d}function o(a,b){var d;return(d=c.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d=typeof d===l?d.apply(a):d),k(d)}function p(a,b){var d="",e;return d+='',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===l?e.apply(a):e),d+=k(e)+"",d}function q(a,b){var d;return(d=c.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d=typeof d===l?d.apply(a):d),k(d)}function r(a,b){var c;return k((c=(c=a.invitationInfo,c==null||c===!1?c:c.agentName),typeof c===l?c.apply(a):c))}function s(a,b){return"-"}function t(a,b){var c="",d;return c+='',c}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j=c.helperMissing,k=this.escapeExpression,l="function",m=this;f+='\n ',g=c.unless.call(b,b.invitationInfo,{hash:{},inverse:m.program(3,o,e),fn:m.program(1,n,e),data:e});if(g||g===0)f+=g;f+='\n\n\n
\n
\n
\n
\n\n',h=c["if"].call(b,b.userIp,{hash:{},inverse:m.program(7,q,e),fn:m.program(5,p,e),data:e});if(h||h===0)f+=h;f+='\n\n\n',h=c["if"].call(b,b.invitationInfo,{hash:{},inverse:m.program(11,s,e),fn:m.program(9,r,e),data:e});if(h||h===0)f+=h;f+='\n',h=c["if"].call(b,b.invitationInfo,{hash:{},inverse:m.program(11,s,e),fn:m.program(13,t,e),data:e});if(h||h===0)f+=h;return f+='\n',(h=c.invitations)?h=h.call(b,{hash:{},data:e}):(h=b.invitations,h=typeof h===l?h.apply(b):h),f+=k(h)+" / ",(h=c.chats)?h=h.call(b,{hash:{},data:e}):(h=b.chats,h=typeof h===l?h.apply(b):h),f+=k(h)+'\n',(h=c.userAgent)?h=h.call(b,{hash:{},data:e}):(h=b.userAgent,h=typeof h===l?h.apply(b):h),f+=k(h)+"",f}),b.queued_thread=a(function(a,b,c,d,e){function l(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.table.speak",e):h.call(a,"L10n","pending.table.speak",e)))}function m(a,b){var d,e;return e={hash:{},data:b},i((d=c.L10n,d?d.call(a,"pending.table.view",e):h.call(a,"L10n","pending.table.view",e)))}function n(a,b){var d="",e,f;return f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"chat.client.spam.prefix",f):h.call(a,"L10n","chat.client.spam.prefix",f)))+" ",d}function o(a,b){var d="",e;return d+='",d}function p(a,b){var d="",e,f;return d+='\n
\n ',d}function q(a,b){var d="",e,f;return d+='\n
\n ',d}function r(a,b){var d="",e,f;return d+='\n
\n ',d}function s(a,b){var d="",e,f;return d+='\n
\n ',d}function t(a,b){var d="",e;return d+='',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===j?e.apply(a):e),d+=i(e)+"",d}function u(a,b){var d;return(d=c.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d=typeof d===j?d.apply(a):d),i(d)}function v(a,b){var d="",e;return d+='',d}function w(a,b){return"-"}function x(a,b){var c;return i((c=(c=a.ban,c==null||c===!1?c:c.reason),typeof c===j?c.apply(a):c))}function y(a,b){var d;return(d=c.userAgent)?d=d.call(a,{hash:{},data:b}):(d=a.userAgent,d=typeof d===j?d.apply(a):d),i(d)}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h=c.helperMissing,i=this.escapeExpression,j="function",k=this;f+='\n \n ",g=c["if"].call(b,b.firstMessage,{hash:{},inverse:k.noop,fn:k.program(7,o,e),data:e});if(g||g===0)f+=g;f+='\n\n\n
\n ',g=c["if"].call(b,b.canOpen,{hash:{},inverse:k.noop,fn:k.program(9,p,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.canView,{hash:{},inverse:k.noop,fn:k.program(11,q,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.tracked,{hash:{},inverse:k.noop,fn:k.program(13,r,e),data:e});if(g||g===0)f+=g;f+="\n ",g=c["if"].call(b,b.canBan,{hash:{},inverse:k.noop,fn:k.program(15,s,e),data:e});if(g||g===0)f+=g;f+='\n
\n
\n\n',g=c["if"].call(b,b.userIp,{hash:{},inverse:k.program(19,u,e),fn:k.program(17,t,e),data:e});if(g||g===0)f+=g;f+='\n',(g=c.stateDesc)?g=g.call(b,{hash:{},data:e}):(g=b.stateDesc,g=typeof g===j?g.apply(b):g),f+=i(g)+'\n',(g=c.agentName)?g=g.call(b,{hash:{},data:e}):(g=b.agentName,g=typeof g===j?g.apply(b):g),f+=i(g)+'\n\n',g=c.unless.call(b,b.chatting,{hash:{},inverse:k.program(23,w,e),fn:k.program(21,v,e),data:e});if(g||g===0)f+=g;f+='\n',g=c["if"].call(b,b.ban,{hash:{},inverse:k.program(27,y,e),fn:k.program(25,x,e),data:e});if(g||g===0)f+=g;return f+="",f})})(); \ No newline at end of file diff --git a/src/messenger/webim/styles/dialogs/default/js/compiled/templates.js b/src/messenger/webim/styles/dialogs/default/js/compiled/templates.js index a1246b4b..76530cf5 100644 --- a/src/messenger/webim/styles/dialogs/default/js/compiled/templates.js +++ b/src/messenger/webim/styles/dialogs/default/js/compiled/templates.js @@ -4,4 +4,4 @@ Copyright (c) 2005-2011 Mibew Messenger Community License: http://mibew.org/license.php */ -(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.user_name_control=a(function(a,b,c,d,e){function k(a,b){var d="",e,f;d+='\n ',f=c.L10n,e=f?f.call(a,"chat.client.name",{hash:{}}):i.call(a,"L10n","chat.client.name",{hash:{}}),d+=h(e)+"\n ",e=a.nameInput,e=c["if"].call(a,e,{hash:{},inverse:j.program(4,m,b),fn:j.program(2,l,b)});if(e||e===0)d+=e;return d+="\n",d}function l(a,b){var d="",e,f;return d+='\n
\n \n ',d}function m(a,b){var d="",e,f;return d+='\n ',e=a.user,e=e==null||e===!1?e:e.name,e=typeof e===g?e():e,d+=h(e)+'\n \n ',d}function n(a,b){var d="",e,f;return d+="\n",f=c.L10n,e=f?f.call(a,"chat.client.name",{hash:{}}):i.call(a,"L10n","chat.client.name",{hash:{}}),d+=h(e)+" ",e=a.user,e=e==null||e===!1?e:e.name,e=typeof e===g?e():e,d+=h(e)+"\n",d}c=c||a.helpers;var f,g="function",h=this.escapeExpression,i=c.helperMissing,j=this;return f=b.user,f=f==null||f===!1?f:f.canChangeName,f=c["if"].call(b,f,{hash:{},inverse:j.program(6,n,e),fn:j.program(1,k,e)}),f||f===0?f:""}),b.status_typing=a(function(a,b,c,d,e){c=c||a.helpers;var f,g,h=c.helperMissing,i=this.escapeExpression;return g=c.L10n,f=g?g.call(b,"typing.remote",{hash:{}}):h.call(b,"L10n","typing.remote",{hash:{}}),i(f)}),b.chat_layout=a(function(a,b,c,d,e){function l(a,b){return'\n
\n '}c=c||a.helpers;var f="",g,h,i=this,j=c.helperMissing,k=this.escapeExpression;f+='\n
\n
\n ',f+='\n
\n
\n
\n\n',f+='\n
\n
\n ',g=b.user,g=c["if"].call(b,g,{hash:{},inverse:i.noop,fn:i.program(1,l,e)});if(g||g===0)f+=g;return f+="\n ",f+='\n
\n ',f+='\n
\n
\n
\n\n',f+='\n
\n\n',f+='\n\n\n',f+='\n
',f}),b.avatar=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='',d}function k(a,b){return'
'}c=c||a.helpers;var f,g="function",h=this.escapeExpression,i=this;return f=b.imageLink,f=c["if"].call(b,f,{hash:{},inverse:i.program(3,k,e),fn:i.program(1,j,e)}),f||f===0?f:""}),b.close_control=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.history_control=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.status_message=a(function(a,b,c,d,e){c=c||a.helpers;var f,g,h="function",i=this.escapeExpression;return g=c.message,g?f=g.call(b,{hash:{}}):(f=b.message,f=typeof f===h?f():f),i(f)}),b.secure_mode_control=a(function(a,b,c,d,e){return c=c||a.helpers,'
'}),b.sound_control=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='\n
\n',d}function k(a,b){var d="",e,f;return d+='\n
\n',d}c=c||a.helpers;var f,g=c.helperMissing,h=this.escapeExpression,i=this;return f=b.enabled,f=c["if"].call(b,f,{hash:{},inverse:i.program(3,k,e),fn:i.program(1,j,e)}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function m(a,b){var d="",e,f;return d+="",f=c.name,f?e=f.call(a,{hash:{}}):(e=a.name,e=typeof e===i?e():e),d+=j(e)+": ",d}function n(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br, allowTags",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br, allowTags",{hash:{}}),j(d)}function o(a,b){var d,e;return d=a.message,e=c.apply,d=e?e.call(a,d,"urlReplace, nl2br",{hash:{}}):k.call(a,"apply",d,"urlReplace, nl2br",{hash:{}}),j(d)}c=c||a.helpers;var f="",g,h,i="function",j=this.escapeExpression,k=c.helperMissing,l=this;f+="",g=b.created,h=c.formatTime,g=h?h.call(b,g,{hash:{}}):k.call(b,"formatTime",g,{hash:{}}),f+=j(g)+" \n",g=b.name,g=c["if"].call(b,g,{hash:{},inverse:l.noop,fn:l.program(1,m,e)});if(g||g===0)f+=g;f+="\n",g=b.allowFormatting,g=c["if"].call(b,g,{hash:{},inverse:l.program(5,o,e),fn:l.program(3,n,e)});if(g||g===0)f+=g;return f+="
",f}),b.message_form=a(function(a,b,c,d,e){function l(a,b){return'\n
\n \n
\n'}function m(a,b){var d="",e,f;d+='\n
\n
\n ',e=a.user,e=e==null||e===!1?e:e.isAgent,e=c["if"].call(a,e,{hash:{},inverse:k.noop,fn:k.program(4,n,b)});if(e||e===0)d+=e;return d+='\n
\n ',f=c.L10n,e=f?f.call(a,"chat.window.send_message_short_and_shortcut",{hash:{}}):j.call(a,"L10n","chat.window.send_message_short_and_shortcut",{hash:{}}),d+=i(e)+"\n
\n",d}function n(a,b){var d="",e,f;d+='\n \n ",d}function o(a,b){var c="",d;return c+="\n \n ",c}c=c||a.helpers;var f="",g,h="function",i=this.escapeExpression,j=c.helperMissing,k=this;f+='
\n',g=b.user,g=g==null||g===!1?g:g.canPost,g=c["if"].call(b,g,{hash:{},inverse:k.noop,fn:k.program(1,l,e)});if(g||g===0)f+=g;f+='\n
\n\n
\n',g=b.user,g=g==null||g===!1?g:g.canPost,g=c["if"].call(b,g,{hash:{},inverse:k.noop,fn:k.program(3,m,e)});if(g||g===0)f+=g;return f+='\n
\n
',f}),b.send_mail_control=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.refresh_control=a(function(a,b,c,d,e){c=c||a.helpers;var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.redirect_control=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='\n
\n',d}c=c||a.helpers;var f,g=c.helperMissing,h=this.escapeExpression,i=this;return f=b.user,f=f==null||f===!1?f:f.canPost,f=c["if"].call(b,f,{hash:{},inverse:i.noop,fn:i.program(1,j,e)}),f||f===0?f:""}),b.status=a(function(a,b,c,d,e){c=c||a.helpers;var f,g,h="function",i=this.escapeExpression;return g=c.title,g?f=g.call(b,{hash:{}}):(f=b.title,f=typeof f===h?f():f),i(f)})})() \ No newline at end of file +(function(){var a=Handlebars.template,b=Handlebars.templates=Handlebars.templates||{};b.user_name_control=a(function(a,b,c,d,e){function l(a,b){var d="",e,f,g;d+='\n ',g={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"chat.client.name",g):j.call(a,"L10n","chat.client.name",g)))+"\n ",f=c["if"].call(a,a.nameInput,{hash:{},inverse:k.program(4,n,b),fn:k.program(2,m,b),data:b});if(f||f===0)d+=f;return d+="\n",d}function m(a,b){var d="",e,f;return d+='\n
\n \n ',d}function n(a,b){var d="",e,f;return d+='\n '+i((e=(e=a.user,e==null||e===!1?e:e.name),typeof e===h?e.apply(a):e))+'\n \n ',d}function o(a,b){var d="",e,f;return d+="\n",f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"chat.client.name",f):j.call(a,"L10n","chat.client.name",f)))+" "+i((e=(e=a.user,e==null||e===!1?e:e.name),typeof e===h?e.apply(a):e))+"\n",d}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g,h="function",i=this.escapeExpression,j=c.helperMissing,k=this;return g=c["if"].call(b,(f=b.user,f==null||f===!1?f:f.canChangeName),{hash:{},inverse:k.program(6,o,e),fn:k.program(1,l,e),data:e}),g||g===0?g:""}),b.status_typing=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g,h=c.helperMissing,i=this.escapeExpression;return g={hash:{},data:e},i((f=c.L10n,f?f.call(b,"typing.remote",g):h.call(b,"L10n","typing.remote",g)))}),b.chat_layout=a(function(a,b,c,d,e){function l(a,b){return'\n
\n '}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=this,j=c.helperMissing,k=this.escapeExpression;f+='\n
\n
\n \n
\n
\n
\n\n\n
\n
\n ',g=c["if"].call(b,b.user,{hash:{},inverse:i.noop,fn:i.program(1,l,e),data:e});if(g||g===0)f+=g;return f+='\n \n
\n \n
\n
\n
\n\n\n
\n\n\n\n\n'+'\n
',f}),b.avatar=a(function(a,b,c,d,e){function j(a,b){var d="",e;return d+='',d}function k(a,b){return'
'}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g="function",h=this.escapeExpression,i=this;return f=c["if"].call(b,b.imageLink,{hash:{},inverse:i.program(3,k,e),fn:i.program(1,j,e),data:e}),f||f===0?f:""}),b.close_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.history_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.status_message=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g="function",h=this.escapeExpression;return(f=c.message)?f=f.call(b,{hash:{},data:e}):(f=b.message,f=typeof f===g?f.apply(b):f),h(f)}),b.secure_mode_control=a(function(a,b,c,d,e){return this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{},'
'}),b.sound_control=a(function(a,b,c,d,e){function j(a,b){var d="",e,f;return d+='\n
\n',d}function k(a,b){var d="",e,f;return d+='\n
\n',d}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g=c.helperMissing,h=this.escapeExpression,i=this;return f=c["if"].call(b,b.enabled,{hash:{},inverse:i.program(3,k,e),fn:i.program(1,j,e),data:e}),f||f===0?f:""}),b.message=a(function(a,b,c,d,e){function n(a,b){var d="",e;return d+="",(e=c.name)?e=e.call(a,{hash:{},data:b}):(e=a.name,e=typeof e===j?e.apply(a):e),d+=k(e)+": ",d}function o(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",e):l.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",e)))}function p(a,b){var d,e;return e={hash:{},data:b},k((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br",e):l.call(a,"apply",a.message,"urlReplace, nl2br",e)))}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j="function",k=this.escapeExpression,l=c.helperMissing,m=this;f+="",i={hash:{},data:e},f+=k((g=c.formatTime,g?g.call(b,b.created,i):l.call(b,"formatTime",b.created,i)))+" \n",h=c["if"].call(b,b.name,{hash:{},inverse:m.noop,fn:m.program(1,n,e),data:e});if(h||h===0)f+=h;f+="\n",h=c["if"].call(b,b.allowFormatting,{hash:{},inverse:m.program(5,p,e),fn:m.program(3,o,e),data:e});if(h||h===0)f+=h;return f+="
",f}),b.message_form=a(function(a,b,c,d,e){function m(a,b){return'\n
\n \n
\n'}function n(a,b){var d="",e,f,g;d+='\n
\n
\n ',f=c["if"].call(a,(e=a.user,e==null||e===!1?e:e.isAgent),{hash:{},inverse:l.noop,fn:l.program(4,o,b),data:b});if(f||f===0)d+=f;return d+='\n
\n ',g={hash:{},data:b},d+=j((e=c.L10n,e?e.call(a,"chat.window.send_message_short_and_shortcut",g):k.call(a,"L10n","chat.window.send_message_short_and_shortcut",g)))+"\n
\n",d}function o(a,b){var d="",e,f,g;d+='\n \n ",d}function p(a,b){var c="",d;return c+="\n \n ",c}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i="function",j=this.escapeExpression,k=c.helperMissing,l=this;f+='
\n',h=c["if"].call(b,(g=b.user,g==null||g===!1?g:g.canPost),{hash:{},inverse:l.noop,fn:l.program(1,m,e),data:e});if(h||h===0)f+=h;f+='\n
\n\n
\n',h=c["if"].call(b,(g=b.user,g==null||g===!1?g:g.canPost),{hash:{},inverse:l.noop,fn:l.program(3,n,e),data:e});if(h||h===0)f+=h;return f+='\n
\n
',f}),b.send_mail_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.refresh_control=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i=c.helperMissing,j=this.escapeExpression;return f+='
',f}),b.redirect_control=a(function(a,b,c,d,e){function k(a,b){var d="",e,f;return d+='\n
\n',d}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g,h=c.helperMissing,i=this.escapeExpression,j=this;return g=c["if"].call(b,(f=b.user,f==null||f===!1?f:f.canPost),{hash:{},inverse:j.noop,fn:j.program(1,k,e),data:e}),g||g===0?g:""}),b.status=a(function(a,b,c,d,e){this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f,g="function",h=this.escapeExpression;return(f=c.title)?f=f.call(b,{hash:{},data:e}):(f=b.title,f=typeof f===g?f.apply(b):f),h(f)})})() \ No newline at end of file