(function () {
var root = this, exports = {};
// The jade runtime:
var jade = exports.jade=function(exports){Array.isArray||(Array.isArray=function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}),Object.keys||(Object.keys=function(obj){var arr=[];for(var key in obj)obj.hasOwnProperty(key)&&arr.push(key);return arr}),exports.merge=function merge(a,b){var ac=a["class"],bc=b["class"];if(ac||bc)ac=ac||[],bc=bc||[],Array.isArray(ac)||(ac=[ac]),Array.isArray(bc)||(bc=[bc]),ac=ac.filter(nulls),bc=bc.filter(nulls),a["class"]=ac.concat(bc).join(" ");for(var key in b)key!="class"&&(a[key]=b[key]);return a};function nulls(val){return val!=null}return exports.attrs=function attrs(obj,escaped){var buf=[],terse=obj.terse;delete obj.terse;var keys=Object.keys(obj),len=keys.length;if(len){buf.push("");for(var i=0;i/g,">").replace(/"/g,""")},exports.rethrow=function rethrow(err,filename,lineno){if(!filename)throw err;var context=3,str=require("fs").readFileSync(filename,"utf8"),lines=str.split("\n"),start=Math.max(lineno-context,0),end=Math.min(lines.length,lineno+context),context=lines.slice(start,end).map(function(line,i){var curr=i+start+1;return(curr==lineno?" > ":" ")+curr+"| "+line}).join("\n");throw err.path=filename,err.message=(filename||"Jade")+":"+lineno+"\n"+context+"\n\n"+err.message,err},exports}({});
// create our folder objects
exports.includes = {};
exports.misc = {};
exports.pages = {};
// body.jade compiled template
exports.body = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('
');
}
return buf.join("");
};
// head.jade compiled template
exports.head = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// bareMessage.jade compiled template
exports.includes.bareMessage = function anonymous(locals) {
var buf = [];
with (locals || {}) {
var messageClasses = message.classList;
if (firstEl) {
messageClasses += " first";
}
buf.push("" + jade.escape((jade.interp = messageDate.format("{h}:{mm} {tt}")) == null ? "" : jade.interp) + '
' + ((jade.interp = message.processedBody) == null ? "" : jade.interp) + "
");
var urls = message.urls;
buf.push('
');
(function() {
var $$obj = urls;
if ("number" == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++;
if ($$obj.hasOwnProperty($index)) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
}
}
}).call(this);
buf.push(" ");
}
return buf.join("");
};
// call.jade compiled template
exports.includes.call = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('
');
}
return buf.join("");
};
// contactListItem.jade compiled template
exports.includes.contactListItem = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('' + jade.escape(null == (jade.interp = contact.displayName) ? "" : jade.interp) + '' + jade.escape(null == (jade.interp = contact.idleSince) ? "" : jade.interp) + ' ' + jade.escape(null == (jade.interp = contact.unreadCount) ? "" : jade.interp) + "
");
}
return buf.join("");
};
// contactListItemResource.jade compiled template
exports.includes.contactListItemResource = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('' + jade.escape(null == (jade.interp = resource.jid) ? "" : jade.interp) + '
' + jade.escape(null == (jade.interp = resource.status) ? "" : jade.interp) + "
");
}
return buf.join("");
};
// contactRequest.jade compiled template
exports.includes.contactRequest = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// dayDivider.jade compiled template
exports.includes.dayDivider = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('
' + jade.escape((jade.interp = day_name) == null ? "" : jade.interp) + "
");
}
return buf.join("");
};
// embeds.jade compiled template
exports.includes.embeds = function anonymous(locals) {
var buf = [];
with (locals || {}) {
if (locals.type === "photo") {
buf.push('");
} else if (locals.type === "video" && locals.thumbnail_url) {
buf.push('");
}
}
return buf.join("");
};
// ldapUserItem.jade compiled template
exports.includes.ldapUserItem = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('Display NameFirst NameLast NameEmail
');
}
return buf.join("");
};
// message.jade compiled template
exports.includes.message = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('' + jade.escape(null == (jade.interp = message.timestamp) ? "" : jade.interp) + '' + jade.escape(null == (jade.interp = message.body) ? "" : jade.interp) + "
");
}
return buf.join("");
};
// messageGroup.jade compiled template
exports.includes.messageGroup = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push("");
}
return buf.join("");
};
// mucBareMessage.jade compiled template
exports.includes.mucBareMessage = function anonymous(locals) {
var buf = [];
with (locals || {}) {
var messageClasses = message.classList;
if (firstEl) {
messageClasses += " first";
}
buf.push("" + jade.escape((jade.interp = messageDate.format("{h}:{mm} {tt}")) == null ? "" : jade.interp) + '
' + ((jade.interp = message.processedBody) == null ? "" : jade.interp) + "
");
var urls = message.urls;
buf.push('
');
(function() {
var $$obj = urls;
if ("number" == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++;
if ($$obj.hasOwnProperty($index)) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
}
}
}).call(this);
buf.push(" ");
}
return buf.join("");
};
// mucListItem.jade compiled template
exports.includes.mucListItem = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('' + jade.escape(null == (jade.interp = contact.unreadCount) ? "" : jade.interp) + '
' + jade.escape(null == (jade.interp = contact.displayName) ? "" : jade.interp) + " ");
}
return buf.join("");
};
// mucRosterItem.jade compiled template
exports.includes.mucRosterItem = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// mucWrappedMessage.jade compiled template
exports.includes.mucWrappedMessage = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('");
var messageClasses = message.classList;
if (firstEl) {
messageClasses += " first";
}
buf.push("
" + jade.escape((jade.interp = messageDate.format("{h}:{mm} {tt}")) == null ? "" : jade.interp) + '
' + ((jade.interp = message.processedBody) == null ? "" : jade.interp) + "
");
var urls = message.urls;
buf.push('
');
(function() {
var $$obj = urls;
if ("number" == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++;
if ($$obj.hasOwnProperty($index)) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
}
}
}).call(this);
buf.push(" ");
}
return buf.join("");
};
// wrappedMessage.jade compiled template
exports.includes.wrappedMessage = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('");
var messageClasses = message.classList;
if (firstEl) {
messageClasses += " first";
}
buf.push("
" + jade.escape((jade.interp = messageDate.format("{h}:{mm} {tt}")) == null ? "" : jade.interp) + '
' + ((jade.interp = message.processedBody) == null ? "" : jade.interp) + "
");
var urls = message.urls;
buf.push('
');
(function() {
var $$obj = urls;
if ("number" == typeof $$obj.length) {
for (var $index = 0, $$l = $$obj.length; $index < $$l; $index++) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
} else {
var $$l = 0;
for (var $index in $$obj) {
$$l++;
if ($$obj.hasOwnProperty($index)) {
var item = $$obj[$index];
if (item.source == "body") {
buf.push('");
} else {
buf.push('");
}
}
}
}
}).call(this);
buf.push(" ");
}
return buf.join("");
};
// growlMessage.jade compiled template
exports.misc.growlMessage = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
if (icon) {
buf.push("
");
}
if (title) {
buf.push("
" + jade.escape(null == (jade.interp = title) ? "" : jade.interp) + "
");
}
if (description) {
buf.push("
" + jade.escape(null == (jade.interp = description) ? "" : jade.interp) + "
");
}
buf.push("
");
}
return buf.join("");
};
// chat.jade compiled template
exports.pages.chat = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// groupchat.jade compiled template
exports.pages.groupchat = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// settings.jade compiled template
exports.pages.settings = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('Settings
Desktop Integration
');
}
return buf.join("");
};
// signin.jade compiled template
exports.pages.signin = function anonymous(locals) {
var buf = [];
with (locals || {}) {
buf.push('');
}
return buf.join("");
};
// attach to window or export with commonJS
if (typeof module !== "undefined" && typeof module.exports !== "undefined") {
module.exports = exports;
} else if (typeof define === "function" && define.amd) {
define(exports);
} else {
root.templatizer = exports;
}
})();