Use client-side templates names according to directory structure

This commit is contained in:
Dmitriy Simushev 2014-07-24 13:46:24 +00:00
parent 2ddae8e300
commit 48bcea8f65
62 changed files with 155 additions and 227 deletions

View File

@ -11,29 +11,6 @@
<!-- Compile Handlebars templates for dialogs styles -->
<target name="dialogs_handlebars" description="Compile Handlebars templates for dialogs styles">
<echo>Flatten templates directory structure</echo>
<!-- Use system 'mkdir' instead of ant 'mkdir' task because it do not
work with dirsets -->
<apply executable="mkdir" addsourcefile="false">
<targetfile />
<dirset dir=".">
<include name="${dialogs_styles_path}/*/templates_src/client_side" />
</dirset>
<mapper type="glob" from="*/templates_src/client_side" to="*/templates_compiled/client_side_tmp" />
</apply>
<!-- Flatten templates directory structure -->
<apply executable="tools/flat_cp" force="true">
<srcfile />
<targetfile />
<arg value="client_side" />
<fileset dir=".">
<include name="${dialogs_styles_path}/*/templates_src/client_side/**/*.handlebars" />
</fileset>
<mapper type="regexp" from="^(.*)/templates_src/client_side/(.*)$$" to="\1/templates_compiled/client_side_tmp" />
</apply>
<echo>Compile templates</echo>
<!-- Compile templates -->
@ -41,9 +18,9 @@
<arg value="-f"/>
<targetfile />
<dirset dir=".">
<include name="${dialogs_styles_path}/*/templates_compiled/client_side_tmp" />
<include name="${dialogs_styles_path}/*/templates_src/client_side" />
</dirset>
<mapper type="glob" from="*/client_side_tmp" to="*/client_side/templates_tmp.js" />
<mapper type="glob" from="*/templates_src/client_side" to="*/templates_compiled/client_side/templates_tmp.js" />
</apply>
<!-- Use closule compiler instead of handlebars minifyer (-m flag)
@ -78,18 +55,8 @@
</filterchain>
</move>
<!-- Remove all temporary files -->
<!-- Use system 'rm' instead of ant
'delete' task because it does not work with dirsets -->
<!-- Remove temporary files -->
<echo>Remove temporary files</echo>
<apply executable="rm">
<arg value="-r" />
<arg value="-f" />
<dirset dir=".">
<include name="${dialogs_styles_path}/*/templates_compiled/client_side_tmp" />
</dirset>
</apply>
<delete>
<fileset dir=".">
<include name="${dialogs_styles_path}/*/templates_compiled/client_side/templates_tmp.js" />

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,c){a.Layouts.Chat=c.Marionette.Layout.extend({template:Handlebars.templates.chat_layout,regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:a.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var b=a.Objects.Models;return{page:b.page.toJSON(),user:b.user.toJSON()}}})})(Mibew,Backbone);
(function(a,c){a.Layouts.Chat=c.Marionette.Layout.extend({template:Handlebars.templates["chat/layout"],regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:a.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var b=a.Objects.Models;return{page:b.page.toJSON(),user:b.user.toJSON()}}})})(Mibew,Backbone);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.Invitation=b.Marionette.Layout.extend({template:Handlebars.templates.invitation_layout,regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:a.Regions.Messages}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.Invitation=b.Marionette.Layout.extend({template:Handlebars.templates["invitation/layout"],regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:a.Regions.Messages}}})})(Mibew,Backbone);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.LeaveMessage=b.Marionette.Layout.extend({template:Handlebars.templates.leave_message_layout,regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.LeaveMessage=b.Marionette.Layout.extend({template:Handlebars.templates["leave_message/layout"],regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.Survey=b.Marionette.Layout.extend({template:Handlebars.templates.survey_layout,regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.Survey=b.Marionette.Layout.extend({template:Handlebars.templates["survey/layout"],regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.chat_avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates["chat/avatar"],className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates["chat/controls/close"],events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.chat_controls_history,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&amp;","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates["chat/controls/history"],events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&amp;","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);

View File

@ -5,5 +5,5 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,e,f){b.Views.RedirectControl=b.Views.Control.extend({template:e.templates.chat_controls_redirect,events:f.extend({},b.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){b.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},redirect:function(){var a=b.Objects.Models.user;if(a.get("isAgent")&&a.get("canPost")&&(a=this.model.get("link"))){var c=b.Objects.Models.page.get("style"),
(function(b,e,f){b.Views.RedirectControl=b.Views.Control.extend({template:e.templates["chat/controls/redirect"],events:f.extend({},b.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){b.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},redirect:function(){var a=b.Objects.Models.user;if(a.get("isAgent")&&a.get("canPost")&&(a=this.model.get("link"))){var c=b.Objects.Models.page.get("style"),
d="";c&&(d=(-1===a.indexOf("?")?"?":"&")+"style="+c);window.location.href=a.replace(/\&amp\;/g,"&")+d}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.chat_controls_refresh,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates["chat/controls/refresh"],events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.chat_controls_secure_mode,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates["chat/controls/secure_mode"],events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,f){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.chat_controls_send_mail,events:f.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),e="";c&&(e=(-1===a.indexOf("?")?"?":"&")+"style="+c);a=a.replace(/\&amp\;/g,"&")+e;a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);
(function(b,d,f){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates["chat/controls/send_mail"],events:f.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),e="";c&&(e=(-1===a.indexOf("?")?"?":"&")+"style="+c);a=a.replace(/\&amp\;/g,"&")+e;a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.chat_controls_sound,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})})(Mibew,Handlebars,_);
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates["chat/controls/sound"],events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})})(Mibew,Handlebars,_);

View File

@ -5,5 +5,5 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.chat_controls_user_name,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates["chat/controls/user_name"],events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;13!=a&&10!=a||this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.LeaveMessageDescription=b.Marionette.ItemView.extend({template:c.templates.leave_message_description,serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.LeaveMessageDescription=b.Marionette.ItemView.extend({template:c.templates["leave_message/description"],serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);

View File

@ -5,5 +5,5 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates["leave_message/form"],events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
a.name=this.ui.name.val()||"";a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.LeaveMessageSentDescription=b.Marionette.ItemView.extend({template:c.templates.leave_message_sent_description,serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.LeaveMessageSentDescription=b.Marionette.ItemView.extend({template:c.templates["leave_message/sent_description"],serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates.chat_message})})(Mibew,Handlebars);
(function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates["chat/message"]})})(Mibew,Handlebars);

View File

@ -5,7 +5,7 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.chat_message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates["chat/message_form"],events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
initialize:function(){b.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},
disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=
0)},checkUserTyping:function(){var a=b.Objects.Models.user,c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.chat_status_base,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates["chat/status/base"],className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.chat_status_message})})(Mibew,Handlebars);
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates["chat/status/message"]})})(Mibew,Handlebars);

View File

@ -5,4 +5,4 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.chat_status_typing})})(Mibew,Handlebars);
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates["chat/status/typing"]})})(Mibew,Handlebars);

View File

@ -5,5 +5,5 @@
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,
{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates["survey/form"],events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");
this.model.set(a,{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);

View File

@ -172,7 +172,7 @@ arguments:{"return":{messages:"messages",lastId:"lastId"},references:{},threadId
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates.chat_status_base,className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.Status=b.Marionette.ItemView.extend({template:c.templates["chat/status/base"],className:"status",modelEvents:{change:"render"},onBeforeRender:function(){this.model.get("visible")?this.$el.show():this.$el.hide()}})})(Mibew,Backbone,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
@ -187,28 +187,28 @@ changeGroupDescription:function(){var a=this.ui.groupSelect.prop("selectedIndex"
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates.chat_avatar,className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.Avatar=b.Marionette.ItemView.extend({template:c.templates["chat/avatar"],className:"avatar",modelEvents:{change:"render"}})})(Mibew,Backbone,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates.chat_controls_close,events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
(function(a,c,d){a.Views.CloseControl=a.Views.Control.extend({template:c.templates["chat/controls/close"],events:d.extend({},a.Views.Control.prototype.events,{click:"closeThread"}),closeThread:function(){var b=a.Localization.get("Are you sure want to leave chat?");(!1===b||confirm(b))&&this.model.closeThread()}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates.chat_controls_history,events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&amp;","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);
(function(b,d,e){b.Views.HistoryControl=b.Views.Control.extend({template:d.templates["chat/controls/history"],events:e.extend({},b.Views.Control.prototype.events,{click:"showHistory"}),showHistory:function(){var c=b.Objects.Models.user,a=this.model.get("link");c.get("isAgent")&&a&&(c=this.model.get("windowParams"),a=a.replace("&amp;","&","g"),a=window.open(a,"UserHistory",c),null!==a&&(a.focus(),a.opener=window))}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,e,f){b.Views.RedirectControl=b.Views.Control.extend({template:e.templates.chat_controls_redirect,events:f.extend({},b.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){b.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},redirect:function(){var a=b.Objects.Models.user;if(a.get("isAgent")&&a.get("canPost")&&(a=this.model.get("link"))){var c=b.Objects.Models.page.get("style"),
(function(b,e,f){b.Views.RedirectControl=b.Views.Control.extend({template:e.templates["chat/controls/redirect"],events:f.extend({},b.Views.Control.prototype.events,{click:"redirect"}),initialize:function(){b.Objects.Models.user.on("change",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},redirect:function(){var a=b.Objects.Models.user;if(a.get("isAgent")&&a.get("canPost")&&(a=this.model.get("link"))){var c=b.Objects.Models.page.get("style"),
d="";c&&(d=(-1===a.indexOf("?")?"?":"&")+"style="+c);window.location.href=a.replace(/\&amp\;/g,"&")+d}}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
@ -216,50 +216,50 @@ d="";c&&(d=(-1===a.indexOf("?")?"?":"&")+"style="+c);window.location.href=a.repl
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates.chat_controls_refresh,events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);
(function(a,b,c){a.Views.RefreshControl=a.Views.Control.extend({template:b.templates["chat/controls/refresh"],events:c.extend({},a.Views.Control.prototype.events,{click:"refresh"}),refresh:function(){this.model.refresh()}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates.chat_controls_secure_mode,events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);
(function(a,d,e){a.Views.SecureModeControl=a.Views.Control.extend({template:d.templates["chat/controls/secure_mode"],events:e.extend({},a.Views.Control.prototype.events,{click:"secure"}),secure:function(){var b=this.model.get("link");if(b){var c=a.Objects.Models.page.get("style");window.location.href=b.replace(/\&amp\;/g,"&")+(c?"&style="+c:"")}}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,f){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates.chat_controls_send_mail,events:f.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),e="";c&&(e=(-1===a.indexOf("?")?"?":"&")+"style="+c);a=a.replace(/\&amp\;/g,"&")+e;a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);
(function(b,d,f){b.Views.SendMailControl=b.Views.Control.extend({template:d.templates["chat/controls/send_mail"],events:f.extend({},b.Views.Control.prototype.events,{click:"sendMail"}),sendMail:function(){var a=this.model.get("link"),c=b.Objects.Models.page;if(a){var d=this.model.get("windowParams"),c=c.get("style"),e="";c&&(e=(-1===a.indexOf("?")?"?":"&")+"style="+c);a=a.replace(/\&amp\;/g,"&")+e;a=window.open(a,"ForwardMail",d);null!==a&&(a.focus(),a.opener=window)}}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates.chat_controls_sound,events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})})(Mibew,Handlebars,_);
(function(a,b,c){a.Views.SoundControl=a.Views.Control.extend({template:b.templates["chat/controls/sound"],events:c.extend({},a.Views.Control.prototype.events,{click:"toggle"}),toggle:function(){this.model.toggle()}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates.chat_controls_user_name,events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;(13==a||10==a)&&this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);
(function(b,c,d){b.Views.UserNameControl=b.Views.Control.extend({template:c.templates["chat/controls/user_name"],events:d.extend({},b.Views.Control.prototype.events,{"click .user-name-control-set":"changeName","click .user-name-control-change":"showNameInput","keydown #user-name-control-input":"inputKeyDown"}),ui:{nameInput:"#user-name-control-input"},initialize:function(){b.Objects.Models.user.on("change:name",this.hideNameInput,this);this.nameInput=b.Objects.Models.user.get("defaultName")},serializeData:function(){var a=
this.model.toJSON();a.user=b.Objects.Models.user.toJSON();a.nameInput=this.nameInput;return a},inputKeyDown:function(a){a=a.which;13!=a&&10!=a||this.changeName()},hideNameInput:function(){this.nameInput=!1;this.render()},showNameInput:function(){this.nameInput=!0;this.render()},changeName:function(){var a=this.ui.nameInput.val();this.model.changeName(a)}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.LeaveMessageDescription=b.Marionette.ItemView.extend({template:c.templates.leave_message_description,serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.LeaveMessageDescription=b.Marionette.ItemView.extend({template:c.templates["leave_message/description"],serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates.leave_message_form,events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
(function(d,e,b){var c=d.Views.BaseSurveyForm;d.Views.LeaveMessageForm=c.extend({template:e.templates["leave_message/form"],events:b.extend({},c.prototype.events,{"click #send-message":"submitForm"}),ui:b.extend({},c.prototype.ui,{captcha:'input[name="captcha"]',captchaImg:"#captcha-img"}),modelEvents:b.extend({},c.prototype.modelEvents,{"submit:error":"hideAjaxLoader showError submitError"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());
a.name=this.ui.name.val()||"";a.email=this.ui.email.val()||"";a.message=this.ui.message.val()||"";this.model.get("showCaptcha")&&(a.captcha=this.ui.captcha.val()||"");this.model.set(a,{validate:!0});this.model.submit()},submitError:function(a,c){if(c.code==a.ERROR_WRONG_CAPTCHA&&a.get("showCaptcha")){var b=this.ui.captchaImg.attr("src"),b=b.replace(/\?d\=[0-9]+/,"");this.ui.captchaImg.attr("src",b+"?d="+(new Date).getTime())}}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
@ -267,21 +267,21 @@ a.name=this.ui.name.val()||"";a.email=this.ui.email.val()||"";a.message=this.ui.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b,c){a.Views.LeaveMessageSentDescription=b.Marionette.ItemView.extend({template:c.templates.leave_message_sent_description,serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
(function(a,b,c){a.Views.LeaveMessageSentDescription=b.Marionette.ItemView.extend({template:c.templates["leave_message/sent_description"],serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates.chat_message})})(Mibew,Handlebars);
(function(a,b){a.Views.Message=a.Views.Message.extend({template:b.templates["chat/message"]})})(Mibew,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates.chat_message_form,events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
(function(b,d,e){b.Views.MessageForm=d.Marionette.ItemView.extend({template:e.templates["chat/message_form"],events:{"click #send-message":"postMessage","keydown #message-input":"messageKeyDown","keyup #message-input":"checkUserTyping","change #message-input":"checkUserTyping","change #predefined":"selectPredefinedAnswer","focus #message-input":"setFocus","blur #message-input":"dropFocus"},modelEvents:{change:"render"},ui:{message:"#message-input",send:"#send-message",predefinedAnswer:"#predefined"},
initialize:function(){b.Objects.Models.user.on("change:canPost",this.render,this)},serializeData:function(){var a=this.model.toJSON();a.user=b.Objects.Models.user.toJSON();return a},postMessage:function(){var a=this.ui.message.val();""!=a&&(this.disableInput(),this.model.postMessage(a));b.Objects.Collections.messages.on("multiple:add",this.postMessageComplete,this)},messageKeyDown:function(a){var c=a.which;a=a.ctrlKey;(13==c&&(a||this.model.get("ignoreCtrl"))||10==c)&&this.postMessage()},enableInput:function(){this.ui.message.removeAttr("disabled")},
disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:function(){this.ui.message.val("").change()},postMessageComplete:function(){this.clearInput();this.enableInput();this.focused&&this.ui.focus();b.Objects.Collections.messages.off("multiple:add",this.postMessageComplete,this)},selectPredefinedAnswer:function(){var a=this.ui.message,c=this.ui.predefinedAnswer,b=c.get(0).selectedIndex;b&&(a.val(this.model.get("predefinedAnswers")[b-1].full).change(),a.focus(),c.get(0).selectedIndex=
0)},checkUserTyping:function(){var a=b.Objects.Models.user,c=""!=this.ui.message.val();c!=a.get("typing")&&a.set({typing:c})},setFocus:function(){this.focused=!0},dropFocus:function(){this.focused=!1}})})(Mibew,Backbone,Handlebars);
@ -291,22 +291,22 @@ disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates.chat_status_message})})(Mibew,Handlebars);
(function(a,b){a.Views.StatusMessage=a.Views.Status.extend({template:b.templates["chat/status/message"]})})(Mibew,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates.chat_status_typing})})(Mibew,Handlebars);
(function(a,b){a.Views.StatusTyping=a.Views.Status.extend({template:b.templates["chat/status/typing"]})})(Mibew,Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates.survey_form,events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");this.model.set(a,
{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);
(function(b,d,e){var c=b.Views.BaseSurveyForm;b.Views.SurveyForm=c.extend({template:d.templates["survey/form"],events:e.extend({},c.prototype.events,{"click #submit-survey":"submitForm"}),submitForm:function(){this.showAjaxLoader();var a={};this.model.get("groups")&&(a.groupId=this.ui.groupSelect.val());this.model.get("canChangeName")&&(a.name=this.ui.name.val()||"");this.model.get("showEmail")&&(a.email=this.ui.email.val()||"");this.model.get("showMessage")&&(a.message=this.ui.message.val()||"");
this.model.set(a,{validate:!0});this.model.submit()}})})(Mibew,Handlebars,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
@ -334,28 +334,28 @@ disableInput:function(){this.ui.message.attr("disabled","disabled")},clearInput:
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,c){a.Layouts.Chat=c.Marionette.Layout.extend({template:Handlebars.templates.chat_layout,regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:a.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var b=a.Objects.Models;return{page:b.page.toJSON(),user:b.user.toJSON()}}})})(Mibew,Backbone);
(function(a,c){a.Layouts.Chat=c.Marionette.Layout.extend({template:Handlebars.templates["chat/layout"],regions:{controlsRegion:"#controls-region",avatarRegion:"#avatar-region",messagesRegion:{selector:"#messages-region",regionType:a.Regions.Messages},statusRegion:"#status-region",messageFormRegion:"#message-form-region"},serializeData:function(){var b=a.Objects.Models;return{page:b.page.toJSON(),user:b.user.toJSON()}}})})(Mibew,Backbone);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.Invitation=b.Marionette.Layout.extend({template:Handlebars.templates.invitation_layout,regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:a.Regions.Messages}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.Invitation=b.Marionette.Layout.extend({template:Handlebars.templates["invitation/layout"],regions:{messagesRegion:{selector:"#invitation-messages-region",regionType:a.Regions.Messages}}})})(Mibew,Backbone);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.LeaveMessage=b.Marionette.Layout.extend({template:Handlebars.templates.leave_message_layout,regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.LeaveMessage=b.Marionette.Layout.extend({template:Handlebars.templates["leave_message/layout"],regions:{leaveMessageFormRegion:"#content-wrapper",descriptionRegion:"#description-region"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(a,b){a.Layouts.Survey=b.Marionette.Layout.extend({template:Handlebars.templates.survey_layout,regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
(function(a,b){a.Layouts.Survey=b.Marionette.Layout.extend({template:Handlebars.templates["survey/layout"],regions:{surveyFormRegion:"#content-wrapper"},serializeData:function(){return{page:a.Objects.Models.page.toJSON()}}})})(Mibew,Backbone);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").

View File

@ -8,5 +8,5 @@
(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");if(d.Objects.Models.page.get("showPopup"))this.once("render",
function(){alert(d.Localization.get("A new visitor is waiting for an answer."))})},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,_);
function(){alert(d.Localization.get("A new visitor is waiting for an answer."))})},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,_);

View File

@ -6,7 +6,7 @@
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(d,e){d.Views.QueuedThread=d.Views.CompositeBase.extend({template:e.templates.queued_thread,itemView:d.Views.Control,itemViewContainer:".thread-controls",className:"thread",modelEvents:{change:"render"},events:{"click .open-dialog":"openDialog","click .view-control":"viewDialog","click .track-control":"showTrack","click .ban-control":"showBan","click .geo-link":"showGeoInfo","click .first-message a":"showFirstMessage"},initialize:function(){this.lastStyles=[]},serializeData:function(){var a=
this.model,b=d.Objects.Models.page,c=a.toJSON();c.stateDesc=this.stateToDesc(a.get("state"));c.chatting=a.get("state")==a.STATE_CHATTING;c.tracked=b.get("showVisitors");c.firstMessage&&(c.firstMessagePreview=30<c.firstMessage.length?c.firstMessage.substring(0,30)+"...":c.firstMessage);return c},stateToDesc:function(a){var b=d.Localization;return a==this.model.STATE_QUEUE?b.get("In queue"):a==this.model.STATE_WAITING?b.get("Waiting for operator"):a==this.model.STATE_CHATTING?
b.get("In chat"):a==this.model.STATE_CLOSED?b.get("Closed"):a==this.model.STATE_LOADING?b.get("Loading"):""},showGeoInfo:function(){var a=this.model.get("userIp");if(a){var b=d.Objects.Models.page,c=b.get("geoLink").replace("{ip}",a);d.Popup.open(c,"ip"+a,b.get("geoWindowParams"))}},openDialog:function(){var a=this.model;if(a.get("canOpen")||a.get("canView"))a=!a.get("canOpen"),this.showDialogWindow(a)},viewDialog:function(){this.showDialogWindow(!0)},
showDialogWindow:function(a){var b=this.model.id,c=d.Objects.Models.page;d.Popup.open(c.get("agentLink")+"/"+b+(a?"?viewonly=true":""),"ImCenter"+b,c.get("chatWindowParams"))},showTrack:function(){var a=this.model.id,b=d.Objects.Models.page;d.Popup.open(b.get("trackedLink")+"?thread="+a,"ImTracked"+a,b.get("trackedUserWindowParams"))},showBan:function(){var a=this.model,b=a.get("ban"),c=d.Objects.Models.page;d.Popup.open(c.get("banLink")+"/"+(!1!==b?b.id+"/edit":"add?thread="+a.id),"ImBan"+b.id,c.get("banWindowParams"))},
showFirstMessage:function(){var a=this.model.get("firstMessage");a&&alert(a)}})})(Mibew,Handlebars);
this.model,b=d.Objects.Models.page,c=a.toJSON();c.stateDesc=this.stateToDesc(a.get("state"));c.chatting=a.get("state")==a.STATE_CHATTING;c.tracked=b.get("showVisitors");c.firstMessage&&(c.firstMessagePreview=30<c.firstMessage.length?c.firstMessage.substring(0,30)+"...":c.firstMessage);return c},stateToDesc:function(a){var b=d.Localization;return a==this.model.STATE_QUEUE?b.get("In queue"):a==this.model.STATE_WAITING?b.get("Waiting for operator"):a==this.model.STATE_CHATTING?b.get("In chat"):a==this.model.STATE_CLOSED?
b.get("Closed"):a==this.model.STATE_LOADING?b.get("Loading"):""},showGeoInfo:function(){var a=this.model.get("userIp");if(a){var b=d.Objects.Models.page,c=b.get("geoLink").replace("{ip}",a);d.Popup.open(c,"ip"+a,b.get("geoWindowParams"))}},openDialog:function(){var a=this.model;if(a.get("canOpen")||a.get("canView"))a=!a.get("canOpen"),this.showDialogWindow(a)},viewDialog:function(){this.showDialogWindow(!0)},showDialogWindow:function(a){var b=this.model.id,c=d.Objects.Models.page;d.Popup.open(c.get("agentLink")+
"/"+b+(a?"?viewonly=true":""),"ImCenter"+b,c.get("chatWindowParams"))},showTrack:function(){var a=this.model.id,b=d.Objects.Models.page;d.Popup.open(b.get("trackedLink")+"?thread="+a,"ImTracked"+a,b.get("trackedUserWindowParams"))},showBan:function(){var a=this.model,b=a.get("ban"),c=d.Objects.Models.page;d.Popup.open(c.get("banLink")+"/"+(!1!==b?b.id+"/edit":"add?thread="+a.id),"ImBan"+b.id,c.get("banWindowParams"))},showFirstMessage:function(){var a=this.model.get("firstMessage");a&&alert(a)}})})(Mibew,
Handlebars);

View File

@ -93,10 +93,10 @@ a,c);return c.field},updateVisitors:function(a){if(0==a.errorCode){var c;c=a.cur
http://www.apache.org/licenses/LICENSE-2.0
*/
(function(d,e){d.Views.QueuedThread=d.Views.CompositeBase.extend({template:e.templates.queued_thread,itemView:d.Views.Control,itemViewContainer:".thread-controls",className:"thread",modelEvents:{change:"render"},events:{"click .open-dialog":"openDialog","click .view-control":"viewDialog","click .track-control":"showTrack","click .ban-control":"showBan","click .geo-link":"showGeoInfo","click .first-message a":"showFirstMessage"},initialize:function(){this.lastStyles=[]},serializeData:function(){var a=
this.model,b=d.Objects.Models.page,c=a.toJSON();c.stateDesc=this.stateToDesc(a.get("state"));c.chatting=a.get("state")==a.STATE_CHATTING;c.tracked=b.get("showVisitors");c.firstMessage&&(c.firstMessagePreview=30<c.firstMessage.length?c.firstMessage.substring(0,30)+"...":c.firstMessage);return c},stateToDesc:function(a){var b=d.Localization;return a==this.model.STATE_QUEUE?b.get("In queue"):a==this.model.STATE_WAITING?b.get("Waiting for operator"):a==this.model.STATE_CHATTING?
b.get("In chat"):a==this.model.STATE_CLOSED?b.get("Closed"):a==this.model.STATE_LOADING?b.get("Loading"):""},showGeoInfo:function(){var a=this.model.get("userIp");if(a){var b=d.Objects.Models.page,c=b.get("geoLink").replace("{ip}",a);d.Popup.open(c,"ip"+a,b.get("geoWindowParams"))}},openDialog:function(){var a=this.model;if(a.get("canOpen")||a.get("canView"))a=!a.get("canOpen"),this.showDialogWindow(a)},viewDialog:function(){this.showDialogWindow(!0)},
showDialogWindow:function(a){var b=this.model.id,c=d.Objects.Models.page;d.Popup.open(c.get("agentLink")+"/"+b+(a?"?viewonly=true":""),"ImCenter"+b,c.get("chatWindowParams"))},showTrack:function(){var a=this.model.id,b=d.Objects.Models.page;d.Popup.open(b.get("trackedLink")+"?thread="+a,"ImTracked"+a,b.get("trackedUserWindowParams"))},showBan:function(){var a=this.model,b=a.get("ban"),c=d.Objects.Models.page;d.Popup.open(c.get("banLink")+"/"+(!1!==b?b.id+"/edit":"add?thread="+a.id),"ImBan"+b.id,c.get("banWindowParams"))},
showFirstMessage:function(){var a=this.model.get("firstMessage");a&&alert(a)}})})(Mibew,Handlebars);
this.model,b=d.Objects.Models.page,c=a.toJSON();c.stateDesc=this.stateToDesc(a.get("state"));c.chatting=a.get("state")==a.STATE_CHATTING;c.tracked=b.get("showVisitors");c.firstMessage&&(c.firstMessagePreview=30<c.firstMessage.length?c.firstMessage.substring(0,30)+"...":c.firstMessage);return c},stateToDesc:function(a){var b=d.Localization;return a==this.model.STATE_QUEUE?b.get("In queue"):a==this.model.STATE_WAITING?b.get("Waiting for operator"):a==this.model.STATE_CHATTING?b.get("In chat"):a==this.model.STATE_CLOSED?
b.get("Closed"):a==this.model.STATE_LOADING?b.get("Loading"):""},showGeoInfo:function(){var a=this.model.get("userIp");if(a){var b=d.Objects.Models.page,c=b.get("geoLink").replace("{ip}",a);d.Popup.open(c,"ip"+a,b.get("geoWindowParams"))}},openDialog:function(){var a=this.model;if(a.get("canOpen")||a.get("canView"))a=!a.get("canOpen"),this.showDialogWindow(a)},viewDialog:function(){this.showDialogWindow(!0)},showDialogWindow:function(a){var b=this.model.id,c=d.Objects.Models.page;d.Popup.open(c.get("agentLink")+
"/"+b+(a?"?viewonly=true":""),"ImCenter"+b,c.get("chatWindowParams"))},showTrack:function(){var a=this.model.id,b=d.Objects.Models.page;d.Popup.open(b.get("trackedLink")+"?thread="+a,"ImTracked"+a,b.get("trackedUserWindowParams"))},showBan:function(){var a=this.model,b=a.get("ban"),c=d.Objects.Models.page;d.Popup.open(c.get("banLink")+"/"+(!1!==b?b.id+"/edit":"add?thread="+a.id),"ImBan"+b.id,c.get("banWindowParams"))},showFirstMessage:function(){var a=this.model.get("firstMessage");a&&alert(a)}})})(Mibew,
Handlebars);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").
@ -128,8 +128,8 @@ showTrack:function(){var b=this.model.id,c=a.Objects.Models.page;a.Popup.open(c.
(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");if(d.Objects.Models.page.get("showPopup"))this.once("render",
function(){alert(d.Localization.get("A new visitor is waiting for an answer."))})},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,_);
function(){alert(d.Localization.get("A new visitor is waiting for an answer."))})},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,_);
/*
Copyright 2005-2014 the original author or authors.
Licensed under the Apache License, Version 2.0 (the "License").

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_layout,
template: Handlebars.templates['chat/layout'],
/**
* Regions list

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.invitation_layout,
template: Handlebars.templates['invitation/layout'],
/**
* Regions list

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.leave_message_layout,
template: Handlebars.templates['leave_message/layout'],
/**
* Regions list

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.survey_layout,
template: Handlebars.templates['survey/layout'],
/**
* Regions list

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_avatar,
template: Handlebars.templates['chat/avatar'],
/**
* Class name for view's DOM element

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_close,
template: Handlebars.templates['chat/controls/close'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_history,
template: Handlebars.templates['chat/controls/history'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_redirect,
template: Handlebars.templates['chat/controls/redirect'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_refresh,
template: Handlebars.templates['chat/controls/refresh'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_secure_mode,
template: Handlebars.templates['chat/controls/secure_mode'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_send_mail,
template: Handlebars.templates['chat/controls/send_mail'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_sound,
template: Handlebars.templates['chat/controls/sound'],
/**
* Map ui events to view methods

View File

@ -15,7 +15,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_controls_user_name,
template: Handlebars.templates['chat/controls/user_name'],
/**
* Map ui events to view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.leave_message_description,
template: Handlebars.templates['leave_message/description'],
/**
* Override Backbone.Marionette.ItemView.serializeData to pass some

View File

@ -21,7 +21,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.leave_message_form,
template: Handlebars.templates['leave_message/form'],
/**
* Map ui events to view methods.

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.leave_message_sent_description,
template: Handlebars.templates['leave_message/sent_description'],
/**
* Override Backbone.Marionette.ItemView.serializeData to pass some

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_message
template: Handlebars.templates['chat/message']
}
);

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_message_form,
template: Handlebars.templates['chat/message_form'],
/**
* UI events hash.

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_status_base,
template: Handlebars.templates['chat/status/base'],
/**
* Class name for view's DOM element

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_status_message
template: Handlebars.templates['chat/status/message']
}
);

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.chat_status_typing
template: Handlebars.templates['chat/status/typing']
}
);

View File

@ -21,7 +21,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.survey_form,
template: Handlebars.templates['survey/form'],
/**
* Map ui events to view methods.

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.default_control,
template: Handlebars.templates['default_control'],
/**
* Map model events to the view methods

View File

@ -39,7 +39,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.message,
template: Handlebars.templates['message'],
/**
* Class name for view's DOM element

View File

@ -14,7 +14,7 @@
Mibew.Views.ThreadsCollection = Mibew.Views.CompositeBase.extend(
/** @lends Mibew.Views.ThreadsCollection.prototype */
{
template: Handlebars.templates.threads_collection,
template: Handlebars.templates['threads_collection'],
/**
* Default item view constructor.

View File

@ -14,7 +14,7 @@
Mibew.Views.VisitorsCollection = Mibew.Views.CompositeBase.extend(
/** @lends Mibew.Views.VisitorsCollection.prototype */
{
template: Handlebars.templates.visitors_collection,
template: Handlebars.templates['visitors_collection'],
/**
* Default item view constructor.

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.agent,
template: Handlebars.templates['agent'],
/**
* Name of wrapper tag for an agent view

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.no_threads,
template: Handlebars.templates['no_threads'],
/**
* View initializer

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.no_visitors,
template: Handlebars.templates['no_visitors'],
/**
* View initializer

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.queued_thread,
template: Handlebars.templates['queued_thread'],
/**
* Default item view constructor.

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.status_panel,
template: Handlebars.templates['status_panel'],
/**
* Map model events to the view methods

View File

@ -18,7 +18,7 @@
* Template function
* @type Function
*/
template: Handlebars.templates.visitor,
template: Handlebars.templates['visitor'],
/**
* Default item view constructor.

View File

@ -8,30 +8,30 @@
typeof f===m?f.apply(a):f))+'" alt=""/>\n </a>\n ')}function k(a,e){var c,f;return c=""+('\n <img src="'+h((f=(f=(f=a&&a.page,null==f||!1===f?f:f.company),null==f||!1===f?f:f.chatLogoURL),typeof f===m?f.apply(a):f))+'" alt=""/>\n ')}function l(a,e){var c,f;return c=""+("\n <a onclick=\"window.open('"+h((f=(f=a&&a.page,null==f||!1===f?f:f.mibewHost),typeof f===m?f.apply(a):f))+'\');return false;" href="'+h((f=(f=a&&a.page,null==f||
!1===f?f:f.mibewHost),typeof f===m?f.apply(a):f))+'">\n <img src="'+h((f=(f=a&&a.page,null==f||!1===f?f:f.tplRoot),typeof f===m?f.apply(a):f))+'/images/default-logo.png" alt=""/>\n </a>\n ')}function t(a,e){var c,f;return c=""+('\n <img src="'+h((f=(f=a&&a.page,null==f||!1===f?f:f.tplRoot),typeof f===m?f.apply(a):f))+'/images/default-logo.png" alt=""/>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var n,
m="function",h=this.escapeExpression,s=this;c='\n<div id="top2">\n <div id="logo">\n ';if((n=e["if"].call(a,(n=(n=a&&a.page,null==n||!1===n?n:n.company),null==n||!1===n?n:n.chatLogoURL),{hash:{},inverse:s.program(6,function(a,c){var b,f;b="\n ";if((f=e["if"].call(a,(f=a&&a.page,null==f||!1===f?f:f.mibewHost),{hash:{},inverse:s.program(9,t,c),fn:s.program(7,l,c),data:c}))||0===f)b+=f;return b+"\n "},b),fn:s.program(1,function(a,c){var b,f;b="\n ";if((f=e["if"].call(a,
(f=a&&a.page,null==f||!1===f?f:f.mibewHost),{hash:{},inverse:s.program(4,k,c),fn:s.program(2,g,c),data:c}))||0===f)b+=f;return b+"\n "},b),data:b}))||0===n)c+=n;return c+='\n &nbsp;\n <div id="page-title">'+h((n=(n=a&&a.page,null==n||!1===n?n:n.title),typeof n===m?n.apply(a):n))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>'});v.chat_avatar=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=this.escapeExpression;
return(c=e["if"].call(a,a&&a.imageLink,{hash:{},inverse:this.program(3,function(a,e){return'<div class="default-avatar"></div>'},b),fn:this.program(1,function(a,c){var b,d;b='<img src="';(d=e.imageLink)?d=d.call(a,{hash:{},data:c}):(d=a&&a.imageLink,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=g(d)+'" border="0" alt="" />'},b),data:b}))||0===c?c:""});v.chat_controls_close=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;
d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Close chat",k):c.call(a,"l10n","Close chat",k)))+'"></div>')});v.chat_controls_history=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Visit history",k):c.call(a,"l10n","Visit history",k)))+
'"></div>')});v.chat_controls_redirect=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k=e.helperMissing,l=this.escapeExpression;return(g=e["if"].call(a,(g=a&&a.user,null==g||!1===g?g:g.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d,s;return b=""+('\n<div class="tpl-image" title="'+l((d=e.l10n||a&&a.l10n,s={hash:{},data:c},d?d.call(a,"Redirect visitor to another operator",s):k.call(a,"l10n","Redirect visitor to another operator",
s)))+'"></div>\n')},b),data:b}))||0===g?g:""});v.chat_controls_refresh=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Refresh",k):c.call(a,"l10n","Refresh",k)))+'"></div>')});v.chat_controls_secure_mode=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'<div class="tpl-image" title="SSL"></div>'});
v.chat_controls_send_mail=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Send chat history by e-mail",k):c.call(a,"l10n","Send chat history by e-mail",k)))+'"></div>')});v.chat_controls_sound=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=e.helperMissing,k=this.escapeExpression;
return(c=e["if"].call(a,a&&a.enabled,{hash:{},inverse:this.program(3,function(a,c){var b,d,h;return b=""+('\n <div class="tpl-image sound-control-off" title="'+k((d=e.l10n||a&&a.l10n,h={hash:{},data:c},d?d.call(a,"Turn on sound",h):g.call(a,"l10n","Turn on sound",h)))+'"></div>\n')},b),fn:this.program(1,function(a,c){var b,d,h;return b=""+('\n <div class="tpl-image sound-control-on" title="'+k((d=e.l10n||a&&a.l10n,h={hash:{},data:c},d?d.call(a,"Turn off sound",h):g.call(a,"l10n","Turn off sound",
h)))+'"></div>\n')},b),data:b}))||0===c?c:""});v.chat_controls_user_name=u(function(c,a,e,d,b){function g(a,c){var b,d,f,h;return b=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"Change name",
h):m.call(a,"l10n","Change name",h)))+'"></a>\n ')}function k(a,c){var b,d,f,h;return b=""+('\n <a href="javascript:void(0)" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"Change name",h):m.call(a,"l10n","Change name",h)))+'">'+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'</a>\n <a class="user-name-control-change tpl-image" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"Change name",h):m.call(a,"l10n","Change name",h)))+
'"></a>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;return(l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canChangeName),{hash:{},inverse:h.program(6,function(a,c){var b,d,f,h;return b=""+("\n"+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"You are",h):m.call(a,"l10n","You are",h)))+"&nbsp;"+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+"\n")},b),fn:h.program(1,function(a,
c){var d,b,f;d=""+('\n <span class="user-name-control-prefix">'+n((b=e.l10n||a&&a.l10n,f={hash:{},data:c},b?b.call(a,"You are",f):m.call(a,"l10n","You are",f)))+"</span>\n ");if((b=e["if"].call(a,a&&a.nameInput,{hash:{},inverse:h.program(4,k,c),fn:h.program(2,g,c),data:c}))||0===b)d+=b;return d+"\n"},b),data:b}))||0===l?l:""});v.chat_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;
c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;c+='\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((d=e.unless.call(a,(d=a&&a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){return'\n <div id="avatar-region"></div>\n '},
b),data:b}))||0===d)c+=d;return c+='\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">'+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Powered by:",k):l.call(a,"l10n","Powered by:",k)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>'});v.chat_message=u(function(c,a,e,d,b){this.compilerInfo=
[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,t=e.helperMissing;c=""+("<span>"+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+"</span> \n");if((g=e["if"].call(a,a&&a.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&&a.kindName,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);b+=l(d)+"'>";(d=e.name)?
d=d.call(a,{hash:{},data:c}):(d=a&&a.name,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=l(d)+"</span>: "},b),data:b}))||0===g)c+=g;c+="\n<span class='m";(g=e.kindName)?g=g.call(a,{hash:{},data:b}):(g=a&&a.kindName,g="function"===typeof g?g.call(a,{hash:{},data:b}):g);c+=l(g)+"'>";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a,
"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br, allowTags",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",b)))},b),data:b}))||0===g)c+=g;return c+"</span><br/>"});v.chat_message_form=u(function(c,a,e,d,b){function g(a,c){var d,b,f;d=""+('\n <select id="predefined" size="1" class="answer">\n <option>'+n((b=e.l10n||
a&&a.l10n,f={hash:{},data:c},b?b.call(a,"Select answer...",f):m.call(a,"l10n","Select answer...",f)))+"</option>\n ");if((b=e.each.call(a,a&&a.predefinedAnswers,{hash:{},inverse:h.noop,fn:h.program(5,k,c),data:c}))||0===b)d+=b;return d+"\n </select>\n "}function k(a,c){var d,b;return d=""+("\n <option>"+n((b=a&&a["short"],typeof b===t?b.apply(a):b))+"</option>\n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);
b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;c='<div id="message">\n';if((l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){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'},b),data:b}))||0===l)c+=l;c+='\n</div>\n\n<div id="send">\n';if((l=e["if"].call(a,(l=a&&a.user,
null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(3,function(a,c){var d,b,f,w;d='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((b=e["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.isAgent),{hash:{},inverse:h.noop,fn:h.program(4,g,c),data:c}))||0===b)d+=b;return d+='\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"Send message",w):m.call(a,"l10n","Send message",
w)))+'">'+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"chat.window.send_message_short_and_shortcut",w):m.call(a,"l10n","chat.window.send_message_short_and_shortcut",w)))+"</a>\n </div>\n"},b),data:b}))||0===l)c+=l;return c+'\n</div>\n<div class="clear"></div>'});v.chat_status_base=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},
data:b}):e);return c(a)});v.chat_status_message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.message)?a=e.call(a,{hash:{},data:b}):(e=a&&a.message,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c(a)});v.chat_status_typing=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,
"Remote user is typing...",k):c.call(a,"l10n","Remote user is typing...",k)))});v.default_control=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};d=this.escapeExpression;c="<strong>";(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=d(a)+"</strong>"});v.invitation_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'<div id="invitation-messages-region"></div>'});
v.leave_message_description=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="buttons">\n <a href="javascript:window.close();" title="'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close",l):c.call(a,"l10n","Close",l)))+'">\n <img class="tpl-image iclosewin" src="'+d((g=(g=a&&a.page,null==g||!1===g?g:g.tplRoot),"function"===typeof g?g.apply(a):g))+'/images/free.gif" alt="'+
d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close",l):c.call(a,"l10n","Close",l)))+'" />\n </a>\n</div>\n<div class="messagetxt">'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Sorry. None of the support team is available at the moment. <br/>Please leave a message and someone will get back to you shortly.",l):c.call(a,"l10n","Sorry. None of the support team is available at the moment. <br/>Please leave a message and someone will get back to you shortly.",l)))+"</div>")});v.leave_message_form=
(f=a&&a.page,null==f||!1===f?f:f.mibewHost),{hash:{},inverse:s.program(4,k,c),fn:s.program(2,g,c),data:c}))||0===f)b+=f;return b+"\n "},b),data:b}))||0===n)c+=n;return c+='\n &nbsp;\n <div id="page-title">'+h((n=(n=a&&a.page,null==n||!1===n?n:n.title),typeof n===m?n.apply(a):n))+'</div>\n <div class="clear">&nbsp;</div>\n </div>\n</div>'});v["chat/avatar"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=this.escapeExpression;
return(c=e["if"].call(a,a&&a.imageLink,{hash:{},inverse:this.program(3,function(a,e){return'<div class="default-avatar"></div>'},b),fn:this.program(1,function(a,c){var b,d;b='<img src="';(d=e.imageLink)?d=d.call(a,{hash:{},data:c}):(d=a&&a.imageLink,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=g(d)+'" border="0" alt="" />'},b),data:b}))||0===c?c:""});v["chat/controls/close"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;
d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Close chat",k):c.call(a,"l10n","Close chat",k)))+'"></div>')});v["chat/controls/history"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Visit history",k):c.call(a,"l10n","Visit history",
k)))+'"></div>')});v["chat/controls/redirect"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k=e.helperMissing,l=this.escapeExpression;return(g=e["if"].call(a,(g=a&&a.user,null==g||!1===g?g:g.canPost),{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var b,d,s;return b=""+('\n<div class="tpl-image" title="'+l((d=e.l10n||a&&a.l10n,s={hash:{},data:c},d?d.call(a,"Redirect visitor to another operator",s):k.call(a,"l10n","Redirect visitor to another operator",
s)))+'"></div>\n')},b),data:b}))||0===g?g:""});v["chat/controls/refresh"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Refresh",k):c.call(a,"l10n","Refresh",k)))+'"></div>')});v["chat/controls/secure_mode"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'<div class="tpl-image" title="SSL"></div>'});
v["chat/controls/send_mail"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="tpl-image" title="'+d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Send chat history by e-mail",k):c.call(a,"l10n","Send chat history by e-mail",k)))+'"></div>')});v["chat/controls/sound"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g=e.helperMissing,
k=this.escapeExpression;return(c=e["if"].call(a,a&&a.enabled,{hash:{},inverse:this.program(3,function(a,c){var b,d,h;return b=""+('\n <div class="tpl-image sound-control-off" title="'+k((d=e.l10n||a&&a.l10n,h={hash:{},data:c},d?d.call(a,"Turn on sound",h):g.call(a,"l10n","Turn on sound",h)))+'"></div>\n')},b),fn:this.program(1,function(a,c){var b,d,h;return b=""+('\n <div class="tpl-image sound-control-on" title="'+k((d=e.l10n||a&&a.l10n,h={hash:{},data:c},d?d.call(a,"Turn off sound",h):g.call(a,
"l10n","Turn off sound",h)))+'"></div>\n')},b),data:b}))||0===c?c:""});v["chat/controls/user_name"]=u(function(c,a,e,d,b){function g(a,c){var b,d,f,h;return b=""+('\n <div class="user-name-control-input-bg"><input id="user-name-control-input" type="text" size="12" value="'+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'" class="username" /></div>\n <a href="javascript:void(0)" class="user-name-control-set tpl-image" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},
data:c},f?f.call(a,"Change name",h):m.call(a,"l10n","Change name",h)))+'"></a>\n ')}function k(a,c){var b,d,f,h;return b=""+('\n <a href="javascript:void(0)" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"Change name",h):m.call(a,"l10n","Change name",h)))+'">'+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+'</a>\n <a class="user-name-control-change tpl-image" title="'+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"Change name",h):m.call(a,
"l10n","Change name",h)))+'"></a>\n ')}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;return(l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canChangeName),{hash:{},inverse:h.program(6,function(a,c){var b,d,f,h;return b=""+("\n"+n((f=e.l10n||a&&a.l10n,h={hash:{},data:c},f?f.call(a,"You are",h):m.call(a,"l10n","You are",h)))+"&nbsp;"+n((d=(d=a&&a.user,null==d||!1===d?d:d.name),typeof d===t?d.apply(a):d))+"\n")},
b),fn:h.program(1,function(a,c){var d,b,f;d=""+('\n <span class="user-name-control-prefix">'+n((b=e.l10n||a&&a.l10n,f={hash:{},data:c},b?b.call(a,"You are",f):m.call(a,"l10n","You are",f)))+"</span>\n ");if((b=e["if"].call(a,a&&a.nameInput,{hash:{},inverse:h.program(4,k,c),fn:h.program(2,g,c),data:c}))||0===b)d+=b;return d+"\n"},b),data:b}))||0===l?l:""});v["chat/layout"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,
k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;c+='\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((d=e.unless.call(a,(d=a&&a.user,null==d||!1===d?d:d.isAgent),{hash:{},inverse:this.noop,
fn:this.program(1,function(a,c){return'\n <div id="avatar-region"></div>\n '},b),data:b}))||0===d)c+=d;return c+='\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">'+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Powered by:",k):l.call(a,"l10n","Powered by:",k)))+' <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></div>'});
v["chat/message"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,t=e.helperMissing;c=""+("<span>"+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+"</span> \n");if((g=e["if"].call(a,a&&a.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&&a.kindName,d="function"===typeof d?
d.call(a,{hash:{},data:c}):d);b+=l(d)+"'>";(d=e.name)?d=d.call(a,{hash:{},data:c}):(d=a&&a.name,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=l(d)+"</span>: "},b),data:b}))||0===g)c+=g;c+="\n<span class='m";(g=e.kindName)?g=g.call(a,{hash:{},data:b}):(g=a&&a.kindName,g="function"===typeof g?g.call(a,{hash:{},data:b}):g);c+=l(g)+"'>";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?
d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br, allowTags",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",b)))},b),data:b}))||0===g)c+=g;return c+"</span><br/>"});v["chat/message_form"]=u(function(c,a,e,d,b){function g(a,c){var d,b,f;d=""+('\n <select id="predefined" size="1" class="answer">\n <option>'+
n((b=e.l10n||a&&a.l10n,f={hash:{},data:c},b?b.call(a,"Select answer...",f):m.call(a,"l10n","Select answer...",f)))+"</option>\n ");if((b=e.each.call(a,a&&a.predefinedAnswers,{hash:{},inverse:h.noop,fn:h.program(5,k,c),data:c}))||0===b)d+=b;return d+"\n </select>\n "}function k(a,c){var d,b;return d=""+("\n <option>"+n((b=a&&a["short"],typeof b===t?b.apply(a):b))+"</option>\n ")}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,
c.helpers);b=b||{};var l,t="function",n=this.escapeExpression,m=e.helperMissing,h=this;c='<div id="message">\n';if((l=e["if"].call(a,(l=a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(1,function(a,c){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'},b),data:b}))||0===l)c+=l;c+='\n</div>\n\n<div id="send">\n';if((l=e["if"].call(a,(l=
a&&a.user,null==l||!1===l?l:l.canPost),{hash:{},inverse:h.noop,fn:h.program(3,function(a,c){var d,b,f,w;d='\n <div id="postmessage">\n <div id="predefined-wrapper">\n ';if((b=e["if"].call(a,(b=a&&a.user,null==b||!1===b?b:b.isAgent),{hash:{},inverse:h.noop,fn:h.program(4,g,c),data:c}))||0===b)d+=b;return d+='\n </div>\n <a href="javascript:void(0)" id="send-message" title="'+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"Send message",w):m.call(a,"l10n","Send message",
w)))+'">'+n((f=e.l10n||a&&a.l10n,w={hash:{},data:c},f?f.call(a,"chat.window.send_message_short_and_shortcut",w):m.call(a,"l10n","chat.window.send_message_short_and_shortcut",w)))+"</a>\n </div>\n"},b),data:b}))||0===l)c+=l;return c+'\n</div>\n<div class="clear"></div>'});v["chat/status/base"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},
data:b}):e);return c(a)});v["chat/status/message"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};c=this.escapeExpression;(e=e.message)?a=e.call(a,{hash:{},data:b}):(e=a&&a.message,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c(a)});v["chat/status/typing"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k;c=e.helperMissing;d=this.escapeExpression;return d((g=e.l10n||a&&a.l10n,k={hash:{},data:b},
g?g.call(a,"Remote user is typing...",k):c.call(a,"l10n","Remote user is typing...",k)))});v.default_control=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};d=this.escapeExpression;c="<strong>";(e=e.title)?a=e.call(a,{hash:{},data:b}):(e=a&&a.title,a="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=d(a)+"</strong>"});v["invitation/layout"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];this.merge(e,c.helpers);return'<div id="invitation-messages-region"></div>'});
v["leave_message/description"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="buttons">\n <a href="javascript:window.close();" title="'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close",l):c.call(a,"l10n","Close",l)))+'">\n <img class="tpl-image iclosewin" src="'+d((g=(g=a&&a.page,null==g||!1===g?g:g.tplRoot),"function"===typeof g?g.apply(a):g))+'/images/free.gif" alt="'+
d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close",l):c.call(a,"l10n","Close",l)))+'" />\n </a>\n</div>\n<div class="messagetxt">'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Sorry. None of the support team is available at the moment. <br/>Please leave a message and someone will get back to you shortly.",l):c.call(a,"l10n","Sorry. None of the support team is available at the moment. <br/>Please leave a message and someone will get back to you shortly.",l)))+"</div>")});v["leave_message/form"]=
u(function(c,a,e,d,b){function g(a,c){var d,b;d='<input type="hidden" name="group" value="';(b=e.groupId)?b=b.call(a,{hash:{},data:c}):(b=a&&a.groupId,b=typeof b===s?b.call(a,{hash:{},data:c}):b);return d+=r(b)+'"/>'}function k(a,c){var b,d;b=""+('\n <option value="'+r((d=a&&a.id,typeof d===s?d.apply(a):d))+'" ');if((d=e["if"].call(a,a&&a.selected,{hash:{},inverse:p.noop,fn:p.program(6,l,c),data:c}))||0===d)b+=d;return b+=">"+r((d=a&&a.name,typeof d===s?d.apply(a):d))+"</option>\n "}
function l(a,d){return'selected="selected"'}function t(a,d){var c;return(c=e["if"].call(a,a&&a.selected,{hash:{},inverse:p.noop,fn:p.program(9,n,d),data:d}))||0===c?c:""}function n(a,d){var c;return r((c=a&&a.description,typeof c===s?c.apply(a):c))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var m,h,s="function",r=this.escapeExpression,p=this,q=e.helperMissing;c=""+('<form name="leaveMessageForm" method="post" action="">\n <input type="hidden" name="style" value="'+r((m=
(m=a&&a.page,null==m||!1===m?m:m.style),typeof m===s?m.apply(a):m))+'"/>\n <input type="hidden" name="info" value="');(d=e.info)?m=d.call(a,{hash:{},data:b}):(d=a&&a.info,m=typeof d===s?d.call(a,{hash:{},data:b}):d);c+=r(m)+'"/>\n <input type="hidden" name="referrer" value="';(d=e.referrer)?m=d.call(a,{hash:{},data:b}):(d=a&&a.referrer,m=typeof d===s?d.call(a,{hash:{},data:b}):d);c+=r(m)+'"/>\n ';if((m=e.unless.call(a,a&&a.groups,{hash:{},inverse:p.noop,fn:p.program(1,function(a,c){var d;
@ -40,13 +40,13 @@ return(d=e["if"].call(a,a&&a.groupId,{hash:{},inverse:p.noop,fn:p.program(2,g,c)
a&&a.groups,{hash:{},inverse:p.noop,fn:p.program(4,function(a,d){var c,b,h,g;c=""+('\n <tr>\n <td class="text"><strong>'+r((h=e.l10n||a&&a.l10n,g={hash:{},data:d},h?h.call(a,"Choose Department:",g):q.call(a,"l10n","Choose Department:",g)))+'</strong></td>\n <td>\n <select name="group" style="min-width:200px;">\n ');if((b=e.each.call(a,a&&a.groups,{hash:{},inverse:p.noop,fn:p.program(5,k,d),data:d}))||0===b)c+=b;c+='\n </select>\n </td>\n </tr>\n <tr>\n <td class="text"><strong>'+
r((h=e.l10n||a&&a.l10n,g={hash:{},data:d},h?h.call(a,"Department description:",g):q.call(a,"l10n","Department description:",g)))+'</strong></td>\n <td class="text" id="groupDescription">\n ';if((b=e.each.call(a,a&&a.groups,{hash:{},inverse:p.noop,fn:p.program(8,t,d),data:d}))||0===b)c+=b;return c+"\n </td>\n </tr>\n "},b),data:b}))||0===m)c+=m;c+="\n <tr>\n <td><strong>"+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Message",
h):q.call(a,"l10n","Message",h)))+':</strong></td>\n <td valign="top">\n <textarea name="message" tabindex="0" cols="40" rows="5">';(d=e.message)?m=d.call(a,{hash:{},data:b}):(d=a&&a.message,m=typeof d===s?d.call(a,{hash:{},data:b}):d);c+=r(m)+"</textarea>\n </td>\n </tr>\n ";if((m=e["if"].call(a,a&&a.showCaptcha,{hash:{},inverse:p.noop,fn:p.program(11,function(a,c){return'\n <tr>\n <td><img id="captcha-img" src="captcha"/></td>\n <td><input type="text" name="captcha" size="50" maxlength="15" value="" class="username"/></td>\n </tr>\n '},
b),data:b}))||0===m)c+=m;return c+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">'+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Send",h):q.call(a,"l10n","Send",h)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>\n<div id="ajax-loader"><img src="'+r((m=(m=a&&a.page,null==m||!1===m?m:m.tplRoot),typeof m===s?m.apply(a):m))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});v.leave_message_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];
e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};c="\n";if((a=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===a)c+=a;return c+'\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>'});v.leave_message_sent_description=u(function(c,a,e,d,b){this.compilerInfo=
[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="buttons">\n <a href="javascript:window.close();" title="'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close...",l):c.call(a,"l10n","Close...",l)))+'">\n <img class="tpl-image iclosewin" src="'+d((g=(g=a&&a.page,null==g||!1===g?g:g.tplRoot),"function"===typeof g?g.apply(a):g))+'/images/free.gif" alt="'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?
k.call(a,"Close...",l):c.call(a,"l10n","Close...",l)))+'" />\n </a>\n</div>\n<div class="messagetxt">'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Thank you for your message. We'll answer your query by email as soon as possible.",l):c.call(a,"l10n","Thank you for your message. We'll answer your query by email as soon as possible.",l)))+"</div>")});v.message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,t=e.helperMissing;
c=""+("<span>"+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+"</span>\n");if((g=e["if"].call(a,a&&a.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var d,b;d="<span class='n";(b=e.kindName)?b=b.call(a,{hash:{},data:c}):(b=a&&a.kindName,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);d+=l(b)+"'>";(b=e.name)?b=b.call(a,{hash:{},data:c}):(b=a&&a.name,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);
return d+=l(b)+"</span>: "},b),data:b}))||0===g)c+=g;c+="\n<span class='m";(g=e.kindName)?g=g.call(a,{hash:{},data:b}):(g=a&&a.kindName,g="function"===typeof g?g.call(a,{hash:{},data:b}):g);c+=l(g)+"'>";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,d){var b,c;return l((b=
e.apply||a&&a.apply,c={hash:{},data:d},b?b.call(a,a&&a.message,"urlReplace, nl2br, allowTags",c):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",c)))},b),data:b}))||0===g)c+=g;return c+"</span><br/>"});v.survey_form=u(function(c,a,e,d,b){function g(a,b){var c,d;c='<input type="hidden" name="group" value="';(d=e.groupId)?d=d.call(a,{hash:{},data:b}):(d=a&&a.groupId,d=typeof d===r?d.call(a,{hash:{},data:b}):d);return c+=p(d)+'"/>'}function k(a,d){var c,b;c=""+('\n <option value="'+
b),data:b}))||0===m)c+=m;return c+='\n </table>\n <a href="javascript:void(0);" class="but" id="send-message">'+r((d=e.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Send",h):q.call(a,"l10n","Send",h)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>\n<div id="ajax-loader"><img src="'+r((m=(m=a&&a.page,null==m||!1===m?m:m.tplRoot),typeof m===s?m.apply(a):m))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});v["leave_message/layout"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];
e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};c="\n";if((a=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===a)c+=a;return c+'\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>'});v["leave_message/sent_description"]=u(function(c,a,e,d,
b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l;c=e.helperMissing;d=this.escapeExpression;return a=""+('<div class="buttons">\n <a href="javascript:window.close();" title="'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Close...",l):c.call(a,"l10n","Close...",l)))+'">\n <img class="tpl-image iclosewin" src="'+d((g=(g=a&&a.page,null==g||!1===g?g:g.tplRoot),"function"===typeof g?g.apply(a):g))+'/images/free.gif" alt="'+d((k=e.l10n||a&&a.l10n,
l={hash:{},data:b},k?k.call(a,"Close...",l):c.call(a,"l10n","Close...",l)))+'" />\n </a>\n</div>\n<div class="messagetxt">'+d((k=e.l10n||a&&a.l10n,l={hash:{},data:b},k?k.call(a,"Thank you for your message. We'll answer your query by email as soon as possible.",l):c.call(a,"l10n","Thank you for your message. We'll answer your query by email as soon as possible.",l)))+"</div>")});v.message=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var g,k,l=this.escapeExpression,
t=e.helperMissing;c=""+("<span>"+l((g=e.formatTime||a&&a.formatTime,k={hash:{},data:b},g?g.call(a,a&&a.created,k):t.call(a,"formatTime",a&&a.created,k)))+"</span>\n");if((g=e["if"].call(a,a&&a.name,{hash:{},inverse:this.noop,fn:this.program(1,function(a,c){var d,b;d="<span class='n";(b=e.kindName)?b=b.call(a,{hash:{},data:c}):(b=a&&a.kindName,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);d+=l(b)+"'>";(b=e.name)?b=b.call(a,{hash:{},data:c}):(b=a&&a.name,b="function"===typeof b?b.call(a,{hash:{},
data:c}):b);return d+=l(b)+"</span>: "},b),data:b}))||0===g)c+=g;c+="\n<span class='m";(g=e.kindName)?g=g.call(a,{hash:{},data:b}):(g=a&&a.kindName,g="function"===typeof g?g.call(a,{hash:{},data:b}):g);c+=l(g)+"'>";if((g=e["if"].call(a,a&&a.allowFormatting,{hash:{},inverse:this.program(5,function(a,c){var d,b;return l((d=e.apply||a&&a.apply,b={hash:{},data:c},d?d.call(a,a&&a.message,"urlReplace, nl2br",b):t.call(a,"apply",a&&a.message,"urlReplace, nl2br",b)))},b),fn:this.program(3,function(a,d){var b,
c;return l((b=e.apply||a&&a.apply,c={hash:{},data:d},b?b.call(a,a&&a.message,"urlReplace, nl2br, allowTags",c):t.call(a,"apply",a&&a.message,"urlReplace, nl2br, allowTags",c)))},b),data:b}))||0===g)c+=g;return c+"</span><br/>"});v["survey/form"]=u(function(c,a,e,d,b){function g(a,b){var c,d;c='<input type="hidden" name="group" value="';(d=e.groupId)?d=d.call(a,{hash:{},data:b}):(d=a&&a.groupId,d=typeof d===r?d.call(a,{hash:{},data:b}):d);return c+=p(d)+'"/>'}function k(a,d){var c,b;c=""+('\n <option value="'+
p((b=a&&a.id,typeof b===r?b.apply(a):b))+'" ');if((b=e["if"].call(a,a&&a.selected,{hash:{},inverse:q.noop,fn:q.program(10,l,d),data:d}))||0===b)c+=b;c+=">"+p((b=a&&a.name,typeof b===r?b.apply(a):b));if((b=e.unless.call(a,a&&a.online,{hash:{},inverse:q.noop,fn:q.program(12,t,d),data:d}))||0===b)c+=b;return c+"</option>\n "}function l(a,b){return'selected="selected"'}function t(a,b){return" (offline)"}function n(a,b){var d;return(d=e["if"].call(a,a&&a.selected,{hash:{},inverse:q.noop,
fn:q.program(15,m,b),data:b}))||0===d?d:""}function m(a,b){var d;return p((d=a&&a.description,typeof d===r?d.apply(a):d))}this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);b=b||{};var h,s,r="function",p=this.escapeExpression,q=this,f=e.helperMissing;c=""+('<form name="surveyForm" method="post" action="">\n <input type="hidden" name="style" value="'+p((h=(h=a&&a.page,null==h||!1===h?h:h.style),typeof h===r?h.apply(a):h))+'"/>\n <input type="hidden" name="info" value="');(d=e.info)?h=
d.call(a,{hash:{},data:b}):(d=a&&a.info,h=typeof d===r?d.call(a,{hash:{},data:b}):d);c+=p(h)+'"/>\n <input type="hidden" name="referrer" value="';(d=e.referrer)?h=d.call(a,{hash:{},data:b}):(d=a&&a.referrer,h=typeof d===r?d.call(a,{hash:{},data:b}):d);c+=p(h)+'"/>\n <input type="hidden" name="survey" value="on"/>\n ';if((h=e.unless.call(a,a&&a.showEmail,{hash:{},inverse:q.noop,fn:q.program(1,function(a,b){var d,c;d='<input type="hidden" name="email" value="';(c=e.email)?c=c.call(a,{hash:{},
@ -57,6 +57,6 @@ b),data:b}))||0===h)c+=h;c+="\n <tr>\n <td><strong>"+p((d=e.l1
data:b}))||0===h)c+=h;c+="/></td>\n </tr>\n ";if((h=e["if"].call(a,a&&a.showEmail,{hash:{},inverse:q.noop,fn:q.program(19,function(a,d){var b,c,g;b=""+("\n <tr>\n <td><strong>"+p((c=e.l10n||a&&a.l10n,g={hash:{},data:d},c?c.call(a,"Email:",g):f.call(a,"l10n","Email:",g)))+'</strong></td>\n <td><input type="text" name="email" size="50" value="');(c=e.email)?c=c.call(a,{hash:{},data:d}):(c=a&&a.email,c=typeof c===r?c.call(a,{hash:{},data:d}):c);return b+=p(c)+'" class="username"/></td>\n </tr>\n '},
b),data:b}))||0===h)c+=h;c+="\n ";if((h=e["if"].call(a,a&&a.showMessage,{hash:{},inverse:q.noop,fn:q.program(21,function(a,c){var d,b,g;d=""+("\n <tr>\n <td><strong>"+p((b=e.l10n||a&&a.l10n,g={hash:{},data:c},b?b.call(a,"Initial Question:",g):f.call(a,"l10n","Initial Question:",g)))+'</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&&a.message,b=typeof b===r?b.call(a,{hash:{},
data:c}):b);return d+=p(b)+"</textarea></td>\n </tr>\n "},b),data:b}))||0===h)c+=h;return c+='\n </table>\n <a href="javascript:void(0);" class="but" id="submit-survey">'+p((d=e.l10n||a&&a.l10n,s={hash:{},data:b},d?d.call(a,"Start Chat",s):f.call(a,"l10n","Start Chat",s)))+'</a>\n <div class="clear">&nbsp;</div>\n</form>\n<div id="ajax-loader"><img src="'+p((h=(h=a&&a.page,null==h||!1===h?h:h.tplRoot),typeof h===r?h.apply(a):h))+'/images/ajax-loader.gif" alt="Loading..." /></div>'});
v.survey_layout=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;return c+='\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="'+
v["survey/layout"]=u(function(c,a,e,d,b){this.compilerInfo=[4,">= 1.0.0"];e=this.merge(e,c.helpers);d=this.merge(d,c.partials);b=b||{};var g,k,l=e.helperMissing,t=this.escapeExpression;c="\n";if((d=this.invokePartial(d._logo,"_logo",a,e,d,b))||0===d)c+=d;return c+='\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="'+
t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Close",k):l.call(a,"l10n","Close",k)))+'"><img class="tpl-image iclosewin" src="'+t((d=(d=a&&a.page,null==d||!1===d?d:d.tplRoot),"function"===typeof d?d.apply(a):d))+'/images/free.gif" alt="'+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Close",k):l.call(a,"l10n","Close",k)))+'" /></a>\n </div>\n <div class="messagetxt">'+t((g=e.l10n||a&&a.l10n,k={hash:{},data:b},g?g.call(a,"Thank you for contacting us. Please fill out the form below and click the Start Chat button.",
k):l.call(a,"l10n","Thank you for contacting us. Please fill out the form below and click the Start Chat button.",k)))+'</div>\n </div></div></div></div></div></div></div></div>\n</div>\n\n\n<div id="content-wrapper"></div>'})})();

View File

@ -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.visitor=l(function(c,a,f,b,d){function g(a,b){return"-"}this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var e,n,p=f.helperMissing,k=this.escapeExpression;c='<td class="visitor">\n ';if((b=f.unless.call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(3,function(a,b){var c;(c=f.userName)?c=c.call(a,{hash:{},data:b}):(c=a&&a.userName,c="function"===typeof c?c.call(a,{hash:{},data:b}):c);
return k(c)},d),fn:this.program(1,function(a,b){var c,e,d;c=""+('<a href="javascript:void(0);" class="invite-link" title="'+k((e=f.l10n||a&&a.l10n,d={hash:{},data:b},e?e.call(a,"Invite to chat",d):p.call(a,"l10n","Invite to chat",d)))+'">');(e=f.userName)?e=e.call(a,{hash:{},data:b}):(e=a&&a.userName,e="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=k(e)+"</a>"},d),data:d}))||0===b)c+=b;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((e=f.l10n||a&&a.l10n,n={hash:{},data:d},e?e.call(a,"Tracked visitor's path",n):p.call(a,"l10n","Tracked visitor's path",n)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">';if((b=f["if"].call(a,a&&a.userIp,{hash:{},inverse:this.program(7,function(a,b){var c;(c=f.remote)?c=c.call(a,{hash:{},data:b}):(c=a&&a.remote,c="function"===typeof c?c.call(a,{hash:{},data:b}):c);return k(c)},d),fn:this.program(5,function(a,b){var c,e;c='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';
(e=f.remote)?e=e.call(a,{hash:{},data:b}):(e=a&&a.remote,e="function"===typeof e?e.call(a,{hash:{},data:b}):e);return c+=k(e)+"</a>"},d),data:d}))||0===b)c+=b;c+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(e=f.firstTime)?b=e.call(a,{hash:{},data:d}):(e=a&&a.firstTime,b="function"===typeof e?e.call(a,{hash:{},data:d}):e);c+=k(b)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(e=f.lastTime)?b=e.call(a,{hash:{},data:d}):(e=a&&a.lastTime,b="function"===
typeof e?e.call(a,{hash:{},data:d}):e);c+=k(b)+'"></span></td>\n<td class="visitor">';if((b=f["if"].call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(11,g,d),fn:this.program(9,function(a,b){var c;return k((c=(c=a&&a.invitationInfo,null==c||!1===c?c:c.agentName),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===b)c+=b;c+='</td>\n<td class="visitor">';if((b=f["if"].call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(11,g,d),fn:this.program(13,function(a,b){var c,e;return c=""+('<span class="timesince" data-timestamp="'+
k((e=(e=a&&a.invitationInfo,null==e||!1===e?e:e.time),"function"===typeof e?e.apply(a):e))+'"></span>')},d),data:d}))||0===b)c+=b;c+='</td>\n<td class="visitor">';(e=f.invitations)?b=e.call(a,{hash:{},data:d}):(e=a&&a.invitations,b="function"===typeof e?e.call(a,{hash:{},data:d}):e);c+=k(b)+" / ";(e=f.chats)?b=e.call(a,{hash:{},data:d}):(e=a&&a.chats,b="function"===typeof e?e.call(a,{hash:{},data:d}):e);c+=k(b)+'</td>\n<td class="visitor">';(e=f.userAgent)?b=e.call(a,{hash:{},data:d}):(e=a&&a.userAgent,
b="function"===typeof e?e.call(a,{hash:{},data:d}):e);return c+=k(b)+"</td>"});m.visitors_collection=l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g,e;c=f.helperMissing;b=this.escapeExpression;return a=""+('<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Name",e):c.call(a,"l10n","Name",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?
g.call(a,"Actions",e):c.call(a,"l10n","Actions",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Visitor's address",e):c.call(a,"l10n","Visitor's address",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"First seen",e):c.call(a,"l10n","First seen",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Last seen",e):c.call(a,"l10n","Last seen",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Invited by",
e):c.call(a,"l10n","Invited by",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Invitation time",e):c.call(a,"l10n","Invitation time",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Invitations / Chats",e):c.call(a,"l10n","Invitations / Chats",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Misc",e):c.call(a,"l10n","Misc",e)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>')});m.agent=
l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;c='<span class="agent-status-';if((b=f["if"].call(a,a&&a.away,{hash:{},inverse:this.program(3,function(a,b){return"online"},d),fn:this.program(1,function(a,b){return"away"},d),data:d}))||0===b)c+=b;c+=' inline-block" title="';if((b=f["if"].call(a,a&&a.away,{hash:{},inverse:this.program(7,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,
"Up to date",d):g.call(a,"l10n","Up to date",d)))},d),fn:this.program(5,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,"Away",d):g.call(a,"l10n","Away",d)))},d),data:d}))||0===b)c+=b;c+='"></span>';(b=f.name)?b=b.call(a,{hash:{},data:d}):(b=a&&a.name,b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b);if((b=f.unless.call(a,a&&a.isLast,{hash:{},inverse:this.noop,fn:this.program(9,function(a,b){return","},d),data:d}))||0===b)c+=b;return c});m.no_threads=
l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g,e;c=f.helperMissing;b=this.escapeExpression;return a=""+('<td class="no-threads" colspan="8">'+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"The list of visitors waiting is empty",e):c.call(a,"l10n","The list of visitors waiting is empty",e)))+"</td>")});m.no_visitors=l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g,e;c=f.helperMissing;b=this.escapeExpression;
return a=""+('<td class="no-visitors" colspan="9">'+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"There are no visitors ready to chat on your site at present time",e):c.call(a,"l10n","There are no visitors ready to chat on your site at present time",e)))+"</td>")});m.queued_thread=l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;c='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';
if((b=f["if"].call(a,a&&a.canOpen,{hash:{},inverse:this.program(3,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,"Watch the chat",d):g.call(a,"l10n","Watch the chat",d)))},d),fn:this.program(1,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,"Click to chat with the visitor",d):g.call(a,"l10n","Click to chat with the visitor",d)))},d),data:d}))||0===b)c+=b;c+='">';if((b=f["if"].call(a,a&&a.ban,{hash:{},inverse:this.noop,fn:this.program(5,
function(a,b){var c,d,h;return c=""+(e((d=f.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"[spam]",h):g.call(a,"l10n","[spam]",h)))+"&nbsp;")},d),data:d}))||0===b)c+=b;(b=f.userName)?b=b.call(a,{hash:{},data:d}):(b=a&&a.userName,b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b)+"</a></div>\n ";if((b=f["if"].call(a,a&&a.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,function(a,b){var c,d;c='<div class="first-message"><a href="javascript:void(0);" title="';(d=f.firstMessage)?
d=d.call(a,{hash:{},data:b}):(d=a&&a.firstMessage,d="function"===typeof d?d.call(a,{hash:{},data:b}):d);c+=e(d)+'">';(d=f.firstMessagePreview)?d=d.call(a,{hash:{},data:b}):(d=a&&a.firstMessagePreview,d="function"===typeof d?d.call(a,{hash:{},data:b}):d);return c+=e(d)+"</a></div>"},d),data:d}))||0===b)c+=b;c+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';if((b=f["if"].call(a,a&&a.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,b){var c,
d,h;return c=""+('\n <div class="control open-dialog open-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Click to chat with the visitor",h):g.call(a,"l10n","Click to chat with the visitor",h)))+'"></div>\n ')},d),data:d}))||0===b)c+=b;c+="\n ";if((b=f["if"].call(a,a&&a.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,b){var c,d,h;return c=""+('\n <div class="control view-control inline-block" title="'+e((d=f.l10n||
a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Watch the chat",h):g.call(a,"l10n","Watch the chat",h)))+'"></div>\n ')},d),data:d}))||0===b)c+=b;c+="\n ";if((b=f["if"].call(a,a&&a.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,b){var c,d,h;return c=""+('\n <div class="control track-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Tracked visitor's path",h):g.call(a,"l10n","Tracked visitor's path",h)))+'"></div>\n ')},
d),data:d}))||0===b)c+=b;c+="\n ";if((b=f["if"].call(a,a&&a.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,b){var c,d,h;return c=""+('\n <div class="control ban-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,h={hash:{},data:b},d?d.call(a,"Ban this visitor",h):g.call(a,"l10n","Ban this visitor",h)))+'"></div>\n ')},d),data:d}))||0===b)c+=b;c+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';if((b=f["if"].call(a,
a&&a.userIp,{hash:{},inverse:this.program(19,function(a,b){var c;(c=f.remote)?c=c.call(a,{hash:{},data:b}):(c=a&&a.remote,c="function"===typeof c?c.call(a,{hash:{},data:b}):c);return e(c)},d),fn:this.program(17,function(a,c){var b,d;b='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(d=f.remote)?d=d.call(a,{hash:{},data:c}):(d=a&&a.remote,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=e(d)+"</a>"},d),data:d}))||0===b)c+=b;c+='</td>\n<td class="visitor">';(b=f.stateDesc)?
b=b.call(a,{hash:{},data:d}):(b=a&&a.stateDesc,b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b)+'</td>\n<td class="visitor">';(b=f.agentName)?b=b.call(a,{hash:{},data:d}):(b=a&&a.agentName,b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(b=f.totalTime)?b=b.call(a,{hash:{},data:d}):(b=a&&a.totalTime,b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b)+'"></span></td>\n<td class="visitor">';if((b=
f.unless.call(a,a&&a.chatting,{hash:{},inverse:this.program(23,function(a,c){return"-"},d),fn:this.program(21,function(a,c){var b,d;b='<span class="timesince" data-timestamp="';(d=f.waitingTime)?d=d.call(a,{hash:{},data:c}):(d=a&&a.waitingTime,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=e(d)+'"></span>'},d),data:d}))||0===b)c+=b;c+='</td>\n<td class="visitor">';if((b=f["if"].call(a,a&&a.ban,{hash:{},inverse:this.program(27,function(a,c){var b;(b=f.userAgent)?b=b.call(a,{hash:{},
data:c}):(b=a&&a.userAgent,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);return e(b)},d),fn:this.program(25,function(a,b){var c;return e((c=(c=a&&a.ban,null==c||!1===c?c:c.reason),"function"===typeof c?c.apply(a):c))},d),data:d}))||0===b)c+=b;return c+"</td>"});m.status_panel=l(function(c,a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;c='<div id="connstatus">';(b=f.message)?b=b.call(a,{hash:{},data:d}):(b=a&&a.message,
b="function"===typeof b?b.call(a,{hash:{},data:d}):b);c+=e(b);if((b=f["if"].call(a,(b=a&&a.agent,null==b||!1===b?b:b.away),{hash:{},inverse:this.program(3,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,"Up to date",d):g.call(a,"l10n","Up to date",d)))},d),fn:this.program(1,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,"Away",d):g.call(a,"l10n","Away",d)))},d),data:d}))||0===b)c+=b;c+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';
if((b=f["if"].call(a,(b=a&&a.agent,null==b||!1===b?b:b.away),{hash:{},inverse:this.program(7,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,'Set status as "Away"',d):g.call(a,"l10n",'Set status as "Away"',d)))},d),fn:this.program(5,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,'Set status as "Available"',d):g.call(a,"l10n",'Set status as "Available"',d)))},d),data:d}))||0===b)c+=b;return c+"</a></div>"});m.threads_collection=l(function(c,
a,f,b,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,c.helpers);d=d||{};var g,e;c=f.helperMissing;b=this.escapeExpression;return a=""+('<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Name",e):c.call(a,"l10n","Name",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Actions",e):c.call(a,"l10n","Actions",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Visitor's address",
e):c.call(a,"l10n","Visitor's address",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"State",e):c.call(a,"l10n","State",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Operator",e):c.call(a,"l10n","Operator",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Total time",e):c.call(a,"l10n","Total time",e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Waiting time",e):c.call(a,"l10n","Waiting time",
e)))+"</th>\n <th>"+b((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Misc",e):c.call(a,"l10n","Misc",e)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>')})})();
(function(){var l=Handlebars.template,m=Handlebars.templates=Handlebars.templates||{};m.agent=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;b='<span class="agent-status-';if((c=f["if"].call(a,a&&a.away,{hash:{},inverse:this.program(3,function(a,c){return"online"},d),fn:this.program(1,function(a,c){return"away"},d),data:d}))||0===c)b+=c;b+=' inline-block" title="';if((c=f["if"].call(a,a&&a.away,{hash:{},inverse:this.program(7,
function(a,c){var b,h;return e((b=f.l10n||a&&a.l10n,h={hash:{},data:c},b?b.call(a,"Up to date",h):g.call(a,"l10n","Up to date",h)))},d),fn:this.program(5,function(a,c){var b,h;return e((b=f.l10n||a&&a.l10n,h={hash:{},data:c},b?b.call(a,"Away",h):g.call(a,"l10n","Away",h)))},d),data:d}))||0===c)b+=c;b+='"></span>';(c=f.name)?c=c.call(a,{hash:{},data:d}):(c=a&&a.name,c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c);if((c=f.unless.call(a,a&&a.isLast,{hash:{},inverse:this.noop,fn:this.program(9,
function(a,c){return","},d),data:d}))||0===c)b+=c;return b});m.no_threads=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g,e;b=f.helperMissing;c=this.escapeExpression;return a=""+('<td class="no-threads" colspan="8">'+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"The list of visitors waiting is empty",e):b.call(a,"l10n","The list of visitors waiting is empty",e)))+"</td>")});m.no_visitors=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];
f=this.merge(f,b.helpers);d=d||{};var g,e;b=f.helperMissing;c=this.escapeExpression;return a=""+('<td class="no-visitors" colspan="9">'+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"There are no visitors ready to chat on your site at present time",e):b.call(a,"l10n","There are no visitors ready to chat on your site at present time",e)))+"</td>")});m.queued_thread=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;
b='<td class="visitor">\n <div><a href="javascript:void(0);" class="user-name open-dialog" title="';if((c=f["if"].call(a,a&&a.canOpen,{hash:{},inverse:this.program(3,function(a,c){var b,h;return e((b=f.l10n||a&&a.l10n,h={hash:{},data:c},b?b.call(a,"Watch the chat",h):g.call(a,"l10n","Watch the chat",h)))},d),fn:this.program(1,function(a,c){var b,h;return e((b=f.l10n||a&&a.l10n,h={hash:{},data:c},b?b.call(a,"Click to chat with the visitor",h):g.call(a,"l10n","Click to chat with the visitor",h)))},
d),data:d}))||0===c)b+=c;b+='">';if((c=f["if"].call(a,a&&a.ban,{hash:{},inverse:this.noop,fn:this.program(5,function(a,c){var b,h,d;return b=""+(e((h=f.l10n||a&&a.l10n,d={hash:{},data:c},h?h.call(a,"[spam]",d):g.call(a,"l10n","[spam]",d)))+"&nbsp;")},d),data:d}))||0===c)b+=c;(c=f.userName)?c=c.call(a,{hash:{},data:d}):(c=a&&a.userName,c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c)+"</a></div>\n ";if((c=f["if"].call(a,a&&a.firstMessage,{hash:{},inverse:this.noop,fn:this.program(7,
function(a,c){var b,h;b='<div class="first-message"><a href="javascript:void(0);" title="';(h=f.firstMessage)?h=h.call(a,{hash:{},data:c}):(h=a&&a.firstMessage,h="function"===typeof h?h.call(a,{hash:{},data:c}):h);b+=e(h)+'">';(h=f.firstMessagePreview)?h=h.call(a,{hash:{},data:c}):(h=a&&a.firstMessagePreview,h="function"===typeof h?h.call(a,{hash:{},data:c}):h);return b+=e(h)+"</a></div>"},d),data:d}))||0===c)b+=c;b+='\n</td>\n<td class="visitor">\n <div class="default-thread-controls inline-block">\n ';
if((c=f["if"].call(a,a&&a.canOpen,{hash:{},inverse:this.noop,fn:this.program(9,function(a,c){var b,h,d;return b=""+('\n <div class="control open-dialog open-control inline-block" title="'+e((h=f.l10n||a&&a.l10n,d={hash:{},data:c},h?h.call(a,"Click to chat with the visitor",d):g.call(a,"l10n","Click to chat with the visitor",d)))+'"></div>\n ')},d),data:d}))||0===c)b+=c;b+="\n ";if((c=f["if"].call(a,a&&a.canView,{hash:{},inverse:this.noop,fn:this.program(11,function(a,c){var b,
d,n;return b=""+('\n <div class="control view-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,n={hash:{},data:c},d?d.call(a,"Watch the chat",n):g.call(a,"l10n","Watch the chat",n)))+'"></div>\n ')},d),data:d}))||0===c)b+=c;b+="\n ";if((c=f["if"].call(a,a&&a.tracked,{hash:{},inverse:this.noop,fn:this.program(13,function(a,c){var b,d,n;return b=""+('\n <div class="control track-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,n={hash:{},data:c},d?d.call(a,
"Tracked visitor's path",n):g.call(a,"l10n","Tracked visitor's path",n)))+'"></div>\n ')},d),data:d}))||0===c)b+=c;b+="\n ";if((c=f["if"].call(a,a&&a.canBan,{hash:{},inverse:this.noop,fn:this.program(15,function(a,c){var b,d,n;return b=""+('\n <div class="control ban-control inline-block" title="'+e((d=f.l10n||a&&a.l10n,n={hash:{},data:c},d?d.call(a,"Ban this visitor",n):g.call(a,"l10n","Ban this visitor",n)))+'"></div>\n ')},d),data:d}))||0===c)b+=c;b+='\n </div>\n <div class="thread-controls inline-block"></div>\n</td>\n<td class="visitor">';
if((c=f["if"].call(a,a&&a.userIp,{hash:{},inverse:this.program(19,function(a,c){var b;(b=f.remote)?b=b.call(a,{hash:{},data:c}):(b=a&&a.remote,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);return e(b)},d),fn:this.program(17,function(a,c){var b,d;b='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(d=f.remote)?d=d.call(a,{hash:{},data:c}):(d=a&&a.remote,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=e(d)+"</a>"},d),data:d}))||0===c)b+=c;b+='</td>\n<td class="visitor">';
(c=f.stateDesc)?c=c.call(a,{hash:{},data:d}):(c=a&&a.stateDesc,c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c)+'</td>\n<td class="visitor">';(c=f.agentName)?c=c.call(a,{hash:{},data:d}):(c=a&&a.agentName,c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c)+'</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(c=f.totalTime)?c=c.call(a,{hash:{},data:d}):(c=a&&a.totalTime,c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c)+'"></span></td>\n<td class="visitor">';
if((c=f.unless.call(a,a&&a.chatting,{hash:{},inverse:this.program(23,function(a,c){return"-"},d),fn:this.program(21,function(a,c){var b,d;b='<span class="timesince" data-timestamp="';(d=f.waitingTime)?d=d.call(a,{hash:{},data:c}):(d=a&&a.waitingTime,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=e(d)+'"></span>'},d),data:d}))||0===c)b+=c;b+='</td>\n<td class="visitor">';if((c=f["if"].call(a,a&&a.ban,{hash:{},inverse:this.program(27,function(a,c){var b;(b=f.userAgent)?b=b.call(a,{hash:{},
data:c}):(b=a&&a.userAgent,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);return e(b)},d),fn:this.program(25,function(a,c){var b;return e((b=(b=a&&a.ban,null==b||!1===b?b:b.reason),"function"===typeof b?b.apply(a):b))},d),data:d}))||0===c)b+=c;return b+"</td>"});m.status_panel=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g=f.helperMissing,e=this.escapeExpression;b='<div id="connstatus">';(c=f.message)?c=c.call(a,{hash:{},data:d}):(c=a&&a.message,
c="function"===typeof c?c.call(a,{hash:{},data:d}):c);b+=e(c);if((c=f["if"].call(a,(c=a&&a.agent,null==c||!1===c?c:c.away),{hash:{},inverse:this.program(3,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,"Up to date",d):g.call(a,"l10n","Up to date",d)))},d),fn:this.program(1,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,"Away",d):g.call(a,"l10n","Away",d)))},d),data:d}))||0===c)b+=c;b+='</div><div id="connlinks"><a href="javascript:void(0);" id="change-status">';
if((c=f["if"].call(a,(c=a&&a.agent,null==c||!1===c?c:c.away),{hash:{},inverse:this.program(7,function(a,c){var b,d;return e((b=f.l10n||a&&a.l10n,d={hash:{},data:c},b?b.call(a,'Set status as "Away"',d):g.call(a,"l10n",'Set status as "Away"',d)))},d),fn:this.program(5,function(a,b){var c,d;return e((c=f.l10n||a&&a.l10n,d={hash:{},data:b},c?c.call(a,'Set status as "Available"',d):g.call(a,"l10n",'Set status as "Available"',d)))},d),data:d}))||0===c)b+=c;return b+"</a></div>"});m.threads_collection=l(function(b,
a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g,e;b=f.helperMissing;c=this.escapeExpression;return a=""+('<table class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Name",e):b.call(a,"l10n","Name",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Actions",e):b.call(a,"l10n","Actions",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Visitor's address",
e):b.call(a,"l10n","Visitor's address",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"State",e):b.call(a,"l10n","State",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Operator",e):b.call(a,"l10n","Operator",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Total time",e):b.call(a,"l10n","Total time",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Waiting time",e):b.call(a,"l10n","Waiting time",
e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Misc",e):b.call(a,"l10n","Misc",e)))+'</th>\n</tr>\n</thead>\n<tbody id="threads-container">\n\n</tbody>\n</table>')});m.visitor=l(function(b,a,f,c,d){function g(a,c){return"-"}this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var e,l,m=f.helperMissing,k=this.escapeExpression;b='<td class="visitor">\n ';if((c=f.unless.call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(3,function(a,c){var b;(b=f.userName)?
b=b.call(a,{hash:{},data:c}):(b=a&&a.userName,b="function"===typeof b?b.call(a,{hash:{},data:c}):b);return k(b)},d),fn:this.program(1,function(a,b){var c,d,e;c=""+('<a href="javascript:void(0);" class="invite-link" title="'+k((d=f.l10n||a&&a.l10n,e={hash:{},data:b},d?d.call(a,"Invite to chat",e):m.call(a,"l10n","Invite to chat",e)))+'">');(d=f.userName)?d=d.call(a,{hash:{},data:b}):(d=a&&a.userName,d="function"===typeof d?d.call(a,{hash:{},data:b}):d);return c+=k(d)+"</a>"},d),data:d}))||0===c)b+=
c;b+='\n</td>\n<td class="visitor">\n <div class="default-visitor-controls inline-block">\n <div class="control track-control inline-block" title="'+k((e=f.l10n||a&&a.l10n,l={hash:{},data:d},e?e.call(a,"Tracked visitor's path",l):m.call(a,"l10n","Tracked visitor's path",l)))+'"></div>\n </div>\n <div class="visitor-controls inline-block"></div>\n</td>\n<td class="visitor">';if((c=f["if"].call(a,a&&a.userIp,{hash:{},inverse:this.program(7,function(a,b){var c;(c=f.remote)?c=c.call(a,
{hash:{},data:b}):(c=a&&a.remote,c="function"===typeof c?c.call(a,{hash:{},data:b}):c);return k(c)},d),fn:this.program(5,function(a,c){var b,d;b='<a href="javascript:void(0);" class="geo-link" title="GeoLocation">';(d=f.remote)?d=d.call(a,{hash:{},data:c}):(d=a&&a.remote,d="function"===typeof d?d.call(a,{hash:{},data:c}):d);return b+=k(d)+"</a>"},d),data:d}))||0===c)b+=c;b+='</td>\n<td class="visitor"><span class="timesince" data-timestamp="';(e=f.firstTime)?c=e.call(a,{hash:{},data:d}):(e=a&&a.firstTime,
c="function"===typeof e?e.call(a,{hash:{},data:d}):e);b+=k(c)+'"></span></td>\n<td class="visitor"><span class="timesince" data-timestamp="';(e=f.lastTime)?c=e.call(a,{hash:{},data:d}):(e=a&&a.lastTime,c="function"===typeof e?e.call(a,{hash:{},data:d}):e);b+=k(c)+'"></span></td>\n<td class="visitor">';if((c=f["if"].call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(11,g,d),fn:this.program(9,function(a,c){var b;return k((b=(b=a&&a.invitationInfo,null==b||!1===b?b:b.agentName),"function"===typeof b?
b.apply(a):b))},d),data:d}))||0===c)b+=c;b+='</td>\n<td class="visitor">';if((c=f["if"].call(a,a&&a.invitationInfo,{hash:{},inverse:this.program(11,g,d),fn:this.program(13,function(a,b){var c,d;return c=""+('<span class="timesince" data-timestamp="'+k((d=(d=a&&a.invitationInfo,null==d||!1===d?d:d.time),"function"===typeof d?d.apply(a):d))+'"></span>')},d),data:d}))||0===c)b+=c;b+='</td>\n<td class="visitor">';(e=f.invitations)?c=e.call(a,{hash:{},data:d}):(e=a&&a.invitations,c="function"===typeof e?
e.call(a,{hash:{},data:d}):e);b+=k(c)+" / ";(e=f.chats)?c=e.call(a,{hash:{},data:d}):(e=a&&a.chats,c="function"===typeof e?e.call(a,{hash:{},data:d}):e);b+=k(c)+'</td>\n<td class="visitor">';(e=f.userAgent)?c=e.call(a,{hash:{},data:d}):(e=a&&a.userAgent,c="function"===typeof e?e.call(a,{hash:{},data:d}):e);return b+=k(c)+"</td>"});m.visitors_collection=l(function(b,a,f,c,d){this.compilerInfo=[4,">= 1.0.0"];f=this.merge(f,b.helpers);d=d||{};var g,e;b=f.helperMissing;c=this.escapeExpression;return a=
""+('<table id="visitorslist" class="awaiting" border="0">\n<thead>\n<tr>\n <th class="first">'+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Name",e):b.call(a,"l10n","Name",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Actions",e):b.call(a,"l10n","Actions",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Visitor's address",e):b.call(a,"l10n","Visitor's address",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?
g.call(a,"First seen",e):b.call(a,"l10n","First seen",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Last seen",e):b.call(a,"l10n","Last seen",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Invited by",e):b.call(a,"l10n","Invited by",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Invitation time",e):b.call(a,"l10n","Invitation time",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,
"Invitations / Chats",e):b.call(a,"l10n","Invitations / Chats",e)))+"</th>\n <th>"+c((g=f.l10n||a&&a.l10n,e={hash:{},data:d},g?g.call(a,"Misc",e):b.call(a,"l10n","Misc",e)))+'</th>\n</tr>\n</thead>\n<tbody id="visitors-container">\n</tbody>\n</table>')})})();

View File

@ -1,39 +0,0 @@
#!/bin/sh
#
# Copy file and flatten its name by replace '/' by '_'. For more
# details see examples below.
#
# Usage:
#
# flat_cp [from] [to_dir] [cut_from]
# from - source file
# to_dir - target file
# cut_from - part of source file path. Only part after
# cut_from will be used for target file name.
#
# Examples:
# If execute the command:
#
# $ flat cp /home/user/application/templates/controls/radio \
# /home/user/application/compiled_templates "templates"
#
# the file from '/home/user/application/templates/controls/radio'
# will be copied to '/home/user/application/compiled_templates/controls_radio'
#
source_file=$1
cut_from=$(sed "s/\/\{1,\}$//" <<< "$3")
if [ $cut_from ]
then
cut_from=$(sed "s/\//\\\\\//g" <<< "$cut_from")
target_file_name=$(sed "s/^\(.*\)$cut_from\/\(.*\)$/\2/" <<< "$source_file")
else
target_file_name=$source_file
fi
target_file_name=$(sed "s/\//_/g" <<< "$target_file_name")
target_file=$(sed "s/\/\{0,1\}$//" <<< "$2")"/"$target_file_name
cp $source_file $target_file