mirror of
https://github.com/Mibew/i18n.git
synced 2024-11-15 16:44:12 +03:00
Update Handlebars to v1.0.0 and recompile templates
This commit is contained in:
parent
77a3af4d11
commit
be536272ca
@ -4,10 +4,10 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.default_control=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};h=this.escapeExpression;a="<strong>";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+"</strong>"});l.message=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},data:f};
|
||||
a="<span>"+(g((c=e.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"</span>\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="<span class='n";(d=e.kindName)?d=d.call(a,{hash:{},data:c}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);b+=g(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"</span>: "},f),data:f}))||0===c)a+=c;a+="\n<span class='m";(c=e.kindName)?
|
||||
c=c.call(b,{hash:{},data:f}):(c=b.kindName,c="function"===typeof c?c.apply(b):c);a+=g(c)+"'>";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return g((c=e.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},f),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return g((b=e.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",
|
||||
d)))},f),data:f}))||0===c)a+=c;return a+="</span><br/>"})})();
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.default_control=k(function(a,b,e,h,f){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);f=f||{};h=this.escapeExpression;a="<strong>";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+"</strong>"});l.message=k(function(a,b,e,h,f){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},
|
||||
data:f};a="<span>"+(g((c=e.formatTime||b.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"</span>\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="<span class='n";(d=e.kindName)?d=d.call(a,{hash:{},data:c}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);b+=g(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"</span>: "},f),data:f}))||0===c)a+=c;a+="\n<span class='m";
|
||||
(c=e.kindName)?c=c.call(b,{hash:{},data:f}):(c=b.kindName,c="function"===typeof c?c.apply(b):c);a+=g(c)+"'>";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return g((c=e.apply||a.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},f),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return g((b=e.apply||a.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,
|
||||
"apply",a.message,"urlReplace, nl2br, allowTags",d)))},f),data:f}))||0===c)a+=c;return a+="</span><br/>"})})();
|
||||
/*
|
||||
Copyright 2005-2013 the original author or authors.
|
||||
Licensed under the Apache License, Version 2.0 (the "License").
|
||||
|
@ -4,33 +4,34 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f=e.helperMissing,h=this.escapeExpression;b='<span class="agent-status-';if((a=e["if"].call(c,c.away,{hash:{},inverse:this.program(3,function(){return"online"},d),fn:this.program(1,function(){return"away"},d),data:d}))||0===a)b+=a;b+=' inline-block" title="';if((a=e["if"].call(c,c.away,{hash:{},inverse:this.program(7,function(a,
|
||||
b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.online",g):f.call(a,"L10n","pending.status.online",g)))},d),fn:this.program(5,function(a,b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.away",g):f.call(a,"L10n","pending.status.away",g)))},d),data:d}))||0===a)b+=a;b+='"></span>';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=h(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});m.no_threads=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<td class="no-threads" colspan="8">'+(a((f=e.L10n,f?f.call(c,"clients.no_clients",d):b.call(c,"L10n","clients.no_clients",d)))+"</td>")});m.no_visitors=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;
|
||||
d={hash:{},data:d};return c='<td class="no-visitors" colspan="9">'+(a((f=e.L10n,f?f.call(c,"visitors.no_visitors",d):b.call(c,"L10n","visitors.no_visitors",d)))+"</td>")});m.queued_thread=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f=e.helperMissing,h=this.escapeExpression;b='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.program(3,function(a,b){var c,
|
||||
g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.table.view",g):f.call(a,"L10n","pending.table.view",g)))},d),fn:this.program(1,function(a,b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.table.speak",g):f.call(a,"L10n","pending.table.speak",g)))},d),data:d}))||0===a)b+=a;b+='">';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,b){var c,g;c={hash:{},data:b};return c=""+(h((g=e.L10n,g?g.call(a,"chat.client.spam.prefix",c):f.call(a,"L10n",
|
||||
"chat.client.spam.prefix",c)))+" ")},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+=h(a)+"</a></div>\n ";if((a=e["if"].call(c,c.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,g;c='<div class="first-message"><a href="javascript:void(0);" title="';(g=e.firstMessage)?g=g.call(a,{hash:{},data:b}):(g=a.firstMessage,g="function"===typeof g?g.apply(a):g);c+=h(g)+'">';(g=e.firstMessagePreview)?
|
||||
g=g.call(a,{hash:{},data:b}):(g=a.firstMessagePreview,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a></div>"},d),data:d}))||0===a)b+=a;b+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,b){var c,g;c={hash:{},data:b};return c='\n <div class="control open-dialog open-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.speak",
|
||||
c):f.call(a,"L10n","pending.table.speak",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control view-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.view",c):f.call(a,"L10n","pending.table.view",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control track-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.tracked",c):f.call(a,"L10n","pending.table.tracked",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control ban-control inline-block" title="'+
|
||||
(h((g=e.L10n,g?g.call(a,"pending.table.ban",c):f.call(a,"L10n","pending.table.ban",c)))+'"></div>\n ')},d),data:d}))||0===a)b+=a;b+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';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 h(c)},d),fn:this.program(17,function(a,c){var b,g;b='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';
|
||||
(g=e.remote)?g=g.call(a,{hash:{},data:c}):(g=a.remote,g="function"===typeof g?g.apply(a):g);return b+=h(g)+"</a>"},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';(a=e.stateDesc)?a=a.call(c,{hash:{},data:d}):(a=c.stateDesc,a="function"===typeof a?a.apply(c):a);b+=h(a)+'</td>\n<td class="visitor">';(a=e.agentName)?a=a.call(c,{hash:{},data:d}):(a=c.agentName,a="function"===typeof a?a.apply(c):a);b+=h(a)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.totalTime)?
|
||||
a=a.call(c,{hash:{},data:d}):(a=c.totalTime,a="function"===typeof a?a.apply(c):a);b+=h(a)+'"></span></td>\n<td class="visitor">';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,g;b='<span class="timesince" data-timestamp="';(g=e.waitingTime)?g=g.call(a,{hash:{},data:c}):(g=a.waitingTime,g="function"===typeof g?g.apply(a):g);return b+=h(g)+'"></span>'},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';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 h(b)},d),fn:this.program(25,function(a){var b;return h((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+"</td>"});m.status_panel=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;b='<div id="connstatus">';
|
||||
(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a="function"===typeof a?a.apply(c):a);b+=j(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 j((c=e.L10n,c?c.call(a,"pending.status.online",d):h.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.away",d):h.call(a,"L10n","pending.status.away",d)))},d),data:d}))||
|
||||
0===f)b+=f;b+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';if((f=e["if"].call(c,(a=c.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(7,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.setaway",d):h.call(a,"L10n","pending.status.setaway",d)))},d),fn:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.setonline",d):h.call(a,"L10n","pending.status.setonline",d)))},d),
|
||||
data:d}))||0===f)b+=f;return b+"</a></div>"});m.threads_collection=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};b='<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n,f?f.call(c,"pending.table.head.name",a):h.call(c,"L10n","pending.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.actions",a):h.call(c,
|
||||
"L10n","pending.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.contactid",a):h.call(c,"L10n","pending.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.state",a):h.call(c,"L10n","pending.table.head.state",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.operator",a):h.call(c,"L10n","pending.table.head.operator",a)))+"</th>\n <th>";a={hash:{},
|
||||
data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.total",a):h.call(c,"L10n","pending.table.head.total",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.waittime",a):h.call(c,"L10n","pending.table.head.waittime",a)))+"</th>\n <th>";a={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(c,"pending.table.head.etc",a):h.call(c,"L10n","pending.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>'});m.visitor=l(function(b,
|
||||
c,e,a,d){function f(){return"-"}this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var h,j=e.helperMissing,k=this.escapeExpression;b='<td class="visitor">\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 k(c)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='<a href="javascript:void(0);" class="invite-link" title="'+(k((d=
|
||||
e.L10n,d?d.call(a,"pending.table.invite",c):j.call(a,"L10n","pending.table.invite",c)))+'">');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)b+=a;h={hash:{},data:d};b=b+'\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+(k((a=e.L10n,a?a.call(c,"pending.table.tracked",h):j.call(c,"L10n","pending.table.tracked",
|
||||
h)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">');if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(5,function(a,b){var c,d;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):
|
||||
d);return c+=k(d)+"</a>"},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.firstTime)?a=a.call(c,{hash:{},data:d}):(a=c.firstTime,a="function"===typeof a?a.apply(c):a);b+=k(a)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.lastTime)?a=a.call(c,{hash:{},data:d}):(a=c.lastTime,a="function"===typeof a?a.apply(c):a);b+=k(a)+'"></span></td>\n<td class="visitor">';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,
|
||||
f,d),fn:this.program(9,function(a){var b;return k((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('<span class="timesince" data-timestamp="'+k((b=(b=a.invitationInfo,null==b||!1===b?b:b.time),"function"===typeof b?b.apply(a):b))+'"></span>')},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';
|
||||
(a=e.invitations)?a=a.call(c,{hash:{},data:d}):(a=c.invitations,a="function"===typeof a?a.apply(c):a);b+=k(a)+" / ";(a=e.chats)?a=a.call(c,{hash:{},data:d}):(a=c.chats,a="function"===typeof a?a.apply(c):a);b+=k(a)+'</td>\n<td class="visitor">';(a=e.userAgent)?a=a.call(c,{hash:{},data:d}):(a=c.userAgent,a="function"===typeof a?a.apply(c):a);return b+=k(a)+"</td>"});m.visitors_collection=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;
|
||||
a={hash:{},data:d};b='<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n,f?f.call(c,"visitors.table.head.name",a):h.call(c,"L10n","visitors.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.actions",a):h.call(c,"L10n","visitors.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.contactid",a):h.call(c,"L10n","visitors.table.head.contactid",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):h.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):h.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invited.by",a):h.call(c,"L10n","visitors.table.head.invited.by",a)))+"</th>\n <th>";a=
|
||||
{hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):h.call(c,"L10n","visitors.table.head.invitationtime",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitations",a):h.call(c,"L10n","visitors.table.head.invitations",a)))+"</th>\n <th>";a={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.etc",a):h.call(c,"L10n","visitors.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>'})})();
|
||||
(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='<span class="agent-status-';if((a=e["if"].call(b,b.away,{hash:{},inverse:this.program(3,function(){return"online"},d),fn:this.program(1,function(){return"away"},d),data:d}))||0===a)c+=a;c+=' inline-block" title="';if((a=e["if"].call(b,b.away,{hash:{},inverse:this.program(7,
|
||||
function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.status.online",g):f.call(a,"L10n","pending.status.online",g)))},d),fn:this.program(5,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.status.away",g):f.call(a,"L10n","pending.status.away",g)))},d),data:d}))||0===a)c+=a;c+='"></span>';(a=e.name)?a=a.call(b,{hash:{},data:d}):(a=b.name,a="function"===typeof a?a.apply(b):a);c+=h(a);if((a=e.unless.call(b,b.isLast,{hash:{},inverse:this.noop,
|
||||
fn:this.program(9,function(){return","},d),data:d}))||0===a)c+=a;return c});m.no_threads=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b='<td class="no-threads" colspan="8">'+(a((f=e.L10n||b.L10n,f?f.call(b,"clients.no_clients",d):c.call(b,"L10n","clients.no_clients",d)))+"</td>")});m.no_visitors=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||
|
||||
{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b='<td class="no-visitors" colspan="9">'+(a((f=e.L10n||b.L10n,f?f.call(b,"visitors.no_visitors",d):c.call(b,"L10n","visitors.no_visitors",d)))+"</td>")});m.queued_thread=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((a=e["if"].call(b,
|
||||
b.canOpen,{hash:{},inverse:this.program(3,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.table.view",g):f.call(a,"L10n","pending.table.view",g)))},d),fn:this.program(1,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.table.speak",g):f.call(a,"L10n","pending.table.speak",g)))},d),data:d}))||0===a)c+=a;c+='">';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,g;b={hash:{},data:c};
|
||||
return b=""+(h((g=e.L10n||a.L10n,g?g.call(a,"chat.client.spam.prefix",b):f.call(a,"L10n","chat.client.spam.prefix",b)))+" ")},d),data:d}))||0===a)c+=a;(a=e.userName)?a=a.call(b,{hash:{},data:d}):(a=b.userName,a="function"===typeof a?a.apply(b):a);c+=h(a)+"</a></div>\n ";if((a=e["if"].call(b,b.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,g;c='<div class="first-message"><a href="javascript:void(0);" title="';(g=e.firstMessage)?g=g.call(a,{hash:{},data:b}):(g=
|
||||
a.firstMessage,g="function"===typeof g?g.apply(a):g);c+=h(g)+'">';(g=e.firstMessagePreview)?g=g.call(a,{hash:{},data:b}):(g=a.firstMessagePreview,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a></div>"},d),data:d}))||0===a)c+=a;c+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((a=e["if"].call(b,b.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,g;b={hash:{},data:c};return b='\n <div class="control open-dialog open-control inline-block" title="'+
|
||||
(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.speak",b):f.call(a,"L10n","pending.table.speak",b)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,b){var c,g;c={hash:{},data:b};return c='\n <div class="control view-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.view",c):f.call(a,"L10n","pending.table.view",c)))+'"></div>\n ')},d),data:d}))||0===
|
||||
a)c+=a;c+="\n ";if((a=e["if"].call(b,b.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,g;b={hash:{},data:c};return b='\n <div class="control track-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.tracked",b):f.call(a,"L10n","pending.table.tracked",b)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,b){var c,g;c={hash:{},data:b};
|
||||
return c='\n <div class="control ban-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.ban",c):f.call(a,"L10n","pending.table.ban",c)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(19,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return h(b)},
|
||||
d),fn:this.program(17,function(a,b){var c,g;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(g=e.remote)?g=g.call(a,{hash:{},data:b}):(g=a.remote,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a>"},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';(a=e.stateDesc)?a=a.call(b,{hash:{},data:d}):(a=b.stateDesc,a="function"===typeof a?a.apply(b):a);c+=h(a)+'</td>\n<td class="visitor">';(a=e.agentName)?a=a.call(b,{hash:{},data:d}):(a=b.agentName,a="function"===typeof a?
|
||||
a.apply(b):a);c+=h(a)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.totalTime)?a=a.call(b,{hash:{},data:d}):(a=b.totalTime,a="function"===typeof a?a.apply(b):a);c+=h(a)+'"></span></td>\n<td class="visitor">';if((a=e.unless.call(b,b.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,b){var c,g;c='<span class="timesince" data-timestamp="';(g=e.waitingTime)?g=g.call(a,{hash:{},data:b}):(g=a.waitingTime,g="function"===typeof g?
|
||||
g.apply(a):g);return c+=h(g)+'"></span>'},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.program(27,function(a,b){var c;(c=e.userAgent)?c=c.call(a,{hash:{},data:b}):(c=a.userAgent,c="function"===typeof c?c.apply(a):c);return h(c)},d),fn:this.program(25,function(a){var c;return h((c=(c=a.ban,null==c||!1===c?c:c.reason),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===a)c+=a;return c+"</td>"});m.status_panel=l(function(c,b,e,a,d){this.compilerInfo=
|
||||
[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;c='<div id="connstatus">';(a=e.message)?a=a.call(b,{hash:{},data:d}):(a=b.message,a="function"===typeof a?a.apply(b):a);c+=j(a);if((f=e["if"].call(b,(a=b.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.online",d):h.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,c){var b,
|
||||
d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.away",d):h.call(a,"L10n","pending.status.away",d)))},d),data:d}))||0===f)c+=f;c+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';if((f=e["if"].call(b,(a=b.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(7,function(a,c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.setaway",d):h.call(a,"L10n","pending.status.setaway",d)))},d),fn:this.program(5,function(a,
|
||||
c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.setonline",d):h.call(a,"L10n","pending.status.setonline",d)))},d),data:d}))||0===f)c+=f;return c+"</a></div>"});m.threads_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.name",
|
||||
a):h.call(b,"L10n","pending.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.actions",a):h.call(b,"L10n","pending.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.contactid",a):h.call(b,"L10n","pending.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.state",a):h.call(b,"L10n","pending.table.head.state",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.operator",a):h.call(b,"L10n","pending.table.head.operator",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.total",a):h.call(b,"L10n","pending.table.head.total",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.waittime",a):h.call(b,"L10n","pending.table.head.waittime",a)))+"</th>\n <th>";a={hash:{},data:d};
|
||||
return c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.etc",a):h.call(b,"L10n","pending.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>'});m.visitor=l(function(c,b,e,a,d){function f(){return"-"}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var h,j=e.helperMissing,k=this.escapeExpression;c='<td class="visitor">\n ';if((a=e.unless.call(b,b.invitationInfo,{hash:{},inverse:this.program(3,function(a,c){var b;(b=e.userName)?
|
||||
b=b.call(a,{hash:{},data:c}):(b=a.userName,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='<a href="javascript:void(0);" class="invite-link" title="'+(k((d=e.L10n||a.L10n,d?d.call(a,"pending.table.invite",c):j.call(a,"L10n","pending.table.invite",c)))+'">');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)c+=a;h={hash:{},data:d};c=c+'\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+
|
||||
(k((a=e.L10n||b.L10n,a?a.call(b,"pending.table.tracked",h):j.call(b,"L10n","pending.table.tracked",h)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">');if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(5,function(a,b){var c,d;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';
|
||||
(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.firstTime)?a=a.call(b,{hash:{},data:d}):(a=b.firstTime,a="function"===typeof a?a.apply(b):a);c+=k(a)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.lastTime)?a=a.call(b,{hash:{},data:d}):(a=b.lastTime,a="function"===typeof a?a.apply(b):a);c+=k(a)+
|
||||
'"></span></td>\n<td class="visitor">';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(9,function(a){var b;return k((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('<span class="timesince" data-timestamp="'+k((b=(b=a.invitationInfo,
|
||||
null==b||!1===b?b:b.time),"function"===typeof b?b.apply(a):b))+'"></span>')},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';(a=e.invitations)?a=a.call(b,{hash:{},data:d}):(a=b.invitations,a="function"===typeof a?a.apply(b):a);c+=k(a)+" / ";(a=e.chats)?a=a.call(b,{hash:{},data:d}):(a=b.chats,a="function"===typeof a?a.apply(b):a);c+=k(a)+'</td>\n<td class="visitor">';(a=e.userAgent)?a=a.call(b,{hash:{},data:d}):(a=b.userAgent,a="function"===typeof a?a.apply(b):a);return c+=k(a)+"</td>"});
|
||||
m.visitors_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.name",a):h.call(b,"L10n","visitors.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.actions",a):h.call(b,"L10n",
|
||||
"visitors.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.contactid",a):h.call(b,"L10n","visitors.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.firsttimeonsite",a):h.call(b,"L10n","visitors.table.head.firsttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.lasttimeonsite",a):h.call(b,"L10n","visitors.table.head.lasttimeonsite",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invited.by",a):h.call(b,"L10n","visitors.table.head.invited.by",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invitationtime",a):h.call(b,"L10n","visitors.table.head.invitationtime",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invitations",a):h.call(b,"L10n","visitors.table.head.invitations",a)))+"</th>\n <th>";
|
||||
a={hash:{},data:d};return c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.etc",a):h.call(b,"L10n","visitors.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>'})})();
|
||||
/*
|
||||
Copyright 2005-2013 the original author or authors.
|
||||
Licensed under the Apache License, Version 2.0 (the "License").
|
||||
|
@ -20,77 +20,78 @@
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
var Handlebars={};
|
||||
(function(e,p){e.VERSION="1.0.0-rc.4";e.COMPILER_REVISION=3;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:">= 1.0.0-rc.4"};e.helpers={};e.partials={};var q=Object.prototype.toString;e.registerHelper=function(a,b,c){if("[object Object]"===q.call(a)){if(c||b)throw new e.Exception("Arg not supported with multiple helpers");e.Utils.extend(this.helpers,a)}else c&&(b.not=c),this.helpers[a]=b};e.registerPartial=function(a,b){"[object Object]"===q.call(a)?e.Utils.extend(this.partials,a):this.partials[a]=
|
||||
b};e.registerHelper("helperMissing",function(a){if(2===arguments.length)return p;throw Error("Could not find property '"+a+"'");});e.registerHelper("blockHelperMissing",function(a,b){var c=b.inverse||function(){},d=b.fn,j=q.call(a);"[object Function]"===j&&(a=a.call(this));return!0===a?d(this):!1===a||null==a?c(this):"[object Array]"===j?0<a.length?e.helpers.each(a,b):c(this):d(a)});e.K=function(){};e.createFrame=Object.create||function(a){e.K.prototype=a;a=new e.K;e.K.prototype=null;return a};e.logger=
|
||||
{DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{"0":"debug",1:"info",2:"warn",3:"error"},log:function(a,b){if(e.logger.level<=a){var c=e.logger.methodMap[a];"undefined"!==typeof console&&console[c]&&console[c].call(console,b)}}};e.log=function(a,b){e.logger.log(a,b)};e.registerHelper("each",function(a,b){var c=b.fn,d=b.inverse,j=0,f="",h;b.data&&(h=e.createFrame(b.data));if(a&&"object"===typeof a)if(a instanceof Array)for(var g=a.length;j<g;j++)h&&(h.index=j),f+=c(a[j],{data:h});else for(g in a)a.hasOwnProperty(g)&&
|
||||
(h&&(h.key=g),f+=c(a[g],{data:h}),j++);0===j&&(f=d(this));return f});e.registerHelper("if",function(a,b){"[object Function]"===q.call(a)&&(a=a.call(this));return!a||e.Utils.isEmpty(a)?b.inverse(this):b.fn(this)});e.registerHelper("unless",function(a,b){return e.helpers["if"].call(this,a,{fn:b.inverse,inverse:b.fn})});e.registerHelper("with",function(a,b){if(!e.Utils.isEmpty(a))return b.fn(a)});e.registerHelper("log",function(a,b){var c=b.data&&null!=b.data.level?parseInt(b.data.level,10):1;e.log(c,
|
||||
a)});var m;m=function(){this.yy={}};var v={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,simpleInverse:6,statements:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,OPEN_PARTIAL:24,partialName:25,params:26,hash:27,DATA:28,param:29,STRING:30,INTEGER:31,BOOLEAN:32,hashSegments:33,hashSegment:34,ID:35,EQUALS:36,PARTIAL_NAME:37,
|
||||
pathSegments:38,SEP:39,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"DATA",30:"STRING",31:"INTEGER",32:"BOOLEAN",35:"ID",36:"EQUALS",37:"PARTIAL_NAME",39:"SEP"},productions_:[0,[3,2],[4,2],[4,3],[4,2],[4,1],[4,1],[4,0],[7,1],[7,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[6,2],[17,3],[17,2],[17,2],[17,1],[17,1],[26,
|
||||
2],[26,1],[29,1],[29,1],[29,1],[29,1],[29,1],[27,1],[33,2],[33,1],[34,3],[34,3],[34,3],[34,3],[34,3],[25,1],[21,1],[38,3],[38,1]],performAction:function(a,b,c,d,e,f){a=f.length-1;switch(e){case 1:return f[a-1];case 2:this.$=new d.ProgramNode([],f[a]);break;case 3:this.$=new d.ProgramNode(f[a-2],f[a]);break;case 4:this.$=new d.ProgramNode(f[a-1],[]);break;case 5:this.$=new d.ProgramNode(f[a]);break;case 6:this.$=new d.ProgramNode([],[]);break;case 7:this.$=new d.ProgramNode([]);break;case 8:this.$=
|
||||
[f[a]];break;case 9:f[a-1].push(f[a]);this.$=f[a-1];break;case 10:this.$=new d.BlockNode(f[a-2],f[a-1].inverse,f[a-1],f[a]);break;case 11:this.$=new d.BlockNode(f[a-2],f[a-1],f[a-1].inverse,f[a]);break;case 12:this.$=f[a];break;case 13:this.$=f[a];break;case 14:this.$=new d.ContentNode(f[a]);break;case 15:this.$=new d.CommentNode(f[a]);break;case 16:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1]);break;case 17:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1]);break;case 18:this.$=f[a-1];break;case 19:this.$=
|
||||
new d.MustacheNode(f[a-1][0],f[a-1][1]);break;case 20:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1],!0);break;case 21:this.$=new d.PartialNode(f[a-1]);break;case 22:this.$=new d.PartialNode(f[a-2],f[a-1]);break;case 24:this.$=[[f[a-2]].concat(f[a-1]),f[a]];break;case 25:this.$=[[f[a-1]].concat(f[a]),null];break;case 26:this.$=[[f[a-1]],f[a]];break;case 27:this.$=[[f[a]],null];break;case 28:this.$=[[new d.DataNode(f[a])],null];break;case 29:f[a-1].push(f[a]);this.$=f[a-1];break;case 30:this.$=[f[a]];
|
||||
break;case 31:this.$=f[a];break;case 32:this.$=new d.StringNode(f[a]);break;case 33:this.$=new d.IntegerNode(f[a]);break;case 34:this.$=new d.BooleanNode(f[a]);break;case 35:this.$=new d.DataNode(f[a]);break;case 36:this.$=new d.HashNode(f[a]);break;case 37:f[a-1].push(f[a]);this.$=f[a-1];break;case 38:this.$=[f[a]];break;case 39:this.$=[f[a-2],f[a]];break;case 40:this.$=[f[a-2],new d.StringNode(f[a])];break;case 41:this.$=[f[a-2],new d.IntegerNode(f[a])];break;case 42:this.$=[f[a-2],new d.BooleanNode(f[a])];
|
||||
break;case 43:this.$=[f[a-2],new d.DataNode(f[a])];break;case 44:this.$=new d.PartialNameNode(f[a]);break;case 45:this.$=new d.IdNode(f[a]);break;case 46:f[a-2].push(f[a]);this.$=f[a-2];break;case 47:this.$=[f[a]]}},table:[{3:1,4:2,5:[2,7],6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],22:[1,14],23:[1,15],24:[1,16]},{1:[3]},{5:[1,17]},{5:[2,6],7:18,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,6],22:[1,14],23:[1,15],24:[1,16]},{5:[2,5],6:20,8:21,9:7,
|
||||
11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,5],22:[1,14],23:[1,15],24:[1,16]},{17:23,18:[1,22],21:24,28:[1,25],35:[1,27],38:26},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{4:28,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],24:[1,16]},{4:29,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],24:[1,16]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],
|
||||
19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{17:30,21:24,28:[1,25],35:[1,27],38:26},{17:31,21:24,28:[1,25],35:[1,27],38:26},{17:32,21:24,28:[1,25],35:[1,27],38:26},{25:33,37:[1,34]},{1:[2,1]},{5:[2,2],8:21,9:7,11:8,12:9,13:10,
|
||||
14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,2],22:[1,14],23:[1,15],24:[1,16]},{17:23,21:24,28:[1,25],35:[1,27],38:26},{5:[2,4],7:35,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,4],22:[1,14],23:[1,15],24:[1,16]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,23],14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],24:[2,23]},{18:[1,36]},{18:[2,27],21:41,26:37,27:38,28:[1,45],29:39,30:[1,42],31:[1,43],32:[1,44],33:40,
|
||||
34:46,35:[1,47],38:26},{18:[2,28]},{18:[2,45],28:[2,45],30:[2,45],31:[2,45],32:[2,45],35:[2,45],39:[1,48]},{18:[2,47],28:[2,47],30:[2,47],31:[2,47],32:[2,47],35:[2,47],39:[2,47]},{10:49,20:[1,50]},{10:51,20:[1,50]},{18:[1,52]},{18:[1,53]},{18:[1,54]},{18:[1,55],21:56,35:[1,27],38:26},{18:[2,44],35:[2,44]},{5:[2,3],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,3],22:[1,14],23:[1,15],24:[1,16]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},
|
||||
{18:[2,25],21:41,27:57,28:[1,45],29:58,30:[1,42],31:[1,43],32:[1,44],33:40,34:46,35:[1,47],38:26},{18:[2,26]},{18:[2,30],28:[2,30],30:[2,30],31:[2,30],32:[2,30],35:[2,30]},{18:[2,36],34:59,35:[1,60]},{18:[2,31],28:[2,31],30:[2,31],31:[2,31],32:[2,31],35:[2,31]},{18:[2,32],28:[2,32],30:[2,32],31:[2,32],32:[2,32],35:[2,32]},{18:[2,33],28:[2,33],30:[2,33],31:[2,33],32:[2,33],35:[2,33]},{18:[2,34],28:[2,34],30:[2,34],31:[2,34],32:[2,34],35:[2,34]},{18:[2,35],28:[2,35],30:[2,35],31:[2,35],32:[2,35],35:[2,
|
||||
35]},{18:[2,38],35:[2,38]},{18:[2,47],28:[2,47],30:[2,47],31:[2,47],32:[2,47],35:[2,47],36:[1,61],39:[2,47]},{35:[1,62]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{21:63,35:[1,27],38:26},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,
|
||||
20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],24:[2,21]},{18:[1,64]},{18:[2,24]},{18:[2,29],28:[2,29],30:[2,29],31:[2,29],32:[2,29],35:[2,29]},{18:[2,37],35:[2,37]},{36:[1,61]},{21:65,28:[1,69],30:[1,66],31:[1,67],32:[1,68],35:[1,27],38:26},{18:[2,46],28:[2,46],30:[2,46],31:[2,46],32:[2,46],35:[2,46],39:[2,46]},{18:[1,70]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],
|
||||
22:[2,22],23:[2,22],24:[2,22]},{18:[2,39],35:[2,39]},{18:[2,40],35:[2,40]},{18:[2,41],35:[2,41]},{18:[2,42],35:[2,42]},{18:[2,43],35:[2,43]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]}],defaultActions:{17:[2,1],25:[2,28],38:[2,26],57:[2,24]},parseError:function(a){throw Error(a);},parse:function(a){var b=[0],c=[null],d=[],e=this.table,f="",h=0,g=0,m=0;this.lexer.setInput(a);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;"undefined"==
|
||||
typeof this.lexer.yylloc&&(this.lexer.yylloc={});a=this.lexer.yylloc;d.push(a);var s=this.lexer.options&&this.lexer.options.ranges;"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var k,p,r,l,u={},q,n;;){r=b[b.length-1];if(this.defaultActions[r])l=this.defaultActions[r];else{if(null===k||"undefined"==typeof k)k=void 0,k=this.lexer.lex()||1,"number"!==typeof k&&(k=this.symbols_[k]||k);l=e[r]&&e[r][k]}if("undefined"===typeof l||!l.length||!l[0]){var t="";if(!m){n=[];
|
||||
for(q in e[r])this.terminals_[q]&&2<q&&n.push("'"+this.terminals_[q]+"'");t=this.lexer.showPosition?"Parse error on line "+(h+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+n.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(h+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'");this.parseError(t,{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:a,expected:n})}}if(l[0]instanceof Array&&1<l.length)throw Error("Parse Error: multiple actions possible at state: "+
|
||||
r+", token: "+k);switch(l[0]){case 1:b.push(k);c.push(this.lexer.yytext);d.push(this.lexer.yylloc);b.push(l[1]);k=null;p?(k=p,p=null):(g=this.lexer.yyleng,f=this.lexer.yytext,h=this.lexer.yylineno,a=this.lexer.yylloc,0<m&&m--);break;case 2:n=this.productions_[l[1]][1];u.$=c[c.length-n];u._$={first_line:d[d.length-(n||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(n||1)].first_column,last_column:d[d.length-1].last_column};s&&(u._$.range=[d[d.length-(n||1)].range[0],d[d.length-
|
||||
1].range[1]]);r=this.performAction.call(u,f,g,h,this.yy,l[1],c,d);if("undefined"!==typeof r)return r;n&&(b=b.slice(0,-2*n),c=c.slice(0,-1*n),d=d.slice(0,-1*n));b.push(this.productions_[l[1]][0]);c.push(u.$);d.push(u._$);l=e[b[b.length-2]][b[b.length-1]];b.push(l);break;case 3:return!0}}return!0},lexer:{EOF:1,parseError:function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a);},setInput:function(a){this._input=a;this._more=this._less=this.done=!1;this.yylineno=this.yyleng=
|
||||
0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};this.options.ranges&&(this.yylloc.range=[0,0]);this.offset=0;return this},input:function(){var a=this._input[0];this.yytext+=a;this.yyleng++;this.offset++;this.match+=a;this.matched+=a;a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++;this.options.ranges&&this.yylloc.range[1]++;this._input=this._input.slice(1);return a},
|
||||
unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-b-1);this.offset-=b;a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);c.length-1&&(this.yylineno-=c.length-1);var d=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===
|
||||
a.length?this.yylloc.first_column:0)+a[a.length-c.length].length-c[0].length:this.yylloc.first_column-b};this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-b]);return this},more:function(){this._more=!0;return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(20<a.length?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;20>a.length&&(a+=this._input.substr(0,
|
||||
20-a.length));return(a.substr(0,20)+(20<a.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c;this._more||(this.match=this.yytext="");for(var d=this._currentRules(),e=0;e<d.length;e++)if((b=this._input.match(this.rules[d[e]]))&&(!a||b[0].length>a[0].length))if(a=b,c=e,!this.options.flex)break;if(a){if(b=a[0].match(/(?:\r\n?|\n).*/g))this.yylineno+=
|
||||
b.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length};this.yytext+=a[0];this.match+=a[0];this.matches=a;this.yyleng=this.yytext.length;this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]);this._more=!1;this._input=this._input.slice(a[0].length);this.matched+=a[0];a=this.performAction.call(this,this.yy,
|
||||
this,d[c],this.conditionStack[this.conditionStack.length-1]);this.done&&this._input&&(this.done=!1);if(a)return a}else return""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!==typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-
|
||||
1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)},options:{},performAction:function(a,b,c){switch(c){case 0:return b.yytext="\\",14;case 1:"\\"!==b.yytext.slice(-1)&&this.begin("mu");"\\"===b.yytext.slice(-1)&&(b.yytext=b.yytext.substr(0,b.yyleng-1),this.begin("emu"));if(b.yytext)return 14;break;case 2:return 14;case 3:return"\\"!==b.yytext.slice(-1)&&this.popState(),"\\"===b.yytext.slice(-1)&&(b.yytext=b.yytext.substr(0,
|
||||
b.yyleng-1)),14;case 4:return b.yytext=b.yytext.substr(0,b.yyleng-4),this.popState(),15;case 5:return this.begin("par"),24;case 6:return 16;case 7:return 20;case 8:return 19;case 9:return 19;case 10:return 23;case 11:return 23;case 12:this.popState();this.begin("com");break;case 13:return b.yytext=b.yytext.substr(3,b.yyleng-5),this.popState(),15;case 14:return 22;case 15:return 36;case 16:return 35;case 17:return 35;case 18:return 39;case 20:return this.popState(),18;case 21:return this.popState(),
|
||||
18;case 22:return b.yytext=b.yytext.substr(1,b.yyleng-2).replace(/\\"/g,'"'),30;case 23:return b.yytext=b.yytext.substr(1,b.yyleng-2).replace(/\\'/g,"'"),30;case 24:return b.yytext=b.yytext.substr(1),28;case 25:return 32;case 26:return 32;case 27:return 31;case 28:return 35;case 29:return b.yytext=b.yytext.substr(1,b.yyleng-2),35;case 30:return"INVALID";case 32:return this.popState(),37;case 33: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:[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,30,33],inclusive:!1},emu:{rules:[3],inclusive:!1},com:{rules:[4],inclusive:!1},par:{rules:[31,32],inclusive:!1},INITIAL:{rules:[0,1,2,33],inclusive:!0}}}};m.prototype=v;v.Parser=m;m=new m;e.Parser=m;e.parse=function(a){if(a.constructor===e.AST.ProgramNode)return a;e.Parser.yy=e.AST;return e.Parser.parse(a)};e.AST={};e.AST.ProgramNode=function(a,b){this.type="program";this.statements=a;b&&(this.inverse=new e.AST.ProgramNode(b))};
|
||||
e.AST.MustacheNode=function(a,b,c){this.type="mustache";this.escaped=!c;this.hash=b;c=this.id=a[0];a=this.params=a.slice(1);this.isHelper=(this.eligibleHelper=c.isSimple)&&(a.length||b)};e.AST.PartialNode=function(a,b){this.type="partial";this.partialName=a;this.context=b};e.AST.BlockNode=function(a,b,c,d){var j=a.id;if(j.original!==d.original)throw new e.Exception(j.original+" doesn't match "+d.original);this.type="block";this.mustache=a;this.program=b;if((this.inverse=c)&&!this.program)this.isInverse=
|
||||
!0};e.AST.ContentNode=function(a){this.type="content";this.string=a};e.AST.HashNode=function(a){this.type="hash";this.pairs=a};e.AST.IdNode=function(a){this.type="ID";this.original=a.join(".");for(var b=[],c=0,d=0,j=a.length;d<j;d++){var f=a[d];if(".."===f||"."===f||"this"===f){if(0<b.length)throw new e.Exception("Invalid path: "+this.original);".."===f?c++:this.isScoped=!0}else b.push(f)}this.parts=b;this.string=b.join(".");this.depth=c;this.isSimple=1===a.length&&!this.isScoped&&0===c;this.stringModeValue=
|
||||
this.string};e.AST.PartialNameNode=function(a){this.type="PARTIAL_NAME";this.name=a};e.AST.DataNode=function(a){this.type="DATA";this.id=a};e.AST.StringNode=function(a){this.type="STRING";this.stringModeValue=this.string=a};e.AST.IntegerNode=function(a){this.type="INTEGER";this.integer=a;this.stringModeValue=Number(a)};e.AST.BooleanNode=function(a){this.type="BOOLEAN";this.bool=a;this.stringModeValue="true"===a};e.AST.CommentNode=function(a){this.type="comment";this.comment=a};var x="description fileName lineNumber message name number stack".split(" ");
|
||||
e.Exception=function(a){for(var b=Error.prototype.constructor.apply(this,arguments),c=0;c<x.length;c++)this[x[c]]=b[x[c]]};e.Exception.prototype=Error();e.SafeString=function(a){this.string=a};e.SafeString.prototype.toString=function(){return this.string.toString()};var A={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},B=/[&<>"'`]/g,C=/[&<>"'`]/,D=function(a){return A[a]||"&"};e.Utils={extend:function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},escapeExpression:function(a){if(a instanceof
|
||||
e.SafeString)return a.toString();if(null==a||!1===a)return"";a=a.toString();return!C.test(a)?a:a.replace(B,D)},isEmpty:function(a){return!a&&0!==a?!0:"[object Array]"===q.call(a)&&0===a.length?!0:!1}};var w=e.Compiler=function(){},s=e.JavaScriptCompiler=function(){};w.prototype={compiler:w,disassemble:function(){for(var a=this.opcodes,b,c=[],d,e,f=0,h=a.length;f<h;f++)if(b=a[f],"DECLARE"===b.opcode)c.push("DECLARE "+b.name+"="+b.value);else{d=[];for(var g=0;g<b.args.length;g++)e=b.args[g],"string"===
|
||||
typeof e&&(e='"'+e.replace("\n","\\n")+'"'),d.push(e);c.push(b.opcode+" "+d.join(" "))}return c.join("\n")},equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c<b;c++){var d=this.opcodes[c],e=a.opcodes[c];if(d.opcode!==e.opcode||d.args.length!==e.args.length)return!1;for(var f=0;f<d.args.length;f++)if(d.args[f]!==e.args[f])return!1}b=this.children.length;if(a.children.length!==b)return!1;for(c=0;c<b;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},
|
||||
guid:0,compile:function(a,b){this.children=[];this.depths={list:[]};this.options=b;var c=this.options.knownHelpers;this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0};if(c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.program(a)},accept:function(a){return this[a.type](a)},program:function(a){a=a.statements;var b;this.opcodes=[];for(var c=0,d=a.length;c<d;c++)b=a[c],this[b.type](b);this.isSimple=1===d;this.depths.list=this.depths.list.sort(function(a,
|
||||
b){return a-b});return this},compileProgram:function(a){a=(new this.compiler).compile(a,this.options);var b=this.guid++,c;this.usePartial=this.usePartial||a.usePartial;this.children[b]=a;for(var d=0,e=a.depths.list.length;d<e;d++)c=a.depths.list[d],2>c||this.addDepth(c-1);return b},block:function(a){var b=a.mustache,c=a.program;a=a.inverse;c&&(c=this.compileProgram(c));a&&(a=this.compileProgram(a));var d=this.classifyMustache(b);"helper"===d?this.helperMustache(b,c,a):"simple"===d?(this.simpleMustache(b),
|
||||
this.opcode("pushProgram",c),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousMustache(b,c,a),this.opcode("pushProgram",c),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(a){a=a.pairs;var b,c;this.opcode("pushHash");for(var d=0,e=a.length;d<e;d++)b=a[d],c=b[1],this.options.stringParams?(c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",
|
||||
c.stringModeValue,c.type)):this.accept(c),this.opcode("assignToHash",b[0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0;a.context?this.ID(a.context):this.opcode("push","depth0");this.opcode("invokePartial",b.name);this.opcode("append")},content:function(a){this.opcode("appendContent",a.string)},mustache:function(a){var b=this.options,c=this.classifyMustache(a);"simple"===c?this.simpleMustache(a):"helper"===c?this.helperMustache(a):this.ambiguousMustache(a);a.escaped&&
|
||||
!b.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousMustache:function(a,b,c){a=a.id;var d=a.parts[0],e=null!=b||null!=c;this.opcode("getContext",a.depth);this.opcode("pushProgram",b);this.opcode("pushProgram",c);this.opcode("invokeAmbiguous",d,e)},simpleMustache:function(a){a=a.id;"DATA"===a.type?this.DATA(a):a.parts.length?this.ID(a):(this.addDepth(a.depth),this.opcode("getContext",a.depth),this.opcode("pushContext"));this.opcode("resolvePossibleLambda")},helperMustache:function(a,
|
||||
b,c){b=this.setupFullMustacheParams(a,b,c);a=a.id.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",b.length,a);else{if(this.options.knownHelpersOnly)throw Error("You specified knownHelpersOnly, but used the unknown helper "+a);this.opcode("invokeHelper",b.length,a)}},ID:function(a){this.addDepth(a.depth);this.opcode("getContext",a.depth);a.parts[0]?this.opcode("lookupOnContext",a.parts[0]):this.opcode("pushContext");for(var b=1,c=a.parts.length;b<c;b++)this.opcode("lookup",
|
||||
a.parts[b])},DATA:function(a){this.options.data=!0;this.opcode("lookupData",a.id)},STRING:function(a){this.opcode("pushString",a.string)},INTEGER:function(a){this.opcode("pushLiteral",a.integer)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:[].slice.call(arguments,1)})},declare:function(a,b){this.opcodes.push({opcode:"DECLARE",name:a,value:b})},addDepth:function(a){if(isNaN(a))throw Error("EWOT");0!==a&&!this.depths[a]&&
|
||||
(this.depths[a]=!0,this.depths.list.push(a))},classifyMustache:function(a){var b=a.isHelper,c=a.eligibleHelper,d=this.options;c&&!b&&(d.knownHelpers[a.id.parts[0]]?b=!0:d.knownHelpersOnly&&(c=!1));return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=a.length,c;b--;)if(c=a[b],this.options.stringParams)c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",c.stringModeValue,c.type);else this[c.type](c)},setupMustacheParams:function(a){var b=
|
||||
a.params;this.pushParams(b);a.hash?this.hash(a.hash):this.opcode("emptyHash");return b},setupFullMustacheParams:function(a,b,c){var d=a.params;this.pushParams(d);this.opcode("pushProgram",b);this.opcode("pushProgram",c);a.hash?this.hash(a.hash):this.opcode("emptyHash");return d}};var t=function(a){this.value=a};s.prototype={nameLookup:function(a,b){return/^[0-9]+$/.test(b)?a+"["+b+"]":s.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},appendToBuffer:function(a){return this.environment.isSimple?
|
||||
"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a;this.options=b||{};e.log(e.logger.DEBUG,this.environment.disassemble()+"\n\n");this.name=this.environment.name;this.isChild=!!c;this.context=c||{programs:[],environments:[],aliases:{}};this.preamble();this.stackSlot=0;this.stackVars=[];this.registers={list:[]};this.compileStack=[];
|
||||
this.inlineStack=[];this.compileChildren(a,b);a=a.opcodes;this.i=0;for(y=a.length;this.i<y;this.i++)b=a[this.i],"DECLARE"===b.opcode?this[b.name]=b.value:this[b.opcode].apply(this,b.args);return this.createFunctionContext(d)},nextOpcode:function(){return this.environment.opcodes[this.i+1]},eat:function(){this.i+=1},preamble:function(){var a=[];if(this.isChild)a.push("");else{var b=this.namespace,c="helpers = helpers || "+b+".helpers;";this.environment.usePartial&&(c=c+" partials = partials || "+b+
|
||||
".partials;");this.options.data&&(c+=" data = data || {};");a.push(c)}this.environment.isSimple?a.push(""):a.push(", buffer = "+this.initializeBuffer());this.lastContext=0;this.source=a},createFunctionContext:function(a){var b=this.stackVars.concat(this.registers.list);0<b.length&&(this.source[1]=this.source[1]+", "+b.join(", "));if(!this.isChild)for(var c in this.context.aliases)this.source[1]=this.source[1]+", "+c+"="+this.context.aliases[c];this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+
|
||||
";");this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n");this.environment.isSimple||this.source.push("return buffer;");b=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];c=0;for(var d=this.environment.depths.list.length;c<d;c++)b.push("depth"+this.environment.depths.list[c]);c=this.mergeSource();this.isChild||(d=e.COMPILER_REVISION,c="this.compilerInfo = ["+d+",'"+e.REVISION_CHANGES[d]+"'];\n"+c);if(a)return b.push(c),Function.apply(this,b);
|
||||
a="function "+(this.name||"")+"("+b.join(",")+") {\n "+c+"}";e.log(e.logger.DEBUG,a+"\n\n");return a},mergeSource:function(){for(var a="",b,c=0,d=this.source.length;c<d;c++){var e=this.source[c];e.appendToBuffer?b=b?b+"\n + "+e.content:e.content:(b&&(a+="buffer += "+b+";\n ",b=p),a+=e+"\n ")}return a},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=["depth0"];this.setupParams(0,a);this.replaceStack(function(b){a.splice(1,0,b);return"blockHelperMissing.call("+
|
||||
a.join(", ")+")"})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=["depth0"];this.setupParams(0,a);var b=this.topStack();a.splice(1,0,b);a[a.length-1]="options";this.source.push("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.source.push(this.appendToBuffer(this.quotedString(a)))},append:function(){this.flushInline();var a=this.popStack();this.source.push("if("+a+" || "+
|
||||
a+" === 0) { "+this.appendToBuffer(a)+" }");this.environment.isSimple&&this.source.push("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression";this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext!==a&&(this.lastContext=a)},lookupOnContext:function(a){this.push(this.nameLookup("depth"+this.lastContext,a,"context"))},pushContext:function(){this.pushStackLiteral("depth"+
|
||||
this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"';this.replaceStack(function(a){return"typeof "+a+" === functionType ? "+a+".apply(depth0) : "+a})},lookup:function(a){this.replaceStack(function(b){return b+" == null || "+b+" === false ? "+b+" : "+this.nameLookup(b,a,"context")})},lookupData:function(a){this.push(this.nameLookup("data",a,"data"))},pushStringParam:function(a,b){this.pushStackLiteral("depth"+this.lastContext);this.pushString(b);"string"===
|
||||
typeof a?this.pushString(a):this.pushStackLiteral(a)},emptyHash:function(){this.pushStackLiteral("{}");this.options.stringParams&&(this.register("hashTypes","{}"),this.register("hashContexts","{}"))},pushHash:function(){this.hash={values:[],types:[],contexts:[]}},popHash:function(){var a=this.hash;this.hash=p;this.options.stringParams&&(this.register("hashContexts","{"+a.contexts.join(",")+"}"),this.register("hashTypes","{"+a.types.join(",")+"}"));this.push("{\n "+a.values.join(",\n ")+"\n }")},
|
||||
pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){this.inlineStack.push(a);return a},pushLiteral:function(a){this.pushStackLiteral(a)},pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},invokeHelper:function(a,b){this.context.aliases.helperMissing="helpers.helperMissing";var c=this.lastHelper=this.setupHelper(a,b,!0);this.push(c.name);this.replaceStack(function(a){return a+" ? "+a+".call("+c.callParams+") : helperMissing.call("+
|
||||
c.helperMissingParams+")"})},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.context.aliases.functionType='"function"';this.pushStackLiteral("{}");var c=this.setupHelper(0,a,b),d=this.lastHelper=this.nameLookup("helpers",a,"helper"),e=this.nameLookup("depth"+this.lastContext,a,"context"),f=this.nextStack();this.source.push("if ("+f+" = "+d+") { "+f+" = "+f+".call("+c.callParams+"); }");this.source.push("else { "+
|
||||
f+" = "+e+"; "+f+" = typeof "+f+" === functionType ? "+f+".apply(depth0) : "+f+"; }")},invokePartial:function(a){a=[this.nameLookup("partials",a,"partial"),"'"+a+"'",this.popStack(),"helpers","partials"];this.options.data&&a.push("data");this.context.aliases.self="this";this.push("self.invokePartial("+a.join(", ")+")")},assignToHash:function(a){var b=this.popStack(),c,d;this.options.stringParams&&(d=this.popStack(),c=this.popStack());var e=this.hash;c&&e.contexts.push("'"+a+"': "+c);d&&e.types.push("'"+
|
||||
a+"': "+d);e.values.push("'"+a+"': ("+b+")")},compiler:s,compileChildren:function(a,b){for(var c=a.children,d,e,f=0,h=c.length;f<h;f++){d=c[f];e=new this.compiler;var g=this.matchExistingProgram(d);null==g?(this.context.programs.push(""),g=this.context.programs.length,d.index=g,d.name="program"+g,this.context.programs[g]=e.compile(d,b,this.context),this.context.environments[g]=d):(d.index=g,d.name="program"+g)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;b<c;b++){var d=
|
||||
this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){this.context.aliases.self="this";if(null==a)return"self.noop";var b=this.environment.children[a];a=b.depths.list;for(var c=[b.index,b.name,"data"],d=0,e=a.length;d<e;d++)b=a[d],1===b?c.push("depth0"):c.push("depth"+(b-1));return(0===a.length?"self.program(":"self.programWithDepth(")+c.join(", ")+")"},register:function(a,b){this.useRegister(a);this.source.push(a+" = "+b+";")},useRegister:function(a){this.registers[a]||
|
||||
(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new t(a))},pushStack:function(a){this.flushInline();var b=this.incrStack();a&&this.source.push(b+" = "+a+";");this.compileStack.push(b);return b},replaceStack:function(a){var b="",c=this.isInline(),d;c?(d=this.popStack(!0),d instanceof t?d=d.value:(b=this.stackSlot?this.topStackName():this.incrStack(),b="("+this.push(b)+" = "+d+"),",d=this.topStack())):d=this.topStack();a=a.call(this,d);c?((this.inlineStack.length||
|
||||
this.compileStack.length)&&this.popStack(),this.push("("+b+a+")")):(/^stack/.test(d)||(d=this.nextStack()),this.source.push(d+" = ("+b+a+");"));return d},nextStack:function(){return this.pushStack()},incrStack:function(){this.stackSlot++;this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,c=a.length;b<
|
||||
c;b++){var d=a[b];d instanceof t?this.compileStack.push(d):this.pushStack(d)}}},isInline:function(){return this.inlineStack.length},popStack:function(a){var b=this.isInline(),c=(b?this.inlineStack:this.compileStack).pop();if(!a&&c instanceof t)return c.value;b||this.stackSlot--;return c},topStack:function(a){var b=this.isInline()?this.inlineStack:this.compileStack,b=b[b.length-1];return!a&&b instanceof t?b.value:b},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,
|
||||
"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(a,b,c){var d=[];this.setupParams(a,d,c);a=this.nameLookup("helpers",b,"helper");return{params:d,name:a,callParams:["depth0"].concat(d).join(", "),helperMissingParams:c&&["depth0",this.quotedString(b)].concat(d).join(", ")}},setupParams:function(a,b,c){var d=[],e=[],f=[],h,g;d.push("hash:"+this.popStack());h=this.popStack();if((g=this.popStack())||h)g||(this.context.aliases.self="this",g=
|
||||
"self.noop"),h||(this.context.aliases.self="this",h="self.noop"),d.push("inverse:"+h),d.push("fn:"+g);for(g=0;g<a;g++)h=this.popStack(),b.push(h),this.options.stringParams&&(f.push(this.popStack()),e.push(this.popStack()));this.options.stringParams&&(d.push("contexts:["+e.join(",")+"]"),d.push("types:["+f.join(",")+"]"),d.push("hashContexts:hashContexts"),d.push("hashTypes:hashTypes"));this.options.data&&d.push("data:data");d="{"+d.join(",")+"}";c?(this.register("options",d),b.push("options")):b.push(d);
|
||||
return b.join(", ")}};m="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ");for(var v=s.RESERVED_WORDS={},z=0,y=m.length;z<y;z++)v[m[z]]=!0;s.isValidJavaScriptVariableName=
|
||||
function(a){return!s.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(a)?!0:!1};e.precompile=function(a,b){if(null==a||"string"!==typeof a&&a.constructor!==e.AST.ProgramNode)throw new e.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{};"data"in b||(b.data=!0);var c=e.parse(a),c=(new w).compile(c,b);return(new s).compile(c,b)};e.compile=function(a,b){if(null==a||"string"!==typeof a&&a.constructor!==e.AST.ProgramNode)throw new e.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+
|
||||
a);b=b||{};"data"in b||(b.data=!0);var c;return function(d,j){if(!c){var f=e.parse(a),f=(new w).compile(f,b),f=(new s).compile(f,b,p,!0);c=e.template(f)}return c.call(this,d,j)}};e.VM={template:function(a){var b={escapeExpression:e.Utils.escapeExpression,invokePartial:e.VM.invokePartial,programs:[],program:function(a,b,j){var f=this.programs[a];j?f=e.VM.program(a,b,j):f||(f=this.programs[a]=e.VM.program(a,b));return f},programWithDepth:e.VM.programWithDepth,noop:e.VM.noop,compilerInfo:null};return function(c,
|
||||
d){d=d||{};var j=a.call(b,e,c,d.helpers,d.partials,d.data),f=b.compilerInfo||[],h=f[0]||1,g=e.COMPILER_REVISION;if(h!==g){if(h<g)throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+e.REVISION_CHANGES[g]+") or downgrade your runtime to an older version ("+e.REVISION_CHANGES[h]+").";throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+
|
||||
f[1]+").";}return j}},programWithDepth:function(a,b,c){var d=Array.prototype.slice.call(arguments,3),e=function(a,e){e=e||{};return b.apply(this,[a,e.data||c].concat(d))};e.program=a;e.depth=d.length;return e},program:function(a,b,c){var d=function(a,d){d=d||{};return b(a,d.data||c)};d.program=a;d.depth=0;return d},noop:function(){return""},invokePartial:function(a,b,c,d,j,f){d={helpers:d,partials:j,data:f};if(a===p)throw new e.Exception("The partial "+b+" could not be found");if(a instanceof Function)return a(c,
|
||||
d);if(e.compile)return j[b]=e.compile(a,{data:f!==p}),j[b](c,d);throw new e.Exception("The partial "+b+" could not be compiled when running in runtime-only mode");}};e.template=e.VM.template})(Handlebars);
|
||||
(function(e,m){e.VERSION="1.0.0";e.COMPILER_REVISION=4;e.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};e.helpers={};e.partials={};var q=Object.prototype.toString;e.registerHelper=function(a,b,c){if("[object Object]"===q.call(a)){if(c||b)throw new e.Exception("Arg not supported with multiple helpers");e.Utils.extend(this.helpers,a)}else c&&(b.not=c),this.helpers[a]=b};e.registerPartial=function(a,b){"[object Object]"===q.call(a)?e.Utils.extend(this.partials,a):
|
||||
this.partials[a]=b};e.registerHelper("helperMissing",function(a){if(2===arguments.length)return m;throw Error("Missing helper: '"+a+"'");});e.registerHelper("blockHelperMissing",function(a,b){var c=b.inverse||function(){},d=b.fn,h=q.call(a);"[object Function]"===h&&(a=a.call(this));return!0===a?d(this):!1===a||null==a?c(this):"[object Array]"===h?0<a.length?e.helpers.each(a,b):c(this):d(a)});e.K=function(){};e.createFrame=Object.create||function(a){e.K.prototype=a;a=new e.K;e.K.prototype=null;return a};
|
||||
e.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,methodMap:{"0":"debug",1:"info",2:"warn",3:"error"},log:function(a,b){if(e.logger.level<=a){var c=e.logger.methodMap[a];"undefined"!==typeof console&&console[c]&&console[c].call(console,b)}}};e.log=function(a,b){e.logger.log(a,b)};e.registerHelper("each",function(a,b){var c=b.fn,d=b.inverse,h=0,f="",g;"[object Function]"===q.call(a)&&(a=a.call(this));b.data&&(g=e.createFrame(b.data));if(a&&"object"===typeof a)if(a instanceof Array)for(var j=a.length;h<
|
||||
j;h++)g&&(g.index=h),f+=c(a[h],{data:g});else for(j in a)a.hasOwnProperty(j)&&(g&&(g.key=j),f+=c(a[j],{data:g}),h++);0===h&&(f=d(this));return f});e.registerHelper("if",function(a,b){"[object Function]"===q.call(a)&&(a=a.call(this));return!a||e.Utils.isEmpty(a)?b.inverse(this):b.fn(this)});e.registerHelper("unless",function(a,b){return e.helpers["if"].call(this,a,{fn:b.inverse,inverse:b.fn})});e.registerHelper("with",function(a,b){"[object Function]"===q.call(a)&&(a=a.call(this));if(!e.Utils.isEmpty(a))return b.fn(a)});
|
||||
e.registerHelper("log",function(a,b){var c=b.data&&null!=b.data.level?parseInt(b.data.level,10):1;e.log(c,a)});var n;n=function(){this.yy={}};var u={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,simpleInverse:6,statements:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,CLOSE_UNESCAPED:24,OPEN_PARTIAL:25,partialName:26,params:27,
|
||||
hash:28,dataName:29,param:30,STRING:31,INTEGER:32,BOOLEAN:33,hashSegments:34,hashSegment:35,ID:36,EQUALS:37,DATA:38,pathSegments:39,SEP:40,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"CLOSE_UNESCAPED",25:"OPEN_PARTIAL",31:"STRING",32:"INTEGER",33:"BOOLEAN",36:"ID",37:"EQUALS",38:"DATA",40:"SEP"},productions_:[0,[3,2],[4,2],[4,3],[4,2],[4,1],[4,1],[4,0],[7,1],[7,2],[8,3],[8,
|
||||
3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[6,2],[17,3],[17,2],[17,2],[17,1],[17,1],[27,2],[27,1],[30,1],[30,1],[30,1],[30,1],[30,1],[28,1],[34,2],[34,1],[35,3],[35,3],[35,3],[35,3],[35,3],[26,1],[26,1],[26,1],[29,2],[21,1],[39,3],[39,1]],performAction:function(a,b,c,d,e,f){a=f.length-1;switch(e){case 1:return f[a-1];case 2:this.$=new d.ProgramNode([],f[a]);break;case 3:this.$=new d.ProgramNode(f[a-2],f[a]);break;case 4:this.$=new d.ProgramNode(f[a-1],[]);break;case 5:this.$=
|
||||
new d.ProgramNode(f[a]);break;case 6:this.$=new d.ProgramNode([],[]);break;case 7:this.$=new d.ProgramNode([]);break;case 8:this.$=[f[a]];break;case 9:f[a-1].push(f[a]);this.$=f[a-1];break;case 10:this.$=new d.BlockNode(f[a-2],f[a-1].inverse,f[a-1],f[a]);break;case 11:this.$=new d.BlockNode(f[a-2],f[a-1],f[a-1].inverse,f[a]);break;case 12:this.$=f[a];break;case 13:this.$=f[a];break;case 14:this.$=new d.ContentNode(f[a]);break;case 15:this.$=new d.CommentNode(f[a]);break;case 16:this.$=new d.MustacheNode(f[a-
|
||||
1][0],f[a-1][1]);break;case 17:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1]);break;case 18:this.$=f[a-1];break;case 19:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1],"&"===f[a-2][2]);break;case 20:this.$=new d.MustacheNode(f[a-1][0],f[a-1][1],!0);break;case 21:this.$=new d.PartialNode(f[a-1]);break;case 22:this.$=new d.PartialNode(f[a-2],f[a-1]);break;case 24:this.$=[[f[a-2]].concat(f[a-1]),f[a]];break;case 25:this.$=[[f[a-1]].concat(f[a]),null];break;case 26:this.$=[[f[a-1]],f[a]];break;case 27:this.$=
|
||||
[[f[a]],null];break;case 28:this.$=[[f[a]],null];break;case 29:f[a-1].push(f[a]);this.$=f[a-1];break;case 30:this.$=[f[a]];break;case 31:this.$=f[a];break;case 32:this.$=new d.StringNode(f[a]);break;case 33:this.$=new d.IntegerNode(f[a]);break;case 34:this.$=new d.BooleanNode(f[a]);break;case 35:this.$=f[a];break;case 36:this.$=new d.HashNode(f[a]);break;case 37:f[a-1].push(f[a]);this.$=f[a-1];break;case 38:this.$=[f[a]];break;case 39:this.$=[f[a-2],f[a]];break;case 40:this.$=[f[a-2],new d.StringNode(f[a])];
|
||||
break;case 41:this.$=[f[a-2],new d.IntegerNode(f[a])];break;case 42:this.$=[f[a-2],new d.BooleanNode(f[a])];break;case 43:this.$=[f[a-2],f[a]];break;case 44:this.$=new d.PartialNameNode(f[a]);break;case 45:this.$=new d.PartialNameNode(new d.StringNode(f[a]));break;case 46:this.$=new d.PartialNameNode(new d.IntegerNode(f[a]));break;case 47:this.$=new d.DataNode(f[a]);break;case 48:this.$=new d.IdNode(f[a]);break;case 49:f[a-2].push({part:f[a],separator:f[a-1]});this.$=f[a-2];break;case 50:this.$=[{part:f[a]}]}},
|
||||
table:[{3:1,4:2,5:[2,7],6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],22:[1,14],23:[1,15],25:[1,16]},{1:[3]},{5:[1,17]},{5:[2,6],7:18,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,6],22:[1,14],23:[1,15],25:[1,16]},{5:[2,5],6:20,8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,5],22:[1,14],23:[1,15],25:[1,16]},{17:23,18:[1,22],21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,
|
||||
8],25:[2,8]},{4:29,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{4:30,6:3,7:4,8:6,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,5],20:[2,7],22:[1,14],23:[1,15],25:[1,16]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],25:[2,12]},{5:[2,13],14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],25:[2,13]},{5:[2,14],14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,
|
||||
14],25:[2,14]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],25:[2,15]},{17:31,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:32,21:24,29:25,36:[1,28],38:[1,27],39:26},{17:33,21:24,29:25,36:[1,28],38:[1,27],39:26},{21:35,26:34,31:[1,36],32:[1,37],36:[1,28],39:26},{1:[2,1]},{5:[2,2],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,2],22:[1,14],23:[1,15],25:[1,16]},{17:23,21:24,29:25,36:[1,28],38:[1,27],39:26},{5:[2,4],7:38,8:6,9:7,11:8,12:9,13:10,
|
||||
14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,4],22:[1,14],23:[1,15],25:[1,16]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],25:[2,9]},{5:[2,23],14:[2,23],15:[2,23],16:[2,23],19:[2,23],20:[2,23],22:[2,23],23:[2,23],25:[2,23]},{18:[1,39]},{18:[2,27],21:44,24:[2,27],27:40,28:41,29:48,30:42,31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,28],24:[2,28]},{18:[2,48],24:[2,48],31:[2,48],32:[2,48],33:[2,48],36:[2,48],38:[2,48],40:[1,51]},{21:52,36:[1,
|
||||
28],39:26},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],38:[2,50],40:[2,50]},{10:53,20:[1,54]},{10:55,20:[1,54]},{18:[1,56]},{18:[1,57]},{24:[1,58]},{18:[1,59],21:60,36:[1,28],39:26},{18:[2,44],36:[2,44]},{18:[2,45],36:[2,45]},{18:[2,46],36:[2,46]},{5:[2,3],8:21,9:7,11:8,12:9,13:10,14:[1,11],15:[1,12],16:[1,13],19:[1,19],20:[2,3],22:[1,14],23:[1,15],25:[1,16]},{14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],25:[2,17]},{18:[2,25],21:44,24:[2,25],28:61,29:48,30:62,
|
||||
31:[1,45],32:[1,46],33:[1,47],34:43,35:49,36:[1,50],38:[1,27],39:26},{18:[2,26],24:[2,26]},{18:[2,30],24:[2,30],31:[2,30],32:[2,30],33:[2,30],36:[2,30],38:[2,30]},{18:[2,36],24:[2,36],35:63,36:[1,64]},{18:[2,31],24:[2,31],31:[2,31],32:[2,31],33:[2,31],36:[2,31],38:[2,31]},{18:[2,32],24:[2,32],31:[2,32],32:[2,32],33:[2,32],36:[2,32],38:[2,32]},{18:[2,33],24:[2,33],31:[2,33],32:[2,33],33:[2,33],36:[2,33],38:[2,33]},{18:[2,34],24:[2,34],31:[2,34],32:[2,34],33:[2,34],36:[2,34],38:[2,34]},{18:[2,35],24:[2,
|
||||
35],31:[2,35],32:[2,35],33:[2,35],36:[2,35],38:[2,35]},{18:[2,38],24:[2,38],36:[2,38]},{18:[2,50],24:[2,50],31:[2,50],32:[2,50],33:[2,50],36:[2,50],37:[1,65],38:[2,50],40:[2,50]},{36:[1,66]},{18:[2,47],24:[2,47],31:[2,47],32:[2,47],33:[2,47],36:[2,47],38:[2,47]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],25:[2,10]},{21:67,36:[1,28],39:26},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],25:[2,11]},{14:[2,16],15:[2,16],16:[2,16],19:[2,
|
||||
16],20:[2,16],22:[2,16],23:[2,16],25:[2,16]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],25:[2,19]},{5:[2,20],14:[2,20],15:[2,20],16:[2,20],19:[2,20],20:[2,20],22:[2,20],23:[2,20],25:[2,20]},{5:[2,21],14:[2,21],15:[2,21],16:[2,21],19:[2,21],20:[2,21],22:[2,21],23:[2,21],25:[2,21]},{18:[1,68]},{18:[2,24],24:[2,24]},{18:[2,29],24:[2,29],31:[2,29],32:[2,29],33:[2,29],36:[2,29],38:[2,29]},{18:[2,37],24:[2,37],36:[2,37]},{37:[1,65]},{21:69,29:73,31:[1,70],32:[1,71],
|
||||
33:[1,72],36:[1,28],38:[1,27],39:26},{18:[2,49],24:[2,49],31:[2,49],32:[2,49],33:[2,49],36:[2,49],38:[2,49],40:[2,49]},{18:[1,74]},{5:[2,22],14:[2,22],15:[2,22],16:[2,22],19:[2,22],20:[2,22],22:[2,22],23:[2,22],25:[2,22]},{18:[2,39],24:[2,39],36:[2,39]},{18:[2,40],24:[2,40],36:[2,40]},{18:[2,41],24:[2,41],36:[2,41]},{18:[2,42],24:[2,42],36:[2,42]},{18:[2,43],24:[2,43],36:[2,43]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],25:[2,18]}],defaultActions:{17:[2,1]},parseError:function(a){throw Error(a);
|
||||
},parse:function(a){var b=[0],c=[null],d=[],e=this.table,f="",g=0,j=0,n=0;this.lexer.setInput(a);this.lexer.yy=this.yy;this.yy.lexer=this.lexer;this.yy.parser=this;"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});a=this.lexer.yylloc;d.push(a);var s=this.lexer.options&&this.lexer.options.ranges;"function"===typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var k,q,r,l,m={},t,p;;){r=b[b.length-1];if(this.defaultActions[r])l=this.defaultActions[r];else{if(null===k||"undefined"==
|
||||
typeof k)k=void 0,k=this.lexer.lex()||1,"number"!==typeof k&&(k=this.symbols_[k]||k);l=e[r]&&e[r][k]}if("undefined"===typeof l||!l.length||!l[0]){var u="";if(!n){p=[];for(t in e[r])this.terminals_[t]&&2<t&&p.push("'"+this.terminals_[t]+"'");u=this.lexer.showPosition?"Parse error on line "+(g+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+p.join(", ")+", got '"+(this.terminals_[k]||k)+"'":"Parse error on line "+(g+1)+": Unexpected "+(1==k?"end of input":"'"+(this.terminals_[k]||k)+"'");this.parseError(u,
|
||||
{text:this.lexer.match,token:this.terminals_[k]||k,line:this.lexer.yylineno,loc:a,expected:p})}}if(l[0]instanceof Array&&1<l.length)throw Error("Parse Error: multiple actions possible at state: "+r+", token: "+k);switch(l[0]){case 1:b.push(k);c.push(this.lexer.yytext);d.push(this.lexer.yylloc);b.push(l[1]);k=null;q?(k=q,q=null):(j=this.lexer.yyleng,f=this.lexer.yytext,g=this.lexer.yylineno,a=this.lexer.yylloc,0<n&&n--);break;case 2:p=this.productions_[l[1]][1];m.$=c[c.length-p];m._$={first_line:d[d.length-
|
||||
(p||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(p||1)].first_column,last_column:d[d.length-1].last_column};s&&(m._$.range=[d[d.length-(p||1)].range[0],d[d.length-1].range[1]]);r=this.performAction.call(m,f,j,g,this.yy,l[1],c,d);if("undefined"!==typeof r)return r;p&&(b=b.slice(0,-2*p),c=c.slice(0,-1*p),d=d.slice(0,-1*p));b.push(this.productions_[l[1]][0]);c.push(m.$);d.push(m._$);l=e[b[b.length-2]][b[b.length-1]];b.push(l);break;case 3:return!0}}return!0},lexer:{EOF:1,
|
||||
parseError:function(a,b){if(this.yy.parser)this.yy.parser.parseError(a,b);else throw Error(a);},setInput:function(a){this._input=a;this._more=this._less=this.done=!1;this.yylineno=this.yyleng=0;this.yytext=this.matched=this.match="";this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};this.options.ranges&&(this.yylloc.range=[0,0]);this.offset=0;return this},input:function(){var a=this._input[0];this.yytext+=a;this.yyleng++;this.offset++;this.match+=a;
|
||||
this.matched+=a;a.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++;this.options.ranges&&this.yylloc.range[1]++;this._input=this._input.slice(1);return a},unput:function(a){var b=a.length,c=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-b-1);this.offset-=b;a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);
|
||||
c.length-1&&(this.yylineno-=c.length-1);var d=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===a.length?this.yylloc.first_column:0)+a[a.length-c.length].length-c[0].length:this.yylloc.first_column-b};this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-b]);return this},more:function(){this._more=!0;return this},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){var a=
|
||||
this.matched.substr(0,this.matched.length-this.match.length);return(20<a.length?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var a=this.match;20>a.length&&(a+=this._input.substr(0,20-a.length));return(a.substr(0,20)+(20<a.length?"...":"")).replace(/\n/g,"")},showPosition:function(){var a=this.pastInput(),b=Array(a.length+1).join("-");return a+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var a,b,c;this._more||(this.match=
|
||||
this.yytext="");for(var d=this._currentRules(),e=0;e<d.length;e++)if((b=this._input.match(this.rules[d[e]]))&&(!a||b[0].length>a[0].length))if(a=b,c=e,!this.options.flex)break;if(a){if(b=a[0].match(/(?:\r\n?|\n).*/g))this.yylineno+=b.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length};this.yytext+=a[0];this.match+=a[0];this.matches=
|
||||
a;this.yyleng=this.yytext.length;this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]);this._more=!1;this._input=this._input.slice(a[0].length);this.matched+=a[0];a=this.performAction.call(this,this.yy,this,d[c],this.conditionStack[this.conditionStack.length-1]);this.done&&this._input&&(this.done=!1);if(a)return a}else return""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,
|
||||
line:this.yylineno})},lex:function(){var a=this.next();return"undefined"!==typeof a?a:this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(a){this.begin(a)},options:{},performAction:function(a,b,c){switch(c){case 0:return b.yytext="\\",14;
|
||||
case 1:"\\"!==b.yytext.slice(-1)&&this.begin("mu");"\\"===b.yytext.slice(-1)&&(b.yytext=b.yytext.substr(0,b.yyleng-1),this.begin("emu"));if(b.yytext)return 14;break;case 2:return 14;case 3:return"\\"!==b.yytext.slice(-1)&&this.popState(),"\\"===b.yytext.slice(-1)&&(b.yytext=b.yytext.substr(0,b.yyleng-1)),14;case 4:return b.yytext=b.yytext.substr(0,b.yyleng-4),this.popState(),15;case 5:return 25;case 6:return 16;case 7:return 20;case 8:return 19;case 9:return 19;case 10:return 23;case 11:return 22;
|
||||
case 12:this.popState();this.begin("com");break;case 13:return b.yytext=b.yytext.substr(3,b.yyleng-5),this.popState(),15;case 14:return 22;case 15:return 37;case 16:return 36;case 17:return 36;case 18:return 40;case 20:return this.popState(),24;case 21:return this.popState(),18;case 22:return b.yytext=b.yytext.substr(1,b.yyleng-2).replace(/\\"/g,'"'),31;case 23:return b.yytext=b.yytext.substr(1,b.yyleng-2).replace(/\\'/g,"'"),31;case 24:return 38;case 25:return 33;case 26:return 33;case 27:return 32;
|
||||
case 28:return 36;case 29:return b.yytext=b.yytext.substr(1,b.yyleng-2),36;case 30:return"INVALID";case 31:return 5}},rules:[/^(?:\\\\(?=(\{\{)))/,/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|$)))/,/^(?:[\s\S]*?--\}\})/,/^(?:\{\{>)/,/^(?:\{\{#)/,/^(?:\{\{\/)/,/^(?:\{\{\^)/,/^(?:\{\{\s*else\b)/,/^(?:\{\{\{)/,/^(?:\{\{&)/,/^(?:\{\{!--)/,/^(?:\{\{![\s\S]*?\}\})/,/^(?:\{\{)/,/^(?:=)/,/^(?:\.(?=[}\/ ]))/,/^(?:\.\.)/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}\}\})/,/^(?:\}\})/,/^(?:"(\\["]|[^"])*")/,
|
||||
/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=[}\s]))/,/^(?:false(?=[}\s]))/,/^(?:-?[0-9]+(?=[}\s]))/,/^(?:[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.]))/,/^(?:\[[^\]]*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[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,30,31],inclusive:!1},emu:{rules:[3],inclusive:!1},com:{rules:[4],inclusive:!1},INITIAL:{rules:[0,1,2,31],inclusive:!0}}}};n.prototype=u;u.Parser=n;n=new n;e.Parser=n;e.parse=function(a){if(a.constructor===e.AST.ProgramNode)return a;
|
||||
e.Parser.yy=e.AST;return e.Parser.parse(a)};e.AST={};e.AST.ProgramNode=function(a,b){this.type="program";this.statements=a;b&&(this.inverse=new e.AST.ProgramNode(b))};e.AST.MustacheNode=function(a,b,c){this.type="mustache";this.escaped=!c;this.hash=b;c=this.id=a[0];a=this.params=a.slice(1);this.isHelper=(this.eligibleHelper=c.isSimple)&&(a.length||b)};e.AST.PartialNode=function(a,b){this.type="partial";this.partialName=a;this.context=b};e.AST.BlockNode=function(a,b,c,d){var h=a.id;if(h.original!==
|
||||
d.original)throw new e.Exception(h.original+" doesn't match "+d.original);this.type="block";this.mustache=a;this.program=b;if((this.inverse=c)&&!this.program)this.isInverse=!0};e.AST.ContentNode=function(a){this.type="content";this.string=a};e.AST.HashNode=function(a){this.type="hash";this.pairs=a};e.AST.IdNode=function(a){this.type="ID";for(var b="",c=[],d=0,h=0,f=a.length;h<f;h++){var g=a[h].part,b=b+((a[h].separator||"")+g);if(".."===g||"."===g||"this"===g){if(0<c.length)throw new e.Exception("Invalid path: "+
|
||||
b);".."===g?d++:this.isScoped=!0}else c.push(g)}this.original=b;this.parts=c;this.string=c.join(".");this.depth=d;this.isSimple=1===a.length&&!this.isScoped&&0===d;this.stringModeValue=this.string};e.AST.PartialNameNode=function(a){this.type="PARTIAL_NAME";this.name=a.original};e.AST.DataNode=function(a){this.type="DATA";this.id=a};e.AST.StringNode=function(a){this.type="STRING";this.original=this.string=this.stringModeValue=a};e.AST.IntegerNode=function(a){this.type="INTEGER";this.original=this.integer=
|
||||
a;this.stringModeValue=Number(a)};e.AST.BooleanNode=function(a){this.type="BOOLEAN";this.bool=a;this.stringModeValue="true"===a};e.AST.CommentNode=function(a){this.type="comment";this.comment=a};var w="description fileName lineNumber message name number stack".split(" ");e.Exception=function(a){for(var b=Error.prototype.constructor.apply(this,arguments),c=0;c<w.length;c++)this[w[c]]=b[w[c]]};e.Exception.prototype=Error();e.SafeString=function(a){this.string=a};e.SafeString.prototype.toString=function(){return this.string.toString()};
|
||||
var z={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},A=/[&<>"'`]/g,B=/[&<>"'`]/,C=function(a){return z[a]||"&"};e.Utils={extend:function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])},escapeExpression:function(a){if(a instanceof e.SafeString)return a.toString();if(null==a||!1===a)return"";a=a.toString();return!B.test(a)?a:a.replace(A,C)},isEmpty:function(a){return!a&&0!==a?!0:"[object Array]"===q.call(a)&&0===a.length?!0:!1}};var v=e.Compiler=function(){},s=
|
||||
e.JavaScriptCompiler=function(){};v.prototype={compiler:v,disassemble:function(){for(var a=this.opcodes,b,c=[],d,e,f=0,g=a.length;f<g;f++)if(b=a[f],"DECLARE"===b.opcode)c.push("DECLARE "+b.name+"="+b.value);else{d=[];for(var j=0;j<b.args.length;j++)e=b.args[j],"string"===typeof e&&(e='"'+e.replace("\n","\\n")+'"'),d.push(e);c.push(b.opcode+" "+d.join(" "))}return c.join("\n")},equals:function(a){var b=this.opcodes.length;if(a.opcodes.length!==b)return!1;for(var c=0;c<b;c++){var d=this.opcodes[c],
|
||||
e=a.opcodes[c];if(d.opcode!==e.opcode||d.args.length!==e.args.length)return!1;for(var f=0;f<d.args.length;f++)if(d.args[f]!==e.args[f])return!1}b=this.children.length;if(a.children.length!==b)return!1;for(c=0;c<b;c++)if(!this.children[c].equals(a.children[c]))return!1;return!0},guid:0,compile:function(a,b){this.children=[];this.depths={list:[]};this.options=b;var c=this.options.knownHelpers;this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0};
|
||||
if(c)for(var d in c)this.options.knownHelpers[d]=c[d];return this.program(a)},accept:function(a){return this[a.type](a)},program:function(a){a=a.statements;var b;this.opcodes=[];for(var c=0,d=a.length;c<d;c++)b=a[c],this[b.type](b);this.isSimple=1===d;this.depths.list=this.depths.list.sort(function(a,b){return a-b});return this},compileProgram:function(a){a=(new this.compiler).compile(a,this.options);var b=this.guid++,c;this.usePartial=this.usePartial||a.usePartial;this.children[b]=a;for(var d=0,
|
||||
e=a.depths.list.length;d<e;d++)c=a.depths.list[d],2>c||this.addDepth(c-1);return b},block:function(a){var b=a.mustache,c=a.program;a=a.inverse;c&&(c=this.compileProgram(c));a&&(a=this.compileProgram(a));var d=this.classifyMustache(b);"helper"===d?this.helperMustache(b,c,a):"simple"===d?(this.simpleMustache(b),this.opcode("pushProgram",c),this.opcode("pushProgram",a),this.opcode("emptyHash"),this.opcode("blockValue")):(this.ambiguousMustache(b,c,a),this.opcode("pushProgram",c),this.opcode("pushProgram",
|
||||
a),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue"));this.opcode("append")},hash:function(a){a=a.pairs;var b,c;this.opcode("pushHash");for(var d=0,e=a.length;d<e;d++)b=a[d],c=b[1],this.options.stringParams?(c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",c.stringModeValue,c.type)):this.accept(c),this.opcode("assignToHash",b[0]);this.opcode("popHash")},partial:function(a){var b=a.partialName;this.usePartial=!0;a.context?this.ID(a.context):
|
||||
this.opcode("push","depth0");this.opcode("invokePartial",b.name);this.opcode("append")},content:function(a){this.opcode("appendContent",a.string)},mustache:function(a){var b=this.options,c=this.classifyMustache(a);"simple"===c?this.simpleMustache(a):"helper"===c?this.helperMustache(a):this.ambiguousMustache(a);a.escaped&&!b.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ambiguousMustache:function(a,b,c){a=a.id;var d=a.parts[0],e=null!=b||null!=c;this.opcode("getContext",a.depth);this.opcode("pushProgram",
|
||||
b);this.opcode("pushProgram",c);this.opcode("invokeAmbiguous",d,e)},simpleMustache:function(a){a=a.id;"DATA"===a.type?this.DATA(a):a.parts.length?this.ID(a):(this.addDepth(a.depth),this.opcode("getContext",a.depth),this.opcode("pushContext"));this.opcode("resolvePossibleLambda")},helperMustache:function(a,b,c){b=this.setupFullMustacheParams(a,b,c);a=a.id.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",b.length,a);else{if(this.options.knownHelpersOnly)throw Error("You specified knownHelpersOnly, but used the unknown helper "+
|
||||
a);this.opcode("invokeHelper",b.length,a)}},ID:function(a){this.addDepth(a.depth);this.opcode("getContext",a.depth);a.parts[0]?this.opcode("lookupOnContext",a.parts[0]):this.opcode("pushContext");for(var b=1,c=a.parts.length;b<c;b++)this.opcode("lookup",a.parts[b])},DATA:function(a){this.options.data=!0;if(a.id.isScoped||a.id.depth)throw new e.Exception("Scoped data references are not supported: "+a.original);this.opcode("lookupData");a=a.id.parts;for(var b=0,c=a.length;b<c;b++)this.opcode("lookup",
|
||||
a[b])},STRING:function(a){this.opcode("pushString",a.string)},INTEGER:function(a){this.opcode("pushLiteral",a.integer)},BOOLEAN:function(a){this.opcode("pushLiteral",a.bool)},comment:function(){},opcode:function(a){this.opcodes.push({opcode:a,args:[].slice.call(arguments,1)})},declare:function(a,b){this.opcodes.push({opcode:"DECLARE",name:a,value:b})},addDepth:function(a){if(isNaN(a))throw Error("EWOT");0!==a&&!this.depths[a]&&(this.depths[a]=!0,this.depths.list.push(a))},classifyMustache:function(a){var b=
|
||||
a.isHelper,c=a.eligibleHelper,d=this.options;c&&!b&&(d.knownHelpers[a.id.parts[0]]?b=!0:d.knownHelpersOnly&&(c=!1));return b?"helper":c?"ambiguous":"simple"},pushParams:function(a){for(var b=a.length,c;b--;)if(c=a[b],this.options.stringParams)c.depth&&this.addDepth(c.depth),this.opcode("getContext",c.depth||0),this.opcode("pushStringParam",c.stringModeValue,c.type);else this[c.type](c)},setupMustacheParams:function(a){var b=a.params;this.pushParams(b);a.hash?this.hash(a.hash):this.opcode("emptyHash");
|
||||
return b},setupFullMustacheParams:function(a,b,c){var d=a.params;this.pushParams(d);this.opcode("pushProgram",b);this.opcode("pushProgram",c);a.hash?this.hash(a.hash):this.opcode("emptyHash");return d}};var t=function(a){this.value=a};s.prototype={nameLookup:function(a,b){return/^[0-9]+$/.test(b)?a+"["+b+"]":s.isValidJavaScriptVariableName(b)?a+"."+b:a+"['"+b+"']"},appendToBuffer:function(a){return this.environment.isSimple?"return "+a+";":{appendToBuffer:!0,content:a,toString:function(){return"buffer += "+
|
||||
a+";"}}},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(a,b,c,d){this.environment=a;this.options=b||{};e.log(e.logger.DEBUG,this.environment.disassemble()+"\n\n");this.name=this.environment.name;this.isChild=!!c;this.context=c||{programs:[],environments:[],aliases:{}};this.preamble();this.stackSlot=0;this.stackVars=[];this.registers={list:[]};this.compileStack=[];this.inlineStack=[];this.compileChildren(a,b);a=a.opcodes;this.i=0;for(x=a.length;this.i<
|
||||
x;this.i++)b=a[this.i],"DECLARE"===b.opcode?this[b.name]=b.value:this[b.opcode].apply(this,b.args);return this.createFunctionContext(d)},nextOpcode:function(){return this.environment.opcodes[this.i+1]},eat:function(){this.i+=1},preamble:function(){var a=[];if(this.isChild)a.push("");else{var b=this.namespace,c="helpers = this.merge(helpers, "+b+".helpers);";this.environment.usePartial&&(c=c+" partials = this.merge(partials, "+b+".partials);");this.options.data&&(c+=" data = data || {};");a.push(c)}this.environment.isSimple?
|
||||
a.push(""):a.push(", buffer = "+this.initializeBuffer());this.lastContext=0;this.source=a},createFunctionContext:function(a){var b=this.stackVars.concat(this.registers.list);0<b.length&&(this.source[1]=this.source[1]+", "+b.join(", "));if(!this.isChild)for(var c in this.context.aliases)this.context.aliases.hasOwnProperty(c)&&(this.source[1]=this.source[1]+", "+c+"="+this.context.aliases[c]);this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";");this.isChild||(this.source[1]+="\n"+
|
||||
this.context.programs.join("\n")+"\n");this.environment.isSimple||this.source.push("return buffer;");b=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"];c=0;for(var d=this.environment.depths.list.length;c<d;c++)b.push("depth"+this.environment.depths.list[c]);c=this.mergeSource();this.isChild||(d=e.COMPILER_REVISION,c="this.compilerInfo = ["+d+",'"+e.REVISION_CHANGES[d]+"'];\n"+c);if(a)return b.push(c),Function.apply(this,b);a="function "+(this.name||"")+"("+b.join(",")+
|
||||
") {\n "+c+"}";e.log(e.logger.DEBUG,a+"\n\n");return a},mergeSource:function(){for(var a="",b,c=0,d=this.source.length;c<d;c++){var e=this.source[c];e.appendToBuffer?b=b?b+"\n + "+e.content:e.content:(b&&(a+="buffer += "+b+";\n ",b=m),a+=e+"\n ")}return a},blockValue:function(){this.context.aliases.blockHelperMissing="helpers.blockHelperMissing";var a=["depth0"];this.setupParams(0,a);this.replaceStack(function(b){a.splice(1,0,b);return"blockHelperMissing.call("+a.join(", ")+")"})},ambiguousBlockValue:function(){this.context.aliases.blockHelperMissing=
|
||||
"helpers.blockHelperMissing";var a=["depth0"];this.setupParams(0,a);var b=this.topStack();a.splice(1,0,b);a[a.length-1]="options";this.source.push("if (!"+this.lastHelper+") { "+b+" = blockHelperMissing.call("+a.join(", ")+"); }")},appendContent:function(a){this.source.push(this.appendToBuffer(this.quotedString(a)))},append:function(){this.flushInline();var a=this.popStack();this.source.push("if("+a+" || "+a+" === 0) { "+this.appendToBuffer(a)+" }");this.environment.isSimple&&this.source.push("else { "+
|
||||
this.appendToBuffer("''")+" }")},appendEscaped:function(){this.context.aliases.escapeExpression="this.escapeExpression";this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"))},getContext:function(a){this.lastContext!==a&&(this.lastContext=a)},lookupOnContext:function(a){this.push(this.nameLookup("depth"+this.lastContext,a,"context"))},pushContext:function(){this.pushStackLiteral("depth"+this.lastContext)},resolvePossibleLambda:function(){this.context.aliases.functionType='"function"';
|
||||
this.replaceStack(function(a){return"typeof "+a+" === functionType ? "+a+".apply(depth0) : "+a})},lookup:function(a){this.replaceStack(function(b){return b+" == null || "+b+" === false ? "+b+" : "+this.nameLookup(b,a,"context")})},lookupData:function(){this.push("data")},pushStringParam:function(a,b){this.pushStackLiteral("depth"+this.lastContext);this.pushString(b);"string"===typeof a?this.pushString(a):this.pushStackLiteral(a)},emptyHash:function(){this.pushStackLiteral("{}");this.options.stringParams&&
|
||||
(this.register("hashTypes","{}"),this.register("hashContexts","{}"))},pushHash:function(){this.hash={values:[],types:[],contexts:[]}},popHash:function(){var a=this.hash;this.hash=m;this.options.stringParams&&(this.register("hashContexts","{"+a.contexts.join(",")+"}"),this.register("hashTypes","{"+a.types.join(",")+"}"));this.push("{\n "+a.values.join(",\n ")+"\n }")},pushString:function(a){this.pushStackLiteral(this.quotedString(a))},push:function(a){this.inlineStack.push(a);return a},pushLiteral:function(a){this.pushStackLiteral(a)},
|
||||
pushProgram:function(a){null!=a?this.pushStackLiteral(this.programExpression(a)):this.pushStackLiteral(null)},invokeHelper:function(a,b){this.context.aliases.helperMissing="helpers.helperMissing";var c=this.lastHelper=this.setupHelper(a,b,!0),d=this.nameLookup("depth"+this.lastContext,b,"context");this.push(c.name+" || "+d);this.replaceStack(function(a){return a+" ? "+a+".call("+c.callParams+") : helperMissing.call("+c.helperMissingParams+")"})},invokeKnownHelper:function(a,b){var c=this.setupHelper(a,
|
||||
b);this.push(c.name+".call("+c.callParams+")")},invokeAmbiguous:function(a,b){this.context.aliases.functionType='"function"';this.pushStackLiteral("{}");var c=this.setupHelper(0,a,b),d=this.lastHelper=this.nameLookup("helpers",a,"helper"),e=this.nameLookup("depth"+this.lastContext,a,"context"),f=this.nextStack();this.source.push("if ("+f+" = "+d+") { "+f+" = "+f+".call("+c.callParams+"); }");this.source.push("else { "+f+" = "+e+"; "+f+" = typeof "+f+" === functionType ? "+f+".apply(depth0) : "+f+
|
||||
"; }")},invokePartial:function(a){a=[this.nameLookup("partials",a,"partial"),"'"+a+"'",this.popStack(),"helpers","partials"];this.options.data&&a.push("data");this.context.aliases.self="this";this.push("self.invokePartial("+a.join(", ")+")")},assignToHash:function(a){var b=this.popStack(),c,d;this.options.stringParams&&(d=this.popStack(),c=this.popStack());var e=this.hash;c&&e.contexts.push("'"+a+"': "+c);d&&e.types.push("'"+a+"': "+d);e.values.push("'"+a+"': ("+b+")")},compiler:s,compileChildren:function(a,
|
||||
b){for(var c=a.children,d,e,f=0,g=c.length;f<g;f++){d=c[f];e=new this.compiler;var j=this.matchExistingProgram(d);null==j?(this.context.programs.push(""),j=this.context.programs.length,d.index=j,d.name="program"+j,this.context.programs[j]=e.compile(d,b,this.context),this.context.environments[j]=d):(d.index=j,d.name="program"+j)}},matchExistingProgram:function(a){for(var b=0,c=this.context.environments.length;b<c;b++){var d=this.context.environments[b];if(d&&d.equals(a))return b}},programExpression:function(a){this.context.aliases.self=
|
||||
"this";if(null==a)return"self.noop";var b=this.environment.children[a];a=b.depths.list;for(var c=[b.index,b.name,"data"],d=0,e=a.length;d<e;d++)b=a[d],1===b?c.push("depth0"):c.push("depth"+(b-1));return(0===a.length?"self.program(":"self.programWithDepth(")+c.join(", ")+")"},register:function(a,b){this.useRegister(a);this.source.push(a+" = "+b+";")},useRegister:function(a){this.registers[a]||(this.registers[a]=!0,this.registers.list.push(a))},pushStackLiteral:function(a){return this.push(new t(a))},
|
||||
pushStack:function(a){this.flushInline();var b=this.incrStack();a&&this.source.push(b+" = "+a+";");this.compileStack.push(b);return b},replaceStack:function(a){var b="",c=this.isInline(),d;c?(d=this.popStack(!0),d instanceof t?d=d.value:(b=this.stackSlot?this.topStackName():this.incrStack(),b="("+this.push(b)+" = "+d+"),",d=this.topStack())):d=this.topStack();a=a.call(this,d);c?((this.inlineStack.length||this.compileStack.length)&&this.popStack(),this.push("("+b+a+")")):(/^stack/.test(d)||(d=this.nextStack()),
|
||||
this.source.push(d+" = ("+b+a+");"));return d},nextStack:function(){return this.pushStack()},incrStack:function(){this.stackSlot++;this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot);return this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var a=this.inlineStack;if(a.length){this.inlineStack=[];for(var b=0,c=a.length;b<c;b++){var d=a[b];d instanceof t?this.compileStack.push(d):this.pushStack(d)}}},isInline:function(){return this.inlineStack.length},
|
||||
popStack:function(a){var b=this.isInline(),c=(b?this.inlineStack:this.compileStack).pop();if(!a&&c instanceof t)return c.value;b||this.stackSlot--;return c},topStack:function(a){var b=this.isInline()?this.inlineStack:this.compileStack,b=b[b.length-1];return!a&&b instanceof t?b.value:b},quotedString:function(a){return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},setupHelper:function(a,b,c){var d=
|
||||
[];this.setupParams(a,d,c);a=this.nameLookup("helpers",b,"helper");return{params:d,name:a,callParams:["depth0"].concat(d).join(", "),helperMissingParams:c&&["depth0",this.quotedString(b)].concat(d).join(", ")}},setupParams:function(a,b,c){var d=[],e=[],f=[],g,j;d.push("hash:"+this.popStack());g=this.popStack();if((j=this.popStack())||g)j||(this.context.aliases.self="this",j="self.noop"),g||(this.context.aliases.self="this",g="self.noop"),d.push("inverse:"+g),d.push("fn:"+j);for(j=0;j<a;j++)g=this.popStack(),
|
||||
b.push(g),this.options.stringParams&&(f.push(this.popStack()),e.push(this.popStack()));this.options.stringParams&&(d.push("contexts:["+e.join(",")+"]"),d.push("types:["+f.join(",")+"]"),d.push("hashContexts:hashContexts"),d.push("hashTypes:hashTypes"));this.options.data&&d.push("data:data");d="{"+d.join(",")+"}";c?(this.register("options",d),b.push("options")):b.push(d);return b.join(", ")}};n="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield".split(" ");
|
||||
for(var u=s.RESERVED_WORDS={},y=0,x=n.length;y<x;y++)u[n[y]]=!0;s.isValidJavaScriptVariableName=function(a){return!s.RESERVED_WORDS[a]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(a)?!0:!1};e.precompile=function(a,b){if(null==a||"string"!==typeof a&&a.constructor!==e.AST.ProgramNode)throw new e.Exception("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+a);b=b||{};"data"in b||(b.data=!0);var c=e.parse(a),c=(new v).compile(c,b);return(new s).compile(c,b)};e.compile=function(a,
|
||||
b){if(null==a||"string"!==typeof a&&a.constructor!==e.AST.ProgramNode)throw new e.Exception("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+a);b=b||{};"data"in b||(b.data=!0);var c;return function(d,h){if(!c){var f=e.parse(a),f=(new v).compile(f,b),f=(new s).compile(f,b,m,!0);c=e.template(f)}return c.call(this,d,h)}};e.VM={template:function(a){var b={escapeExpression:e.Utils.escapeExpression,invokePartial:e.VM.invokePartial,programs:[],program:function(a,b,h){var f=this.programs[a];
|
||||
h?f=e.VM.program(a,b,h):f||(f=this.programs[a]=e.VM.program(a,b));return f},merge:function(a,b){var h=a||b;a&&b&&(h={},e.Utils.extend(h,b),e.Utils.extend(h,a));return h},programWithDepth:e.VM.programWithDepth,noop:e.VM.noop,compilerInfo:null};return function(c,d){d=d||{};var h=a.call(b,e,c,d.helpers,d.partials,d.data),f=b.compilerInfo||[],g=f[0]||1,j=e.COMPILER_REVISION;if(g!==j){if(g<j)throw"Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+
|
||||
e.REVISION_CHANGES[j]+") or downgrade your runtime to an older version ("+e.REVISION_CHANGES[g]+").";throw"Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+f[1]+").";}return h}},programWithDepth:function(a,b,c){var d=Array.prototype.slice.call(arguments,3),e=function(a,e){e=e||{};return b.apply(this,[a,e.data||c].concat(d))};e.program=a;e.depth=d.length;return e},program:function(a,b,c){var d=function(a,d){d=d||
|
||||
{};return b(a,d.data||c)};d.program=a;d.depth=0;return d},noop:function(){return""},invokePartial:function(a,b,c,d,h,f){d={helpers:d,partials:h,data:f};if(a===m)throw new e.Exception("The partial "+b+" could not be found");if(a instanceof Function)return a(c,d);if(e.compile)return h[b]=e.compile(a,{data:f!==m}),h[b](c,d);throw new e.Exception("The partial "+b+" could not be compiled when running in runtime-only mode");}};e.template=e.VM.template})(Handlebars);
|
||||
|
@ -4,7 +4,7 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.default_control=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};h=this.escapeExpression;a="<strong>";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+"</strong>"});l.message=k(function(a,b,e,h,f){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||a.helpers;f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},data:f};
|
||||
a="<span>"+(g((c=e.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"</span>\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="<span class='n";(d=e.kindName)?d=d.call(a,{hash:{},data:c}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);b+=g(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"</span>: "},f),data:f}))||0===c)a+=c;a+="\n<span class='m";(c=e.kindName)?
|
||||
c=c.call(b,{hash:{},data:f}):(c=b.kindName,c="function"===typeof c?c.apply(b):c);a+=g(c)+"'>";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return g((c=e.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},f),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return g((b=e.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",
|
||||
d)))},f),data:f}))||0===c)a+=c;return a+="</span><br/>"})})();
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.default_control=k(function(a,b,e,h,f){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);f=f||{};h=this.escapeExpression;a="<strong>";(e=e.title)?e=e.call(b,{hash:{},data:f}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a+=h(e)+"</strong>"});l.message=k(function(a,b,e,h,f){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);f=f||{};var c,g=this.escapeExpression,j=e.helperMissing;a={hash:{},
|
||||
data:f};a="<span>"+(g((c=e.formatTime||b.formatTime,c?c.call(b,b.created,a):j.call(b,"formatTime",b.created,a)))+"</span>\n");if((c=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d;b="<span class='n";(d=e.kindName)?d=d.call(a,{hash:{},data:c}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);b+=g(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=g(d)+"</span>: "},f),data:f}))||0===c)a+=c;a+="\n<span class='m";
|
||||
(c=e.kindName)?c=c.call(b,{hash:{},data:f}):(c=b.kindName,c="function"===typeof c?c.apply(b):c);a+=g(c)+"'>";if((c=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return g((c=e.apply||a.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},f),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return g((b=e.apply||a.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,
|
||||
"apply",a.message,"urlReplace, nl2br, allowTags",d)))},f),data:f}))||0===c)a+=c;return a+="</span><br/>"})})();
|
||||
|
@ -4,30 +4,31 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f=e.helperMissing,h=this.escapeExpression;b='<span class="agent-status-';if((a=e["if"].call(c,c.away,{hash:{},inverse:this.program(3,function(){return"online"},d),fn:this.program(1,function(){return"away"},d),data:d}))||0===a)b+=a;b+=' inline-block" title="';if((a=e["if"].call(c,c.away,{hash:{},inverse:this.program(7,function(a,
|
||||
b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.online",g):f.call(a,"L10n","pending.status.online",g)))},d),fn:this.program(5,function(a,b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.status.away",g):f.call(a,"L10n","pending.status.away",g)))},d),data:d}))||0===a)b+=a;b+='"></span>';(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a="function"===typeof a?a.apply(c):a);b+=h(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});m.no_threads=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<td class="no-threads" colspan="8">'+(a((f=e.L10n,f?f.call(c,"clients.no_clients",d):b.call(c,"L10n","clients.no_clients",d)))+"</td>")});m.no_visitors=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;
|
||||
d={hash:{},data:d};return c='<td class="no-visitors" colspan="9">'+(a((f=e.L10n,f?f.call(c,"visitors.no_visitors",d):b.call(c,"L10n","visitors.no_visitors",d)))+"</td>")});m.queued_thread=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f=e.helperMissing,h=this.escapeExpression;b='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.program(3,function(a,b){var c,
|
||||
g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.table.view",g):f.call(a,"L10n","pending.table.view",g)))},d),fn:this.program(1,function(a,b){var c,g;g={hash:{},data:b};return h((c=e.L10n,c?c.call(a,"pending.table.speak",g):f.call(a,"L10n","pending.table.speak",g)))},d),data:d}))||0===a)b+=a;b+='">';if((a=e["if"].call(c,c.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,b){var c,g;c={hash:{},data:b};return c=""+(h((g=e.L10n,g?g.call(a,"chat.client.spam.prefix",c):f.call(a,"L10n",
|
||||
"chat.client.spam.prefix",c)))+" ")},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+=h(a)+"</a></div>\n ";if((a=e["if"].call(c,c.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,g;c='<div class="first-message"><a href="javascript:void(0);" title="';(g=e.firstMessage)?g=g.call(a,{hash:{},data:b}):(g=a.firstMessage,g="function"===typeof g?g.apply(a):g);c+=h(g)+'">';(g=e.firstMessagePreview)?
|
||||
g=g.call(a,{hash:{},data:b}):(g=a.firstMessagePreview,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a></div>"},d),data:d}))||0===a)b+=a;b+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((a=e["if"].call(c,c.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,b){var c,g;c={hash:{},data:b};return c='\n <div class="control open-dialog open-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.speak",
|
||||
c):f.call(a,"L10n","pending.table.speak",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control view-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.view",c):f.call(a,"L10n","pending.table.view",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control track-control inline-block" title="'+(h((g=e.L10n,g?g.call(a,"pending.table.tracked",c):f.call(a,"L10n","pending.table.tracked",c)))+'"></div>\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,b){var c,g;c={hash:{},data:b};return c='\n <div class="control ban-control inline-block" title="'+
|
||||
(h((g=e.L10n,g?g.call(a,"pending.table.ban",c):f.call(a,"L10n","pending.table.ban",c)))+'"></div>\n ')},d),data:d}))||0===a)b+=a;b+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';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 h(c)},d),fn:this.program(17,function(a,c){var b,g;b='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';
|
||||
(g=e.remote)?g=g.call(a,{hash:{},data:c}):(g=a.remote,g="function"===typeof g?g.apply(a):g);return b+=h(g)+"</a>"},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';(a=e.stateDesc)?a=a.call(c,{hash:{},data:d}):(a=c.stateDesc,a="function"===typeof a?a.apply(c):a);b+=h(a)+'</td>\n<td class="visitor">';(a=e.agentName)?a=a.call(c,{hash:{},data:d}):(a=c.agentName,a="function"===typeof a?a.apply(c):a);b+=h(a)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.totalTime)?
|
||||
a=a.call(c,{hash:{},data:d}):(a=c.totalTime,a="function"===typeof a?a.apply(c):a);b+=h(a)+'"></span></td>\n<td class="visitor">';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,g;b='<span class="timesince" data-timestamp="';(g=e.waitingTime)?g=g.call(a,{hash:{},data:c}):(g=a.waitingTime,g="function"===typeof g?g.apply(a):g);return b+=h(g)+'"></span>'},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';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 h(b)},d),fn:this.program(25,function(a){var b;return h((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+"</td>"});m.status_panel=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;b='<div id="connstatus">';
|
||||
(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a="function"===typeof a?a.apply(c):a);b+=j(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 j((c=e.L10n,c?c.call(a,"pending.status.online",d):h.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.away",d):h.call(a,"L10n","pending.status.away",d)))},d),data:d}))||
|
||||
0===f)b+=f;b+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';if((f=e["if"].call(c,(a=c.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(7,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.setaway",d):h.call(a,"L10n","pending.status.setaway",d)))},d),fn:this.program(5,function(a,b){var c,d;d={hash:{},data:b};return j((c=e.L10n,c?c.call(a,"pending.status.setonline",d):h.call(a,"L10n","pending.status.setonline",d)))},d),
|
||||
data:d}))||0===f)b+=f;return b+"</a></div>"});m.threads_collection=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};b='<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n,f?f.call(c,"pending.table.head.name",a):h.call(c,"L10n","pending.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.actions",a):h.call(c,
|
||||
"L10n","pending.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.contactid",a):h.call(c,"L10n","pending.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.state",a):h.call(c,"L10n","pending.table.head.state",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.operator",a):h.call(c,"L10n","pending.table.head.operator",a)))+"</th>\n <th>";a={hash:{},
|
||||
data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.total",a):h.call(c,"L10n","pending.table.head.total",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"pending.table.head.waittime",a):h.call(c,"L10n","pending.table.head.waittime",a)))+"</th>\n <th>";a={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(c,"pending.table.head.etc",a):h.call(c,"L10n","pending.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>'});m.visitor=l(function(b,
|
||||
c,e,a,d){function f(){return"-"}this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var h,j=e.helperMissing,k=this.escapeExpression;b='<td class="visitor">\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 k(c)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='<a href="javascript:void(0);" class="invite-link" title="'+(k((d=
|
||||
e.L10n,d?d.call(a,"pending.table.invite",c):j.call(a,"L10n","pending.table.invite",c)))+'">');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)b+=a;h={hash:{},data:d};b=b+'\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+(k((a=e.L10n,a?a.call(c,"pending.table.tracked",h):j.call(c,"L10n","pending.table.tracked",
|
||||
h)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">');if((a=e["if"].call(c,c.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(5,function(a,b){var c,d;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):
|
||||
d);return c+=k(d)+"</a>"},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.firstTime)?a=a.call(c,{hash:{},data:d}):(a=c.firstTime,a="function"===typeof a?a.apply(c):a);b+=k(a)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.lastTime)?a=a.call(c,{hash:{},data:d}):(a=c.lastTime,a="function"===typeof a?a.apply(c):a);b+=k(a)+'"></span></td>\n<td class="visitor">';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,
|
||||
f,d),fn:this.program(9,function(a){var b;return k((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';if((a=e["if"].call(c,c.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('<span class="timesince" data-timestamp="'+k((b=(b=a.invitationInfo,null==b||!1===b?b:b.time),"function"===typeof b?b.apply(a):b))+'"></span>')},d),data:d}))||0===a)b+=a;b+='</td>\n<td class="visitor">';
|
||||
(a=e.invitations)?a=a.call(c,{hash:{},data:d}):(a=c.invitations,a="function"===typeof a?a.apply(c):a);b+=k(a)+" / ";(a=e.chats)?a=a.call(c,{hash:{},data:d}):(a=c.chats,a="function"===typeof a?a.apply(c):a);b+=k(a)+'</td>\n<td class="visitor">';(a=e.userAgent)?a=a.call(c,{hash:{},data:d}):(a=c.userAgent,a="function"===typeof a?a.apply(c):a);return b+=k(a)+"</td>"});m.visitors_collection=l(function(b,c,e,a,d){this.compilerInfo=[3,">= 1.0.0-rc.4"];e=e||b.helpers;d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;
|
||||
a={hash:{},data:d};b='<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n,f?f.call(c,"visitors.table.head.name",a):h.call(c,"L10n","visitors.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.actions",a):h.call(c,"L10n","visitors.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.contactid",a):h.call(c,"L10n","visitors.table.head.contactid",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.firsttimeonsite",a):h.call(c,"L10n","visitors.table.head.firsttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.lasttimeonsite",a):h.call(c,"L10n","visitors.table.head.lasttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invited.by",a):h.call(c,"L10n","visitors.table.head.invited.by",a)))+"</th>\n <th>";a=
|
||||
{hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitationtime",a):h.call(c,"L10n","visitors.table.head.invitationtime",a)))+"</th>\n <th>";a={hash:{},data:d};b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.invitations",a):h.call(c,"L10n","visitors.table.head.invitations",a)))+"</th>\n <th>";a={hash:{},data:d};return b+=j((f=e.L10n,f?f.call(c,"visitors.table.head.etc",a):h.call(c,"L10n","visitors.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>'})})();
|
||||
(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='<span class="agent-status-';if((a=e["if"].call(b,b.away,{hash:{},inverse:this.program(3,function(){return"online"},d),fn:this.program(1,function(){return"away"},d),data:d}))||0===a)c+=a;c+=' inline-block" title="';if((a=e["if"].call(b,b.away,{hash:{},inverse:this.program(7,
|
||||
function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.status.online",g):f.call(a,"L10n","pending.status.online",g)))},d),fn:this.program(5,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.status.away",g):f.call(a,"L10n","pending.status.away",g)))},d),data:d}))||0===a)c+=a;c+='"></span>';(a=e.name)?a=a.call(b,{hash:{},data:d}):(a=b.name,a="function"===typeof a?a.apply(b):a);c+=h(a);if((a=e.unless.call(b,b.isLast,{hash:{},inverse:this.noop,
|
||||
fn:this.program(9,function(){return","},d),data:d}))||0===a)c+=a;return c});m.no_threads=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b='<td class="no-threads" colspan="8">'+(a((f=e.L10n||b.L10n,f?f.call(b,"clients.no_clients",d):c.call(b,"L10n","clients.no_clients",d)))+"</td>")});m.no_visitors=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||
|
||||
{};var f;c=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return b='<td class="no-visitors" colspan="9">'+(a((f=e.L10n||b.L10n,f?f.call(b,"visitors.no_visitors",d):c.call(b,"L10n","visitors.no_visitors",d)))+"</td>")});m.queued_thread=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f=e.helperMissing,h=this.escapeExpression;c='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((a=e["if"].call(b,
|
||||
b.canOpen,{hash:{},inverse:this.program(3,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.table.view",g):f.call(a,"L10n","pending.table.view",g)))},d),fn:this.program(1,function(a,c){var b,g;g={hash:{},data:c};return h((b=e.L10n||a.L10n,b?b.call(a,"pending.table.speak",g):f.call(a,"L10n","pending.table.speak",g)))},d),data:d}))||0===a)c+=a;c+='">';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,g;b={hash:{},data:c};
|
||||
return b=""+(h((g=e.L10n||a.L10n,g?g.call(a,"chat.client.spam.prefix",b):f.call(a,"L10n","chat.client.spam.prefix",b)))+" ")},d),data:d}))||0===a)c+=a;(a=e.userName)?a=a.call(b,{hash:{},data:d}):(a=b.userName,a="function"===typeof a?a.apply(b):a);c+=h(a)+"</a></div>\n ";if((a=e["if"].call(b,b.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,g;c='<div class="first-message"><a href="javascript:void(0);" title="';(g=e.firstMessage)?g=g.call(a,{hash:{},data:b}):(g=
|
||||
a.firstMessage,g="function"===typeof g?g.apply(a):g);c+=h(g)+'">';(g=e.firstMessagePreview)?g=g.call(a,{hash:{},data:b}):(g=a.firstMessagePreview,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a></div>"},d),data:d}))||0===a)c+=a;c+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((a=e["if"].call(b,b.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,g;b={hash:{},data:c};return b='\n <div class="control open-dialog open-control inline-block" title="'+
|
||||
(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.speak",b):f.call(a,"L10n","pending.table.speak",b)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,b){var c,g;c={hash:{},data:b};return c='\n <div class="control view-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.view",c):f.call(a,"L10n","pending.table.view",c)))+'"></div>\n ')},d),data:d}))||0===
|
||||
a)c+=a;c+="\n ";if((a=e["if"].call(b,b.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,g;b={hash:{},data:c};return b='\n <div class="control track-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.tracked",b):f.call(a,"L10n","pending.table.tracked",b)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+="\n ";if((a=e["if"].call(b,b.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,b){var c,g;c={hash:{},data:b};
|
||||
return c='\n <div class="control ban-control inline-block" title="'+(h((g=e.L10n||a.L10n,g?g.call(a,"pending.table.ban",c):f.call(a,"L10n","pending.table.ban",c)))+'"></div>\n ')},d),data:d}))||0===a)c+=a;c+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(19,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return h(b)},
|
||||
d),fn:this.program(17,function(a,b){var c,g;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(g=e.remote)?g=g.call(a,{hash:{},data:b}):(g=a.remote,g="function"===typeof g?g.apply(a):g);return c+=h(g)+"</a>"},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';(a=e.stateDesc)?a=a.call(b,{hash:{},data:d}):(a=b.stateDesc,a="function"===typeof a?a.apply(b):a);c+=h(a)+'</td>\n<td class="visitor">';(a=e.agentName)?a=a.call(b,{hash:{},data:d}):(a=b.agentName,a="function"===typeof a?
|
||||
a.apply(b):a);c+=h(a)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.totalTime)?a=a.call(b,{hash:{},data:d}):(a=b.totalTime,a="function"===typeof a?a.apply(b):a);c+=h(a)+'"></span></td>\n<td class="visitor">';if((a=e.unless.call(b,b.chatting,{hash:{},inverse:this.program(23,function(){return"-"},d),fn:this.program(21,function(a,b){var c,g;c='<span class="timesince" data-timestamp="';(g=e.waitingTime)?g=g.call(a,{hash:{},data:b}):(g=a.waitingTime,g="function"===typeof g?
|
||||
g.apply(a):g);return c+=h(g)+'"></span>'},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';if((a=e["if"].call(b,b.ban,{hash:{},inverse:this.program(27,function(a,b){var c;(c=e.userAgent)?c=c.call(a,{hash:{},data:b}):(c=a.userAgent,c="function"===typeof c?c.apply(a):c);return h(c)},d),fn:this.program(25,function(a){var c;return h((c=(c=a.ban,null==c||!1===c?c:c.reason),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===a)c+=a;return c+"</td>"});m.status_panel=l(function(c,b,e,a,d){this.compilerInfo=
|
||||
[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;c='<div id="connstatus">';(a=e.message)?a=a.call(b,{hash:{},data:d}):(a=b.message,a="function"===typeof a?a.apply(b):a);c+=j(a);if((f=e["if"].call(b,(a=b.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.online",d):h.call(a,"L10n","pending.status.online",d)))},d),fn:this.program(1,function(a,c){var b,
|
||||
d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.away",d):h.call(a,"L10n","pending.status.away",d)))},d),data:d}))||0===f)c+=f;c+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';if((f=e["if"].call(b,(a=b.agent,null==a||!1===a?a:a.away),{hash:{},inverse:this.program(7,function(a,c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.setaway",d):h.call(a,"L10n","pending.status.setaway",d)))},d),fn:this.program(5,function(a,
|
||||
c){var b,d;d={hash:{},data:c};return j((b=e.L10n||a.L10n,b?b.call(a,"pending.status.setonline",d):h.call(a,"L10n","pending.status.setonline",d)))},d),data:d}))||0===f)c+=f;return c+"</a></div>"});m.threads_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.name",
|
||||
a):h.call(b,"L10n","pending.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.actions",a):h.call(b,"L10n","pending.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.contactid",a):h.call(b,"L10n","pending.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.state",a):h.call(b,"L10n","pending.table.head.state",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.operator",a):h.call(b,"L10n","pending.table.head.operator",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.total",a):h.call(b,"L10n","pending.table.head.total",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.waittime",a):h.call(b,"L10n","pending.table.head.waittime",a)))+"</th>\n <th>";a={hash:{},data:d};
|
||||
return c+=j((f=e.L10n||b.L10n,f?f.call(b,"pending.table.head.etc",a):h.call(b,"L10n","pending.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>'});m.visitor=l(function(c,b,e,a,d){function f(){return"-"}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var h,j=e.helperMissing,k=this.escapeExpression;c='<td class="visitor">\n ';if((a=e.unless.call(b,b.invitationInfo,{hash:{},inverse:this.program(3,function(a,c){var b;(b=e.userName)?
|
||||
b=b.call(a,{hash:{},data:c}):(b=a.userName,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(1,function(a,b){var c,d;c={hash:{},data:b};c='<a href="javascript:void(0);" class="invite-link" title="'+(k((d=e.L10n||a.L10n,d?d.call(a,"pending.table.invite",c):j.call(a,"L10n","pending.table.invite",c)))+'">');(d=e.userName)?d=d.call(a,{hash:{},data:b}):(d=a.userName,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)c+=a;h={hash:{},data:d};c=c+'\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+
|
||||
(k((a=e.L10n||b.L10n,a?a.call(b,"pending.table.tracked",h):j.call(b,"L10n","pending.table.tracked",h)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">');if((a=e["if"].call(b,b.userIp,{hash:{},inverse:this.program(7,function(a,c){var b;(b=e.remote)?b=b.call(a,{hash:{},data:c}):(b=a.remote,b="function"===typeof b?b.apply(a):b);return k(b)},d),fn:this.program(5,function(a,b){var c,d;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';
|
||||
(d=e.remote)?d=d.call(a,{hash:{},data:b}):(d=a.remote,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</a>"},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.firstTime)?a=a.call(b,{hash:{},data:d}):(a=b.firstTime,a="function"===typeof a?a.apply(b):a);c+=k(a)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(a=e.lastTime)?a=a.call(b,{hash:{},data:d}):(a=b.lastTime,a="function"===typeof a?a.apply(b):a);c+=k(a)+
|
||||
'"></span></td>\n<td class="visitor">';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(9,function(a){var b;return k((b=(b=a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';if((a=e["if"].call(b,b.invitationInfo,{hash:{},inverse:this.program(11,f,d),fn:this.program(13,function(a){var b;return a=""+('<span class="timesince" data-timestamp="'+k((b=(b=a.invitationInfo,
|
||||
null==b||!1===b?b:b.time),"function"===typeof b?b.apply(a):b))+'"></span>')},d),data:d}))||0===a)c+=a;c+='</td>\n<td class="visitor">';(a=e.invitations)?a=a.call(b,{hash:{},data:d}):(a=b.invitations,a="function"===typeof a?a.apply(b):a);c+=k(a)+" / ";(a=e.chats)?a=a.call(b,{hash:{},data:d}):(a=b.chats,a="function"===typeof a?a.apply(b):a);c+=k(a)+'</td>\n<td class="visitor">';(a=e.userAgent)?a=a.call(b,{hash:{},data:d}):(a=b.userAgent,a="function"===typeof a?a.apply(b):a);return c+=k(a)+"</td>"});
|
||||
m.visitors_collection=l(function(c,b,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=d||{};var f,h=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};c='<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+(j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.name",a):h.call(b,"L10n","visitors.table.head.name",a)))+"</th>\n <th>");a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.actions",a):h.call(b,"L10n",
|
||||
"visitors.table.head.actions",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.contactid",a):h.call(b,"L10n","visitors.table.head.contactid",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.firsttimeonsite",a):h.call(b,"L10n","visitors.table.head.firsttimeonsite",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.lasttimeonsite",a):h.call(b,"L10n","visitors.table.head.lasttimeonsite",
|
||||
a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invited.by",a):h.call(b,"L10n","visitors.table.head.invited.by",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invitationtime",a):h.call(b,"L10n","visitors.table.head.invitationtime",a)))+"</th>\n <th>";a={hash:{},data:d};c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.invitations",a):h.call(b,"L10n","visitors.table.head.invitations",a)))+"</th>\n <th>";
|
||||
a={hash:{},data:d};return c+=j((f=e.L10n||b.L10n,f?f.call(b,"visitors.table.head.etc",a):h.call(b,"L10n","visitors.table.head.etc",a)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>'})})();
|
||||
|
@ -4,60 +4,62 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var r=Handlebars.template,s=Handlebars.templates=Handlebars.templates||{};s.chat_avatar=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g=this.escapeExpression;return(a=f["if"].call(d,d.imageLink,{hash:{},inverse:this.program(3,function(){return'<div class="default-avatar"></div>'},c),fn:this.program(1,function(a,b){var d,c;d='<img src="';(c=f.imageLink)?c=c.call(a,{hash:{},data:b}):(c=a.imageLink,c="function"===typeof c?c.apply(a):c);return d+=g(c)+
|
||||
'" border="0" alt="" />'},c),data:c}))||0===a?a:""});s.chat_controls_close=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return d='<div class="tpl-image" title="'+(b((g=f.L10n,g?g.call(d,"chat.window.close_title",c):a.call(d,"L10n","chat.window.close_title",c)))+'"></div>')});s.chat_controls_history=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;
|
||||
b=this.escapeExpression;c={hash:{},data:c};return d='<div class="tpl-image" title="'+(b((g=f.L10n,g?g.call(d,"page.analysis.userhistory.title",c):a.call(d,"L10n","page.analysis.userhistory.title",c)))+'"></div>')});s.chat_controls_redirect=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g,q=f.helperMissing,p=this.escapeExpression;return(a=f["if"].call(d,(g=d.user,null==g||!1===g?g:g.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var c,d;
|
||||
c={hash:{},data:b};return c='\n<div class="tpl-image" title="'+(p((d=f.L10n,d?d.call(a,"chat.window.toolbar.redirect_user",c):q.call(a,"L10n","chat.window.toolbar.redirect_user",c)))+'"></div>\n')},c),data:c}))||0===a?a:""});s.chat_controls_refresh=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return d='<div class="tpl-image" title="'+(b((g=f.L10n,g?g.call(d,"chat.window.toolbar.refresh",c):a.call(d,
|
||||
"L10n","chat.window.toolbar.refresh",c)))+'"></div>')});s.chat_controls_secure_mode=r(function(){this.compilerInfo=[3,">= 1.0.0-rc.4"];return'<div class="tpl-image" title="SSL"></div>'});s.chat_controls_send_mail=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return d='<div class="tpl-image" title="'+(b((g=f.L10n,g?g.call(d,"chat.window.toolbar.mail_history",c):a.call(d,"L10n","chat.window.toolbar.mail_history",
|
||||
c)))+'"></div>')});s.chat_controls_sound=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g=f.helperMissing,q=this.escapeExpression;return(a=f["if"].call(d,d.enabled,{hash:{},inverse:this.program(3,function(a,b){var c,d;c={hash:{},data:b};return c='\n <div class="tpl-image sound-control-off" title="'+(q((d=f.L10n,d?d.call(a,"chat.window.toolbar.turn_on_sound",c):g.call(a,"L10n","chat.window.toolbar.turn_on_sound",c)))+'"></div>\n')},c),fn:this.program(1,function(a,
|
||||
b){var c,d;c={hash:{},data:b};return c='\n <div class="tpl-image sound-control-on" title="'+(q((d=f.L10n,d?d.call(a,"chat.window.toolbar.turn_off_sound",c):g.call(a,"L10n","chat.window.toolbar.turn_off_sound",c)))+'"></div>\n')},c),data:c}))||0===a?a:""});s.chat_controls_user_name=r(function(a,d,f,b,c){function g(a,c){var j,e,b;j=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+h((e=(e=a.user,null==e||!1===e?e:e.name),typeof e===
|
||||
t?e.apply(a):e))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="');b={hash:{},data:c};return j+=h((e=f.L10n,e?e.call(a,"chat.client.changename",b):l.call(a,"L10n","chat.client.changename",b)))+'"></a>\n '}function q(a,b){var j,e,c;c={hash:{},data:b};j='\n <a href="javascript:void(0)" title="'+(h((e=f.L10n,e?e.call(a,"chat.client.changename",c):l.call(a,"L10n","chat.client.changename",c)))+'">'+h((e=(e=a.user,null==e||!1===
|
||||
e?e:e.name),typeof e===t?e.apply(a):e))+'</a>\n <a class="user-name-control-change tpl-image" title="');c={hash:{},data:b};return j+=h((e=f.L10n,e?e.call(a,"chat.client.changename",c):l.call(a,"L10n","chat.client.changename",c)))+'"></a>\n '}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var p,t="function",h=this.escapeExpression,l=f.helperMissing,k=this;return(a=f["if"].call(d,(p=d.user,null==p||!1===p?p:p.canChangeName),{hash:{},inverse:k.program(6,function(a,c){var j,e;
|
||||
j={hash:{},data:c};return j="\n"+(h((e=f.L10n,e?e.call(a,"chat.client.name",j):l.call(a,"L10n","chat.client.name",j)))+" "+h((e=(e=a.user,null==e||!1===e?e:e.name),typeof e===t?e.apply(a):e))+"\n")},c),fn:k.program(1,function(a,c){var j,e;j={hash:{},data:c};j='\n <span class="user-name-control-prefix">'+(h((e=f.L10n,e?e.call(a,"chat.client.name",j):l.call(a,"L10n","chat.client.name",j)))+"</span>\n ");if((e=f["if"].call(a,a.nameInput,{hash:{},inverse:k.program(4,q,c),fn:k.program(2,g,c),
|
||||
data:c}))||0===e)j+=e;return j+="\n"},c),data:c}))||0===a?a:""});s.chat_layout=r(function(a,d,f,b,c){function g(j){var e;return j=""+("\n <a onclick=\"window.open('"+m((e=(e=j.page,null==e||!1===e?e:e.webimHost),typeof e===k?e.apply(j):e))+'\');return false;" href="'+m((e=(e=j.page,null==e||!1===e?e:e.webimHost),typeof e===k?e.apply(j):e))+'">\n <img src="'+m((e=(e=(e=j.page,null==e||!1===e?e:e.company),null==e||!1===e?e:e.chatLogoURL),typeof e===k?e.apply(j):e))+
|
||||
'" alt=""/>\n </a>\n ')}function q(j){var e;return j=""+('\n <img src="'+m((e=(e=(e=j.page,null==e||!1===e?e:e.company),null==e||!1===e?e:e.chatLogoURL),typeof e===k?e.apply(j):e))+'" alt=""/>\n ')}function p(j){var e;return j=""+("\n <a onclick=\"window.open('"+m((e=(e=j.page,null==e||!1===e?e:e.webimHost),typeof e===k?e.apply(j):e))+'\');return false;" href="'+m((e=(e=j.page,null==e||!1===e?e:e.webimHost),typeof e===k?e.apply(j):
|
||||
e))+'">\n <img src="'+m((e=(e=j.page,null==e||!1===e?e:e.tplRoot),typeof e===k?e.apply(j):e))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function t(j){var e;return j=""+('\n <img src="'+m((e=(e=j.page,null==e||!1===e?e:e.tplRoot),typeof e===k?e.apply(j):e))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var h,l,k="function",m=this.escapeExpression,n=this;b=f.helperMissing;
|
||||
a='\n<div id="top">\n <div id="logo">\n ';if((l=f["if"].call(d,(h=(h=d.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:n.program(6,function(j,e){var a,c,b;a="\n ";if((b=f["if"].call(j,(c=j.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:n.program(9,t,e),fn:n.program(7,p,e),data:e}))||0===b)a+=b;return a+"\n "},c),fn:n.program(1,function(a,e){var c,b,d;c="\n ";if((d=f["if"].call(a,(b=a.page,null==b||!1===b?b:b.webimHost),
|
||||
{hash:{},inverse:n.program(4,q,e),fn:n.program(2,g,e),data:e}))||0===d)c+=d;return c+"\n "},c),data:c}))||0===l)a+=l;a+='\n \n <div id="page-title">'+m((h=(h=d.page,null==h||!1===h?h:h.title),typeof h===k?h.apply(d):h))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="chat-header">\n <div class="bgc"><div class="bgl"><div class="bgr">\n \n <div id="controls-region"></div>\n </div></div></div>\n</div>\n\n\n<div id="chat">\n <div class="bgl"><div class="bgr"><div class="sdwbgc"><div class="sdwbgl"><div class="sdwbgr">\n ';
|
||||
if((l=f.unless.call(d,(h=d.user,null==h||!1===h?h:h.isAgent),{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n <div id="avatar-region"></div>\n '},c),data:c}))||0===l)a+=l;c={hash:{},data:c};return a=a+'\n \n <div id="messages-region"></div>\n \n <div id="status-region"></div>\n </div></div></div></div></div>\n</div>\n\n\n<div id="message-form-region"></div>\n\n\n<div id="footer">'+(m((h=f.L10n,h?h.call(d,"chat.window.poweredby",c):b.call(d,
|
||||
"L10n","chat.window.poweredby",c)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>')});s.chat_message=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g,q=this.escapeExpression,p=f.helperMissing;a={hash:{},data:c};a="<span>"+(q((g=f.formatTime,g?g.call(d,d.created,a):p.call(d,"formatTime",d.created,a)))+"</span> \n");if((g=f["if"].call(d,d.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,
|
||||
c){var b,d;b="<span class='n";(d=f.kindName)?d=d.call(a,{hash:{},data:c}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);b+=q(d)+"'>";(d=f.name)?d=d.call(a,{hash:{},data:c}):(d=a.name,d="function"===typeof d?d.apply(a):d);return b+=q(d)+"</span>: "},c),data:c}))||0===g)a+=g;a+="\n<span class='m";(g=f.kindName)?g=g.call(d,{hash:{},data:c}):(g=d.kindName,g="function"===typeof g?g.apply(d):g);a+=q(g)+"'>";if((g=f["if"].call(d,d.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var b,
|
||||
d;d={hash:{},data:c};return q((b=f.apply,b?b.call(a,a.message,"urlReplace, nl2br",d):p.call(a,"apply",a.message,"urlReplace, nl2br",d)))},c),fn:this.program(3,function(a,c){var b,d;d={hash:{},data:c};return q((b=f.apply,b?b.call(a,a.message,"urlReplace, nl2br, allowTags",d):p.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",d)))},c),data:c}))||0===g)a+=g;return a+="</span><br/>"});s.chat_message_form=r(function(a,d,f,b,c){function g(a,c){var j,e;j={hash:{},data:c};j='\n <select id="predefined" size="1" class="answer">\n <option>'+
|
||||
(h((e=f.L10n,e?e.call(a,"chat.window.predefined.select_answer",j):l.call(a,"L10n","chat.window.predefined.select_answer",j)))+"</option>\n ");if((e=f.each.call(a,a.predefinedAnswers,{hash:{},inverse:k.noop,fn:k.program(5,q,c),data:c}))||0===e)j+=e;return j+="\n </select>\n "}function q(a){var c;return a=""+("\n <option>"+h((c=a["short"],typeof c===r?c.apply(a):c))+"</option>\n ")}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||
|
||||
a.helpers;c=c||{};var p,r="function",h=this.escapeExpression,l=f.helperMissing,k=this;a='<div id="message">\n';if((b=f["if"].call(d,(p=d.user,null==p||!1===p?p:p.canPost),{hash:{},inverse:k.noop,fn:k.program(1,function(){return'\n <div class="bgc"><div class="bgl"><div class="bgr">\n <textarea id="message-input" class="message" tabindex="0" rows="4" cols="10"></textarea>\n </div></div></div>\n'},c),data:c}))||0===b)a+=b;a+='\n</div>\n\n<div id="send">\n';if((b=f["if"].call(d,(p=d.user,
|
||||
null==p||!1===p?p:p.canPost),{hash:{},inverse:k.noop,fn:k.program(3,function(a,c){var j,e,b;j='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((b=f["if"].call(a,(e=a.user,null==e||!1===e?e:e.isAgent),{hash:{},inverse:k.noop,fn:k.program(4,g,c),data:c}))||0===b)j+=b;b={hash:{},data:c};j=j+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+(h((e=f.L10n,e?e.call(a,"chat.window.send_message",b):l.call(a,"L10n","chat.window.send_message",
|
||||
b)))+'">');b={hash:{},data:c};return j+=h((e=f.L10n,e?e.call(a,"chat.window.send_message_short_and_shortcut",b):l.call(a,"L10n","chat.window.send_message_short_and_shortcut",b)))+"</a>\n </div>\n"},c),data:c}))||0===b)a+=b;return a+'\n</div>\n<div class="clear"></div>'});s.chat_status_base=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};a=this.escapeExpression;(f=f.title)?f=f.call(d,{hash:{},data:c}):(f=d.title,f="function"===typeof f?f.apply(d):f);return a(f)});
|
||||
s.chat_status_message=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};a=this.escapeExpression;(f=f.message)?f=f.call(d,{hash:{},data:c}):(f=d.message,f="function"===typeof f?f.apply(d):f);return a(f)});s.chat_status_typing=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g;a=f.helperMissing;b=this.escapeExpression;c={hash:{},data:c};return b((g=f.L10n,g?g.call(d,"typing.remote",c):a.call(d,"L10n","typing.remote",c)))});s.invitation_layout=
|
||||
r(function(){this.compilerInfo=[3,">= 1.0.0-rc.4"];return'<div id="invitation-messages-region"></div>'});s.leave_message_description=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g,q=f.helperMissing,p=this.escapeExpression;b={hash:{},data:c};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(p((g=f.L10n,g?g.call(d,"leavemessage.close",b):q.call(d,"L10n","leavemessage.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+
|
||||
p((g=(g=d.page,null==g||!1===g?g:g.webimRoot),"function"===typeof g?g.apply(d):g))+'/images/free.gif" alt="');b={hash:{},data:c};a+=p((g=f.L10n,g?g.call(d,"leavemessage.close",b):q.call(d,"L10n","leavemessage.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">';b={hash:{},data:c};return a+=p((g=f.L10n,g?g.call(d,"leavemessage.descr",b):q.call(d,"L10n","leavemessage.descr",b)))+"</div>"});s.leave_message_form=r(function(a,d,f,b,c){function g(e,a){var c,b;c='<input type="hidden" name="group" value="';
|
||||
(b=f.groupId)?b=b.call(e,{hash:{},data:a}):(b=e.groupId,b=typeof b===k?b.apply(e):b);return c+=m(b)+'"/>'}function q(e,a){var c,b,j;c=""+('\n <option value="'+m((b=e.id,typeof b===k?b.apply(e):b))+'" ');if((j=f["if"].call(e,e.selected,{hash:{},inverse:n.noop,fn:n.program(6,p,a),data:a}))||0===j)c+=j;return c+=">"+m((b=e.name,typeof b===k?b.apply(e):b))+"</option>\n "}function p(){return'selected="selected"'}function r(e,a){var b;return(b=f["if"].call(e,e.selected,
|
||||
{hash:{},inverse:n.noop,fn:n.program(9,h,a),data:a}))||0===b?b:""}function h(e){var a;return m((a=e.description,typeof a===k?a.apply(e):a))}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var l,k="function",m=this.escapeExpression,n=this,j=f.helperMissing;a=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+m((l=(l=d.page,null==l||!1===l?l:l.style),typeof l===k?l.apply(d):l))+'"/>\n <input type="hidden" name="info" value="');
|
||||
(b=f.info)?b=b.call(d,{hash:{},data:c}):(b=d.info,b=typeof b===k?b.apply(d):b);a+=m(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=f.referrer)?b=b.call(d,{hash:{},data:c}):(b=d.referrer,b=typeof b===k?b.apply(d):b);a+=m(b)+'"/>\n ';if((b=f.unless.call(d,d.groups,{hash:{},inverse:n.noop,fn:n.program(1,function(e,a){var b;return(b=f["if"].call(e,e.groupId,{hash:{},inverse:n.noop,fn:n.program(2,g,a),data:a}))||0===b?b:""},c),data:c}))||0===b)a+=b;b={hash:{},data:c};a=a+'\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+
|
||||
(m((l=f.L10n,l?l.call(d,"form.field.email",b):j.call(d,"L10n","form.field.email",b)))+':</strong></td>\n <td><input type="text" name="email" size="50" value="');(b=f.email)?b=b.call(d,{hash:{},data:c}):(b=d.email,b=typeof b===k?b.apply(d):b);a+=m(b)+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>';b={hash:{},data:c};a+=m((l=f.L10n,l?l.call(d,"form.field.name",b):j.call(d,"L10n","form.field.name",b)))+':</strong></td>\n <td><input type="text" name="name" size="50" value="';
|
||||
(b=f.name)?b=b.call(d,{hash:{},data:c}):(b=d.name,b=typeof b===k?b.apply(d):b);a+=m(b)+'" class="username"/></td>\n </tr>\n ';if((b=f["if"].call(d,d.groups,{hash:{},inverse:n.noop,fn:n.program(4,function(e,a){var b,c,d;d={hash:{},data:a};b='\n <tr>\n <td class="text"><strong>'+(m((c=f.L10n,c?c.call(e,"form.field.department",d):j.call(e,"L10n","form.field.department",d)))+'</strong></td>\n <td>\n <select name="group" style="min-width:200px;">\n ');
|
||||
if((d=f.each.call(e,e.groups,{hash:{},inverse:n.noop,fn:n.program(5,q,a),data:a}))||0===d)b+=d;b+='\n </select>\n </td>\n </tr>\n <tr>\n <td class="text"><strong>';d={hash:{},data:a};b+=m((c=f.L10n,c?c.call(e,"form.field.department.description",d):j.call(e,"L10n","form.field.department.description",d)))+'</strong></td>\n <td class="text" id="groupDescription">\n ';if((d=f.each.call(e,e.groups,{hash:{},inverse:n.noop,fn:n.program(8,
|
||||
r,a),data:a}))||0===d)b+=d;return b+="\n </td>\n </tr>\n "},c),data:c}))||0===b)a+=b;a+="\n <tr>\n <td><strong>";b={hash:{},data:c};a+=m((l=f.L10n,l?l.call(d,"form.field.message",b):j.call(d,"L10n","form.field.message",b)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">';(b=f.message)?b=b.call(d,{hash:{},data:c}):(b=d.message,b=typeof b===k?b.apply(d):b);a+=m(b)+"</textarea>\n </td>\n </tr>\n ";
|
||||
if((b=f["if"].call(d,d.showCaptcha,{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n <tr>\n <td><img id="captcha-img" src="captcha.php"/></td>\n <td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>\n </tr>\n '},c),data:c}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">';b={hash:{},data:c};return a+=m((l=f.L10n,l?l.call(d,"mailthread.perform",b):j.call(d,"L10n",
|
||||
"mailthread.perform",b)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+m((l=(l=d.page,null==l||!1===l?l:l.tplRoot),typeof l===k?l.apply(d):l))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});s.leave_message_layout=r(function(a,d,f,b,c){function g(a){var b;return a=""+("\n <a onclick=\"window.open('"+k((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===l?b.apply(a):b))+'\');return false;" href="'+k((b=(b=a.page,null==b||!1===b?b:b.webimHost),
|
||||
typeof b===l?b.apply(a):b))+'">\n <img src="'+k((b=(b=(b=a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===l?b.apply(a):b))+'" alt=""/>\n </a>\n ')}function q(b){var a;return b=""+('\n <img src="'+k((a=(a=(a=b.page,null==a||!1===a?a:a.company),null==a||!1===a?a:a.chatLogoURL),typeof a===l?a.apply(b):a))+'" alt=""/>\n ')}function p(a){var b;return a=""+("\n <a onclick=\"window.open('"+
|
||||
k((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===l?b.apply(a):b))+'\');return false;" href="'+k((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===l?b.apply(a):b))+'">\n <img src="'+k((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===l?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function r(b){var a;return b=""+('\n <img src="'+k((a=(a=b.page,null==a||!1===a?a:a.tplRoot),typeof a===l?a.apply(b):a))+'/images/default-logo.gif" alt=""/>\n ')}
|
||||
this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var h,l="function",k=this.escapeExpression,m=this;a='\n<div id="top2">\n <div id="logo">\n ';if((c=f["if"].call(d,(h=(h=d.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:m.program(6,function(b,a){var e,c,d;e="\n ";if((d=f["if"].call(b,(c=b.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:m.program(9,r,a),fn:m.program(7,p,a),data:a}))||0===d)e+=d;return e+"\n "},c),fn:m.program(1,
|
||||
function(b,a){var e,c,d;e="\n ";if((d=f["if"].call(b,(c=b.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:m.program(4,q,a),fn:m.program(2,g,a),data:a}))||0===d)e+=d;return e+"\n "},c),data:c}))||0===c)a+=c;return a+='\n \n <div id="page-title">'+k((h=(h=d.page,null==h||!1===h?h:h.title),typeof h===l?h.apply(d):h))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr" id="description-region">\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'});
|
||||
s.leave_message_sent_description=r(function(a,d,f,b,c){this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var g,q=f.helperMissing,p=this.escapeExpression;b={hash:{},data:c};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(p((g=f.L10n,g?g.call(d,"chat.mailthread.sent.close",b):q.call(d,"L10n","chat.mailthread.sent.close",b)))+'">\n <img class="tpl-image iclosewin" src="'+p((g=(g=d.page,null==g||!1===g?g:g.webimRoot),"function"===typeof g?g.apply(d):
|
||||
g))+'/images/free.gif" alt="');b={hash:{},data:c};a+=p((g=f.L10n,g?g.call(d,"chat.mailthread.sent.close",b):q.call(d,"L10n","chat.mailthread.sent.close",b)))+'" />\n </a>\n</div>\n<div class="messagetxt">';b={hash:{},data:c};return a+=p((g=f.L10n,g?g.call(d,"leavemessage.sent.message",b):q.call(d,"L10n","leavemessage.sent.message",b)))+"</div>"});s.survey_form=r(function(a,d,f,b,c){function g(b,a){var e,c;e='<input type="hidden" name="group" value="';(c=f.groupId)?c=c.call(b,{hash:{},data:a}):
|
||||
(c=b.groupId,c=typeof c===m?c.apply(b):c);return e+=n(c)+'"/>'}function q(b,a){var e,c,d;e=""+('\n <option value="'+n((c=b.id,typeof c===m?c.apply(b):c))+'" ');if((d=f["if"].call(b,b.selected,{hash:{},inverse:j.noop,fn:j.program(10,p,a),data:a}))||0===d)e+=d;e+=">"+n((c=b.name,typeof c===m?c.apply(b):c));if((d=f.unless.call(b,b.online,{hash:{},inverse:j.noop,fn:j.program(12,r,a),data:a}))||0===d)e+=d;return e+"</option>\n "}function p(){return'selected="selected"'}
|
||||
function r(){return" (offline)"}function h(b,a){var e;return(e=f["if"].call(b,b.selected,{hash:{},inverse:j.noop,fn:j.program(15,l,a),data:a}))||0===e?e:""}function l(b){var a;return n((a=b.description,typeof a===m?a.apply(b):a))}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var k,m="function",n=this.escapeExpression,j=this,e=f.helperMissing;a=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+n((k=(k=d.page,null==k||!1===k?k:k.style),
|
||||
typeof k===m?k.apply(d):k))+'"/>\n <input type="hidden" name="info" value="');(b=f.info)?b=b.call(d,{hash:{},data:c}):(b=d.info,b=typeof b===m?b.apply(d):b);a+=n(b)+'"/>\n <input type="hidden" name="referrer" value="';(b=f.referrer)?b=b.call(d,{hash:{},data:c}):(b=d.referrer,b=typeof b===m?b.apply(d):b);a+=n(b)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((b=f.unless.call(d,d.showEmail,{hash:{},inverse:j.noop,fn:j.program(1,function(b,a){var e,c;e='<input type="hidden" name="email" value="';
|
||||
(c=f.email)?c=c.call(b,{hash:{},data:a}):(c=b.email,c=typeof c===m?c.apply(b):c);return e+=n(c)+'"/>'},c),data:c}))||0===b)a+=b;a+="\n ";if((b=f.unless.call(d,d.groups,{hash:{},inverse:j.noop,fn:j.program(3,function(b,a){var e;return(e=f["if"].call(b,b.groupId,{hash:{},inverse:j.noop,fn:j.program(4,g,a),data:a}))||0===e?e:""},c),data:c}))||0===b)a+=b;a+="\n ";if((b=f.unless.call(d,d.showMessage,{hash:{},inverse:j.noop,fn:j.program(6,function(b,a){var e,c;e='<input type="hidden" name="message" value="';
|
||||
(c=f.message)?c=c.call(b,{hash:{},data:a}):(c=b.message,c=typeof c===m?c.apply(b):c);return e+=n(c)+'"/>'},c),data:c}))||0===b)a+=b;a+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((b=f["if"].call(d,d.groups,{hash:{},inverse:j.noop,fn:j.program(8,function(b,a){var c,d,g;g={hash:{},data:a};c="\n <tr>\n <td><strong>"+(n((d=f.L10n,d?d.call(b,"form.field.department",g):e.call(b,"L10n","form.field.department",g)))+'</strong></td>\n <td>\n <select name="group">\n ');
|
||||
if((g=f.each.call(b,b.groups,{hash:{},inverse:j.noop,fn:j.program(9,q,a),data:a}))||0===g)c+=g;c+="\n </select>\n </td>\n </tr>\n <tr>\n <td><strong>";g={hash:{},data:a};c+=n((d=f.L10n,d?d.call(b,"form.field.department.description",g):e.call(b,"L10n","form.field.department.description",g)))+'</strong></td>\n <td id="groupDescription">';if((g=f.each.call(b,b.groups,{hash:{},inverse:j.noop,fn:j.program(14,h,a),data:a}))||0===g)c+=g;return c+=
|
||||
"</td>\n </tr>\n "},c),data:c}))||0===b)a+=b;b={hash:{},data:c};a=a+"\n <tr>\n <td><strong>"+(n((k=f.L10n,k?k.call(d,"presurvey.name",b):e.call(d,"L10n","presurvey.name",b)))+'</strong></td>\n <td><input type="text" name="name" size="50" value="');(b=f.name)?b=b.call(d,{hash:{},data:c}):(b=d.name,b=typeof b===m?b.apply(d):b);a+=n(b)+'" class="username" ';if((b=f.unless.call(d,d.canChangeName,{hash:{},inverse:j.noop,fn:j.program(17,function(){return'disabled="disabled"'},
|
||||
c),data:c}))||0===b)a+=b;a+="/></td>\n </tr>\n ";if((b=f["if"].call(d,d.showEmail,{hash:{},inverse:j.noop,fn:j.program(19,function(b,a){var c,d;c={hash:{},data:a};c="\n <tr>\n <td><strong>"+(n((d=f.L10n,d?d.call(b,"presurvey.mail",c):e.call(b,"L10n","presurvey.mail",c)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');(d=f.email)?d=d.call(b,{hash:{},data:a}):(d=b.email,d=typeof d===m?d.apply(b):d);return c+=n(d)+'" class="username"/></td>\n </tr>\n '},
|
||||
c),data:c}))||0===b)a+=b;a+="\n ";if((b=f["if"].call(d,d.showMessage,{hash:{},inverse:j.noop,fn:j.program(21,function(b,a){var c,d;c={hash:{},data:a};c="\n <tr>\n <td><strong>"+(n((d=f.L10n,d?d.call(b,"presurvey.question",c):e.call(b,"L10n","presurvey.question",c)))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">');(d=f.message)?d=d.call(b,{hash:{},data:a}):(d=b.message,d=typeof d===m?d.apply(b):d);return c+=n(d)+"</textarea></td>\n </tr>\n "},
|
||||
c),data:c}))||0===b)a+=b;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">';b={hash:{},data:c};return a+=n((k=f.L10n,k?k.call(d,"presurvey.submit",b):e.call(d,"L10n","presurvey.submit",b)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+n((k=(k=d.page,null==k||!1===k?k:k.tplRoot),typeof k===m?k.apply(d):k))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});s.survey_layout=r(function(a,d,f,b,c){function g(b){var a;return b=
|
||||
""+("\n <a onclick=\"window.open('"+m((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===k?a.apply(b):a))+'\');return false;" href="'+m((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===k?a.apply(b):a))+'">\n <img src="'+m((a=(a=(a=b.page,null==a||!1===a?a:a.company),null==a||!1===a?a:a.chatLogoURL),typeof a===k?a.apply(b):a))+'" alt=""/>\n </a>\n ')}function q(a){var b;return a=""+('\n <img src="'+m((b=(b=(b=a.page,
|
||||
null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===k?b.apply(a):b))+'" alt=""/>\n ')}function p(b){var a;return b=""+("\n <a onclick=\"window.open('"+m((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===k?a.apply(b):a))+'\');return false;" href="'+m((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===k?a.apply(b):a))+'">\n <img src="'+m((a=(a=b.page,null==a||!1===a?a:a.tplRoot),typeof a===k?a.apply(b):a))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}
|
||||
function r(a){var b;return a=""+('\n <img src="'+m((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===k?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[3,">= 1.0.0-rc.4"];f=f||a.helpers;c=c||{};var h,l,k="function",m=this.escapeExpression,n=this;b=f.helperMissing;a='\n<div id="top2">\n <div id="logo">\n ';if((l=f["if"].call(d,(h=(h=d.page,null==h||!1===h?h:h.company),null==h||!1===h?h:h.chatLogoURL),{hash:{},inverse:n.program(6,function(a,
|
||||
b){var c,d,g;c="\n ";if((g=f["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(9,r,b),fn:n.program(7,p,b),data:b}))||0===g)c+=g;return c+"\n "},c),fn:n.program(1,function(a,b){var c,d,h;c="\n ";if((h=f["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(4,q,b),fn:n.program(2,g,b),data:b}))||0===h)c+=h;return c+"\n "},c),data:c}))||0===l)a+=l;a+='\n \n <div id="page-title">'+m((h=(h=
|
||||
d.page,null==h||!1===h?h:h.title),typeof h===k?h.apply(d):h))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr">\n <div class="buttons">\n <a href="javascript:window.close();" title="';l={hash:{},data:c};a+=m((h=f.L10n,h?h.call(d,"leavemessage.close",l):b.call(d,"L10n","leavemessage.close",
|
||||
l)))+'"><img class="tpl-image iclosewin" src="'+m((h=(h=d.page,null==h||!1===h?h:h.webimRoot),typeof h===k?h.apply(d):h))+'/images/free.gif" alt="';l={hash:{},data:c};a+=m((h=f.L10n,h?h.call(d,"leavemessage.close",l):b.call(d,"L10n","leavemessage.close",l)))+'" /></a>\n </div>\n <div class="messagetxt">';l={hash:{},data:c};return a+=m((h=f.L10n,h?h.call(d,"presurvey.intro",l):b.call(d,"L10n","presurvey.intro",l)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'})})();
|
||||
(function(){var r=Handlebars.template,s=Handlebars.templates=Handlebars.templates||{};s.chat_avatar=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h=this.escapeExpression;return(a=e["if"].call(b,b.imageLink,{hash:{},inverse:this.program(3,function(){return'<div class="default-avatar"></div>'},c),fn:this.program(1,function(a,b){var d,c;d='<img src="';(c=e.imageLink)?c=c.call(a,{hash:{},data:b}):(c=a.imageLink,c="function"===typeof c?c.apply(a):c);return d+=
|
||||
h(c)+'" border="0" alt="" />'},c),data:c}))||0===a?a:""});s.chat_controls_close=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='<div class="tpl-image" title="'+(d((h=e.L10n||b.L10n,h?h.call(b,"chat.window.close_title",c):a.call(b,"L10n","chat.window.close_title",c)))+'"></div>')});s.chat_controls_history=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);
|
||||
c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='<div class="tpl-image" title="'+(d((h=e.L10n||b.L10n,h?h.call(b,"page.analysis.userhistory.title",c):a.call(b,"L10n","page.analysis.userhistory.title",c)))+'"></div>')});s.chat_controls_redirect=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;return(a=e["if"].call(b,(h=b.user,null==h||!1===h?h:h.canPost),{hash:{},inverse:this.noop,
|
||||
fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n<div class="tpl-image" title="'+(p((c=e.L10n||a.L10n,c?c.call(a,"chat.window.toolbar.redirect_user",d):q.call(a,"L10n","chat.window.toolbar.redirect_user",d)))+'"></div>\n')},c),data:c}))||0===a?a:""});s.chat_controls_refresh=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='<div class="tpl-image" title="'+(d((h=
|
||||
e.L10n||b.L10n,h?h.call(b,"chat.window.toolbar.refresh",c):a.call(b,"L10n","chat.window.toolbar.refresh",c)))+'"></div>')});s.chat_controls_secure_mode=r(function(a,b,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,a.helpers);return'<div class="tpl-image" title="SSL"></div>'});s.chat_controls_send_mail=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;c={hash:{},data:c};return b='<div class="tpl-image" title="'+
|
||||
(d((h=e.L10n||b.L10n,h?h.call(b,"chat.window.toolbar.mail_history",c):a.call(b,"L10n","chat.window.toolbar.mail_history",c)))+'"></div>')});s.chat_controls_sound=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h=e.helperMissing,q=this.escapeExpression;return(a=e["if"].call(b,b.enabled,{hash:{},inverse:this.program(3,function(a,b){var d,c;d={hash:{},data:b};return d='\n <div class="tpl-image sound-control-off" title="'+(q((c=e.L10n||a.L10n,c?c.call(a,
|
||||
"chat.window.toolbar.turn_on_sound",d):h.call(a,"L10n","chat.window.toolbar.turn_on_sound",d)))+'"></div>\n')},c),fn:this.program(1,function(a,b){var d,c;d={hash:{},data:b};return d='\n <div class="tpl-image sound-control-on" title="'+(q((c=e.L10n||a.L10n,c?c.call(a,"chat.window.toolbar.turn_off_sound",d):h.call(a,"L10n","chat.window.toolbar.turn_off_sound",d)))+'"></div>\n')},c),data:c}))||0===a?a:""});s.chat_controls_user_name=r(function(a,b,e,d,c){function h(a,b){var m,f,d;m=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+
|
||||
g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="');d={hash:{},data:b};return m+=g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.changename",d):k.call(a,"L10n","chat.client.changename",d)))+'"></a>\n '}function q(a,d){var m,f,b;b={hash:{},data:d};m='\n <a href="javascript:void(0)" title="'+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.changename",b):k.call(a,"L10n",
|
||||
"chat.client.changename",b)))+'">'+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+'</a>\n <a class="user-name-control-change tpl-image" title="');b={hash:{},data:d};return m+=g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.changename",b):k.call(a,"L10n","chat.client.changename",b)))+'"></a>\n '}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var p,t="function",g=this.escapeExpression,k=e.helperMissing,j=this;return(a=e["if"].call(b,(p=b.user,null==p||
|
||||
!1===p?p:p.canChangeName),{hash:{},inverse:j.program(6,function(a,b){var m,f;m={hash:{},data:b};return m="\n"+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.name",m):k.call(a,"L10n","chat.client.name",m)))+" "+g((f=(f=a.user,null==f||!1===f?f:f.name),typeof f===t?f.apply(a):f))+"\n")},c),fn:j.program(1,function(a,b){var m,f;m={hash:{},data:b};m='\n <span class="user-name-control-prefix">'+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.client.name",m):k.call(a,"L10n","chat.client.name",m)))+"</span>\n ");
|
||||
if((f=e["if"].call(a,a.nameInput,{hash:{},inverse:j.program(4,q,b),fn:j.program(2,h,b),data:b}))||0===f)m+=f;return m+="\n"},c),data:c}))||0===a?a:""});s.chat_layout=r(function(a,b,e,d,c){function h(a){var f;return a=""+("\n <a onclick=\"window.open('"+l((f=(f=a.page,null==f||!1===f?f:f.webimHost),typeof f===j?f.apply(a):f))+'\');return false;" href="'+l((f=(f=a.page,null==f||!1===f?f:f.webimHost),typeof f===j?f.apply(a):f))+'">\n <img src="'+l((f=(f=(f=a.page,null==
|
||||
f||!1===f?f:f.company),null==f||!1===f?f:f.chatLogoURL),typeof f===j?f.apply(a):f))+'" alt=""/>\n </a>\n ')}function q(a){var f;return a=""+('\n <img src="'+l((f=(f=(f=a.page,null==f||!1===f?f:f.company),null==f||!1===f?f:f.chatLogoURL),typeof f===j?f.apply(a):f))+'" alt=""/>\n ')}function p(a){var f;return a=""+("\n <a onclick=\"window.open('"+l((f=(f=a.page,null==f||!1===f?f:f.webimHost),typeof f===j?f.apply(a):f))+'\');return false;" href="'+
|
||||
l((f=(f=a.page,null==f||!1===f?f:f.webimHost),typeof f===j?f.apply(a):f))+'">\n <img src="'+l((f=(f=a.page,null==f||!1===f?f:f.tplRoot),typeof f===j?f.apply(a):f))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function t(a){var f;return a=""+('\n <img src="'+l((f=(f=a.page,null==f||!1===f?f:f.tplRoot),typeof f===j?f.apply(a):f))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);
|
||||
c=c||{};var g,k,j="function",l=this.escapeExpression,n=this;d=e.helperMissing;a='\n<div id="top">\n <div id="logo">\n ';if((k=e["if"].call(b,(g=(g=b.page,null==g||!1===g?g:g.company),null==g||!1===g?g:g.chatLogoURL),{hash:{},inverse:n.program(6,function(a,f){var b,d,c;b="\n ";if((c=e["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(9,t,f),fn:n.program(7,p,f),data:f}))||0===c)b+=c;return b+"\n "},c),fn:n.program(1,function(a,f){var b,d,c;
|
||||
b="\n ";if((c=e["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(4,q,f),fn:n.program(2,h,f),data:f}))||0===c)b+=c;return b+"\n "},c),data:c}))||0===k)a+=k;a+='\n \n <div id="page-title">'+l((g=(g=b.page,null==g||!1===g?g:g.title),typeof g===j?g.apply(b):g))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="chat-header">\n <div class="bgc"><div class="bgl"><div class="bgr">\n \n <div id="controls-region"></div>\n </div></div></div>\n</div>\n\n\n<div id="chat">\n <div class="bgl"><div class="bgr"><div class="sdwbgc"><div class="sdwbgl"><div class="sdwbgr">\n ';
|
||||
if((k=e.unless.call(b,(g=b.user,null==g||!1===g?g:g.isAgent),{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n <div id="avatar-region"></div>\n '},c),data:c}))||0===k)a+=k;c={hash:{},data:c};return a=a+'\n \n <div id="messages-region"></div>\n \n <div id="status-region"></div>\n </div></div></div></div></div>\n</div>\n\n\n<div id="message-form-region"></div>\n\n\n<div id="footer">'+(l((g=e.L10n||b.L10n,g?g.call(b,"chat.window.poweredby",c):d.call(b,
|
||||
"L10n","chat.window.poweredby",c)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>')});s.chat_message=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=this.escapeExpression,p=e.helperMissing;a={hash:{},data:c};a="<span>"+(q((h=e.formatTime||b.formatTime,h?h.call(b,b.created,a):p.call(b,"formatTime",b.created,a)))+"</span> \n");if((h=e["if"].call(b,b.name,{hash:{},inverse:this.noop,fn:this.program(1,
|
||||
function(a,b){var d,c;d="<span class='n";(c=e.kindName)?c=c.call(a,{hash:{},data:b}):(c=a.kindName,c="function"===typeof c?c.apply(a):c);d+=q(c)+"'>";(c=e.name)?c=c.call(a,{hash:{},data:b}):(c=a.name,c="function"===typeof c?c.apply(a):c);return d+=q(c)+"</span>: "},c),data:c}))||0===h)a+=h;a+="\n<span class='m";(h=e.kindName)?h=h.call(b,{hash:{},data:c}):(h=b.kindName,h="function"===typeof h?h.apply(b):h);a+=q(h)+"'>";if((h=e["if"].call(b,b.allowFormatting,{hash:{},inverse:this.program(5,function(a,
|
||||
b){var d,c;c={hash:{},data:b};return q((d=e.apply||a.apply,d?d.call(a,a.message,"urlReplace, nl2br",c):p.call(a,"apply",a.message,"urlReplace, nl2br",c)))},c),fn:this.program(3,function(a,b){var d,c;c={hash:{},data:b};return q((d=e.apply||a.apply,d?d.call(a,a.message,"urlReplace, nl2br, allowTags",c):p.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",c)))},c),data:c}))||0===h)a+=h;return a+="</span><br/>"});s.chat_message_form=r(function(a,b,e,d,c){function h(a,b){var d,f;d={hash:{},data:b};
|
||||
d='\n <select id="predefined" size="1" class="answer">\n <option>'+(g((f=e.L10n||a.L10n,f?f.call(a,"chat.window.predefined.select_answer",d):k.call(a,"L10n","chat.window.predefined.select_answer",d)))+"</option>\n ");if((f=e.each.call(a,a.predefinedAnswers,{hash:{},inverse:j.noop,fn:j.program(5,q,b),data:b}))||0===f)d+=f;return d+="\n </select>\n "}function q(a){var d;return a=""+("\n <option>"+g((d=a["short"],
|
||||
typeof d===r?d.apply(a):d))+"</option>\n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var p,r="function",g=this.escapeExpression,k=e.helperMissing,j=this;a='<div id="message">\n';if((d=e["if"].call(b,(p=b.user,null==p||!1===p?p:p.canPost),{hash:{},inverse:j.noop,fn:j.program(1,function(){return'\n <div class="bgc"><div class="bgl"><div class="bgr">\n <textarea id="message-input" class="message" tabindex="0" rows="4" cols="10"></textarea>\n </div></div></div>\n'},
|
||||
c),data:c}))||0===d)a+=d;a+='\n</div>\n\n<div id="send">\n';if((d=e["if"].call(b,(p=b.user,null==p||!1===p?p:p.canPost),{hash:{},inverse:j.noop,fn:j.program(3,function(a,d){var b,f,c;b='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((c=e["if"].call(a,(f=a.user,null==f||!1===f?f:f.isAgent),{hash:{},inverse:j.noop,fn:j.program(4,h,d),data:d}))||0===c)b+=c;c={hash:{},data:d};b=b+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+
|
||||
(g((f=e.L10n||a.L10n,f?f.call(a,"chat.window.send_message",c):k.call(a,"L10n","chat.window.send_message",c)))+'">');c={hash:{},data:d};return b+=g((f=e.L10n||a.L10n,f?f.call(a,"chat.window.send_message_short_and_shortcut",c):k.call(a,"L10n","chat.window.send_message_short_and_shortcut",c)))+"</a>\n </div>\n"},c),data:c}))||0===d)a+=d;return a+'\n</div>\n<div class="clear"></div>'});s.chat_status_base=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};a=this.escapeExpression;
|
||||
(e=e.title)?e=e.call(b,{hash:{},data:c}):(e=b.title,e="function"===typeof e?e.apply(b):e);return a(e)});s.chat_status_message=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};a=this.escapeExpression;(e=e.message)?e=e.call(b,{hash:{},data:c}):(e=b.message,e="function"===typeof e?e.apply(b):e);return a(e)});s.chat_status_typing=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h;a=e.helperMissing;d=this.escapeExpression;
|
||||
c={hash:{},data:c};return d((h=e.L10n||b.L10n,h?h.call(b,"typing.remote",c):a.call(b,"L10n","typing.remote",c)))});s.invitation_layout=r(function(a,b,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,a.helpers);return'<div id="invitation-messages-region"></div>'});s.leave_message_description=r(function(a,b,e,d,c){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;d={hash:{},data:c};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+
|
||||
(p((h=e.L10n||b.L10n,h?h.call(b,"leavemessage.close",d):q.call(b,"L10n","leavemessage.close",d)))+'">\n <img class="tpl-image iclosewin" src="'+p((h=(h=b.page,null==h||!1===h?h:h.webimRoot),"function"===typeof h?h.apply(b):h))+'/images/free.gif" alt="');d={hash:{},data:c};a+=p((h=e.L10n||b.L10n,h?h.call(b,"leavemessage.close",d):q.call(b,"L10n","leavemessage.close",d)))+'" />\n </a>\n</div>\n<div class="messagetxt">';d={hash:{},data:c};return a+=p((h=e.L10n||b.L10n,h?h.call(b,"leavemessage.descr",
|
||||
d):q.call(b,"L10n","leavemessage.descr",d)))+"</div>"});s.leave_message_form=r(function(a,b,e,d,c){function h(a,d){var b,c;b='<input type="hidden" name="group" value="';(c=e.groupId)?c=c.call(a,{hash:{},data:d}):(c=a.groupId,c=typeof c===j?c.apply(a):c);return b+=l(c)+'"/>'}function q(a,d){var b,c,m;b=""+('\n <option value="'+l((c=a.id,typeof c===j?c.apply(a):c))+'" ');if((m=e["if"].call(a,a.selected,{hash:{},inverse:n.noop,fn:n.program(6,p,d),data:d}))||0===m)b+=m;return b+=
|
||||
">"+l((c=a.name,typeof c===j?c.apply(a):c))+"</option>\n "}function p(){return'selected="selected"'}function r(a,d){var b;return(b=e["if"].call(a,a.selected,{hash:{},inverse:n.noop,fn:n.program(9,g,d),data:d}))||0===b?b:""}function g(a){var d;return l((d=a.description,typeof d===j?d.apply(a):d))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var k,j="function",l=this.escapeExpression,n=this,m=e.helperMissing;a=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+
|
||||
l((k=(k=b.page,null==k||!1===k?k:k.style),typeof k===j?k.apply(b):k))+'"/>\n <input type="hidden" name="info" value="');(d=e.info)?d=d.call(b,{hash:{},data:c}):(d=b.info,d=typeof d===j?d.apply(b):d);a+=l(d)+'"/>\n <input type="hidden" name="referrer" value="';(d=e.referrer)?d=d.call(b,{hash:{},data:c}):(d=b.referrer,d=typeof d===j?d.apply(b):d);a+=l(d)+'"/>\n ';if((d=e.unless.call(b,b.groups,{hash:{},inverse:n.noop,fn:n.program(1,function(a,d){var b;return(b=e["if"].call(a,a.groupId,{hash:{},
|
||||
inverse:n.noop,fn:n.program(2,h,d),data:d}))||0===b?b:""},c),data:c}))||0===d)a+=d;d={hash:{},data:c};a=a+'\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+(l((k=e.L10n||b.L10n,k?k.call(b,"form.field.email",d):m.call(b,"L10n","form.field.email",d)))+':</strong></td>\n <td><input type="text" name="email" size="50" value="');(d=e.email)?d=d.call(b,{hash:{},data:c}):(d=b.email,d=typeof d===j?
|
||||
d.apply(b):d);a+=l(d)+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>';d={hash:{},data:c};a+=l((k=e.L10n||b.L10n,k?k.call(b,"form.field.name",d):m.call(b,"L10n","form.field.name",d)))+':</strong></td>\n <td><input type="text" name="name" size="50" value="';(d=e.name)?d=d.call(b,{hash:{},data:c}):(d=b.name,d=typeof d===j?d.apply(b):d);a+=l(d)+'" class="username"/></td>\n </tr>\n ';if((d=e["if"].call(b,b.groups,{hash:{},inverse:n.noop,fn:n.program(4,
|
||||
function(a,d){var b,c,g;g={hash:{},data:d};b='\n <tr>\n <td class="text"><strong>'+(l((c=e.L10n||a.L10n,c?c.call(a,"form.field.department",g):m.call(a,"L10n","form.field.department",g)))+'</strong></td>\n <td>\n <select name="group" style="min-width:200px;">\n ');if((g=e.each.call(a,a.groups,{hash:{},inverse:n.noop,fn:n.program(5,q,d),data:d}))||0===g)b+=g;b+='\n </select>\n </td>\n </tr>\n <tr>\n <td class="text"><strong>';
|
||||
g={hash:{},data:d};b+=l((c=e.L10n||a.L10n,c?c.call(a,"form.field.department.description",g):m.call(a,"L10n","form.field.department.description",g)))+'</strong></td>\n <td class="text" id="groupDescription">\n ';if((g=e.each.call(a,a.groups,{hash:{},inverse:n.noop,fn:n.program(8,r,d),data:d}))||0===g)b+=g;return b+="\n </td>\n </tr>\n "},c),data:c}))||0===d)a+=d;a+="\n <tr>\n <td><strong>";d={hash:{},data:c};a+=l((k=e.L10n||b.L10n,k?
|
||||
k.call(b,"form.field.message",d):m.call(b,"L10n","form.field.message",d)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">';(d=e.message)?d=d.call(b,{hash:{},data:c}):(d=b.message,d=typeof d===j?d.apply(b):d);a+=l(d)+"</textarea>\n </td>\n </tr>\n ";if((d=e["if"].call(b,b.showCaptcha,{hash:{},inverse:n.noop,fn:n.program(11,function(){return'\n <tr>\n <td><img id="captcha-img" src="captcha.php"/></td>\n <td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>\n </tr>\n '},
|
||||
c),data:c}))||0===d)a+=d;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">';d={hash:{},data:c};return a+=l((k=e.L10n||b.L10n,k?k.call(b,"mailthread.perform",d):m.call(b,"L10n","mailthread.perform",d)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+l((k=(k=b.page,null==k||!1===k?k:k.tplRoot),typeof k===j?k.apply(b):k))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});s.leave_message_layout=r(function(a,b,e,d,c){function h(a){var b;
|
||||
return a=""+("\n <a onclick=\"window.open('"+j((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===k?b.apply(a):b))+'\');return false;" href="'+j((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===k?b.apply(a):b))+'">\n <img src="'+j((b=(b=(b=a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===k?b.apply(a):b))+'" alt=""/>\n </a>\n ')}function q(a){var b;return a=""+('\n <img src="'+j((b=(b=
|
||||
(b=a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===k?b.apply(a):b))+'" alt=""/>\n ')}function p(a){var b;return a=""+("\n <a onclick=\"window.open('"+j((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===k?b.apply(a):b))+'\');return false;" href="'+j((b=(b=a.page,null==b||!1===b?b:b.webimHost),typeof b===k?b.apply(a):b))+'">\n <img src="'+j((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===k?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}
|
||||
function r(a){var b;return a=""+('\n <img src="'+j((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===k?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var g,k="function",j=this.escapeExpression,l=this;a='\n<div id="top2">\n <div id="logo">\n ';if((c=e["if"].call(b,(g=(g=b.page,null==g||!1===g?g:g.company),null==g||!1===g?g:g.chatLogoURL),{hash:{},inverse:l.program(6,function(b,a){var d,
|
||||
c,g;d="\n ";if((g=e["if"].call(b,(c=b.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:l.program(9,r,a),fn:l.program(7,p,a),data:a}))||0===g)d+=g;return d+"\n "},c),fn:l.program(1,function(a,b){var d,c,g;d="\n ";if((g=e["if"].call(a,(c=a.page,null==c||!1===c?c:c.webimHost),{hash:{},inverse:l.program(4,q,b),fn:l.program(2,h,b),data:b}))||0===g)d+=g;return d+"\n "},c),data:c}))||0===c)a+=c;return a+='\n \n <div id="page-title">'+j((g=(g=b.page,
|
||||
null==g||!1===g?g:g.title),typeof g===k?g.apply(b):g))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr" id="description-region">\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'});s.leave_message_sent_description=r(function(a,b,e,d,c){this.compilerInfo=
|
||||
[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var h,q=e.helperMissing,p=this.escapeExpression;d={hash:{},data:c};a='<div class="buttons">\n <a href="javascript:window.close();" title="'+(p((h=e.L10n||b.L10n,h?h.call(b,"chat.mailthread.sent.close",d):q.call(b,"L10n","chat.mailthread.sent.close",d)))+'">\n <img class="tpl-image iclosewin" src="'+p((h=(h=b.page,null==h||!1===h?h:h.webimRoot),"function"===typeof h?h.apply(b):h))+'/images/free.gif" alt="');d={hash:{},data:c};a+=p((h=
|
||||
e.L10n||b.L10n,h?h.call(b,"chat.mailthread.sent.close",d):q.call(b,"L10n","chat.mailthread.sent.close",d)))+'" />\n </a>\n</div>\n<div class="messagetxt">';d={hash:{},data:c};return a+=p((h=e.L10n||b.L10n,h?h.call(b,"leavemessage.sent.message",d):q.call(b,"L10n","leavemessage.sent.message",d)))+"</div>"});s.survey_form=r(function(a,b,e,d,c){function h(b,a){var d,c;d='<input type="hidden" name="group" value="';(c=e.groupId)?c=c.call(b,{hash:{},data:a}):(c=b.groupId,c=typeof c===l?c.apply(b):
|
||||
c);return d+=n(c)+'"/>'}function q(b,a){var d,c,f;d=""+('\n <option value="'+n((c=b.id,typeof c===l?c.apply(b):c))+'" ');if((f=e["if"].call(b,b.selected,{hash:{},inverse:m.noop,fn:m.program(10,p,a),data:a}))||0===f)d+=f;d+=">"+n((c=b.name,typeof c===l?c.apply(b):c));if((f=e.unless.call(b,b.online,{hash:{},inverse:m.noop,fn:m.program(12,r,a),data:a}))||0===f)d+=f;return d+"</option>\n "}function p(){return'selected="selected"'}function r(){return" (offline)"}
|
||||
function g(b,a){var d;return(d=e["if"].call(b,b.selected,{hash:{},inverse:m.noop,fn:m.program(15,k,a),data:a}))||0===d?d:""}function k(b){var a;return n((a=b.description,typeof a===l?a.apply(b):a))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var j,l="function",n=this.escapeExpression,m=this,f=e.helperMissing;a=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+n((j=(j=b.page,null==j||!1===j?j:j.style),typeof j===l?j.apply(b):
|
||||
j))+'"/>\n <input type="hidden" name="info" value="');(d=e.info)?d=d.call(b,{hash:{},data:c}):(d=b.info,d=typeof d===l?d.apply(b):d);a+=n(d)+'"/>\n <input type="hidden" name="referrer" value="';(d=e.referrer)?d=d.call(b,{hash:{},data:c}):(d=b.referrer,d=typeof d===l?d.apply(b):d);a+=n(d)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((d=e.unless.call(b,b.showEmail,{hash:{},inverse:m.noop,fn:m.program(1,function(b,a){var d,c;d='<input type="hidden" name="email" value="';
|
||||
(c=e.email)?c=c.call(b,{hash:{},data:a}):(c=b.email,c=typeof c===l?c.apply(b):c);return d+=n(c)+'"/>'},c),data:c}))||0===d)a+=d;a+="\n ";if((d=e.unless.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(3,function(b,a){var d;return(d=e["if"].call(b,b.groupId,{hash:{},inverse:m.noop,fn:m.program(4,h,a),data:a}))||0===d?d:""},c),data:c}))||0===d)a+=d;a+="\n ";if((d=e.unless.call(b,b.showMessage,{hash:{},inverse:m.noop,fn:m.program(6,function(b,a){var d,c;d='<input type="hidden" name="message" value="';
|
||||
(c=e.message)?c=c.call(b,{hash:{},data:a}):(c=b.message,c=typeof c===l?c.apply(b):c);return d+=n(c)+'"/>'},c),data:c}))||0===d)a+=d;a+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((d=e["if"].call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(8,function(b,a){var d,c,h;h={hash:{},data:a};d="\n <tr>\n <td><strong>"+(n((c=e.L10n||b.L10n,c?c.call(b,"form.field.department",h):f.call(b,"L10n","form.field.department",h)))+'</strong></td>\n <td>\n <select name="group">\n ');
|
||||
if((h=e.each.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(9,q,a),data:a}))||0===h)d+=h;d+="\n </select>\n </td>\n </tr>\n <tr>\n <td><strong>";h={hash:{},data:a};d+=n((c=e.L10n||b.L10n,c?c.call(b,"form.field.department.description",h):f.call(b,"L10n","form.field.department.description",h)))+'</strong></td>\n <td id="groupDescription">';if((h=e.each.call(b,b.groups,{hash:{},inverse:m.noop,fn:m.program(14,g,a),data:a}))||0===h)d+=
|
||||
h;return d+="</td>\n </tr>\n "},c),data:c}))||0===d)a+=d;d={hash:{},data:c};a=a+"\n <tr>\n <td><strong>"+(n((j=e.L10n||b.L10n,j?j.call(b,"presurvey.name",d):f.call(b,"L10n","presurvey.name",d)))+'</strong></td>\n <td><input type="text" name="name" size="50" value="');(d=e.name)?d=d.call(b,{hash:{},data:c}):(d=b.name,d=typeof d===l?d.apply(b):d);a+=n(d)+'" class="username" ';if((d=e.unless.call(b,b.canChangeName,{hash:{},inverse:m.noop,fn:m.program(17,function(){return'disabled="disabled"'},
|
||||
c),data:c}))||0===d)a+=d;a+="/></td>\n </tr>\n ";if((d=e["if"].call(b,b.showEmail,{hash:{},inverse:m.noop,fn:m.program(19,function(b,a){var d,c;d={hash:{},data:a};d="\n <tr>\n <td><strong>"+(n((c=e.L10n||b.L10n,c?c.call(b,"presurvey.mail",d):f.call(b,"L10n","presurvey.mail",d)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');(c=e.email)?c=c.call(b,{hash:{},data:a}):(c=b.email,c=typeof c===l?c.apply(b):c);return d+=n(c)+'" class="username"/></td>\n </tr>\n '},
|
||||
c),data:c}))||0===d)a+=d;a+="\n ";if((d=e["if"].call(b,b.showMessage,{hash:{},inverse:m.noop,fn:m.program(21,function(b,a){var d,c;d={hash:{},data:a};d="\n <tr>\n <td><strong>"+(n((c=e.L10n||b.L10n,c?c.call(b,"presurvey.question",d):f.call(b,"L10n","presurvey.question",d)))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">');(c=e.message)?c=c.call(b,{hash:{},data:a}):(c=b.message,c=typeof c===l?c.apply(b):c);return d+=n(c)+
|
||||
"</textarea></td>\n </tr>\n "},c),data:c}))||0===d)a+=d;a+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">';d={hash:{},data:c};return a+=n((j=e.L10n||b.L10n,j?j.call(b,"presurvey.submit",d):f.call(b,"L10n","presurvey.submit",d)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+n((j=(j=b.page,null==j||!1===j?j:j.tplRoot),typeof j===l?j.apply(b):j))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});s.survey_layout=
|
||||
r(function(a,b,e,d,c){function h(b){var a;return b=""+("\n <a onclick=\"window.open('"+l((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===j?a.apply(b):a))+'\');return false;" href="'+l((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===j?a.apply(b):a))+'">\n <img src="'+l((a=(a=(a=b.page,null==a||!1===a?a:a.company),null==a||!1===a?a:a.chatLogoURL),typeof a===j?a.apply(b):a))+'" alt=""/>\n </a>\n ')}function q(a){var b;return a=
|
||||
""+('\n <img src="'+l((b=(b=(b=a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),typeof b===j?b.apply(a):b))+'" alt=""/>\n ')}function p(b){var a;return b=""+("\n <a onclick=\"window.open('"+l((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===j?a.apply(b):a))+'\');return false;" href="'+l((a=(a=b.page,null==a||!1===a?a:a.webimHost),typeof a===j?a.apply(b):a))+'">\n <img src="'+l((a=(a=b.page,null==a||!1===a?a:a.tplRoot),
|
||||
typeof a===j?a.apply(b):a))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function r(a){var b;return a=""+('\n <img src="'+l((b=(b=a.page,null==b||!1===b?b:b.tplRoot),typeof b===j?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,a.helpers);c=c||{};var g,k,j="function",l=this.escapeExpression,n=this;d=e.helperMissing;a='\n<div id="top2">\n <div id="logo">\n ';if((k=e["if"].call(b,
|
||||
(g=(g=b.page,null==g||!1===g?g:g.company),null==g||!1===g?g:g.chatLogoURL),{hash:{},inverse:n.program(6,function(a,b){var c,d,g;c="\n ";if((g=e["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(9,r,b),fn:n.program(7,p,b),data:b}))||0===g)c+=g;return c+"\n "},c),fn:n.program(1,function(a,b){var c,d,g;c="\n ";if((g=e["if"].call(a,(d=a.page,null==d||!1===d?d:d.webimHost),{hash:{},inverse:n.program(4,q,b),fn:n.program(2,h,b),data:b}))||0===g)c+=
|
||||
g;return c+"\n "},c),data:c}))||0===k)a+=k;a+='\n \n <div id="page-title">'+l((g=(g=b.page,null==g||!1===g?g:g.title),typeof g===j?g.apply(b):g))+'</div>\n <div class="clear"> </div>\n </div>\n</div>\n\n\n<div id="headers">\n <div class="wndb"><div class="wndl"><div class="wndr"><div class="wndt"><div class="wndtl"><div class="wndtr"><div class="wndbl"><div class="wndbr">\n <div class="buttons">\n <a href="javascript:window.close();" title="';
|
||||
k={hash:{},data:c};a+=l((g=e.L10n||b.L10n,g?g.call(b,"leavemessage.close",k):d.call(b,"L10n","leavemessage.close",k)))+'"><img class="tpl-image iclosewin" src="'+l((g=(g=b.page,null==g||!1===g?g:g.webimRoot),typeof g===j?g.apply(b):g))+'/images/free.gif" alt="';k={hash:{},data:c};a+=l((g=e.L10n||b.L10n,g?g.call(b,"leavemessage.close",k):d.call(b,"L10n","leavemessage.close",k)))+'" /></a>\n </div>\n <div class="messagetxt">';k={hash:{},data:c};return a+=l((g=e.L10n||b.L10n,g?g.call(b,
|
||||
"presurvey.intro",k):d.call(b,"L10n","presurvey.intro",k)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'})})();
|
||||
|
Loading…
Reference in New Issue
Block a user