2014-08-25 23:13:47 +00:00
|
|
|
(function() {
|
|
|
|
var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {};
|
|
|
|
templates['chan'] = template({"1":function(depth0,helpers,partials,data) {
|
2014-09-22 18:54:38 +00:00
|
|
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<div data-id=\""
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" data-target=\"#chan-"
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" data-title=\""
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" class=\"chan "
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
2014-09-21 19:48:26 +00:00
|
|
|
+ "\">\n <span class=\"badge\" data-count=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.unread || (depth0 != null ? depth0.unread : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"unread","hash":{},"data":data}) : helper)))
|
|
|
|
+ "\">";
|
2014-09-21 16:46:43 +00:00
|
|
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.unread : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
2014-09-22 18:54:38 +00:00
|
|
|
return buffer + "</span>\n <span class=\"close\"></span>\n <span class=\"name\">"
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
2014-09-22 18:54:38 +00:00
|
|
|
+ "</span>\n</div>\n";
|
2014-09-21 16:46:43 +00:00
|
|
|
},"2":function(depth0,helpers,partials,data) {
|
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return escapeExpression(((helper = (helper = helpers.unread || (depth0 != null ? depth0.unread : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"unread","hash":{},"data":data}) : helper)));
|
|
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
2014-08-25 23:13:47 +00:00
|
|
|
var stack1, buffer = "";
|
2014-09-09 21:55:45 +00:00
|
|
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.channels : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer;
|
2014-08-25 23:13:47 +00:00
|
|
|
},"useData":true});
|
|
|
|
templates['chat'] = template({"1":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<div id=\"chan-"
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" data-id=\""
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" data-type=\""
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\" class=\"chan "
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
2014-09-21 15:59:50 +00:00
|
|
|
+ "\">\n <div class=\"header\">\n <button class=\"lt\"></button>\n <button class=\"rt\"></button>\n <div class=\"right\">\n <button class=\"button close\">\n";
|
|
|
|
stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, (depth0 != null ? depth0.type : depth0), "lobby", {"name":"equal","hash":{},"fn":this.program(2, data),"inverse":this.program(4, data),"data":data}));
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
buffer += " </button>\n </div>\n <span class=\"title\">"
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "</span>\n <span class=\"topic\">"
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
|
|
|
+ " </span>\n </div>\n <div class=\"chat\">\n";
|
2014-09-21 15:59:50 +00:00
|
|
|
stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, ((stack1 = (depth0 != null ? depth0.messages : depth0)) != null ? stack1.length : stack1), 100, {"name":"equal","hash":{},"fn":this.program(6, data),"inverse":this.program(8, data),"data":data}));
|
2014-09-09 21:55:45 +00:00
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer + " <div class=\"messages\">\n "
|
|
|
|
+ escapeExpression(((helpers.partial || (depth0 && depth0.partial) || helperMissing).call(depth0, "msg", {"name":"partial","hash":{},"data":data})))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\n </div>\n </div>\n <aside class=\"sidebar\">\n <div class=\"users\">\n "
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helpers.partial || (depth0 && depth0.partial) || helperMissing).call(depth0, "user", {"name":"partial","hash":{},"data":data})))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\n </div>\n </aside>\n</div>\n";
|
|
|
|
},"2":function(depth0,helpers,partials,data) {
|
2014-09-21 15:59:50 +00:00
|
|
|
return " Disconnect\n";
|
|
|
|
},"4":function(depth0,helpers,partials,data) {
|
|
|
|
return " Leave\n";
|
|
|
|
},"6":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return " <button class=\"show-more\" data-id=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
|
|
|
+ "\">\n Show more\n </button>\n";
|
2014-09-21 15:59:50 +00:00
|
|
|
},"8":function(depth0,helpers,partials,data) {
|
2014-09-19 20:24:11 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return " <button class=\"show-more hidden\" data-id=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
|
|
|
+ "\">\n Show more\n </button>\n";
|
2014-09-09 21:55:45 +00:00
|
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
2014-08-25 23:13:47 +00:00
|
|
|
var stack1, buffer = "";
|
2014-09-09 21:55:45 +00:00
|
|
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.channels : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer;
|
2014-08-25 23:13:47 +00:00
|
|
|
},"useData":true});
|
|
|
|
templates['msg'] = template({"1":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var stack1, helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression, buffer = "<div class=\"msg "
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
2014-09-14 18:49:42 +00:00
|
|
|
+ " ";
|
|
|
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.self : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
buffer += "\">\n <span class=\"time\">\n "
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helpers.tz || (depth0 && depth0.tz) || helperMissing).call(depth0, (depth0 != null ? depth0.time : depth0), {"name":"tz","hash":{},"data":data})))
|
|
|
|
+ "\n </span>\n <span class=\"from\">\n";
|
2014-09-14 18:49:42 +00:00
|
|
|
stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.from : depth0), {"name":"if","hash":{},"fn":this.program(4, data),"inverse":this.noop,"data":data});
|
2014-09-09 21:55:45 +00:00
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
buffer += " </span>\n <span class=\"text\">\n <em class=\"type\">"
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.type || (depth0 != null ? depth0.type : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"type","hash":{},"data":data}) : helper)))
|
|
|
|
+ "</em>\n";
|
2014-09-14 18:49:42 +00:00
|
|
|
stack1 = ((helpers.equal || (depth0 && depth0.equal) || helperMissing).call(depth0, (depth0 != null ? depth0.type : depth0), "image", {"name":"equal","hash":{},"fn":this.program(6, data),"inverse":this.program(8, data),"data":data}));
|
2014-09-09 21:55:45 +00:00
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer + " </span>\n</div>\n";
|
2014-08-25 23:13:47 +00:00
|
|
|
},"2":function(depth0,helpers,partials,data) {
|
2014-09-14 18:49:42 +00:00
|
|
|
return "self";
|
|
|
|
},"4":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return " <button class=\"user\">"
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.from || (depth0 != null ? depth0.from : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"from","hash":{},"data":data}) : helper)))
|
|
|
|
+ "</button>\n";
|
2014-09-14 18:49:42 +00:00
|
|
|
},"6":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return " <img src=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.text || (depth0 != null ? depth0.text : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"text","hash":{},"data":data}) : helper)))
|
|
|
|
+ "\" class=\"image\">\n";
|
2014-09-14 18:49:42 +00:00
|
|
|
},"8":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var stack1, helperMissing=helpers.helperMissing, buffer = " ";
|
|
|
|
stack1 = ((helpers.uri || (depth0 && depth0.uri) || helperMissing).call(depth0, (depth0 != null ? depth0.text : depth0), {"name":"uri","hash":{},"data":data}));
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
2014-08-25 23:13:47 +00:00
|
|
|
return buffer + "\n";
|
2014-09-09 21:55:45 +00:00
|
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
|
|
|
var stack1, buffer = "";
|
|
|
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.messages : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer;
|
2014-08-25 23:13:47 +00:00
|
|
|
},"useData":true});
|
|
|
|
templates['network'] = template({"1":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return "<section id=\"network-"
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-09-24 19:42:36 +00:00
|
|
|
+ "\" class=\"network\" data-id=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.id || (depth0 != null ? depth0.id : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"id","hash":{},"data":data}) : helper)))
|
2014-09-25 23:51:53 +00:00
|
|
|
+ "\" data-nick=\""
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.nick || (depth0 != null ? depth0.nick : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"nick","hash":{},"data":data}) : helper)))
|
2014-09-24 19:42:36 +00:00
|
|
|
+ "\">\n "
|
2014-09-09 21:55:45 +00:00
|
|
|
+ escapeExpression(((helpers.partial || (depth0 && depth0.partial) || helperMissing).call(depth0, "chan", {"name":"partial","hash":{},"data":data})))
|
2014-08-25 23:13:47 +00:00
|
|
|
+ "\n</section>\n";
|
2014-09-09 21:55:45 +00:00
|
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
2014-08-25 23:13:47 +00:00
|
|
|
var stack1, buffer = "";
|
2014-09-09 21:55:45 +00:00
|
|
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.networks : depth0), {"name":"each","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer;
|
2014-08-25 23:13:47 +00:00
|
|
|
},"useData":true});
|
|
|
|
templates['user'] = template({"1":function(depth0,helpers,partials,data) {
|
2014-09-10 16:50:59 +00:00
|
|
|
var stack1, helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
2014-09-09 21:55:45 +00:00
|
|
|
return "<div class=\"count\">\n <input class=\"search\" placeholder=\""
|
2014-09-10 16:50:59 +00:00
|
|
|
+ escapeExpression(((helpers.users || (depth0 && depth0.users) || helperMissing).call(depth0, ((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), {"name":"users","hash":{},"data":data})))
|
|
|
|
+ "\">\n</div>\n";
|
2014-08-25 23:13:47 +00:00
|
|
|
},"3":function(depth0,helpers,partials,data) {
|
2014-09-09 21:55:45 +00:00
|
|
|
var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression;
|
|
|
|
return " <button class=\"user\">"
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.mode || (depth0 != null ? depth0.mode : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"mode","hash":{},"data":data}) : helper)))
|
|
|
|
+ escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"name","hash":{},"data":data}) : helper)))
|
|
|
|
+ "</button>\n";
|
|
|
|
},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) {
|
2014-08-25 23:13:47 +00:00
|
|
|
var stack1, buffer = "";
|
2014-09-09 21:55:45 +00:00
|
|
|
stack1 = helpers['if'].call(depth0, ((stack1 = (depth0 != null ? depth0.users : depth0)) != null ? stack1.length : stack1), {"name":"if","hash":{},"fn":this.program(1, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
buffer += "<div class=\"names\">\n";
|
|
|
|
stack1 = helpers.each.call(depth0, (depth0 != null ? depth0.users : depth0), {"name":"each","hash":{},"fn":this.program(3, data),"inverse":this.noop,"data":data});
|
|
|
|
if (stack1 != null) { buffer += stack1; }
|
|
|
|
return buffer + "</div>\n";
|
2014-08-25 23:13:47 +00:00
|
|
|
},"useData":true});
|
|
|
|
})();
|