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,Wa=function(){return n=[function(e,t,a){"use strict";function n(e,t){"object"===(void 0===e?"undefined":r(e))&&(t=e,e=void 0),t=t||{};var a=o(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"===r(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 r="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},o=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),r=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)||(r("protocol-less url %s",e),e=void 0!==t?t.protocol+"//"+e:"https://"+e),r("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||""),r={},o=14;o--;)r[l[o]]=i[o]||"";return-1!=a&&-1!=n&&(r.source=t,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r}},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 r(){m&&p&&(m=!1,p.length?u=p.concat(u):h=-1,u.length&&o())}function o(){if(!m){var e=i(r);m=!0;for(var t=u.length;t;){for(p=u,u=[];++h=this._reconnectionAttempts?(p("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(e=this.backoff.duration(),p("will wait %dms before reconnect attempt",e),this.reconnecting=!0,t=setTimeout(function(){a.skipReconnect||(p("attempting reconnect"),a.emitAll("reconnect_attempt",a.backoff.attempts),a.emitAll("reconnecting",a.backoff.attempts),a.skipReconnect||a.open(function(e){e?(p("reconnect attempt error"),a.reconnecting=!1,a.reconnect(),a.emitAll("reconnect_error",e.data)):(p("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 p(e,t){if(!(this instanceof p))return new p(e,t);t=t||{},e&&"object"==typeof e&&(t=e,e=null),e?(e=o(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=o(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=r(e),a=t.length,n=-1,i="";++n>6&31|192):0==(4294901760&e)?(t=c(e>>12&15|224),t+=o(e,6)):0==(4292870144&e)&&(t=c(e>>18&7|240),t+=o(e,12),t+=o(e,6)),t+c(63&e|128)}(t[n]);return i},decode:function(e){i=r(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===(m=function(){return t}.call(p,u,p,a))||(a.exports=m)}()}.call(p,u(12)(e),function(){return this}())},function(e,t){!function(){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=new Uint8Array(256),e=0;e>2],n+=r[(3&t[i])<<4|t[i+1]>>4],n+=r[(15&t[i+1])<<2|t[i+2]>>6],n+=r[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,r=.75*e.length,o=e.length,s=0;"="===e[e.length-1]&&(r--,"="===e[e.length-2]&&r--);for(var r=new ArrayBuffer(r),l=new Uint8Array(r),c=0;c>4,l[s++]=(15&a)<<4|n>>2,l[s++]=(3&n)<<6|63&i;return r}}()},function(o,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,r,o,s,l=this;this.form||(r=document.createElement("form"),o=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index,r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=s,r.method="POST",r.setAttribute("accept-charset","utf-8"),o.name="d",r.appendChild(o),document.body.appendChild(r),this.form=r,this.area=o),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(p,e,u){!function(r){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=u(26),o=u(27),n=u(36),i=u(37),s=u(38),l=u(3)("engine.io-client:websocket"),c=r.WebSocket||r.MozWebSocket;if("undefined"==typeof window)try{t=u(41)}catch(e){}var d=c;d||"undefined"!=typeof window||(d=t),i(p.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*X.cqd.nobodyAvailableAfterSeconds&&k&&(x.waitingForSupport.style.display="none",1!=X.cqd.callMeBackSetting||!N||1!=X.cqd.unaivalableCallback&&null!=X.cqd.unaivalableCallback?null!=x.noAgentAvailableDOM&&x.noAgentAvailableDOM.classList.contains("_steamlive_chat_no-agent-available--hide")&&0==R&&Ra(C.NO_AGENT_AVAILABLE):(x.nobodyAvailable.style.display="block",x.callBackFormContainerBody.insertBefore(x.nobodyAvailable,x.callBackFormContainerBody.firstChild),pe(_.CALLMEBACK))),b||t(tsFirstContact)&&tsFirstContact+1e3*X.cqd.autoChatSeconds<(new Date).getTime()&&(V("autoChatFired",!0),b=!0,X.cqd.isInOpeningHour&&!X.cqd.inClosingDay||p||1!=xe()?X.cqd.isInOpeningHour&&!X.cqd.inClosingDay&&void 0!==X.cqd.openChatOnDevice&&(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?-1==X.cqd.openChatOnDevice||-2==X.cqd.openChatOnDevice||-1==X.cqd.showOnDevices||p||mt():1==X.cqd.openChatOnDevice||-2==X.cqd.openChatOnDevice||1==X.cqd.showOnDevices||p||mt()):0==X.cqd.chatPopUp&&mt())},Q=function(){return J("_sc_userId")};function ee(){var e;null==(e=J("lastMsgIdx"))&&(e=0),e={surveyPID:X.cqd.surveyPID,targetType:2,targetPID:X.cqd.chatQueuePID,relatedEntity:X.userId,generationDate:Math.round(Date.now()/1e3),lastMsgIdx:e},x.surveyFrame.src="https://"+X.cqd.callcenterName.trim()+"."+h+".eu.com/externalSurvey.aspx?surveyParams="+encodeURIComponent((e=JSON.stringify(e),window.btoa(unescape(encodeURIComponent(e))))),document.body.appendChild(x.surveyPopUpBg),document.body.appendChild(x.surveyPopUp)}function te(){document.body.removeChild(x.surveyPopUpBg),document.body.removeChild(x.surveyPopUp)}function ae(){x.divConfirmEmail.parentNode.removeChild(x.divConfirmEmail)}function ne(){var e=x.emailTranscriptInput.value;if(void 0===e||null==e||""==e||!zt(e.trim()))return x.emailTranscriptInputWrapper.classList.add("_steamlive_email-transcript-input-wrapper--error"),x.emailTranscriptInput.focus(),0;x.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),oa();var t="Message log for queue : "+X.cqd.title;void 0!==X.cqd.emailSubject&&""!=X.cqd.emailSubject&&(t=X.cqd.emailSubject),we(),se({email:e,sub:t,msg:J("chatTranscript")})}function ie(){x.trRating.style.display="none",x.trLog.style.display="block",x.tdLog.style.display="block",da()}function re(){x.divAlert.style.display="none"}function oe(e){V("steamBotAlias",(F=e).alias),V("steamBotAvatar",F.avatar)}var se=function(e){var t,a=new XMLHttpRequest,n="noreply@steam.eu";void 0!==X.cqd.replyTo&&""!=X.cqd.replyTo&&zt(X.cqd.replyTo)&&(n=X.cqd.replyTo,n=(n=void 0!==X.cqd.replyToName&&""!=X.cqd.replyToName?X.cqd.replyToName+" <"+X.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",E+"/s/callMeback?"+t,!0),a.setRequestHeader("Content-Type","application/json"),a.onload=function(){200===a.status&&("ok"==a.responseText.toLowerCase()?Ra(C.EMAIL_TRANSCRIPT_SUCCESS_ALERT):Ra(C.EMAIL_TRANSCRIPT_ERROR_ALERT),console.log(a.responseText))},a.send()},le=function(e,t){x.divAlert.innerHTML="",x.divAlertBody=document.createElement("div"),x.divAlertTxt=document.createElement("div"),x.divAlertBody.className="_steamlive_chat_alertBody",x.divAlertTxt.className="_steamlive_chat_alertTxt",x.divCloseAlert=document.createElement("div"),x.divCloseAlert.style.width="20px",x.divCloseAlert.style.height="20px",x.divCloseAlert.style.color="#ddd",x.divCloseAlert.style.cursor="pointer",x.divCloseAlert.style.position="relative",x.divCloseAlert.style.left="90%",x.divCloseAlert.innerHTML="
X
",x.divCloseAlert.onclick=re,x.divAlertBody.appendChild(x.divCloseAlert),x.divAlertBody.appendChild(x.divAlertTxt),x.divAlert.appendChild(x.divAlertBody),x.divAlertTxt.innerHTML+=e,x.divAlert.onclick=re,x.divAlert.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.divAlert.click()},x.divAlertTxt.setAttribute("role","heading"),x.divAlertTxt.setAttribute("aria-level","2"),x.divAlertTxt.setAttribute("tabindex","0"),x.divAlertBody.setAttribute("tabindex","0"),x.divAlertBody.setAttribute("role","region"),x.divAlertBody.setAttribute("aria-label",Ot("alertnotification")),""!=t&&(x.divAlertBody.innerHTML+=""),x.divAlert.style.display="flex",("none"!=x.trRating.style.display?x.tdRating:x.tdLog).appendChild(x.divAlert)},ce=function(e,t){(t||U)&&(X.lastMsgIdx=-1,X.userId="",X.msgLog=[],Et=-1,Mt=null,V("chatTranscript",""),V("msgLog","")),Qt(e),ba()},de=function(){null!==J("steamBotAlias")&&(F.alias=J("steamBotAlias"),F.avatar=J("steamBotAvatar"))},pe=function e(t){x.chatInputWrapper.style.display="none",x.btnSendChat.style.display="none",x.startMessage.style.display="none",x.waitingForSupport.style.display="none",x.divAlert.style.display="none",x.nobodyAvailable.style.display="none",x.log.style.display="none",x.msgInput.disabled=!0,x.btnSendChat.disabled=!0,x.chatLeft.style.display="none",x.statusButtons.btnEditDetails.style.display="none",x.statusButtons.cancelForm.style.display="none",x.statusButtons.btnJoinLeave.style.display="flex",x.iconCloseChat.style.display="none",x.trRating.style.display="none",1!=X.cqd.emailTranscript?x.toolbarButtonsWrapper.classList.add("_steamlive_chat_edit-contact-only"):x.toolbarButtonsWrapper.classList.remove("_steamlive_chat_edit-contact-only"),x.divConfirmEmail.style.display="none",null!=x.fileinputContainer&&(x.fileinputContainer.style.display="none",x.fileinputContainer.disabled=!0),x.statusButtons.btnJoinLeave.className="_steamlive_chat_btn_newChatButton",x.startMessageFormWrapper.contains(x.editContactInfoBtnWrapper)&&x.startMessageFormWrapper.removeChild(x.editContactInfoBtnWrapper),xa(),t===_.UNTOUCHED?H&&(x.startMessage.style.display="block",x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none"):t===_.FILL_IN_DETAILS?Ee()&&!Me()?(Kt(1),H&&(x.startMessage.style.display="block",x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none")):N&&(x.startMessage.style.display="block",x.nobodyAvailable.style.display="block",x.waitingForSupportText.style.display="none",x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none",Kt(2),x.startMessageFormWrapper.contains(x.startChatMessage)&&x.startMessageFormWrapper.removeChild(x.startChatMessage)):t===_.CALLMEBACK?(x.startMessage.style.display="block",x.nobodyAvailable.style.display="block",x.waitingForSupportText.style.display="none",x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none",Kt(2),x.startMessageFormWrapper.contains(x.startChatMessage)&&x.startMessageFormWrapper.removeChild(x.startChatMessage),t=_.QUIT):t===_.EDIT_DETAILS?(x.startMessage.style.display="block",x.startMessageFormWrapper.contains(x.startChatMessage)&&x.startMessageFormWrapper.removeChild(x.startChatMessage),x.startMessageFormWrapper.appendChild(x.editContactInfoBtnWrapper),Ta()):t===_.WAITING_FOR_AGENT?Ee()&&!Me()&&(x.statusButtons.btnJoinLeave.style.display="flex",x.iconCloseChat.style.display="block",be()<=1?(Be(),Ta(),x.waitingForSupport.style.display="flex",x.waitingForSupportText.style.display="block"):(Le(),x.waitingForSupport.style.display="none",e(_.CHATTING)),x.trLog.style.display="block",x.tdLog.style.display="block",H&&(x.statusButtons.btnEditDetails.style.display="flex"),x.statusButtons.btnJoinLeave.innerHTML=Ot("leaveChat")):t===_.TRANSFER_TO_AGENT?(x.statusButtons.btnJoinLeave.style.display="flex",be()<=2?k&&(x.waitingForSupport.style.display="flex",x.waitingForSupportText.style.display="block"):(Le(),x.waitingForSupport.style.display="none",e(_.CHATTING)),x.trLog.style.display="table-row",x.tdLog.style.display="block",H&&(x.statusButtons.btnEditDetails.style.display="flex"),x.statusButtons.btnJoinLeave.innerHTML=Ot("leaveChat")):t===_.CHATTING?(H&&(x.statusButtons.btnEditDetails.style.display="flex"),x.openingHoursWrapper.style.display="none",x.trLog.style.display="block",x.tdLog.style.display="block",x.log.style.display="block",x.msgInput.disabled=!1,x.btnSendChat.disabled=!1,x.chatInputWrapper.style.display="flex",x.btnSendChat.style.display="block",null!=x.fileinputContainer&&(x.fileinputContainer.disabled=!1,x.fileinputContainer.style.display="block"),x.statusButtons.btnJoinLeave.innerHTML=Ot("leaveChat"),x.iconCloseChat.style.display="block",Fa(),Ta()):t===_.QUIT&&(!Ee()||Me()?(x.log.style.display="none",x.trRating.style.display="none",x.startMessage.style.display="block"):(Kt(1),x.trLog.style.display="block",x.tdLog.style.display="block",x.log.style.display="block"),x.statusButtons.btnJoinLeave.innerHTML=Ot("reopenChat"),x.iconCloseChat.style.display="none",1==J("_sc_b")?Ra(C.BANNED_SESSION):(Ra(C.CHAT_RATING),Ta())),t!==_.QUIT&&t!==_.UNTOUCHED||!0===r&&!1===o&&(we(),w.disconnect()),na(!0),V("mode",t),m=t,tt()};window.dataLayer=window.dataLayer||[];function ue(){dataLayer.push(arguments)}var me,he=function(e){try{if(void 0!==X.cqd.active&&0==X.cqd.active)return!1;var t,a,n;void 0!==X.cqd.analytics&&1==X.cqd.analytics&&((t=document.createElement("script")).onload=function(){ue("js",new Date),ue("config",X.cqd.analyticsTrackingCode),ue("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="+X.cqd.analyticsTrackingCode,document.head.appendChild(t)),Ft(X.cqd.forceLanguage),x.editContactSpan.title=x.editContactSpan.textContent=Ot("editDetails"),x.emailTranscriptSpan.title=x.emailTranscriptSpan.textContent=Ot("emailTranscript"),x.startChatMessageP.innerHTML=Ot("clickStartChat"),x.btnSaveEditContactInfo.textContent=Ot("save"),x.btnCancelEditContactInfo.textContent=Ot("cancel"),ve(),x.callMeBackSuccess.innerHTML=Ot("informationSent"),x.statusButtons.btnEditDetails.innerHTML=Ot("editDetails"),x.title.innerHTML="",x.title.appendChild(x.agentImage),x.txtTitle.innerHTML=X.cqd.title,x.txtTitle.setAttribute("title",X.cqd.title),x.title.appendChild(x.txtTitle),x.title.appendChild(x.iconMinimizeChat),x.title.appendChild(x.iconWideChat),x.title.appendChild(x.iconCloseChat),x.waitingForSupportText.innerHTML=X.cqd.waitingForSupportText,x.nobodyAvailable.innerHTML=X.cqd.nobodyAvailableText,x.statusButtons.btnEditDetails.innerHTML=Ot("editDetails"),1==X.cqd.callMeBackSetting&&N?(x.btnCloseOpeningHours.onclick=function(){_e(!1),Ma(),x.callBackFormContainer.focus()},x.btnCloseOpeningHours.innerHTML=Ot("fillCallBackInformation"),x.btnCloseOpeningHours.setAttribute("aria-label",Ot("fillCallBackInformation")),""!=X.cqd.callMebackText&&void 0!==X.cqd.callMebackText?(x.callMebackButton.innerHTML=X.cqd.callMebackText,x.btnCloseOpeningHours.innerHTML=X.cqd.callMebackText):x.callMebackButton.innerHTML=Ot("callMeBack")):x.btnCloseOpeningHours.innerHTML=Ot("close"),x.btnShowOpeningHoursDetails.innerHTML=Ot("showAll"),x.msgInput.placeholder=Ot("msgPlaceholder"),x.chatLeft.innerHTML=Ot("chatLeft"),""!=X.cqd.msgPlaceHolder&&(x.msgInput.placeholder=X.cqd.msgPlaceHolder),x.openingHours.innerHTML="",void 0!==X.cqd.msgStartChat&&""!=X.cqd.msgStartChat&&(x.startChatMessageP.innerHTML=X.cqd.msgStartChat),void 0!==X.cqd.inClosingDay&&(Me()?(x.openingHoursWrapper.style.display="none",x.openingHours.style.display="none",x.iconCloseChat.style.display="none",Ra(C.CLOSING_DAY),xa()):null!==(a=Fe())?((n=document.createElement("div")).className="_steamlive_chat_OpeningHoursTableWrapper",n.classList.add(Pe(X.cqd.chatColorSchemeID)),n.appendChild(a),n.appendChild(x.btnShowOpeningHoursDetails),x.openingHours.innerHTML="
"+X.cqd.outsideWorkingHoursText+"
"+Ot("openingHours")+"
("+X.cqd.chatTimezone+")
",x.openingHours.appendChild(n),x.openingHours.appendChild(x.btnCloseOpeningHours),Ee()?_e(!1):m!==_.WAITING_FOR_AGENT&&m!==_.CHATTING&&(_e(!0),x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none")):_e(!1)),Qe(e),X.cqd.isInOpeningHour&&!X.cqd.inClosingDay||void 0!==X.cqd.chatPopUp&&(1==X.cqd.chatPopUp?ct():p||mt()),Oa(),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?void 0!==X.cqd.showOnDevices&&-1==X.cqd.showOnDevices&&Ba():void 0!==X.cqd.showOnDevices&&1==X.cqd.showOnDevices&&Ba(),d=fe(),na(e),void 0===x.fileinputContainer&&(x.fileinputContainer=document.createElement("label")),"undefined"!==X.cqd.showEmojis&&1!==X.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],x.emojisContainer=document.createElement("div"),x.emojisContainer.className="_steamlive_chat_emojisContainer",x.emojisContainer.setAttribute("tabindex","0"),x.emojisContainer.addEventListener("keydown",function(e){if("Tab"===e.key){var t=x.emojisContainer.querySelectorAll("._steamlive_chat_emoji");const a=t[t.length-1],n=t[0];t=(x.frame.contentDocument||x.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',x.emojisInput.onclick=aa,x.emojisInput.classList.add(je()),x.emojisInput.setAttribute("role","button"),x.emojisInput.setAttribute("tabindex","0"),x.emojisInput.setAttribute("aria-label","Open emoji picker"),x.emojisInput.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(x.emojisInput.click(),x.emojisContainer.focus())}),x.chatInputWrapper.appendChild(x.emojisInput)),void 0!==X.cqd.attachment&&1==X.cqd.attachment&&Ee()&&!Me()&&(x.fileinput=document.createElement("input"),x.fileinput.type="file",x.fileinput.className="_steamlive_chat_fileinput",x.fileinputContainer.className="_steamlive_chat_fileinputContainer",x.fileinputImg=document.createElement("span"),x.fileinputImg.className="_steamlive_chat_fileinputImg",x.fileinputImg.setAttribute("role","button"),x.fileinputImg.setAttribute("tabindex","0"),x.fileinputImg.setAttribute("aria-label",Ot("uploadfile")),x.fileinputImg.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||x.fileinputImg.click()}),x.fileinputImg.innerHTML='',x.fileNameContainer=document.createElement("div"),x.fileName=document.createElement("div"),x.closeFileName=document.createElement("div"),x.fileNameContainer.className="_steamlive_chat_fileNameContainer",x.fileName.className="_steamlive_chat_fileName",x.closeFileName.className="_steamlive_chat_closeFileName",x.closeFileName.innerHTML="X",x.closeFileName.onclick=ge,x.closeFileName.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||ge()}),x.fileNameContainer.setAttribute("role","region"),x.fileNameContainer.setAttribute("tabindex","0"),x.closeFileName.setAttribute("role","button"),x.closeFileName.setAttribute("aria-label",Ot("remove_Attachement")),x.closeFileName.setAttribute("tabindex","0"),x.fileName.setAttribute("tabindex","0"),x.fileNameContainer.appendChild(x.fileName),x.fileNameContainer.appendChild(x.closeFileName),x.fileinputContainer.appendChild(x.fileNameContainer),x.fileinputContainer.appendChild(x.fileinput),x.chatInputWrapper.appendChild(x.fileinputImg),x.fileinputImg.onclick=qe,x.fileinput.onchange=De,x.fileinput.addEventListener("dragover",function(e){return(e=e||event).preventDefault(),0},!1)),x.msg.appendChild(x.fileinputContainer),x.contactInfoHeading.innerHTML=Ot("contactInformation"),x.btnSendTranscript.innerHTML=Ot("emailTranscript"),1!=X.cqd.emailTranscript?x.toolbarButtonsWrapper.classList.add("_steamlive_chat_edit-contact-only"):x.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==X.cqd.showTriggerMsgOnDevices)return}else if(1==X.cqd.showTriggerMsgOnDevices)return;null==k||k||1!=X.cqd.triggerMessages||null==X.cqd.triggerMessageText||""==X.cqd.triggerMessageText.trim()||(triggerSetting=JSON.parse(X.cqd.triggerMessageText.trim()),function e(t){null!=t[Na]&&0==t[Na].active?(Na++,e(t)):setTimeout(function(){Ha(t[Na].message),setTimeout(function(){Da(),null!=t[++Na]&&e(t)},1e3*t[Na].duration)},1e3*t[Na].delay)}(triggerSetting))}()}catch(e){console.log(e)}},ge=function(e){e.preventDefault(),e.stopPropagation(),x.fileName.innerHTML="",x.fileNameContainer.style.display="none",S=null},ve=function(){if(L=[],x.inputName.value=J("_sc_name"),x.inputEmail.value=J("_sc_email"),void 0!==X.cqd.websiteBoxpid&&0=m[p].callbackHourStart&&hourOption<=m[p].callbackHourEnd&&(d[j].enabled=!0)}else for(p=0;p=t[e].callbackHourStart&&hourOption<=t[e].callbackHourEnd&&(d[j].enabled=!0);var n=document.createElement("option");n.value=0,n.text="* "+Ot("hoursTime"),n.style.color="#464646",g.appendChild(n);for(var i,e=0;e=t[e].callbackHourStart&&hourOption<=t[e].callbackHourEnd&&(u[j].enabled=!0);var n=document.createElement("option");n.value=0,n.text="* "+Ot("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=X.cqd.chatFontFamily,1==X.cqd.fontItalic&&(e.style.fontStyle="italic"),1==X.cqd.fontBold&&(e.style.fontWeight="bold");for(var o,s,l,c=0;c/g,"").replace(/%/g," ").replace(/#/g," ")),divSender.innerHTML+="
"+o+"
"):n[c].uId===X.userId?divSender.innerHTML+="
"+J("_sc_name").replace(/&/g," ").replace(//g,"").replace(/%/g," ").replace(/#/g," ")+"
":divSender.innerHTML+="
Support
",n[c].uId,X.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"+Ot("msgSentAt")+" "+l.toLocaleString()+"
")),i=n[c].ts,r=n[c].uId);V("chatTranscript",e.outerHTML)};var ke=function(){x.log.innerHTML="";for(var e,t,a,n,i,r,o=document.createElement("div"),s=X.msgLog,l=-1,c=null,d=0;d":""!==F.avatar?i.innerHTML="":i.innerHTML="":void 0!==M[s[d].uId]&&1==X.cqd.chatAvatar&&(void 0!==M[s[d].uId].avatar&&1==X.cqd.avatarType?i.innerHTML="":void 0!==M[s[d].uId].avatar&&void 0!==X.cqd.defaultAvatar&&""!=X.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==X.cqd.chatAvatar&&a.appendChild(i),a.appendChild(e),o.appendChild(a);try{void 0!==J("transferTime")&&null!=s[d-1]&&Number(J("transferTime"))>=s[d-1].ts&&Number(J("transferTime"))<=s[d].ts&&((n=document.createElement("div")).className="_steamlive_chat_divMsgtransferDiv",n.innerHTML=""+Ot("transferredChat")+"",o.appendChild(n))}catch(e){}null!=s[d-1]&&(0==d||1<=d&&36e5",divMsgDateDiv.style.color="#"+X.cqd.chatReceiverTextColor,divMsgDateDiv.style.borderColor="#"+X.cqd.chatReceiverTextColor,o.insertBefore(divMsgDateDiv,a)),s[d].uId===X.userId?(e.className="_steamlive_chat_message r",i.className=i.className+" _steamlive_chat_avatar r",t.style.backgroundColor="#"+X.cqd.chatSenderbackgroundColor,t.style.color="#"+X.cqd.chatSenderTextColor,t.style.borderColor="#"+X.cqd.chatSenderborderColor):(e.className="_steamlive_chat_message l",i.className=i.className+" _steamlive_chat_avatar l",t.style.backgroundColor="#"+X.cqd.chatReceiverbackgroundColor,t.style.color="#"+X.cqd.chatReceiverTextColor,t.style.borderColor="#"+X.cqd.chatReceiverborderColor),e.style.fontSize=X.cqd.chatFontSize,e.setAttribute("role","article"),e.setAttribute("aria-label","article"),e.appendChild(t),e.onmouseover=Bt,e.onmouseleave=At,e.onclick=St,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===X.userId?t.innerHTML="
"+J("_sc_name")+"
":t.innerHTML="
"+("steamBot"==s[d].uId?s[d].userName:"Support")+"
"}s[d].uId===X.userId?t.innerHTML+=xt(s[d].m.replace(/&/g,"&").replace(//g,">"),"#"+X.cqd.chatSenderTextColor)+"
":t.innerHTML+=xt(s[d].m,"#"+X.cqd.chatReceiverTextColor)+"
",(d===s.length-1||null!==s[d+1]&&void 0!==s[d+1])&&(d===s.length-1||12e4"+Ot("msgSentAt")+" "+r.toLocaleString()+"
")),l=s[d].ts,c=s[d].uId}Et=s[s.length-1].ts}void 0!==x.log.children[0]?x.log.insertBefore(o,x.log.children[0]):x.log.appendChild(o),x.log.scrollTop=x.log.scrollHeight},Te=function e(){try{U&&unpauseFlowChart()}catch(e){console.log(e)}return!(!Ee()||Me())&&(!Wt()&&(!1===r&&!1===o?Qt(e):m===_.UNTOUCHED?pe(_.FILL_IN_DETAILS):m!==_.FILL_IN_DETAILS&&m!==_.QUIT||(Pa(Ot("waitingforsupport")),pe(_.WAITING_FOR_AGENT),x.waitingForSupportWrapper.focus()),void Aa()))},xe=function(){return 1==X.cqd.virtualAgents&&-1!=X.cqd.vaPID&&0!=X.cqd.vaStatus},Ee=function(){return!!xe()||X.cqd.isInOpeningHour},Me=function(){return!xe()&&X.cqd.inClosingDay},Le=function(){null!=M[X.userId]&&(M[X.userId].alias=x.inputName.value),!0===s&&!0===r&&w.emit("requestSupport",jt())},Be=function(){D||(null===y&&(y=(new Date).getTime(),V("tsWaitingForSupport",y)),!0===s&&!0===r&&(D=!0,w.emit("requestSupport",jt())))},Ae=function(){var e,t;x.frame=document.createElement("iframe"),x.frame.src="",Ba(),x.frame.style.right="30px",x.frame.style.position="fixed",x.frame.frameBorder=0,x.frame.style.zIndex="2147483647",x.frame.className="_steamlive_chat_frame",x.frame.setAttribute("aria-label",Ot("liveChaWidget")),x.frame.setAttribute("role","region"),x.frame.tabIndex=0,x.frame.style.backgroundColor="#F5F5F5",x.frame.style.boxShadow="0 8px 10px -5px #0003, 0 16px 24px 2px #00000024, 0 6px 30px 5px #0000001f",U?(x.frame.style.bottom="0px",x.frame.style.width="350px",x.frame.style.maxWidth="350px",x.frame.style.minHeight="547px",x.frame.style.borderRadius="14px 14px 0 0"):(x.frame.style.width="400px",x.frame.style.maxWidth="400px",x.frame.style.height="600px",x.frame.style.maxHeight="calc(100% - 50px)",x.frame.style.borderRadius="14px",x.frame.style.bottom="30px"),x.main=document.createElement("div"),x.main.className="_steamlive_chat_main",x.main.style.display="none",x.main.addEventListener("click",ot),x.main.tabIndex=0,x.main.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||ot(e)}),x.chatContainer=document.createElement("div"),x.chatContainer.classList.add("_steamlive_chat_container"),x.liveRegion=document.createElement("div"),x.liveRegion.setAttribute("aria-live","polite"),x.liveRegion.setAttribute("role","status"),x.liveRegion.style.position="absolute",x.liveRegion.style.left="-9999px",x.liveRegion.style.width="1px",x.liveRegion.style.height="1px",x.liveRegion.style.overflow="hidden",x.liveRegion.id="aria-status",x.chatContainer.appendChild(x.liveRegion),U&&(x.frame.classList.add("_steamlive_chat_frame_preview"),x.main.classList.add("_steamlive_chat_main_preview"),x.chatContainer.classList.add("_steamlive_chat_container_preview")),x.chatToolbarButtons=document.createElement("div"),x.trLog=document.createElement("div"),x.trMsg=document.createElement("div"),x.trStatus=document.createElement("div"),x.trRating=document.createElement("div"),x.closeChatConfirmation=$e(),x.emailTranscriptDOM=ia(),x.emailTranscriptAlertDOM=sa(),x.chatRatingDOM=ca(),x.chatRateSentDOM=ya(),x.reopenChatFormDOM=Ca(),x.bannedSessionDOM=wa(),x.closingDayDOM=Ea(),x.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),x.noAgentAvailableIcon=e,x.noAgentAvailableMessage=a,t),x.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(),x.waitingForSupportWrapper.setAttribute("tabindex","0"),x.waitingForSupportWrapper.focus())}),e.appendChild(a),e.appendChild(t),n.appendChild(e),x.startChatIcon=a,x.startChatButton=t,n),x.minimizeCloseBtnDOM=function(){var e=document.createElement("button");e.classList.add("_steamlive_chat_close-chat-button"),e.innerHTML='',0==Zt()&&(e.style.display="none");return e.addEventListener("click",function(){Ze(),pe(_.QUIT),Ba()}),e}(),x.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",ot),t.addEventListener("click",function(e){e.stopPropagation(),Da()}),t.setAttribute("aria-label",Ot("closeTriggermessage")),t.setAttribute("type","button"),n.setAttribute("role","text"),a.setAttribute("tabindex","0"),a.appendChild(t),a.appendChild(n),x.triggerMessageText=n,a),x.minimizeAgentImage=((n=document.createElement("img")).classList.add("_steamlive_chat_minimizeAgentImage"),n.style.display="none",n.addEventListener("click",ot),n.addEventListener("error",qa),n),x.chatToolbar=document.createElement("div"),x.tdLog=document.createElement("div"),x.msg=document.createElement("div"),x.msg.className="_steamlive_chat_status_msg_td",x.tdStatus=document.createElement("div"),x.tdStatus.className="_steamlive_chat_status_td",x.tdRating=document.createElement("div"),x.toolbarTriggerBtnWrapper=document.createElement("div"),x.chatToolbarTriggerBtn=document.createElement("button"),x.toolbarButtonsShadow=document.createElement("div"),x.toolbarButtonsWrapper=document.createElement("div"),x.editContactInfoBtn=document.createElement("button"),x.emailTranscriptBtn=document.createElement("button"),x.divActionsContainer=document.createElement("div"),x.divChatSessionEnded=document.createElement("div"),x.divRatingMessage=document.createElement("div"),x.divChatActions=document.createElement("div"),x.divCommentMsg=document.createElement("div"),x.divCommentArea=document.createElement("TEXTAREA"),x.btnSendFeedBack=Ke(Ot("sendFeedBack"),Z),x.btnNoFeedBack=Ke(Ot("noThanks"),ie),x.surveyButton=Ke(Ot("fillSurvey"),ee),x.surveyPopUp=document.createElement("div"),x.surveyPopUpHeader=document.createElement("div"),x.surveyPopUpFooter=document.createElement("div"),x.surveyPopUpBg=document.createElement("div"),x.surveyPopUpHeaderCloseBtn=document.createElement("div"),x.surveyPopUpFooterCloseBtn=document.createElement("div"),x.surveyFrame=document.createElement("iframe"),x.divChatLike=document.createElement("div"),x.divChatdisLike=document.createElement("div"),x.divChatRatingStar1=document.createElement("div"),x.divChatRatingStar2=document.createElement("div"),x.divChatRatingStar3=document.createElement("div"),x.divChatRatingStar4=document.createElement("div"),x.divChatRatingStar5=document.createElement("div"),x.divChatRatingStarsContainer=document.createElement("div"),x.divChatLike.innerHTML='',x.divChatdisLike.innerHTML='',x.divChatRatingStar1.innerHTML='',x.divChatRatingStar2.innerHTML='',x.divChatRatingStar3.innerHTML='',x.divChatRatingStar4.innerHTML='',x.divChatRatingStar5.innerHTML='',x.divChatLike.className="_steamlive_chat_like",x.divChatdisLike.className="_steamlive_chat_dislike",x.divChatRatingStar1.className="_steamlive_chat_starRating _steamlive_chat_starRating1",x.divChatRatingStar2.className="_steamlive_chat_starRating _steamlive_chat_starRating2",x.divChatRatingStar3.className="_steamlive_chat_starRating _steamlive_chat_starRating3",x.divChatRatingStar4.className="_steamlive_chat_starRating _steamlive_chat_starRating4",x.divChatRatingStar5.className="_steamlive_chat_starRating _steamlive_chat_starRating5",x.toolbarTriggerBtnWrapper.className="_steamlive_chat_toolbar-trigger-wrapper",x.chatToolbarTriggerBtn.className="_steamlive_chat_toolbar-trigger",x.chatToolbarTriggerBtn.setAttribute("aria-label",Ot("expandToolbarBtn")),x.toolbarButtonsShadow.className="_steamlive_chat_toolbar-buttons-shadow",x.toolbarButtonsWrapper.className="_steamlive_chat_toolbar-buttons-wrapper",x.editContactInfoBtn.className="_steamlive_chat_toolbar-btn _steamlive_chat_toolbar-btn--left",x.emailTranscriptBtn.className="_steamlive_chat_toolbar-btn _steamlive_chat_toolbar-btn--right",x.trRating.className="_steamlive_chat_rating",x.divChatActions.className="_steamlive_chat_ratingActions",x.divActionsContainer.className="_steamlive_chat_ratingActionsContainer",x.divChatSessionEnded.className="_steamlive_chat_divChatSessionEnded",x.divRatingMessage.className="_steamlive_chat_divRatingMessage",x.divCommentMsg.className="_steamlive_chat_divLeaveComment",x.divCommentArea.className="_steamlive_chat_commentArea",x.btnSendFeedBack.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton _steamlive_chat_btnSendFeedBack",x.surveyButton.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton _steamlive_chat_btnSurvey",x.btnNoFeedBack.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btnNoFeedBack",x.surveyPopUp.className="_steamlive_chat_surveyPopUp",x.surveyPopUpBg.className="_steamlive_chat_surveyPopUpBg",x.surveyPopUpHeader.className="_steamlive_chat_surveyPopUpHeader",x.surveyPopUpFooter.className="_steamlive_chat_surveyPopUpFooter",x.surveyPopUpHeaderCloseBtn.className="_steamlive_chat_surveyPopUpHeaderCloseBtn",x.surveyPopUpFooterCloseBtn.className="_steamlive_chat_surveyPopUpFooterCloseBtn",x.surveyFrame.id="_steamlive_chat_surveyFrame",x.surveyFrame.className="_steamlive_chat_surveyFrame",x.toolbarButtonsWrapper.setAttribute("tabindex","0"),x.chatToolbarTriggerBtn.innerHTML='';var a=document.createElement("span");a.textContent=Ot("editDetails"),x.editContactInfoBtn.innerHTML='',x.editContactInfoBtn.appendChild(a),x.editContactInfoBtn.addEventListener("click",Ge);var n=document.createElement("span");n.textContent=Ot("emailTranscript"),x.emailTranscriptBtn.innerHTML='',x.emailTranscriptBtn.appendChild(n),x.emailTranscriptBtn.addEventListener("click",function(){Ie(),Ra(C.EMAIL_TRANSCRIPT)}),x.editContactSpan=a,x.emailTranscriptSpan=n,x.chatToolbarTriggerBtn.onclick=Se,x.chatToolbarTriggerBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.chatToolbarTriggerBtn.click()},x.editContactInfoBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.editContactInfoBtn.click()},x.emailTranscriptBtn.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.emailTranscriptBtn.click()},x.divChatLike.onclick=Y,x.divChatdisLike.onclick=Y,x.surveyPopUpHeaderCloseBtn.onclick=te,x.surveyPopUpFooterCloseBtn.onclick=te,x.divChatRatingStar1.onclick=Y,x.divChatRatingStar2.onclick=Y,x.divChatRatingStar3.onclick=Y,x.divChatRatingStar4.onclick=Y,x.divChatRatingStar5.onclick=Y,x.surveyContainer=document.createElement("div"),x.surveyContainer.className="_steamlive_chat_surveyContainer",x.surveyText=document.createElement("div"),x.surveyText.className="_steamlive_chat_surveyText",x.surveyTitle=document.createElement("div"),x.surveyTitle.className="_steamlive_chat_surveyTitle",x.surveyTitle.innerHTML="Your opinion matters",x.surveyText.innerHTML="Please fill this survey",x.surveyPopUpFooterCloseBtn.innerHTML="Close survey",x.surveyContainer.appendChild(x.surveyTitle),x.surveyContainer.appendChild(x.surveyText),x.surveyContainer.appendChild(x.surveyButton),x.divActionsContainer.appendChild(x.divChatSessionEnded),x.divActionsContainer.appendChild(x.divRatingMessage),x.divActionsContainer.appendChild(x.divChatActions),x.divActionsContainer.appendChild(x.divCommentMsg),x.divActionsContainer.appendChild(x.divCommentArea),x.divActionsContainer.appendChild(x.btnSendFeedBack),x.divActionsContainer.appendChild(x.btnNoFeedBack),x.divChatRatingStarsContainer.appendChild(x.divChatRatingStar1),x.divChatRatingStarsContainer.appendChild(x.divChatRatingStar2),x.divChatRatingStarsContainer.appendChild(x.divChatRatingStar3),x.divChatRatingStarsContainer.appendChild(x.divChatRatingStar4),x.divChatRatingStarsContainer.appendChild(x.divChatRatingStar5),x.tdRating.appendChild(x.divActionsContainer),x.tdRating.appendChild(x.surveyContainer),x.trLog.appendChild(x.tdLog),x.trMsg.appendChild(x.msg),x.trStatus.appendChild(x.tdStatus),x.trRating.appendChild(x.tdRating),x.surveyPopUpHeader.appendChild(x.surveyPopUpHeaderCloseBtn),x.surveyPopUpFooter.appendChild(x.surveyPopUpFooterCloseBtn),x.surveyPopUp.appendChild(x.surveyPopUpHeader),x.surveyPopUp.appendChild(x.surveyFrame),x.surveyPopUp.appendChild(x.surveyPopUpFooter),x.chatToolbarButtons.className="_steamlive_chat_toolbar-buttons",x.trLog.className="_steamlive_chat_tableRowLog",x.trMsg.className="_steamlive_chat_tableRowMsg",x.trStatus.className="_steamlive_chat_tableRowStatus",x.toolbarTriggerBtnWrapper.appendChild(x.chatToolbarTriggerBtn),x.chatToolbarButtons.appendChild(x.toolbarTriggerBtnWrapper),x.chatToolbarButtons.appendChild(x.toolbarButtonsShadow),x.toolbarButtonsShadow.appendChild(x.toolbarButtonsWrapper),x.toolbarButtonsWrapper.appendChild(x.editContactInfoBtn),x.toolbarButtonsWrapper.appendChild(x.emailTranscriptBtn),x.chatContainer.appendChild(x.chatToolbar),x.chatContainer.appendChild(x.chatToolbarButtons),x.chatContainer.appendChild(x.trRating),x.chatContainer.appendChild(x.trLog),x.chatContainer.appendChild(x.trMsg),x.chatContainer.appendChild(x.trStatus),x.chatContainer.appendChild(x.closeChatConfirmation),x.chatContainer.appendChild(x.emailTranscriptDOM),x.chatContainer.appendChild(x.emailTranscriptAlertDOM),x.chatContainer.appendChild(x.chatRatingDOM),x.chatContainer.appendChild(x.chatRateSentDOM),x.chatContainer.appendChild(x.reopenChatFormDOM),x.chatContainer.appendChild(x.bannedSessionDOM),x.chatContainer.appendChild(x.closingDayDOM),x.chatContainer.appendChild(x.noAgentAvailableDOM),x.chatContainer.appendChild(x.startChatDOM),x.trRating.style.display="none",x.main.appendChild(x.chatContainer),x.log=document.createElement("div"),x.log.style.display="none",x.log.className="_steamlive_chat_logdiv",x.startChatMessage=document.createElement("div"),x.startChatMessage.className="startChatMessage",x.startChatMessage.onclick=Te,x.log.setAttribute("role","log"),x.log.setAttribute("aria-live","polite"),x.log.setAttribute("aria-relevant","additions"),x.startChatMessage.setAttribute("role","button"),x.startChatMessage.setAttribute("tabindex","0"),x.startChatMessage.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.startChatMessage.click()},x.startChatMessageText=document.createElement("div"),x.startChatMessageText.className="startChatMessageText",x.startChatMessageP=document.createElement("p"),x.startChatMessageP.innerHTML=Ot("clickStartChat"),x.startChatMessageText.appendChild(x.startChatMessageP),x.startChatMessageIcon=document.createElement("div"),x.startChatMessage.appendChild(x.startChatMessageIcon),x.startChatMessage.appendChild(x.startChatMessageText),x.startMessage=document.createElement("div"),x.formContainer=document.createElement("div"),x.formContainer.className="formContainer",x.formContainer.setAttribute("tabindex","0"),x.formContainer.setAttribute("role","region"),x.formContainer.setAttribute("aria-label",Ot("chatformcontainer")),x.contactInfoHeading=document.createElement("h4"),x.contactInfoHeading.innerHTML="Contact information",x.contactInfoHeading.className="_steamlive_chat_contactInfoHeading",x.callBackFormContainer=document.createElement("div"),x.callBackFormContainer.className="callBackFormContainer",x.callBackFormContainer.setAttribute("tabindex","0"),x.callBackFormContainer.setAttribute("role","region"),x.callBackFormContainer.setAttribute("aria-label",Ot("callbackformcontainer")),x.callBackFormContainer.addEventListener("keydown",function(e){if("Tab"===e.key)return e.stopPropagation(),!0}),x.callBackFormContainerBody=document.createElement("div"),x.callBackFormContainerBody.className="callBackFormContainerBody",x.callBackFormContainer.appendChild(x.callBackFormContainerBody),x.inputName=Ue(Ot("yourName"),"name"),x.inputEmail=Ue(Ot("yourEmail"),"email"),x.editContactInfoBtnWrapper=document.createElement("div"),x.btnSaveEditContactInfo=document.createElement("button"),x.btnCancelEditContactInfo=document.createElement("button"),x.editContactInfoBtnWrapper.classList.add("_steamlive_chat_editContactInfoBtnWrapper"),x.btnSaveEditContactInfo.classList.add("_steamlive_chat_btnSaveEditContactInfo"),x.btnCancelEditContactInfo.classList.add("_steamlive_chat_btnCancelEditContactInfo"),x.btnSaveEditContactInfo.textContent=Ot("save"),x.btnCancelEditContactInfo.textContent=Ot("cancel"),x.editContactInfoBtnWrapper.appendChild(x.btnCancelEditContactInfo),x.editContactInfoBtnWrapper.appendChild(x.btnSaveEditContactInfo),x.btnSaveEditContactInfo.addEventListener("click",function(){Ye()}),x.btnCancelEditContactInfo.addEventListener("click",function(){x.startMessage.style.display="none",Ut()}),x.btnCancelEditContactInfo.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.btnCancelEditContactInfo.click()},x.btnSaveEditContactInfo.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.btnSaveEditContactInfo.click()},x.formContainer.appendChild(x.contactInfoHeading),x.formContainer.appendChild(x.inputName),x.formContainer.appendChild(x.inputEmail),x.startMessageFormWrapper=document.createElement("div"),x.startMessageFormWrapper.className="_steamlive_chat_startChatFormWrapper",x.startMessageFormWrapper.appendChild(x.formContainer),x.startMessageFormWrapper.appendChild(x.startChatMessage),x.startMessage.appendChild(x.startMessageFormWrapper),x.startMessage.style.display="none",x.startMessage.className="_steamlive_chat_startMessage",x.waitingForSupport=document.createElement("div"),x.waitingForSupport.className="_steamlive_chat_waitingForSupport",x.waitingForSupport.style.display="none",x.waitingForSupportImg=document.createElement("img"),x.waitingForSupportImg.className="_steamlive_chat_waitingForSupportImg",x.waitingForSupportImg.setAttribute("src",E+"/waiting-agent.gif"),x.waitingForSupportImg.alt=Ot("waitingforsupportanimation"),x.waitingForSupportText=document.createElement("div"),x.waitingForSupportText.className="_steamlive_chat_waitingForSupportText",x.waitingForSupportText.id="waitingSupportStatus",x.waitingForSupportWrapper=document.createElement("div"),x.waitingForSupportWrapper.className="_steamlive_chat_waitingForSupportWrapper",x.waitingForSupportWrapper.setAttribute("tabindex","0"),x.waitingForSupportWrapper.setAttribute("role","region"),x.waitingForSupportWrapper.setAttribute("aria-labelledby","waitingSupportStatus"),x.waitingForSupportWrapper.appendChild(x.waitingForSupportImg),x.waitingForSupportWrapper.appendChild(x.waitingForSupportText),x.waitingForSupport.appendChild(x.waitingForSupportWrapper),x.divAlert=document.createElement("div"),x.divAlert.className="_steamlive_chat_alert",x.divAlert.innerHTML="",x.divAlert.style.display="none",x.emojisPopup=document.createElement("div"),x.emojisPopup.className="_steamlive_chat_emojis_popup",x.emojisPopup.innerHTML="",x.emojisPopup.style.display="none",x.divConfirmEmail=document.createElement("div"),x.divConfirmEmail.className="_steamlive_chat_ConfirmEmail",x.divConfirmEmail.innerHTML="",x.tanscriptTo=document.createElement("input"),x.tanscriptTo.className="_steamlive_chat_tanscriptTo",x.btnSendTranscript=Ke(Ot("emailTranscript"),ne),x.btnSendTranscript.className="_steamlive_chat_btn_newChatButton _steamlive_chat_sendTranscript",x.cancelTranscript=document.createElement("div"),x.cancelTranscript.style.width="20px",x.cancelTranscript.style.height="20px",x.cancelTranscript.style.cursor="pointer",x.cancelTranscript.style.position="absolute",x.cancelTranscript.style.top="3px",x.cancelTranscript.style.right="3px",x.cancelTranscript.innerHTML="",x.cancelTranscript.onclick=ae,x.divConfirmEmail.appendChild(x.cancelTranscript),x.divConfirmEmail.appendChild(x.tanscriptTo),x.divConfirmEmail.appendChild(x.btnSendTranscript),x.nobodyAvailable=document.createElement("div"),x.nobodyAvailable.className="_steamlive_chat_nobodyAvailable",x.nobodyAvailable.innerHTML="",x.nobodyAvailable.setAttribute("tabindex","0"),x.chatLeft=document.createElement("div"),x.chatLeft.className="_steamlive_chat_chatLeft",x.chatLeft.innerHTML=Ot("chatLeft"),x.chatLeft.style.display="none",x.tdLog.appendChild(x.waitingForSupport),x.tdLog.appendChild(x.startMessage),x.tdLog.appendChild(x.log),x.tdLog.className="_steamlive_chat_log",x.title=document.createElement("div"),x.title.className="_steamlive_chat_title_div",x.chatToolbar.className="_steamlive_chat_title",x.chatToolbar.appendChild(x.title),x.agentImage=document.createElement("div"),x.agentImage.className="_steamlive_chat_agent_img",x.txtTitle=document.createElement("span"),x.iconMinimizeChat=document.createElement("div"),x.iconMinimizeChat.className="_steamlive_minimize_chat_icon_white",x.iconMinimizeChat.innerHTML='',x.iconMinimizeChat.setAttribute("role","button"),x.iconMinimizeChat.setAttribute("tabindex","0"),x.iconMinimizeChat.setAttribute("aria-label",Ot("minimizechat")),x.iconMinimizeChat.setAttribute("title",Ot("minimizechat")),x.iconMinimizeChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||st(e)}),x.iconMinimizeChat.onclick=st,x.title.appendChild(x.iconMinimizeChat),x.iconWideChat=document.createElement("div"),x.iconWideChat.className="_steamlive_wide_chat_icon_white",x.iconWideChat.innerHTML='',x.iconWideChat.setAttribute("role","button"),x.iconWideChat.setAttribute("tabindex","0"),x.iconWideChat.setAttribute("aria-label",Ot("maximizechat")),x.iconWideChat.setAttribute("title",Ot("maximizechat")),x.iconWideChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||lt(e)}),x.iconWideChat.onclick=lt,x.title.appendChild(x.iconWideChat),x.iconCloseChat=document.createElement("div"),x.iconCloseChat.className="_steamlive_close_chat_icon_white",x.iconCloseChat.setAttribute("role","button"),x.iconCloseChat.setAttribute("tabindex","0"),x.iconCloseChat.setAttribute("aria-label",Ot("closeChat")),x.iconCloseChat.setAttribute("title",Ot("closeChat")),x.iconCloseChat.innerHTML='',x.iconCloseChat.onclick=function(){R=!0,Ra(C.CONFIRM_CLOSE_CHAT)},x.iconCloseChat.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(R=!0,Ra(C.CONFIRM_CLOSE_CHAT))}),x.title.appendChild(x.iconCloseChat),x.msgInput=document.createElement("textarea"),x.msgInput.className="_steamlive_chat_sendMessage",x.msgInput.placeholder=Ot("msgPlaceholder"),x.msgInput.addEventListener("input",function(){x.msgInput.scrollHeight>x.msgInput.offsetHeight&&x.msgInput.offsetHeight<48&&(x.msgInput.style.height=x.msgInput.scrollHeight+"px"),""==x.msgInput.value&&(x.msgInput.style.height="24px")}),x.msgInput.onkeyup=it,x.msgInput.addEventListener("focus",rt),x.btnSendChat=document.createElement("span"),x.btnSendChat.className="_steamlive_chat_btnSendChat",x.btnSendChat.innerHTML='',x.btnSendChat.setAttribute("role","button"),x.btnSendChat.setAttribute("tabindex","0"),x.btnSendChat.setAttribute("aria-label",Ot("sendmessage")),x.btnSendChat.onclick=function(e){e.which=13,e.keyCode=13,it(e)},x.btnSendChat.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||x.btnSendChat.click()},x.chatInputWrapper=document.createElement("div"),x.chatInputWrapper.className="_steamlive_chat_chatInputWrapper",x.chatInputWrapper.appendChild(x.msgInput),x.sendChatContainer=document.createElement("div"),x.sendChatContainer.className="_steamlive_chat_sendChatContainer",x.sendChatContainer.appendChild(x.chatInputWrapper),x.sendChatContainer.appendChild(x.btnSendChat),x.msg.appendChild(x.sendChatContainer),x.msgInput.autofocus=!0,x.msg.appendChild(x.chatLeft),x.status=document.createElement("div"),x.status.className="_steamlive_chat_status",x.statusButtons=document.createElement("div"),x.statusButtons.className="_steamlive_chat_statusButtons",x.statusButtons.btnJoinLeave=Ke(Ot("leaveChat"),Ye,"newChatButton"),x.statusButtons.btnJoinLeave.className="_steamlive_chat_btn_newChatButton",x.statusButtons.btnEditDetails=Ke(Ot("editDetails"),Ge,"newChatButton _steamlive_chat_btn_newChatPrimaryButton"),x.statusButtons.btnEditDetails.className="_steamlive_chat_btn_newChatButton _steamlive_chat_btn_newChatPrimaryButton",x.statusButtons.cancelForm=Ke(Ot("cancel"),Ut,"newChatButton"),x.statusButtons.cancelForm.className="_steamlive_chat_btn_newChatButton",x.poweredBy=document.createElement("div"),x.poweredBy.className="_steamlive_chat_poweredby",x.poweredBy.innerHTML='Powered by ',x.poweredBy.onclick=function(e){window.open("https://www.callcenter-software.com/","_blank").focus()},x.statusButtons.appendChild(x.statusButtons.btnEditDetails),x.statusButtons.appendChild(x.statusButtons.btnJoinLeave),x.statusButtons.appendChild(x.statusButtons.cancelForm),x.status.appendChild(x.poweredBy),x.status.appendChild(x.statusButtons),x.tdStatus.appendChild(x.status),x.openingHoursWrapper=document.createElement("div"),x.openingHours=document.createElement("div"),x.openingHoursWrapper.className="_steamlive_chat_opening-hours-wrapper",x.openingHours.className="_steamlive_chat_openingHours",x.openingHours.setAttribute("tabindex","0"),x.btnCloseOpeningHours=Ke(Ot("close"),function(e){e.stopPropagation(),ct()}.bind(this)),x.btnCloseOpeningHours.className="_steamlive_chat_btn-closing-opening-hours",x.btnShowOpeningHoursDetails=Ke(Ot("showAll"),function(){!function(){for(var e=x.openingHours.getElementsByClassName("_steamlive_chat_openingHours_Row"),t=0;t',x.bannedIcon=document.createElement("div"),x.bannedIcon.className="_steamlive_chat_bannedIcon",x.bannedIcon.innerHTML='',document.body.appendChild(x.frame),x.frame.contentDocument.open(),x.frame.contentDocument.close(),U||(x.frame.contentDocument.body.appendChild(x.triggerMessage),x.frame.contentDocument.body.appendChild(x.minimizeCloseBtnDOM),0==Zt()&&(x.frame.contentDocument.body.addEventListener("mouseenter",Sa),x.frame.contentDocument.body.addEventListener("mouseleave",Ia))),x.frame.contentDocument.body.appendChild(x.minimizeAgentImage),x.frame.contentDocument.body.appendChild(x.main);n=document.createElement("link");n.href=E+"/css",n.rel="stylesheet",n.type="text/css",x.frame.contentDocument.body.appendChild(n),x.callMeBackSuccess=document.createElement("div"),x.callMeBackSuccess.className="_steamlive_chat_callMeBack_Success",x.surveyPopUpBg.style.width="100%",x.surveyPopUpBg.style.top="0px",x.surveyPopUpBg.style.left="0px",x.surveyPopUpBg.style.height="100%",x.surveyPopUpBg.style.backgroundColor="#000",x.surveyPopUpBg.style.opacity="0.5",x.surveyPopUpBg.style.zIndex="2147483648",Zt()?x.surveyPopUpBg.style.position="fixed":x.surveyPopUpBg.style.position="absolute",x.surveyPopUp.style.left="0",x.surveyPopUp.style.right="0",x.surveyPopUp.style.marginLeft="auto",x.surveyPopUp.style.marginRight="auto",x.surveyPopUp.style.backgroundColor="#fff",x.surveyPopUp.style.zIndex="2147483649",Zt()?(x.surveyPopUp.style.width="100%",x.surveyPopUp.style.height="100%",x.surveyPopUp.style.top="0%",x.surveyPopUp.style.position="fixed"):(x.surveyPopUp.style.height="80%",x.surveyPopUp.style.width="80%",x.surveyPopUp.style.top="10%",x.surveyPopUp.style.position="absolute"),x.surveyPopUpHeader.style.height="35px",x.surveyPopUpHeader.style.paddingTop="10px",x.surveyPopUpHeader.style.paddingLeft="10px",x.surveyPopUpHeader.style.fontSize="20px",x.surveyPopUpHeader.style.color="#fff",x.surveyPopUpHeader.style.textAlign="left",x.surveyPopUpHeader.style.backgroundColor="#4C384D",x.surveyFrame.style.width="100%",x.surveyFrame.style.height="calc(100% - 100px)",x.surveyFrame.style.border="none",x.surveyPopUpFooter.style.height="50px",x.surveyPopUpFooter.style.width="100%",x.surveyPopUpHeaderCloseBtn.style.float="right",x.surveyPopUpHeaderCloseBtn.style.height="20px",x.surveyPopUpHeaderCloseBtn.style.width="20px",x.surveyPopUpHeaderCloseBtn.style.margin="5px",x.surveyPopUpHeaderCloseBtn.style.marginRight="15px",x.surveyPopUpHeaderCloseBtn.style.cursor="pointer",x.surveyPopUpHeaderCloseBtn.innerHTML='',x.surveyPopUpFooterCloseBtn.style.backgroundColor="#4C384D",x.surveyPopUpFooterCloseBtn.style.borderColor="#4C384D",x.surveyPopUpFooterCloseBtn.style.color="#fff",x.surveyPopUpFooterCloseBtn.style.height="20px",x.surveyPopUpFooterCloseBtn.style.padding="10px",x.surveyPopUpFooterCloseBtn.style.marginRight="15px",x.surveyPopUpFooterCloseBtn.style.textAlign="center",x.surveyPopUpFooterCloseBtn.style.borderRadius="4px",x.surveyPopUpFooterCloseBtn.style.cursor="pointer",Zt()?(x.surveyPopUpFooterCloseBtn.style.margin="auto",x.surveyPopUpFooterCloseBtn.style.width="90%"):(x.surveyPopUpFooterCloseBtn.style.margin="5px",x.surveyPopUpFooterCloseBtn.style.width="90px",x.surveyPopUpFooterCloseBtn.style.float="right")};function Se(){x.chatToolbarButtons.classList.contains(u.TOOLBAR_BUTTONS_EXPANDED)?Ie():(x.chatToolbarButtons.classList.add(u.TOOLBAR_BUTTONS_EXPANDED),x.toolbarButtonsWrapper.focus())}function Ie(){x.chatToolbarButtons.classList.remove(u.TOOLBAR_BUTTONS_EXPANDED)}function Ne(e){e.preventDefault(),e.stopPropagation(),M={},Ze(),pe(_.QUIT)}function He(e,t){e.classList.remove(t)}var De=function(){if(!0===s&&!0===r){const t=g.split(","),a=this.files[0].name;var e=a.split(".").pop().toLowerCase();return 0==t.length||0==t.includes(e)?(S=null,x.fileNameContainer.style.display="block",x.fileNameContainer.style.backgroundColor="#ED5B56",x.fileName.innerHTML=Ot("noneAllowedExtension"),0):void 0!==X.cqd.chatAttachmentSize&&X.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",Ne),i.addEventListener("click",function(){R=!1,Xe()}),n.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||Ne(e)}),i.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(R=!1,Xe())}),x.closeChatConfirmationMessage=t,x.areYouSureCloseChatConfirmation=a,x.yesBtnCloseChatConfirmation=n,x.noBtnCloseChatConfirmation=i,e},Ke=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},Qe=function(e){if(void 0!==X.cqd.active&&0==X.cqd.active)return!1;k||dt(),x.startMessageFormWrapper.classList.add(Pe(X.cqd.chatColorSchemeID)),x.formContainer.classList.add(Pe(X.cqd.chatColorSchemeID)),x.log.classList.add(Pe(X.cqd.chatColorSchemeID)),x.callBackFormContainerBody.classList.add(Pe(X.cqd.chatColorSchemeID)),x.msgInput.classList.add(Pe(X.cqd.chatColorSchemeID)),et(),x.main.style.display="block",e&&Oa()},et=function(){x.main.style.borderColor="#"+X.cqd.color3,x.title.style.backgroundColor="#"+X.cqd.color1,x.title.style.color="#"+X.cqd.color2,""==X.cqd.startChatMsgBGcolor?x.startChatMessage.style.backgroundColor="#"+X.cqd.color1:x.startChatMessage.style.backgroundColor="#"+X.cqd.startChatMsgBGcolor,""==X.cqd.startChatMsgTextcolor?x.startChatMessage.style.color="#"+X.cqd.color2:x.startChatMessage.style.color="#"+X.cqd.startChatMsgTextcolor,""==X.cqd.noAgentAvailableBGcolor?x.nobodyAvailable.style.backgroundColor="#"+X.cqd.color1:x.nobodyAvailable.style.backgroundColor="#"+X.cqd.noAgentAvailableBGcolor,""==X.cqd.noAgentAvailablecolor?x.nobodyAvailable.style.color="#"+X.cqd.color2:x.nobodyAvailable.style.color="#"+X.cqd.noAgentAvailablecolor,""==X.cqd.noAgentAvailableBordercolor?x.nobodyAvailable.style.borderColor="#"+X.cqd.color3:x.nobodyAvailable.style.color="#"+X.cqd.noAgentAvailablecolor,void 0!==X.cqd.fontBold&&1==X.cqd.fontBold&&(x.chatContainer.style.fontWeight="bold"),void 0!==X.cqd.fontItalic&&1==X.cqd.fontItalic&&(x.chatContainer.style.fontStyle="italic"),"undefined"!=typeof _customCSS&&""!=_customCSS.trim()&&((t=document.createElement("link")).href=_customCSS,t.rel="stylesheet",t.type="text/css",x.frame.contentDocument.body.appendChild(t)),x.btnSendChat.style.backgroundColor="#"+X.cqd.color1,x.surveyPopUpHeader.style.backgroundColor="#"+X.cqd.color1,x.surveyPopUpFooterCloseBtn.style.backgroundColor="#"+X.cqd.color1,x.surveyPopUpFooterCloseBtn.style.borderColor="#"+X.cqd.color1,x.fileNameContainer&&(x.fileNameContainer.style.backgroundColor="#"+X.cqd.color1),x.waitingForSupportImg.classList.add(je()),at(),nt();var e=document.createElement("style"),t=X.cqd.triggerMessageColor?X.cqd.triggerMessageColor.replace("#",""):X.cqd.color1;e.innerHTML="._steamlive_chat_startMessage_input:focus {border-color: #"+X.cqd.color1+" !important;}._steamlive_chat_btn_newChatButton._steamlive_chat_btn_newChatButton {background-color: #"+(X.cqd.chatButtonsTextcolor||X.cqd.color2)+" !important;color: #"+(X.cqd.chatButtonsBGcolor||X.cqd.color2)+" !important;border-color: #"+(X.cqd.chatButtonsBordercolor||X.cqd.color2)+" !important;}._steamlive_chat_btn_newChatPrimaryButton._steamlive_chat_btn_newChatButton {background-color: #"+(X.cqd.chatButtonsBGcolor||X.cqd.color2)+" !important;color: #"+(X.cqd.chatButtonsTextcolor||X.cqd.color1)+" !important;;border-color: #"+(X.cqd.chatButtonsBordercolor||X.cqd.color2)+" !important;}._steamlive_chat_scroll {scrollbar-color: #"+X.cqd.color1+" #ddd !important;}._steamlive_chat_scroll::-webkit-scrollbar-thumb {background-color: #"+X.cqd.color1+" !important;}.steamChat_multipleCHoices_choice {color: #"+X.cqd.chatReceiverTextColor+";border-color: #"+X.cqd.chatReceiverTextColor+";}.steamChat_multipleCHoices_choice:hover, .steamChat_multipleCHoices_chosen {background-color: #"+X.cqd.chatReceiverTextColor+";color: #"+X.cqd.chatReceiverbackgroundColor+";border-color: #"+X.cqd.chatReceiverbackgroundColor+";}._steamlive_chat_Svgtheme {fill: #"+X.cqd.color1+" !important;}._steamlive_chat_toolbar-buttons::after {background-color: #"+X.cqd.color1+" !important;}._steamlive_chat_toolbar-trigger:hover {background-color: #"+X.cqd.color1+" !important;}._steamlive_chat_toolbar-btn:not(:disabled):hover {background-color: #"+X.cqd.color1+" !important;color: #"+X.cqd.color2+" !important;}._steamlive_chat_toolbar-btn--left {border-right-color: #"+X.cqd.color1+" !important;}._steamlive_chat_toolbar-buttons--expanded ._steamlive_chat_toolbar-trigger-wrapper {background-color: #"+X.cqd.color1+" !important;}._steamlive_chat_main._steamlive_chat_main_minimized {background-color: #"+X.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: #"+X.cqd.color1+" !important;color: #"+X.cqd.color2+" !important;}._steamlive_chat_closing-day-icon svg path {fill: #"+X.cqd.color1+" !important;}._steamlive_chat-trigger-message-wrapper {background-color: #"+t+" !important;}._steamlive_chat-trigger-message-wrapper::after {border-top: 10px solid #"+t+" !important;}",x.main.appendChild(e),tt()},tt=function(){U&&(x.iconMinimizeChat.style.display="none",x.iconCloseChat.style.display="none",x.iconWideChat.style.display="none",x.txtTitle.style.display="none",x.trStatus.style.display="none",x.main.style.borderRadius="unset",x.divAlert.style.bottom="0px",x.divAlert.style.height="calc(100% - 35px)")},at=function(){var e=document.createElement("link");e.rel="stylesheet",e.type="text/css",e.media="all",void 0!==X.cqd.chatFontFamily&&""!=X.cqd.chatFontFamily?["Arial","Verdana","Como"].includes(X.cqd.chatFontFamily)?(x.main.style.fontFamily="'"+X.cqd.chatFontFamily+"'",x.main.appendChild(e)):(e.href="https://fonts.googleapis.com/css?family="+X.cqd.chatFontFamily+"&display=fallback",x.main.style.fontFamily="'"+X.cqd.chatFontFamily.replace(/\+/g," ")+"'"):e.href="https://fonts.googleapis.com/css?family=Roboto&display=fallback",x.main.appendChild(e)},nt=function(){"number"==typeof X.cqd.iconsTheme&&1==X.cqd.iconsTheme&&(x.iconWideChat.className="_steamlive_wide_chat_icon_dark",x.iconMinimizeChat.className="_steamlive_minimize_chat_icon_dark",x.iconCloseChat.className="_steamlive_close_chat_icon_dark")},it=function(e){if(!0!==s||!0!==r)return Rt("Not connected; please wait a moment before sending your message"),!1;if(13!==e.which&&13!==e.keyCode||e.shiftKey)Ct();else if(null!=S&&!0===s&&!0===r&&(t=new XMLHttpRequest,o="randId"+Math.round(9999999999*Math.random())+9999999999,c=document.createElement("div"),d=document.createElement("div"),p=document.createElement("div"),S.randId=o,u={filename:S.name,randid:o,sender:"user"},(A[o]=t).upload&&(t.upload.onprogress=function(e){for(var t,a,n=e.position||e.loaded,i=e.totalSize||e.total,r=0;r"+Ot("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="#"+X.cqd.color1,t.appendChild(a),x.log.getElementsByClassName(o)[r].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=u.filename.replace(/"/g,"");var r=document.createElement("div");r.className="_steamlive_chat_attachment_cancel _steamlive_chat_attachment_cancel"+u.randid,r.innerHTML='';var o=document.createElement("div");o.className="user_file_"+X.userId+" "+u.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",p.style.backgroundColor="#"+X.cqd.chatSenderbackgroundColor,p.style.color="#"+X.cqd.chatSenderTextColor,p.style.borderColor="#"+X.cqd.chatSenderborderColor,p.style.fontSize=X.cqd.chatFontSize,a.appendChild(n),a.appendChild(i),a.appendChild(o),a.appendChild(r),c.appendChild(a),c.appendChild(s),d.appendChild(c),x.log.appendChild(d);for(var l=0;l"+Ot("uploadCanceled")+"!"},t.upload.onerror=function(e){console.log(e);for(var t=0;t"+Ot("uploadFailed")+"!"},t.upload.onload=function(e){console.log("onload")},t.upload.ontimeout=function(e){console.log(e);for(var t=0;t"+Ot("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(u),rId:X.userId}))}),t.open("post",E+"/upload",!0),(e=new FormData).append("foldername",X.userId),e.append(o,S),t.send(e),S=null,x.fileNameContainer.style.display="none",x.fileName.innerHTML=""),bt())return x.msgInput.value="",!(x.msgInput.style.height="24px");var t,o,c,d,p,u},rt=function(){!0===r&&!1===o&&w.emit("markAsRead",{rId:X.userId,by:2})},ot=function(){!1===k&&mt()},st=function(e){e&&(e.preventDefault(),e.stopPropagation()),ct()},lt=function(e){e&&(e.preventDefault(),e.stopPropagation()),0==x.main.classList.contains("chatMaximized")?(x.main.classList.add("chatMaximized"),x.iconWideChat.innerHTML='',U?(x.frame.style.width="90%",x.frame.style.maxWidth="10px"):(x.frame.style.width="500px",x.frame.style.maxWidth="500px",x.frame.style.height="700px",x.frame.style.maxHeight="calc(100% - 50px)")):(x.main.classList.remove("chatMaximized"),x.iconWideChat.innerHTML='',U?(x.frame.style.width="350px",x.frame.style.maxWidth="350px"):(x.frame.style.width="400px",x.frame.style.maxWidth="400px",x.frame.style.height="600px",x.frame.style.maxHeight="calc(100% - 50px)"))},ct=function(){V("opened",k=!1),dt(),na(!0)},dt=function(){switch(x.frame.style.right="40px",x.frame.style.bottom="40px",x.main.classList.add("_steamlive_chat_main_minimized"),x.main.classList.remove("chatMaximized"),x.frame.style.minWidth="",x.frame.style.maxWidth="",x.frame.style.minHeight="",x.frame.style.maxHeight="",x.frame.style.borderRadius="",x.frame.style.boxShadow="",x.frame.style.borderRadius="",x.frame.style.backgroundColor="",x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),Zt()&&Sa(),X.cqd.widgetSize){case 1:case"1":x.frame.style.width="62px",x.frame.style.height="62px",x.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_small");break;case 3:case"3":x.frame.style.width="82px",x.frame.style.height="82px",x.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_large");break;default:X.cqd.widgetSize=2,x.frame.style.width="80px",x.frame.style.height="80px",x.frame.contentDocument.body.classList.add("_steamlive_chat_main_minimized_medium")}null!=q&&null!=q.avatar&&1==X.cqd.chatAvatar&&1==X.cqd.avatarType?pt(q.avatar):null!=X.cqd.widgetPicture&&""!=X.cqd.widgetPicture?pt(X.cqd.widgetPicture):ut()},pt=function(e){x.minimizeAgentImage.style.display="block",x.minimizeAgentImage.src=e},ut=function(){x.minimizeAgentImage.style.display="none",x.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")'},mt=function(){initialOpen=k,V("opened",k=!0),x.minimizeAgentImage.style.display="none",x.main.classList.remove("_steamlive_chat_main_minimized"),x.main.style.backgroundImage="",x.frame.style.maxHeight="calc(100% - 50px)",x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_small"),x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_large"),x.frame.contentDocument.body.classList.remove("_steamlive_chat_main_minimized_medium"),Da(),yt(),pe(m),x.iconWideChat.style.display="",x.iconMinimizeChat.style.display="";var e=J("mode");e!=_.WAITING_FOR_AGENT&&e!=_.CHATTING||(x.iconCloseChat.style.display="block"),Ee()||Me()?_e(!1):(_e(!0),x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none"),0==U&&Ee()&&!Me()&&m==_.QUIT&&Ra(C.REOPEN_CHAT_FORM),function(e){ht=e?(gt=!1,1):(gt=!0,0);requestAnimationFrame(ft)}(!1),Ht(),Pa(Ot("chatOpened")),tt()};let ht=0,gt=!1,vt=.05;function ft(){ht<=1&>&&(ht+=vt,x.frame.style.transform="scale("+Math.min(ht,1)+")",x.frame.style.transformOrigin="bottom right",x.frame.style.opacity=Math.min(ht,1),requestAnimationFrame(ft))}var yt=function(){x.frame.style.right="30px",x.frame.style.transform="none",x.frame.style.height="",x.frame.contentDocument.body.style.width="",x.frame.style.backgroundColor="#F5F5F5",U?(x.frame.style.bottom="0px",x.frame.style.width="350px",x.frame.style.maxWidth="350px",x.frame.style.minHeight="547px",x.frame.style.borderRadius="14px 14px 0 0"):(x.frame.style.bottom="30px",x.frame.style.width="400px",x.frame.style.maxWidth="400px",x.frame.style.height="600px",x.frame.style.borderRadius="14px",x.frame.style.boxShadow="0 8px 10px -5px #0003, 0 16px 24px 2px #00000024, 0 6px 30px 5px #0000001f",Ia()),x.callBackFormContainer.style.display="",x.txtTitle.style.fontSize="",x.title.style.height="",x.txtTitle.style.display="block"},_t=null,Ct=function(){var e;!0===s&&!0===r&&(1==X.cqd.sneakPeek?(e=x.msgInput.value,w.emit("istyping",{msg:e})):(null===_t||5e3',t=document.createElement("div"),1==X.cqd.chatAvatar&&(e.bot?""!=e.avatar?t.style.backgroundImage="url("+e.avatar+")":""!==F.avatar?t.style.backgroundImage="url("+F.avatar+")":t.style.backgroundImage="url("+E+"/chat_bot.svg)":void 0!==e.avatar&&1==X.cqd.avatarType?t.style.backgroundImage="url("+e.avatar+")":void 0!==e.avatar&&void 0!==X.cqd.defaultAvatar&&""!=X.cqd.defaultAvatar?t.style.backgroundImage="url("+X.cqd.defaultAvatar+")":(t.innerHTML='',t.classList.add(je())),t.className=t.className+" _steamlive_chat_avatar l",e.divIsTyping.appendChild(t)),e.divIsTyping.appendChild(a)),x.log.appendChild(e.divIsTyping),x.log.scrollTop=x.log.scrollHeight,null!==e.timeoutIsTyping&&clearTimeout(e.timeoutIsTyping),e.timeoutIsTyping=setTimeout(function(){wt(e,!1)},5e3)}else{e.isTyping=!1;try{x.log.removeChild(e.divIsTyping)}catch(e){}}}function kt(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 Tt(e){e?(Gt=window.scrollY,x.frame.style.backgroundColor="#F5F5F5",x.frame.style.verticalAlign="text-bottom",x.frame.style.top="0",x.frame.style.left="0",x.frame.style.width="100%",x.frame.style.height="100%",x.frame.style.position="fixed",x.frame.style.zIndex="16000003",x.frame.style.minWidth="100%",x.frame.style.minHeight="100%",x.frame.style.maxWidth="100%",x.frame.style.maxHeight="100%",x.frame.style.opacity="1",x.frame.style.overflow="scroll",x.frame.style.webkitOverflowScrolling="touch",Oa(),x.startChatMessage.style.position=""):(x.frame.style.top="",x.frame.style.left="",x.frame.style.zIndex="16000003",x.frame.style.minWidth="auto",x.frame.style.opacity="1",3===Yt()&&(x.frame.style.maxHeight="150px"),null!=Gt&&window.scrollTo(0,Gt))}var xt=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},Et=-1,Mt=null,Lt=function(e){-1==e.i&&(e.i=-1==X.lastMsgIdx?0:X.lastMsgIdx+1);var t=new Date;(e.i>X.lastMsgIdx||0==e.i)&&(u=e.i,X.lastMsgIdx=u,V("lastMsgIdx",X.lastMsgIdx),e.ts=t.getTime(),X.msgLog[e.i]=e),V("msgLog",JSON.stringify(X.msgLog));var a=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div"),o=document.createElement("div");n.className="_steamlive_chat_divMsgWrapper",null!=e.currentAction&&(U&&(a.style.cursor="pointer"),a.dataset.botAction=e.currentAction);var s=Mt!==e.uId;Mt=e.uId,"steamBot"==e.uId&&1==X.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==X.cqd.chatAvatar&&(void 0!==M[e.uId].avatar&&1==X.cqd.avatarType?i.innerHTML="":void 0!==M[e.uId].avatar&&void 0!==X.cqd.defaultAvatar&&""!=X.cqd.defaultAvatar?i.innerHTML="":(i.innerHTML='',i.classList.add(je())))),r.className="_steamlive_chat_divMsgContainer",o.className="_steamlive_chat_divMsgDateDiv";Math.round(Math.random());var l,c,d,p,u,m,h,g,v,f,y=[];if(e.m.indexOf("{file}")<0?e.uId===X.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=Ot("download"),(g=document.createElement("div")).className="user_file_"+X.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"),(p=document.createElement("div")).className="_steamlive_chat_img_loading",(u=document.createElement("span")).className="_steamlive_chat_img_loading_text",u.innerHTML=Ot("loadingImage"),(m=document.createElement("img")).className="_steamlive_chat_img",p.appendChild(u),d.appendChild(p),d.appendChild(m),_.appendChild(d),Nt(X.userId,b.randid,_)),_.appendChild(l),_.appendChild(c)):((_=document.createElement("div")).className="_steamlive_chat_attachment_container",/image.*/.test(O.type)?((m=document.createElement("img")).className="_steamlive_chat_img",(h=new FileReader).onload=function(){n.querySelector("._steamlive_chat_img").setAttribute("src",h.result)},h.readAsDataURL(O),n.className="_steamlive_chat_divMsgWrapper _steamlive_chat_transparent_background",_.appendChild(m)):_.appendChild(document.createTextNode(b.filename.replace(/"/g,""))),(g=document.createElement("div")).className="user_file_"+X.userId+" "+b.randid,document.createElement("div").innerHTML=Ot("done")+" !"),_.appendChild(g),v=_),e.uId===X.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===X.cqd.readCheckmarkVisibility||2===X.cqd.readCheckmarkVisibility||3===X.cqd.readCheckmarkVisibility?"
":""),n.innerHTML=xt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+X.cqd.chatSenderTextColor),y.push(n),y.push(_),a.className="_steamlive_chat_message r",i.className=i.className+" _steamlive_chat_avatar r",n.style.backgroundColor="#"+X.cqd.chatSenderbackgroundColor,n.style.color="#"+X.cqd.chatSenderTextColor,n.style.borderColor="#"+X.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=xt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+X.cqd.chatReceiverTextColor)),y.push(n),y.push(s),wt(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=xt(n.innerHTML.replace(/\r?\n/g,"
"),"#"+X.cqd.chatReceiverTextColor)),y.push(n)),a.className="_steamlive_chat_message l",i.className=i.className+" _steamlive_chat_avatar l",n.style.backgroundColor="#"+X.cqd.chatReceiverbackgroundColor,n.style.color="#"+X.cqd.chatReceiverTextColor,n.style.borderColor="#"+X.cqd.chatReceiverborderColor;try{P.roomMessage&&(P.roomMessage.currentTime=0),P.roomMessage.play()}catch(e){console.log(e)}}a.style.fontSize=X.cqd.chatFontSize,a.onmouseover=Bt,a.onmouseleave=At,a.onclick=St;for(var C=0;C",o.style.color="#"+X.cqd.chatReceiverTextColor,o.style.borderColor="#"+X.cqd.chatReceiverTextColor,x.log.appendChild(o)),x.log.contains(x.youWillBeHelpedByDOM)&&setTimeout(()=>{x.log.removeChild(x.youWillBeHelpedByDOM)},2e3),x.log.appendChild(r),x.log.scrollTop=x.log.scrollHeight,0<=e.m.indexOf("{file}"))for(var b=JSON.parse(e.m.replace("{file}","")),C=0;C"+Ot("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/r*100+"%",n.style.backgroundColor="#"+X.cqd.color1,a.appendChild(n),x.log.getElementsByClassName(o)[t].innerHTML=a.outerHTML)}}),s.onload=function(e){var t,a,n,i=s.response;void 0!==window.navigator.msSaveBlob?window.navigator.msSaveBlob(i,r):(t=window.URL||window.webkitURL,a=t.createObjectURL(i),!r||void 0===(n=document.createElement("a")).download?window.location=a:(n.href=a,n.download=r,document.body.appendChild(n),n.click()),setTimeout(function(){t.revokeObjectURL(a)},100))},s.send()},Nt=function(e,t,n){var i=new XMLHttpRequest;i.open("GET",E+"/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()},Ht=function(){v=0,clearInterval(f),V("unreadMessages",0)},Dt=function(e){v+=e,null!==f&&clearInterval(f),f=setInterval(qt,500),V("unreadMessages",v)},qt=function(){},Rt=function(e){var t=document.createElement("div");t.innerHTML=e+"
",t.className="_steamlive_chat_log_debug",x.log.scrollTop=x.log.scrollHeight},Ft=function(e){var t=["en","nl","fr","de","es"];return T=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",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",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",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",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",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:""}},jt=function(){for(var e={},t=x.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)},Jt=function(){for(var e=x.startMessage.getElementsByTagName("input"),t=0;t"+Ot("transferredChat")+"",V("transferTime",Et),x.log.appendChild(x.transferMsg)):pe(_.WAITING_FOR_AGENT)),e.uId===X.userId&&pe(_.QUIT),x.log.contains(x.youWillBeHelpedByDOM)&&setTimeout(()=>{x.log.removeChild(x.youWillBeHelpedByDOM)},2e3))}),t=0,w.on("msg",function(e){null!=M.steamBot&&null!=M.steamBot.messageDelay&&(z=Number(M.steamBot.messageDelay)),"steamBot"==e.uId?(wt(M.steamBot,!0),setTimeout(function(){try{U&&highLightFlowChart(e),t=Math.max(t-z,0)}catch(e){console.log(e)}Lt(e)},z+t),t=Math.min(t+z,1e4)):(t=0,Lt(e))}),w.on("msgHist",function(e){Ce(e.arrMsg)}),w.on("banned",function(e){void 0!==X.cqd.banSession&&1==X.cqd.banSession&&(V("_sc_b","1"),Ra(C.BANNED_SESSION))}),w.on("markAsRead",function(e){if(1==e.byUser)for(var t=x.log.getElementsByClassName("_steamlive_chat_msg_readStatus"),a=0;a"+X.cqd.outsideWorkingHoursText+"
"+Ot("openingHours")+"
("+X.cqd.chatTimezone+")",x.openingHours.appendChild(t),x.openingHours.appendChild(x.btnCloseOpeningHours),X.cqd.isInOpeningHour?_e(!1):(_e(!0),x.statusButtons.btnJoinLeave.style.display="none",x.iconCloseChat.style.display="none",x.statusButtons.btnEditDetails.style.display="none",Ee||(x.msg.style.display="none"),x.waitingForSupport.style.display="none",x.nobodyAvailable.style.display="none")):_e(!1)}var ta=function(e,t){e.stopPropagation();e=x.msgInput.selectionStart;x.msgInput.value=x.msgInput.value.slice(0,e)+t.innerHTML+x.msgInput.value.slice(e),x.msgInput.selectionStart=e+t.innerHTML.length,x.msgInput.scrollHeight>x.msgInput.offsetHeight&&x.msgInput.offsetHeight<48&&(x.msgInput.style.height=x.msgInput.scrollHeight+"px")},aa=function(){x.emojisPopup.innerHTML="",x.emojisPopupBody=document.createElement("div"),x.emojisPopupBody.className="_steamlive_chat_emojis_body",x.emojisArrow=document.createElement("div"),x.emojisArrow.className="_steamlive_chat_emojis_arrow",x.emojisPopupBody.appendChild(x.emojisContainer),x.emojisPopup.appendChild(x.emojisPopupBody),x.emojisPopup.appendChild(x.emojisArrow),x.emojisPopup.setAttribute("tabindex","0"),x.emojisPopup.onclick=function(){x.emojisPopup.style.display="none"},x.emojisPopup.onkeydown=function(e){"Escape"===e.key&&(e.preventDefault(),x.emojisPopup.click())},x.emojisPopup.style.display="flex",("none"!=x.trRating.style.display?x.tdRating:x.tdLog).appendChild(x.emojisPopup)},na=function(e){var t,a,n,i,r;e&&/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&k?(Tt(!0),t=(n=x.chatContainer.children)[0],i=n[2],n[3],a=n[4],window.getComputedStyle(x.main.getElementsByClassName("_steamlive_chat_title_div")[0]),a.getElementsByClassName("_steamlive_chat_btn_1")[0],r=x.startMessage.getElementsByClassName("startChatMessage")[0],x.main.getElementsByClassName("formContainer")[0],n=x.main.getElementsByClassName("_steamlive_chat_logdiv")[0],i.getElementsByClassName("_steamlive_chat_log")[0],i=kt(t,"height")+kt(a,"height")+kt(r,"height")+kt(r,"margin-top"),r=kt(a,"height"),formContainerHeight=d-i-r,n.style.width="100%",fe(),kt(a,"height"),kt(t,"height"),kt(x.msgInput,"height"),kt(x.msgInput,"margin-top"),kt(x.chatLeft,"height"),x.chatLeft.style.display,/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)?(x.btnCloseOpeningHours.style.width="94%",x.btnCloseOpeningHours.style.bottom="0px",x.btnCloseOpeningHours.style.height="30px"):(x.btnCloseOpeningHours.style.top=(d+kt(x.openingHours,"height"))/2+"px",x.btnCloseOpeningHours.style.height="30px",x.btnCloseOpeningHours.style.width="88%",x.btnCloseOpeningHours.style.marginTop="0px",x.btnCloseOpeningHours.style.marginRight="9px")):e&&/Android|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&!k&&Tt(!1),e&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&(x.iconWideChat.className="hidden",x.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"))},ia=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("h4"),n=document.createElement("div"),i=document.createElement("label"),r=document.createElement("input"),o=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"),r.classList.add("_steamlive_email-transcript-input"),o.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=Ot("sendEmailTranscript"),i.textContent=Ot("emailLabel"),s.textContent=Ot("send"),o.textContent=Ot("invalidEmail"),l.innerHTML='',n.appendChild(i),n.appendChild(r),n.appendChild(o),t.appendChild(a),t.appendChild(l),t.appendChild(n),t.appendChild(s),e.appendChild(t),r.addEventListener("input",ra),r.addEventListener("blur",ra),s.addEventListener("click",ne),l.addEventListener("click",oa),l.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||l.click()},s.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||s.click()},r.setAttribute("aria-invalid","false"),r.setAttribute("aria-describedby","email-error-message"),o.setAttribute("id","email-error-message"),o.setAttribute("role","alert"),o.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",Ot("emailTranscriptCancelBtn")),x.emailTranscriptInputWrapper=n,x.emailTranscriptInput=r,x.emailTranscriptHeader=a,x.emailTranscriptLabel=i,x.emailTranscriptSendBtn=s,x.emailTranscriptInputError=o,e},ra=function(e){var t=x.emailTranscriptInput.value;"blur"==e.type||"input"==e.type&&1==x.emailTranscriptInputWrapper.touched?(x.emailTranscriptInputWrapper.touched=!0,void 0!==t&&null!=t&&""!=t&&zt(t.trim())?(x.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),x.emailTranscriptInput.setAttribute("aria-invalid","false")):(x.emailTranscriptInputWrapper.classList.add("_steamlive_email-transcript-input-wrapper--error"),x.emailTranscriptInput.setAttribute("aria-invalid","true"))):"input"==e.type&&zt(t.trim())&&x.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error")},oa=function(){x.emailTranscriptInputWrapper.touched=!1,x.emailTranscriptInputWrapper.classList.remove("_steamlive_email-transcript-input-wrapper--error"),x.emailTranscriptDOM.classList.add("_steamlive_email-transcript-wrapper--hide")},sa=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("img"),i=document.createElement("div"),r=document.createElement("div"),o=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"),r.classList.add("_steamlive_email-transcript-error-heading"),o.classList.add("_steamlive_email-transcript-resume-chat"),s.classList.add("_steamlive_email-transcript-end-chat"),l.classList.add("_steamlive_email-transcript-cancel-btn"),r.textContent=Ot("errorEmailNotSent"),o.textContent=Ot("resumeChat"),s.textContent=Ot("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"),r.id="email-transcript-heading",i.setAttribute("role","status"),i.setAttribute("aria-live","polite"),i.setAttribute("tabindex","0"),n.setAttribute("alt",Ot("transcriptStatusIcon")),l.setAttribute("aria-label",Ot("closeAlerttranscript")),o.addEventListener("click",function(){ce(Ye,!1),la()}),s.addEventListener("click",function(){Ze(),Ra(C.CHAT_RATING)}),o.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||o.click()},s.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||s.click()},l.innerHTML='',l.addEventListener("click",la),a.appendChild(n),a.appendChild(r),a.appendChild(i),t.appendChild(l),t.appendChild(a),t.appendChild(o),t.appendChild(s),e.appendChild(t),x.emailTranscriptAlertImg=n,x.emailTranscriptAlertText=i,x.emailTranscriptErrorHeading=r,x.emailTranscriptResumeChat=o,x.emailTranscriptEndChat=s,e},la=function(){x.emailTranscriptAlertImg.src="",x.emailTranscriptAlertText.textContent="",x.emailTranscriptAlertDOM.classList.add("_steamlive_email-transcript-alert--hide"),x.emailTranscriptAlertDOM.classList.remove("_steamlive_email-transcript-alert-success","_steamlive_email-transcript-error")},ca=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("h4"),i=document.createElement("div"),r=document.createElement("label"),o=document.createElement("div"),s=document.createElement("label"),l=document.createElement("textarea"),c=document.createElement("div"),d=document.createElement("button"),p=document.createElement("button"),u=document.createElement("button"),m=document.createElement("div"),h=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"),u.setAttribute("aria-label",Ot("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"),r.classList.add("_steamlive_chat-rating-rate-label"),o.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"),p.classList.add("_steamlive_chat-rating-cancel-btn"),u.classList.add("_steamlive_chat-rating-cancel-icon-btn"),m.classList.add("_steamlive_chat-rating-survey-wrapper","_steamlive_chat-rating-survey-wrapper--hide"),h.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=Ot("chatSessionEnded"),r.textContent=Ot("questionRateChat"),s.textContent=Ot("commentMessage"),d.textContent=Ot("sendFeedBack"),p.textContent=Ot("noThanks"),h.innerHTML=Ot("surveyTitle"),g.innerHTML=Ot("surveyMsg"),v.innerHTML=Ot("fillSurvey"),u.innerHTML='',i.appendChild(r),o.appendChild(s),o.appendChild(l),c.appendChild(d),c.appendChild(p),a.appendChild(u),a.appendChild(n),a.appendChild(i),a.appendChild(o),a.appendChild(c),m.appendChild(h),m.appendChild(g),m.appendChild(v),t.appendChild(a),t.appendChild(m),e.appendChild(t),d.addEventListener("click",function(e){e.stopPropagation(),fa()}),d.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d.click())}),p.addEventListener("click",function(e){e.stopPropagation(),ct()}),p.addEventListener("keydown",function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),d.click())}),u.addEventListener("click",da),u.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||u.click()},v.addEventListener("click",ee),x.chatRatingWrapper=a,x.chatRatingSurveyWrapper=m,x.chatRatingRateLabel=r,x.chatRatingRateWrapper=i,x.chatRatingCommentTextarea=l,x.chatRatingSurveyBtn=v,x.chatRatingHeader=n,x.chatRatingCommentLabel=s,x.chatRatingSubmitBtn=d,x.chatRatingCancelBtn=p,x.chatRatingSurveyTitle=h,x.chatRatingSurveyText=g,e},da=function(){x.chatRatingDOM.classList.add("_steamlive_chat-rating--hide")},pa=function(){switch(x.chatRatingRateWrapper.innerHTML="",x.chatRatingRateWrapper.appendChild(x.chatRatingRateLabel),X.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",Ot("Like")),a.classList.add("_steamlive_chat-rating-rate-dislike"),a.setAttribute("aria-label",Ot("Dislike")),t.innerHTML='',a.innerHTML='',t.setAttribute("data-is-active",0),a.setAttribute("data-is-active",0),t.addEventListener("click",ua),a.addEventListener("click",ma),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),x.chatRatingRateWrapper.appendChild(e),x.chatRatingRateLike=t,x.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",Ot("ratestart")+e),i.classList.add("_steamlive_chat-rating-star-btn","_steamlive_chat-rating-star-btn--active"),i.addEventListener("click",ha),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||ha(e)},i.addEventListener("mouseenter",ga),i.addEventListener("mouseleave",va),i.innerHTML='',n.appendChild(i)}x.chatRatingRateWrapper.appendChild(n)}},ua=function(){Pa(Ot("likebuttonClicked")),x.chatRatingRateLike.innerHTML='',x.chatRatingRateDislike.innerHTML='',x.chatRatingRateLike.setAttribute("data-is-active",1),x.chatRatingRateDislike.setAttribute("data-is-active",0),V("rateLike",1)},ma=function(){Pa(Ot("dislikebuttonClicked")),x.chatRatingRateLike.innerHTML='',x.chatRatingRateDislike.innerHTML='',x.chatRatingRateLike.setAttribute("data-is-active",0),x.chatRatingRateDislike.setAttribute("data-is-active",1),V("rateLike",0)},ha=function(e){var e=e.currentTarget,t=parseInt(e.dataset.index);Pa(Ot("ratingstarscount")+" "+t);for(var a,n=1;n<=t;n++)(a=x.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=x.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+n)).setAttribute("data-is-active",0),a.classList.remove("_steamlive_chat-rating-star-btn--active");V("rateStars",t)},ga=function(e){for(var e=e.currentTarget,t=parseInt(e.dataset.index),a=1;a<=t;a++)x.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+a).classList.add("_steamlive_chat-rating-star-btn--active")},va=function(){for(var e=1;e<=5;e++){var t=x.frame.contentDocument.getElementById("_steamlive_chat_rate-star-"+e);"0"==t.dataset.isActive&&t.classList.remove("_steamlive_chat-rating-star-btn--active")}},fa=function(){var e=-2;switch(X.cqd.ratingType){case 0:case"0":var t=J("rateLike");0==t&&(e=-1),1==t&&(e=1);break;case 1:case"1":t=parseInt(J("rateStars"));isNaN(t)||(e=10*t)}var a=new XMLHttpRequest,n=(n="campagnePID="+X.cqd.campagnePID+"&projectPID="+X.cqd.projectPID+"&callcenterPID="+X.cqd.callcenterPID)+"&comment="+x.chatRatingCommentTextarea.value.replace(/#/g," ")+"&rating="+e+"&rId="+X.userId+"&steamliveChatAction=sendFeedBack";a.onload=function(){200===a.status&&console.log(a.responseText)},a.open("GET",E+"/s/sendFeedBack?"+n,!0),a.setRequestHeader("Content-Type","application/json"),a.send(),Ra(C.CHAT_RATE_SENT),da()},ya=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=Ot("minimiseChat"),i.addEventListener("click",function(e){e.stopPropagation(),ct()}),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||i.click()},a.innerHTML='',a.addEventListener("click",_a),a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||a.click()},t.setAttribute("role","dialog"),t.setAttribute("aria-modal","true"),t.setAttribute("aria-label",Ot("ratingSent")),a.setAttribute("aria-label",Ot("closeratingSentdialog")),t.appendChild(a),t.appendChild(n),t.appendChild(i),e.appendChild(t),x.chatRateSentIcon=n,x.chatRateCloseChatBtn=i,e},_a=function(){x.chatRateSentIcon.src="",x.chatRateSentDOM.classList.add("_steamlive_chat_rate-sent--hide")},Ca=function(){var e=document.createElement("div"),t=document.createElement("div"),a=document.createElement("button"),n=document.createElement("div"),i=document.createElement("button"),r=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",Ot("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"),r.classList.add("_steamlive_chat_reopen-chat-form-new-btn"),r.setAttribute("tabindex","0"),n.textContent=Ot("sessionMessage"),i.textContent=Ot("currentSession"),r.textContent=Ot("newSession"),a.innerHTML='',a.addEventListener("click",ba),i.addEventListener("click",function(){ce(Ye,!1)}),r.addEventListener("click",function(){ce(Ye,!0)}),i.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||i.click()},r.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||r.click()},a.onkeydown=function(e){"Enter"!==e.key&&" "!==e.key||a.click()},t.appendChild(a),t.appendChild(n),e.appendChild(t),x.reopenChatFormModal=t,x.reopenChatFormLabel=n,x.reopenChatFormCurrentSessionBtn=i,x.reopenChatFormNewSessionBtn=r,e},ba=function(){x.reopenChatFormDOM.classList.add("_steamlive_chat_reopen-chat-form--hide")},wa=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",Ot("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),x.bannedSessionIcon=a,x.bannedSessionMessage=n,e.addEventListener("keydown",function(e){"Escape"===e.key&&t.classList.add("_steamlive_chat_banned-session--hide")}),t},ka=function(){x.bannedSessionDOM.classList.add("_steamlive_chat_banned-session--hide"),x.bannedSessionIcon.src=""},Ta=function(){0!=U||!H&&1!=X.cqd.emailTranscript||x.chatToolbarButtons.classList.remove(u.TOOLBAR_BUTTONS_HIDE)},xa=function(){x.chatToolbarButtons.classList.remove(u.TOOLBAR_BUTTONS_EXPANDED),x.chatToolbarButtons.classList.add(u.TOOLBAR_BUTTONS_HIDE)},Ea=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",Ot("closingDayDialog")),n.setAttribute("aria-level","1"),n.setAttribute("role","heading"),a.innerHTML='',t.appendChild(a),t.appendChild(n),e.appendChild(t),x.closingDayModal=t,x.closingDayMessage=n,e},Ma=function(){x.closingDayDOM.classList.add("_steamlive_chat_closing-day--hide")},La=function(e){var t=document.createElement("div"),a=document.createElement("div"),n=document.createElement("div"),i=document.createElement("div"),r=document.createElement("div"),o=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"),r.classList.add("_steamlive_chat_youWillBeHelpedByLabel"),o.classList.add("_steamlive_chat_youWillBeHelpedByAgentName"),void 0!==X.cqd.helpedByText&&""!==X.cqd.helpedByText?r.textContent=X.cqd.helpedByText:r.textContent=Ot("helpedBy"),o.textContent=e.alias,1==X.cqd.chatAvatar&&(void 0!==e.avatar&&1==X.cqd.avatarType?n.style.backgroundImage="url("+e.avatar+")":void 0!==e.avatar&&void 0!==X.cqd.defaultAvatar&&""!=X.cqd.defaultAvatar?n.style.backgroundImage="url("+X.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"+X.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(r),i.appendChild(o),Pa(Ot("Supportreadymessage")),t};function Ba(){x.frame.style.display="none"}function Aa(){x.startMessage.style.display="none",x.startChatDOM.classList.add("_steamlive_chat_start-chat--hide"),x.startChatIcon.src=""}function Sa(){k||(x.minimizeCloseBtnDOM.style.display="block")}function Ia(){x.minimizeCloseBtnDOM.style.display="none"}var Na=0;function Ha(n){k||(p=!0,setTimeout(()=>{if(!k){x.triggerMessageText.textContent="",x.triggerMessageText.textContent=n.replace(/<\s/,"<"),x.triggerMessage.classList.add("_steamlive_chat-trigger-message-wrapper--fadein"),setTimeout(function(){k||(x.triggerMessage.classList.remove("_steamlive_chat-trigger-message-wrapper--hide"),x.triggerMessage.classList.remove("_steamlive_chat-trigger-message-wrapper--fadein"))},1e3),x.triggerMessageText.style.fontFamily="sans-serif";var e=125;switch(X.cqd.widgetSize){case 1:case"1":e=120;break;case 3:case"3":e=130}x.frame.style.width="412px",x.frame.style.height=e+"px";var t=0;switch(X.cqd.widgetSize){case 1:case"1":t=x.triggerMessage.offsetHeight;break;default:t=x.triggerMessage.offsetHeight+6}42{"surveySuccess"==e.data&&(x.chatRatingSurveyBtn.style.backgroundColor="green",x.chatRatingSurveyBtn.style.borderColor="green",x.chatRatingSurveyBtn.textContent=Ot("surveyFilled")+" ✔",V("SurveyFilled",1))},!1),1==J("SurveyFilled")&&(x.chatRatingSurveyBtn.style.backgroundColor="green",x.chatRatingSurveyBtn.style.borderColor="green",x.chatRatingSurveyBtn.textContent=Ot("surveyFilled")+" ✔")));break;case C.CHAT_RATE_SENT:x.chatRateSentIcon.src=E+"/success-check.gif",x.chatRateSentDOM.classList.remove("_steamlive_chat_rate-sent--hide"),x.chatRateCloseChatBtn.textContent=Ot("minimiseChat");break;case C.REOPEN_CHAT_FORM:!function(){switch(x.reopenChatFormDOM.classList.remove("_steamlive_chat_reopen-chat-form--hide"),x.reopenChatFormCurrentSessionBtn.textContent=Ot("currentSession"),x.reopenChatFormNewSessionBtn.textContent=Ot("newSession"),x.reopenChatFormModal.contains(x.reopenChatFormNewSessionBtn)&&x.reopenChatFormModal.removeChild(x.reopenChatFormNewSessionBtn),x.reopenChatFormModal.contains(x.reopenChatFormCurrentSessionBtn)&&x.reopenChatFormModal.removeChild(x.reopenChatFormCurrentSessionBtn),X.cqd.chatSessionPopup){case 1:case"1":x.reopenChatFormModal.appendChild(x.reopenChatFormNewSessionBtn),x.reopenChatFormLabel.textContent=Ot("newSessionMessage");break;case 2:case"2":x.reopenChatFormModal.appendChild(x.reopenChatFormCurrentSessionBtn),x.reopenChatFormLabel.textContent=Ot("previousSessionMessage");break;default:x.reopenChatFormLabel.textContent=Ot("sessionMessage"),x.reopenChatFormModal.appendChild(x.reopenChatFormNewSessionBtn),x.reopenChatFormModal.appendChild(x.reopenChatFormCurrentSessionBtn)}}();break;case C.BANNED_SESSION:void 0!==X.cqd.banSession&&1==X.cqd.banSession&&(x.bannedSessionDOM.classList.remove("_steamlive_chat_banned-session--hide"),x.bannedSessionIcon.src=E+"/banned-icon.gif",void 0!==X.cqd.banMessage&&""!=X.cqd.banMessage.trim()?x.bannedSessionMessage.textContent=X.cqd.banMessage:x.bannedSessionMessage.textContent=Ot("banMessage"));break;case C.CLOSING_DAY:null!=X.cqd.closingDaysText&&""!=X.cqd.closingDaysText?x.closingDayMessage.textContent=X.cqd.closingDaysText:x.closingDayMessage.textContent=Ot("closeToday"),x.closingDayModal.appendChild(x.btnCloseOpeningHours),x.closingDayDOM.classList.remove("_steamlive_chat_closing-day--hide");break;case C.NO_AGENT_AVAILABLE:x.noAgentAvailableDOM.classList.remove("_steamlive_chat_no-agent-available--hide"),x.noAgentAvailableIcon.src=E+"/no-agent-available.gif",void 0!==X.cqd.nobodyAvailableText&&""!=X.cqd.nobodyAvailableText.trim()?x.noAgentAvailableMessage.textContent=X.cqd.nobodyAvailableText:x.noAgentAvailableMessage.textContent=Ot("noAgentAvailable");break;case C.START_CHAT:x.startChatDOM.classList.remove("_steamlive_chat_start-chat--hide"),x.startChatIcon.src=E+"/start-chatting.gif",void 0!==X.cqd.msgStartChat&&""!=X.cqd.msgStartChat?x.startChatButton.textContent=X.cqd.msgStartChat:x.startChatButton.textContent=Ot("startChat");break;case C.EDIT_CONTACT_INFO:}var t,a};function Fa(){Xe(),oa(),la(),da(),_a(),ba(),ka(),Ma(),x.noAgentAvailableDOM.classList.add("_steamlive_chat_no-agent-available--hide"),x.noAgentAvailableIcon.src="",Aa()}function Oa(){var e;U?x.frame.style.display="":void 0!==X.cqd.active&&0!=X.cqd.active&&(x.frame.style.display="",void 0!==(e=X.cqd.chatVisibilityOnClose)&&(X.cqd.isInOpeningHour&&!X.cqd.inClosingDay||0==e||!(1==e&&Zt()||2==e&&!Zt()||3==e)?x.frame.style.display="":Ba()))}function Pa(e){x.liveRegion.textContent="",setTimeout(()=>{x.liveRegion.textContent=e},100)}function ja(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=(x.frame.contentDocument||x.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()}}Ft(),m=parseInt(J("mode")||m,10),y=parseInt(J("tsWaitingForSupport"),10)||null,Ae(),he(),navigator.cookieEnabled||l?(X.userId=Q(),X.lastMsgIdx=parseInt(J("lastMsgIdx")||-1,10),""!==J("msgLog")&&void 0!==J("msgLog")&&null!==J("msgLog")&&Ce(JSON.parse(J("msgLog"))),null===J("opened")?!0===X.startMinimized?ct():p||mt():(!0!==(k=J("opened"))||4==m||p?ct:mt)(),U&&(X.userId="",X.msgLog=[],Et=-1,Mt=null,V("chatTranscript",""),m=_.CHATTING),pe(m),$()):(ct(),console.log("Cookies and localStorage are disabled in browser; chat is disabled.")),tsFirstContact=J("tsFirstContact")||(new Date).getTime(),null===tsFirstContact&&(tsFirstContact=(new Date).getTime(),V("tsFirstContact",tsFirstContact)),b=J("autoChatFired")||!1,0<(v=J("unreadMessages")||0)&&Dt(0),de(),setInterval(K,1e3);const Ua=x.frame.contentDocument||x.frame.contentWindow.document;var Wa=Ua.querySelector("._steamlive_chat_main");if(Wa){const za=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=Ua.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(),ja(n.closest("div"))):(t.focus(),ja(t))}}})});za.observe(Wa,{attributes:!0,subtree:!0})}}();