var _sc_chatConfig={server:"https://live.steam.eu.com",allowedExtensions:"jpg,jpeg,png,gif,bmp,webp,svg,pdf,txt,csv,md,xls,xlsx,ods,ppt,pptx,odp,mp3,wav,ogg,flac,mp4,mkv,avi,mov,webm,zip,tar,gz,7z",customerDomain:"steam"},_sc=function(){var e;e=this,tn=function(){return n=[function(e,t,a){"use strict";function n(e,t){"object"===(void 0===e?"undefined":o(e))&&(t=e,e=void 0),t=t||{};var a=r(e),n=a.source,i=a.id,e=a.path,e=c[i]&&e in c[i].nsps,i=t.forceNew||t["force new connection"]||!1===t.multiplex||e?(l("ignoring socket cache for %s",n),s(n,t)):(c[i]||(l("new io instance for %s",n),c[i]=s(n,t)),c[i]);return a.query&&!t.query?t.query=a.query:t&&"object"===o(t.query)&&(t.query=function(e){var t,a=[];for(t in e)e.hasOwnProperty(t)&&a.push(encodeURIComponent(t)+"="+encodeURIComponent(e[t]));return a.join("&")}(t.query)),i.socket(a.path,t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=a(1),i=a(7),s=a(17),l=a(3)("socket.io-client");e.exports=t=n;var c=t.managers={};t.protocol=i.protocol,t.connect=n,t.Manager=a(17),t.Socket=a(44)},function(e,t,a){!function(n){"use strict";var i=a(2),o=a(3)("socket.io-client:url");e.exports=function(e,t){var a=e;return t=t||n.location,"string"==typeof(e=null==e?t.protocol+"//"+t.host:e)&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?t.protocol+e:t.host+e),/^(https?|wss?):\/\//.test(e)||(o("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),o("parse %s",e),a=i(e)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/",e=-1!==a.host.indexOf(":")?"["+a.host+"]":a.host,a.id=a.protocol+"://"+e+":"+a.port,a.href=a.protocol+"://"+e+(t&&t.port===a.port?"":":"+a.port),a}}.call(t,function(){return this}())},function(e,t){var s=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,l=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];e.exports=function(e){var t=e,a=e.indexOf("["),n=e.indexOf("]");-1!=a&&-1!=n&&(e=e.substring(0,a)+e.substring(a,n).replace(/:/g,";")+e.substring(n,e.length));for(var i=s.exec(e||""),o={},r=14;r--;)o[l[r]]=i[r]||"";return-1!=a&&-1!=n&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o}},function(a,i,n){!function(e){function t(){try{return i.storage.debug}catch(e){}if(void 0!==e&&"env"in e)return e.env.DEBUG}(i=a.exports=n(5)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},i.formatArgs=function(){var e=arguments,t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+i.humanize(this.diff),!t)return e;var t="color: "+this.color,e=[e[0],t,"color: inherit"].concat(Array.prototype.slice.call(e,1)),a=0,n=0;return e[0].replace(/%[a-z%]/g,function(e){"%%"!==e&&(a++,"%c"===e&&(n=a))}),e.splice(n,0,t),e},i.save=function(e){try{null==e?i.storage.removeItem("debug"):i.storage.debug=e}catch(e){}},i.load=t,i.useColors=function(){return"undefined"!=typeof document&&"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&31<=parseInt(RegExp.$1,10)},i.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),i.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],i.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},i.enable(t())}.call(i,n(4))},function(e,t){function a(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(t){if(c===setTimeout)return setTimeout(t,0);if((c===a||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(){h&&m&&(h=!1,m.length?p=m.concat(p):u=-1,p.length&&r())}function r(){if(!h){var e=i(o);h=!0;for(var t=p.length;t;){for(m=p,p=[];++u=this._reconnectionAttempts?(m("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(e=this.backoff.duration(),m("will wait %dms before reconnect attempt",e),this.reconnecting=!0,t=setTimeout(function(){a.skipReconnect||(m("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(e){e?(m("reconnect attempt error"),a.reconnecting=!1,a.reconnect(),a.emitAll("reconnect_error",e.data)):(m("reconnect success"),a.onreconnect())}))},e),this.subs.push({destroy:function(){clearTimeout(t)}}))},n.prototype.onreconnect=function(){var e=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",e)}},function(e,t,a){e.exports=a(19)},function(e,t,a){e.exports=a(20),e.exports.parser=a(27)},function(t,e,c){!function(a){function m(e,t){if(!(this instanceof m))return new m(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=r(e),t.hostname=e.host,t.secure="https"===e.protocol||"wss"===e.protocol,t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=r(t.host).host),this.secure=null!=t.secure?t.secure:a.location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.agent=t.agent||!1,this.hostname=t.hostname||(a.location?location.hostname:"localhost"),this.port=t.port||(a.location&&location.port?location.port:this.secure?443:80),this.query=t.query||{},"string"==typeof this.query&&(this.query=l.decode(this.query)),this.upgrade=!1!==t.upgrade,this.path=(t.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!t.forceJSONP,this.jsonp=!1!==t.jsonp,this.forceBase64=!!t.forceBase64,this.enablesXDR=!!t.enablesXDR,this.timestampParam=t.timestampParam||"t",this.timestampRequests=t.timestampRequests,this.transports=t.transports||["polling","websocket"],this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=t.policyPort||843,this.rememberUpgrade=t.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=t.onlyBinaryUpgrades,this.perMessageDeflate=!1!==t.perMessageDeflate&&(t.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=t.pfx||null,this.key=t.key||null,this.passphrase=t.passphrase||null,this.cert=t.cert||null,this.ca=t.ca||null,this.ciphers=t.ciphers||null,this.rejectUnauthorized=void 0===t.rejectUnauthorized?null:t.rejectUnauthorized,this.forceNode=!!t.forceNode;e="object"==typeof a&&a;e.global===e&&(t.extraHeaders&&0>t&63|128)}function n(){if(s<=l)throw Error("Invalid byte index");var e=255&i[l];if(l++,128==(192&e))return 63&e;throw Error("Invalid continuation byte")}var e=("object"==typeof a&&a&&a.exports,"object"==typeof d&&d);e.global!==e&&e.window;var i,s,l,c=String.fromCharCode,t={version:"1.0.0",encode:function(e){for(var t=o(e),a=t.length,n=-1,i="";++n>6&31|192):0==(4294901760&e)?(t=c(e>>12&15|224),t+=r(e,6)):0==(4292870144&e)&&(t=c(e>>18&7|240),t+=r(e,12),t+=r(e,6)),t+c(63&e|128)}(t[n]);return i},decode:function(e){i=o(e),s=i.length,l=0;for(var t,a=[];!1!==(t=function(){var e,t;if(s>>10&1023|55296),t=56320|1023&t),i+=c(t);return i}(a)}};void 0===(h=function(){return t}.call(m,p,m,a))||(a.exports=h)}()}.call(m,p(12)(e),function(){return this}())},function(e,t){!function(){"use strict";for(var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256),e=0;e>2],n+=o[(3&t[i])<<4|t[i+1]>>4],n+=o[(15&t[i+1])<<2|t[i+2]>>6],n+=o[63&t[i+2]];return a%3==2?n=n.substring(0,n.length-1)+"=":a%3==1&&(n=n.substring(0,n.length-2)+"=="),n},t.decode=function(e){var t,a,n,i,o=.75*e.length,r=e.length,s=0;"="===e[e.length-1]&&(o--,"="===e[e.length-2]&&o--);for(var o=new ArrayBuffer(o),l=new Uint8Array(o),c=0;c>4,l[s++]=(15&a)<<4|n>>2,l[s++]=(3&n)<<6|63&i;return o}}()},function(r,e){!function(e){function i(e){for(var t=0;t';i=document.createElement(e)}catch(e){(i=document.createElement("iframe")).name=l.iframeId,i.src="javascript:0"}i.id=l.iframeId,l.form.appendChild(i),l.iframe=i}var i,o,r,s,l=this;this.form||(o=document.createElement("form"),r=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index,o.className="socketio",o.style.position="absolute",o.style.top="-1000px",o.style.left="-1000px",o.target=s,o.method="POST",o.setAttribute("accept-charset","utf-8"),r.name="d",o.appendChild(r),document.body.appendChild(o),this.form=o,this.area=r),this.form.action=this.uri(),n(),e=e.replace(d,"\\\n"),this.area.value=e.replace(c,"\\n");try{this.form.submit()}catch(e){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===l.iframe.readyState&&a()}:this.iframe.onload=a}}.call(e,function(){return this}())},function(m,e,p){!function(o){function e(e){e&&e.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=e.perMessageDeflate,this.usingBrowserWebSocket=c&&!e.forceNode,this.usingBrowserWebSocket||(d=t),a.call(this,e)}var t,a=p(26),r=p(27),n=p(36),i=p(37),s=p(38),l=p(3)("engine.io-client:websocket"),c=o.WebSocket||o.MozWebSocket;if("undefined"==typeof window)try{t=p(41)}catch(e){}var d=c;d||"undefined"!=typeof window||(d=t),i(m.exports=e,a),e.prototype.name="websocket",e.prototype.supportsBinary=!0,e.prototype.doOpen=function(){if(this.check()){var e=this.uri(),t={agent:this.agent,perMessageDeflate:this.perMessageDeflate};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(t.headers=this.extraHeaders),this.localAddress&&(t.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket?new d(e):new d(e,void 0,t)}catch(e){return this.emit("error",e)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},e.prototype.addEventListeners=function(){var t=this;this.ws.onopen=function(){t.onOpen()},this.ws.onclose=function(){t.onClose()},this.ws.onmessage=function(e){t.onData(e.data)},this.ws.onerror=function(e){t.onError("websocket error",e)}},e.prototype.write=function(e){var n=this;this.writable=!1;for(var i=e.length,t=0,a=i;t1e3*$.cqd.nobodyAvailableAfterSeconds&&E&&(T.waitingForSupport.style.display="none",1!=$.cqd.callMeBackSetting||!N||1!=$.cqd.unaivalableCallback&&null!=$.cqd.unaivalableCallback?null!=T.noAgentAvailableDOM&&T.noAgentAvailableDOM.classList.contains("_steamlive_chat_no-agent-available--hide")&&0==R&&Ga(C.NO_AGENT_AVAILABLE):(T.nobodyAvailable.style.display="block",T.callBackFormContainerBody.insertBefore(T.nobodyAvailable,T.callBackFormContainerBody.firstChild),pe(_.CALLMEBACK))),b||t(tsFirstContact)&&(E?(J("autoChatFired",!0),b=!0):tsFirstContact+1e3*$.cqd.autoChatSeconds<(new Date).getTime()&&(J("autoChatFired",!0),b=!0,$.cqd.isInOpeningHour&&!$.cqd.inClosingDay||m||1!=xe()?$.cqd.isInOpeningHour&&!$.cqd.inClosingDay&&void 0!==$.cqd.openChatOnDevice&&(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?-1==$.cqd.openChatOnDevice||-2==$.cqd.openChatOnDevice||-1==$.cqd.showOnDevices||m||_t():1==$.cqd.openChatOnDevice||-2==$.cqd.openChatOnDevice||1==$.cqd.showOnDevices||m||_t()):0==$.cqd.chatPopUp&&_t()))},ee=function(){return G("_sc_userId")};function te(){var e;null==(e=G("lastMsgIdx"))&&(e=0),e={surveyPID:$.cqd.surveyPID,targetType:2,targetPID:$.cqd.chatQueuePID,relatedEntity:$.userId,generationDate:Math.round(Date.now()/1e3),lastMsgIdx:e},T.surveyFrame.src="https://"+$.cqd.callcenterName.trim()+"."+u+".eu.com/externalSurvey.aspx?surveyParams="+encodeURIComponent((e=JSON.stringify(e),window.btoa(unescape(encodeURIComponent(e))))),document.body.appendChild(T.surveyPopUpBg),document.body.appendChild(T.surveyPopUp)}function ae(){document.body.removeChild(T.surveyPopUpBg),document.body.removeChild(T.surveyPopUp)}function ne(){T.divConfirmEmail.parentNode.removeChild(T.divConfirmEmail)}function ie(){var e=T.emailTranscriptInput.value;if(void 0===e||null==e||""==e||!Kt(e.trim()))return T.emailTranscriptInputWrapper.classList.add("_steamlive_email-transcript-input-wrapper--error"),T.emailTranscriptInput.focus(),0;T.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),ua();var t="Message log for queue : "+$.cqd.title;void 0!==$.cqd.emailSubject&&""!=$.cqd.emailSubject&&(t=$.cqd.emailSubject),Ee(),re({email:e,sub:t,msg:G("chatTranscript")})}function oe(){T.trRating.style.display="none",Va(),ya()}var re=function(e){var t,a=new XMLHttpRequest,n="noreply@steam.eu";void 0!==$.cqd.replyTo&&""!=$.cqd.replyTo&&Kt($.cqd.replyTo)&&(n=$.cqd.replyTo,n=(n=void 0!==$.cqd.replyToName&&""!=$.cqd.replyToName?$.cqd.replyToName+" <"+$.cqd.replyTo+">":n).replace(/&/g," ").replace(/%/g," ").replace(/#/g," ").replace(/"/g," ")),t="&sub="+e.sub.replace(//g,"").replace(/%/g," ").replace(/#/g," ")+"&to="+e.email+"&from="+n+"&msg="+encodeURIComponent(e.msg)+"&steamliveChatAction=sendMsgLog",a.open("GET",x+"/s/callMeback?"+t,!0),a.setRequestHeader("Content-Type","application/json"),a.onload=function(){200===a.status&&("ok"==a.responseText.toLowerCase()?Ga(C.EMAIL_TRANSCRIPT_SUCCESS_ALERT):Ga(C.EMAIL_TRANSCRIPT_ERROR_ALERT),console.log(a.responseText))},a.send()};function se(){T.divAlert.style.display="none"}function le(e){J("steamBotAlias",(F=e).alias),J("steamBotAvatar",F.avatar)}var ce=function(e,t){T.divAlert.innerHTML="",T.divAlertBody=document.createElement("div"),T.divAlertTxt=document.createElement("div"),T.divAlertBody.className="_steamlive_chat_alertBody",T.divAlertTxt.className="_steamlive_chat_alertTxt",T.divCloseAlert=document.createElement("div"),T.divCloseAlert.style.width="20px",T.divCloseAlert.style.height="20px",T.divCloseAlert.style.color="#ddd",T.divCloseAlert.style.cursor="pointer",T.divCloseAlert.style.position="relative",T.divCloseAlert.style.left="90%",T.divCloseAlert.innerHTML="
X
",T.divCloseAlert.onclick=se,T.divAlertBody.appendChild(T.divCloseAlert),T.divAlertBody.appendChild(T.divAlertTxt),T.divAlert.appendChild(T.divAlertBody),T.divAlertTxt.innerHTML+=e,T.divAlert.onclick=se,T.divAlert.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.divAlert.click()},T.divAlertTxt.setAttribute("role","heading"),T.divAlertTxt.setAttribute("aria-level","2"),T.divAlertTxt.setAttribute("tabindex","0"),T.divAlertBody.setAttribute("tabindex","0"),T.divAlertBody.setAttribute("role","region"),T.divAlertBody.setAttribute("aria-label",Jt("alertnotification")),""!=t&&(T.divAlertBody.innerHTML+=""),T.divAlert.style.display="flex",("none"!=T.trRating.style.display?T.tdRating:T.tdLog).appendChild(T.divAlert)},de=function(e,t){(t||U)&&($.lastMsgIdx=-1,$.userId="",$.msgLog=[],Ht=-1,Dt=null,J("chatTranscript",""),J("msgLog","")),sa(e),Aa()},me=function(){null!==G("steamBotAlias")&&(F.alias=G("steamBotAlias"),F.avatar=G("steamBotAvatar"))},pe=function e(t){T.chatInputWrapper.style.display="none",T.btnSendChat.style.display="none",T.startMessage.style.display="none",T.waitingForSupport.style.display="none",T.divAlert.style.display="none",T.nobodyAvailable.style.display="none",T.log.style.display="none",T.msgInput.disabled=!0,T.btnSendChat.disabled=!0,T.chatLeft.style.display="none",T.statusButtons.btnEditDetails.style.display="none",T.statusButtons.cancelForm.style.display="none",T.statusButtons.btnJoinLeave.style.display="flex",T.iconCloseChat.style.display="none",T.trRating.style.display="none",1!=$.cqd.emailTranscript?T.toolbarButtonsWrapper.classList.add("_steamlive_chat_edit-contact-only"):T.toolbarButtonsWrapper.classList.remove("_steamlive_chat_edit-contact-only"),T.divConfirmEmail.style.display="none",null!=T.fileinputContainer&&(T.fileinputContainer.style.display="none",T.fileinputContainer.disabled=!0),T.statusButtons.btnJoinLeave.className="_steamlive_chat_btn_newChatButton",T.startMessageFormWrapper.contains(T.editContactInfoBtnWrapper)&&T.startMessageFormWrapper.removeChild(T.editContactInfoBtnWrapper),Na(),t===_.UNTOUCHED?H&&(T.startMessage.style.display="block",T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none"):t===_.FILL_IN_DETAILS?Me()&&!Le()?(ra(1),H&&(T.startMessage.style.display="block",T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none")):N&&(T.startMessage.style.display="block",T.nobodyAvailable.style.display="block",T.waitingForSupportText.style.display="none",T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none",ra(2),T.startMessageFormWrapper.contains(T.startChatMessage)&&T.startMessageFormWrapper.removeChild(T.startChatMessage)):t===_.CALLMEBACK?(Va(),T.startMessage.style.display="block",T.nobodyAvailable.style.display="block",T.waitingForSupportText.style.display="none",T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none",ra(2),T.startMessageFormWrapper.contains(T.startChatMessage)&&T.startMessageFormWrapper.removeChild(T.startChatMessage),t=_.QUIT):t===_.EDIT_DETAILS?(Va(),T.startMessage.style.display="block",T.startMessageFormWrapper.contains(T.startChatMessage)&&T.startMessageFormWrapper.removeChild(T.startChatMessage),T.startMessageFormWrapper.appendChild(T.editContactInfoBtnWrapper),Ia()):t===_.WAITING_FOR_AGENT?Me()&&!Le()&&(T.statusButtons.btnJoinLeave.style.display="flex",T.iconCloseChat.style.display="block",we()<=1?(Se(),Ia(),T.waitingForSupport.style.display="flex",T.waitingForSupportText.style.display="block"):(Ae(),T.waitingForSupport.style.display="none",e(_.CHATTING)),Va(),H&&(T.statusButtons.btnEditDetails.style.display="flex"),T.statusButtons.btnJoinLeave.innerHTML=Jt("leaveChat")):t===_.TRANSFER_TO_AGENT?(T.statusButtons.btnJoinLeave.style.display="flex",we()<=2?E&&(T.waitingForSupport.style.display="flex",T.waitingForSupportText.style.display="block"):(Ae(),T.waitingForSupport.style.display="none",e(_.CHATTING)),Va(),H&&(T.statusButtons.btnEditDetails.style.display="flex"),T.statusButtons.btnJoinLeave.innerHTML=Jt("leaveChat")):t===_.CHATTING?(H&&(T.statusButtons.btnEditDetails.style.display="flex"),T.openingHoursWrapper.style.display="none",T.trLog.style.display="block",T.tdLog.style.display="block",T.log.style.display="block",T.msgInput.disabled=!1,T.btnSendChat.disabled=!1,T.chatInputWrapper.style.display="flex",T.btnSendChat.style.display="block",null!=T.fileinputContainer&&(T.fileinputContainer.disabled=!1,T.fileinputContainer.style.display="block"),T.statusButtons.btnJoinLeave.innerHTML=Jt("leaveChat"),T.iconCloseChat.style.display="block",Ja(),Ia()):t===_.QUIT&&(!Me()||Le()?(T.log.style.display="none",T.trRating.style.display="none",T.startMessage.style.display="block",Va()):(ra(1),Va(),T.log.style.display="block"),T.statusButtons.btnJoinLeave.innerHTML=Jt("reopenChat"),T.iconCloseChat.style.display="none",1==G("_sc_b")?Ga(C.BANNED_SESSION):(Ga(C.CHAT_RATING),Ia())),t!==_.QUIT&&t!==_.UNTOUCHED||!0===o&&!1===r&&(Ee(),w.disconnect()),ma(!0),J("mode",t),h=t,st()};window.dataLayer=window.dataLayer||[];function he(){dataLayer.push(arguments)}var ue=function(e){try{if(void 0!==$.cqd.active&&0==$.cqd.active)return!1;var t,a,n;void 0!==$.cqd.analytics&&1==$.cqd.analytics&&((t=document.createElement("script")).onload=function(){he("js",new Date),he("config",$.cqd.analyticsTrackingCode),he("event","Chat loaded",{event_action:"Chat loaded",event_category:"Chat Pop-up",event_label:Date.now()})},t.src="https://www.googletagmanager.com/gtag/js?id="+$.cqd.analyticsTrackingCode,document.head.appendChild(t)),Gt($.cqd.forceLanguage),T.editContactSpan.title=T.editContactSpan.textContent=Jt("editDetails"),T.emailTranscriptSpan.title=T.emailTranscriptSpan.textContent=Jt("emailTranscript"),T.startChatMessageP.innerHTML=Jt("clickStartChat"),T.btnSaveEditContactInfo.textContent=Jt("save"),T.btnCancelEditContactInfo.textContent=Jt("cancel"),fe(),T.callMeBackSuccess.innerHTML=Jt("informationSent"),T.statusButtons.btnEditDetails.innerHTML=Jt("editDetails"),T.title.innerHTML="",T.title.appendChild(T.agentImage),T.txtTitle.innerHTML=$.cqd.title,T.txtTitle.setAttribute("title",$.cqd.title),T.title.appendChild(T.txtTitle),T.title.appendChild(T.iconMinimizeChat),T.title.appendChild(T.iconWideChat),T.title.appendChild(T.iconCloseChat),T.waitingForSupportText.innerHTML=$.cqd.waitingForSupportText,T.nobodyAvailable.innerHTML=$.cqd.nobodyAvailableText,T.statusButtons.btnEditDetails.innerHTML=Jt("editDetails"),1==$.cqd.callMeBackSetting&&N?(T.btnCloseOpeningHours.onclick=function(){Ce(!1),Da(),T.callBackFormContainer.focus()},T.btnCloseOpeningHours.innerHTML=Jt("fillCallBackInformation"),T.btnCloseOpeningHours.setAttribute("aria-label",Jt("fillCallBackInformation")),""!=$.cqd.callMebackText&&void 0!==$.cqd.callMebackText?(T.callMebackButton.innerHTML=$.cqd.callMebackText,T.btnCloseOpeningHours.innerHTML=$.cqd.callMebackText):T.callMebackButton.innerHTML=Jt("callMeBack")):T.btnCloseOpeningHours.innerHTML=Jt("close"),T.btnShowOpeningHoursDetails.innerHTML=Jt("showAll"),T.msgInput.placeholder=Jt("msgPlaceholder"),T.chatLeft.innerHTML=Jt("chatLeft"),""!=$.cqd.msgPlaceHolder&&(T.msgInput.placeholder=$.cqd.msgPlaceHolder),T.openingHours.innerHTML="",void 0!==$.cqd.msgStartChat&&""!=$.cqd.msgStartChat&&(T.startChatMessageP.innerHTML=$.cqd.msgStartChat),void 0!==$.cqd.inClosingDay&&(Le()?(T.openingHoursWrapper.style.display="none",T.openingHours.style.display="none",T.iconCloseChat.style.display="none",Ga(C.CLOSING_DAY),Na()):null!==(a=ze())?((n=document.createElement("div")).className="_steamlive_chat_OpeningHoursTableWrapper",n.classList.add(Ge($.cqd.chatColorSchemeID)),n.appendChild(a),n.appendChild(T.btnShowOpeningHoursDetails),T.openingHours.innerHTML="
"+$.cqd.outsideWorkingHoursText+"
"+Jt("openingHours")+"
("+$.cqd.chatTimezone+")
",T.openingHours.appendChild(n),T.openingHours.appendChild(T.btnCloseOpeningHours),Me()?Ce(!1):h!==_.WAITING_FOR_AGENT&&h!==_.CHATTING&&(Ce(!0),T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none")):Ce(!1)),ot(e),$.cqd.isInOpeningHour&&!$.cqd.inClosingDay||void 0!==$.cqd.chatPopUp&&(1==$.cqd.chatPopUp?gt():m||_t()),Ya(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0!==$.cqd.showOnDevices&&-1==$.cqd.showOnDevices&&Ra():void 0!==$.cqd.showOnDevices&&1==$.cqd.showOnDevices&&Ra(),d=ye(),ma(e),void 0===T.fileinputContainer&&(T.fileinputContainer=document.createElement("label")),"undefined"!==$.cqd.showEmojis&&1!==$.cqd.showEmojis||(function(){I=[128512,128513,128514,128515,128516,128517,128518,128519,128520,128521,128522,128523,128524,128525,128526,128527,128528,128529,128530,128531,128532,128533,128534,128535,128536,128537,128538,128539,128540,128541,128542,128543,128544,128545,128546,128547,128548,128549,128550,128551,128552,128553,128554,128555,128556,128557,128558,128559,128560,128561,128562,128563,128564,128565,128566,128567,128577,128578,128579,128580,129296,129297,129298,129299,129300,129301,129312,129313,129314,129315,129316,129317,129319,129320,129321,129322,129323,129324,129325,129326],T.emojisContainer=document.createElement("div"),T.emojisContainer.className="_steamlive_chat_emojisContainer",T.emojisContainer.setAttribute("tabindex","0"),T.emojisContainer.addEventListener("keydown",function(e){if("Tab"===e.key){var t=T.emojisContainer.querySelectorAll("._steamlive_chat_emoji");const a=t[t.length-1],n=t[0];t=(T.frame.contentDocument||T.frame.contentWindow.document).activeElement;t!==a||e.shiftKey?t===n&&e.shiftKey&&(e.preventDefault(),a.focus()):(e.preventDefault(),n.focus())}});for(var e=0;e',T.emojisInput.onclick=da,T.emojisInput.classList.add(Je()),T.emojisInput.setAttribute("role","button"),T.emojisInput.setAttribute("tabindex","0"),T.emojisInput.setAttribute("aria-label","Open emoji picker"),T.emojisInput.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(T.emojisInput.click(),T.emojisContainer.focus())}),T.chatInputWrapper.appendChild(T.emojisInput)),void 0!==$.cqd.attachment&&1==$.cqd.attachment&&Me()&&!Le()&&(T.fileinput=document.createElement("input"),T.fileinput.type="file",T.fileinput.className="_steamlive_chat_fileinput",T.fileinputContainer.className="_steamlive_chat_fileinputContainer",T.fileinputImg=document.createElement("span"),T.fileinputImg.className="_steamlive_chat_fileinputImg",T.fileinputImg.setAttribute("role","button"),T.fileinputImg.setAttribute("tabindex","0"),T.fileinputImg.setAttribute("aria-label",Jt("uploadfile")),T.fileinputImg.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||T.fileinputImg.click()}),T.fileinputImg.innerHTML='',T.fileNameContainer=document.createElement("div"),T.fileName=document.createElement("div"),T.closeFileName=document.createElement("div"),T.fileNameContainer.className="_steamlive_chat_fileNameContainer",T.fileName.className="_steamlive_chat_fileName",T.closeFileName.className="_steamlive_chat_closeFileName",T.closeFileName.innerHTML="X",T.closeFileName.onclick=ve,T.closeFileName.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||ve()}),T.fileNameContainer.setAttribute("role","region"),T.fileNameContainer.setAttribute("tabindex","0"),T.closeFileName.setAttribute("role","button"),T.closeFileName.setAttribute("aria-label",Jt("remove_Attachement")),T.closeFileName.setAttribute("tabindex","0"),T.fileName.setAttribute("tabindex","0"),T.fileNameContainer.appendChild(T.fileName),T.fileNameContainer.appendChild(T.closeFileName),T.fileinputContainer.appendChild(T.fileNameContainer),T.fileinputContainer.appendChild(T.fileinput),T.chatInputWrapper.appendChild(T.fileinputImg),T.fileinputImg.onclick=We,T.fileinput.onchange=je,T.fileinput.addEventListener("dragover",function(e){return(e=e||event).preventDefault(),0},!1)),T.msg.appendChild(T.fileinputContainer),T.contactInfoHeading.innerHTML=Jt("contactInformation"),T.btnSendTranscript.innerHTML=Jt("emailTranscript"),1!=$.cqd.emailTranscript?T.toolbarButtonsWrapper.classList.add("_steamlive_chat_edit-contact-only"):T.toolbarButtonsWrapper.classList.remove("_steamlive_chat_edit-contact-only"),function(){if(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){if(-1==$.cqd.showTriggerMsgOnDevices)return}else if(1==$.cqd.showTriggerMsgOnDevices)return;null==E||E||O||1!=$.cqd.triggerMessages||null==$.cqd.triggerMessageText||""==$.cqd.triggerMessageText.trim()||(triggerSetting=JSON.parse($.cqd.triggerMessageText.trim()),function e(t){null!=t[ja]&&0==t[ja].active?(ja++,e(t)):setTimeout(function(){Wa(t[ja].message),setTimeout(function(){Ua(),null!=t[++ja]&&e(t)},1e3*t[ja].duration)},1e3*t[ja].delay)}(triggerSetting))}(),1==$.cqd.contactChannelCall&&(T.contactChannels.callOption.href="tel:"+$.cqd.contactChannelCallNumber)}catch(e){console.log(e)}};var ge,ve=function(e){e.preventDefault(),e.stopPropagation(),T.fileName.innerHTML="",T.fileNameContainer.style.display="none",B=null},fe=function(){if(L=[],T.inputName.value=G("_sc_name"),T.inputEmail.value=G("_sc_email"),void 0!==$.cqd.websiteBoxpid&&0<$.cqd.websiteBoxpid&&((c=Ye("","boxPID_"+$.cqd.websiteBoxpid,void 0,void 0,"websitebox")).type="hidden",T.formContainer.appendChild(c),J("boxPID_"+$.cqd.websiteBoxpid,window.location.href),ea()),void 0!==$.cqd.id){if(null!=$.cqd.contactFormJsonData[0]&&"{}"!=$.cqd.contactFormJsonData[0]&&""!=$.cqd.contactFormJsonData[0]){T.inputName.style.display="none",T.inputEmail.style.display="none";var e=JSON.parse($.cqd.contactFormJsonData);for(m in e){var t,a=e[m][0];for(t in a)"2"===a[t][0].type?"name"==a[t][0].default?(a[t][0].showInContactForm&&(T.formContainer.removeChild(T.inputName),T.inputName=Ye(a[t][0].caption,"name",a[t][0].mandatory,a[t][0].length,"boxPID_"+t),T.formContainer.appendChild(T.inputName)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild(Ye(a[t][0].caption,"callMeBack_name",a[t][0].mandatory,a[t][0].length,"callMeBack_boxPID_"+t)),L.push("boxPID_"+t))):"email"==a[t][0].default?(a[t][0].showInContactForm&&(T.formContainer.removeChild(T.inputEmail),T.inputEmail=Ye(a[t][0].caption,"email",a[t][0].mandatory,a[t][0].length,"boxPID_"+t),T.formContainer.appendChild(T.inputEmail)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild(Ye(a[t][0].caption,"callMeBack_email",a[t][0].mandatory,a[t][0].length,"callMeBack_boxPID_"+t)),L.push("boxPID_"+t))):(a[t][0].showInContactForm&&T.formContainer.appendChild(Ye(a[t][0].caption,"boxPID_"+t,a[t][0].mandatory,a[t][0].length)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild(Ye(a[t][0].caption,"callMeBack_boxPID_"+t,a[t][0].mandatory,a[t][0].length)),L.push("boxPID_"+t))):"4"===a[t][0].type?(a[t][0].showInContactForm&&T.formContainer.appendChild(Ze(a[t][0].caption,"boxPID_"+t,a[t][0].mandatory)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild(Ze(a[t][0].caption,"callMeBack_boxPID_"+t,a[t][0].mandatory)),L.push("boxPID_"+t))):"3"===a[t][0].type?(a[t][0].showInContactForm&&T.formContainer.appendChild(Xe(a[t][0].caption,"boxPID_"+t,a[t][0].mandatory,a[t][0].options)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild(Xe(a[t][0].caption,"callMeBack_boxPID_"+t,a[t][0].mandatory,a[t][0].options)),L.push("boxPID_"+t))):"5"===a[t][0].type&&(a[t][0].showInContactForm&&T.formContainer.appendChild($e(a[t][0].caption,"boxPID_"+t,a[t][0].mandatory)),a[t][0].showInCallMeBack&&(T.callBackFormContainerBody.appendChild($e(a[t][0].caption,"callMeBack_boxPID_"+t,a[t][0].mandatory)),L.push("boxPID_"+t))),1==a[t][0].showInCallMeBack&&(N=!0),1==a[t][0].showInContactForm&&(H=!0)}H?G("mode")==_.FILL_IN_DETAILS&&pe(_.FILL_IN_DETAILS):(T.statusButtons.btnEditDetails.style.display="none",T.contactInfoHeading.style.display="none",T.toolbarButtonsWrapper.classList.add("_steamlive_chat_email-transcript-only"),Ga(C.START_CHAT)),Me()&&!Le()?(T.startMessageFormWrapper.contains(T.callBackFormContainer)&&T.startMessageFormWrapper.removeChild(T.callBackFormContainer),H||T.startMessageFormWrapper.contains(T.startChatMessage)||(T.startMessageFormWrapper.style.display="none")):ra(2),0==$.cqd.callMeBackSetting&&(T.callBackFormContainer.innerHTML=""),ea()}else T.startMessageFormWrapper.contains(T.startChatMessage)||(T.startMessageFormWrapper.style.display="none"),T.statusButtons.btnEditDetails.style.display="none",T.contactInfoHeading.style.display="none",T.toolbarButtonsWrapper.classList.add("_steamlive_chat_email-transcript-only"),Ga(C.START_CHAT);if(N&&1==$.cqd.callMeBackSetting){if(1==$.cqd.chatCallBackDateSetting||2==$.cqd.chatCallBackDateSetting){var n=0;1==$.cqd.chatCallBackDateSetting&&(n=1);var i=document.createElement("div"),o=Ye(Jt("callBackDate"),"callMeBackDate",n,20,"callMeBack_callMeBackDate","date"),r=new Date,s=r.getDate(),l=r.getMonth()+1,c=r.getFullYear();o.value=r=c+"-"+(l=l<10?"0"+l:l)+"-"+(s=s<10?"0"+s:s);for(var d=new Array,m=0;m<24;m++)d.push({pid:ia(m,2),caption:ia(m,2),enabled:!1});for(var p=new Array,m=0;m<60;m+=15)p.push({pid:ia(m,2),caption:ia(m,2),enabled:!1});if(void 0!==$.cqd.callbackHours){var h=JSON.parse($.cqd.callbackHours).callbackHours;if(0=h[m].callbackHourStart&&hourOption<=h[m].callbackHourEnd&&(d[j].enabled=!0)}else for(m=0;m=t[e].callbackHourStart&&hourOption<=t[e].callbackHourEnd&&(d[j].enabled=!0);var n=document.createElement("option");n.value=0,n.text="* "+Jt("hoursTime"),n.style.color="#464646",g.appendChild(n);for(var i,e=0;e=t[e].callbackHourStart&&hourOption<=t[e].callbackHourEnd&&(p[j].enabled=!0);var n=document.createElement("option");n.value=0,n.text="* "+Jt("minutesTime"),n.style.color="#464646",v.appendChild(n);for(var i,e=0;eChat Transcript",t.appendChild(a),e.appendChild(t),e.style.width="1000px",e.style.fontFamily=$.cqd.chatFontFamily,1==$.cqd.fontItalic&&(e.style.fontStyle="italic"),1==$.cqd.fontBold&&(e.style.fontWeight="bold");for(var r,s,l,c=0;c/g,"").replace(/%/g," ").replace(/#/g," ")),divSender.innerHTML+="
"+r+"
"):n[c].uId===$.userId?divSender.innerHTML+="
"+G("_sc_name").replace(/&/g," ").replace(//g,"").replace(/%/g," ").replace(/#/g," ")+"
":divSender.innerHTML+="
Support
",n[c].uId,$.userId,s.style.margin="5px",s.style.padding="5px",s.style.paddingLeft="10px",leftCellMessage.style.width="200px",leftCellMessage.appendChild(divSender),rightCellMessage.appendChild(s)),0<=n[c].m.indexOf("{file}")&&(l=JSON.parse(n[c].m.replace("{file}","")),n[c].m=l.filename),(l=document.createElement("div")).innerHTML=n[c].m,s.innerHTML+=function t(e){if(null==e)return"";{if(e.nodeType==Node.TEXT_NODE)return e.textContent;if(e.nodeType==Node.ELEMENT_NODE){var a=[];return e.childNodes.forEach(e=>{e=t(e);0").replace(/&/g," ").replace(/%/g," ").replace(/#/g," ")}}return""}(l)+"
",(c===n.length-1||null!==n[c+1]&&void 0!==n[c+1])&&(c===n.length-1||12e4"+Jt("msgSentAt")+" "+l.toLocaleString()+"
")),i=n[c].ts,o=n[c].uId);J("chatTranscript",e.outerHTML)};var ke=function(){T.log.innerHTML="";for(var e,t,a,n,i,o,r=document.createElement("div"),s=$.msgLog,l=-1,c=null,d=0;d":""!==F.avatar?i.innerHTML="":i.innerHTML="":void 0!==M[s[d].uId]&&1==$.cqd.chatAvatar&&(void 0!==M[s[d].uId].avatar&&1==$.cqd.avatarType?i.innerHTML="":void 0!==M[s[d].uId].avatar&&void 0!==$.cqd.defaultAvatar&&""!=$.cqd.defaultAvatar?i.innerHTML="":(i.innerHTML='',i.classList.add(Je()))),a.className="_steamlive_chat_divMsgContainer",t.className="_steamlive_chat_divMsgWrapper",divMsgDateDiv.className="_steamlive_chat_divMsgDateDiv",1==$.cqd.chatAvatar&&a.appendChild(i),a.appendChild(e),r.appendChild(a);try{void 0!==G("transferTime")&&null!=s[d-1]&&Number(G("transferTime"))>=s[d-1].ts&&Number(G("transferTime"))<=s[d].ts&&((n=document.createElement("div")).className="_steamlive_chat_divMsgtransferDiv",n.innerHTML=""+Jt("transferredChat")+"",r.appendChild(n))}catch(e){}null!=s[d-1]&&(0==d||1<=d&&36e5",divMsgDateDiv.style.color="#"+$.cqd.chatReceiverTextColor,divMsgDateDiv.style.borderColor="#"+$.cqd.chatReceiverTextColor,r.insertBefore(divMsgDateDiv,a)),s[d].uId===$.userId?(e.className="_steamlive_chat_message r",i.className=i.className+" _steamlive_chat_avatar r",t.style.backgroundColor="#"+$.cqd.chatSenderbackgroundColor,t.style.color="#"+$.cqd.chatSenderTextColor,t.style.borderColor="#"+$.cqd.chatSenderborderColor):(e.className="_steamlive_chat_message l",i.className=i.className+" _steamlive_chat_avatar l",t.style.backgroundColor="#"+$.cqd.chatReceiverbackgroundColor,t.style.color="#"+$.cqd.chatReceiverTextColor,t.style.borderColor="#"+$.cqd.chatReceiverborderColor),e.style.fontSize=$.cqd.chatFontSize,e.setAttribute("role","article"),e.setAttribute("aria-label","article"),e.appendChild(t),e.onmouseover=Rt,e.onmouseleave=Ft,e.onclick=Ot,void 0!==M[s[d].uId]&&void 0!==M[s[d].uId].alias?null!=(i=M[s[d].uId].alias)&&0==i.toLowerCase().startsWith("visitor_")&&(t.innerHTML="
"+i+"
"):s[d].uId===$.userId?t.innerHTML="
"+G("_sc_name")+"
":t.innerHTML="
"+("steamBot"==s[d].uId?s[d].userName:"Support")+"
"}s[d].uId===$.userId?t.innerHTML+=Nt(s[d].m.replace(/&/g,"&").replace(//g,">"),"#"+$.cqd.chatSenderTextColor)+"
":t.innerHTML+=Nt(s[d].m,"#"+$.cqd.chatReceiverTextColor)+"
",(d===s.length-1||null!==s[d+1]&&void 0!==s[d+1])&&(d===s.length-1||12e4"+Jt("msgSentAt")+" "+o.toLocaleString()+"
")),l=s[d].ts,c=s[d].uId}Ht=s[s.length-1].ts}void 0!==T.log.children[0]?T.log.insertBefore(r,T.log.children[0]):T.log.appendChild(r),T.log.scrollTop=T.log.scrollHeight},Te=function e(){try{U&&unpauseFlowChart()}catch(e){console.log(e)}return!(!Me()||Le())&&(!$t()&&(!1===o&&!1===r?sa(e):h===_.UNTOUCHED?pe(_.FILL_IN_DETAILS):h!==_.FILL_IN_DETAILS&&h!==_.QUIT||(Za(Jt("waitingforsupport")),pe(_.WAITING_FOR_AGENT),T.waitingForSupportWrapper.focus()),void Fa()))},xe=function(){return 1==$.cqd.virtualAgents&&-1!=$.cqd.vaPID&&0!=$.cqd.vaStatus},Me=function(){return!!xe()||$.cqd.isInOpeningHour},Le=function(){return!xe()&&$.cqd.inClosingDay},Ae=function(){null!=M[$.userId]&&(M[$.userId].alias=T.inputName.value),!0===s&&!0===o&&w.emit("requestSupport",Zt())},Se=function(){D||(null===y&&(y=(new Date).getTime(),J("tsWaitingForSupport",y)),!0===s&&!0===o&&(D=!0,w.emit("requestSupport",Zt())))},Be=function(){var e,t;T.frame=document.createElement("iframe"),T.frame.src="",Ra(),T.frame.style.right="30px",T.frame.style.position="fixed",T.frame.frameBorder=0,T.frame.style.zIndex="2147483647",T.frame.className="_steamlive_chat_frame",T.frame.setAttribute("aria-label",Jt("liveChaWidget")),T.frame.setAttribute("role","region"),T.frame.tabIndex=0,T.frame.style.backgroundColor="#F5F5F5",T.frame.style.boxShadow="0 8px 10px -5px #0003, 0 16px 24px 2px #00000024, 0 6px 30px 5px #0000001f",U?(T.frame.style.bottom="0px",T.frame.style.width="350px",T.frame.style.maxWidth="350px",T.frame.style.minHeight="547px",T.frame.style.borderRadius="14px 14px 0 0"):(T.frame.style.width="400px",T.frame.style.maxWidth="400px",T.frame.style.height="600px",T.frame.style.maxHeight="calc(100% - 50px)",T.frame.style.borderRadius="14px",T.frame.style.bottom="30px"),T.main=document.createElement("div"),T.main.className="_steamlive_chat_main",T.main.style.display="none",T.main.addEventListener("click",pt),T.main.tabIndex=0,T.main.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||pt(e)}),T.chatContainer=document.createElement("div"),T.chatContainer.classList.add("_steamlive_chat_container"),T.liveRegion=document.createElement("div"),T.liveRegion.setAttribute("aria-live","polite"),T.liveRegion.setAttribute("role","status"),T.liveRegion.style.position="absolute",T.liveRegion.style.left="-9999px",T.liveRegion.style.width="1px",T.liveRegion.style.height="1px",T.liveRegion.style.overflow="hidden",T.liveRegion.id="aria-status",T.chatContainer.appendChild(T.liveRegion),U&&(T.frame.classList.add("_steamlive_chat_frame_preview"),T.main.classList.add("_steamlive_chat_main_preview"),T.chatContainer.classList.add("_steamlive_chat_container_preview")),T.chatToolbarButtons=document.createElement("div"),T.trLog=document.createElement("div"),T.trMsg=document.createElement("div"),T.trStatus=document.createElement("div"),T.trRating=document.createElement("div"),T.closeChatConfirmation=nt(),T.emailTranscriptDOM=pa(),T.emailTranscriptAlertDOM=ga(),T.chatRatingDOM=fa(),T.chatRateSentDOM=xa(),T.reopenChatFormDOM=La(),T.bannedSessionDOM=Sa(),T.closingDayDOM=Ha(),T.noAgentAvailableDOM=(t=document.createElement("div"),n=document.createElement("div"),e=document.createElement("img"),a=document.createElement("div"),t.classList.add("_steamlive_chat_no-agent-available","_steamlive_chat_no-agent-available--hide"),n.classList.add("_steamlive_chat_no-agent-available-modal"),e.classList.add("_steamlive_chat_no-agent-available-icon"),a.classList.add("_steamlive_chat_no-agent-available-message"),n.setAttribute("tabindex","0"),n.setAttribute("role","alert"),n.setAttribute("aria-live","assertive"),n.appendChild(e),n.appendChild(a),t.appendChild(n),T.noAgentAvailableIcon=e,T.noAgentAvailableMessage=a,t),T.startChatDOM=(n=document.createElement("div"),e=document.createElement("div"),a=document.createElement("img"),t=document.createElement("button"),n.classList.add("_steamlive_chat_start-chat","_steamlive_chat_start-chat--hide"),e.classList.add("_steamlive_chat_start-chat-modal"),a.classList.add("_steamlive_chat_start-chat-icon"),t.classList.add("_steamlive_chat_start-chat-button"),t.addEventListener("click",Te),t.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(Te(),T.waitingForSupportWrapper.setAttribute("tabindex","0"),T.waitingForSupportWrapper.focus())}),e.appendChild(a),e.appendChild(t),n.appendChild(e),T.startChatIcon=a,T.startChatButton=t,n),T.minimizeCloseBtnDOM=function(){var e=document.createElement("button");e.classList.add("_steamlive_chat_close-chat-button"),e.innerHTML='',0==na()&&(e.style.display="none");return e.addEventListener("click",function(){tt(),pe(_.QUIT),Ra()}),e}(),T.triggerMessage=(a=document.createElement("div"),t=document.createElement("button"),n=document.createElement("div"),a.setAttribute("role","alert"),a.setAttribute("aria-live","polite"),a.classList.add("_steamlive_chat-trigger-message-wrapper","_steamlive_chat-trigger-message-wrapper--hide"),t.classList.add("_steamlive_chat-trigger-message-close-btn"),n.classList.add("_steamlive_chat-trigger-message-text"),t.innerHTML='',a.addEventListener("click",pt),t.addEventListener("click",function(e){e.stopPropagation(),Ua()}),t.setAttribute("aria-label",Jt("closeTriggermessage")),t.setAttribute("type","button"),n.setAttribute("role","text"),a.setAttribute("tabindex","0"),a.appendChild(t),a.appendChild(n),T.triggerMessageText=n,a),T.minimizeAgentImage=((n=document.createElement("img")).classList.add("_steamlive_chat_minimizeAgentImage"),n.style.display="none",n.addEventListener("click",pt),n.addEventListener("error",za),n),T.chatToolbar=document.createElement("div"),T.tdLog=document.createElement("div"),T.msg=document.createElement("div"),T.msg.className="_steamlive_chat_status_msg_td",T.tdStatus=document.createElement("div"),T.tdStatus.className="_steamlive_chat_status_td",T.tdRating=document.createElement("div"),T.toolbarTriggerBtnWrapper=document.createElement("div"),T.chatToolbarTriggerBtn=document.createElement("button"),T.toolbarButtonsShadow=document.createElement("div"),T.toolbarButtonsWrapper=document.createElement("div"),T.editContactInfoBtn=document.createElement("button"),T.emailTranscriptBtn=document.createElement("button"),T.divActionsContainer=document.createElement("div"),T.divChatSessionEnded=document.createElement("div"),T.divRatingMessage=document.createElement("div"),T.divChatActions=document.createElement("div"),T.divCommentMsg=document.createElement("div"),T.divCommentArea=document.createElement("TEXTAREA"),T.btnSendFeedBack=it(Jt("sendFeedBack"),X),T.btnNoFeedBack=it(Jt("noThanks"),oe),T.surveyButton=it(Jt("fillSurvey"),te),T.surveyPopUp=document.createElement("div"),T.surveyPopUpHeader=document.createElement("div"),T.surveyPopUpFooter=document.createElement("div"),T.surveyPopUpBg=document.createElement("div"),T.surveyPopUpHeaderCloseBtn=document.createElement("div"),T.surveyPopUpFooterCloseBtn=document.createElement("div"),T.surveyFrame=document.createElement("iframe"),T.divChatLike=document.createElement("div"),T.divChatdisLike=document.createElement("div"),T.divChatRatingStar1=document.createElement("div"),T.divChatRatingStar2=document.createElement("div"),T.divChatRatingStar3=document.createElement("div"),T.divChatRatingStar4=document.createElement("div"),T.divChatRatingStar5=document.createElement("div"),T.divChatRatingStarsContainer=document.createElement("div"),T.divChatLike.innerHTML='',T.divChatdisLike.innerHTML='',T.divChatRatingStar1.innerHTML='',T.divChatRatingStar2.innerHTML='',T.divChatRatingStar3.innerHTML='',T.divChatRatingStar4.innerHTML='',T.divChatRatingStar5.innerHTML='',T.divChatLike.className="_steamlive_chat_like",T.divChatdisLike.className="_steamlive_chat_dislike",T.divChatRatingStar1.className="_steamlive_chat_starRating _steamlive_chat_starRating1",T.divChatRatingStar2.className="_steamlive_chat_starRating _steamlive_chat_starRating2",T.divChatRatingStar3.className="_steamlive_chat_starRating _steamlive_chat_starRating3",T.divChatRatingStar4.className="_steamlive_chat_starRating _steamlive_chat_starRating4",T.divChatRatingStar5.className="_steamlive_chat_starRating _steamlive_chat_starRating5",T.toolbarTriggerBtnWrapper.className="_steamlive_chat_toolbar-trigger-wrapper",T.chatToolbarTriggerBtn.className="_steamlive_chat_toolbar-trigger",T.chatToolbarTriggerBtn.setAttribute("aria-label",Jt("expandToolbarBtn")),T.toolbarButtonsShadow.className="_steamlive_chat_toolbar-buttons-shadow",T.toolbarButtonsWrapper.className="_steamlive_chat_toolbar-buttons-wrapper",T.editContactInfoBtn.className="_steamlive_chat_toolbar-btn _steamlive_chat_toolbar-btn--left",T.emailTranscriptBtn.className="_steamlive_chat_toolbar-btn _steamlive_chat_toolbar-btn--right",T.trRating.className="_steamlive_chat_rating",T.divChatActions.className="_steamlive_chat_ratingActions",T.divActionsContainer.className="_steamlive_chat_ratingActionsContainer",T.divChatSessionEnded.className="_steamlive_chat_divChatSessionEnded",T.divRatingMessage.className="_steamlive_chat_divRatingMessage",T.divCommentMsg.className="_steamlive_chat_divLeaveComment",T.divCommentArea.className="_steamlive_chat_commentArea",T.btnSendFeedBack.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton _steamlive_chat_btnSendFeedBack",T.surveyButton.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton _steamlive_chat_btnSurvey",T.btnNoFeedBack.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btnNoFeedBack",T.surveyPopUp.className="_steamlive_chat_surveyPopUp",T.surveyPopUpBg.className="_steamlive_chat_surveyPopUpBg",T.surveyPopUpHeader.className="_steamlive_chat_surveyPopUpHeader",T.surveyPopUpFooter.className="_steamlive_chat_surveyPopUpFooter",T.surveyPopUpHeaderCloseBtn.className="_steamlive_chat_surveyPopUpHeaderCloseBtn",T.surveyPopUpFooterCloseBtn.className="_steamlive_chat_surveyPopUpFooterCloseBtn",T.surveyFrame.id="_steamlive_chat_surveyFrame",T.surveyFrame.className="_steamlive_chat_surveyFrame",T.toolbarButtonsWrapper.setAttribute("tabindex","0"),T.chatToolbarTriggerBtn.innerHTML='';var a=document.createElement("span");a.textContent=Jt("editDetails"),T.editContactInfoBtn.innerHTML='',T.editContactInfoBtn.appendChild(a),T.editContactInfoBtn.addEventListener("click",Qe);var n=document.createElement("span");n.textContent=Jt("emailTranscript"),T.emailTranscriptBtn.innerHTML='',T.emailTranscriptBtn.appendChild(n),T.emailTranscriptBtn.addEventListener("click",function(){Fe(),Ga(C.EMAIL_TRANSCRIPT)}),T.editContactSpan=a,T.emailTranscriptSpan=n,T.chatToolbarTriggerBtn.onclick=Re,T.chatToolbarTriggerBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.chatToolbarTriggerBtn.click()},T.editContactInfoBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.editContactInfoBtn.click()},T.emailTranscriptBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.emailTranscriptBtn.click()},T.divChatLike.onclick=Z,T.divChatdisLike.onclick=Z,T.surveyPopUpHeaderCloseBtn.onclick=ae,T.surveyPopUpFooterCloseBtn.onclick=ae,T.divChatRatingStar1.onclick=Z,T.divChatRatingStar2.onclick=Z,T.divChatRatingStar3.onclick=Z,T.divChatRatingStar4.onclick=Z,T.divChatRatingStar5.onclick=Z,T.surveyContainer=document.createElement("div"),T.surveyContainer.className="_steamlive_chat_surveyContainer",T.surveyText=document.createElement("div"),T.surveyText.className="_steamlive_chat_surveyText",T.surveyTitle=document.createElement("div"),T.surveyTitle.className="_steamlive_chat_surveyTitle",T.surveyTitle.innerHTML="Your opinion matters",T.surveyText.innerHTML="Please fill this survey",T.surveyPopUpFooterCloseBtn.innerHTML="Close survey",T.surveyContainer.appendChild(T.surveyTitle),T.surveyContainer.appendChild(T.surveyText),T.surveyContainer.appendChild(T.surveyButton),T.divActionsContainer.appendChild(T.divChatSessionEnded),T.divActionsContainer.appendChild(T.divRatingMessage),T.divActionsContainer.appendChild(T.divChatActions),T.divActionsContainer.appendChild(T.divCommentMsg),T.divActionsContainer.appendChild(T.divCommentArea),T.divActionsContainer.appendChild(T.btnSendFeedBack),T.divActionsContainer.appendChild(T.btnNoFeedBack),T.divChatRatingStarsContainer.appendChild(T.divChatRatingStar1),T.divChatRatingStarsContainer.appendChild(T.divChatRatingStar2),T.divChatRatingStarsContainer.appendChild(T.divChatRatingStar3),T.divChatRatingStarsContainer.appendChild(T.divChatRatingStar4),T.divChatRatingStarsContainer.appendChild(T.divChatRatingStar5),T.tdRating.appendChild(T.divActionsContainer),T.tdRating.appendChild(T.surveyContainer),T.trLog.appendChild(T.tdLog),T.trMsg.appendChild(T.msg),T.trStatus.appendChild(T.tdStatus),T.trRating.appendChild(T.tdRating),T.surveyPopUpHeader.appendChild(T.surveyPopUpHeaderCloseBtn),T.surveyPopUpFooter.appendChild(T.surveyPopUpFooterCloseBtn),T.surveyPopUp.appendChild(T.surveyPopUpHeader),T.surveyPopUp.appendChild(T.surveyFrame),T.surveyPopUp.appendChild(T.surveyPopUpFooter),T.chatToolbarButtons.className="_steamlive_chat_toolbar-buttons",T.trLog.className="_steamlive_chat_tableRowLog",T.trMsg.className="_steamlive_chat_tableRowMsg",T.trStatus.className="_steamlive_chat_tableRowStatus",T.toolbarTriggerBtnWrapper.appendChild(T.chatToolbarTriggerBtn),T.chatToolbarButtons.appendChild(T.toolbarTriggerBtnWrapper),T.chatToolbarButtons.appendChild(T.toolbarButtonsShadow),T.toolbarButtonsShadow.appendChild(T.toolbarButtonsWrapper),T.toolbarButtonsWrapper.appendChild(T.editContactInfoBtn),T.toolbarButtonsWrapper.appendChild(T.emailTranscriptBtn),T.chatContainer.appendChild(T.chatToolbar),T.chatContainer.appendChild(T.chatToolbarButtons),T.chatContainer.appendChild(T.trRating),T.chatContainer.appendChild(T.trLog),T.chatContainer.appendChild(T.trMsg),T.chatContainer.appendChild(T.trStatus),T.chatContainer.appendChild(T.closeChatConfirmation),T.chatContainer.appendChild(T.emailTranscriptDOM),T.chatContainer.appendChild(T.emailTranscriptAlertDOM),T.chatContainer.appendChild(T.chatRatingDOM),T.chatContainer.appendChild(T.chatRateSentDOM),T.chatContainer.appendChild(T.reopenChatFormDOM),T.chatContainer.appendChild(T.bannedSessionDOM),T.chatContainer.appendChild(T.closingDayDOM),T.chatContainer.appendChild(T.noAgentAvailableDOM),T.chatContainer.appendChild(T.startChatDOM),T.trRating.style.display="none",T.main.appendChild(T.chatContainer),T.log=document.createElement("div"),T.log.style.display="none",T.log.className="_steamlive_chat_logdiv",T.startChatMessage=document.createElement("div"),T.startChatMessage.className="startChatMessage",T.startChatMessage.onclick=Te,T.log.setAttribute("role","log"),T.log.setAttribute("aria-live","polite"),T.log.setAttribute("aria-relevant","additions"),T.startChatMessage.setAttribute("role","button"),T.startChatMessage.setAttribute("tabindex","0"),T.startChatMessage.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.startChatMessage.click()},T.startChatMessageText=document.createElement("div"),T.startChatMessageText.className="startChatMessageText",T.startChatMessageP=document.createElement("p"),T.startChatMessageP.innerHTML=Jt("clickStartChat"),T.startChatMessageText.appendChild(T.startChatMessageP),T.startChatMessageIcon=document.createElement("div"),T.startChatMessage.appendChild(T.startChatMessageIcon),T.startChatMessage.appendChild(T.startChatMessageText),T.startMessage=document.createElement("div"),T.formContainer=document.createElement("div"),T.formContainer.className="formContainer",T.formContainer.setAttribute("tabindex","0"),T.formContainer.setAttribute("role","region"),T.formContainer.setAttribute("aria-label",Jt("chatformcontainer")),T.contactInfoHeading=document.createElement("h4"),T.contactInfoHeading.innerHTML="Contact information",T.contactInfoHeading.className="_steamlive_chat_contactInfoHeading",T.callBackFormContainer=document.createElement("div"),T.callBackFormContainer.className="callBackFormContainer",T.callBackFormContainer.setAttribute("tabindex","0"),T.callBackFormContainer.setAttribute("role","region"),T.callBackFormContainer.setAttribute("aria-label",Jt("callbackformcontainer")),T.callBackFormContainer.addEventListener("keydown",function(e){if("Tab"===e.key)return e.stopPropagation(),!0}),T.callBackFormContainerBody=document.createElement("div"),T.callBackFormContainerBody.className="callBackFormContainerBody",T.callBackFormContainer.appendChild(T.callBackFormContainerBody),T.inputName=Ye(Jt("yourName"),"name"),T.inputEmail=Ye(Jt("yourEmail"),"email"),T.editContactInfoBtnWrapper=document.createElement("div"),T.btnSaveEditContactInfo=document.createElement("button"),T.btnCancelEditContactInfo=document.createElement("button"),T.editContactInfoBtnWrapper.classList.add("_steamlive_chat_editContactInfoBtnWrapper"),T.btnSaveEditContactInfo.classList.add("_steamlive_chat_btnSaveEditContactInfo"),T.btnCancelEditContactInfo.classList.add("_steamlive_chat_btnCancelEditContactInfo"),T.btnSaveEditContactInfo.textContent=Jt("save"),T.btnCancelEditContactInfo.textContent=Jt("cancel"),T.editContactInfoBtnWrapper.appendChild(T.btnCancelEditContactInfo),T.editContactInfoBtnWrapper.appendChild(T.btnSaveEditContactInfo),T.btnSaveEditContactInfo.addEventListener("click",function(){et()}),T.btnCancelEditContactInfo.addEventListener("click",function(){T.startMessage.style.display="none",Xt()}),T.btnCancelEditContactInfo.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.btnCancelEditContactInfo.click()},T.btnSaveEditContactInfo.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.btnSaveEditContactInfo.click()},T.formContainer.appendChild(T.contactInfoHeading),T.formContainer.appendChild(T.inputName),T.formContainer.appendChild(T.inputEmail),T.startMessageFormWrapper=document.createElement("div"),T.startMessageFormWrapper.className="_steamlive_chat_startChatFormWrapper",T.startMessageFormWrapper.appendChild(T.formContainer),T.startMessageFormWrapper.appendChild(T.startChatMessage),T.startMessage.appendChild(T.startMessageFormWrapper),T.startMessage.style.display="none",T.startMessage.className="_steamlive_chat_startMessage",T.waitingForSupport=document.createElement("div"),T.waitingForSupport.className="_steamlive_chat_waitingForSupport",T.waitingForSupport.style.display="none",T.waitingForSupportImg=document.createElement("img"),T.waitingForSupportImg.className="_steamlive_chat_waitingForSupportImg",T.waitingForSupportImg.setAttribute("src",x+"/waiting-agent.gif"),T.waitingForSupportImg.alt=Jt("waitingforsupportanimation"),T.waitingForSupportText=document.createElement("div"),T.waitingForSupportText.className="_steamlive_chat_waitingForSupportText",T.waitingForSupportText.id="waitingSupportStatus",T.waitingForSupportWrapper=document.createElement("div"),T.waitingForSupportWrapper.className="_steamlive_chat_waitingForSupportWrapper",T.waitingForSupportWrapper.setAttribute("tabindex","0"),T.waitingForSupportWrapper.setAttribute("role","region"),T.waitingForSupportWrapper.setAttribute("aria-labelledby","waitingSupportStatus"),T.waitingForSupportWrapper.appendChild(T.waitingForSupportImg),T.waitingForSupportWrapper.appendChild(T.waitingForSupportText),T.waitingForSupport.appendChild(T.waitingForSupportWrapper),T.divAlert=document.createElement("div"),T.divAlert.className="_steamlive_chat_alert",T.divAlert.innerHTML="",T.divAlert.style.display="none",T.emojisPopup=document.createElement("div"),T.emojisPopup.className="_steamlive_chat_emojis_popup",T.emojisPopup.innerHTML="",T.emojisPopup.style.display="none",T.divConfirmEmail=document.createElement("div"),T.divConfirmEmail.className="_steamlive_chat_ConfirmEmail",T.divConfirmEmail.innerHTML="",T.tanscriptTo=document.createElement("input"),T.tanscriptTo.className="_steamlive_chat_tanscriptTo",T.btnSendTranscript=it(Jt("emailTranscript"),ie),T.btnSendTranscript.className="_steamlive_chat_btn_newChatButton _steamlive_chat_sendTranscript",T.cancelTranscript=document.createElement("div"),T.cancelTranscript.style.width="20px",T.cancelTranscript.style.height="20px",T.cancelTranscript.style.cursor="pointer",T.cancelTranscript.style.position="absolute",T.cancelTranscript.style.top="3px",T.cancelTranscript.style.right="3px",T.cancelTranscript.innerHTML="",T.cancelTranscript.onclick=ne,T.divConfirmEmail.appendChild(T.cancelTranscript),T.divConfirmEmail.appendChild(T.tanscriptTo),T.divConfirmEmail.appendChild(T.btnSendTranscript),T.nobodyAvailable=document.createElement("div"),T.nobodyAvailable.className="_steamlive_chat_nobodyAvailable",T.nobodyAvailable.innerHTML="",T.nobodyAvailable.setAttribute("tabindex","0"),T.chatLeft=document.createElement("div"),T.chatLeft.className="_steamlive_chat_chatLeft",T.chatLeft.innerHTML=Jt("chatLeft"),T.chatLeft.style.display="none",T.tdLog.appendChild(T.waitingForSupport),T.tdLog.appendChild(T.startMessage),T.tdLog.appendChild(T.log),T.tdLog.className="_steamlive_chat_log",T.title=document.createElement("div"),T.title.className="_steamlive_chat_title_div",T.chatToolbar.className="_steamlive_chat_title",T.chatToolbar.appendChild(T.title),T.agentImage=document.createElement("div"),T.agentImage.className="_steamlive_chat_agent_img",T.txtTitle=document.createElement("span"),T.iconMinimizeChat=document.createElement("div"),T.iconMinimizeChat.className="_steamlive_minimize_chat_icon_white",T.iconMinimizeChat.innerHTML='',T.iconMinimizeChat.setAttribute("role","button"),T.iconMinimizeChat.setAttribute("tabindex","0"),T.iconMinimizeChat.setAttribute("aria-label",Jt("minimizechat")),T.iconMinimizeChat.setAttribute("title",Jt("minimizechat")),T.iconMinimizeChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||ht(e)}),T.iconMinimizeChat.onclick=ht,T.title.appendChild(T.iconMinimizeChat),T.iconWideChat=document.createElement("div"),T.iconWideChat.className="_steamlive_wide_chat_icon_white",T.iconWideChat.innerHTML='',T.iconWideChat.setAttribute("role","button"),T.iconWideChat.setAttribute("tabindex","0"),T.iconWideChat.setAttribute("aria-label",Jt("maximizechat")),T.iconWideChat.setAttribute("title",Jt("maximizechat")),T.iconWideChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||ut(e)}),T.iconWideChat.onclick=ut,T.title.appendChild(T.iconWideChat),T.iconCloseChat=document.createElement("div"),T.iconCloseChat.className="_steamlive_close_chat_icon_white",T.iconCloseChat.setAttribute("role","button"),T.iconCloseChat.setAttribute("tabindex","0"),T.iconCloseChat.setAttribute("aria-label",Jt("closeChat")),T.iconCloseChat.setAttribute("title",Jt("closeChat")),T.iconCloseChat.innerHTML='',T.iconCloseChat.onclick=function(){R=!0,Ga(C.CONFIRM_CLOSE_CHAT)},T.iconCloseChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(R=!0,Ga(C.CONFIRM_CLOSE_CHAT))}),T.title.appendChild(T.iconCloseChat),T.msgInput=document.createElement("textarea"),T.msgInput.className="_steamlive_chat_sendMessage",T.msgInput.placeholder=Jt("msgPlaceholder"),T.msgInput.addEventListener("input",function(){T.msgInput.scrollHeight>T.msgInput.offsetHeight&&T.msgInput.offsetHeight<48&&(T.msgInput.style.height=T.msgInput.scrollHeight+"px"),""==T.msgInput.value&&(T.msgInput.style.height="24px")}),T.msgInput.onkeyup=dt,T.msgInput.addEventListener("focus",mt),T.btnSendChat=document.createElement("span"),T.btnSendChat.className="_steamlive_chat_btnSendChat",T.btnSendChat.innerHTML='',T.btnSendChat.setAttribute("role","button"),T.btnSendChat.setAttribute("tabindex","0"),T.btnSendChat.setAttribute("aria-label",Jt("sendmessage")),T.btnSendChat.onclick=function(e){e.which=13,e.keyCode=13,dt(e)},T.btnSendChat.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||T.btnSendChat.click()},T.chatInputWrapper=document.createElement("div"),T.chatInputWrapper.className="_steamlive_chat_chatInputWrapper",T.chatInputWrapper.appendChild(T.msgInput),T.sendChatContainer=document.createElement("div"),T.sendChatContainer.className="_steamlive_chat_sendChatContainer",T.sendChatContainer.appendChild(T.chatInputWrapper),T.sendChatContainer.appendChild(T.btnSendChat),T.msg.appendChild(T.sendChatContainer),T.msgInput.autofocus=!0,T.msg.appendChild(T.chatLeft),T.status=document.createElement("div"),T.status.className="_steamlive_chat_status",T.statusButtons=document.createElement("div"),T.statusButtons.className="_steamlive_chat_statusButtons",T.statusButtons.btnJoinLeave=it(Jt("leaveChat"),et,"newChatButton"),T.statusButtons.btnJoinLeave.className="_steamlive_chat_btn_newChatButton",T.statusButtons.btnEditDetails=it(Jt("editDetails"),Qe,"newChatButton _steamlive_chat_btn_newChatPrimaryButton"),T.statusButtons.btnEditDetails.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton",T.statusButtons.cancelForm=it(Jt("cancel"),Xt,"newChatButton"),T.statusButtons.cancelForm.className="_steamlive_chat_btn_newChatButton",T.poweredBy=document.createElement("div"),T.poweredBy.className="_steamlive_chat_poweredby",T.poweredBy.innerHTML='Powered by ',T.poweredBy.onclick=function(e){window.open("https://www.callcenter-software.com/","_blank").focus()},T.statusButtons.appendChild(T.statusButtons.btnEditDetails),T.statusButtons.appendChild(T.statusButtons.btnJoinLeave),T.statusButtons.appendChild(T.statusButtons.cancelForm),T.status.appendChild(T.poweredBy),T.status.appendChild(T.statusButtons),T.tdStatus.appendChild(T.status),T.openingHoursWrapper=document.createElement("div"),T.openingHours=document.createElement("div"),T.openingHoursWrapper.className="_steamlive_chat_opening-hours-wrapper",T.openingHours.className="_steamlive_chat_openingHours",T.openingHours.setAttribute("tabindex","0"),T.btnCloseOpeningHours=it(Jt("close"),function(e){e.stopPropagation(),gt()}.bind(this)),T.btnCloseOpeningHours.className="_steamlive_chat_btn-closing-opening-hours",T.btnShowOpeningHoursDetails=it(Jt("showAll"),function(){!function(){for(var e=T.openingHours.getElementsByClassName("_steamlive_chat_openingHours_Row"),t=0;t',T.bannedIcon=document.createElement("div"),T.bannedIcon.className="_steamlive_chat_bannedIcon",T.bannedIcon.innerHTML='',document.body.appendChild(T.frame),T.frame.contentDocument.open(),T.frame.contentDocument.close(),U||(T.frame.contentDocument.body.appendChild(T.triggerMessage),T.frame.contentDocument.body.appendChild(T.minimizeCloseBtnDOM),0==na()&&(T.frame.contentDocument.body.addEventListener("mouseenter",Oa),T.frame.contentDocument.body.addEventListener("mouseleave",Pa))),T.frame.contentDocument.body.appendChild(T.minimizeAgentImage),T.frame.contentDocument.body.appendChild(T.main);n=document.createElement("link");n.href=x+"/css",n.rel="stylesheet",n.type="text/css",T.frame.contentDocument.body.appendChild(n),T.callMeBackSuccess=document.createElement("div"),T.callMeBackSuccess.className="_steamlive_chat_callMeBack_Success",T.surveyPopUpBg.style.width="100%",T.surveyPopUpBg.style.top="0px",T.surveyPopUpBg.style.left="0px",T.surveyPopUpBg.style.height="100%",T.surveyPopUpBg.style.backgroundColor="#000",T.surveyPopUpBg.style.opacity="0.5",T.surveyPopUpBg.style.zIndex="2147483648",na()?T.surveyPopUpBg.style.position="fixed":T.surveyPopUpBg.style.position="absolute",T.surveyPopUp.style.left="0",T.surveyPopUp.style.right="0",T.surveyPopUp.style.marginLeft="auto",T.surveyPopUp.style.marginRight="auto",T.surveyPopUp.style.backgroundColor="#fff",T.surveyPopUp.style.zIndex="2147483649",na()?(T.surveyPopUp.style.width="100%",T.surveyPopUp.style.height="100%",T.surveyPopUp.style.top="0%",T.surveyPopUp.style.position="fixed"):(T.surveyPopUp.style.height="80%",T.surveyPopUp.style.width="80%",T.surveyPopUp.style.top="10%",T.surveyPopUp.style.position="absolute"),T.surveyPopUpHeader.style.height="35px",T.surveyPopUpHeader.style.paddingTop="10px",T.surveyPopUpHeader.style.paddingLeft="10px",T.surveyPopUpHeader.style.fontSize="20px",T.surveyPopUpHeader.style.color="#fff",T.surveyPopUpHeader.style.textAlign="left",T.surveyPopUpHeader.style.backgroundColor="#4C384D",T.surveyFrame.style.width="100%",T.surveyFrame.style.height="calc(100% - 100px)",T.surveyFrame.style.border="none",T.surveyPopUpFooter.style.height="50px",T.surveyPopUpFooter.style.width="100%",T.surveyPopUpHeaderCloseBtn.style.float="right",T.surveyPopUpHeaderCloseBtn.style.height="20px",T.surveyPopUpHeaderCloseBtn.style.width="20px",T.surveyPopUpHeaderCloseBtn.style.margin="5px",T.surveyPopUpHeaderCloseBtn.style.marginRight="15px",T.surveyPopUpHeaderCloseBtn.style.cursor="pointer",T.surveyPopUpHeaderCloseBtn.innerHTML='',T.surveyPopUpFooterCloseBtn.style.backgroundColor="#4C384D",T.surveyPopUpFooterCloseBtn.style.borderColor="#4C384D",T.surveyPopUpFooterCloseBtn.style.color="#fff",T.surveyPopUpFooterCloseBtn.style.height="20px",T.surveyPopUpFooterCloseBtn.style.padding="10px",T.surveyPopUpFooterCloseBtn.style.marginRight="15px",T.surveyPopUpFooterCloseBtn.style.textAlign="center",T.surveyPopUpFooterCloseBtn.style.borderRadius="4px",T.surveyPopUpFooterCloseBtn.style.cursor="pointer",na()?(T.surveyPopUpFooterCloseBtn.style.margin="auto",T.surveyPopUpFooterCloseBtn.style.width="90%"):(T.surveyPopUpFooterCloseBtn.style.margin="5px",T.surveyPopUpFooterCloseBtn.style.width="90px",T.surveyPopUpFooterCloseBtn.style.float="right"),function(){var e=document.createElement("div");e.className="_steamlive_chat_contactChannels",e.style.display="none";var t=document.createElement("a");t.className="_steamlive_chat_contactChannelOption",t.target="_top",t.innerHTML=''+Jt("contactChannelCall")+"";var a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("width","16"),a.setAttribute("height","16"),a.setAttribute("viewBox","0 0 16 16"),a.style.display="none",a.innerHTML='';var n=document.createElement("div");n.className="_steamlive_chat_contactChannelOption _steamlive_chat_contactChannelOptionEmail",n.innerHTML=''+Jt("contactChannelEmail")+"",n.appendChild(a),n.addEventListener("click",Ie.bind(this,"email"));var i=document.createElement("div");i.className="_steamlive_chat_contactChannelOption",i.innerHTML=''+Jt("contactChannelChat")+"",i.addEventListener("click",Ie.bind(this,"chat"));var o=document.createElement("div");o.className="_steamlive_chat_contactChannelOption",o.innerHTML=''+Jt("contactChannelWhatsApp")+"",o.addEventListener("click",Ie.bind(this,"whatsapp")),T.frame.contentDocument.body.appendChild(e),T.contactChannels=e,T.contactChannels.callOption=t,T.contactChannels.emailOption=n,T.contactChannels.emailOptionLoader=a,T.contactChannels.chatOption=i,T.contactChannels.whatsAppOption=o}(),function(){var e=document.createElement("div");e.className="_steamlive_chat_contactChannelEmailForm _steamlive_chat_contactChannelEmailFormHidden";var t=document.createElement("div");t.className="_steamlive_chat_contactChannelEmailFormContainer";var a=document.createElement("div");a.className="_steamlive_chat_contactChannelInputWrapper";var n=document.createElement("label");n.htmlFor="_steamlive_chat_contactChannelReplyEmail",n.className="_steamlive_chat_contactChannelLabel",n.textContent=Jt("contactChannelEmailFormYourEmail");var d=document.createElement("input");d.type="email",d.placeholder=Jt("contactChannelEmailFormYourEmailAddress"),d.className="_steamlive_chat_contactChannelInput",d.id="_steamlive_chat_contactChannelReplyEmail";var m=document.createElement("div");m.className="_steamlive_chat_contactChannelError",m.textContent=Jt("contactChannelEmailFormPleaseEnterValidEmail"),m.style.display="none",a.appendChild(n),a.appendChild(d),a.appendChild(m),t.appendChild(a);n=document.createElement("div");n.className="_steamlive_chat_contactChannelInputWrapper";a=document.createElement("label");a.htmlFor="_steamlive_chat_contactChannelEmailSubject",a.className="_steamlive_chat_contactChannelLabel",a.textContent=Jt("contactChannelEmailFormSubject");var p=document.createElement("input");p.type="text",p.placeholder=Jt("contactChannelEmailFormEmailSubject"),p.className="_steamlive_chat_contactChannelInput",p.id="_steamlive_chat_contactChannelEmailSubject";var h=document.createElement("div");h.className="_steamlive_chat_contactChannelError",h.textContent=Jt("contactChannelEmailFormSubjectRequired"),h.style.display="none",n.appendChild(a),n.appendChild(p),n.appendChild(h),t.appendChild(n);a=document.createElement("div");a.className="_steamlive_chat_contactChannelInputWrapper";n=document.createElement("label");n.htmlFor="_steamlive_chat_contactChannelEmailBody",n.className="_steamlive_chat_contactChannelLabel",n.textContent=Jt("contactChannelEmailFormMessage");var u=document.createElement("textarea");u.placeholder=Jt("contactChannelEmailFormTypeMessage"),u.className="_steamlive_chat_contactChannelInput",u.id="_steamlive_chat_contactChannelEmailBody";var g=document.createElement("div");g.className="_steamlive_chat_contactChannelError",g.textContent=Jt("contactChannelEmailFormMessageRequired"),g.style.display="none",a.appendChild(n),a.appendChild(u),a.appendChild(g),t.appendChild(a);var i=document.createElement("button");function v(){var e=""!==d.value.trim()&&Kt(d.value.trim()),t=""!==p.value.trim(),a=""!==u.value.trim();m.style.display=""===d.value.trim()||Kt(d.value.trim())?"none":"block",h.style.display=""===p.value.trim()&&""!==p.value.trim()?"block":"none",g.style.display=""===u.value.trim()&&""!==u.value.trim()?"block":"none",""===d.value.trim()||Kt(d.value.trim())?d.classList.remove("_steamlive_chat_contactChannelInputError"):d.classList.add("_steamlive_chat_contactChannelInputError"),""===p.value.trim()&&""!==p.value.trim()?p.classList.add("_steamlive_chat_contactChannelInputError"):p.classList.remove("_steamlive_chat_contactChannelInputError"),""===u.value.trim()&&""!==u.value.trim()?u.classList.add("_steamlive_chat_contactChannelInputError"):u.classList.remove("_steamlive_chat_contactChannelInputError"),i.disabled=!(e&&t&&a)}function o(e,t,a){""===e.value.trim()||a(e.value.trim())?(t.style.display="none",e.classList.remove("_steamlive_chat_contactChannelInputError")):(t.style.display="block",e.classList.add("_steamlive_chat_contactChannelInputError")),v()}i.className="_steamlive_chat_contactChannelEmailSubmitBtn",i.id="_steamlive_chat_emailSubmit",i.textContent=Jt("contactChannelEmailFormSendEmail"),i.disabled=!0,d.addEventListener("input",v),p.addEventListener("input",v),u.addEventListener("input",v),d.addEventListener("blur",function(){o(d,m,Kt)}),p.addEventListener("blur",function(){o(p,h,function(e){return""!==e})}),u.addEventListener("blur",function(){o(u,g,function(e){return""!==e})}),i.addEventListener("click",function(){var e,t,a,n,i,o,r,s=d.value,l=p.value,c=u.value;s&&Kt(s)&&l&&c?(e={replyTo:s,subject:l,body:c},t=new XMLHttpRequest,a=e.replyTo,n=e.subject.replace(//g,"").replace(/%/g," ").replace(/#/g," "),i=e.body,o=$.cqd.contactChannelEmailResultcode,r=-1,void(e=0)!==$.cqd.addressfile&&(r=$.cqd.addressfile),void 0!==$.cqd.chatQueuePID&&(e=$.cqd.chatQueuePID),e=new URLSearchParams({["boxpid_"+$.cqd.contactChannelEmailAddress]:a,["boxpid_"+$.cqd.contactChannelEmailSubject]:n,["boxpid_"+$.cqd.contactChannelEmailBody]:i,campagnePID:$.cqd.campagnePID,projectPID:$.cqd.projectPID,adressfile:r,resultcode:o,chatQueuePID:e,callMeBackDate:"",steamliveChatAction:"callMeBack",callcenterPID:$.cqd.callcenterPID,sendMailMerge:"0"}),t.open("GET",x+"/s/callMeback?"+e.toString(),!0),t.setRequestHeader("Content-Type","application/json"),t.onload=function(){200===t.status?("ok"==t.responseText.toLowerCase()?He:De)():(console.error("Error sending email callback: ",t.status,t.statusText),De())},t.send(),d.value="",p.value="",u.value="",m.style.display="none",h.style.display="none",g.style.display="none",d.classList.remove("_steamlive_chat_contactChannelInputError"),p.classList.remove("_steamlive_chat_contactChannelInputError"),u.classList.remove("_steamlive_chat_contactChannelInputError"),v()):(Kt(s.trim())||(m.style.display="block",d.classList.add("_steamlive_chat_contactChannelInputError")),""===l.trim()&&(h.style.display="block",p.classList.add("_steamlive_chat_contactChannelInputError")),""===c.trim()&&(g.style.display="block",u.classList.add("_steamlive_chat_contactChannelInputError")))}),t.appendChild(i),e.appendChild(t),T.contactChannels.emailForm=e,T.chatContainer.appendChild(e)}(),Ne(),function(){var e=document.createElement("div");e.className="_steamlive_chat_contactChannelWhatsAppForm";var t=document.createElement("div");t.className="_steamlive_chat_contactChannelWhatsAppFormContainer";var a=document.createElement("div");a.className="_steamlive_chat_contactChannelWhatsAppHeader",a.innerHTML='WhatsApp',t.appendChild(a);var n=document.createElement("div");n.className="_steamlive_chat_contactChannelWhatsAppInputWrapper";var i=document.createElement("textarea");i.placeholder=Jt("contactChannelEmailFormTypeMessage"),i.className="_steamlive_chat_contactChannelInput",i.id="_steamlive_chat_contactChannelWhatsAppMessage",i.addEventListener("input",e=>{e=e.target;e.style.height="40px",e.style.height=e.scrollHeight+2+"px",e.style.overflowY=e.scrollHeight>e.clientHeight?"auto":"hidden"});var o=document.createElement("div");o.className="_steamlive_chat-whatsapp-message-wrapper",o.readOnly=!0;var r=document.createElement("div");r.className="_steamlive_chat-whatsapp-message";var s=document.createElement("div");s.className="_steamlive_chat-whatsapp-message-time",o.appendChild(r),o.appendChild(s);var l=document.createElement("button");function c(){var e=""!==i.value.trim();l.disabled=!e}l.className="_steamlive_chat_contactChannelWhatsAppSubmitBtn",l.id="_steamlive_chat_whatsappSubmit",l.innerHTML='',l.disabled=!0,n.appendChild(i),n.appendChild(l),i.addEventListener("input",c),l.addEventListener("click",function(){var e,t=i.value;""!==t.trim()?(e=$.cqd.contactChannelWhatsAppNumber||"",t="https://wa.me/"+encodeURIComponent(e)+"?text="+encodeURIComponent(t),window.open(t,"_blank"),i.value="",i.classList.remove("_steamlive_chat_contactChannelInputError"),c()):i.classList.add("_steamlive_chat_contactChannelInputError")});var d=document.createElement("div"),a=document.createElement("div");d.classList.add("_steamlive_chat_contactChannelWhatsApp","_steamlive_chat_contactChannelWhatsAppHidden"),a.classList.add("_steamlive_chat_contactChannelWhatsAppModal"),a.appendChild(e),d.appendChild(a),t.appendChild(o),t.appendChild(n),e.appendChild(t),T.contactChannels.whatsAppFormDOM=d,T.contactChannels.whatsAppForm=e,T.contactChannels.whatsAppInitMessage=r,T.contactChannels.whatsAppInitMessageTime=s,T.chatContainer.appendChild(d)}()};function Ie(e){switch(e){case"email":(1==$.cqd.contactChannelEmailMethod?function(){T.contactChannels.emailOptionLoader.style.display="";var e=new XMLHttpRequest,t=new URLSearchParams({pid:$.cqd.contactChannelEmailInbox,callcenterPID:$.cqd.callcenterPID,steamliveChatAction:"getInboxEmail"});e.open("GET",x+"/s/getInboxEmail?"+t.toString(),!0),e.setRequestHeader("Content-Type","application/json"),e.onload=function(){200===e.status?window.location.href="mailto:"+e.responseText:console.error("Error getting inbox email: ",e.status,e.statusText),T.contactChannels.emailOptionLoader.style.display="none"},e.send()}:$a)();break;case"chat":Ka(),qe(),Qa(),_t();break;case"whatsapp":!function(){E=!0,Ka(),Na(),T.minimizeAgentImage.style.display="none",T.main.classList.remove("_steamlive_chat_main_minimized"),T.main.style.backgroundImage="",T.frame.style.maxHeight="calc(100% - 50px)",T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),Ua(),Ct(),xt(),T.contactChannels.whatsAppFormDOM.classList.remove("_steamlive_chat_contactChannelWhatsAppHidden"),T.contactChannels.whatsAppInitMessage.textContent=$.cqd.contactChannelWhatsAppMessage,""==T.contactChannels.whatsAppInitMessageTime.textContent&&(T.contactChannels.whatsAppInitMessageTime.textContent=(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}));kt(!1)}()}}var Ne=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("img"),i=document.createElement("div"),o=document.createElement("div"),r=document.createElement("button"),s=document.createElement("button"),l=document.createElement("button");e.classList.add("_steamlive_email-sent-alert","_steamlive_email-sent-alert--hide"),t.classList.add("_steamlive_email-sent-alert-wrapper"),a.classList.add("_steamlive_email-sent-alert-img-wrapper"),n.classList.add("_steamlive_email-sent-alert-img"),i.classList.add("_steamlive_email-sent-alert-text"),o.classList.add("_steamlive_email-sent-error-heading"),r.classList.add("_steamlive_email-sent-resume-chat"),s.classList.add("_steamlive_email-sent-end-chat"),l.classList.add("_steamlive_email-sent-cancel-btn"),o.textContent=Jt("errorEmailNotSent"),r.textContent=Jt("contactChannelEmailFormNewEmail"),s.textContent=Jt("contactChannelEmailFormClose"),r.addEventListener("click",function(){$a(),qe()}),s.addEventListener("click",function(){gt()}),l.innerHTML='',l.addEventListener("click",qe),a.appendChild(n),a.appendChild(o),a.appendChild(i),t.appendChild(l),t.appendChild(a),t.appendChild(r),t.appendChild(s),e.appendChild(t),T.emailSentAlertImg=n,T.emailSentAlertText=i,T.emailSentErrorHeading=o,T.emailSentNewEmail=r,T.emailSentEndChat=s,T.emailSentAlertDOM=e,T.chatContainer.appendChild(e)},He=function(){console.log("Success sending email transcript"),T.emailSentAlertImg.src=x+"/email-transcript-success.gif",T.emailSentAlertText.textContent="Email sent successfully",T.emailSentAlertDOM.classList.add("_steamlive_email-sent-alert-success"),T.emailSentAlertDOM.classList.remove("_steamlive_email-sent-alert--hide"),T.emailSentErrorHeading.textContent=Jt("errorEmailNotSent")},De=function(){console.log("Error sending email transcript"),T.emailSentAlertImg.src=x+"/email-transcript-error.gif",T.emailSentAlertText.textContent="An error has occured when sending the email",T.emailSentAlertDOM.classList.add("_steamlive_email-sent-error"),T.emailSentAlertDOM.classList.remove("_steamlive_email-sent-alert--hide"),T.emailSentErrorHeading.textContent=Jt("errorEmailNotSent")},qe=function(){T.emailSentAlertImg.src="",T.emailSentAlertText.textContent="",T.emailSentAlertDOM.classList.add("_steamlive_email-sent-alert--hide"),T.emailSentAlertDOM.classList.remove("_steamlive_email-sent-alert-success","_steamlive_email-sent-error")};function Re(){T.chatToolbarButtons.classList.contains(p.TOOLBAR_BUTTONS_EXPANDED)?Fe():(T.chatToolbarButtons.classList.add(p.TOOLBAR_BUTTONS_EXPANDED),T.toolbarButtonsWrapper.focus())}function Fe(){T.chatToolbarButtons.classList.remove(p.TOOLBAR_BUTTONS_EXPANDED)}function Oe(e){e.preventDefault(),e.stopPropagation(),M={},tt(),pe(_.QUIT)}function Pe(e,t){e.classList.remove(t)}var je=function(){if(!0===s&&!0===o){const t=g.split(","),a=this.files[0].name;var e=a.split(".").pop().toLowerCase();return 0==t.length||0==t.includes(e)?(B=null,T.fileNameContainer.style.display="block",T.fileNameContainer.style.backgroundColor="#ED5B56",T.fileName.innerHTML=Jt("noneAllowedExtension"),0):void 0!==$.cqd.chatAttachmentSize&&$.cqd.chatAttachmentSize
'+t.outerHTML+a.outerHTML+"
"+n.outerHTML+i.outerHTML+"
",t=e.querySelector("#close-chat-confirmation-msg"),a=e.querySelector("#close-chat-are-u-sure"),n=e.querySelector("#_steamlive_close-chat-btn-yes"),i=e.querySelector("#_steamlive_close-chat-btn-no"),n.addEventListener("click",Oe),i.addEventListener("click",function(){R=!1,at()}),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||Oe(e)}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(R=!1,at())}),T.closeChatConfirmationMessage=t,T.areYouSureCloseChatConfirmation=a,T.yesBtnCloseChatConfirmation=n,T.noBtnCloseChatConfirmation=i,e},it=function(e,t,a){var n=document.createElement("div");return n.innerHTML=e,n.onclick=t,n.className="_steamlive_chat_btn_"+(a||1),n.setAttribute("role","button"),n.setAttribute("tabindex","0"),n.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||n.click()},n},ot=function(e){if(void 0!==$.cqd.active&&0==$.cqd.active)return!1;E||vt(),T.startMessageFormWrapper.classList.add(Ge($.cqd.chatColorSchemeID)),T.formContainer.classList.add(Ge($.cqd.chatColorSchemeID)),T.log.classList.add(Ge($.cqd.chatColorSchemeID)),T.callBackFormContainerBody.classList.add(Ge($.cqd.chatColorSchemeID)),T.msgInput.classList.add(Ge($.cqd.chatColorSchemeID)),rt(),T.main.style.display="block",e&&Ya()},rt=function(){T.main.style.borderColor="#"+$.cqd.color3,T.title.style.backgroundColor="#"+$.cqd.color1,T.title.style.color="#"+$.cqd.color2,""==$.cqd.startChatMsgBGcolor?T.startChatMessage.style.backgroundColor="#"+$.cqd.color1:T.startChatMessage.style.backgroundColor="#"+$.cqd.startChatMsgBGcolor,""==$.cqd.startChatMsgTextcolor?T.startChatMessage.style.color="#"+$.cqd.color2:T.startChatMessage.style.color="#"+$.cqd.startChatMsgTextcolor,""==$.cqd.noAgentAvailableBGcolor?T.nobodyAvailable.style.backgroundColor="#"+$.cqd.color1:T.nobodyAvailable.style.backgroundColor="#"+$.cqd.noAgentAvailableBGcolor,""==$.cqd.noAgentAvailablecolor?T.nobodyAvailable.style.color="#"+$.cqd.color2:T.nobodyAvailable.style.color="#"+$.cqd.noAgentAvailablecolor,""==$.cqd.noAgentAvailableBordercolor?T.nobodyAvailable.style.borderColor="#"+$.cqd.color3:T.nobodyAvailable.style.color="#"+$.cqd.noAgentAvailablecolor,void 0!==$.cqd.fontBold&&1==$.cqd.fontBold&&(T.chatContainer.style.fontWeight="bold"),void 0!==$.cqd.fontItalic&&1==$.cqd.fontItalic&&(T.chatContainer.style.fontStyle="italic"),"undefined"!=typeof _customCSS&&""!=_customCSS.trim()&&((t=document.createElement("link")).href=_customCSS,t.rel="stylesheet",t.type="text/css",T.frame.contentDocument.body.appendChild(t)),T.btnSendChat.style.backgroundColor="#"+$.cqd.color1,T.surveyPopUpHeader.style.backgroundColor="#"+$.cqd.color1,T.surveyPopUpFooterCloseBtn.style.backgroundColor="#"+$.cqd.color1,T.surveyPopUpFooterCloseBtn.style.borderColor="#"+$.cqd.color1,T.fileNameContainer&&(T.fileNameContainer.style.backgroundColor="#"+$.cqd.color1),T.waitingForSupportImg.classList.add(Je()),lt(),ct();var e=document.createElement("style"),t=$.cqd.triggerMessageColor?$.cqd.triggerMessageColor.replace("#",""):$.cqd.color1;e.innerHTML="._steamlive_chat_startMessage_input:focus {border-color: #"+$.cqd.color1+" !important;}._steamlive_chat_btn_newChatButton._steamlive_chat_btn_newChatButton {background-color: #"+($.cqd.chatButtonsTextcolor||$.cqd.color2)+" !important;color: #"+($.cqd.chatButtonsBGcolor||$.cqd.color2)+" !important;border-color: #"+($.cqd.chatButtonsBordercolor||$.cqd.color2)+" !important;}._steamlive_chat_btn_newChatPrimaryButton._steamlive_chat_btn_newChatButton {background-color: #"+($.cqd.chatButtonsBGcolor||$.cqd.color2)+" !important;color: #"+($.cqd.chatButtonsTextcolor||$.cqd.color1)+" !important;;border-color: #"+($.cqd.chatButtonsBordercolor||$.cqd.color2)+" !important;}._steamlive_chat_scroll {scrollbar-color: #"+$.cqd.color1+" #ddd !important;}._steamlive_chat_scroll::-webkit-scrollbar-thumb {background-color: #"+$.cqd.color1+" !important;}.steamChat_multipleCHoices_choice {color: #"+$.cqd.chatReceiverTextColor+";border-color: #"+$.cqd.chatReceiverTextColor+";}.steamChat_multipleCHoices_choice:hover, .steamChat_multipleCHoices_chosen {background-color: #"+$.cqd.chatReceiverTextColor+";color: #"+$.cqd.chatReceiverbackgroundColor+";border-color: #"+$.cqd.chatReceiverbackgroundColor+";}._steamlive_chat_Svgtheme {fill: #"+$.cqd.color1+" !important;}._steamlive_chat_toolbar-buttons::after {background-color: #"+$.cqd.color1+" !important;}._steamlive_chat_toolbar-trigger:hover {background-color: #"+$.cqd.color1+" !important;}._steamlive_chat_toolbar-btn:not(:disabled):hover {background-color: #"+$.cqd.color1+" !important;color: #"+$.cqd.color2+" !important;}._steamlive_chat_toolbar-btn--left {border-right-color: #"+$.cqd.color1+" !important;}._steamlive_chat_toolbar-buttons--expanded ._steamlive_chat_toolbar-trigger-wrapper {background-color: #"+$.cqd.color1+" !important;}._steamlive_chat_main._steamlive_chat_main_minimized {background-color: #"+$.cqd.color1+" !important;}._steamlive_email-transcript-send-btn,._steamlive_chat-rating-submit-btn,._steamlive_chat_rate-sent-chat-again-btn,._steamlive_chat_reopen-chat-form-new-btn,._steamlive_chat_btn-closing-opening-hours,._steamlive_chat_btnSaveEditContactInfo,._steamlive_chat-rating-survey-btn,._steamlive_chat_start-chat-button,._steamlive_email-transcript-resume-chat {background-color: #"+$.cqd.color1+" !important;color: #"+$.cqd.color2+" !important;}._steamlive_chat_closing-day-icon svg path {fill: #"+$.cqd.color1+" !important;}._steamlive_chat-trigger-message-wrapper {background-color: #"+t+" !important;}._steamlive_chat-trigger-message-wrapper::after {border-top: 10px solid #"+t+" !important;}",T.main.appendChild(e),st()},st=function(){U&&(T.iconMinimizeChat.style.display="none",T.iconCloseChat.style.display="none",T.iconWideChat.style.display="none",T.txtTitle.style.display="none",T.trStatus.style.display="none",T.main.style.borderRadius="unset",T.divAlert.style.bottom="0px",T.divAlert.style.height="calc(100% - 35px)")},lt=function(){var e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",void 0!==$.cqd.chatFontFamily&&""!=$.cqd.chatFontFamily?["Arial","Verdana","Como"].includes($.cqd.chatFontFamily)?(T.main.style.fontFamily="'"+$.cqd.chatFontFamily+"'",T.frame.contentDocument.body.style.fontFamily="'"+$.cqd.chatFontFamily+"'"):(e.href="https://fonts.googleapis.com/css?family="+$.cqd.chatFontFamily+"&display=fallback",T.main.style.fontFamily="'"+$.cqd.chatFontFamily.replace(/\+/g," ")+"'",T.frame.contentDocument.body.style.fontFamily="'"+$.cqd.chatFontFamily.replace(/\+/g," ")+"'"):e.href="https://fonts.googleapis.com/css?family=Roboto&display=fallback",T.frame.contentDocument.head.appendChild(e)},ct=function(){"number"==typeof $.cqd.iconsTheme&&1==$.cqd.iconsTheme&&(T.iconWideChat.className="_steamlive_wide_chat_icon_dark",T.iconMinimizeChat.className="_steamlive_minimize_chat_icon_dark",T.iconCloseChat.className="_steamlive_close_chat_icon_dark")},dt=function(e){if(!0!==s||!0!==o)return Vt("Not connected; please wait a moment before sending your message"),!1;if(13!==e.which&&13!==e.keyCode||e.shiftKey)Lt();else if(null!=B&&!0===s&&!0===o&&(t=new XMLHttpRequest,r="randId"+Math.round(9999999999*Math.random())+9999999999,c=document.createElement("div"),d=document.createElement("div"),m=document.createElement("div"),B.randId=r,p={filename:B.name,randid:r,sender:"user"},(S[r]=t).upload&&(t.upload.onprogress=function(e){for(var t,a,n=e.position||e.loaded,i=e.totalSize||e.total,o=0;o"+Jt("done")+"!":(t=document.createElement("div"),a=document.createElement("div"),t.className="_steamlive_chat_attachment_progress_bar",a.className="_steamlive_chat_attachment_progress_bar_value",a.style.width=n/i*100+"%",a.style.backgroundColor="#"+$.cqd.color1,t.appendChild(a),T.log.getElementsByClassName(r)[o].innerHTML=t.outerHTML)},t.upload.onloadstart=function(e){var t=new Date;d.className="_steamlive_chat_divMsgContainer";var a=document.createElement("div");a.className="_steamlive_chat_upload_attachment_container";var n=document.createElement("div");n.className="_steamlive_chat_upload_attachment_icon",n.innerHTML='';var i=document.createElement("div");i.className="_steamlive_chat_attachment_name",i.innerHTML=p.filename.replace(/"/g,"");var o=document.createElement("div");o.className="_steamlive_chat_attachment_cancel _steamlive_chat_attachment_cancel"+p.randid,o.innerHTML='';var r=document.createElement("div");r.className="user_file_"+$.userId+" "+p.randid;var s=document.createElement("div");s.className="_steamlive_chat_timestampR",s.innerHTML="
"+t.toLocaleTimeString()+"
",c.className="_steamlive_chat_message r _steamlive_chat_upload_attachment",m.style.backgroundColor="#"+$.cqd.chatSenderbackgroundColor,m.style.color="#"+$.cqd.chatSenderTextColor,m.style.borderColor="#"+$.cqd.chatSenderborderColor,m.style.fontSize=$.cqd.chatFontSize,a.appendChild(n),a.appendChild(i),a.appendChild(r),a.appendChild(o),c.appendChild(a),c.appendChild(s),d.appendChild(c),T.log.appendChild(d);for(var l=0;l"+Jt("uploadCanceled")+"!"},t.upload.onerror=function(e){console.log(e);for(var t=0;t"+Jt("uploadFailed")+"!"},t.upload.onload=function(e){console.log("onload")},t.upload.ontimeout=function(e){console.log(e);for(var t=0;t"+Jt("uploadFailed")+"!"},t.upload.onloadend=function(e){var t=e.position||e.loaded;t==(e.totalSize||e.total)&&0!=t&&(d.remove(),w.emit("msg",{msg:"{file}"+JSON.stringify(p),rId:$.userId}))}),t.open("post",x+"/upload",!0),(e=new FormData).append("foldername",$.userId),e.append(r,B),t.send(e),B=null,T.fileNameContainer.style.display="none",T.fileName.innerHTML=""),At())return T.msgInput.value="",!(T.msgInput.style.height="24px");var t,r,c,d,m,p},mt=function(){!0===o&&!1===r&&w.emit("markAsRead",{rId:$.userId,by:2})},pt=function(){!1===E&&(1==$.cqd.contactChannels?O?Ct:function(){O=!0,Ua();var e=1;T.contactChannels.appendChild(T.contactChannels.chatOption),1==$.cqd.contactChannelCall&&(T.contactChannels.appendChild(T.contactChannels.callOption),++e);1==$.cqd.contactChannelEmail&&(T.contactChannels.appendChild(T.contactChannels.emailOption),++e);1==$.cqd.contactChannelWhatsApp&&(T.contactChannels.appendChild(T.contactChannels.whatsAppOption),++e);switch(e){case 2:T.frame.style.height="150px";break;case 3:T.frame.style.height="190px";break;case 4:T.frame.style.height="230px"}T.frame.style.width="170px",T.contactChannels.style.display=""}:_t)()},ht=function(e){e&&(e.preventDefault(),e.stopPropagation()),gt()},ut=function(e){e&&(e.preventDefault(),e.stopPropagation()),0==T.main.classList.contains("chatMaximized")?(T.main.classList.add("chatMaximized"),T.iconWideChat.innerHTML='',U?(T.frame.style.width="90%",T.frame.style.maxWidth="10px"):(T.frame.style.width="500px",T.frame.style.maxWidth="500px",T.frame.style.height="700px",T.frame.style.maxHeight="calc(100% - 50px)")):(T.main.classList.remove("chatMaximized"),T.iconWideChat.innerHTML='',U?(T.frame.style.width="350px",T.frame.style.maxWidth="350px"):(T.frame.style.width="400px",T.frame.style.maxWidth="400px",T.frame.style.height="600px",T.frame.style.maxHeight="calc(100% - 50px)"))},gt=function(){J("opened",E=!1),vt(),ma(!0)},vt=function(){switch(T.frame.style.right="40px",T.frame.style.bottom="40px",T.main.classList.add("_steamlive_chat_main_minimized"),T.main.classList.remove("chatMaximized"),T.frame.style.minWidth="",T.frame.style.maxWidth="",T.frame.style.minHeight="",T.frame.style.maxHeight="",T.frame.style.borderRadius="",T.frame.style.boxShadow="",T.frame.style.borderRadius="",T.frame.style.backgroundColor="",T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),na()&&Oa(),$.cqd.widgetSize){case 1:case"1":T.frame.style.width="62px",T.frame.style.height="62px",T.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_small");break;case 3:case"3":T.frame.style.width="82px",T.frame.style.height="82px",T.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_large");break;default:$.cqd.widgetSize=2,T.frame.style.width="80px",T.frame.style.height="80px",T.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_medium")}null!=q&&null!=q.avatar&&1==$.cqd.chatAvatar&&1==$.cqd.avatarType?ft(q.avatar):null!=$.cqd.widgetPicture&&""!=$.cqd.widgetPicture?ft($.cqd.widgetPicture):yt()};var ft=function(e){T.minimizeAgentImage.style.display="block",T.minimizeAgentImage.src=e},yt=function(){T.minimizeAgentImage.style.display="none",T.main.style.backgroundImage='url("data:image/svg+xml,%3Csvg version="1.1" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="m21.149 14.211a7.538 7.538 0 0 0 1.43-4.3972c-0.002576-4.496-4.064-8.1537-9.0564-8.1537a9.4746 9.4746 0 0 0-7.252 3.2807 10.487 10.487 0 0 1 4.4659-0.9868c5.3763 0 9.7503 3.9695 9.7503 8.846a8.2637 8.2637 0 0 1-1.8233 5.1435 18.249 18.249 0 0 0 3.5161 0.92152 0.33151 0.33151 0 0 0 0.04895 0 0.34783 0.34783 0 0 0 0.24648-0.59431c-0.68105-0.67762-1.1543-2.117-1.326-4.0597z" fill="%23fff"/%3E%3Cpath d="m10.769 4.644c-4.9924 0-9.0538 3.6578-9.0538 8.1537a7.5388 7.5388 0 0 0 1.43 4.3972c-0.17778 1.9427-0.64756 3.3821-1.3278 4.0623a0.34783 0.34783 0 0 0 0.24648 0.59431 0.32378 0.32378 0 0 0 0.048094 0 16.129 16.129 0 0 0 4.9855-1.5974 9.8242 9.8242 0 0 0 3.6715 0.69995c4.9924 0 9.0538-3.6578 9.0538-8.1537 0-4.496-4.0606-8.1563-9.0538-8.1563zm-2.2639 5.3677h4.8756a0.34826 0.34826 0 0 1 0 0.69651h-4.8747a0.34826 0.34826 0 0 1 0-0.69651zm6.7908 5.5721h-8.7051a0.34826 0.34826 0 0 1 0-0.69651h8.706a0.34826 0.34826 0 0 1 0 0.69651zm0-2.4374h-8.7051a0.34826 0.34826 0 0 1 0-0.69651h8.706a0.34826 0.34826 0 0 1 0 0.69651z" fill="%23fff"/%3E%3C/svg%3E%0A")'},_t=function(){initialOpen=E,J("opened",E=!0),T.minimizeAgentImage.style.display="none",T.main.classList.remove("_steamlive_chat_main_minimized"),T.main.style.backgroundImage="",T.frame.style.maxHeight="calc(100% - 50px)",T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),Ua(),Ct(),xt(),pe(h),T.iconWideChat.style.display="",T.iconMinimizeChat.style.display="";var e=G("mode");e!=_.WAITING_FOR_AGENT&&e!=_.CHATTING||(T.iconCloseChat.style.display="block"),Me()||Le()?Ce(!1):(Ce(!0),T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none"),0==U&&Me()&&!Le()&&h==_.QUIT&&Ga(C.REOPEN_CHAT_FORM),kt(!1),Wt(),Za(Jt("chatOpened")),st()};function Ct(){O=!1,T.contactChannels.style.display="none",function(){switch($.cqd.widgetSize){case 1:case"1":T.frame.style.width="62px",T.frame.style.height="62px";break;case 3:case"3":T.frame.style.width="82px",T.frame.style.height="82px";break;default:$.cqd.widgetSize=2,T.frame.style.width="80px",T.frame.style.height="80px"}}()}let bt=0,wt=!1,Et=.05;function kt(e){bt=e?(wt=!1,1):(wt=!0,0),requestAnimationFrame(Tt)}function Tt(){bt<=1&&wt&&(bt+=Et,T.frame.style.transform="scale("+Math.min(bt,1)+")",T.frame.style.transformOrigin="bottom right",T.frame.style.opacity=Math.min(bt,1),requestAnimationFrame(Tt))}var xt=function(){T.frame.style.right="30px",T.frame.style.transform="none",T.frame.style.height="",T.frame.contentDocument.body.style.width="",T.frame.style.backgroundColor="#F5F5F5",U?(T.frame.style.bottom="0px",T.frame.style.width="350px",T.frame.style.maxWidth="350px",T.frame.style.minHeight="547px",T.frame.style.borderRadius="14px 14px 0 0"):(T.frame.style.bottom="30px",T.frame.style.width="400px",T.frame.style.maxWidth="400px",T.frame.style.height="600px",T.frame.style.borderRadius="14px",T.frame.style.boxShadow="0 8px 10px -5px #0003, 0 16px 24px 2px #00000024, 0 6px 30px 5px #0000001f",Pa()),T.callBackFormContainer.style.display="",T.txtTitle.style.fontSize="",T.title.style.height="",T.txtTitle.style.display="block"},Mt=null,Lt=function(){var e;!0===s&&!0===o&&(1==$.cqd.sneakPeek?(e=T.msgInput.value,w.emit("istyping",{msg:e})):(null===Mt||5e3',t=document.createElement("div"),1==$.cqd.chatAvatar&&(e.bot?""!=e.avatar?t.style.backgroundImage="url("+e.avatar+")":""!==F.avatar?t.style.backgroundImage="url("+F.avatar+")":t.style.backgroundImage="url("+x+"/chat_bot.svg)":void 0!==e.avatar&&1==$.cqd.avatarType?t.style.backgroundImage="url("+e.avatar+")":void 0!==e.avatar&&void 0!==$.cqd.defaultAvatar&&""!=$.cqd.defaultAvatar?t.style.backgroundImage="url("+$.cqd.defaultAvatar+")":(t.innerHTML='',t.classList.add(Je())),t.className=t.className+" _steamlive_chat_avatar l",e.divIsTyping.appendChild(t)),e.divIsTyping.appendChild(a)),T.log.appendChild(e.divIsTyping),T.log.scrollTop=T.log.scrollHeight,null!==e.timeoutIsTyping&&clearTimeout(e.timeoutIsTyping),e.timeoutIsTyping=setTimeout(function(){St(e,!1)},5e3)}else{e.isTyping=!1;try{T.log.removeChild(e.divIsTyping)}catch(e){}}}function Bt(e,t){var a=0;try{if(null==e)return a;if("none"==e.style.display)return a;var n=window.getComputedStyle(e).getPropertyValue(t),a=void 0!==n&&null!=n&&parseInt(n)||0}catch(e){a=0}return a}function It(e){e?(ta=window.scrollY,T.frame.style.backgroundColor="#F5F5F5",T.frame.style.verticalAlign="text-bottom",T.frame.style.top="0",T.frame.style.left="0",T.frame.style.width="100%",T.frame.style.height="100%",T.frame.style.position="fixed",T.frame.style.zIndex="16000003",T.frame.style.minWidth="100%",T.frame.style.minHeight="100%",T.frame.style.maxWidth="100%",T.frame.style.maxHeight="100%",T.frame.style.opacity="1",T.frame.style.overflow="scroll",T.frame.style.webkitOverflowScrolling="touch",Ya(),T.startChatMessage.style.position=""):(T.frame.style.top="",T.frame.style.left="",T.frame.style.zIndex="16000003",T.frame.style.minWidth="auto",T.frame.style.opacity="1",3===aa()&&(T.frame.style.maxHeight="150px"),null!=ta&&window.scrollTo(0,ta))}var Nt=function(e,i){var t,a,e=(new DOMParser).parseFromString(e,"text/html");return function e(t){if(t.nodeType===Node.TEXT_NODE){const a=/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi;if(a.test(t.textContent)){const n=document.createElement("span");n.innerHTML=t.textContent.replace(a,function(e){return''+e+""}),t.replaceWith(n)}}else t.childNodes.forEach(e)}(e.body),t=e.body,a=i,t.querySelectorAll("a").forEach(function(e){e.target="_blank",e.style.color=a}),e.body.innerHTML},Ht=-1,Dt=null,qt=function(e){-1==e.i&&(e.i=-1==$.lastMsgIdx?0:$.lastMsgIdx+1);var t=new Date;(e.i>$.lastMsgIdx||0==e.i)&&(p=e.i,$.lastMsgIdx=p,J("lastMsgIdx",$.lastMsgIdx),e.ts=t.getTime(),$.msgLog[e.i]=e),J("msgLog",JSON.stringify($.msgLog));var a=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),o=document.createElement("div"),r=document.createElement("div");n.className="_steamlive_chat_divMsgWrapper",null!=e.currentAction&&(U&&(a.style.cursor="pointer"),a.dataset.botAction=e.currentAction);var s=Dt!==e.uId;Dt=e.uId,"steamBot"==e.uId&&1==$.cqd.chatAvatar?s?void 0!==M[e.uId]&&void 0!==M[e.uId].avatar&&""!=M[e.uId].avatar?i.innerHTML="":""!==F.avatar?i.innerHTML="":i.innerHTML="":i.style.visibility="hidden":(s||(i.style.visibility="hidden"),void 0!==M[e.uId]&&1==$.cqd.chatAvatar&&(void 0!==M[e.uId].avatar&&1==$.cqd.avatarType?i.innerHTML="":void 0!==M[e.uId].avatar&&void 0!==$.cqd.defaultAvatar&&""!=$.cqd.defaultAvatar?i.innerHTML="":(i.innerHTML='',i.classList.add(Je())))),o.className="_steamlive_chat_divMsgContainer",r.className="_steamlive_chat_divMsgDateDiv";Math.round(Math.random());var l,c,d,m,p,h,u,g,v,f,y=[];if(e.m.indexOf("{file}")<0?e.uId===$.userId?v=document.createTextNode(e.m):(0<=e.m.indexOf("steamChat_multipleCHoices_message")&&(e.m=e.m.replace(/steamChat_multipleCHoices_choice/g,"steamChat_multipleCHoices_choice steamChat_multipleCHoices_choice_"+e.i)),(v=document.createElement("div")).innerHTML=e.m):("agent"==(b=JSON.parse(e.m.replace("{file}",""))).sender?((_=document.createElement("div")).className="_steamlive_chat_attachment_container",(l=document.createElement("div")).className="_steamlive_chat_attachment_name",l.innerHTML=b.filename.replace(/"/g,""),(c=document.createElement("div")).className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton _steamlive_chat_attachment_download"+b.randid,c.style.display="inline-block",c.style.marginTop="6px",c.innerHTML=Jt("download"),(g=document.createElement("div")).className="user_file_"+$.userId+" "+b.randid,/\.(bmp|gif|ico|cur|jpg|jpeg|jfif|png|webp)$/i.test(b.filename)&&((d=document.createElement("div")).className="_steamlive_chat_img_wrapper",d.setAttribute("img-loading","true"),(m=document.createElement("div")).className="_steamlive_chat_img_loading",(p=document.createElement("span")).className="_steamlive_chat_img_loading_text",p.innerHTML=Jt("loadingImage"),(h=document.createElement("img")).className="_steamlive_chat_img",m.appendChild(p),d.appendChild(m),d.appendChild(h),_.appendChild(d),jt($.userId,b.randid,_)),_.appendChild(l),_.appendChild(c)):((_=document.createElement("div")).className="_steamlive_chat_attachment_container",/image.*/.test(P.type)?((h=document.createElement("img")).className="_steamlive_chat_img",(u=new FileReader).onload=function(){n.querySelector("._steamlive_chat_img").setAttribute("src",u.result)},u.readAsDataURL(P),n.className="_steamlive_chat_divMsgWrapper _steamlive_chat_transparent_background",_.appendChild(h)):_.appendChild(document.createTextNode(b.filename.replace(/"/g,""))),(g=document.createElement("div")).className="user_file_"+$.userId+" "+b.randid,document.createElement("div").innerHTML=Jt("done")+" !"),_.appendChild(g),v=_),e.uId===$.userId){s&&void 0!==M[e.uId]&&void 0!==M[e.uId].alias&&((f=document.createElement("div")).className="_steamlive_chat_msg_username",f.innerHTML=M[e.uId].alias,n.innerHTML="",n.appendChild(f)),n.appendChild(v);var _=document.createElement("div");_.className="_steamlive_chat_timestampR",_.innerHTML="
"+t.toLocaleTimeString()+"
"+(void 0===$.cqd.readCheckmarkVisibility||2===$.cqd.readCheckmarkVisibility||3===$.cqd.readCheckmarkVisibility?"
":""),n.innerHTML=Nt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+$.cqd.chatSenderTextColor),y.push(n),y.push(_),a.className="_steamlive_chat_message r",i.className=i.className+" _steamlive_chat_avatar r",n.style.backgroundColor="#"+$.cqd.chatSenderbackgroundColor,n.style.color="#"+$.cqd.chatSenderTextColor,n.style.borderColor="#"+$.cqd.chatSenderborderColor}else{void 0!==M[e.uId]?((f=document.createElement("div")).className="_steamlive_chat_msg_username",s&&(f.innerHTML=M[e.uId].alias),(s=document.createElement("div")).className="_steamlive_chat_timestampL",s.innerHTML="
"+t.toLocaleTimeString()+"
",n.appendChild(f),n.appendChild(v),e.m.indexOf("{file}")<0&&(n.innerHTML=Nt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+$.cqd.chatReceiverTextColor)),y.push(n),y.push(s),St(M[e.uId],!1)):(void 0!==e.userName?n.innerHTML=e.userName+": ":n.innerHTML="Support: ",n.appendChild(v),e.m.indexOf("{file}")<0&&(n.innerHTML=Nt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+$.cqd.chatReceiverTextColor)),y.push(n)),a.className="_steamlive_chat_message l",i.className=i.className+" _steamlive_chat_avatar l",n.style.backgroundColor="#"+$.cqd.chatReceiverbackgroundColor,n.style.color="#"+$.cqd.chatReceiverTextColor,n.style.borderColor="#"+$.cqd.chatReceiverborderColor;try{W.roomMessage&&(W.roomMessage.currentTime=0),W.roomMessage.play()}catch(e){console.log(e)}}a.style.fontSize=$.cqd.chatFontSize,a.onmouseover=Rt,a.onmouseleave=Ft,a.onclick=Ot;for(var C=0;C",r.style.color="#"+$.cqd.chatReceiverTextColor,r.style.borderColor="#"+$.cqd.chatReceiverTextColor,T.log.appendChild(r)),T.log.contains(T.youWillBeHelpedByDOM)&&setTimeout(()=>{T.log.removeChild(T.youWillBeHelpedByDOM)},2e3),T.log.appendChild(o),T.log.scrollTop=T.log.scrollHeight,0<=e.m.indexOf("{file}"))for(var b=JSON.parse(e.m.replace("{file}","")),C=0;C"+Jt("done")+"!":(a=document.createElement("div"),n=document.createElement("div"),a.className="_steamlive_chat_attachment_progress_bar",n.className="_steamlive_chat_attachment_progress_bar_value",n.style.width=i/o*100+"%",n.style.backgroundColor="#"+$.cqd.color1,a.appendChild(n),T.log.getElementsByClassName(r)[t].innerHTML=a.outerHTML)}}),s.onload=function(e){var t,a,n,i=s.response;void 0!==window.navigator.msSaveBlob?window.navigator.msSaveBlob(i,o):(t=window.URL||window.webkitURL,a=t.createObjectURL(i),!o||void 0===(n=document.createElement("a")).download?window.location=a:(n.href=a,n.download=o,document.body.appendChild(n),n.click()),setTimeout(function(){t.revokeObjectURL(a)},100))},s.send()},jt=function(e,t,n){var i=new XMLHttpRequest;i.open("GET",x+"/previewImg?file="+e+"/"+t,!0),i.responseType="blob",i.onload=function(e){var t=i.response,a=(window.URL||window.webkitURL).createObjectURL(t),t=n.querySelector("._steamlive_chat_img_wrapper");t.querySelector("._steamlive_chat_img").src=a,t.setAttribute("img-loading","false")},i.send()},Wt=function(){v=0,clearInterval(f),J("unreadMessages",0)},Ut=function(e){v+=e,null!==f&&clearInterval(f),f=setInterval(zt,500),J("unreadMessages",v)},zt=function(){},Vt=function(e){var t=document.createElement("div");t.innerHTML=e+"
",t.className="_steamlive_chat_log_debug",T.log.scrollTop=T.log.scrollHeight},Gt=function(e){var t=["en","nl","fr","de","es"];return k=null,"-1"!=e&&""!==e&&null!=e&&-1Thank you",optional:"optional",rateCommentInputPlaceholder:"Type Your Comment Here...",hoursTime:"hours",minutesTime:"minutes",banMessage:"You were banned from this chat.",done:"Done",uploadFailed:"Upload failed",uploadCanceled:"Upload canceled",noneAllowedExtension:"Unallowed extension",fileTooBig:"File exceeds size limit",loadingImage:"Loading image",download:"Download",startChatHint:"The team typically answers in few minutes",contactInformation:"Contact information",openingHours:"Opening hours",sessionMessage:"Continue current conversation or start a new one?",currentSession:"Reopen previous conversation",newSession:"Start a new conversation",transferredChat:"Transferred chat",fillSurvey:"Fill Survey",surveyFilled:"Survey filled",surveyTitle:"Your opinion matters",surveyMsg:"Please fill this survey",yes:"Yes",no:"No",closeChatConfirmation:"This action will end this chat conversation",areYouSure:"Are you sure ?",sendEmailTranscript:"Send Email transcript",emailLabel:"Email*",send:"Send",invalidEmail:"Invalid email address",errorEmailNotSent:"Your email could not be sent",resumeChat:"Resume chat",endChatSession:"End chat session",questionRateChat:"Would you like to rate this chat?",minimiseChat:"Minimise chat",closeToday:"Today, we are closed",helpedBy:"You will be helped by",noAgentAvailable:"No agent available now",newSessionMessage:"Start new chat conversation",previousSessionMessage:"Continue current conversation",contactChannelChat:"Chat with us",contactChannelCall:"Call us",contactChannelEmail:"Email us",contactChannelWhatsApp:"WhatsApp chat",contactChannelEmailFormYourEmail:"Your email",contactChannelEmailFormYourEmailAddress:"Your email address",contactChannelEmailFormPleaseEnterValidEmail:"Please enter a valid email address",contactChannelEmailFormSubject:"Subject",contactChannelEmailFormEmailSubject:"Email subject",contactChannelEmailFormSubjectRequired:"Subject is required",contactChannelEmailFormMessage:"Message",contactChannelEmailFormTypeMessage:"Type your message here",contactChannelEmailFormMessageRequired:"Message is required",contactChannelEmailFormSendEmail:"Send Email",contactChannelEmailFormNewEmail:"New email",contactChannelEmailFormClose:"Close",emailTranscriptCancelBtn:"Email transcript cancel",closeratingSentdialog:"Close rating sent dialog",lastMessageseen:"Your last message has been seen",uploadfile:"Upload a file",alertnotification:"Alert notification",waitingforsupport:"Waiting for support. Please hold on...",callbackformcontainer:"Call back form container",waitingforsupportanimation:"Waiting for support animation",minimizechat:"Minimize chat",maximizechat:"Maximize chat",sendmessage:"Send message",Like:"Like",Dislike:"Dislike",ratestart:"Rate start",closereOpenDialog:"Close reopen chat dialog",closingDayDialog:"Closing day dialog",Supportreadymessage:"Support ready. You can now type your message",chatformcontainer:"Chat form container",liveChaWidget:"Live chat widget",expandToolbarBtn:"Expand toolbar buttons",closeChat:"Close chat",closeRatingDialog:"Close chat rating dialog",chatOpened:"Chat window has been opened",ratingstarscount:"Rating stars count is ",dislikebuttonClicked:"The dislike button was clicked",likebuttonClicked:"The like button was clicked",transcriptStatusIcon:"Email transcript status icon",closeAlerttranscript:"Close alert transcript",transcriptSentStatus:"Transcript sent successfully",bannedSession:"Banned Session Notice",closeTriggermessage:"Close message",remove_Attachement:"Remove attachement"},nl:{msgPlaceholder:"Typ uw bericht en druk op enter",msgSentAt:"Verzonden op",leaveChat:"Chat stoppen",startChat:"Chat starten",clickStartChat:"Klik hier om te beginnen met chatten!",yourName:"Uw naam",yourEmail:"Uw e-mail adres",chatLeft:"Het chatgesprek is beëindigd.",editDetails:" Bewerk gegevens ",joinLeaveYou:"Je hebt ",joinLeaveOther:" heeft ",joinedText:" de chat geopened...",leaveText:" de chat verlaten... ",close:"sluiten",days:["Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag","Zondag"],closed:"gesloten",isTyping:"is aan het typen",startChatImage:"/startchat_nl.png",showAll:"Toon alles",informationSent:"Uw informatie is verstuurd!",callMeBack:"Bel me terug",callBackDate:"Terugbel datum",fillCallBackInformation:"Vul Terugbellen informatie",save:"Opslaan",cancel:"Cancel",reopenChat:"Chat heropenen",chatSessionEnded:"Het chatgesprek is beëindigd",rateMessage:"Hoe zou je deze chat waarderen?",commentMessage:"Laat een reactie achter",sendFeedBack:"Stuur feedback",emailTranscript:"Email transcript",noThanks:"Nee, bedankt",ratingSent:"Uw beoordeling is verzonden!
Dank u wel!",optional:"optioneel",rateCommentInputPlaceholder:"Begin met typen...",hoursTime:"uren",banMessage:"Je bent uit deze chat verbannen.",done:"Klaar",uploadFailed:"Upload mislukt",uploadCanceled:"Upload geannuleerd",noneAllowedExtension:"Geen toegestaan extensie",fileTooBig:"Bestand overschrijdt de maximale grootte",loadingImage:"Afbeelding laden",download:"Download",minutesTime:"minuten",startChatHint:"Het team antwoord normaal binnen een paar minuten",contactInformation:"Contactgegevens",openingHours:"openingstijden",sessionMessage:"Huidig gesprek voortzetten of een nieuw beginnen?",currentSession:"Vorig gesprek opnieuw openen",newSession:"Een nieuw gesprek starten",transferredChat:"Doorverbonden chat",fillSurvey:"Enquête invullen",surveyFilled:"enquête ingevuld",surveyTitle:"Jouw mening telt",surveyMsg:"Vul deze enquête in",yes:"Ja",no:"Nee",closeChatConfirmation:"Deze actie beëindigt dit chatgesprek",areYouSure:"Weet je het zeker ?",sendEmailTranscript:"Stuur e-mailtranscript",emailLabel:"E-mail*",send:"Versturen",invalidEmail:"Ongeldig e-mailadres",errorEmailNotSent:"Uw e-mail kon niet worden verzonden",resumeChat:"Chat hervatten",endChatSession:"Chatgesprek beëindigen",questionRateChat:"Wil je deze chat beoordelen?",minimiseChat:"Chat minimaliseren",closeToday:"Vandaag zijn wij gesloten",helpedBy:"U wordt geholpen door",noAgentAvailable:"Geen agent beschikbaar nu",newSessionMessage:"Nieuwe chatgesprek openen",previousSessionMessage:"Huidig gesprek voortzetten",contactChannelChat:"Chat met ons",contactChannelCall:"Bel ons",contactChannelEmail:"E-mail ons",contactChannelWhatsApp:"WhatsApp chat",contactChannelEmailFormYourEmail:"Uw e-mail",contactChannelEmailFormYourEmailAddress:"Uw e-mailadres",contactChannelEmailFormPleaseEnterValidEmail:"Voer een geldig e-mailadres in",contactChannelEmailFormSubject:"Onderwerp",contactChannelEmailFormEmailSubject:"E-mail onderwerp",contactChannelEmailFormSubjectRequired:"Onderwerp is verplicht",contactChannelEmailFormMessage:"Bericht",contactChannelEmailFormTypeMessage:"Typ hier uw bericht",contactChannelEmailFormMessageRequired:"Bericht is verplicht",contactChannelEmailFormSendEmail:"E-mail verzenden",contactChannelEmailFormNewEmail:"Nieuwe e-mail",contactChannelEmailFormClose:"Sluiten",emailTranscriptCancelBtn:"",closeratingSentdialog:"",lastMessageseen:"",uploadfile:"",alertnotification:"Alert notification",waitingforsupport:"Waiting for support. Please hold on...",callbackformcontainer:"Call back form container",waitingforsupportanimation:"Waiting for support animation",minimizechat:"Minimize chat",maximizechat:"Maximize chat",sendmessage:"Send message",Like:"Like",Dislike:"Dislike",ratestart:"Rate start",closereOpenDialog:"Close reopen chat dialog",closingDayDialog:"Closing day dialog",Supportreadymessage:"Support ready. You can now type your message",chatformcontainer:"Chat form container",liveChaWidget:"",expandToolbarBtn:"",closeChat:"",closeRatingDialog:"",chatOpened:"",ratingstarscount:"",dislikebuttonClicked:"",likebuttonClicked:"",transcriptStatusIcon:"",closeAlerttranscript:"",transcriptSentStatus:"",bannedSession:"",closeTriggermessage:"",remove_Attachement:""},fr:{msgPlaceholder:"Veuillez saisir votre message puis appuyez sur ENTRER",msgSentAt:"Envoyé le",leaveChat:"Terminer",startChat:"Démarrer le chat",clickStartChat:"Cliquez ici pour commencer votre chat!",yourName:"Votre nom",yourEmail:"Votre adresse email",chatLeft:"La conversation de chat est terminée.",editDetails:"Modifier mes infos",joinLeaveYou:"Vous avez ",joinLeaveOther:" a ",joinedText:" rejoint le chat...",leaveText:" quitté le chat... ",close:"fermer",days:["Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"],closed:"Fermé",isTyping:"est en train d'écrire",startChatImage:"/startchat.png",showAll:"Montrer tout",informationSent:"Vos informations ont été envoyées!",callMeBack:"Rappellez moi",callBackDate:"Date de rappel",fillCallBackInformation:"Remplir les informations de rappel",save:"Enregistrer",cancel:"Annuler",reopenChat:"Réouvrir le chat",chatSessionEnded:"La conversation est terminée",rateMessage:"Comment voudriez-vous évaluer ce chat?",commentMessage:"laisser un commentaire",sendFeedBack:"Évaluer",emailTranscript:"Envoyer la transcription",noThanks:"Non, merci",ratingSent:"Votre évaluation a été envoyée!!
Merci",optional:"optionnel",rateCommentInputPlaceholder:"Saisissez votre commentaire ici...",hoursTime:"heurs",banMessage:"Vous avez été banni de ce chat.",done:"Terminé",uploadFailed:"Échec du téléchargement",uploadCanceled:"Téléchargement annulé",noneAllowedExtension:"Extension non autorisée",fileTooBig:"Le fichier dépasse la taille limite",loadingImage:"chargement de l'image",download:"Télécharger",minutesTime:"minutes",startChatHint:"L'équipe réponds typiquement en quelques minutes",contactInformation:"Informations de contact",openingHours:"Horaires d'ouvertures",sessionMessage:"Continuer la conversation en cours ou en démarrer une nouvelle?",currentSession:"Rouvrir la conversation précédente",newSession:"Démarrer une nouvelle conversation",transferredChat:"Chat transférée",fillSurvey:"Remplir le sondage",surveyFilled:"Sondage rempli",surveyTitle:"Votre avis compte",surveyMsg:"Merci de remplir ce sondage",yes:"Oui",no:"Non",closeChatConfirmation:"Cette action mettra fin à cette conversation de chat",areYouSure:"Êtes-vous sûr ?",sendEmailTranscript:"Envoyer la transcription par e-mail",emailLabel:"Email*",send:"Envoyer",invalidEmail:"Adresse e-mail invalide",errorEmailNotSent:"Votre email n'a pas pu être envoyé",resumeChat:"Reprendre le chat",endChatSession:"Terminer la conversation de chat",questionRateChat:"Souhaitez-vous évaluer ce chat ?",minimiseChat:"Réduire le chat",closeToday:"Aujourd'hui, nous sommes fermés",helpedBy:"Vous serez aidé par",noAgentAvailable:"Aucun agent disponible actuellement",newSessionMessage:"Ouvrir une nouvelle conversation de chat",previousSessionMessage:"Ouvrir la conversation de chat précédente",contactChannelChat:"Discuter avec nous",contactChannelCall:"Appelez-nous",contactChannelEmail:"Envoyez-nous un e-mail",contactChannelWhatsApp:"WhatsApp chat",contactChannelEmailFormYourEmail:"Votre e-mail",contactChannelEmailFormYourEmailAddress:"Votre adresse e-mail",contactChannelEmailFormPleaseEnterValidEmail:"Veuillez entrer une adresse e-mail valide",contactChannelEmailFormSubject:"Sujet",contactChannelEmailFormEmailSubject:"Sujet de l'e-mail",contactChannelEmailFormSubjectRequired:"Le sujet est requis",contactChannelEmailFormMessage:"Message",contactChannelEmailFormTypeMessage:"Tapez votre message ici",contactChannelEmailFormMessageRequired:"Le message est requis",contactChannelEmailFormSendEmail:"Envoyer l'e-mail",contactChannelEmailFormNewEmail:"Nouvel e-mail",contactChannelEmailFormClose:"Fermer",emailTranscriptCancelBtn:"Transcription de l'e-mail bouton d'annulation",closeratingSentdialog:"Fermer la boîte de dialogue d'évaluation",lastMessageseen:"Votre dernier message a été vu",uploadfile:"Charger un fichier",alertnotification:"Alerte de notification",waitingforsupport:"En attente de support. S'il vous plaît, attendez...",callbackformcontainer:"Formulaire de rappel",waitingforsupportanimation:"Animation d'attente de support",minimizechat:" Minimiser le chat",maximizechat:" Maximiser le chat",sendmessage:" Envoyer le message",Like:"J'aime",Dislike:"Je n'aime pas",ratestart:"Taux étoile",closereOpenDialog:"Fermer la boîte de dialogue de réouverture",closingDayDialog:" Boîte de dialogue de fermeture",Supportreadymessage:"Support prêt. Vous pouvez maintenant taper votre message",chatformcontainer:"Boîte de dialogue de chat",liveChaWidget:"Widget de chat en direct",expandToolbarBtn:"Agrandir les boutons de la barre d'outils",closeChat:"Fermer le chat",closeRatingDialog:"Fermer la boîte de dialogue d'évaluation",chatOpened:"La fenêtre de chat a été ouverte",ratingstarscount:"Nombre d'étoiles de notation est ",dislikebuttonClicked:"Le bouton Je n’aime pas a été cliqué",likebuttonClicked:"Le bouton J'aime a été cliqué",transcriptStatusIcon:"Icône d’état de la transcription de l’e-mail",closeAlerttranscript:"",transcriptSentStatus:"",bannedSession:"",closeTriggermessage:"",remove_Attachement:""},de:{msgPlaceholder:"Geben Sie Ihre Nachricht und drücken Sie Enter",msgSentAt:"Gesendet am",leaveChat:"Chat abschlieβen",startChat:"Chat starten",clickStartChat:"Klicken Sie hier, um Ihren Chat zu starten!",yourName:"Ihre Name",yourEmail:"Ihre E-Mail-Adresse",chatLeft:"Die Chat-Unterhaltung ist beendet.",editDetails:" Daten bearbeiten",joinLeaveYou:"Du hast",joinLeaveOther:" hat ",joinedText:"diesen Chat geöffnet…",leaveText:"diesen Chat schlieβen…",close:"schließen",days:["Montag","Dienstag","Mittwoch","Donnestag","Freitag","Samstag","Sonntag"],closed:"geschlossen",isTyping:"macht Texteingabe",startChatImage:"/startchat.png",showAll:"Alles anzeigen",informationSent:"Ihre Information wurde gesendet!",callMeBack:"Rufen Sie mich zurück",callBackDate:"Rückrufdatum",fillCallBackInformation:"Rückrufinformation eingeben",save:"Speichern",cancel:"Abbrechen",reopenChat:"Chat erneut öffnen",chatSessionEnded:"Die Chat-Unterhaltung ist beendet",rateMessage:"Wie würden Sie diesen Chat bewerten?",commentMessage:"Hinterlassen Sie einen Kommentar",sendFeedBack:"Feedback senden",emailTranscript:"E-Mail-Transkript",noThanks:"Nein danke",ratingSent:"Ihre Bewertung wurde eingesendet!
Vielen Dank!",optional:"optional",rateCommentInputPlaceholder:"Geben Sie hier Ihren Kommentar ein...",hoursTime:"Stunden",banMessage:"Sie sind von diesem Chat verboten.",done:"Fertig",uploadFailed:"Upload fehlgeschlagen",uploadCanceled:"Upload abgebrochen",noneAllowedExtension:"Nicht erlaubte Erweiterung",fileTooBig:"Datei überschreitet die maximale Größe",loadingImage:"Bild wird geladen",download:"Herunterladen",minutesTime:"Minuten",startChatHint:"Das Team antwortet normalerweise in wenigen Minuten",contactInformation:"Kontakt Informationen",openingHours:"Öffnungszeiten",sessionMessage:"Aktuelle Unterhaltung fortsetzen oder eine neue beginnen?",currentSession:"Vorherige Unterhaltung wieder öffnen",newSession:"Eine neue Unterhaltung starten",transferredChat:"übertragener Chat",fillSurvey:"Umfrage ausfüllen",surveyFilled:"Umfrage ausgefüllt",surveyTitle:"Deine Meinung zählt",surveyMsg:"Bitte füllen Sie diese Umfrage aus",yes:"Ja",no:"Nein",closeChatConfirmation:"Diese Aktion beendet diese Chat-Unterhaltung",areYouSure:"Bist du sicher ?",sendEmailTranscript:"E-Mail-Transkript senden",emailLabel:"Email*",send:"Senden",invalidEmail:"Ungültige E-Mail-Adresse",errorEmailNotSent:"Ihre E-Mail konnte nicht gesendet werden",resumeChat:"Setzen Sie den Chat fort",endChatSession:"Chat-Unterhaltung beenden",questionRateChat:"Möchten Sie diesen Chat bewerten?",minimiseChat:"Chat minimieren",closeToday:"Heute haben wir geschlossen",helpedBy:"Ihnen wird geholfen",noAgentAvailable:"Derzeit ist kein Agent verfügbar",newSessionMessage:"Neue Chat-Unterhaltung starten",previousSessionMessage:"Aktuelle Unterhaltung fortsetzen",contactChannelChat:"Chatten Sie mit uns",contactChannelCall:"Rufen Sie uns an",contactChannelEmail:"E-Mail an uns",contactChannelWhatsApp:"WhatsApp-Chat",contactChannelEmailFormYourEmail:"Ihre E-Mail",contactChannelEmailFormYourEmailAddress:"Ihre E-Mail-Adresse",contactChannelEmailFormPleaseEnterValidEmail:"Bitte geben Sie eine gültige E-Mail-Adresse ein",contactChannelEmailFormSubject:"Betreff",contactChannelEmailFormEmailSubject:"E-Mail-Betreff",contactChannelEmailFormSubjectRequired:"Betreff ist erforderlich",contactChannelEmailFormMessage:"Nachricht",contactChannelEmailFormTypeMessage:"Geben Sie hier Ihre Nachricht ein",contactChannelEmailFormMessageRequired:"Nachricht ist erforderlich",contactChannelEmailFormSendEmail:"E-Mail senden",contactChannelEmailFormNewEmail:"Neue E-Mail",contactChannelEmailFormClose:"Schließen",emailTranscriptCancelBtn:"",closeratingSentdialog:"",lastMessageseen:"",uploadfile:"",alertnotification:"",waitingforsupport:"",callbackformcontainer:"",waitingforsupportanimation:"",minimizechat:"",maximizechat:"",sendmessage:"",Like:"",Dislike:"",ratestart:"",closereOpenDialog:"",closingDayDialog:"",Supportreadymessage:"",chatformcontainer:"",liveChaWidget:"",expandToolbarBtn:"",closeChat:"",closeRatingDialog:"",chatOpened:"",ratingstarscount:"",dislikebuttonClicked:"",likebuttonClicked:"",transcriptStatusIcon:"",closeAlerttranscript:"",transcriptSentStatus:"",bannedSession:"",closeTriggermessage:"",remove_Attachement:""},es:{msgPlaceholder:"Escriba su mensaje y presione enter",msgSentAt:"Enviado",leaveChat:"Detener chat",startChat:"Iniciar chat",clickStartChat:"¡Haga clic aquí para iniciar su chat!",yourName:"Su nombre",yourEmail:"Su dirección de correo electrónico",chatLeft:"La conversación de chat ha terminado",editDetails:"Editar datos",joinLeaveYou:"Tienes",joinLeaveOther:"tiene",joinedText:"abrió el chat...",leaveText:"dejó el chat...",close:"Cerrar",days:["Lunes","Martes","Miércoles","Jueves","Viernes","Sábado","Domingo"],closed:"cerrado",isTyping:"está escribiendo",startChatImage:"/startchat.png",showAll:"Mostrar todo / toda",informationSent:"Su información ha sido enviada!",callMeBack:"Llámame",callBackDate:"Fecha de devolución de llamada",fillCallBackInformation:"Ingrese la información de devolución de llamada",save:"Guardar",cancel:"Cancelar",reopenChat:"Reabrir chat",chatSessionEnded:"La conversación de chat ha terminado",rateMessage:"¿Cómo evaluaria este chat?",commentMessage:"Deje un comentario",sendFeedBack:"Enviar comentarios",emailTranscript:"Transcripción del correo electrónico",noThanks:"No gracias",ratingSent:"¡Su comentario ha sido enviado!
¡Gracias!",optional:"opcional",rateCommentInputPlaceholder:"Escribe tu comentario aquí...",hoursTime:"horas",banMessage:"Ha sido excluido de este chat",done:"Listo",uploadFailed:"Carga fallida",uploadCanceled:"Carga cancelada",noneAllowedExtension:"No se permite la extensión",fileTooBig:"El archivo excede la capacidad maxima",loadingImage:"Cargando imagen",download:"Descargar",minutesTime:"minutos",startChatHint:"El equipo suele responder en pocos minutos.",contactInformation:"Información del contacto",openingHours:"horario de apertura",sessionMessage:"¿Continuar la conversación actual o iniciar una nueva?",currentSession:"Reabrir la conversación anterior",newSession:"Nueva conversación",transferredChat:"Chat transferido",fillSurvey:"Rellenar encuesta",surveyFilled:"Encuesta llena",surveyTitle:"Tu opinion importa",surveyMsg:"Por favor complete esta encuesta",yes:"Sí",no:"No",closeChatConfirmation:"Esta acción terminará esta conversación de chat.",areYouSure:"¿Estas seguro?",sendEmailTranscript:"Enviar transcripción de correo electrónico",emailLabel:"Correo electrónico*",send:"Enviar",invalidEmail:"Dirección de correo electrónico no válida",errorEmailNotSent:"Su correo electrónico no pudo ser enviado",resumeChat:"Reanudar chat",endChatSession:"Terminar la conversación de chat",questionRateChat:"¿Te gustaría calificar este chat?",minimiseChat:"Minimizar chat",closeToday:"Hoy estamos cerrados",helpedBy:"Serás ayudado por",noAgentAvailable:"Ningún agente disponible ahora",newSessionMessage:"Iniciar una nueva conversación de chat",previousSessionMessage:"Continuar la conversación actual",contactChannelChat:"Chatea con nosotros",contactChannelCall:"Llámanos",contactChannelEmail:"Envíanos un correo electrónico",contactChannelWhatsApp:"WhatsApp chat",contactChannelEmailFormYourEmail:"Tu correo electrónico",contactChannelEmailFormYourEmailAddress:"Tu dirección de correo electrónico",contactChannelEmailFormPleaseEnterValidEmail:"Por favor, introduce una dirección de correo electrónico válida",contactChannelEmailFormSubject:"Asunto",contactChannelEmailFormEmailSubject:"Asunto del correo electrónico",contactChannelEmailFormSubjectRequired:"El asunto es obligatorio",contactChannelEmailFormMessage:"Mensaje",contactChannelEmailFormTypeMessage:"Escribe tu mensaje aquí",contactChannelEmailFormMessageRequired:"El mensaje es obligatorio",contactChannelEmailFormSendEmail:"Enviar correo electrónico",contactChannelEmailFormNewEmail:"Nuevo correo",contactChannelEmailFormClose:"Cerrar",emailTranscriptCancelBtn:"",closeratingSentdialog:"",lastMessageseen:"",uploadfile:"",alertnotification:"",waitingforsupport:"",callbackformcontainer:"",waitingforsupportanimation:"",minimizechat:"",maximizechat:"",sendmessage:"",Like:"",Dislike:"",ratestart:"",closereOpenDialog:"",closingDayDialog:"",Supportreadymessage:"",chatformcontainer:"",liveChaWidget:"",expandToolbarBtn:"",closeChat:"",closeRatingDialog:"",chatOpened:"",ratingstarscount:"",dislikebuttonClicked:"",likebuttonClicked:"",transcriptStatusIcon:"",closeAlerttranscript:"",transcriptSentStatus:"",bannedSession:"",closeTriggermessage:"",remove_Attachement:""}},Zt=function(){for(var e={},t=T.startMessage.getElementsByTagName("input"),a=0;a()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)},Qt=function(){for(var e=T.startMessage.getElementsByTagName("input"),t=0;t"+Jt("transferredChat")+"",J("transferTime",Ht),T.log.appendChild(T.transferMsg)):pe(_.WAITING_FOR_AGENT)),e.uId===$.userId&&pe(_.QUIT),T.log.contains(T.youWillBeHelpedByDOM)&&setTimeout(()=>{T.log.removeChild(T.youWillBeHelpedByDOM)},2e3))}),t=0,w.on("msg",function(e){null!=M.steamBot&&null!=M.steamBot.messageDelay&&(V=Number(M.steamBot.messageDelay)),"steamBot"==e.uId?(St(M.steamBot,!0),setTimeout(function(){try{U&&highLightFlowChart(e),t=Math.max(t-V,0)}catch(e){console.log(e)}qt(e)},V+t),t=Math.min(t+V,1e4)):(t=0,qt(e))}),w.on("msgHist",function(e){be(e.arrMsg)}),w.on("banned",function(e){void 0!==$.cqd.banSession&&1==$.cqd.banSession&&(J("_sc_b","1"),Ga(C.BANNED_SESSION))}),w.on("markAsRead",function(e){if(1==e.byUser)for(var t=T.log.getElementsByClassName("_steamlive_chat_msg_readStatus"),a=0;a"+$.cqd.outsideWorkingHoursText+"
"+Jt("openingHours")+"
("+$.cqd.chatTimezone+")",T.openingHours.appendChild(t),T.openingHours.appendChild(T.btnCloseOpeningHours),$.cqd.isInOpeningHour?Ce(!1):(Ce(!0),T.statusButtons.btnJoinLeave.style.display="none",T.iconCloseChat.style.display="none",T.statusButtons.btnEditDetails.style.display="none",Me||(T.msg.style.display="none"),T.waitingForSupport.style.display="none",T.nobodyAvailable.style.display="none")):Ce(!1)}var ca=function(e,t){e.stopPropagation();e=T.msgInput.selectionStart;T.msgInput.value=T.msgInput.value.slice(0,e)+t.innerHTML+T.msgInput.value.slice(e),T.msgInput.selectionStart=e+t.innerHTML.length,T.msgInput.scrollHeight>T.msgInput.offsetHeight&&T.msgInput.offsetHeight<48&&(T.msgInput.style.height=T.msgInput.scrollHeight+"px")},da=function(){T.emojisPopup.innerHTML="",T.emojisPopupBody=document.createElement("div"),T.emojisPopupBody.className="_steamlive_chat_emojis_body",T.emojisArrow=document.createElement("div"),T.emojisArrow.className="_steamlive_chat_emojis_arrow",T.emojisPopupBody.appendChild(T.emojisContainer),T.emojisPopup.appendChild(T.emojisPopupBody),T.emojisPopup.appendChild(T.emojisArrow),T.emojisPopup.setAttribute("tabindex","0"),T.emojisPopup.onclick=function(){T.emojisPopup.style.display="none"},T.emojisPopup.onkeydown=function(e){"Escape"===e.key&&(e.preventDefault(),T.emojisPopup.click())},T.emojisPopup.style.display="flex",("none"!=T.trRating.style.display?T.tdRating:T.tdLog).appendChild(T.emojisPopup)},ma=function(e){var t,a,n,i,o;e&&/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&E?(It(!0),t=(n=T.chatContainer.children)[0],i=n[2],n[3],a=n[4],window.getComputedStyle(T.main.getElementsByClassName("_steamlive_chat_title_div")[0]),a.getElementsByClassName("_steamlive_chat_btn_1")[0],o=T.startMessage.getElementsByClassName("startChatMessage")[0],T.main.getElementsByClassName("formContainer")[0],n=T.main.getElementsByClassName("_steamlive_chat_logdiv")[0],i.getElementsByClassName("_steamlive_chat_log")[0],i=Bt(t,"height")+Bt(a,"height")+Bt(o,"height")+Bt(o,"margin-top"),o=Bt(a,"height"),formContainerHeight=d-i-o,n.style.width="100%",ye(),Bt(a,"height"),Bt(t,"height"),Bt(T.msgInput,"height"),Bt(T.msgInput,"margin-top"),Bt(T.chatLeft,"height"),T.chatLeft.style.display,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(T.btnCloseOpeningHours.style.width="94%",T.btnCloseOpeningHours.style.bottom="0px",T.btnCloseOpeningHours.style.height="30px"):(T.btnCloseOpeningHours.style.top=(d+Bt(T.openingHours,"height"))/2+"px",T.btnCloseOpeningHours.style.height="30px",T.btnCloseOpeningHours.style.width="88%",T.btnCloseOpeningHours.style.marginTop="0px",T.btnCloseOpeningHours.style.marginRight="9px")):e&&/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&!E&&It(!1),e&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(T.iconWideChat.className="hidden",T.frame.style.webkitOverflowScrolling="touch",null==document.querySelector('meta[name="viewport"]')&&((e=document.createElement("meta")).name="viewport",e.content="width=device-width, initial-scale=1.0, user-scalable=0 , maximum-scale=1.0",document.getElementsByTagName("head")[0].appendChild(e),document.getElementsByTagName("body")[0].style.margin="0px"),/iPhone|iPad|iPod/i.test(navigator.userAgent)&&(document.querySelector('meta[name="viewport"]').content="width=device-width, initial-scale=1.0, user-scalable=0 , maximum-scale=1.0"))},pa=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("h4"),n=document.createElement("div"),i=document.createElement("label"),o=document.createElement("input"),r=document.createElement("div"),s=document.createElement("button"),l=document.createElement("button");return e.classList.add("_steamlive_email-transcript-wrapper","_steamlive_email-transcript-wrapper--hide"),t.classList.add("_steamlive_email-transcript-modal"),a.classList.add("_steamlive_email-transcript-header"),n.classList.add("_steamlive_email-transcript-input-wrapper"),i.classList.add("_steamlive_email-transcript-label"),o.classList.add("_steamlive_email-transcript-input"),r.classList.add("_steamlive_email-transcript-input-error"),s.classList.add("_steamlive_email-transcript-send-btn"),l.classList.add("_steamlive_email-transcript-cancel-btn"),a.textContent=Jt("sendEmailTranscript"),i.textContent=Jt("emailLabel"),s.textContent=Jt("send"),r.textContent=Jt("invalidEmail"),l.innerHTML='',n.appendChild(i),n.appendChild(o),n.appendChild(r),t.appendChild(a),t.appendChild(l),t.appendChild(n),t.appendChild(s),e.appendChild(t),o.addEventListener("input",ha),o.addEventListener("blur",ha),s.addEventListener("click",ie),l.addEventListener("click",ua),l.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||l.click()},s.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||s.click()},o.setAttribute("aria-invalid","false"),o.setAttribute("aria-describedby","email-error-message"),r.setAttribute("id","email-error-message"),r.setAttribute("role","alert"),r.setAttribute("aria-live","assertive"),t.setAttribute("tabindex","0"),t.setAttribute("role","dialog"),t.setAttribute("aria-labelledby","emailTranscriptHeader"),t.setAttribute("aria-modal","true"),a.setAttribute("id","emailTranscriptHeader"),l.setAttribute("aria-label",Jt("emailTranscriptCancelBtn")),T.emailTranscriptInputWrapper=n,T.emailTranscriptInput=o,T.emailTranscriptHeader=a,T.emailTranscriptLabel=i,T.emailTranscriptSendBtn=s,T.emailTranscriptInputError=r,e},ha=function(e){var t=T.emailTranscriptInput.value;"blur"==e.type||"input"==e.type&&1==T.emailTranscriptInputWrapper.touched?(T.emailTranscriptInputWrapper.touched=!0,void 0!==t&&null!=t&&""!=t&&Kt(t.trim())?(T.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),T.emailTranscriptInput.setAttribute("aria-invalid","false")):(T.emailTranscriptInputWrapper.classList.add("_steamlive_email-transcript-input-wrapper--error"),T.emailTranscriptInput.setAttribute("aria-invalid","true"))):"input"==e.type&&Kt(t.trim())&&T.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error")},ua=function(){T.emailTranscriptInputWrapper.touched=!1,T.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),T.emailTranscriptDOM.classList.add("_steamlive_email-transcript-wrapper--hide")},ga=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("img"),i=document.createElement("div"),o=document.createElement("div"),r=document.createElement("button"),s=document.createElement("button"),l=document.createElement("button");return e.classList.add("_steamlive_email-transcript-alert","_steamlive_email-transcript-alert--hide"),t.classList.add("_steamlive_email-transcript-alert-wrapper"),a.classList.add("_steamlive_email-transcript-alert-img-wrapper"),n.classList.add("_steamlive_email-transcript-alert-img"),i.classList.add("_steamlive_email-transcript-alert-text"),i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.setAttribute("tabindex","0"),o.classList.add("_steamlive_email-transcript-error-heading"),r.classList.add("_steamlive_email-transcript-resume-chat"),s.classList.add("_steamlive_email-transcript-end-chat"),l.classList.add("_steamlive_email-transcript-cancel-btn"),o.textContent=Jt("errorEmailNotSent"),r.textContent=Jt("resumeChat"),s.textContent=Jt("endChatSession"),e.setAttribute("tabindex","0"),e.setAttribute("role","alertdialog"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-labelledby","email-transcript-heading"),t.setAttribute("tabindex","0"),o.id="email-transcript-heading",i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.setAttribute("tabindex","0"),n.setAttribute("alt",Jt("transcriptStatusIcon")),l.setAttribute("aria-label",Jt("closeAlerttranscript")),r.addEventListener("click",function(){de(et,!1),va()}),s.addEventListener("click",function(){tt(),Ga(C.CHAT_RATING)}),r.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||r.click()},s.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||s.click()},l.innerHTML='',l.addEventListener("click",va),a.appendChild(n),a.appendChild(o),a.appendChild(i),t.appendChild(l),t.appendChild(a),t.appendChild(r),t.appendChild(s),e.appendChild(t),T.emailTranscriptAlertImg=n,T.emailTranscriptAlertText=i,T.emailTranscriptErrorHeading=o,T.emailTranscriptResumeChat=r,T.emailTranscriptEndChat=s,e},va=function(){T.emailTranscriptAlertImg.src="",T.emailTranscriptAlertText.textContent="",T.emailTranscriptAlertDOM.classList.add("_steamlive_email-transcript-alert--hide"),T.emailTranscriptAlertDOM.classList.remove("_steamlive_email-transcript-alert-success","_steamlive_email-transcript-error")},fa=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("h4"),i=document.createElement("div"),o=document.createElement("label"),r=document.createElement("div"),s=document.createElement("label"),l=document.createElement("textarea"),c=document.createElement("div"),d=document.createElement("button"),m=document.createElement("button"),p=document.createElement("button"),h=document.createElement("div"),u=document.createElement("h4"),g=document.createElement("div"),v=document.createElement("button");return t.setAttribute("role","alertdialog"),t.setAttribute("aria-labelledby","chatRatingHeader"),t.setAttribute("aria-describedby","chatRatingRateWrapper chatRatingCommentWrapper"),t.setAttribute("tabindex","0"),t.setAttribute("aria-live","assertive"),p.setAttribute("aria-label",Jt("closeRatingDialog")),s.setAttribute("for","comment"),l.setAttribute("id","comment"),e.classList.add("_steamlive_chat-rating","_steamlive_chat-rating--hide"),t.classList.add("_steamlive_chat-rating-modal"),a.classList.add("_steamlive_chat-rating-wrapper","_steamlive_chat-rating-wrapper--hide"),n.classList.add("_steamlive_chat-rating-header"),i.classList.add("_steamlive_chat-rating-rate-wrapper"),o.classList.add("_steamlive_chat-rating-rate-label"),r.classList.add("_steamlive_chat-rating-comment-wrapper"),s.classList.add("_steamlive_chat-rating-comment-label"),l.classList.add("_steamlive_chat-rating-comment-textarea"),c.classList.add("_steamlive_chat-rating-footer-btn-wrapper"),d.classList.add("_steamlive_chat-rating-submit-btn"),m.classList.add("_steamlive_chat-rating-cancel-btn"),p.classList.add("_steamlive_chat-rating-cancel-icon-btn"),h.classList.add("_steamlive_chat-rating-survey-wrapper","_steamlive_chat-rating-survey-wrapper--hide"),u.classList.add("_steamlive_chat-rating-survey-title"),g.classList.add("_steamlive_chat-rating-survey-text"),v.classList.add("_steamlive_chat-rating-survey-btn"),n.textContent=Jt("chatSessionEnded"),o.textContent=Jt("questionRateChat"),s.textContent=Jt("commentMessage"),d.textContent=Jt("sendFeedBack"),m.textContent=Jt("noThanks"),u.innerHTML=Jt("surveyTitle"),g.innerHTML=Jt("surveyMsg"),v.innerHTML=Jt("fillSurvey"),p.innerHTML='',i.appendChild(o),r.appendChild(s),r.appendChild(l),c.appendChild(d),c.appendChild(m),a.appendChild(p),a.appendChild(n),a.appendChild(i),a.appendChild(r),a.appendChild(c),h.appendChild(u),h.appendChild(g),h.appendChild(v),t.appendChild(a),t.appendChild(h),e.appendChild(t),d.addEventListener("click",function(e){e.stopPropagation(),Ta()}),d.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d.click())}),m.addEventListener("click",function(e){e.stopPropagation(),gt()}),m.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d.click())}),p.addEventListener("click",ya),p.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||p.click()},v.addEventListener("click",te),T.chatRatingWrapper=a,T.chatRatingSurveyWrapper=h,T.chatRatingRateLabel=o,T.chatRatingRateWrapper=i,T.chatRatingCommentTextarea=l,T.chatRatingSurveyBtn=v,T.chatRatingHeader=n,T.chatRatingCommentLabel=s,T.chatRatingSubmitBtn=d,T.chatRatingCancelBtn=m,T.chatRatingSurveyTitle=u,T.chatRatingSurveyText=g,e},ya=function(){T.chatRatingDOM.classList.add("_steamlive_chat-rating--hide")},_a=function(){switch(T.chatRatingRateWrapper.innerHTML="",T.chatRatingRateWrapper.appendChild(T.chatRatingRateLabel),$.cqd.ratingType){case 0:case"0":var e=document.createElement("div"),t=document.createElement("button"),a=document.createElement("button");e.classList.add("_steamlive_chat-rating-rate-btn-wrapper"),t.classList.add("_steamlive_chat-rating-rate-like"),t.setAttribute("aria-label",Jt("Like")),a.classList.add("_steamlive_chat-rating-rate-dislike"),a.setAttribute("aria-label",Jt("Dislike")),t.innerHTML='',a.innerHTML='',t.setAttribute("data-is-active",0),a.setAttribute("data-is-active",0),t.addEventListener("click",Ca),a.addEventListener("click",ba),t.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t.click())},a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),a.click())},e.appendChild(t),e.appendChild(a),T.chatRatingRateWrapper.appendChild(e),T.chatRatingRateLike=t,T.chatRatingRateDislike=a;break;case 1:case"1":var n=document.createElement("div");n.classList.add("_steamlive_chat-rating-stars-wrapper");for(let e=1;e<=5;e++){var i=document.createElement("button");i.id="_steamlive_chat_rate-star-"+e,i.setAttribute("data-index",e),i.setAttribute("data-is-active",1),i.setAttribute("aria-label",Jt("ratestart")+e),i.classList.add("_steamlive_chat-rating-star-btn","_steamlive_chat-rating-star-btn--active"),i.addEventListener("click",wa),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||wa(e)},i.addEventListener("mouseenter",Ea),i.addEventListener("mouseleave",ka),i.innerHTML='',n.appendChild(i)}T.chatRatingRateWrapper.appendChild(n)}},Ca=function(){Za(Jt("likebuttonClicked")),T.chatRatingRateLike.innerHTML='',T.chatRatingRateDislike.innerHTML='',T.chatRatingRateLike.setAttribute("data-is-active",1),T.chatRatingRateDislike.setAttribute("data-is-active",0),J("rateLike",1)},ba=function(){Za(Jt("dislikebuttonClicked")),T.chatRatingRateLike.innerHTML='',T.chatRatingRateDislike.innerHTML='',T.chatRatingRateLike.setAttribute("data-is-active",0),T.chatRatingRateDislike.setAttribute("data-is-active",1),J("rateLike",0)},wa=function(e){var e=e.currentTarget,t=parseInt(e.dataset.index);Za(Jt("ratingstarscount")+" "+t);for(var a,n=1;n<=t;n++)(a=T.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+n)).setAttribute("data-is-active",1),a.classList.add("_steamlive_chat-rating-star-btn--active");for(;n<=5;n++)(a=T.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+n)).setAttribute("data-is-active",0),a.classList.remove("_steamlive_chat-rating-star-btn--active");J("rateStars",t)},Ea=function(e){for(var e=e.currentTarget,t=parseInt(e.dataset.index),a=1;a<=t;a++)T.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+a).classList.add("_steamlive_chat-rating-star-btn--active")},ka=function(){for(var e=1;e<=5;e++){var t=T.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+e);"0"==t.dataset.isActive&&t.classList.remove("_steamlive_chat-rating-star-btn--active")}},Ta=function(){var e=-2;switch($.cqd.ratingType){case 0:case"0":var t=G("rateLike");0==t&&(e=-1),1==t&&(e=1);break;case 1:case"1":t=parseInt(G("rateStars"));isNaN(t)||(e=10*t)}var a=new XMLHttpRequest,n=(n="campagnePID="+$.cqd.campagnePID+"&projectPID="+$.cqd.projectPID+"&callcenterPID="+$.cqd.callcenterPID)+"&comment="+T.chatRatingCommentTextarea.value.replace(/#/g," ")+"&rating="+e+"&rId="+$.userId+"&steamliveChatAction=sendFeedBack";a.onload=function(){200===a.status&&console.log(a.responseText)},a.open("GET",x+"/s/sendFeedBack?"+n,!0),a.setRequestHeader("Content-Type","application/json"),a.send(),Ga(C.CHAT_RATE_SENT),ya()},xa=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("button"),n=document.createElement("img"),i=document.createElement("button");return e.classList.add("_steamlive_chat_rate-sent","_steamlive_chat_rate-sent--hide"),t.classList.add("_steamlive_chat_rate-sent-modal"),a.classList.add("_steamlive_chat_rate-sent-cancel-btn"),n.classList.add("_steamlive_chat_rate-sent-icon"),i.classList.add("_steamlive_chat_rate-sent-chat-again-btn"),i.textContent=Jt("minimiseChat"),i.addEventListener("click",function(e){e.stopPropagation(),gt()}),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||i.click()},a.innerHTML='',a.addEventListener("click",Ma),a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||a.click()},t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-label",Jt("ratingSent")),a.setAttribute("aria-label",Jt("closeratingSentdialog")),t.appendChild(a),t.appendChild(n),t.appendChild(i),e.appendChild(t),T.chatRateSentIcon=n,T.chatRateCloseChatBtn=i,e},Ma=function(){T.chatRateSentIcon.src="",T.chatRateSentDOM.classList.add("_steamlive_chat_rate-sent--hide")},La=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("button"),n=document.createElement("div"),i=document.createElement("button"),o=document.createElement("button");return e.classList.add("_steamlive_chat_reopen-chat-form","_steamlive_chat_reopen-chat-form--hide"),t.classList.add("_steamlive_chat_reopen-chat-form-modal"),a.classList.add("_steamlive_chat_reopen-chat-form-cancel-btn"),a.setAttribute("aria-label",Jt("closereOpenDialog")),n.classList.add("_steamlive_chat_reopen-chat-form-label"),n.setAttribute("role","heading"),n.setAttribute("aria-level","1"),n.setAttribute("tabindex","0"),t.setAttribute("tabindex","0"),i.classList.add("_steamlive_chat_reopen-chat-form-current-btn"),o.classList.add("_steamlive_chat_reopen-chat-form-new-btn"),o.setAttribute("tabindex","0"),n.textContent=Jt("sessionMessage"),i.textContent=Jt("currentSession"),o.textContent=Jt("newSession"),a.innerHTML='',a.addEventListener("click",Aa),i.addEventListener("click",function(){de(et,!1)}),o.addEventListener("click",function(){de(et,!0)}),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||i.click()},o.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||o.click()},a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||a.click()},t.appendChild(a),t.appendChild(n),e.appendChild(t),T.reopenChatFormModal=t,T.reopenChatFormLabel=n,T.reopenChatFormCurrentSessionBtn=i,T.reopenChatFormNewSessionBtn=o,e},Aa=function(){T.reopenChatFormDOM.classList.add("_steamlive_chat_reopen-chat-form--hide")},Sa=function(){var t=document.createElement("div"),e=document.createElement("div"),a=document.createElement("img"),n=document.createElement("div");return t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-label",Jt("bannedSession")),e.setAttribute("tabindex","0"),a.setAttribute("alt","Ban Icon"),a.setAttribute("role","img"),n.setAttribute("role","alert"),n.setAttribute("aria-live","polite"),t.classList.add("_steamlive_chat_banned-session","_steamlive_chat_banned-session--hide"),e.classList.add("_steamlive_chat_banned-session-modal"),a.classList.add("_steamlive_chat_banned-session-icon"),n.classList.add("_steamlive_chat_banned-session-message"),e.appendChild(a),e.appendChild(n),t.appendChild(e),T.bannedSessionIcon=a,T.bannedSessionMessage=n,e.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.add("_steamlive_chat_banned-session--hide")}),t},Ba=function(){T.bannedSessionDOM.classList.add("_steamlive_chat_banned-session--hide"),T.bannedSessionIcon.src=""},Ia=function(){0!=U||!H&&1!=$.cqd.emailTranscript||T.chatToolbarButtons.classList.remove(p.TOOLBAR_BUTTONS_HIDE)},Na=function(){T.chatToolbarButtons.classList.remove(p.TOOLBAR_BUTTONS_EXPANDED),T.chatToolbarButtons.classList.add(p.TOOLBAR_BUTTONS_HIDE)},Ha=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("div");return e.classList.add("_steamlive_chat_closing-day","_steamlive_chat_closing-day--hide"),t.classList.add("_steamlive_chat_closing-day-modal"),a.classList.add("_steamlive_chat_closing-day-icon"),n.classList.add("_steamlive_chat_closing-day-message"),t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("tabindex","0"),t.setAttribute("role","region"),t.setAttribute("aria-label",Jt("closingDayDialog")),n.setAttribute("aria-level","1"),n.setAttribute("role","heading"),a.innerHTML='',t.appendChild(a),t.appendChild(n),e.appendChild(t),T.closingDayModal=t,T.closingDayMessage=n,e},Da=function(){T.closingDayDOM.classList.add("_steamlive_chat_closing-day--hide")},qa=function(e){var t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),o=document.createElement("div"),r=document.createElement("div");return t.classList.add("_steamlive_chat_youWillBeHelpedBy"),a.classList.add("_steamlive_chat_youWillBeHelpedByWrapper"),n.classList.add("_steamlive_chat_youWillBeHelpedByImg"),i.classList.add("_steamlive_chat_youWillBeHelpedByInfoWrapper"),o.classList.add("_steamlive_chat_youWillBeHelpedByLabel"),r.classList.add("_steamlive_chat_youWillBeHelpedByAgentName"),void 0!==$.cqd.helpedByText&&""!==$.cqd.helpedByText?o.textContent=$.cqd.helpedByText:o.textContent=Jt("helpedBy"),r.textContent=e.alias,1==$.cqd.chatAvatar&&(void 0!==e.avatar&&1==$.cqd.avatarType?n.style.backgroundImage="url("+e.avatar+")":void 0!==e.avatar&&void 0!==$.cqd.defaultAvatar&&""!=$.cqd.defaultAvatar?n.style.backgroundImage="url("+$.cqd.defaultAvatar+")":n.style.backgroundImage="url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72.38 72.45'%3E%3Cg %3E%3Cg %3E%3Cpath fill='%23"+$.cqd.color1+"' d='M36.18,72.45a36.23,36.23,0,1,1,36.2-36.11A36.29,36.29,0,0,1,36.18,72.45ZM62.07,59.21C72.67,48,75,27.5,61.93,13a34.59,34.59,0,0,0-51.25-.24c-13.19,14.32-11.23,35-.31,46.55a11.13,11.13,0,0,1,3.72-4.13,57.94,57.94,0,0,1,11.6-6.32,13.78,13.78,0,0,0,2.44-1.27,3,3,0,0,0,1.24-3.12,7.1,7.1,0,0,0-1.81-3.27c-4.35-5.66-6.46-12-5.21-19.13a12.88,12.88,0,0,1,7.87-10.2,15.75,15.75,0,0,1,8.42-1.05,12.6,12.6,0,0,1,8.7,4.77c3.19,4.13,3.66,8.9,2.88,13.84a23.9,23.9,0,0,1-4.95,11.18,13.43,13.43,0,0,0-2,3.6A3.07,3.07,0,0,0,44.67,48a13.38,13.38,0,0,0,2,1.1C49,50.11,51.25,51,53.45,52,56.89,53.71,60.19,55.62,62.07,59.21Z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")"),a.setAttribute("role","alert"),a.setAttribute("aria-live","assertive"),n.setAttribute("aria-hidden","true"),t.appendChild(a),a.appendChild(n),a.appendChild(i),i.appendChild(o),i.appendChild(r),Za(Jt("Supportreadymessage")),t};function Ra(){T.frame.style.display="none"}function Fa(){T.startMessage.style.display="none",T.startChatDOM.classList.add("_steamlive_chat_start-chat--hide"),T.startChatIcon.src=""}function Oa(){E||(T.minimizeCloseBtnDOM.style.display="block")}function Pa(){T.minimizeCloseBtnDOM.style.display="none"}var ja=0;function Wa(n){E||O||(m=!0,setTimeout(()=>{if(!E&&!O){T.triggerMessageText.textContent="",T.triggerMessageText.textContent=n.replace(/<\s/,"<"),T.triggerMessage.classList.add("_steamlive_chat-trigger-message-wrapper--fadein"),setTimeout(function(){E||O||(T.triggerMessage.classList.remove("_steamlive_chat-trigger-message-wrapper--hide"),T.triggerMessage.classList.remove("_steamlive_chat-trigger-message-wrapper--fadein"))},1e3),T.triggerMessageText.style.fontFamily="sans-serif";var e=125;switch($.cqd.widgetSize){case 1:case"1":e=120;break;case 3:case"3":e=130}T.frame.style.width="412px",T.frame.style.height=e+"px";var t=0;switch($.cqd.widgetSize){case 1:case"1":t=T.triggerMessage.offsetHeight;break;default:t=T.triggerMessage.offsetHeight+6}42{"surveySuccess"==e.data&&(T.chatRatingSurveyBtn.style.backgroundColor="green",T.chatRatingSurveyBtn.style.borderColor="green",T.chatRatingSurveyBtn.textContent=Jt("surveyFilled")+" ✔",J("SurveyFilled",1))},!1),1==G("SurveyFilled")&&(T.chatRatingSurveyBtn.style.backgroundColor="green",T.chatRatingSurveyBtn.style.borderColor="green",T.chatRatingSurveyBtn.textContent=Jt("surveyFilled")+" ✔")));break;case C.CHAT_RATE_SENT:T.chatRateSentIcon.src=x+"/success-check.gif",T.chatRateSentDOM.classList.remove("_steamlive_chat_rate-sent--hide"),T.chatRateCloseChatBtn.textContent=Jt("minimiseChat");break;case C.REOPEN_CHAT_FORM:!function(){switch(T.reopenChatFormDOM.classList.remove("_steamlive_chat_reopen-chat-form--hide"),T.reopenChatFormCurrentSessionBtn.textContent=Jt("currentSession"),T.reopenChatFormNewSessionBtn.textContent=Jt("newSession"),T.reopenChatFormModal.contains(T.reopenChatFormNewSessionBtn)&&T.reopenChatFormModal.removeChild(T.reopenChatFormNewSessionBtn),T.reopenChatFormModal.contains(T.reopenChatFormCurrentSessionBtn)&&T.reopenChatFormModal.removeChild(T.reopenChatFormCurrentSessionBtn),$.cqd.chatSessionPopup){case 1:case"1":T.reopenChatFormModal.appendChild(T.reopenChatFormNewSessionBtn),T.reopenChatFormLabel.textContent=Jt("newSessionMessage");break;case 2:case"2":T.reopenChatFormModal.appendChild(T.reopenChatFormCurrentSessionBtn),T.reopenChatFormLabel.textContent=Jt("previousSessionMessage");break;default:T.reopenChatFormLabel.textContent=Jt("sessionMessage"),T.reopenChatFormModal.appendChild(T.reopenChatFormNewSessionBtn),T.reopenChatFormModal.appendChild(T.reopenChatFormCurrentSessionBtn)}}();break;case C.BANNED_SESSION:void 0!==$.cqd.banSession&&1==$.cqd.banSession&&(T.bannedSessionDOM.classList.remove("_steamlive_chat_banned-session--hide"),T.bannedSessionIcon.src=x+"/banned-icon.gif",void 0!==$.cqd.banMessage&&""!=$.cqd.banMessage.trim()?T.bannedSessionMessage.textContent=$.cqd.banMessage:T.bannedSessionMessage.textContent=Jt("banMessage"));break;case C.CLOSING_DAY:null!=$.cqd.closingDaysText&&""!=$.cqd.closingDaysText?T.closingDayMessage.textContent=$.cqd.closingDaysText:T.closingDayMessage.textContent=Jt("closeToday"),T.closingDayModal.appendChild(T.btnCloseOpeningHours),T.closingDayDOM.classList.remove("_steamlive_chat_closing-day--hide");break;case C.NO_AGENT_AVAILABLE:T.noAgentAvailableDOM.classList.remove("_steamlive_chat_no-agent-available--hide"),T.noAgentAvailableIcon.src=x+"/no-agent-available.gif",void 0!==$.cqd.nobodyAvailableText&&""!=$.cqd.nobodyAvailableText.trim()?T.noAgentAvailableMessage.textContent=$.cqd.nobodyAvailableText:T.noAgentAvailableMessage.textContent=Jt("noAgentAvailable");break;case C.START_CHAT:T.startChatDOM.classList.remove("_steamlive_chat_start-chat--hide"),T.startChatIcon.src=x+"/start-chatting.gif",void 0!==$.cqd.msgStartChat&&""!=$.cqd.msgStartChat?T.startChatButton.textContent=$.cqd.msgStartChat:T.startChatButton.textContent=Jt("startChat")}var t,a};function Ja(){at(),ua(),va(),ya(),Ma(),Aa(),Ba(),Da(),T.noAgentAvailableDOM.classList.add("_steamlive_chat_no-agent-available--hide"),T.noAgentAvailableIcon.src="",Fa(),Ka(),qe(),Qa()}function Ya(){var e;U?T.frame.style.display="":void 0!==$.cqd.active&&0!=$.cqd.active&&(T.frame.style.display="",void 0!==(e=$.cqd.chatVisibilityOnClose)&&($.cqd.isInOpeningHour&&!$.cqd.inClosingDay||0==e||!(1==e&&na()||2==e&&!na()||3==e)?T.frame.style.display="":Ra()))}function Za(e){T.liveRegion.textContent="",setTimeout(()=>{T.liveRegion.textContent=e},100)}function Xa(e){if(e&&("block"===window.getComputedStyle(e).display||"flex"===window.getComputedStyle(e).display||"grid"===window.getComputedStyle(e).display)||"absolute"===window.getComputedStyle(e).position){const a=e.querySelectorAll('div,button,[href],textarea,[tabindex]:not([tabindex="-1"])'),n=a[0],i=a[a.length-1];e.addEventListener("keydown",function(e){var t=(T.frame.contentDocument||T.frame.contentWindow.document).activeElement;Array.from(a).some(e=>"button"===e.tagName.toLowerCase()||"div"===e.tagName.toLowerCase()||"button"===e.getAttribute("role"))&&"Tab"===e.key&&(e.shiftKey?t===n&&(e.preventDefault(),i.focus()):t===i&&(e.preventDefault(),n.focus()))}),(n||e).focus()}}function $a(){E=!0,Qa(),Na(),T.minimizeAgentImage.style.display="none",T.main.classList.remove("_steamlive_chat_main_minimized"),T.main.style.backgroundImage="",T.frame.style.maxHeight="calc(100% - 50px)",T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),T.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),Ua(),Ct(),xt(),T.contactChannels.emailForm.classList.remove("_steamlive_chat_contactChannelEmailFormHidden"),kt(!1)}function Ka(){T.contactChannels.emailForm.classList.add("_steamlive_chat_contactChannelEmailFormHidden")}function Qa(){T.contactChannels.whatsAppFormDOM.classList.add("_steamlive_chat_contactChannelWhatsAppHidden")}Gt(),h=parseInt(G("mode")||h,10),y=parseInt(G("tsWaitingForSupport"),10)||null,Be(),ue(),navigator.cookieEnabled||l?($.userId=ee(),$.lastMsgIdx=parseInt(G("lastMsgIdx")||-1,10),""!==G("msgLog")&&void 0!==G("msgLog")&&null!==G("msgLog")&&be(JSON.parse(G("msgLog"))),null===G("opened")?!0===$.startMinimized?gt():m||_t():(!0!==(E=G("opened"))||h==_.QUIT||m?gt:_t)(),U&&($.userId="",$.msgLog=[],Ht=-1,Dt=null,J("chatTranscript",""),h=_.CHATTING),pe(h),K()):(gt(),console.log("Cookies and localStorage are disabled in browser; chat is disabled.")),tsFirstContact=G("tsFirstContact")||(new Date).getTime(),null===tsFirstContact&&(tsFirstContact=(new Date).getTime(),J("tsFirstContact",tsFirstContact)),b=G("autoChatFired")||!1,0<(v=G("unreadMessages")||0)&&Ut(0),me(),setInterval(Q,1e3);const en=T.frame.contentDocument||T.frame.contentWindow.document;var tn=en.querySelector("._steamlive_chat_main");if(tn){const an=new MutationObserver(e=>{e.forEach(e=>{if("attributes"===e.type&&"class"===e.attributeName){const t=e.target;if(!t.classList.contains("_steamlive_email-transcript-input-wrapper")&&(!t.classList.contains("_steamlive_chat_toolbar-buttons--expanded")&&!t.classList.contains("_steamlive_chat_no-agent-available")&&!t.classList.contains("_steamlive_chat_no-agent-available--hide")&&"none"!==window.getComputedStyle(t).display)){e=t.getBoundingClientRect();const a=en.elementsFromPoint(e.left+e.width/2,e.top+e.height/2),n=a.find(e=>e!==t&&"absolute"===window.getComputedStyle(e).position);n?(n.focus(),Xa(n.closest("div"))):(t.focus(),Xa(t))}}})});an.observe(tn,{attributes:!0,subtree:!0})}}();