design/src/messenger/webim/js/templates/compiled/users_app.tpl.js

7 lines
14 KiB
JavaScript

/*
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+='<span class="agent-status-',g=c["if"].call(b,b.away,{hash:{},inverse:j.program(3,m,e),fn:j.program(1,l,e),data:e});if(g||g===0)f+=g;f+=' inline-block" title="',g=c["if"].call(b,b.away,{hash:{},inverse:j.program(7,o,e),fn:j.program(5,n,e),data:e});if(g||g===0)f+=g;f+='"></span>',(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+='<td class="no-threads" colspan="8">',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)))+"</td>",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+='<td class="no-visitors" colspan="9">',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)))+"</td>",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+='<div id="connstatus">',(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+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">',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+="</a></div>",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+='<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">',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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>',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+='<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">',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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+"</th>\n <th>",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)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>',f}),b.visitor=a(function(a,b,c,d,e){function n(a,b){var d="",e,f,g;return d+='<a href="javascript:void(0);" class="invite-link" title="',g={hash:{},data:b},d+=k((e=c.L10n,e?e.call(a,"pending.table.invite",g):j.call(a,"L10n","pending.table.invite",g)))+'">',(f=c.userName)?f=f.call(a,{hash:{},data:b}):(f=a.userName,f=typeof f===l?f.apply(a):f),d+=k(f)+"</a>",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+='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===l?e.apply(a):e),d+=k(e)+"</a>",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+='<span class="timesince" data-timestamp="'+k((d=(d=a.invitationInfo,d==null||d===!1?d:d.time),typeof d===l?d.apply(a):d))+'"></span>',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+='<td class="visitor">\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</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="',i={hash:{},data:e},f+=k((g=c.L10n,g?g.call(b,"pending.table.tracked",i):j.call(b,"L10n","pending.table.tracked",i)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">',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+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="',(h=c.firstTime)?h=h.call(b,{hash:{},data:e}):(h=b.firstTime,h=typeof h===l?h.apply(b):h),f+=k(h)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="',(h=c.lastTime)?h=h.call(b,{hash:{},data:e}):(h=b.lastTime,h=typeof h===l?h.apply(b):h),f+=k(h)+'"></span></td>\n<td class="visitor">',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+='</td>\n<td class="visitor">',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+='</td>\n<td class="visitor">',(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)+'</td>\n<td class="visitor">',(h=c.userAgent)?h=h.call(b,{hash:{},data:e}):(h=b.userAgent,h=typeof h===l?h.apply(b):h),f+=k(h)+"</td>",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)))+"&nbsp;",d}function o(a,b){var d="",e;return d+='<div class="first-message"><a href="javascript:void(0);" title="',(e=c.firstMessage)?e=e.call(a,{hash:{},data:b}):(e=a.firstMessage,e=typeof e===j?e.apply(a):e),d+=i(e)+'">',(e=c.firstMessagePreview)?e=e.call(a,{hash:{},data:b}):(e=a.firstMessagePreview,e=typeof e===j?e.apply(a):e),d+=i(e)+"</a></div>",d}function p(a,b){var d="",e,f;return d+='\n <div class="control open-dialog open-control inline-block" title="',f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"pending.table.speak",f):h.call(a,"L10n","pending.table.speak",f)))+'"></div>\n ',d}function q(a,b){var d="",e,f;return d+='\n <div class="control view-control inline-block" title="',f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"pending.table.view",f):h.call(a,"L10n","pending.table.view",f)))+'"></div>\n ',d}function r(a,b){var d="",e,f;return d+='\n <div class="control track-control inline-block" title="',f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"pending.table.tracked",f):h.call(a,"L10n","pending.table.tracked",f)))+'"></div>\n ',d}function s(a,b){var d="",e,f;return d+='\n <div class="control ban-control inline-block" title="',f={hash:{},data:b},d+=i((e=c.L10n,e?e.call(a,"pending.table.ban",f):h.call(a,"L10n","pending.table.ban",f)))+'"></div>\n ',d}function t(a,b){var d="",e;return d+='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">',(e=c.remote)?e=e.call(a,{hash:{},data:b}):(e=a.remote,e=typeof e===j?e.apply(a):e),d+=i(e)+"</a>",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+='<span class="timesince" data-timestamp="',(e=c.waitingTime)?e=e.call(a,{hash:{},data:b}):(e=a.waitingTime,e=typeof e===j?e.apply(a):e),d+=i(e)+'"></span>',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+='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="',g=c["if"].call(b,b.canOpen,{hash:{},inverse:k.program(3,m,e),fn:k.program(1,l,e),data:e});if(g||g===0)f+=g;f+='">',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)+"</a></div>\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</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\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 </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">',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+='</td>\n<td class="visitor">',(g=c.stateDesc)?g=g.call(b,{hash:{},data:e}):(g=b.stateDesc,g=typeof g===j?g.apply(b):g),f+=i(g)+'</td>\n<td class="visitor">',(g=c.agentName)?g=g.call(b,{hash:{},data:e}):(g=b.agentName,g=typeof g===j?g.apply(b):g),f+=i(g)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="',(g=c.totalTime)?g=g.call(b,{hash:{},data:e}):(g=b.totalTime,g=typeof g===j?g.apply(b):g),f+=i(g)+'"></span></td>\n<td class="visitor">',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+='</td>\n<td class="visitor">',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+="</td>",f})})();