From ba7eb96e8af23edd820aa47053195201868037bb Mon Sep 17 00:00:00 2001 From: Dmitriy Simushev Date: Mon, 25 Feb 2013 10:27:40 +0000 Subject: [PATCH] Update build system in templates compilation. Use closure compiler instead of handlebars built in minifier and recompile all templates. --- src/messenger/build.xml | 75 +++++++++++++++---- .../webim/js/compiled/default_app.js | 7 +- src/messenger/webim/js/compiled/users_app.js | 30 +++++++- .../js/templates/compiled/default_app.tpl.js | 6 +- .../js/templates/compiled/users_app.tpl.js | 29 ++++++- .../dialogs/default/js/compiled/templates.js | 21 +++++- 6 files changed, 148 insertions(+), 20 deletions(-) diff --git a/src/messenger/build.xml b/src/messenger/build.xml index 846915b9..358055c4 100644 --- a/src/messenger/build.xml +++ b/src/messenger/build.xml @@ -33,7 +33,6 @@ - @@ -42,13 +41,32 @@ - + + + + + + + + + + + + + + + - + - + @@ -59,6 +77,13 @@ + + + + + + + Done @@ -326,9 +351,8 @@ Compile Handlebars templates of the Core - + - @@ -339,7 +363,6 @@ - @@ -348,20 +371,35 @@ - + + + + + + + + + + + + + + + - + - + - + - - @@ -371,6 +409,13 @@ + + + + + + + Done diff --git a/src/messenger/webim/js/compiled/default_app.js b/src/messenger/webim/js/compiled/default_app.js index b8e942f1..dcb5e042 100644 --- a/src/messenger/webim/js/compiled/default_app.js +++ b/src/messenger/webim/js/compiled/default_app.js @@ -4,7 +4,12 @@ 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){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})})();/* +(function(){var h=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.default_control=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};l=this.escapeExpression;a="";(c=c.title)?c=c.call(b,{hash:{},data:g}):(c=b.title,c="function"===typeof c?c.apply(b):c);return a+=l(c)+""});m.sound=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};var d=this.escapeExpression;return(a=c["if"].call(b,b.file,{hash:{}, +inverse:this.noop,fn:this.program(1,function(a,b){var k,f;k='\n\n'},g),data:g}))||0===a?a:""});m.message=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};var d,j=this.escapeExpression, +h=c.helperMissing;a={hash:{},data:g};a=""+(j((d=c.formatTime,d?d.call(b,b.created,a):h.call(b,"formatTime",b.created,a)))+"\n");if((d=c["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,f){var b,e;b="";(e=c.name)?e=e.call(a,{hash:{},data:f}):(e=a.name,e="function"===typeof e?e.apply(a):e);return b+=j(e)+": "},g),data:g}))||0===d)a+= +d;a+="\n";if((d=c["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var d,e;e={hash:{},data:b};return j((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br",e):h.call(a,"apply",a.message,"urlReplace, nl2br",e)))},g),fn:this.program(3,function(a,b){var d,e;e={hash:{},data:b};return j((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",e):h.call(a, +"apply",a.message,"urlReplace, nl2br, allowTags",e)))},g),data:g}))||0===d)a+=d;return a+="
"})})(); +/* 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 9a292288..4b6bcec8 100644 --- a/src/messenger/webim/js/compiled/users_app.js +++ b/src/messenger/webim/js/compiled/users_app.js @@ -4,7 +4,35 @@ 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 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})})();/* +(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.agent=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f=e.helperMissing,g=this.escapeExpression;b='';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=g(a);if((a=e.unless.call(c,c.isLast,{hash:{},inverse:this.noop,fn:this.program(9, +function(){return","},d),data:d}))||0===a)b+=a;return b});l.no_threads=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c=''+(a((f=e.L10n,f?f.call(c,"clients.no_clients",d):b.call(c,"L10n","clients.no_clients",d)))+"")});l.no_visitors=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression; +d={hash:{},data:d};return c=''+(a((f=e.L10n,f?f.call(c,"visitors.no_visitors",d):b.call(c,"L10n","visitors.no_visitors",d)))+"")});l.status_panel=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;b='
';(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a="function"===typeof a?a.apply(c):a);b+=h(a);if((f=e["if"].call(c,(a=c.agent,null==a||!1===a?a:a.away), +{hash:{},inverse:this.program(3,function(a,b){var c,d;d={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.online",d):g.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,b){var c,d;d={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.away",d):g.call(a,"L10n","pending.status.away",d)))},d),data:d}))||0===f)b+=f;b+='
"});l.threads_collection=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{}; +var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d};b='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
'+(h((f=e.L10n,f?f.call(c,"pending.table.head.name",a):g.call(c,"L10n","pending.table.head.name",a)))+"");a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.actions",a):g.call(c,"L10n","pending.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.contactid",a):g.call(c,"L10n", +"pending.table.head.contactid",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.state",a):g.call(c,"L10n","pending.table.head.state",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.operator",a):g.call(c,"L10n","pending.table.head.operator",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.total",a):g.call(c,"L10n","pending.table.head.total",a)))+"";a={hash:{},data:d}; +b+=h((f=e.L10n,f?f.call(c,"pending.table.head.waittime",a):g.call(c,"L10n","pending.table.head.waittime",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n,f?f.call(c,"pending.table.head.etc",a):g.call(c,"L10n","pending.table.head.etc",a)))+'
'});l.visitors_collection=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d}; +b='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
'+(h((f=e.L10n,f?f.call(c,"visitors.table.head.name",a):g.call(c,"L10n","visitors.table.head.name",a)))+"");a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.actions",a):g.call(c,"L10n","visitors.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.contactid",a):g.call(c,"L10n","visitors.table.head.contactid",a)))+""; +a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):g.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):g.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.invited.by",a):g.call(c,"L10n","visitors.table.head.invited.by",a)))+"";a={hash:{},data:d};b+=h((f= +e.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):g.call(c,"L10n","visitors.table.head.invitationtime",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.invitations",a):g.call(c,"L10n","visitors.table.head.invitations",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.etc",a):g.call(c,"L10n","visitors.table.head.etc",a)))+'
'});l.visitor= +k(function(b,c,e,a,d){function f(){return"-"}this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var g,h=e.helperMissing,j=this.escapeExpression;b='\n ';if((a=e.unless.call(c,c.invitationInfo,{hash:{},inverse:this.program(3,function(a,b){var c;(c=e.userName)?c=c.call(a,{hash:{},data:b}):(c=a.userName,c="function"===typeof c?c.apply(a):c);return j(c)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=j(d)+""},d),data:d}))||0===a)b+=a;g={hash:{},data:d};b=b+'\n\n\n
\n
\n
\n
\n\n');if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(7,function(a,b){var c;(c=e.remote)?c=c.call(a,{hash:{},data:b}):(c=a.remote,c="function"===typeof c?c.apply(a):c);return j(c)},d),fn:this.program(5,function(a,c){var b,d;b='';(d=e.remote)?d=d.call(a,{hash:{},data:c}):(d=a.remote,d="function"===typeof d?d.apply(a): +d);return b+=j(d)+""},d),data:d}))||0===a)b+=a;b+='\n\n\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11, +f,d),fn:this.program(9,function(a){var c;return j((c=(c=a.invitationInfo,null==c||!1===c?c:c.agentName),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var c;return a=""+('')},d),data:d}))||0===a)b+=a;b+='\n'; +(a=e.invitations)?a=a.call(c,{hash:{},data:d}):(a=c.invitations,a="function"===typeof a?a.apply(c):a);b+=j(a)+" / ";(a=e.chats)?a=a.call(c,{hash:{},data:d}):(a=c.chats,a="function"===typeof a?a.apply(c):a);b+=j(a)+'\n';(a=e.userAgent)?a=a.call(c,{hash:{},data:d}):(a=c.userAgent,a="function"===typeof a?a.apply(c):a);return b+=j(a)+""});l.queued_thread=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f=e.helperMissing,g=this.escapeExpression; +b='\n
';if((a= +e["if"].call(c,c.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,d;b={hash:{},data:c};return b=""+(g((d=e.L10n,d?d.call(a,"chat.client.spam.prefix",b):f.call(a,"L10n","chat.client.spam.prefix",b)))+" ")},d),data:d}))||0===a)b+=a;(a=e.userName)?a=a.call(c,{hash:{},data:d}):(a=c.userName,a="function"===typeof a?a.apply(c):a);b+=g(a)+"
\n ";if((a=e["if"].call(c,c.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,c){var b,d;b='
';(d=e.firstMessagePreview)?d=d.call(a,{hash:{},data:c}):(d=a.firstMessagePreview,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"
"},d),data:d}))||0===a)b+=a;b+='\n\n\n
\n ';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,d;b={hash:{},data:c}; +return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.canBan,{hash:{},inverse:this.noop, +fn:this.program(15,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+='\n
\n
\n\n';if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(19,function(a,b){var c;(c=e.remote)?c=c.call(a,{hash:{},data:b}): +(c=a.remote,c="function"===typeof c?c.apply(a):c);return g(c)},d),fn:this.program(17,function(a,c){var b,d;b='';(d=e.remote)?d=d.call(a,{hash:{},data:c}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return b+=g(d)+""},d),data:d}))||0===a)b+=a;b+='\n';(a=e.stateDesc)?a=a.call(c,{hash:{},data:d}):(a=c.stateDesc,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n';(a=e.agentName)? +a=a.call(c,{hash:{},data:d}):(a=c.agentName,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n\n';if((a=e.unless.call(c,c.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,c){var b,d;b=''},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.program(27,function(a,c){var b;(b=e.userAgent)?b=b.call(a,{hash:{},data:c}):(b=a.userAgent,b="function"===typeof b?b.apply(a):b);return g(b)},d),fn:this.program(25,function(a){var b;return g((b=(b=a.ban,null==b||!1===b?b:b.reason),"function"===typeof b?b.apply(a):b))},d),data:d}))||0=== +a)b+=a;return b+""})})(); +/* 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/templates/compiled/default_app.tpl.js b/src/messenger/webim/js/templates/compiled/default_app.tpl.js index f71622ca..34658a45 100644 --- a/src/messenger/webim/js/templates/compiled/default_app.tpl.js +++ b/src/messenger/webim/js/templates/compiled/default_app.tpl.js @@ -4,4 +4,8 @@ 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){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 +(function(){var h=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.default_control=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};l=this.escapeExpression;a="";(c=c.title)?c=c.call(b,{hash:{},data:g}):(c=b.title,c="function"===typeof c?c.apply(b):c);return a+=l(c)+""});m.sound=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};var d=this.escapeExpression;return(a=c["if"].call(b,b.file,{hash:{}, +inverse:this.noop,fn:this.program(1,function(a,b){var k,f;k='\n\n'},g),data:g}))||0===a?a:""});m.message=h(function(a,b,c,l,g){this.compilerInfo=[2,">= 1.0.0-rc.3"];c=c||a.helpers;g=g||{};var d,j=this.escapeExpression, +h=c.helperMissing;a={hash:{},data:g};a=""+(j((d=c.formatTime,d?d.call(b,b.created,a):h.call(b,"formatTime",b.created,a)))+"\n");if((d=c["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,f){var b,e;b="";(e=c.name)?e=e.call(a,{hash:{},data:f}):(e=a.name,e="function"===typeof e?e.apply(a):e);return b+=j(e)+": "},g),data:g}))||0===d)a+= +d;a+="\n";if((d=c["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var d,e;e={hash:{},data:b};return j((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br",e):h.call(a,"apply",a.message,"urlReplace, nl2br",e)))},g),fn:this.program(3,function(a,b){var d,e;e={hash:{},data:b};return j((d=c.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",e):h.call(a, +"apply",a.message,"urlReplace, nl2br, allowTags",e)))},g),data:g}))||0===d)a+=d;return a+="
"})})(); 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 5334d86e..f8ee32ff 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,31 @@ 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 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})})(); \ No newline at end of file +(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.agent=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f=e.helperMissing,g=this.escapeExpression;b='';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=g(a);if((a=e.unless.call(c,c.isLast,{hash:{},inverse:this.noop,fn:this.program(9, +function(){return","},d),data:d}))||0===a)b+=a;return b});l.no_threads=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c=''+(a((f=e.L10n,f?f.call(c,"clients.no_clients",d):b.call(c,"L10n","clients.no_clients",d)))+"")});l.no_visitors=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression; +d={hash:{},data:d};return c=''+(a((f=e.L10n,f?f.call(c,"visitors.no_visitors",d):b.call(c,"L10n","visitors.no_visitors",d)))+"")});l.status_panel=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;b='
';(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a="function"===typeof a?a.apply(c):a);b+=h(a);if((f=e["if"].call(c,(a=c.agent,null==a||!1===a?a:a.away), +{hash:{},inverse:this.program(3,function(a,b){var c,d;d={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.online",d):g.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,b){var c,d;d={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.away",d):g.call(a,"L10n","pending.status.away",d)))},d),data:d}))||0===f)b+=f;b+='
"});l.threads_collection=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{}; +var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d};b='\n\n\n \n \n \n \n \n \n \n \n\n\n\n\n\n
'+(h((f=e.L10n,f?f.call(c,"pending.table.head.name",a):g.call(c,"L10n","pending.table.head.name",a)))+"");a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.actions",a):g.call(c,"L10n","pending.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.contactid",a):g.call(c,"L10n", +"pending.table.head.contactid",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.state",a):g.call(c,"L10n","pending.table.head.state",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.operator",a):g.call(c,"L10n","pending.table.head.operator",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"pending.table.head.total",a):g.call(c,"L10n","pending.table.head.total",a)))+"";a={hash:{},data:d}; +b+=h((f=e.L10n,f?f.call(c,"pending.table.head.waittime",a):g.call(c,"L10n","pending.table.head.waittime",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n,f?f.call(c,"pending.table.head.etc",a):g.call(c,"L10n","pending.table.head.etc",a)))+'
'});l.visitors_collection=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f,g=e.helperMissing,h=this.escapeExpression;a={hash:{},data:d}; +b='\n\n\n \n \n \n \n \n \n \n \n \n\n\n\n\n
'+(h((f=e.L10n,f?f.call(c,"visitors.table.head.name",a):g.call(c,"L10n","visitors.table.head.name",a)))+"");a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.actions",a):g.call(c,"L10n","visitors.table.head.actions",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.contactid",a):g.call(c,"L10n","visitors.table.head.contactid",a)))+""; +a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):g.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):g.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.invited.by",a):g.call(c,"L10n","visitors.table.head.invited.by",a)))+"";a={hash:{},data:d};b+=h((f= +e.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):g.call(c,"L10n","visitors.table.head.invitationtime",a)))+"";a={hash:{},data:d};b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.invitations",a):g.call(c,"L10n","visitors.table.head.invitations",a)))+"";a={hash:{},data:d};return b+=h((f=e.L10n,f?f.call(c,"visitors.table.head.etc",a):g.call(c,"L10n","visitors.table.head.etc",a)))+'
'});l.visitor= +k(function(b,c,e,a,d){function f(){return"-"}this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var g,h=e.helperMissing,j=this.escapeExpression;b='\n ';if((a=e.unless.call(c,c.invitationInfo,{hash:{},inverse:this.program(3,function(a,b){var c;(c=e.userName)?c=c.call(a,{hash:{},data:b}):(c=a.userName,c="function"===typeof c?c.apply(a):c);return j(c)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=j(d)+""},d),data:d}))||0===a)b+=a;g={hash:{},data:d};b=b+'\n\n\n
\n
\n
\n
\n\n');if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(7,function(a,b){var c;(c=e.remote)?c=c.call(a,{hash:{},data:b}):(c=a.remote,c="function"===typeof c?c.apply(a):c);return j(c)},d),fn:this.program(5,function(a,c){var b,d;b='';(d=e.remote)?d=d.call(a,{hash:{},data:c}):(d=a.remote,d="function"===typeof d?d.apply(a): +d);return b+=j(d)+""},d),data:d}))||0===a)b+=a;b+='\n\n\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11, +f,d),fn:this.program(9,function(a){var c;return j((c=(c=a.invitationInfo,null==c||!1===c?c:c.agentName),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var c;return a=""+('')},d),data:d}))||0===a)b+=a;b+='\n'; +(a=e.invitations)?a=a.call(c,{hash:{},data:d}):(a=c.invitations,a="function"===typeof a?a.apply(c):a);b+=j(a)+" / ";(a=e.chats)?a=a.call(c,{hash:{},data:d}):(a=c.chats,a="function"===typeof a?a.apply(c):a);b+=j(a)+'\n';(a=e.userAgent)?a=a.call(c,{hash:{},data:d}):(a=c.userAgent,a="function"===typeof a?a.apply(c):a);return b+=j(a)+""});l.queued_thread=k(function(b,c,e,a,d){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||b.helpers;d=d||{};var f=e.helperMissing,g=this.escapeExpression; +b='\n
';if((a= +e["if"].call(c,c.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,d;b={hash:{},data:c};return b=""+(g((d=e.L10n,d?d.call(a,"chat.client.spam.prefix",b):f.call(a,"L10n","chat.client.spam.prefix",b)))+" ")},d),data:d}))||0===a)b+=a;(a=e.userName)?a=a.call(c,{hash:{},data:d}):(a=c.userName,a="function"===typeof a?a.apply(c):a);b+=g(a)+"
\n ";if((a=e["if"].call(c,c.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,c){var b,d;b='
';(d=e.firstMessagePreview)?d=d.call(a,{hash:{},data:c}):(d=a.firstMessagePreview,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"
"},d),data:d}))||0===a)b+=a;b+='\n\n\n
\n ';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,d;b={hash:{},data:c}; +return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.canBan,{hash:{},inverse:this.noop, +fn:this.program(15,function(a,c){var b,d;b={hash:{},data:c};return b='\n
\n ')},d),data:d}))||0===a)b+=a;b+='\n
\n
\n\n';if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(19,function(a,b){var c;(c=e.remote)?c=c.call(a,{hash:{},data:b}): +(c=a.remote,c="function"===typeof c?c.apply(a):c);return g(c)},d),fn:this.program(17,function(a,c){var b,d;b='';(d=e.remote)?d=d.call(a,{hash:{},data:c}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return b+=g(d)+""},d),data:d}))||0===a)b+=a;b+='\n';(a=e.stateDesc)?a=a.call(c,{hash:{},data:d}):(a=c.stateDesc,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n';(a=e.agentName)? +a=a.call(c,{hash:{},data:d}):(a=c.agentName,a="function"===typeof a?a.apply(c):a);b+=g(a)+'\n\n';if((a=e.unless.call(c,c.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,c){var b,d;b=''},d),data:d}))||0===a)b+=a;b+='\n';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.program(27,function(a,c){var b;(b=e.userAgent)?b=b.call(a,{hash:{},data:c}):(b=a.userAgent,b="function"===typeof b?b.apply(a):b);return g(b)},d),fn:this.program(25,function(a){var b;return g((b=(b=a.ban,null==b||!1===b?b:b.reason),"function"===typeof b?b.apply(a):b))},d),data:d}))||0=== +a)b+=a;return b+""})})(); 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 1e22459b..42ce4dae 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,23 @@ 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 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 m(a,b){return'\n
\n '}this.compilerInfo=[2,">= 1.0.0-rc.3"],c=c||a.helpers,e=e||{};var f="",g,h,i,j=this,k=c.helperMissing,l=this.escapeExpression;f+='\n
\n
\n \n
\n
\n
\n\n\n
\n
\n ',h=c.unless.call(b,(g=b.user,g==null||g===!1?g:g.isAgent),{hash:{},inverse:j.noop,fn:j.program(1,m,e),data:e});if(h||h===0)f+=h;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 +(function(){var l=Handlebars.template,n=Handlebars.templates=Handlebars.templates||{};n.user_name_control=l(function(d,b,e,g,a){function c(a,d){var c,f,b;c=""+('\n
\n \n '}function k(a,d){var c,f,b;b={hash:{},data:d};c='\n '+j((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===q?f.apply(a):f))+'\n \n '}this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var h,q="function",j=this.escapeExpression,m=e.helperMissing,p=this;return(d=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canChangeName),{hash:{},inverse:p.program(6,function(a,d){var b,c;b={hash:{},data:d};return b="\n"+(j((c=e.L10n,c?c.call(a,"chat.client.name",b):m.call(a,"L10n","chat.client.name",b)))+" "+j((c=(c=a.user,null==c||!1===c?c:c.name),typeof c===q?c.apply(a): +c))+"\n")},a),fn:p.program(1,function(a,d){var b,f;b={hash:{},data:d};b='\n '+(j((f=e.L10n,f?f.call(a,"chat.client.name",b):m.call(a,"L10n","chat.client.name",b)))+"\n ");if((f=e["if"].call(a,a.nameInput,{hash:{},inverse:p.program(4,k,d),fn:p.program(2,c,d),data:d}))||0===f)b+=f;return b+="\n"},a),data:a}))||0===d?d:""});n.status_typing=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c;d=e.helperMissing;g=this.escapeExpression; +a={hash:{},data:a};return g((c=e.L10n,c?c.call(b,"typing.remote",a):d.call(b,"L10n","typing.remote",a)))});n.chat_layout=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c,k;g=e.helperMissing;var h=this.escapeExpression;d='\n
\n
\n \n
\n
\n
\n\n\n
\n
\n '; +if((k=e.unless.call(b,(c=b.user,null==c||!1===c?c:c.isAgent),{hash:{},inverse:this.noop,fn:this.program(1,function(){return'\n
\n '},a),data:a}))||0===k)d+=k;a={hash:{},data:a};return d=d+'\n \n
\n \n
\n
\n
\n\n\n
\n\n\n\n\n\n
')});n.avatar=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c=this.escapeExpression;return(d=e["if"].call(b,b.imageLink,{hash:{},inverse:this.program(3,function(){return'
'},a),fn:this.program(1,function(a,d){var b,j;b=''},a),data:a}))||0===d?d:""});n.close_control=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c;d=e.helperMissing;g=this.escapeExpression;a={hash:{},data:a};return b='
')});n.history_control=l(function(d, +b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c;d=e.helperMissing;g=this.escapeExpression;a={hash:{},data:a};return b='
')});n.status_message=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};d=this.escapeExpression;(e=e.message)?e=e.call(b,{hash:{},data:a}):(e=b.message,e="function"=== +typeof e?e.apply(b):e);return d(e)});n.secure_mode_control=l(function(){this.compilerInfo=[2,">= 1.0.0-rc.3"];return'
'});n.sound_control=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c=e.helperMissing,k=this.escapeExpression;return(d=e["if"].call(b,b.enabled,{hash:{},inverse:this.program(3,function(a,d){var b,m;b={hash:{},data:d};return b='\n
\n')},a),fn:this.program(1,function(a,d){var b,m;b={hash:{},data:d};return b='\n
\n')},a),data:a}))||0===d?d:""});n.message=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c, +k=this.escapeExpression,h=e.helperMissing;d={hash:{},data:a};d=""+(k((c=e.formatTime,c?c.call(b,b.created,d):h.call(b,"formatTime",b.created,d)))+" \n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var d,c;d="";(c=e.name)?c=c.call(a,{hash:{},data:b}):(c=a.name,c="function"===typeof c?c.apply(a):c);return d+=k(c)+": "}, +a),data:a}))||0===c)d+=c;d+="\n";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,d){var b,c;c={hash:{},data:d};return k((b=e.apply,b?b.call(a,a.message,"urlReplace, nl2br",c):h.call(a,"apply",a.message,"urlReplace, nl2br",c)))},a),fn:this.program(3,function(a,d){var b,c;c={hash:{},data:d};return k((b=e.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags", +c):h.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",c)))},a),data:a}))||0===c)d+=c;return d+="
"});n.message_form=l(function(d,b,e,g,a){function c(a,b){var c,d;c={hash:{},data:b};c='\n \n "}function k(a){var c;return a=""+("\n \n ")}this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var h,l="function",j=this.escapeExpression,m=e.helperMissing,p=this;d='
\n';if((g=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canPost),{hash:{},inverse:p.noop,fn:p.program(1, +function(){return'\n
\n \n
\n'},a),data:a}))||0===g)d+=g;d+='\n
\n\n
\n';if((g=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canPost),{hash:{},inverse:p.noop,fn:p.program(3,function(a,d){var b,f,g;b='\n
\n
\n ';if((g=e["if"].call(a,(f=a.user, +null==f||!1===f?f:f.isAgent),{hash:{},inverse:p.noop,fn:p.program(4,c,d),data:d}))||0===g)b+=g;g={hash:{},data:d};b=b+'\n
\n ');g={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(a,"chat.window.send_message_short_and_shortcut",g):m.call(a,"L10n","chat.window.send_message_short_and_shortcut",g)))+"\n
\n"},a), +data:a}))||0===g)d+=g;return d+'\n
\n
'});n.send_mail_control=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c;d=e.helperMissing;g=this.escapeExpression;a={hash:{},data:a};return b='
')});n.refresh_control=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers; +a=a||{};var c;d=e.helperMissing;g=this.escapeExpression;a={hash:{},data:a};return b='
')});n.redirect_control=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};var c,k=e.helperMissing,h=this.escapeExpression;return(d=e["if"].call(b,(c=b.user,null==c||!1===c?c:c.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a, +c){var b,d;b={hash:{},data:c};return b='\n
\n')},a),data:a}))||0===d?d:""});n.status=l(function(d,b,e,g,a){this.compilerInfo=[2,">= 1.0.0-rc.3"];e=e||d.helpers;a=a||{};d=this.escapeExpression;(e=e.title)?e=e.call(b,{hash:{},data:a}):(e=b.title,e="function"===typeof e?e.apply(b):e);return d(e)})})();