/*
This file is part of Mibew Messenger project.
http://mibew.org
Copyright (c) 2005-2011 Mibew Messenger Community
License: http://mibew.org/license.php
*/
(function(){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+='
',h=c["if"].call(b,(g=b.agent,g==null||g===!1?g:g.away),{hash:{},inverse:l.program(7,p,e),fn:l.program(5,o,e),data:e});if(h||h===0)f+=h;return 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 ',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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+' | \n
\n\n\n\n\n
',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 ',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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+" | \n ",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)))+' | \n
\n\n\n\n
',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',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 ',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})})();