mirror of
https://github.com/Mibew/mibew.git
synced 2024-11-16 09:04:11 +03:00
Improve sound playback (see Issue #4)
This commit is contained in:
parent
ae1b1dfbb1
commit
525243bd8d
@ -6,4 +6,4 @@
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(a,c){a.Models.ChatSoundManager=a.Models.BaseSoundManager.extend({defaults:c.extend({},a.Models.BaseSoundManager.prototype.defaults,{skipNextMessageSound:!1}),initialize:function(){var b=a.Objects,c=this;b.Collections.messages.on("multiple:add",this.playNewMessageSound,this);b.Models.messageForm.on("before:post",function(){c.set({skipNextMessageSound:!0})})},playNewMessageSound:function(){if(!this.get("skipNextMessageSound")){var b=a.Objects.Models.page.get("mibewRoot");"undefined"!==typeof b&&
|
||||
this.play(b+"/sounds/new_message.wav")}this.set({skipNextMessageSound:!1})}})})(Mibew,_);
|
||||
this.play(b+"/sounds/new_message")}this.set({skipNextMessageSound:!1})}})})(Mibew,_);
|
||||
|
@ -126,7 +126,7 @@ a):a.trigger("submit:error",a,{code:b.errorCode,message:b.errorMessage||""})},!0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(a,c){a.Models.ChatSoundManager=a.Models.BaseSoundManager.extend({defaults:c.extend({},a.Models.BaseSoundManager.prototype.defaults,{skipNextMessageSound:!1}),initialize:function(){var b=a.Objects,c=this;b.Collections.messages.on("multiple:add",this.playNewMessageSound,this);b.Models.messageForm.on("before:post",function(){c.set({skipNextMessageSound:!0})})},playNewMessageSound:function(){if(!this.get("skipNextMessageSound")){var b=a.Objects.Models.page.get("mibewRoot");"undefined"!==typeof b&&
|
||||
this.play(b+"/sounds/new_message.wav")}this.set({skipNextMessageSound:!1})}})})(Mibew,_);
|
||||
this.play(b+"/sounds/new_message")}this.set({skipNextMessageSound:!1})}})})(Mibew,_);
|
||||
/*
|
||||
Copyright 2005-2014 the original author or authors.
|
||||
Licensed under the Apache License, Version 2.0 (the "License").
|
||||
|
@ -5,5 +5,5 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(b,c){b.Utils={};b.Utils.toUpperCaseFirst=function(a){return"string"!=typeof a?!1:""===a?a:a.substring(0,1).toUpperCase()+a.substring(1)};b.Utils.toDashFormat=function(a){if("string"!=typeof a)return!1;a=a.match(/((?:[A-Z]?[a-z]+)|(?:[A-Z][a-z]*))/g);for(var b=0;b<a.length;b++)a[b]=a[b].toLowerCase();return a.join("-")};b.Utils.checkEmail=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)};
|
||||
b.Utils.playSound=function(a){c("body").append('<audio autoplay style="display: none;"><source src="'+a+'" type="audio/x-wav" /><embed src="'+a+'" type="audio/x-wav" hidden="true" autostart="true" loop="false" /></audio>')}})(Mibew,$);
|
||||
(function(c,d){c.Utils={};c.Utils.toUpperCaseFirst=function(a){return"string"!=typeof a?!1:""===a?a:a.substring(0,1).toUpperCase()+a.substring(1)};c.Utils.toDashFormat=function(a){if("string"!=typeof a)return!1;a=a.match(/((?:[A-Z]?[a-z]+)|(?:[A-Z][a-z]*))/g);for(var b=0;b<a.length;b++)a[b]=a[b].toLowerCase();return a.join("-")};c.Utils.checkEmail=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)};
|
||||
c.Utils.playSound=function(a){var b=d('audio[data-file="'+a+'"]');0<b.length?b.get(0).play():(b=d("<audio>",{autoplay:!0,style:"display: none"}).append('<source src="'+a+'.wav" type="audio/x-wav" /><source src="'+a+'.mp3" type="audio/mpeg" codecs="mp3" /><embed src="'+a+'.wav" type="audio/x-wav" hidden="true" autostart="true" loop="false" />'),d("body").append(b),d.isFunction(b.get(0).play)&&b.attr("data-file",a))}})(Mibew,$);
|
||||
|
@ -41,8 +41,8 @@ else try{this.sendRequests(this.buffer),this.buffer=[]}catch(c){this.options.onU
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(b,c){b.Utils={};b.Utils.toUpperCaseFirst=function(a){return"string"!=typeof a?!1:""===a?a:a.substring(0,1).toUpperCase()+a.substring(1)};b.Utils.toDashFormat=function(a){if("string"!=typeof a)return!1;a=a.match(/((?:[A-Z]?[a-z]+)|(?:[A-Z][a-z]*))/g);for(var b=0;b<a.length;b++)a[b]=a[b].toLowerCase();return a.join("-")};b.Utils.checkEmail=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)};
|
||||
b.Utils.playSound=function(a){c("body").append('<audio autoplay style="display: none;"><source src="'+a+'" type="audio/x-wav" /><embed src="'+a+'" type="audio/x-wav" hidden="true" autostart="true" loop="false" /></audio>')}})(Mibew,$);
|
||||
(function(c,d){c.Utils={};c.Utils.toUpperCaseFirst=function(a){return"string"!=typeof a?!1:""===a?a:a.substring(0,1).toUpperCase()+a.substring(1)};c.Utils.toDashFormat=function(a){if("string"!=typeof a)return!1;a=a.match(/((?:[A-Z]?[a-z]+)|(?:[A-Z][a-z]*))/g);for(var b=0;b<a.length;b++)a[b]=a[b].toLowerCase();return a.join("-")};c.Utils.checkEmail=function(a){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(a)};
|
||||
c.Utils.playSound=function(a){var b=d('audio[data-file="'+a+'"]');0<b.length?b.get(0).play():(b=d("<audio>",{autoplay:!0,style:"display: none"}).append('<source src="'+a+'.wav" type="audio/x-wav" /><source src="'+a+'.mp3" type="audio/mpeg" codecs="mp3" /><embed src="'+a+'.wav" type="audio/x-wav" hidden="true" autostart="true" loop="false" />'),d("body").append(b),d.isFunction(b.get(0).play)&&b.attr("data-file",a))}})(Mibew,$);
|
||||
/*
|
||||
Copyright 2005-2014 the original author or authors.
|
||||
Licensed under the Apache License, Version 2.0 (the "License").
|
||||
|
@ -5,4 +5,4 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(b,a){a(document).ready(function(){a("#check-nv").click(function(){b.Utils.playSound("../sounds/new_user.wav")});a("#check-nm").click(function(){b.Utils.playSound("../sounds/new_message.wav")})})})(Mibew,$);
|
||||
(function(b,a){a(document).ready(function(){a("#check-nv").click(function(){b.Utils.playSound("../sounds/new_user")});a("#check-nm").click(function(){b.Utils.playSound("../sounds/new_message")})})})(Mibew,$);
|
||||
|
@ -5,8 +5,8 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(d,h,j){d.Views.ThreadsCollection=d.Views.CompositeBase.extend({template:h.templates.threads_collection,itemView:d.Views.QueuedThread,itemViewContainer:"#threads-container",emptyView:d.Views.NoThreads,className:"threads-collection",collectionEvents:{sort:"render","sort:field":"createSortField",add:"threadAdded"},itemViewOptions:function(a){return{tagName:d.Objects.Models.page.get("threadTag"),collection:a.get("controls")}},initialize:function(){window.setInterval(j.bind(this.updateTimers,
|
||||
(function(d,h,k){d.Views.ThreadsCollection=d.Views.CompositeBase.extend({template:h.templates.threads_collection,itemView:d.Views.QueuedThread,itemViewContainer:"#threads-container",emptyView:d.Views.NoThreads,className:"threads-collection",collectionEvents:{sort:"render","sort:field":"createSortField",add:"threadAdded"},itemViewOptions:function(a){return{tagName:d.Objects.Models.page.get("threadTag"),collection:a.get("controls")}},initialize:function(){window.setInterval(k.bind(this.updateTimers,
|
||||
this),2E3);this.on("itemview:before:render",this.updateStyles,this);this.on("composite:collection:rendered",this.updateTimers,this)},updateStyles:function(a){var b=this.collection,c=a.model,d=this;if(c.id){var e=this.getQueueCode(c),f=!1,g=!1,b=b.filter(function(a){return d.getQueueCode(a)==e});0<b.length&&(g=b[0].id==c.id,f=b[b.length-1].id==c.id);if(0<a.lastStyles.length){c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.removeClass(a.lastStyles[c]);a.lastStyles=[]}c=(e!=this.QUEUE_BAN?"in":"")+this.queueCodeToString(e);
|
||||
a.lastStyles.push(c);g&&a.lastStyles.push(c+"-first");f&&a.lastStyles.push(c+"-last");c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.addClass(a.lastStyles[c])}},updateTimers:function(){d.Utils.updateTimers(this.$el,".timesince")},createSortField:function(a,b){var c=this.getQueueCode(a)||"Z";b.field=c.toString()+"_"+a.get("waitingTime").toString()},threadAdded:function(){var a=d.Objects.Models.page.get("mibewRoot");"undefined"!==typeof a&&d.Utils.playSound(a+"/sounds/new_user.wav");if(d.Objects.Models.page.get("showPopup"))this.once("render",
|
||||
a.lastStyles.push(c);g&&a.lastStyles.push(c+"-first");f&&a.lastStyles.push(c+"-last");c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.addClass(a.lastStyles[c])}},updateTimers:function(){d.Utils.updateTimers(this.$el,".timesince")},createSortField:function(a,b){var c=this.getQueueCode(a)||"Z";b.field=c.toString()+"_"+a.get("waitingTime").toString()},threadAdded:function(){var a=d.Objects.Models.page.get("mibewRoot");"undefined"!==typeof a&&d.Utils.playSound(a+"/sounds/new_user");if(d.Objects.Models.page.get("showPopup"))this.once("render",
|
||||
function(){alert(d.Localization.get("pending.popup_notification"))})},getQueueCode:function(a){var b=a.get("state");return!1!=a.get("ban")&&b!=a.STATE_CHATTING?this.QUEUE_BAN:b==a.STATE_QUEUE||b==a.STATE_LOADING?this.QUEUE_WAITING:b==a.STATE_CLOSED||b==a.STATE_LEFT?this.QUEUE_CLOSED:b==a.STATE_WAITING?this.QUEUE_PRIO:b==a.STATE_CHATTING?this.QUEUE_CHATTING:!1},queueCodeToString:function(a){return a==this.QUEUE_PRIO?"prio":a==this.QUEUE_WAITING?"wait":a==this.QUEUE_CHATTING?"chat":a==this.QUEUE_BAN?
|
||||
"ban":a==this.QUEUE_CLOSED?"closed":""},QUEUE_PRIO:1,QUEUE_WAITING:2,QUEUE_CHATTING:3,QUEUE_BAN:4,QUEUE_CLOSED:5})})(Mibew,Handlebars,_);
|
||||
|
@ -125,9 +125,9 @@ showTrack:function(){var b=this.model.id,c=a.Objects.Models.page;a.Popup.open(c.
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(d,h,j){d.Views.ThreadsCollection=d.Views.CompositeBase.extend({template:h.templates.threads_collection,itemView:d.Views.QueuedThread,itemViewContainer:"#threads-container",emptyView:d.Views.NoThreads,className:"threads-collection",collectionEvents:{sort:"render","sort:field":"createSortField",add:"threadAdded"},itemViewOptions:function(a){return{tagName:d.Objects.Models.page.get("threadTag"),collection:a.get("controls")}},initialize:function(){window.setInterval(j.bind(this.updateTimers,
|
||||
(function(d,h,k){d.Views.ThreadsCollection=d.Views.CompositeBase.extend({template:h.templates.threads_collection,itemView:d.Views.QueuedThread,itemViewContainer:"#threads-container",emptyView:d.Views.NoThreads,className:"threads-collection",collectionEvents:{sort:"render","sort:field":"createSortField",add:"threadAdded"},itemViewOptions:function(a){return{tagName:d.Objects.Models.page.get("threadTag"),collection:a.get("controls")}},initialize:function(){window.setInterval(k.bind(this.updateTimers,
|
||||
this),2E3);this.on("itemview:before:render",this.updateStyles,this);this.on("composite:collection:rendered",this.updateTimers,this)},updateStyles:function(a){var b=this.collection,c=a.model,d=this;if(c.id){var e=this.getQueueCode(c),f=!1,g=!1,b=b.filter(function(a){return d.getQueueCode(a)==e});0<b.length&&(g=b[0].id==c.id,f=b[b.length-1].id==c.id);if(0<a.lastStyles.length){c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.removeClass(a.lastStyles[c]);a.lastStyles=[]}c=(e!=this.QUEUE_BAN?"in":"")+this.queueCodeToString(e);
|
||||
a.lastStyles.push(c);g&&a.lastStyles.push(c+"-first");f&&a.lastStyles.push(c+"-last");c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.addClass(a.lastStyles[c])}},updateTimers:function(){d.Utils.updateTimers(this.$el,".timesince")},createSortField:function(a,b){var c=this.getQueueCode(a)||"Z";b.field=c.toString()+"_"+a.get("waitingTime").toString()},threadAdded:function(){var a=d.Objects.Models.page.get("mibewRoot");"undefined"!==typeof a&&d.Utils.playSound(a+"/sounds/new_user.wav");if(d.Objects.Models.page.get("showPopup"))this.once("render",
|
||||
a.lastStyles.push(c);g&&a.lastStyles.push(c+"-first");f&&a.lastStyles.push(c+"-last");c=0;for(b=a.lastStyles.length;c<b;c++)a.$el.addClass(a.lastStyles[c])}},updateTimers:function(){d.Utils.updateTimers(this.$el,".timesince")},createSortField:function(a,b){var c=this.getQueueCode(a)||"Z";b.field=c.toString()+"_"+a.get("waitingTime").toString()},threadAdded:function(){var a=d.Objects.Models.page.get("mibewRoot");"undefined"!==typeof a&&d.Utils.playSound(a+"/sounds/new_user");if(d.Objects.Models.page.get("showPopup"))this.once("render",
|
||||
function(){alert(d.Localization.get("pending.popup_notification"))})},getQueueCode:function(a){var b=a.get("state");return!1!=a.get("ban")&&b!=a.STATE_CHATTING?this.QUEUE_BAN:b==a.STATE_QUEUE||b==a.STATE_LOADING?this.QUEUE_WAITING:b==a.STATE_CLOSED||b==a.STATE_LEFT?this.QUEUE_CLOSED:b==a.STATE_WAITING?this.QUEUE_PRIO:b==a.STATE_CHATTING?this.QUEUE_CHATTING:!1},queueCodeToString:function(a){return a==this.QUEUE_PRIO?"prio":a==this.QUEUE_WAITING?"wait":a==this.QUEUE_CHATTING?"chat":a==this.QUEUE_BAN?
|
||||
"ban":a==this.QUEUE_CLOSED?"closed":""},QUEUE_PRIO:1,QUEUE_WAITING:2,QUEUE_CHATTING:3,QUEUE_BAN:4,QUEUE_CLOSED:5})})(Mibew,Handlebars,_);
|
||||
/*
|
||||
|
@ -62,7 +62,7 @@
|
||||
// Build sound path
|
||||
var path = Mibew.Objects.Models.page.get('mibewRoot');
|
||||
if (typeof path !== 'undefined') {
|
||||
path += '/sounds/new_message.wav';
|
||||
path += '/sounds/new_message';
|
||||
// Play sound
|
||||
this.play(path);
|
||||
}
|
||||
|
@ -56,15 +56,27 @@
|
||||
}
|
||||
|
||||
/**
|
||||
* Play .wav sound file
|
||||
* @param {String} file File path
|
||||
* Play .wav or .mp3 sound file
|
||||
* @param {String} file File path (without extension)
|
||||
*/
|
||||
Mibew.Utils.playSound = function (file) {
|
||||
var soundHTML = '<audio autoplay style="display: none;">' +
|
||||
'<source src="' + file + '" type="audio/x-wav" />' +
|
||||
'<embed src="' + file + '" type="audio/x-wav" hidden="true" autostart="true" loop="false" />' +
|
||||
'</audio>';
|
||||
$('body').append(soundHTML);
|
||||
|
||||
var player = $('audio[data-file="'+file+'"]');
|
||||
if (player.length > 0) {
|
||||
player.get(0).play();
|
||||
}
|
||||
else {
|
||||
|
||||
var audioTag = $("<audio>", {autoplay: true, style: "display: none"}).append(
|
||||
'<source src="' + file + '.wav" type="audio/x-wav" />' +
|
||||
'<source src="' + file + '.mp3" type="audio/mpeg" codecs="mp3" />' +
|
||||
'<embed src="' + file + '.wav" type="audio/x-wav" hidden="true" autostart="true" loop="false" />'
|
||||
);
|
||||
$('body').append(audioTag);
|
||||
if ($.isFunction(audioTag.get(0).play)) {
|
||||
audioTag.attr('data-file', file);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})(Mibew, $);
|
@ -9,11 +9,11 @@
|
||||
(function(Mibew, $) {
|
||||
$(document).ready(function() {
|
||||
$('#check-nv').click(function(){
|
||||
Mibew.Utils.playSound('../sounds/new_user.wav');
|
||||
Mibew.Utils.playSound('../sounds/new_user');
|
||||
});
|
||||
|
||||
$('#check-nm').click(function() {
|
||||
Mibew.Utils.playSound('../sounds/new_message.wav');
|
||||
Mibew.Utils.playSound('../sounds/new_message');
|
||||
});
|
||||
});
|
||||
})(Mibew, $);
|
||||
|
@ -157,7 +157,7 @@
|
||||
// Build sound path
|
||||
var path = Mibew.Objects.Models.page.get('mibewRoot');
|
||||
if (typeof path !== 'undefined') {
|
||||
path += '/sounds/new_user.wav';
|
||||
path += '/sounds/new_user';
|
||||
// Play sound
|
||||
Mibew.Utils.playSound(path);
|
||||
}
|
||||
|
BIN
src/mibew/sounds/new_message.mp3
Normal file
BIN
src/mibew/sounds/new_message.mp3
Normal file
Binary file not shown.
BIN
src/mibew/sounds/new_user.mp3
Normal file
BIN
src/mibew/sounds/new_user.mp3
Normal file
Binary file not shown.
@ -5,5 +5,5 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(j,b){var e=!1,f,h=function(){if(0!=b("#messages-region").size()){var a=b("#messages-region"),c=b("#avatar-region");if(!1===e){var d=0;b("body > *").each(function(){var a=b(this),c=a.offset(),a=a.height();d<c.top+a&&(d=c.top+a)});e=d-a.height()}var g=b(window).height()-e;g<parseInt(a.css("minHeight"))||(a.height(g),0<c.size()&&c.height(a.innerHeight()))}},k=function(){f&&clearTimeout(f);f=setTimeout(h,0)};j.Application.Chat.addInitializer(function(){var a=b("img").size(),c=0,d=function(){c++;
|
||||
a==c&&(h(),b("#messages-region").scrollTop(b("#messages-region").prop("scrollHeight")),b(window).resize(k))};b("img").each(function(){var a=b(this);0<a.height()?d():a.load(d)})})})(Mibew,jQuery);
|
||||
(function(k,b){var e=!1,f,h=function(){if(0!=b("#messages-region").size()){var a=b("#messages-region"),c=b("#avatar-region");if(!1===e){var d=0;b("body > *").each(function(){var a=b(this),c=a.offset(),a=a.height();d<c.top+a&&(d=c.top+a)});e=d-a.height()}var g=b(window).height()-e;g<parseInt(a.css("minHeight"))||(a.height(g),0<c.size()&&c.height(a.innerHeight()))}},l=function(){f&&clearTimeout(f);f=setTimeout(h,0)};k.Application.Chat.addInitializer(function(){var a=b("img").size(),c=0,d=function(){c++;
|
||||
a==c&&(h(),b("#messages-region").scrollTop(b("#messages-region").prop("scrollHeight")),b(window).resize(l))};b("img").each(function(){var a=b(this);0<a.height()?d():a.load(d)})})})(Mibew,jQuery);
|
||||
|
@ -4,58 +4,57 @@
|
||||
You may obtain a copy of the License at
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
*/
|
||||
(function(){var r=Handlebars.template,q=Handlebars.templates=Handlebars.templates||{};q._logo=r(function(b,c,e,a,d){function f(e){var a;return e=""+("\n <a onclick=\"window.open('"+g((a=(a=e.page,null==a||!1===a?a:a.mibewHost),typeof a===h?a.apply(e):a))+'\');return false;" href="'+g((a=(a=e.page,null==a||!1===a?a:a.mibewHost),typeof a===h?a.apply(e):a))+'">\n <img src="'+g((a=(a=(a=e.page,null==a||!1===a?a:a.company),null==a||!1===a?a:a.chatLogoURL),typeof a===h?
|
||||
a.apply(e):a))+'" alt=""/>\n </a>\n ')}function k(a){var e;return a=""+('\n <img src="'+g((e=(e=(e=a.page,null==e||!1===e?e:e.company),null==e||!1===e?e:e.chatLogoURL),typeof e===h?e.apply(a):e))+'" alt=""/>\n ')}function j(a){var e;return a=""+("\n <a onclick=\"window.open('"+g((e=(e=a.page,null==e||!1===e?e:e.mibewHost),typeof e===h?e.apply(a):e))+'\');return false;" href="'+g((e=(e=a.page,null==e||!1===e?e:e.mibewHost),typeof e===
|
||||
h?e.apply(a):e))+'">\n <img src="'+g((e=(e=a.page,null==e||!1===e?e:e.tplRoot),typeof e===h?e.apply(a):e))+'/images/default-logo.gif" alt=""/>\n </a>\n ')}function s(e){var a;return e=""+('\n <img src="'+g((a=(a=e.page,null==a||!1===a?a:a.tplRoot),typeof a===h?a.apply(e):a))+'/images/default-logo.gif" alt=""/>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var m,h="function",g=this.escapeExpression,l=this;
|
||||
b='\n<div id="top2">\n <div id="logo">\n ';if((d=e["if"].call(c,(m=(m=c.page,null==m||!1===m?m:m.company),null==m||!1===m?m:m.chatLogoURL),{hash:{},inverse:l.program(6,function(a,b){var c,d,f;c="\n ";if((f=e["if"].call(a,(d=a.page,null==d||!1===d?d:d.mibewHost),{hash:{},inverse:l.program(9,s,b),fn:l.program(7,j,b),data:b}))||0===f)c+=f;return c+"\n "},d),fn:l.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.mibewHost),
|
||||
{hash:{},inverse:l.program(4,k,b),fn:l.program(2,f,b),data:b}))||0===g)c+=g;return c+"\n "},d),data:d}))||0===d)b+=d;return b+='\n \n <div id="page-title">'+g((m=(m=c.page,null==m||!1===m?m:m.title),typeof m===h?m.apply(c):m))+'</div>\n <div class="clear"> </div>\n </div>\n</div>'});q.chat_avatar=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f=this.escapeExpression;return(b=e["if"].call(c,c.imageLink,{hash:{},
|
||||
inverse:this.program(3,function(){return'<div class="default-avatar"></div>'},d),fn:this.program(1,function(a,b){var c,d;c='<img src="';(d=e.imageLink)?d=d.call(a,{hash:{},data:b}):(d=a.imageLink,d="function"===typeof d?d.apply(a):d);return c+=f(d)+'" border="0" alt="" />'},d),data:d}))||0===b?b:""});q.chat_controls_close=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<div class="tpl-image" title="'+
|
||||
(a((f=e.l10n||c.l10n,f?f.call(c,"chat.window.close_title",d):b.call(c,"l10n","chat.window.close_title",d)))+'"></div>')});q.chat_controls_history=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<div class="tpl-image" title="'+(a((f=e.l10n||c.l10n,f?f.call(c,"page.analysis.userhistory.title",d):b.call(c,"l10n","page.analysis.userhistory.title",d)))+'"></div>')});q.chat_controls_redirect=
|
||||
r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,k=e.helperMissing,j=this.escapeExpression;return(b=e["if"].call(c,(f=c.user,null==f||!1===f?f:f.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="'+(j((d=e.l10n||a.l10n,d?d.call(a,"chat.window.toolbar.redirect_user",c):k.call(a,"l10n","chat.window.toolbar.redirect_user",c)))+'"></div>\n')},d),data:d}))||0===b?b:""});q.chat_controls_refresh=
|
||||
r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<div class="tpl-image" title="'+(a((f=e.l10n||c.l10n,f?f.call(c,"chat.window.toolbar.refresh",d):b.call(c,"l10n","chat.window.toolbar.refresh",d)))+'"></div>')});q.chat_controls_secure_mode=r(function(b,c,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,b.helpers);return'<div class="tpl-image" title="SSL"></div>'});q.chat_controls_send_mail=
|
||||
r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;d={hash:{},data:d};return c='<div class="tpl-image" title="'+(a((f=e.l10n||c.l10n,f?f.call(c,"chat.window.toolbar.mail_history",d):b.call(c,"l10n","chat.window.toolbar.mail_history",d)))+'"></div>')});q.chat_controls_sound=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f=e.helperMissing,k=this.escapeExpression;return(b=
|
||||
e["if"].call(c,c.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="'+(k((d=e.l10n||a.l10n,d?d.call(a,"chat.window.toolbar.turn_on_sound",c):f.call(a,"l10n","chat.window.toolbar.turn_on_sound",c)))+'"></div>\n')},d),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="'+(k((d=e.l10n||a.l10n,d?d.call(a,"chat.window.toolbar.turn_off_sound",
|
||||
c):f.call(a,"l10n","chat.window.toolbar.turn_off_sound",c)))+'"></div>\n')},d),data:d}))||0===b?b:""});q.chat_controls_user_name=r(function(b,c,e,a,d){function f(a,b){var c,d,f;c=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+m((d=(d=a.user,null==d||!1===d?d:d.name),typeof d===s?d.apply(a):d))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="');f={hash:{},data:b};
|
||||
return c+=m((d=e.l10n||a.l10n,d?d.call(a,"chat.client.changename",f):h.call(a,"l10n","chat.client.changename",f)))+'"></a>\n '}function k(a,c){var b,d,f;f={hash:{},data:c};b='\n <a href="javascript:void(0)" title="'+(m((d=e.l10n||a.l10n,d?d.call(a,"chat.client.changename",f):h.call(a,"l10n","chat.client.changename",f)))+'">'+m((d=(d=a.user,null==d||!1===d?d:d.name),typeof d===s?d.apply(a):d))+'</a>\n <a class="user-name-control-change tpl-image" title="');f={hash:{},data:c};return b+=
|
||||
m((d=e.l10n||a.l10n,d?d.call(a,"chat.client.changename",f):h.call(a,"l10n","chat.client.changename",f)))+'"></a>\n '}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var j,s="function",m=this.escapeExpression,h=e.helperMissing,g=this;return(b=e["if"].call(c,(j=c.user,null==j||!1===j?j:j.canChangeName),{hash:{},inverse:g.program(6,function(a,b){var c,d;c={hash:{},data:b};return c="\n"+(m((d=e.l10n||a.l10n,d?d.call(a,"chat.client.name",c):h.call(a,"l10n","chat.client.name",c)))+
|
||||
" "+m((d=(d=a.user,null==d||!1===d?d:d.name),typeof d===s?d.apply(a):d))+"\n")},d),fn:g.program(1,function(a,d){var c,b;c={hash:{},data:d};c='\n <span class="user-name-control-prefix">'+(m((b=e.l10n||a.l10n,b?b.call(a,"chat.client.name",c):h.call(a,"l10n","chat.client.name",c)))+"</span>\n ");if((b=e["if"].call(a,a.nameInput,{hash:{},inverse:g.program(4,k,d),fn:g.program(2,f,d),data:d}))||0===b)c+=b;return c+="\n"},d),data:d}))||0===b?b:""});q.chat_layout=r(function(b,c,e,a,d){this.compilerInfo=
|
||||
[4,">= 1.0.0"];e=this.merge(e,b.helpers);a=this.merge(a,b.partials);d=d||{};var f,k=e.helperMissing,j=this.escapeExpression;b="\n";if((a=this.invokePartial(a._logo,"_logo",c,e,a,d))||0===a)b+=a;b+='\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((f=
|
||||
e.unless.call(c,(a=c.user,null==a||!1===a?a:a.isAgent),{hash:{},inverse:this.noop,fn:this.program(1,function(){return'\n <div id="avatar-region"></div>\n '},d),data:d}))||0===f)b+=f;d={hash:{},data:d};return b=b+'\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">'+(j((a=e.l10n||c.l10n,a?a.call(c,"chat.window.poweredby",d):k.call(c,
|
||||
"l10n","chat.window.poweredby",d)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>')});q.chat_message=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,k=this.escapeExpression,j=e.helperMissing;b={hash:{},data:d};b="<span>"+(k((f=e.formatTime||c.formatTime,f?f.call(c,c.created,b):j.call(c,"formatTime",c.created,b)))+"</span> \n");if((f=e["if"].call(c,c.name,{hash:{},inverse:this.noop,fn:this.program(1,
|
||||
function(a,d){var c,b;c="<span class='n";(b=e.kindName)?b=b.call(a,{hash:{},data:d}):(b=a.kindName,b="function"===typeof b?b.apply(a):b);c+=k(b)+"'>";(b=e.name)?b=b.call(a,{hash:{},data:d}):(b=a.name,b="function"===typeof b?b.apply(a):b);return c+=k(b)+"</span>: "},d),data:d}))||0===f)b+=f;b+="\n<span class='m";(f=e.kindName)?f=f.call(c,{hash:{},data:d}):(f=c.kindName,f="function"===typeof f?f.apply(c):f);b+=k(f)+"'>";if((f=e["if"].call(c,c.allowFormatting,{hash:{},inverse:this.program(5,function(a,
|
||||
b){var c,d;d={hash:{},data:b};return k((c=e.apply||a.apply,c?c.call(a,a.message,"urlReplace, nl2br",d):j.call(a,"apply",a.message,"urlReplace, nl2br",d)))},d),fn:this.program(3,function(a,b){var c,d;d={hash:{},data:b};return k((c=e.apply||a.apply,c?c.call(a,a.message,"urlReplace, nl2br, allowTags",d):j.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",d)))},d),data:d}))||0===f)b+=f;return b+="</span><br/>"});q.chat_message_form=r(function(b,c,e,a,d){function f(a,b){var c,d;c={hash:{},data:b};
|
||||
c='\n <select id="predefined" size="1" class="answer">\n <option>'+(m((d=e.l10n||a.l10n,d?d.call(a,"chat.window.predefined.select_answer",c):h.call(a,"l10n","chat.window.predefined.select_answer",c)))+"</option>\n ");if((d=e.each.call(a,a.predefinedAnswers,{hash:{},inverse:g.noop,fn:g.program(5,k,b),data:b}))||0===d)c+=d;return c+="\n </select>\n "}function k(a){var e;return a=""+("\n <option>"+m((e=a["short"],
|
||||
typeof e===s?e.apply(a):e))+"</option>\n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var j,s="function",m=this.escapeExpression,h=e.helperMissing,g=this;b='<div id="message">\n';if((a=e["if"].call(c,(j=c.user,null==j||!1===j?j:j.canPost),{hash:{},inverse:g.noop,fn:g.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'},
|
||||
d),data:d}))||0===a)b+=a;b+='\n</div>\n\n<div id="send">\n';if((a=e["if"].call(c,(j=c.user,null==j||!1===j?j:j.canPost),{hash:{},inverse:g.noop,fn:g.program(3,function(a,c){var b,d,t;b='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((t=e["if"].call(a,(d=a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:g.noop,fn:g.program(4,f,c),data:c}))||0===t)b+=t;t={hash:{},data:c};b=b+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+
|
||||
(m((d=e.l10n||a.l10n,d?d.call(a,"chat.window.send_message",t):h.call(a,"l10n","chat.window.send_message",t)))+'">');t={hash:{},data:c};return b+=m((d=e.l10n||a.l10n,d?d.call(a,"chat.window.send_message_short_and_shortcut",t):h.call(a,"l10n","chat.window.send_message_short_and_shortcut",t)))+"</a>\n </div>\n"},d),data:d}))||0===a)b+=a;return b+'\n</div>\n<div class="clear"></div>'});q.chat_status_base=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};b=this.escapeExpression;
|
||||
(e=e.title)?e=e.call(c,{hash:{},data:d}):(e=c.title,e="function"===typeof e?e.apply(c):e);return b(e)});q.chat_status_message=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};b=this.escapeExpression;(e=e.message)?e=e.call(c,{hash:{},data:d}):(e=c.message,e="function"===typeof e?e.apply(c):e);return b(e)});q.chat_status_typing=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f;b=e.helperMissing;a=this.escapeExpression;
|
||||
d={hash:{},data:d};return a((f=e.l10n||c.l10n,f?f.call(c,"typing.remote",d):b.call(c,"l10n","typing.remote",d)))});q.default_control=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};a=this.escapeExpression;b="<strong>";(e=e.title)?e=e.call(c,{hash:{},data:d}):(e=c.title,e="function"===typeof e?e.apply(c):e);return b+=a(e)+"</strong>"});q.invitation_layout=r(function(b,c,e){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,b.helpers);return'<div id="invitation-messages-region"></div>'});
|
||||
q.leave_message_description=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,k=e.helperMissing,j=this.escapeExpression;a={hash:{},data:d};b='<div class="buttons">\n <a href="javascript:window.close();" title="'+(j((f=e.l10n||c.l10n,f?f.call(c,"leavemessage.close",a):k.call(c,"l10n","leavemessage.close",a)))+'">\n <img class="tpl-image iclosewin" src="'+j((f=(f=c.page,null==f||!1===f?f:f.tplRoot),"function"===typeof f?f.apply(c):f))+'/images/free.gif" alt="');
|
||||
a={hash:{},data:d};b+=j((f=e.l10n||c.l10n,f?f.call(c,"leavemessage.close",a):k.call(c,"l10n","leavemessage.close",a)))+'" />\n </a>\n</div>\n<div class="messagetxt">';a={hash:{},data:d};return b+=j((f=e.l10n||c.l10n,f?f.call(c,"leavemessage.descr",a):k.call(c,"l10n","leavemessage.descr",a)))+"</div>"});q.leave_message_form=r(function(b,c,e,a,d){function f(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===g?c.apply(a):
|
||||
c);return b+=l(c)+'"/>'}function k(a,c){var d,b,f;d=""+('\n <option value="'+l((b=a.id,typeof b===g?b.apply(a):b))+'" ');if((f=e["if"].call(a,a.selected,{hash:{},inverse:n.noop,fn:n.program(6,j,c),data:c}))||0===f)d+=f;return d+=">"+l((b=a.name,typeof b===g?b.apply(a):b))+"</option>\n "}function j(){return'selected="selected"'}function s(a,b){var c;return(c=e["if"].call(a,a.selected,{hash:{},inverse:n.noop,fn:n.program(9,m,b),data:b}))||0===c?c:""}function m(a){var b;
|
||||
return l((b=a.description,typeof b===g?b.apply(a):b))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var h,g="function",l=this.escapeExpression,n=this,p=e.helperMissing;b=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+l((h=(h=c.page,null==h||!1===h?h:h.style),typeof h===g?h.apply(c):h))+'"/>\n <input type="hidden" name="info" value="');(a=e.info)?a=a.call(c,{hash:{},data:d}):(a=c.info,a=typeof a===g?a.apply(c):a);
|
||||
b+=l(a)+'"/>\n <input type="hidden" name="referrer" value="';(a=e.referrer)?a=a.call(c,{hash:{},data:d}):(a=c.referrer,a=typeof a===g?a.apply(c):a);b+=l(a)+'"/>\n ';if((a=e.unless.call(c,c.groups,{hash:{},inverse:n.noop,fn:n.program(1,function(a,b){var c;return(c=e["if"].call(a,a.groupId,{hash:{},inverse:n.noop,fn:n.program(2,f,b),data:b}))||0===c?c:""},d),data:d}))||0===a)b+=a;a={hash:{},data:d};b=b+'\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+
|
||||
(l((h=e.l10n||c.l10n,h?h.call(c,"form.field.email",a):p.call(c,"l10n","form.field.email",a)))+':</strong></td>\n <td><input type="text" name="email" size="50" value="');(a=e.email)?a=a.call(c,{hash:{},data:d}):(a=c.email,a=typeof a===g?a.apply(c):a);b+=l(a)+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>';a={hash:{},data:d};b+=l((h=e.l10n||c.l10n,h?h.call(c,"form.field.name",a):p.call(c,"l10n","form.field.name",a)))+':</strong></td>\n <td><input type="text" name="name" size="50" value="';
|
||||
(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a=typeof a===g?a.apply(c):a);b+=l(a)+'" class="username"/></td>\n </tr>\n ';if((a=e["if"].call(c,c.groups,{hash:{},inverse:n.noop,fn:n.program(4,function(a,b){var c,d,f;f={hash:{},data:b};c='\n <tr>\n <td class="text"><strong>'+(l((d=e.l10n||a.l10n,d?d.call(a,"form.field.department",f):p.call(a,"l10n","form.field.department",f)))+'</strong></td>\n <td>\n <select name="group" style="min-width:200px;">\n ');
|
||||
if((f=e.each.call(a,a.groups,{hash:{},inverse:n.noop,fn:n.program(5,k,b),data:b}))||0===f)c+=f;c+='\n </select>\n </td>\n </tr>\n <tr>\n <td class="text"><strong>';f={hash:{},data:b};c+=l((d=e.l10n||a.l10n,d?d.call(a,"form.field.department.description",f):p.call(a,"l10n","form.field.department.description",f)))+'</strong></td>\n <td class="text" id="groupDescription">\n ';if((f=e.each.call(a,a.groups,{hash:{},inverse:n.noop,
|
||||
fn:n.program(8,s,b),data:b}))||0===f)c+=f;return c+="\n </td>\n </tr>\n "},d),data:d}))||0===a)b+=a;b+="\n <tr>\n <td><strong>";a={hash:{},data:d};b+=l((h=e.l10n||c.l10n,h?h.call(c,"form.field.message",a):p.call(c,"l10n","form.field.message",a)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">';(a=e.message)?a=a.call(c,{hash:{},data:d}):(a=c.message,a=typeof a===g?a.apply(c):a);b+=l(a)+
|
||||
"</textarea>\n </td>\n </tr>\n ";if((a=e["if"].call(c,c.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 '},d),data:d}))||0===a)b+=a;b+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">';a={hash:{},data:d};return b+=l((h=
|
||||
e.l10n||c.l10n,h?h.call(c,"mailthread.perform",a):p.call(c,"l10n","mailthread.perform",a)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+l((h=(h=c.page,null==h||!1===h?h:h.tplRoot),typeof h===g?h.apply(c):h))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});q.leave_message_layout=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);a=this.merge(a,b.partials);d=d||{};b="\n";if((c=this.invokePartial(a._logo,"_logo",c,e,a,d))||
|
||||
0===c)b+=c;return b+'\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>'});q.leave_message_sent_description=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,k=e.helperMissing,j=this.escapeExpression;a={hash:{},
|
||||
data:d};b='<div class="buttons">\n <a href="javascript:window.close();" title="'+(j((f=e.l10n||c.l10n,f?f.call(c,"chat.mailthread.sent.close",a):k.call(c,"l10n","chat.mailthread.sent.close",a)))+'">\n <img class="tpl-image iclosewin" src="'+j((f=(f=c.page,null==f||!1===f?f:f.tplRoot),"function"===typeof f?f.apply(c):f))+'/images/free.gif" alt="');a={hash:{},data:d};b+=j((f=e.l10n||c.l10n,f?f.call(c,"chat.mailthread.sent.close",a):k.call(c,"l10n","chat.mailthread.sent.close",a)))+
|
||||
'" />\n </a>\n</div>\n<div class="messagetxt">';a={hash:{},data:d};return b+=j((f=e.l10n||c.l10n,f?f.call(c,"leavemessage.sent.message",a):k.call(c,"l10n","leavemessage.sent.message",a)))+"</div>"});q.message=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var f,k=this.escapeExpression,j=e.helperMissing;b={hash:{},data:d};b="<span>"+(k((f=e.formatTime||c.formatTime,f?f.call(c,c.created,b):j.call(c,"formatTime",c.created,b)))+"</span>\n");if((f=e["if"].call(c,
|
||||
c.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,b){var c,d;c="<span class='n";(d=e.kindName)?d=d.call(a,{hash:{},data:b}):(d=a.kindName,d="function"===typeof d?d.apply(a):d);c+=k(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:b}):(d=a.name,d="function"===typeof d?d.apply(a):d);return c+=k(d)+"</span>: "},d),data:d}))||0===f)b+=f;b+="\n<span class='m";(f=e.kindName)?f=f.call(c,{hash:{},data:d}):(f=c.kindName,f="function"===typeof f?f.apply(c):f);b+=k(f)+"'>";if((f=e["if"].call(c,c.allowFormatting,
|
||||
{hash:{},inverse:this.program(5,function(a,c){var d,b;b={hash:{},data:c};return k((d=e.apply||a.apply,d?d.call(a,a.message,"urlReplace, nl2br",b):j.call(a,"apply",a.message,"urlReplace, nl2br",b)))},d),fn:this.program(3,function(a,d){var c,b;b={hash:{},data:d};return k((c=e.apply||a.apply,c?c.call(a,a.message,"urlReplace, nl2br, allowTags",b):j.call(a,"apply",a.message,"urlReplace, nl2br, allowTags",b)))},d),data:d}))||0===f)b+=f;return b+="</span><br/>"});q.survey_form=r(function(b,c,e,a,d){function f(a,
|
||||
c){var d,b;d='<input type="hidden" name="group" value="';(b=e.groupId)?b=b.call(a,{hash:{},data:c}):(b=a.groupId,b=typeof b===l?b.apply(a):b);return d+=n(b)+'"/>'}function k(a,b){var d,c,f;d=""+('\n <option value="'+n((c=a.id,typeof c===l?c.apply(a):c))+'" ');if((f=e["if"].call(a,a.selected,{hash:{},inverse:p.noop,fn:p.program(10,j,b),data:b}))||0===f)d+=f;d+=">"+n((c=a.name,typeof c===l?c.apply(a):c));if((f=e.unless.call(a,a.online,{hash:{},inverse:p.noop,fn:p.program(12,r,
|
||||
b),data:b}))||0===f)d+=f;return d+"</option>\n "}function j(){return'selected="selected"'}function r(){return" (offline)"}function m(a,b){var d;return(d=e["if"].call(a,a.selected,{hash:{},inverse:p.noop,fn:p.program(15,h,b),data:b}))||0===d?d:""}function h(a){var b;return n((b=a.description,typeof b===l?b.apply(a):b))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);d=d||{};var g,l="function",n=this.escapeExpression,p=this,q=e.helperMissing;b=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+
|
||||
n((g=(g=c.page,null==g||!1===g?g:g.style),typeof g===l?g.apply(c):g))+'"/>\n <input type="hidden" name="info" value="');(a=e.info)?a=a.call(c,{hash:{},data:d}):(a=c.info,a=typeof a===l?a.apply(c):a);b+=n(a)+'"/>\n <input type="hidden" name="referrer" value="';(a=e.referrer)?a=a.call(c,{hash:{},data:d}):(a=c.referrer,a=typeof a===l?a.apply(c):a);b+=n(a)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((a=e.unless.call(c,c.showEmail,{hash:{},inverse:p.noop,fn:p.program(1,function(a,
|
||||
b){var d,c;d='<input type="hidden" name="email" value="';(c=e.email)?c=c.call(a,{hash:{},data:b}):(c=a.email,c=typeof c===l?c.apply(a):c);return d+=n(c)+'"/>'},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e.unless.call(c,c.groups,{hash:{},inverse:p.noop,fn:p.program(3,function(a,b){var c;return(c=e["if"].call(a,a.groupId,{hash:{},inverse:p.noop,fn:p.program(4,f,b),data:b}))||0===c?c:""},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e.unless.call(c,c.showMessage,{hash:{},inverse:p.noop,fn:p.program(6,function(a,
|
||||
b){var c,d;c='<input type="hidden" name="message" value="';(d=e.message)?d=d.call(a,{hash:{},data:b}):(d=a.message,d=typeof d===l?d.apply(a):d);return c+=n(d)+'"/>'},d),data:d}))||0===a)b+=a;b+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((a=e["if"].call(c,c.groups,{hash:{},inverse:p.noop,fn:p.program(8,function(a,d){var b,c,f;f={hash:{},data:d};b="\n <tr>\n <td><strong>"+(n((c=e.l10n||a.l10n,c?c.call(a,"form.field.department",f):q.call(a,"l10n","form.field.department",
|
||||
f)))+'</strong></td>\n <td>\n <select name="group">\n ');if((f=e.each.call(a,a.groups,{hash:{},inverse:p.noop,fn:p.program(9,k,d),data:d}))||0===f)b+=f;b+="\n </select>\n </td>\n </tr>\n <tr>\n <td><strong>";f={hash:{},data:d};b+=n((c=e.l10n||a.l10n,c?c.call(a,"form.field.department.description",f):q.call(a,"l10n","form.field.department.description",f)))+'</strong></td>\n <td id="groupDescription">';
|
||||
if((f=e.each.call(a,a.groups,{hash:{},inverse:p.noop,fn:p.program(14,m,d),data:d}))||0===f)b+=f;return b+="</td>\n </tr>\n "},d),data:d}))||0===a)b+=a;a={hash:{},data:d};b=b+"\n <tr>\n <td><strong>"+(n((g=e.l10n||c.l10n,g?g.call(c,"presurvey.name",a):q.call(c,"l10n","presurvey.name",a)))+'</strong></td>\n <td><input type="text" name="name" size="50" value="');(a=e.name)?a=a.call(c,{hash:{},data:d}):(a=c.name,a=typeof a===l?a.apply(c):a);b+=n(a)+'" class="username" ';
|
||||
if((a=e.unless.call(c,c.canChangeName,{hash:{},inverse:p.noop,fn:p.program(17,function(){return'disabled="disabled"'},d),data:d}))||0===a)b+=a;b+="/></td>\n </tr>\n ";if((a=e["if"].call(c,c.showEmail,{hash:{},inverse:p.noop,fn:p.program(19,function(a,b){var d,c;d={hash:{},data:b};d="\n <tr>\n <td><strong>"+(n((c=e.l10n||a.l10n,c?c.call(a,"presurvey.mail",d):q.call(a,"l10n","presurvey.mail",d)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');
|
||||
(c=e.email)?c=c.call(a,{hash:{},data:b}):(c=a.email,c=typeof c===l?c.apply(a):c);return d+=n(c)+'" class="username"/></td>\n </tr>\n '},d),data:d}))||0===a)b+=a;b+="\n ";if((a=e["if"].call(c,c.showMessage,{hash:{},inverse:p.noop,fn:p.program(21,function(a,c){var d,b;d={hash:{},data:c};d="\n <tr>\n <td><strong>"+(n((b=e.l10n||a.l10n,b?b.call(a,"presurvey.question",d):q.call(a,"l10n","presurvey.question",d)))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">');
|
||||
(b=e.message)?b=b.call(a,{hash:{},data:c}):(b=a.message,b=typeof b===l?b.apply(a):b);return d+=n(b)+"</textarea></td>\n </tr>\n "},d),data:d}))||0===a)b+=a;b+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">';a={hash:{},data:d};return b+=n((g=e.l10n||c.l10n,g?g.call(c,"presurvey.submit",a):q.call(c,"l10n","presurvey.submit",a)))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+n((g=(g=c.page,null==g||!1===g?g:g.tplRoot),
|
||||
typeof g===l?g.apply(c):g))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});q.survey_layout=r(function(b,c,e,a,d){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,b.helpers);a=this.merge(a,b.partials);d=d||{};var f,k=e.helperMissing,j=this.escapeExpression;b="\n";if((a=this.invokePartial(a._logo,"_logo",c,e,a,d))||0===a)b+=a;f={hash:{},data:d};b=b+'\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="'+
|
||||
(j((a=e.l10n||c.l10n,a?a.call(c,"leavemessage.close",f):k.call(c,"l10n","leavemessage.close",f)))+'"><img class="tpl-image iclosewin" src="'+j((a=(a=c.page,null==a||!1===a?a:a.tplRoot),"function"===typeof a?a.apply(c):a))+'/images/free.gif" alt="');f={hash:{},data:d};b+=j((a=e.l10n||c.l10n,a?a.call(c,"leavemessage.close",f):k.call(c,"l10n","leavemessage.close",f)))+'" /></a>\n </div>\n <div class="messagetxt">';f={hash:{},data:d};return b+=j((a=e.l10n||c.l10n,a?a.call(c,"presurvey.intro",
|
||||
f):k.call(c,"l10n","presurvey.intro",f)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'})})();
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l._logo=k({1:function(a,d,c,e){var b;c="\n ";if((b=d["if"].call(a,(b=a&&a.page,null==b||!1===b?b:b.mibewHost),{name:"if",hash:{},fn:this.program(2,e),inverse:this.program(4,e),data:e}))||0===b)c+=b;return c+"\n "},2:function(a,d,c,e){var b;d=this.escapeExpression;return"\n <a onclick=\"window.open('"+d((b=(b=a&&a.page,null==b||!1===b?b:b.mibewHost),"function"===typeof b?b.apply(a):
|
||||
b))+'\');return false;" href="'+d((b=(b=a&&a.page,null==b||!1===b?b:b.mibewHost),"function"===typeof b?b.apply(a):b))+'">\n <img src="'+d((b=(b=(b=a&&a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),"function"===typeof b?b.apply(a):b))+'" alt=""/>\n </a>\n '},4:function(a,d,c,e){var b;d=this.escapeExpression;return'\n <img src="'+d((b=(b=(b=a&&a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),"function"===
|
||||
typeof b?b.apply(a):b))+'" alt=""/>\n '},6:function(a,d,c,e){var b;c="\n ";if((b=d["if"].call(a,(b=a&&a.page,null==b||!1===b?b:b.mibewHost),{name:"if",hash:{},fn:this.program(7,e),inverse:this.program(9,e),data:e}))||0===b)c+=b;return c+"\n "},7:function(a,d,c,e){var b;d=this.escapeExpression;return"\n <a onclick=\"window.open('"+d((b=(b=a&&a.page,null==b||!1===b?b:b.mibewHost),"function"===typeof b?b.apply(a):b))+'\');return false;" href="'+d((b=(b=a&&
|
||||
a.page,null==b||!1===b?b:b.mibewHost),"function"===typeof b?b.apply(a):b))+'">\n <img src="'+d((b=(b=a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n </a>\n '},9:function(a,d,c,e){var b;d=this.escapeExpression;return'\n <img src="'+d((b=(b=a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/default-logo.gif" alt=""/>\n '},compiler:[5,
|
||||
">= 2.0.0"],main:function(a,d,c,e){var b;c=this.escapeExpression;var f='\n<div id="top2">\n <div id="logo">\n ';if((b=d["if"].call(a,(b=(b=a&&a.page,null==b||!1===b?b:b.company),null==b||!1===b?b:b.chatLogoURL),{name:"if",hash:{},fn:this.program(1,e),inverse:this.program(6,e),data:e}))||0===b)f+=b;return f+'\n \n <div id="page-title">'+c((b=(b=a&&a.page,null==b||!1===b?b:b.title),"function"===typeof b?b.apply(a):b))+'</div>\n <div class="clear"> </div>\n </div>\n</div>'},
|
||||
useData:!0});l.chat_avatar=k({1:function(a,d,c,e){var b;c=this.escapeExpression;return'<img src="'+c((b=d.imageLink||a&&a.imageLink,"function"===typeof b?b.call(a,{name:"imageLink",hash:{},data:e}):b))+'" border="0" alt="" />'},3:function(a,d,c,e){return'<div class="default-avatar"></div>'},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){return(a=d["if"].call(a,a&&a.imageLink,{name:"if",hash:{},fn:this.program(1,e),inverse:this.program(3,e),data:e}))||0===a?a:""},useData:!0});l.chat_controls_close=
|
||||
k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'<div class="tpl-image" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.close_title",{name:"l10n",hash:{},data:e})))+'"></div>'},useData:!0});l.chat_controls_history=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'<div class="tpl-image" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"page.analysis.userhistory.title",{name:"l10n",
|
||||
hash:{},data:e})))+'"></div>'},useData:!0});l.chat_controls_redirect=k({1:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'\n<div class="tpl-image" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.toolbar.redirect_user",{name:"l10n",hash:{},data:e})))+'"></div>\n'},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;return(b=d["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.canPost),{name:"if",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b?b:""},
|
||||
useData:!0});l.chat_controls_refresh=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'<div class="tpl-image" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.toolbar.refresh",{name:"l10n",hash:{},data:e})))+'"></div>'},useData:!0});l.chat_controls_secure_mode=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){return'<div class="tpl-image" title="SSL"></div>'},useData:!0});l.chat_controls_send_mail=k({compiler:[5,">= 2.0.0"],main:function(a,
|
||||
d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'<div class="tpl-image" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.toolbar.mail_history",{name:"l10n",hash:{},data:e})))+'"></div>'},useData:!0});l.chat_controls_sound=k({1:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'\n <div class="tpl-image sound-control-on" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.toolbar.turn_off_sound",{name:"l10n",hash:{},data:e})))+'"></div>\n'},
|
||||
3:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return'\n <div class="tpl-image sound-control-off" title="'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.toolbar.turn_on_sound",{name:"l10n",hash:{},data:e})))+'"></div>\n'},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){return(a=d["if"].call(a,a&&a.enabled,{name:"if",hash:{},fn:this.program(1,e),inverse:this.program(3,e),data:e}))||0===a?a:""},useData:!0});l.chat_controls_user_name=k({1:function(a,d,c,e){var b;c=d.helperMissing;
|
||||
var f=this.escapeExpression;c='\n <span class="user-name-control-prefix">'+f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.client.name",{name:"l10n",hash:{},data:e})))+"</span>\n ";if((a=d["if"].call(a,a&&a.nameInput,{name:"if",hash:{},fn:this.program(2,e),inverse:this.program(4,e),data:e}))||0===a)c+=a;return c+"\n"},2:function(a,d,c,e){var b,f;c=this.escapeExpression;var h=d.helperMissing;return'\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+
|
||||
c((b=(b=a&&a.user,null==b||!1===b?b:b.name),"function"===typeof b?b.apply(a):b))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="'+c((f=d.l10n||a&&a.l10n||h,f.call(a,"chat.client.changename",{name:"l10n",hash:{},data:e})))+'"></a>\n '},4:function(a,d,c,e){var b,f;c=d.helperMissing;var h=this.escapeExpression;return'\n <a href="javascript:void(0)" title="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.client.changename",{name:"l10n",
|
||||
hash:{},data:e})))+'">'+h((b=(b=a&&a.user,null==b||!1===b?b:b.name),"function"===typeof b?b.apply(a):b))+'</a>\n <a class="user-name-control-change tpl-image" title="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.client.changename",{name:"l10n",hash:{},data:e})))+'"></a>\n '},6:function(a,d,c,e){var b,f;c=d.helperMissing;var h=this.escapeExpression;return"\n"+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.client.name",{name:"l10n",hash:{},data:e})))+" "+h((b=(b=a&&a.user,null==b||!1===b?b:b.name),
|
||||
"function"===typeof b?b.apply(a):b))+"\n"},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;return(b=d["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.canChangeName),{name:"if",hash:{},fn:this.program(1,e),inverse:this.program(6,e),data:e}))||0===b?b:""},useData:!0});l.chat_layout=k({1:function(a,d,c,e){return'\n <div id="avatar-region"></div>\n '},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f=d.helperMissing,h=this.escapeExpression,g="\n";if((c=this.invokePartial(c._logo,
|
||||
"_logo",a,void 0,d,c,e))||0===c)g+=c;g+='\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((c=d.unless.call(a,(c=a&&a.user,null==c||!1===c?c:c.isAgent),{name:"unless",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===c)g+=c;return g+'\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">'+
|
||||
h((b=d.l10n||a&&a.l10n||f,b.call(a,"chat.window.poweredby",{name:"l10n",hash:{},data:e})))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>'},usePartial:!0,useData:!0});l.chat_message=k({1:function(a,d,c,e){var b;c=this.escapeExpression;return"<span class='n"+c((b=d.kindName||a&&a.kindName,"function"===typeof b?b.call(a,{name:"kindName",hash:{},data:e}):b))+"'>"+c((b=d.name||a&&a.name,"function"===typeof b?b.call(a,{name:"name",hash:{},data:e}):
|
||||
b))+"</span>: "},3:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return f((b=d.apply||a&&a.apply||c,b.call(a,a&&a.message,"urlReplace, nl2br, allowTags",{name:"apply",hash:{},data:e})))},5:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return f((b=d.apply||a&&a.apply||c,b.call(a,a&&a.message,"urlReplace, nl2br",{name:"apply",hash:{},data:e})))},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f;b=d.helperMissing;c=this.escapeExpression;var h="<span>"+
|
||||
c((f=d.formatTime||a&&a.formatTime||b,f.call(a,a&&a.created,{name:"formatTime",hash:{},data:e})))+"</span> \n";if((b=d["if"].call(a,a&&a.name,{name:"if",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)h+=b;h+="\n<span class='m"+c((f=d.kindName||a&&a.kindName,"function"===typeof f?f.call(a,{name:"kindName",hash:{},data:e}):f))+"'>";if((b=d["if"].call(a,a&&a.allowFormatting,{name:"if",hash:{},fn:this.program(3,e),inverse:this.program(5,e),data:e}))||0===b)h+=b;return h+"</span><br/>"},
|
||||
useData:!0});l.chat_message_form=k({1:function(a,d,c,e){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'},3:function(a,d,c,e){var b,f;c=d.helperMissing;var h=this.escapeExpression,g='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((b=d["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.isAgent),{name:"if",hash:{},fn:this.program(4,
|
||||
e),inverse:this.noop,data:e}))||0===b)g+=b;return g+'\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.window.send_message",{name:"l10n",hash:{},data:e})))+'">'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.window.send_message_short_and_shortcut",{name:"l10n",hash:{},data:e})))+"</a>\n </div>\n"},4:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;c='\n <select id="predefined" size="1" class="answer">\n <option>'+
|
||||
f((b=d.l10n||a&&a.l10n||c,b.call(a,"chat.window.predefined.select_answer",{name:"l10n",hash:{},data:e})))+"</option>\n ";if((a=d.each.call(a,a&&a.predefinedAnswers,{name:"each",hash:{},fn:this.program(5,e),inverse:this.noop,data:e}))||0===a)c+=a;return c+"\n </select>\n "},5:function(a,d,c,e){var b;d=this.escapeExpression;return"\n <option>"+d((b=a&&a["short"],"function"===typeof b?b.apply(a):b))+"</option>\n "},compiler:[5,
|
||||
">= 2.0.0"],main:function(a,d,c,e){var b;c='<div id="message">\n';if((b=d["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.canPost),{name:"if",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)c+=b;c+='\n</div>\n\n<div id="send">\n';if((b=d["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.canPost),{name:"if",hash:{},fn:this.program(3,e),inverse:this.noop,data:e}))||0===b)c+=b;return c+'\n</div>\n<div class="clear"></div>'},useData:!0});l.chat_status_base=k({compiler:[5,">= 2.0.0"],main:function(a,
|
||||
d,c,e){var b;c=this.escapeExpression;return c((b=d.title||a&&a.title,"function"===typeof b?b.call(a,{name:"title",hash:{},data:e}):b))},useData:!0});l.chat_status_message=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=this.escapeExpression;return c((b=d.message||a&&a.message,"function"===typeof b?b.call(a,{name:"message",hash:{},data:e}):b))},useData:!0});l.chat_status_typing=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return f((b=
|
||||
d.l10n||a&&a.l10n||c,b.call(a,"typing.remote",{name:"l10n",hash:{},data:e})))},useData:!0});l.default_control=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b;c=this.escapeExpression;return"<strong>"+c((b=d.title||a&&a.title,"function"===typeof b?b.call(a,{name:"title",hash:{},data:e}):b))+"</strong>"},useData:!0});l.invitation_layout=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){return'<div id="invitation-messages-region"></div>'},useData:!0});l.leave_message_description=k({compiler:[5,
|
||||
">= 2.0.0"],main:function(a,d,c,e){var b,f;c=d.helperMissing;var h=this.escapeExpression;return'<div class="buttons">\n <a href="javascript:window.close();" title="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"leavemessage.close",{name:"l10n",hash:{},data:e})))+'">\n <img class="tpl-image iclosewin" src="'+h((b=(b=a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/free.gif" alt="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"leavemessage.close",{name:"l10n",hash:{},data:e})))+
|
||||
'" />\n </a>\n</div>\n<div class="messagetxt">'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"leavemessage.descr",{name:"l10n",hash:{},data:e})))+"</div>"},useData:!0});l.leave_message_form=k({1:function(a,d,c,e){return(a=d["if"].call(a,a&&a.groupId,{name:"if",hash:{},fn:this.program(2,e),inverse:this.noop,data:e}))||0===a?a:""},2:function(a,d,c,e){var b;c=this.escapeExpression;return'<input type="hidden" name="group" value="'+c((b=d.groupId||a&&a.groupId,"function"===typeof b?b.call(a,{name:"groupId",hash:{},
|
||||
data:e}):b))+'"/>'},4:function(a,d,c,e){var b,f=d.helperMissing,h=this.escapeExpression,g='\n <tr>\n <td class="text"><strong>'+h((b=d.l10n||a&&a.l10n||f,b.call(a,"form.field.department",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td>\n <select name="group" style="min-width:200px;">\n ';if((c=d.each.call(a,a&&a.groups,{name:"each",hash:{},fn:this.program(5,e),inverse:this.noop,data:e}))||0===c)g+=c;g+='\n </select>\n </td>\n </tr>\n <tr>\n <td class="text"><strong>'+
|
||||
h((b=d.l10n||a&&a.l10n||f,b.call(a,"form.field.department.description",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td class="text" id="groupDescription">\n ';if((c=d.each.call(a,a&&a.groups,{name:"each",hash:{},fn:this.program(8,e),inverse:this.noop,data:e}))||0===c)g+=c;return g+"\n </td>\n </tr>\n "},5:function(a,d,c,e){var b;c=this.escapeExpression;var f='\n <option value="'+c((b=a&&a.id,"function"===typeof b?b.apply(a):
|
||||
b))+'" ';if((b=d["if"].call(a,a&&a.selected,{name:"if",hash:{},fn:this.program(6,e),inverse:this.noop,data:e}))||0===b)f+=b;return f+">"+c((b=a&&a.name,"function"===typeof b?b.apply(a):b))+"</option>\n "},6:function(a,d,c,e){return'selected="selected"'},8:function(a,d,c,e){return(a=d["if"].call(a,a&&a.selected,{name:"if",hash:{},fn:this.program(9,e),inverse:this.noop,data:e}))||0===a?a:""},9:function(a,d,c,e){var b;d=this.escapeExpression;return d((b=a&&a.description,"function"===
|
||||
typeof b?b.apply(a):b))},11:function(a,d,c,e){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 '},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f;c=this.escapeExpression;var h=d.helperMissing,g='<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+c((b=(b=a&&a.page,null==b||!1===
|
||||
b?b:b.style),"function"===typeof b?b.apply(a):b))+'"/>\n <input type="hidden" name="info" value="'+c((f=d.info||a&&a.info,"function"===typeof f?f.call(a,{name:"info",hash:{},data:e}):f))+'"/>\n <input type="hidden" name="referrer" value="'+c((f=d.referrer||a&&a.referrer,"function"===typeof f?f.call(a,{name:"referrer",hash:{},data:e}):f))+'"/>\n ';if((b=d.unless.call(a,a&&a.groups,{name:"unless",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)g+=b;g+='\n\n <div class="errors"></div>\n\n <table cellspacing="1" cellpadding="5" border="0" class="form">\n <tr>\n <td><strong>'+
|
||||
c((f=d.l10n||a&&a.l10n||h,f.call(a,"form.field.email",{name:"l10n",hash:{},data:e})))+':</strong></td>\n <td><input type="text" name="email" size="50" value="'+c((f=d.email||a&&a.email,"function"===typeof f?f.call(a,{name:"email",hash:{},data:e}):f))+'" class="username"/></td>\n </tr>\n <tr>\n <td><strong>'+c((f=d.l10n||a&&a.l10n||h,f.call(a,"form.field.name",{name:"l10n",hash:{},data:e})))+':</strong></td>\n <td><input type="text" name="name" size="50" value="'+
|
||||
c((f=d.name||a&&a.name,"function"===typeof f?f.call(a,{name:"name",hash:{},data:e}):f))+'" class="username"/></td>\n </tr>\n ';if((b=d["if"].call(a,a&&a.groups,{name:"if",hash:{},fn:this.program(4,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="\n <tr>\n <td><strong>"+c((f=d.l10n||a&&a.l10n||h,f.call(a,"form.field.message",{name:"l10n",hash:{},data:e})))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">'+
|
||||
c((f=d.message||a&&a.message,"function"===typeof f?f.call(a,{name:"message",hash:{},data:e}):f))+"</textarea>\n </td>\n </tr>\n ";if((b=d["if"].call(a,a&&a.showCaptcha,{name:"if",hash:{},fn:this.program(11,e),inverse:this.noop,data:e}))||0===b)g+=b;return g+'\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">'+c((f=d.l10n||a&&a.l10n||h,f.call(a,"mailthread.perform",{name:"l10n",hash:{},data:e})))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+
|
||||
c((b=(b=a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/ajax-loader.gif" alt="Loading..." /></div>'},useData:!0});l.leave_message_layout=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b="\n";if((a=this.invokePartial(c._logo,"_logo",a,void 0,d,c,e))||0===a)b+=a;return b+'\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>'},
|
||||
usePartial:!0,useData:!0});l.leave_message_sent_description=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f;c=d.helperMissing;var h=this.escapeExpression;return'<div class="buttons">\n <a href="javascript:window.close();" title="'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.mailthread.sent.close",{name:"l10n",hash:{},data:e})))+'">\n <img class="tpl-image iclosewin" src="'+h((b=(b=a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/free.gif" alt="'+
|
||||
h((f=d.l10n||a&&a.l10n||c,f.call(a,"chat.mailthread.sent.close",{name:"l10n",hash:{},data:e})))+'" />\n </a>\n</div>\n<div class="messagetxt">'+h((f=d.l10n||a&&a.l10n||c,f.call(a,"leavemessage.sent.message",{name:"l10n",hash:{},data:e})))+"</div>"},useData:!0});l.message=k({1:function(a,d,c,e){var b;c=this.escapeExpression;return"<span class='n"+c((b=d.kindName||a&&a.kindName,"function"===typeof b?b.call(a,{name:"kindName",hash:{},data:e}):b))+"'>"+c((b=d.name||a&&a.name,"function"===typeof b?
|
||||
b.call(a,{name:"name",hash:{},data:e}):b))+"</span>: "},3:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return f((b=d.apply||a&&a.apply||c,b.call(a,a&&a.message,"urlReplace, nl2br, allowTags",{name:"apply",hash:{},data:e})))},5:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return f((b=d.apply||a&&a.apply||c,b.call(a,a&&a.message,"urlReplace, nl2br",{name:"apply",hash:{},data:e})))},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f;b=d.helperMissing;
|
||||
c=this.escapeExpression;var h="<span>"+c((f=d.formatTime||a&&a.formatTime||b,f.call(a,a&&a.created,{name:"formatTime",hash:{},data:e})))+"</span>\n";if((b=d["if"].call(a,a&&a.name,{name:"if",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)h+=b;h+="\n<span class='m"+c((f=d.kindName||a&&a.kindName,"function"===typeof f?f.call(a,{name:"kindName",hash:{},data:e}):f))+"'>";if((b=d["if"].call(a,a&&a.allowFormatting,{name:"if",hash:{},fn:this.program(3,e),inverse:this.program(5,e),data:e}))||
|
||||
0===b)h+=b;return h+"</span><br/>"},useData:!0});l.survey_form=k({1:function(a,d,c,e){var b;c=this.escapeExpression;return'<input type="hidden" name="email" value="'+c((b=d.email||a&&a.email,"function"===typeof b?b.call(a,{name:"email",hash:{},data:e}):b))+'"/>'},3:function(a,d,c,e){return(a=d["if"].call(a,a&&a.groupId,{name:"if",hash:{},fn:this.program(4,e),inverse:this.noop,data:e}))||0===a?a:""},4:function(a,d,c,e){var b;c=this.escapeExpression;return'<input type="hidden" name="group" value="'+
|
||||
c((b=d.groupId||a&&a.groupId,"function"===typeof b?b.call(a,{name:"groupId",hash:{},data:e}):b))+'"/>'},6:function(a,d,c,e){var b;c=this.escapeExpression;return'<input type="hidden" name="message" value="'+c((b=d.message||a&&a.message,"function"===typeof b?b.call(a,{name:"message",hash:{},data:e}):b))+'"/>'},8:function(a,d,c,e){var b,f=d.helperMissing,h=this.escapeExpression,g="\n <tr>\n <td><strong>"+h((b=d.l10n||a&&a.l10n||f,b.call(a,"form.field.department",{name:"l10n",hash:{},
|
||||
data:e})))+'</strong></td>\n <td>\n <select name="group">\n ';if((c=d.each.call(a,a&&a.groups,{name:"each",hash:{},fn:this.program(9,e),inverse:this.noop,data:e}))||0===c)g+=c;g+="\n </select>\n </td>\n </tr>\n <tr>\n <td><strong>"+h((b=d.l10n||a&&a.l10n||f,b.call(a,"form.field.department.description",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td id="groupDescription">';if((c=d.each.call(a,
|
||||
a&&a.groups,{name:"each",hash:{},fn:this.program(14,e),inverse:this.noop,data:e}))||0===c)g+=c;return g+"</td>\n </tr>\n "},9:function(a,d,c,e){var b;c=this.escapeExpression;var f='\n <option value="'+c((b=a&&a.id,"function"===typeof b?b.apply(a):b))+'" ';if((b=d["if"].call(a,a&&a.selected,{name:"if",hash:{},fn:this.program(10,e),inverse:this.noop,data:e}))||0===b)f+=b;f+=">"+c((b=a&&a.name,"function"===typeof b?b.apply(a):b));if((b=d.unless.call(a,a&&a.online,{name:"unless",
|
||||
hash:{},fn:this.program(12,e),inverse:this.noop,data:e}))||0===b)f+=b;return f+"</option>\n "},10:function(a,d,c,e){return'selected="selected"'},12:function(a,d,c,e){return" (offline)"},14:function(a,d,c,e){return(a=d["if"].call(a,a&&a.selected,{name:"if",hash:{},fn:this.program(15,e),inverse:this.noop,data:e}))||0===a?a:""},15:function(a,d,c,e){var b;d=this.escapeExpression;return d((b=a&&a.description,"function"===typeof b?b.apply(a):b))},17:function(a,d,c,e){return'disabled="disabled"'},
|
||||
19:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;return"\n <tr>\n <td><strong>"+f((b=d.l10n||a&&a.l10n||c,b.call(a,"presurvey.mail",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td><input type="text" name="email" size="50" value="'+f((b=d.email||a&&a.email,"function"===typeof b?b.call(a,{name:"email",hash:{},data:e}):b))+'" class="username"/></td>\n </tr>\n '},21:function(a,d,c,e){var b;c=d.helperMissing;var f=this.escapeExpression;
|
||||
return"\n <tr>\n <td><strong>"+f((b=d.l10n||a&&a.l10n||c,b.call(a,"presurvey.question",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td valign="top"><textarea name="message" tabindex="0" cols="45" rows="2">'+f((b=d.message||a&&a.message,"function"===typeof b?b.call(a,{name:"message",hash:{},data:e}):b))+"</textarea></td>\n </tr>\n "},compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f;c=this.escapeExpression;var h=d.helperMissing,g='<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+
|
||||
c((b=(b=a&&a.page,null==b||!1===b?b:b.style),"function"===typeof b?b.apply(a):b))+'"/>\n <input type="hidden" name="info" value="'+c((f=d.info||a&&a.info,"function"===typeof f?f.call(a,{name:"info",hash:{},data:e}):f))+'"/>\n <input type="hidden" name="referrer" value="'+c((f=d.referrer||a&&a.referrer,"function"===typeof f?f.call(a,{name:"referrer",hash:{},data:e}):f))+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((b=d.unless.call(a,a&&a.showEmail,{name:"unless",hash:{},
|
||||
fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="\n ";if((b=d.unless.call(a,a&&a.groups,{name:"unless",hash:{},fn:this.program(3,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="\n ";if((b=d.unless.call(a,a&&a.showMessage,{name:"unless",hash:{},fn:this.program(6,e),inverse:this.noop,data:e}))||0===b)g+=b;g+='\n\n <div class="errors"></div>\n\n <table class="form">\n ';if((b=d["if"].call(a,a&&a.groups,{name:"if",hash:{},fn:this.program(8,e),inverse:this.noop,data:e}))||
|
||||
0===b)g+=b;g+="\n <tr>\n <td><strong>"+c((f=d.l10n||a&&a.l10n||h,f.call(a,"presurvey.name",{name:"l10n",hash:{},data:e})))+'</strong></td>\n <td><input type="text" name="name" size="50" value="'+c((f=d.name||a&&a.name,"function"===typeof f?f.call(a,{name:"name",hash:{},data:e}):f))+'" class="username" ';if((b=d.unless.call(a,a&&a.canChangeName,{name:"unless",hash:{},fn:this.program(17,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="/></td>\n </tr>\n ";if((b=d["if"].call(a,
|
||||
a&&a.showEmail,{name:"if",hash:{},fn:this.program(19,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="\n ";if((b=d["if"].call(a,a&&a.showMessage,{name:"if",hash:{},fn:this.program(21,e),inverse:this.noop,data:e}))||0===b)g+=b;return g+'\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">'+c((f=d.l10n||a&&a.l10n||h,f.call(a,"presurvey.submit",{name:"l10n",hash:{},data:e})))+'</a>\n <div class="clear"> </div>\n</form>\n<div id="ajax-loader"><img src="'+c((b=(b=
|
||||
a&&a.page,null==b||!1===b?b:b.tplRoot),"function"===typeof b?b.apply(a):b))+'/images/ajax-loader.gif" alt="Loading..." /></div>'},useData:!0});l.survey_layout=k({compiler:[5,">= 2.0.0"],main:function(a,d,c,e){var b,f=d.helperMissing,h=this.escapeExpression,g="\n";if((c=this.invokePartial(c._logo,"_logo",a,void 0,d,c,e))||0===c)g+=c;return g+'\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="'+
|
||||
h((b=d.l10n||a&&a.l10n||f,b.call(a,"leavemessage.close",{name:"l10n",hash:{},data:e})))+'"><img class="tpl-image iclosewin" src="'+h((c=(c=a&&a.page,null==c||!1===c?c:c.tplRoot),"function"===typeof c?c.apply(a):c))+'/images/free.gif" alt="'+h((b=d.l10n||a&&a.l10n||f,b.call(a,"leavemessage.close",{name:"l10n",hash:{},data:e})))+'" /></a>\n </div>\n <div class="messagetxt">'+h((b=d.l10n||a&&a.l10n||f,b.call(a,"presurvey.intro",{name:"l10n",hash:{},data:e})))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'},
|
||||
usePartial:!0,useData:!0})})();
|
||||
|
@ -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=[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/>"})})();
|
||||
(function(){var h=Handlebars.template,k=Handlebars.templates=Handlebars.templates||{};k.default_control=h({compiler:[5,">= 2.0.0"],main:function(a,c,d,e){var b;d=this.escapeExpression;return"<strong>"+d((b=c.title||a&&a.title,"function"===typeof b?b.call(a,{name:"title",hash:{},data:e}):b))+"</strong>"},useData:!0});k.message=h({1:function(a,c,d,e){var b;d=this.escapeExpression;return"<span class='n"+d((b=c.kindName||a&&a.kindName,"function"===typeof b?b.call(a,{name:"kindName",hash:{},data:e}):b))+
|
||||
"'>"+d((b=c.name||a&&a.name,"function"===typeof b?b.call(a,{name:"name",hash:{},data:e}):b))+"</span>: "},3:function(a,c,d,e){var b;d=c.helperMissing;var f=this.escapeExpression;return f((b=c.apply||a&&a.apply||d,b.call(a,a&&a.message,"urlReplace, nl2br, allowTags",{name:"apply",hash:{},data:e})))},5:function(a,c,d,e){var b;d=c.helperMissing;var f=this.escapeExpression;return f((b=c.apply||a&&a.apply||d,b.call(a,a&&a.message,"urlReplace, nl2br",{name:"apply",hash:{},data:e})))},compiler:[5,">= 2.0.0"],
|
||||
main:function(a,c,d,e){var b,f;b=c.helperMissing;d=this.escapeExpression;var g="<span>"+d((f=c.formatTime||a&&a.formatTime||b,f.call(a,a&&a.created,{name:"formatTime",hash:{},data:e})))+"</span>\n";if((b=c["if"].call(a,a&&a.name,{name:"if",hash:{},fn:this.program(1,e),inverse:this.noop,data:e}))||0===b)g+=b;g+="\n<span class='m"+d((f=c.kindName||a&&a.kindName,"function"===typeof f?f.call(a,{name:"kindName",hash:{},data:e}):f))+"'>";if((b=c["if"].call(a,a&&a.allowFormatting,{name:"if",hash:{},fn:this.program(3,
|
||||
e),inverse:this.program(5,e),data:e}))||0===b)g+=b;return g+"</span><br/>"},useData:!0})})();
|
||||
|
@ -4,31 +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(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>'})})();
|
||||
(function(){var k=Handlebars.template,l=Handlebars.templates=Handlebars.templates||{};l.agent=k({1:function(a,e,c,d){return"away"},3:function(a,e,c,d){return"online"},5:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.away",{name:"l10n",hash:{},data:d})))},7:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.online",{name:"l10n",hash:{},data:d})))},
|
||||
9:function(a,e,c,d){return","},compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b,f=this.escapeExpression,g='<span class="agent-status-';if((c=e["if"].call(a,a&&a.away,{name:"if",hash:{},fn:this.program(1,d),inverse:this.program(3,d),data:d}))||0===c)g+=c;g+=' inline-block" title="';if((c=e["if"].call(a,a&&a.away,{name:"if",hash:{},fn:this.program(5,d),inverse:this.program(7,d),data:d}))||0===c)g+=c;g+='"></span>'+f((b=e.name||a&&a.name,"function"===typeof b?b.call(a,{name:"name",hash:{},data:d}):
|
||||
b));if((c=e.unless.call(a,a&&a.isLast,{name:"unless",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}))||0===c)g+=c;return g},useData:!0});l.no_threads=k({compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'<td class="no-threads" colspan="8">'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"clients.no_clients",{name:"l10n",hash:{},data:d})))+"</td>"},useData:!0});l.no_visitors=k({compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b;c=e.helperMissing;
|
||||
var f=this.escapeExpression;return'<td class="no-visitors" colspan="9">'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.no_visitors",{name:"l10n",hash:{},data:d})))+"</td>"},useData:!0});l.queued_thread=k({1:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.speak",{name:"l10n",hash:{},data:d})))},3:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.view",
|
||||
{name:"l10n",hash:{},data:d})))},5:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"chat.client.spam.prefix",{name:"l10n",hash:{},data:d})))+" "},7:function(a,e,c,d){var b;c=this.escapeExpression;return'<div class="first-message"><a href="javascript:void(0);" title="'+c((b=e.firstMessage||a&&a.firstMessage,"function"===typeof b?b.call(a,{name:"firstMessage",hash:{},data:d}):b))+'">'+c((b=e.firstMessagePreview||a&&a.firstMessagePreview,
|
||||
"function"===typeof b?b.call(a,{name:"firstMessagePreview",hash:{},data:d}):b))+"</a></div>"},9:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'\n <div class="control open-dialog open-control inline-block" title="'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.speak",{name:"l10n",hash:{},data:d})))+'"></div>\n '},11:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'\n <div class="control view-control inline-block" title="'+
|
||||
f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.view",{name:"l10n",hash:{},data:d})))+'"></div>\n '},13:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'\n <div class="control track-control inline-block" title="'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.tracked",{name:"l10n",hash:{},data:d})))+'"></div>\n '},15:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'\n <div class="control ban-control inline-block" title="'+
|
||||
f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.ban",{name:"l10n",hash:{},data:d})))+'"></div>\n '},17:function(a,e,c,d){var b;c=this.escapeExpression;return'<a href="javascript:void(0);" class="geo-link" title="GeoLocation">'+c((b=e.remote||a&&a.remote,"function"===typeof b?b.call(a,{name:"remote",hash:{},data:d}):b))+"</a>"},19:function(a,e,c,d){var b;c=this.escapeExpression;return c((b=e.remote||a&&a.remote,"function"===typeof b?b.call(a,{name:"remote",hash:{},data:d}):b))},21:function(a,
|
||||
e,c,d){var b;c=this.escapeExpression;return'<span class="timesince" data-timestamp="'+c((b=e.waitingTime||a&&a.waitingTime,"function"===typeof b?b.call(a,{name:"waitingTime",hash:{},data:d}):b))+'"></span>'},23:function(a,e,c,d){return"-"},25:function(a,e,c,d){var b;e=this.escapeExpression;return e((b=(b=a&&a.ban,null==b||!1===b?b:b.reason),"function"===typeof b?b.apply(a):b))},27:function(a,e,c,d){var b;c=this.escapeExpression;return c((b=e.userAgent||a&&a.userAgent,"function"===typeof b?b.call(a,
|
||||
{name:"userAgent",hash:{},data:d}):b))},compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b,f=this.escapeExpression,g='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((c=e["if"].call(a,a&&a.canOpen,{name:"if",hash:{},fn:this.program(1,d),inverse:this.program(3,d),data:d}))||0===c)g+=c;g+='">';if((c=e["if"].call(a,a&&a.ban,{name:"if",hash:{},fn:this.program(5,d),inverse:this.noop,data:d}))||0===c)g+=c;g+=f((b=e.userName||a&&a.userName,"function"===
|
||||
typeof b?b.call(a,{name:"userName",hash:{},data:d}):b))+"</a></div>\n ";if((c=e["if"].call(a,a&&a.firstMessage,{name:"if",hash:{},fn:this.program(7,d),inverse:this.noop,data:d}))||0===c)g+=c;g+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((c=e["if"].call(a,a&&a.canOpen,{name:"if",hash:{},fn:this.program(9,d),inverse:this.noop,data:d}))||0===c)g+=c;g+="\n ";if((c=e["if"].call(a,a&&a.canView,{name:"if",hash:{},fn:this.program(11,d),inverse:this.noop,
|
||||
data:d}))||0===c)g+=c;g+="\n ";if((c=e["if"].call(a,a&&a.tracked,{name:"if",hash:{},fn:this.program(13,d),inverse:this.noop,data:d}))||0===c)g+=c;g+="\n ";if((c=e["if"].call(a,a&&a.canBan,{name:"if",hash:{},fn:this.program(15,d),inverse:this.noop,data:d}))||0===c)g+=c;g+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';if((c=e["if"].call(a,a&&a.userIp,{name:"if",hash:{},fn:this.program(17,d),inverse:this.program(19,d),data:d}))||0===c)g+=
|
||||
c;g+='</td>\n<td class="visitor">'+f((b=e.stateDesc||a&&a.stateDesc,"function"===typeof b?b.call(a,{name:"stateDesc",hash:{},data:d}):b))+'</td>\n<td class="visitor">'+f((b=e.agentName||a&&a.agentName,"function"===typeof b?b.call(a,{name:"agentName",hash:{},data:d}):b))+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="'+f((b=e.totalTime||a&&a.totalTime,"function"===typeof b?b.call(a,{name:"totalTime",hash:{},data:d}):b))+'"></span></td>\n<td class="visitor">';if((c=e.unless.call(a,
|
||||
a&&a.chatting,{name:"unless",hash:{},fn:this.program(21,d),inverse:this.program(23,d),data:d}))||0===c)g+=c;g+='</td>\n<td class="visitor">';if((c=e["if"].call(a,a&&a.ban,{name:"if",hash:{},fn:this.program(25,d),inverse:this.program(27,d),data:d}))||0===c)g+=c;return g+"</td>"},useData:!0});l.status_panel=k({1:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.away",{name:"l10n",hash:{},data:d})))},3:function(a,e,c,d){var b;
|
||||
c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.online",{name:"l10n",hash:{},data:d})))},5:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.setonline",{name:"l10n",hash:{},data:d})))},7:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.status.setaway",{name:"l10n",hash:{},data:d})))},compiler:[5,
|
||||
">= 2.0.0"],main:function(a,e,c,d){var b,f;c=this.escapeExpression;c='<div id="connstatus">'+c((f=e.message||a&&a.message,"function"===typeof f?f.call(a,{name:"message",hash:{},data:d}):f));if((b=e["if"].call(a,(b=a&&a.agent,null==b||!1===b?b:b.away),{name:"if",hash:{},fn:this.program(1,d),inverse:this.program(3,d),data:d}))||0===b)c+=b;c+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';if((b=e["if"].call(a,(b=a&&a.agent,null==b||!1===b?b:b.away),{name:"if",hash:{},fn:this.program(5,
|
||||
d),inverse:this.program(7,d),data:d}))||0===b)c+=b;return c+"</a></div>"},useData:!0});l.threads_collection=k({compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.name",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.actions",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+
|
||||
f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.contactid",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.state",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.operator",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.total",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.waittime",
|
||||
{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.head.etc",{name:"l10n",hash:{},data:d})))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>'},useData:!0});l.visitor=k({1:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'<a href="javascript:void(0);" class="invite-link" title="'+f((b=e.l10n||a&&a.l10n||c,b.call(a,"pending.table.invite",{name:"l10n",hash:{},data:d})))+'">'+f((b=e.userName||a&&
|
||||
a.userName,"function"===typeof b?b.call(a,{name:"userName",hash:{},data:d}):b))+"</a>"},3:function(a,e,c,d){var b;c=this.escapeExpression;return c((b=e.userName||a&&a.userName,"function"===typeof b?b.call(a,{name:"userName",hash:{},data:d}):b))},5:function(a,e,c,d){var b;c=this.escapeExpression;return'<a href="javascript:void(0);" class="geo-link" title="GeoLocation">'+c((b=e.remote||a&&a.remote,"function"===typeof b?b.call(a,{name:"remote",hash:{},data:d}):b))+"</a>"},7:function(a,e,c,d){var b;c=
|
||||
this.escapeExpression;return c((b=e.remote||a&&a.remote,"function"===typeof b?b.call(a,{name:"remote",hash:{},data:d}):b))},9:function(a,e,c,d){var b;e=this.escapeExpression;return e((b=(b=a&&a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?b.apply(a):b))},11:function(a,e,c,d){return"-"},13:function(a,e,c,d){var b;e=this.escapeExpression;return'<span class="timesince" data-timestamp="'+e((b=(b=a&&a.invitationInfo,null==b||!1===b?b:b.time),"function"===typeof b?b.apply(a):b))+
|
||||
'"></span>'},compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b,f=e.helperMissing,g=this.escapeExpression,h='<td class="visitor">\n ';if((c=e.unless.call(a,a&&a.invitationInfo,{name:"unless",hash:{},fn:this.program(1,d),inverse:this.program(3,d),data:d}))||0===c)h+=c;h+='\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+g((b=e.l10n||a&&a.l10n||f,b.call(a,"pending.table.tracked",{name:"l10n",
|
||||
hash:{},data:d})))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">';if((c=e["if"].call(a,a&&a.userIp,{name:"if",hash:{},fn:this.program(5,d),inverse:this.program(7,d),data:d}))||0===c)h+=c;h+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="'+g((b=e.firstTime||a&&a.firstTime,"function"===typeof b?b.call(a,{name:"firstTime",hash:{},data:d}):b))+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="'+
|
||||
g((b=e.lastTime||a&&a.lastTime,"function"===typeof b?b.call(a,{name:"lastTime",hash:{},data:d}):b))+'"></span></td>\n<td class="visitor">';if((c=e["if"].call(a,a&&a.invitationInfo,{name:"if",hash:{},fn:this.program(9,d),inverse:this.program(11,d),data:d}))||0===c)h+=c;h+='</td>\n<td class="visitor">';if((c=e["if"].call(a,a&&a.invitationInfo,{name:"if",hash:{},fn:this.program(13,d),inverse:this.program(11,d),data:d}))||0===c)h+=c;return h+'</td>\n<td class="visitor">'+g((b=e.invitations||a&&a.invitations,
|
||||
"function"===typeof b?b.call(a,{name:"invitations",hash:{},data:d}):b))+" / "+g((b=e.chats||a&&a.chats,"function"===typeof b?b.call(a,{name:"chats",hash:{},data:d}):b))+'</td>\n<td class="visitor">'+g((b=e.userAgent||a&&a.userAgent,"function"===typeof b?b.call(a,{name:"userAgent",hash:{},data:d}):b))+"</td>"},useData:!0});l.visitors_collection=k({compiler:[5,">= 2.0.0"],main:function(a,e,c,d){var b;c=e.helperMissing;var f=this.escapeExpression;return'<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+
|
||||
f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.name",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.actions",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.contactid",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.firsttimeonsite",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,
|
||||
"visitors.table.head.lasttimeonsite",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.invited.by",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.invitationtime",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.invitations",{name:"l10n",hash:{},data:d})))+"</th>\n <th>"+f((b=e.l10n||a&&a.l10n||c,b.call(a,"visitors.table.head.etc",
|
||||
{name:"l10n",hash:{},data:d})))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>'},useData:!0})})();
|
||||
|
Loading…
Reference in New Issue
Block a user