/*!
* This file is a part of Mibew Messenger.
*
* Copyright 2005-2015 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
!function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates._logo=Handlebars.template({1:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=(s=null!=a?a.page:a)?s.mibewHost:s,{name:"if",hash:{},fn:this.program(2,l,0),inverse:this.program(4,l,0),data:l}))?s:""},2:function(a,e,n,l){var s,t=this.lambda,i=this.escapeExpression;return" \n \n \n'},4:function(a,e,n,l){var s;return' \n'},6:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=(s=null!=a?a.page:a)?s.mibewHost:s,{name:"if",hash:{},fn:this.program(7,l,0),inverse:this.program(9,l,0),data:l}))?s:""},7:function(a,e,n,l){var s,t=this.lambda,i=this.escapeExpression;return" \n \n \n'},9:function(a,e,n,l){var s;return' \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return'
\n
\n'+(null!=(s=e["if"].call(a,null!=(s=null!=(s=null!=a?a.page:a)?s.company:s)?s.chatLogoURL:s,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.program(6,l,0),data:l}))?s:"")+' \n
'+this.escapeExpression(this.lambda(null!=(s=null!=a?a.page:a)?s.title:s,a))+'
\n
\n
\n
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates.default_control=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return""+this.escapeExpression((s=null!=(s=e.title||(null!=a?a.title:a))?s:e.helperMissing,"function"==typeof s?s.call(a,{name:"title",hash:{},data:l}):s))+" "},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates.message=Handlebars.template({1:function(a,e,n,l){var s,t=e.helperMissing,i="function",r=this.escapeExpression;return""+r((s=null!=(s=e.name||(null!=a?a.name:a))?s:t,typeof s===i?s.call(a,{name:"name",hash:{},data:l}):s))+" : "},3:function(a,e,n,l){return this.escapeExpression((e.urlReplace||a&&a.urlReplace||e.helperMissing).call(a,null!=a?a.message:a,{name:"urlReplace",hash:{},data:l}))},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t,i=e.helperMissing,r=this.escapeExpression;return""+r((e.formatTime||a&&a.formatTime||i).call(a,null!=a?a.created:a,{name:"formatTime",hash:{},data:l}))+" \n"+(null!=(s=e["if"].call(a,null!=a?a.name:a,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:"")+"\n"+(null!=(s=(e.replace||a&&a.replace||i).call(a,"\\n"," ",{name:"replace",hash:{},fn:this.program(3,l,0),inverse:this.noop,data:l}))?s:"")+" "},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/avatar"]=Handlebars.template({1:function(a,e,n,l){var s;return' '},3:function(a,e,n,l){return'
'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.imageLink:a,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.program(3,l,0),data:l}))?s:""},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/layout"]=Handlebars.template({1:function(a,e,n,l){return'
\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return(null!=(s=this.invokePartial(n._logo,a,{name:"_logo",data:l,helpers:e,partials:n}))?s:"")+'\n\n\n\n
\n'+(null!=(s=e.unless.call(a,null!=(s=null!=a?a.user:a)?s.isAgent:s,{name:"unless",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:"")+'
\n
\n
\n
\n\n
\n\n'},usePartial:!0,useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/message"]=Handlebars.template({1:function(a,e,n,l){var s,t=e.helperMissing,i="function",r=this.escapeExpression;return""+r((s=null!=(s=e.name||(null!=a?a.name:a))?s:t,typeof s===i?s.call(a,{name:"name",hash:{},data:l}):s))+" : "},3:function(a,e,n,l){return this.escapeExpression((e.urlReplace||a&&a.urlReplace||e.helperMissing).call(a,null!=a?a.message:a,{name:"urlReplace",hash:{},data:l}))},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t,i=e.helperMissing,r=this.escapeExpression;return""+r((e.formatTime||a&&a.formatTime||i).call(a,null!=a?a.created:a,{name:"formatTime",hash:{},data:l}))+" \n"+(null!=(s=e["if"].call(a,null!=a?a.name:a,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:"")+"\n"+(null!=(s=(e.replace||a&&a.replace||i).call(a,"\\n"," ",{name:"replace",hash:{},fn:this.program(3,l,0),inverse:this.noop,data:l}))?s:"")+" "},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/message_form"]=Handlebars.template({1:function(a,e,n,l){return' \n'},3:function(a,e,n,l){var s,t=e.helperMissing;return' \n
\n'+(null!=(s=e["if"].call(a,null!=(s=null!=a?a.user:a)?s.isAgent:s,{name:"if",hash:{},fn:this.program(4,l,0),inverse:this.noop,data:l}))?s:"")+'
\n
'+(null!=(s=(e.l10n||a&&a.l10n||t).call(a,"Send ({0})",null!=a?a.sendShortcut:a,{name:"l10n",hash:{},data:l}))?s:"")+" \n
\n"},4:function(a,e,n,l){var s;return' \n '+this.escapeExpression((e.l10n||a&&a.l10n||e.helperMissing).call(a,"Select answer...",{name:"l10n",hash:{},data:l}))+" \n"+(null!=(s=e.each.call(a,null!=a?a.predefinedAnswers:a,{name:"each",hash:{},fn:this.program(5,l,0),inverse:this.noop,data:l}))?s:"")+" \n"},5:function(a,e,n,l){return" "+this.escapeExpression(this.lambda(null!=a?a["short"]:a,a))+" \n"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return'\n'+(null!=(s=e["if"].call(a,null!=(s=null!=a?a.user:a)?s.canPost:s,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:"")+'
\n\n\n'+(null!=(s=e["if"].call(a,null!=(s=null!=a?a.user:a)?s.canPost:s,{name:"if",hash:{},fn:this.program(3,l,0),inverse:this.noop,data:l}))?s:"")+'
\n
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["invitation/layout"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["leave_message/description"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return'\n'+(null!=(s=(e.l10n||a&&a.l10n||t).call(a,"Sorry. None of the support team is available at the moment. Please leave a message and someone will get back to you shortly.",{name:"l10n",hash:{},data:l}))?s:"")+"
"},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["leave_message/form"]=Handlebars.template({1:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.groupId:a,{name:"if",hash:{},fn:this.program(2,l,0),inverse:this.noop,data:l}))?s:""},2:function(a,e,n,l){var s;return' '},4:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return' \n '+i((e.l10n||a&&a.l10n||t).call(a,"Choose Department:",{name:"l10n",hash:{},data:l}))+' \n \n \n'+(null!=(s=e.each.call(a,null!=a?a.groups:a,{name:"each",hash:{},fn:this.program(5,l,0),inverse:this.noop,data:l}))?s:"")+' \n \n \n \n '+i((e.l10n||a&&a.l10n||t).call(a,"Department description:",{name:"l10n",hash:{},data:l}))+' \n \n '+(null!=(s=e.each.call(a,null!=a?a.groups:a,{name:"each",hash:{},fn:this.program(8,l,0),inverse:this.noop,data:l}))?s:"")+"\n \n \n"},5:function(a,e,n,l){var s,t=this.lambda,i=this.escapeExpression;return' "+i(t(null!=a?a.name:a,a))+" \n"},6:function(a,e,n,l){return'selected="selected"'},8:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.selected:a,{name:"if",hash:{},fn:this.program(9,l,0),inverse:this.noop,data:l}))?s:""},9:function(a,e,n,l){return this.escapeExpression(this.lambda(null!=a?a.description:a,a))},11:function(a,e,n,l){return' \n \n \n \n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t,i=this.lambda,r=this.escapeExpression,o=e.helperMissing,d="function";return'\n'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["leave_message/layout"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return(null!=(s=this.invokePartial(n._logo,a,{name:"_logo",data:l,helpers:e,partials:n}))?s:"")+'\n\n\n
'},usePartial:!0,useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["leave_message/sent_description"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return'\n'+i((e.l10n||a&&a.l10n||t).call(a,"Thank you for your message. We'll answer your query by email as soon as possible.",{name:"l10n",hash:{},data:l}))+"
"},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["survey/form"]=Handlebars.template({1:function(a,e,n,l){var s;return' '},3:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.groupId:a,{name:"if",hash:{},fn:this.program(4,l,0),inverse:this.noop,data:l}))?s:""},4:function(a,e,n,l){var s;return' '},6:function(a,e,n,l){var s;return' '},8:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return" \n "+i((e.l10n||a&&a.l10n||t).call(a,"Choose Department:",{name:"l10n",hash:{},data:l}))+' \n \n \n'+(null!=(s=e.each.call(a,null!=a?a.groups:a,{name:"each",hash:{},fn:this.program(9,l,0),inverse:this.noop,data:l}))?s:"")+" \n \n \n \n "+i((e.l10n||a&&a.l10n||t).call(a,"Department description:",{name:"l10n",hash:{},data:l}))+' \n '+(null!=(s=e.each.call(a,null!=a?a.groups:a,{name:"each",hash:{},fn:this.program(14,l,0),inverse:this.noop,data:l}))?s:"")+" \n \n"},9:function(a,e,n,l){var s,t=this.lambda,i=this.escapeExpression;return' "+i(t(null!=a?a.name:a,a))+(null!=(s=e.unless.call(a,null!=a?a.online:a,{name:"unless",hash:{},fn:this.program(12,l,0),inverse:this.noop,data:l}))?s:"")+" \n"},10:function(a,e,n,l){return'selected="selected"'},12:function(a,e,n,l){return" (offline)"},14:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.selected:a,{name:"if",hash:{},fn:this.program(15,l,0),inverse:this.noop,data:l}))?s:""},15:function(a,e,n,l){return this.escapeExpression(this.lambda(null!=a?a.description:a,a))},17:function(a,e,n,l){return'disabled="disabled"'},19:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return" \n "+i((e.l10n||a&&a.l10n||t).call(a,"Email:",{name:"l10n",hash:{},data:l}))+' \n \n \n'},21:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return" \n "+i((e.l10n||a&&a.l10n||t).call(a,"Initial Question:",{name:"l10n",hash:{},data:l}))+' \n '+i((s=null!=(s=e.message||(null!=a?a.message:a))?s:t,"function"==typeof s?s.call(a,{name:"message",hash:{},data:l}):s))+" \n \n"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t,i=this.lambda,r=this.escapeExpression,o=e.helperMissing,d="function";return'\n \n \n \n \n '+(null!=(s=e.unless.call(a,null!=a?a.showEmail:a,{name:"unless",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:"")+"\n "+(null!=(s=e.unless.call(a,null!=a?a.groups:a,{name:"unless",hash:{},fn:this.program(3,l,0),inverse:this.noop,data:l}))?s:"")+"\n "+(null!=(s=e.unless.call(a,null!=a?a.showMessage:a,{name:"unless",hash:{},fn:this.program(6,l,0),inverse:this.noop,data:l}))?s:"")+'\n\n
\n\n \n '+r((e.l10n||a&&a.l10n||o).call(a,"Start Chat",{name:"l10n",hash:{},data:l}))+' \n
\n \n '},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["survey/layout"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return(null!=(s=this.invokePartial(n._logo,a,{name:"_logo",data:l,helpers:e,partials:n}))?s:"")+'\n\n\n
'},usePartial:!0,useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/close"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/history"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/redirect"]=Handlebars.template({1:function(a,e,n,l){return'
\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=(s=null!=a?a.user:a)?s.canPost:s,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.noop,data:l}))?s:""},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/refresh"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/secure_mode"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/send_mail"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return'
'},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/sound"]=Handlebars.template({1:function(a,e,n,l){return'
\n'},3:function(a,e,n,l){return'
\n'},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=a?a.enabled:a,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.program(3,l,0),data:l}))?s:""},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/controls/user_name"]=Handlebars.template({1:function(a,e,n,l){var s;return' '+this.escapeExpression((e.l10n||a&&a.l10n||e.helperMissing).call(a,"You are",{name:"l10n",hash:{},data:l}))+" \n"+(null!=(s=e["if"].call(a,null!=a?a.nameInput:a,{name:"if",hash:{},fn:this.program(2,l,0),inverse:this.program(4,l,0),data:l}))?s:"")},2:function(a,e,n,l){var s,t=this.escapeExpression;return'
\n \n'},4:function(a,e,n,l){var s,t=e.helperMissing,i=this.escapeExpression;return' '+i(this.lambda(null!=(s=null!=a?a.user:a)?s.name:s,a))+' \n \n'},6:function(a,e,n,l){var s,t=this.escapeExpression;return t((e.l10n||a&&a.l10n||e.helperMissing).call(a,"You are",{name:"l10n",hash:{},data:l}))+" "+t(this.lambda(null!=(s=null!=a?a.user:a)?s.name:s,a))+"\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return null!=(s=e["if"].call(a,null!=(s=null!=a?a.user:a)?s.canChangeName:s,{name:"if",hash:{},fn:this.program(1,l,0),inverse:this.program(6,l,0),data:l}))?s:""},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/status/base"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return this.escapeExpression((s=null!=(s=e.title||(null!=a?a.title:a))?s:e.helperMissing,"function"==typeof s?s.call(a,{name:"title",hash:{},data:l}):s))},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/status/message"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){var s;return this.escapeExpression((s=null!=(s=e.message||(null!=a?a.message:a))?s:e.helperMissing,"function"==typeof s?s.call(a,{name:"message",hash:{},data:l}):s))},useData:!0})}(),function(){Handlebars.templates=Handlebars.templates||{};Handlebars.templates["chat/status/typing"]=Handlebars.template({compiler:[6,">= 2.0.0-beta.1"],main:function(a,e,n,l){return this.escapeExpression((e.l10n||a&&a.l10n||e.helperMissing).call(a,"Remote user is typing...",{name:"l10n",hash:{},data:l}))},useData:!0})}();