var onWebChat_=onWebChat_||function(){if(!window.console)console={log:function(){}};let ne=18;function x(){if(window.performance&&window.performance.now){return window.performance.now()}else{return Date.now()}}const oe=x();let B;let k;var o=false;var y=false;var b=0;var ie=0;var w,v;var _=false;var I=0;let C;var i={ min_offline: { l1: 'Estamos offline, envie um email.', l2: 'We are offline - Send us an email' }, min_online: { l1: 'Precisa de ajuda?', l2: 'We are online - chat with us!' }, max_title: { l1: 'Precisa de ajuda?', l2:'Chat with us!'}, max_msg: { l1: 'Podemos ajudar?', l2:'We are online - chat with us!'}, max_served: { l1: 'Estou aqui para ajudar {{Pedro}}', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Deixe a sua mensagem', l2: 'Type your message here ...' }, max_closed: { l1: '{{Inês}} encerra a conversação', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Envie um email', l2:'Email us!'}, off_msg:{l1: 'Desculpe, não estamos online no momento. Deixe uma mensagem e entraremos em contato.', l2:'Sorry, we are not online at the moment. Leave a message and we will get back to you.'}, off_name: { l1:'Name', l2: 'Name'}, off_email: { l1: 'Email', l2: 'Email'}, off_phone: { l1: 'Phone', l2: 'Phone'}, off_text: { l1: 'Message', l2: 'Message'}, prechat_name: { l1:'Name', l2: 'Name'}, prechat_email: { l1: 'Email', l2: 'Email'}, prechat_phone: { l1: 'Phone', l2: 'Phone'}, prechat_text: { l1: 'how can we help you?', l2: 'how can we help you?'}, off_send: { l1:'Send', l2: 'Send'}, off_thank: { l1: 'Thank you for contacting us. We will reply to you as soon as possible.', l2: 'Thank you for contacting us. We will reply to you as soon as possible.'}, prechat_msg: { l1: 'Please give us some info to serve you better.', l2: 'Please give us some info to serve you better.'}, prechat_btn: { l1: 'Start chat!', l2: 'Start chat!'} , max_gone: { l1: 'Todos os operadores estão ocupados de momento', l2: 'All operators are offline'} , consent_text: { l1: 'Eu concordo que meus dados pessoais, fornecidos via chat, sejam processados para uso do serviço de chat.', l2: 'I agree that my personal data, provided via chat, to be processed for using live chat service'} , menu_send_file: { l1: 'Send file', l2: 'Send file'} , menu_email: { l1: 'Email transcript', l2: 'Email transcript'} , menu_print: { l1: 'Print', l2: 'Print'} , menu_save: { l1: 'Save', l2: 'Save'} , menu_sound: { l1: 'Sound', l2: 'Sound'} , menu_end_chat: { l1: 'End chat', l2: 'End chat'} , end_chat_msg: { l1: 'Are you sure you want to close this chat?', l2: 'Are you sure you want to close this chat?'} , cancel: { l1: 'Cancel', l2: 'Cancel'} , rating_msg: { l1: 'Thank you. We would appreciate it if you could rate this chat', l2: 'Thank you. We would appreciate it if you could rate this chat'} , rating_btn: { l1: 'Submit', l2: 'Submit'} , rating_no_msg: { l1: 'No, thanks', l2: 'No, thanks'} , departments: { l1: 'Choose a department', l2: 'Choose a department'} };var T="",P="",j="",E="";var ae=function(){};var a=function(){};var l=function(){};var s=function(){};var le=function(){};var se=function(){};var re=function(){};var de=function(){};var ce="";var M="";var me=0;var ue=false;var pe="3.21.46.24";var S="l2";var r="";var W="";if(V("servingOpImage")!=""&&V("servingOpImage")!=undefined){W=V("servingOpImage")}var L="1";if(L==1&&W==""){W="0_support_man.png"}const ge=' ';const fe=' ';var O=-1;var he=0;var d=-1;var ye=0;var be="1";var we="0";var ve=0;var c=0;var _e=0;var Ie="0";if(V("isRated")!=""&&V("isRated")!=undefined){_e=V("isRated")}let Ee=2e3;const xe=400;let Be=true;let ke=0;if(V("chatWithBot")!=""&&V("chatWithBot")!=undefined){ke=V("chatWithBot")}if(ke==1){Ee=xe}if(Ie==1&&be==0){Ie=0}var Ce=0;var q="";if(Ie==1){$('hideImage',0)}var Te=true;var Pe="";if(V('hideImage')!=0&&V('hideImage')!=1){$('hideImage',0)}var je=At('onwbchtsessionrandom');if(je=='null'||je==null||je==''||je=='undefined'){je=Math.floor(Math.random()*1e6+1);Rt("onwbchtsessionrandom",je)}var m="0";var u="1";var A=42070;if(A==0){o=true}var n=".onwebchatbox span{font-size:unset;margin:initial;padding:initial}.onwebchatbox div{padding:initial;font-size:initial;margin:initial}.onwebchatbox #offline_form{display:none;position:initial;line-height:inherit}.onwebchatbox #prechat_form{display:none;position:initial}.onwebchatbox a{margin-bottom:0 !important;border-width:0 !important;border-style:none !important;display:inline;color:#393939;letter-spacing:initial;text-decoration:underline;vertical-align:baseline !important;cursor:pointer !important}.onwebchatbox a:hover{text-shadow:0 0 1px #b1b1b1}.onwebchatbox .onweb_uploadfile{margin-right:10px;margin-bottom:-3px}.onwebchatbox .onweb_uploadimage{background:url('https://www.onwebchat.com/chatimages/loading.gif');background-repeat:no-repeat;background-position:center}#onweb_chatimage_div{position:fixed;bottom:0;left:40px;width:#chat_widthpx;z-index:2147483600}#operatorImageSmall{width:32px !important;height:32px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;top:0 !important;box-shadow:0 0 7px 2px #bebebe !important;cursor:initial !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden}@media(max-width:480px){#operatorImageSmall{transform:scale(1.14) !important;margin-top:2px;margin-left:-4px}}.operatorImageSmallClass{transform:scale(1)}#operatorImage{position:absolute;z-index:100 !important;border-radius:30px;border-style:solid;border-color:#ababab;top:8px !important;left:20px !important;width:50px !important;height:50px !important;border-width:0 !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden;background:#fffffff7 !important}.onweb_chatimage{position:absolute !important;bottom:53px !important;left:-100px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:42px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important;-webkit-filter:brightness(100%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onweb_chatimage_mobile{position:absolute !important;bottom:-11px !important;right:150px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:60px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}img#onweb_chatimage:hover{opacity:1;-webkit-filter:brightness(112%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onwebchatbox .onweb_chatimage:-moz-loading{visibility:hidden}.onwebchatbox .onweb_chatimage_x{position:absolute;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer;border:0;opacity:.5}.onwebchatbox .wblogoimg{margin-right:10px;margin-top:7px}.onwebchatbox .wblogoimgdiv{text-align:right;width:100%}.onwebchatbox img{vertical-align:baseline;border:0;cursor:pointer;width:initial !important;margin:0;padding:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwcimg{vertical-align:baseline;border:0;cursor:pointer;margin:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox{all:initial;*{all:unset}color:#555;box-shadow:0 0 5px 0 #777 !important;line-height:16px !important;display:none;text-align:left;position:fixed !important;bottom:0 !important;left:40px;width:#chat_widthpx !important;height:#onwebchatbox_header1_heightpx;font-family:Arial,Helvetica,sans-serif !important;background-color:#fcfcfc;font-size:12px !important;border-top-left-radius:6px !important;border-top-right-radius:6px !important;z-index:2147483610 !important;box-sizing:content-box !important;color:#545454 !important;transition:initial !important}.onwebchatbox svg,.onwebchatbox svg *{all:revert-layer}#onwbchat_window{background-image:url(https://www.onwebchat.com/chatimages/backgrounds/back4.png);border-radius:11px !important;border-top-left-radius:13px !important;border-top-right-radius:13px !important;box-shadow:rgba(0,0,0,0.43) 0 0 1.2em !important}.onwebchatbox .webchat_header{display:block !important;white-space:nowrap !important;background-color:#3b6e00 !important;height:#onwebchatbox_header_height_+_4px !important;min-height:36px !important;line-height:#onwebchatbox_header1_heightpx !important;cursor:pointer;box-sizing:content-box !important;margin:0 !important;padding:0 !important;border:0 !important;outline:0 !important;float:left !important;padding-left:12px !important;padding-right:28px !important;vertical-align:baseline !important;font-size:13px !important;font-weight:bold !important;width:#chatheader_widthpx !important;position:relative;border-top-left-radius:11px !important;border-top-right-radius:11px !important;background-image:url(https://www.onwebchat.com/chatimages/backgrounds/trans-back4.png)}.onwebchatbox .webchat_header:hover{opacity:1}.onwebchatbox .webchat_header a{float:right;text-decoration:none;color:#fff;display:block;margin-right:0;padding-left:0;padding-right:0;line-height:13px}}.onwebchatbox .webchat_header a:hover{color:#000}.onwebchatbox .chat_area{float:left;clear:left;width:#chat_widthpx;height:#chat_area_heightpx;margin-top:0;margin-bottom:0;padding:26px 0 0 0;overflow:auto;color:#a4a4a4;box-sizing:content-box;direction:ltr !important;box-shadow:inset 0 11px 17px -17px rgba(0,0,0,0.4) !important}.onwebchatbox #chat_area_id{box-sizing:initial !important}#chat_area_id::-webkit-scrollbar{width:13px !important}#chat_area_id::-webkit-scrollbar-track{-webkit-border-radius:30px;border-radius:30px !important}#chat_area_id::-webkit-scrollbar-thumb{background-clip:content-box !important;background:#cdcdcd;-webkit-border-radius:10px;border-radius:12px;border:3px solid transparent !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background:#a5a5a5 !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background-color:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background-color:#a5a5a5 !important}#onwbtxtarea::-webkit-scrollbar{width:0 !important}.onwebchatbox .chat_area .me a{color:#visitor_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_area .agent a{color:#agent_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_info{clear:left;height:10px;background-color:#fcfcfc;border-top:1px solid #ddd;box-sizing:border-box;border-top:1px solid ##e2e2e2 !important;width:90% !important;float:none !important;margin:auto !important}.onwebchatbox .chat_message{position:initial;width:100%;height:55px;float:left;clear:left;padding-top:0;background-color:#fcfcfc;box-sizing:content-box}#onwc_chat_message_div{position:absolute;bottom:0;height:68px !important;border-bottom-left-radius:11px !important;border-bottom-right-radius:11px !important}.onwebchatbox #onwbtxtarea::placeholder{user-select:none;pointer-events:none}.onwebchatbox #onwbtxtarea{float:none !important;padding:4px 25px 0 4px !important;font-weight:400 !important;text-align:initial !important;font-style:initial !important;box-sizing:initial !important;white-space:initial !important;position:absolute !important;left:9px !important;bottom:25px !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;line-height:inherit !important;font-family:inherit !important;padding:0 2px 0 2px}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox .chat_message .onwebtextarea{width:#textarea_widthpx !important;line-height:normal !important;min-height:initial !important;min-width:initial !important;max-height:initial !important;max-width:initial !important;font-family:Arial,Helvetica,sans-serif !important;text-transform:initial !important;letter-spacing:initial !important;color:#545454 !important;display:block;margin-left:auto !important;margin-right:auto !important;margin-bottom:initial !important;padding:2px 2px 2px 2px !important;background-image:none !important;resize:none;outline:none !important;border-radius:5px !important;box-sizing:content-box;transition:box-shadow .40s,border-color .40s ease-in-out;border:none !important;box-shadow:none !important;font-size:14px !important;height:27px !important;background-color:transparent !important}@media(max-width:480px){.onwebchatbox .chat_message .onwebtextarea{font-size:100% !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{font-size:15px !important}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{font-size:15px !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{font-size:15px !important}}.onwebchatbox .chat_message textarea:hover{border:none !important}.onwebchatbox .chat_message textarea:focus{border:none !important}.onwebchatbox #onweb-offline-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important;padding-top:1px !important}.onwebchatbox #onweb-online-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important}.onwebchatbox #onweb_chaticon{display:inline !important;position:absolute !important;right:0 !important;float:right !important;line-height:24px !important;margin-right:16px !important;margin-top:11px !important}.onwebchatbox .con:hover{opacity:.75}.onwebchatbox .onweb_minimize_btn_icon{display:initial !important;border:solid;border-width:0 3px 3px 0;position:absolute;top:#onweb_min_btn_marginpx !important;padding:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer;right:6px !important}.onwebchatbox .onweb_minimize_btn_icon:hover{margin-top:1px}.onwebchatbox .onweb_departm_menu_minimize_btn{border:solid;border-width:0 2px 2px 0;padding:3px;border-color:#929292;position:relative;top:-35px;float:right;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer;right:6px !important}.onwebchatbox div.maximize_onwebchatbox{display:inline}.onwebchatbox .chat_area p{letter-spacing:.1px !important;padding-left:12px;padding-right:12px;font-size:14px !important;font-family:Arial,Helvetica,sans-serif !important;line-height:20px;float:left;clear:left;word-wrap:break-word;max-width:max-content;margin:0;color:#agent_css_text_color;box-sizing:content-box}@media(max-width:480px){.onwebchatbox .chat_area p{font-size:115% !important;line-height:1.18 !important}}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color !important;margin-bottom:10px !important;font-family:arial,verdana,sans-serif !important;text-align:right}.onwebchatbox .spanbold{font-weight:700;margin-left:initial;float:initial;font-size:12px !important}@media(max-width:480px){.onwebchatbox .spanbold{font-size:14px !important}}.onwebchatbox .me .spanbold,.onwebchatbox .agent .spanbold{display:none}.onwebchatbox .chat_area .agent{color:#agent_css_text_color !important;margin-bottom:10px !important;min-height:10px !important;font-family:arial,verdana,sans-serif !important}.onwebchatbox .chat_area .system{font-style:italic;font-size:11px}.onwebchatbox #onwebchat-logo-span{position:absolute !important;color:#707070 !important;font-weight:500 !important;font-family:Arial,sans-serif !important;letter-spacing:0 !important;font-size:11.7px !important;font-style:normal !important;bottom:5px !important;direction:ltr !important;user-select:none !important;left:50% !important;transform:translateX(-50%) !important}.onwebchatbox #off-form-onwebchat-logo{display:none;float:right !important;position:absolute !important;margin:0 !important;right:9px !important;border:none !important;box-sizing:content-box !important;opacity:.91;bottom:7px !important}.onwebchatbox #off-form-onwebchat-logo:hover{opacity:1}.onwebchatbox .widget-logo{float:right !important;position:absolute !important;margin:0 !important;bottom:0 !important;right:4px !important;border:none !important;padding:4px 6px !important;box-sizing:content-box;height:initial !important;width:initial !important;margin:initial !important;opacity:.80}.onwebchatbox .widget-logo:hover{opacity:1}.onwebchatbox #div_chat_min_title{display:block;position:initial;margin:auto 10px auto auto;width:97%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_min_title_span{color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;letter-spacing:.3px !important;font-size:14px !important;line-height:42px !important;vertical-align:baseline !important}.onwebchatbox #div_chat_max_title{display:none;position:initial;margin:auto 10px auto auto;width:96%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_max_title_span{padding-left:10px !important;color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;line-height:#onwebchatbox_header1_heightpx !important;font-weight:500 !important;font-size:15px !important;vertical-align:baseline !important;letter-spacing:.3px !important}@media(max-width:480px){.onwebchatbox #div_chat_max_title_span{font-size:18px !important}}.onwebchatbox .server_messages{display:block;text-align:center;width:90%;max-width:90% !important;margin:auto;color:#727787 !important;padding:0 0 10px 15px;box-sizing:content-box}.onwebchatbox .server_messages span{color:#727787 !important}.onwebchatbox .onweboffline_msg{position:relative !important;display:block !important;font-size:14px;font-weight:400;font-family:arial,verdana,sans-serif !important;color:#393939 !important;padding:2% 10% 0 !important;margin-top:22% !important;margin-bottom:3px !important;top:initial !important;min-height:26px !important;line-height:20px !important}.onwebchatbox .ns{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwebchat_title2{display:block;text-align:center !important;width:54% !important;margin:auto !important;color:#737379 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;border-radius:13px !important;box-sizing:initial;line-height:18px !important;position:relative;margin-top:13% !important;box-shadow:1px 1px 3px 0 #c9c9c9 !important;padding:14px 19px 14px 19px !important;max-width:160px !important;background:#f2f2f2 !important;border:none !important;font-size:15px !important}@media(max-width:480px){.onwebchatbox .onwebchat_title2{transform:scale(1.15) !important}}.onwebchatbox .onwebchat_title2::after{content:'';width:0;height:0;position:absolute;bottom:-16px;left:18%;border-left:0 solid transparent;border-right:22px solid transparent;border-top:17px solid #f2f2f2}.onwebchatbox .onwebchat_title2::before{content:'';width:0;height:0;position:absolute;bottom:-15px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:0}.onwebchatbox .onwebchatform_div{display:block;position:initial;line-height:inherit;width:80%;margin:19px auto auto;color:#545454 !important}.onwebchatbox #onwebchatoffname,#onwebchatoffemail,#onwebchatofftel,#onwebchatemailtext,#onprechatname,#onprechatemail,#onprechattel,#onprechattext,#departments{float:initial !important;display:block;background-color:#fefefe !important;background-image:none !important;padding:7px 11px !important;font-size:14px !important;font-weight:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:initial !important;text-transform:initial !important;text-indent:initial !important;text-align:initial !important;letter-spacing:.2px !important;color:#393939 !important;width:100% !important;max-width:initial !important;max-height:initial !important;min-width:initial !important;min-height:initial !important;resize:none !important;outline:none !important;border-radius:5px !important;line-height:inherit !important;transition:box-shadow .40s,border-color .40s ease-in-out !important;box-sizing:border-box !important;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important;height:36px !important;margin:12px auto 11px !important}.onwebchatbox .onwebchatform_div #onprechattext{height:68px !important;line-height:normal !important;text-align:initial !important;white-space:initial !important}.onwebchatbox .onwebchatform_div #onwebchatemailtext{height:82px !important;line-height:normal !important;text-align:initial !important;border:1px solid #ccc !important;white-space:initial !important}#prechat_btn{margin:30px auto 20px !important;color:#fff !important;background-image:inherit;background-color:#3b6e00 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}.onwebchatbox #onwebchatoffname:focus,#onwebchatoffemail:focus,#onwebchatemailtext:focus,#onwebchatofftel:focus,#onprechatname:focus,#onprechatemail:focus,#onprechattext:focus,#onprechattel:focus{background:inherit;box-shadow:0 0 1px !important}#offlineform_btn{background-color:#3b6e00 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}#offlineform_ok_btn{background-color:#3b6e00 !important;min-width:100% !important;height:37px !important}.onwebchatbox .onweb_mail_btn{display:block !important;margin:30px auto 20px !important;text-align:center !important;text-transform:initial !important;text-indent:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:normal !important;font-weight:400 !important;background-color:#3b6e00 !important;cursor:pointer;padding:3px 14px !important;border-style:none !important;position:relative !important;border-radius:5px !important;float:inherit !important;min-width:80px !important;width:initial;max-width:200px !important;outline:none !important;min-height:initial !important;height:28px !important;line-height:16px !important;box-sizing:border-box !important;text-shadow:inherit !important;box-shadow:none !important;letter-spacing:inherit !important;font-size:14px !important}.onwebchatbox .onweb_mail_btn:hover{background-color:#3b6e00;opacity:.82;border-style:none;box-shadow:none !important}.onwebchatbox .me-bubble{background-color:#e9e9e9;width:69% !important;margin-right:5% !important;padding:8px;position:relative !important;float:right !important;text-align:left;clear:both !important;border-radius:11px;border:0;margin-left:8px !important}.onwebchatbox .me-first{border-top-right-radius:2px !important}.onwebchatbox .me-bubble b{font-weight:600}.onwebchatbox .agent-bubble b{font-weight:600}.onwebchatbox .agent-bubble{background-color:#567ea6;width:60% !important;margin-left:5% !important;padding:8px;position:relative;text-align:left;clear:both !important;border-radius:11px;border:0;margin-right:8px !important}.onwebchatbox .big-margin-left{margin-left:13% !important}.onwebchatbox .agent-first{border-top-left-radius:2px !important}.onwebchatbox .onwebchat-widget-settings-icon{opacity:.83 !important;position:absolute !important;bottom:1px !important;left:12px !important;height:29px !important;fill:#787878 !important;cursor:pointer !important;border-radius:34px !important;transition:transform .25s ease,background .25s ease !important;-webkit-transition:-webkit-transform .25s ease,background .25s ease !important;-webkit-tap-highlight-color:transparent}.onwebchatbox .onwebchat-widget-settings-icon:hover{opacity:1 !important;background:#e3dbdb8a !important;border-radius:34px !important}.onwebchatbox #onwebchat-emoticons-div{position:absolute;bottom:66px !important;right:4px !important;background-color:#fff !important;box-shadow:0 3px 12px 1px #b5b5b5 !important;border:1px solid #d2d2d2 !important;display:none;margin:0 !important;padding:4px 6px !important;list-style-type:none !important;box-sizing:content-box !important;line-height:initial !important;width:223px !important;width:-moz-max-content !important;width:max-content !important;border-radius:8px !important;font-size:22px !important;line-height:1.5 !important;user-select:none !important;z-index:999999 !important}#onwebchat-emoticons-div:after{display:block !important;content:'' !important;border:9px solid transparent !important;border-top-color:#fff !important;position:absolute !important;right:9px !important;bottom:-17px !important;pointer-events:none !important}.onwebchatbox #onwebchat-emoticons-div span{font-size:22px !important;box-sizing:border-box !important;margin-bottom:initial !important;padding:2px 2px !important;display:inline-block !important;text-align:center !important;width:1.53em !important;height:1.56em !important;line-height:26px !important;vertical-align:middle !important;transition:transform .12s ease !important;-webkit-transition:-webkit-transform .12s ease !important}.onwebchatbox #onwebchat-emoticons-div span img{height:1.1em !important}.onwebchatbox #onwebchat-emoticons-div span:hover{cursor:pointer !important;-webkit-transform:scale(1.21) !important;transform:scale(1.21) !important}#onwbchat_window .chat_area p>i{font-size:140% !important;line-height:1.2 !important;font-style:normal !important}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;bottom:30px !important;left:10px !important;background-color:#fefefe !important;border:1px solid #d2d2d2 !important;opacity:1;display:none;margin:0 !important;padding:0 0 !important;list-style-type:none !important;width:initial !important;box-shadow:rgba(0,0,0,0.23) 0 2px 12px;border-radius:8px !important;overflow:hidden !important;z-index:999999 !important}.onwebchatbox .onwebchat-widget-settings-submenu li{text-align:left !important;float:initial !important;list-style-type:none !important;list-style:none !important;cursor:pointer !important;margin:0 !important;line-height:22px !important;direction:ltr !important;background:none !important;display:block !important;font-size:10px !important;padding:3px 50px 6px 10px !important}.onwebchatbox .onwebchat-widget-settings-submenu li:hover{background-color:#f4f4f4 !important;color:black !important}.onwebchatbox .onwebchat-widget-settings-submenu li:before{content:initial !important}.onwebchatbox .onwebchat-widget-settings-submenu-text{margin-right:10px;color:#484848;position:relative;bottom:4px !important;font-weight:500 !important;vertical-align:middle !important;font-family:arial,verdana,sans-serif !important;margin-left:11px !important;font-size:14px !important}.onwebchatbox .onwebchat-menu-icons{transform:scale(1.1);transform-origin:0 0;margin:0 0 0 5px !important;vertical-align:baseline !important;fill:#787878 !important;position:relative !important;top:3px !important}.onwebchatbox .onwebchat-emoticons{position:relative;top:4px;cursor:initial !important}.onwebchatbox img:-moz-loading{visibility:hidden}#operator-image{position:absolute;width:46px;left:15px;border-radius:100%;border:2px solid #bbb7b7;z-index:9999999;top:-5px}#iconsdiv{width:54px !important;height:80px !important;position:absolute !important;right:0 !important;bottom:-5px !important}#wb-send-image{position:relative !important;float:right !important;z-index:initial !important;right:35px !important;top:25px !important;width:26px !important;height:26px !important;fill:#3b6e00 !important;cursor:pointer !important}#wb-smile-image{position:relative !important;float:right !important;right:-14px !important;opacity:.8 !important;z-index:initial !important;fill:#707070 !important;cursor:pointer !important;top:26px !important}#wb-smile-image:hover{opacity:1 !important}#wb-send-image:hover{opacity:1 !important;transform:scale(1.06) !important;-webkit-transform:scale(1.06) !important;transition:transform .22s ease !important;-webkit-transition:-webkit-transform .22s ease !important;padding:0 !important}#uploadfileid{opacity:.84}#uploadfileid:hover{opacity:1}#onwebchat-volume-li-id{opacity:.84}#onwebchat-volume-li-id:hover{opacity:1}#onwebchat-print-li{cursor:default !important;opacity:.5}#onwebchat-savetofile-li{cursor:default !important;opacity:.5}#onwebchat-email-li{cursor:default !important;opacity:.5}#onwebchat-endchat-li{cursor:default !important;opacity:.5}.onwebchatbox .onwcmodaltext{padding:8px 13px !important;line-height:20px !important;color:#383838 !important}.onwebchatbox .onwcmodal-content .onwcmodalclose{font-size:22px !important;color:#7f7e7e;font-weight:800;cursor:pointer;position:absolute;right:11px;top:4px;width:24px}.onwcmodalclose:hover{color:#ac1616 !important;background:#c9c9c9;border-radius:46px;transition-duration:350ms}.onwcmodal{position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;background-color:rgb(70 70 70 / 55%) !important;opacity:0;visibility:hidden;transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s !important;z-index:999999 !important;border-top-right-radius:5px !important;border-top-left-radius:5px !important;user-select:none !important}.onwebchatbox .onwcmodal-content{position:relative !important;display:grid !important;margin:auto;margin-top:50%;background-color:white !important;width:84% !important;max-width:240px !important;min-width:172px !important;line-height:24px !important;min-height:30px !important;font-size:15px !important;padding:32px 18px !important;border-radius:7px !important;user-select:none;text-align:center}.onwebchatbox .onwcmodal-content div{font-size:14px !important}.show-onwcmodal{opacity:1;visibility:visible;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.onwc-show{transition:opacity 400ms !important;opacity:1 !important}.onwc-hide{opacity:0 !important;transition:opacity 400ms !important}.onwebchatbox .onwcbutton{width:29% !important;cursor:pointer !important;line-height:initial !important;min-width:fit-content !important;min-width:-moz-fit-content !important;min-height:initial !important;margin-left:auto !important;margin-right:auto !important;color:#383838 !important;background:#ddd !important;font-family:Arial,Helvetica,sans-serif !important;border:1px solid rgba(0,0,0,0.0) !important;padding:5px 12px !important;font-size:14px !important;border-radius:5px !important;display:inline-block !important;height:fit-content !important}.onwcbutton:focus{outline-color:lightgray !important}.onwcbutton:hover{background:#c5c5c5 !important}#onwcemailtrans{text-align:left !important;border-radius:5px !important;height:20px !important;box-sizing:content-box !important;border:1px solid #909090 !important;height:20px !important;font-size:14px !important;padding:2% 5% !important;width:89% !important;outline:none !important;max-width:189px !important;margin:10px auto 19px auto !important}.onwebchatbox .orange{background:#f5d28d !important}.onwebchatbox .orange:hover:not(:disabled){background:#eac57b !important}.onwebchatbox .disabled{opacity:.5;cursor:default !important}#onwbchtlogo-in-widget-icon{width:12px !important;height:12px !important;bottom:-2px;position:relative;fill:#747474}.onwbchtlogo-in-widget-bw2,.onwbchtsend-icon,.onwbchtonline-icon,.onwbchtoffline-icon,.onwbchtupload-icon-2,.onwbchtvolume-icon-2,.onwbchtvolume-icon-off,.onwbchtsave-icon,.onwbchtemail-icon,.onwbchtclose2,.onwbchtendchat-icon{display:inline-block;background:url('https://www.onwebchat.com/chatimages/live-chat-images-3.png?v=2') no-repeat;overflow:hidden;text-indent:-9999px;text-align:left}.onwbchtlogo-in-widget-bw2{background-position:-1px -0;width:71px;height:10px}.onwbchtonline-icon{background-position:-1px -37px;width:23px;height:18px}.onwbchtoffline-icon{background-position:-52px -11px;width:17px;height:15px}.onwbchtupload-icon-2{background-position:-25px -39px;width:17px;height:14px}.onwbchtvolume-icon-2{background-position:-43px -43px;width:17px;height:13px}.onwbchtvolume-icon-off{background-position:-25px -54px;width:17px;height:13px}.onwbchtsave-icon{background-position:-1px -56px;width:16px;height:14px}.onwbchtemail-icon{background-position:-43px -57px;width:16px;height:15px}.onwbchtclose2{background-position:-18px -68px;width:14px;height:14px}.onwbchtendchat-icon{background-position:-16px -68px;width:17px;height:14px}#onwc_consent_l_offline span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_prechat span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_inchat_modal{margin-bottom:24px;display:block !important}#onwc_consent_l_inchat_modal span{font-size:14px !important;color:#545454 !important;line-height:20px !important;margin-bottom:18px}#onwc_consent_checkbox_inchat_modal{margin:0 5px 2px 0 !important}.onwebchatbox .rating{unicode-bidi:bidi-override;direction:rtl;text-align:center;margin-top:20px}.onwebchatbox .rating span{font-size:23px !important;display:inline-block !important;position:relative !important;width:1.1em !important;color:#aeaeae !important}.onwebchatbox .rating span:hover,.onwebchatbox .rating span:hover ~ span{cursor:pointer !important;color:#ffb900 !important}#onwbchat_window .onwcdepartmenu{display:none !important;position:absolute !important;background:white !important;list-style:none !important;border:1px solid #ddd !important;border-radius:7px !important;margin-top:-11px !important;padding-inline-start:0 !important;z-index:999999 !important;box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;-webkit-box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;user-select:none !important}#onwbchat_window .onwcdepartmenu>li{cursor:default !important;font-size:13px !important;padding:7px 15px 5px 15px !important}#onwbchat_window .onwcdepartmenu>li span{font-size:14px !important;color:#545454 !important}#onwbchat_window .onwcdepartmenu>li:hover{background:#fee188 !important}#onwbchat_window #upload_img{display:none;position:absolute;text-align:center;top:50%;width:100%;z-index:10000}#onwbchat_window .onwctime{text-align:left;display:block;padding-top:11px;opacity:0;padding-right:11px}#onwbchat_window .onwctime span{padding:initial !important;margin:initial !important;color:grey !important;font-size:12px !important;text-align:left !important}#onwbchat_window .onwctime.me{text-align:right !important}#onwbchat_window .onwcinner{display:inline-flex;width:100%}.onwcouter{position:relative;margin-bottom:2px;margin-top:3px !important}.onwcminner{position:relative;width:100%;text-align:right}.onwcouter:last-of-type .onwctime{opacity:1 !important}.onwcinner:hover .onwctime{opacity:1 !important;transition:opacity .5s ease-out;transition-delay:.09s}#onwbchat_window .onwcouter{margin-top:9px !important}#onwbchat_window .onwcouter_agent+.onwcouter_agent{margin-top:0 !important}#onwbchat_window .onwcouter_me+.onwcouter_me{margin-top:0 !important}#agenttypingimage{display:grid !important;position:relative !important;float:left !important;width:48px !important;height:42px !important;clear:both !important;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important}.onwc-typing-indicator{width:48px !important;height:32px !important;position:relative !important;margin-left:10px !important}.onwc-bubble{width:8px;height:8px;background:#555;position:absolute;bottom:0;border-radius:50%;animation:onwc-bubble 1.1s ease-in-out infinite}.onwc-bubble:nth-child(1){left:2px;animation-delay:0s}.onwc-bubble:nth-child(2){left:14px;animation-delay:.2s}.onwc-bubble:nth-child(3){left:26px;animation-delay:.4s}@keyframes onwc-bubble{0%{bottom:0;opacity:.6}50%{bottom:12px;opacity:1}100%{bottom:0;opacity:.6}}#scrollToBottomBtn{position:absolute !important;bottom:77px !important;left:50% !important;transform:translateX(-50%) !important;width:32px !important;height:32px !important;text-align:center !important;border-radius:50% !important;background-color:#fff !important;color:#0a0a0a !important;border:none !important;cursor:pointer !important;border:1px solid #ccc !important;font-size:46px !important;z-index:999998 !important;outline:none !important;-webkit-tap-highlight-color:transparent !important}#scrollToBottomBtn:hover{border:1px solid #777 !important}#onwbchat_window [type='checkbox']+span:not(.lever):before,#onwbchat_window [type='checkbox']:not(.filled-in)+span:not(.lever):after{box-sizing:border-box !important;margin-left:-3px !important}#outer_agent_bubble{box-shadow:none !important;box-sizing:border-box !important;position:fixed !important;display:none !important;bottom:139px !important;background:transparent !important;z-index:1999999999 !important;cursor:pointer !important;height:auto !important;min-width:60px !important;width:fit-content !important;max-width:#chat_widthpx !important}@media(max-width:480px){#outer_agent_bubble{right:16px !important}}#outer_agent_bubble_div{display:grid;border:1px solid #f5f5f4 !important;border-radius:5px !important;border-top-left-radius:0 !important;background-color:#fdfdfd !important;box-shadow:0 2px 3px rgba(0,0,0,.08) !important;font-family:arial,verdana,sans-serif !important;letter-spacing:.1px !important;font-size:14px !important;user-select:none !important;white-space:normal !important;word-break:break-word !important;padding:7px 11px !important;max-height:80px !important;overflow:auto}#outer_agent_bubble_x{position:absolute !important;top:-24px !important;right:3px !important;background:white !important;height:17px !important;width:17px !important;border-radius:25px !important}#bubble_x_svg{margin-left:-3px !important;margin-top:-3px !important;background:transparent !important;fill:gray !important}#bubble_x_svg:hover{fill:#5a5a5a !important}#operatorImageSmallPreview{box-shadow:none !important;top:4px !important;width:32px !important;height:32px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;cursor:pointer !important;-webkit-user-drag:none !important;overflow:hidden !important;background:white !important} @keyframes onwbmoveleft { 0% { transform: scaleX(0.75) scaleY(0.75); } } #onweb_chatimage{ animation-name: onwbmoveleft ; animation-timing-function: linear; animation-iteration-count: 1 ; animation-duration: 0.3s ; }";var Me="free";var Se="0";var We="1";var R="undefined";var Le=0;var H;var p="560";var Oe="66";var qe="340";var Ae="left";var g="40";var f="#414141";var Re="#ffffff";var He="1";var Ne="0";var Fe="1";var De="1";var Ze="0";var ze="0";var Ue="1";var Ve="0";var $e="1";var Xe="1";var Ye="0";var Ge="0";var Je="0";var Qe=0;var Ke="0";var N="1";var F="1";var et="0";var tt="us";var nt=['gr','cy','gb','at','be','bg','hr','cz','dk','ee','fi','fr','de','hu','ie','it','lv','lt','lu','mt','nl','pl','pt','ro','sk','si','es','se'];var ot="1";var it="0";var at="0";var lt="0";var st="0";var rt="1";var dt="1";let ct="";if(ct==''||ct==undefined){ct="chat-bot.png"}const mt="M337.615-298.693 480-441.078l142.385 142.385 38.922-38.922L518.922-480l142.385-142.385-38.922-38.922L480-518.922 337.615-661.307l-38.922 38.922L441.078-480 298.693-337.615l38.922 38.922Zm142.477 190.615q-77.152 0-145.066-29.325-67.914-29.324-118.152-79.595-50.238-50.27-79.517-118.055-29.279-67.785-29.279-144.855 0-77.152 29.325-145.066 29.324-67.914 79.595-118.152 50.27-50.238 118.055-79.517 67.785-29.279 144.855-29.279 77.152 0 145.066 29.325 67.914 29.324 118.152 79.595 50.238 50.27 79.517 118.055 29.279 67.785 29.279 144.855 0 77.152-29.325 145.066-29.324 67.914-79.595 118.152-50.27 50.238-118.055 79.517-67.785 29.279-144.855 29.279Zm-.105-55.96q131.898 0 223.936-92.026 92.039-92.026 92.039-223.923 0-131.898-92.026-223.936-92.026-92.039-223.923-92.039-131.898 0-223.936 92.026-92.039 92.026-92.039 223.923 0 131.898 92.026 223.936 92.026 92.039 223.923 92.039ZM480-480Z";if(N==1&&et==1&&nt.indexOf(tt)===-1){N=0}var h=At('onwbchtblocked');if(h==''||h==null||h=='null'||h=='NaN'){h=0;Rt('onwbchtblocked',0)}var ut=U('onwbchtemailsSent');if(ut=="")ut=0;else ut=parseInt(ut);if(u=="0"){n=n.replace(/radius: 13px|radius: 11px|radius: 8px|radius: 5px|radius: 6px|radius: 2px|radius: 3px/g,"radius:0px");n=n.replace(/radius:13px|radius:11px|radius:8px|radius:5px|radius:6px|radius:2px|radius:3px/g,"radius:0px")}n=n.replace("#onweb_min_btn_margin",Oe*.36-1.36);n=n.replace(new RegExp('__modern','g'),"");n=n.replace(/#textarea_width/g,qe-71);n=n.replace(/#chat_width/g,qe);n=n.replace(/#chatheader_width/g,qe-40);n=n.replace("#chat_area_height",p-98-Oe);n=n.replace("#onwebchatbox_header_height_+_4",Oe-0+4);n=n.replace(/#onwebchatbox_header1_height/g,Oe);n=n.replace(/#visitor_css_text_color/g,f);n=n.replace(/#agent_css_text_color/g,Re);if(R==undefined||R=='undefined')R=0;var pt=document.title;var gt=window.location.href;if(!('remove'in Element.prototype)){Element.prototype.remove=function(){if(this.parentNode){this.parentNode.removeChild(this)}}}window.addEventListener("orientationchange",function(e){if(V('maxChat')==1){setTimeout(function(){an()},20);setTimeout(function(){an()},200)}});let ft=Ee/20*30;ft++;ft++;(function(e){{var t='-';var n=navigator.appVersion;var o=navigator.userAgent;var i=navigator.appName;var a=''+parseFloat(navigator.appVersion);var l=parseInt(navigator.appVersion,10);fn=n+" -- "+o+" -- "+i+" -- "+a+" -- "+l+" -- "+navigator.platform+" -- "+navigator.oscpu;var s,r,d;if((r=o.indexOf('Opera'))!=-1){i='Opera';a=o.substring(r+6);if((r=o.indexOf('Version'))!=-1){a=o.substring(r+8)}}else if((r=o.indexOf('MSIE'))!=-1){i='Internet Explorer';a=o.substring(r+5)}else if((r=o.indexOf('Edge'))!=-1||(r=o.indexOf('Edg/'))!=-1){i='Edge';a=''}else if((r=o.indexOf('Chrome'))!=-1){i='Chrome';a=o.substring(r+7);if((r=o.indexOf('OPR/'))!=-1){i='Opera';a=o.substring(r+4)}}else if((r=o.indexOf('Safari'))!=-1){i='Safari';a=o.substring(r+7);if((r=o.indexOf('Version'))!=-1){a=o.substring(r+8)}}else if((r=o.indexOf('Firefox'))!=-1){i='Firefox';a=o.substring(r+8)}else if(o.indexOf('Trident/')!=-1){i='Internet Explorer';a=o.substring(o.indexOf('rv:')+3)}else if((s=o.lastIndexOf(' ')+1)<(r=o.lastIndexOf('/'))){i=o.substring(s,r);a=o.substring(r+1);if(i.toLowerCase()==i.toUpperCase()){i=navigator.appName}}if((d=a.indexOf(';'))!=-1)a=a.substring(0,d);if((d=a.indexOf(' '))!=-1)a=a.substring(0,d);if((d=a.indexOf(')'))!=-1)a=a.substring(0,d);var c=a.indexOf('.');if(c>0){var m=a.indexOf('.',a.indexOf('.')+1);if(m>0)a=a.substring(0,m)}l=parseInt(''+a,10);if(isNaN(l)){a=''+parseFloat(navigator.appVersion);l=parseInt(navigator.appVersion,10)}if(i=='Edge')a='';ee=false;if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4))){ee=true}var u=navigator.cookieEnabled?true:false;if(typeof navigator.cookieEnabled=='undefined'&&!u){document.cookie='testcookie';u=document.cookie.indexOf('testcookie')!=-1?true:false}var p='';var g=[{s:'Windows 3.11',r:/Win16/},{s:'Windows 95',r:/(Windows 95|Win95|Windows_95)/},{s:'Windows ME',r:/(Win 9x 4.90|Windows ME)/},{s:'Windows 98',r:/(Windows 98|Win98)/},{s:'Windows CE',r:/Windows CE/},{s:'Windows 2000',r:/(Windows NT 5.0|Windows 2000)/},{s:'Windows XP',r:/(Windows NT 5.1|Windows XP)/},{s:'Windows Server 2003',r:/Windows NT 5.2/},{s:'Windows Vista',r:/Windows NT 6.0/},{s:'Windows 7',r:/(Windows 7|Windows NT 6.1)/},{s:'Windows 8.1',r:/(Windows 8.1|Windows NT 6.3)/},{s:'Windows 8',r:/(Windows 8|Windows NT 6.2)/},{s:'Windows 10',r:/(Windows 10|Windows NT 10.0)/},{s:'Windows NT 4.0',r:/(Windows NT 4.0|WinNT4.0)/},{s:'Windows',r:/(WinNT|Windows NT)/},{s:'Windows ME',r:/Windows ME/},{s:'Windows Phone',r:/Windows Phone/},{s:'Android',r:/Android/},{s:'Open BSD',r:/OpenBSD/},{s:'Sun OS',r:/SunOS/},{s:'Linux',r:/(Linux|X11)/},{s:'iOS',r:/(iPhone|iPad|iPod)/},{s:'Mac OS X',r:/Mac OS X/},{s:'Mac OS',r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:'QNX',r:/QNX/},{s:'UNIX',r:/UNIX/},{s:'BeOS',r:/BeOS/},{s:'OS/2',r:/OS\/2/},{s:'BlackBerry OS',r:/BlackBerry/},{s:'Search Bot',r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var f in g){var h=g[f];if(h.r.test(o)){p=h.s;break}}if(p==''){p=navigator.platform}var y=t;if(/Windows/.test(p)){y=/Windows (.*)/.exec(p)[1];p='Windows'}switch(p){case'Mac OS X':y=/Mac OS X (10[\.\_\d]+)/.exec(o)[1];break;case'Android':y=/Android ([\.\_\d]+)/.exec(o)[1];break;case'iOS':y=/OS (\d+)_(\d+)_?(\d+)?/.exec(n);y=y[1]+'.'+y[2]+'.'+(y[3]|0);break}var b='no check';if(typeof swfobject!='undefined'){var w=swfobject.getFlashPlayerVersion();if(w.major>0){b=w.major+'.'+w.minor+' r'+w.release}else{b=t}}}e.jscd={browser:i,browserVersion:a,isMobile:ee,os:p,osVersion:y,cookies:u,flashVersion:b}})(this);gn=jscd.os+' '+jscd.osVersion;pn=jscd.browser+' '+jscd.browserVersion;try{var ht=function(e,t){if(R==1){V('chattext session :'+V('chattext'));if(typeof sessionStorage!=="undefined"&&V('hasTriggered')!='1'&&U('hasTriggeredC')!=1&&U('inChatC')!=1&&V('chattext')==""){if(V('maxChat')==1&&m==1){}else{s();if(O!=0){Wt('onWebChat','Trigger activated','');$('hasTriggered',1);z('hasTriggeredC',1,.166);$('mustSendTriggerText',true);_=true;$('triggerText',e);if(Z('max_served',S)!=""&&t!=""&&t!="null"&&t!=null){In('
'+Z('max_served',S).replace('{{operator}}',t)+'
');q="";$('hasWrSeByTr',true)}var n="";n=" agent-bubble ";var o="";var i='';var a="";if(q!='agent'){n=n+" agent-first ";if(L==1){i=' '}}if(L==1){a=" big-margin-left "}if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}In(''+i+''+Z('max_agent',S).replace('{{operator}}',t)+' '+St(e).replace(/({{newline}})/gm," ")+'
',"",true);q="agent";if(V('maxChat')!=1){}if(Y){Q.emit('setclientstatus','triggered')}}}}}};function yt(){clearTimeout(I);if(A==1){}else if(A==27254){I=setTimeout(bt,3*1e3,"Бихте ли ни дали телефон за връзка, за да уточним детайли?")}else if(A==3322){I=setTimeout(bt,10*1e3,"Right now all our operators are busy. Please wait a few minutes or give us your email, so we can contact you.")}}function bt(e){if(typeof sessionStorage!=="undefined"&&V('hasTriggeredNoReply')!='1'&&U('hasTriggeredNoReplyC')!=1&&U('inChatC')!=1){if(O!=0){Wt('onWebChat','Trigger (no reply) activated','');$('hasTriggeredNoReply',1);z('hasTriggeredNoReplyC',1,.166);$('mustSendTriggerNoReplyText',true);k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=624;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}Q.emit('sendchat',"",e,0,0,624,ye,K,ft,obj);Lt();var t="";t=" agent-bubble ";var n="";var o='';var i="";if(q!='agent'){t=t+" agent-first ";if(L==1){o=' '}}if(L==1){i=" big-margin-left "}if(isRTLlanguage(e.substr(0,1))==true){n=' style="direction: rtl;text-align:right;" '}var a="";In(''+o+''+Z('max_agent',S).replace('{{operator}}',a)+' '+St(e).replace(/({{newline}})/gm," ")+'
');if(Y){}}}}}catch(e){console.log(e)}var wt='[]';wt=wt.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var e=JSON.parse(wt);var vt=0;var _t=false;if(V('secOnSite')===undefined||V('secOnSite')=="NaN"){$('secOnSite',0)}let It;function Et(e){Be=true;document.getElementById('wb-send-image').style.pointerEvents='none';document.getElementById("wb-send-image").style.opacity="0.42";if(e=='aibot'){It=setTimeout(function(){xt()},1e4)}}function xt(){clearTimeout(It);Be=false;document.getElementById('wb-send-image').style.pointerEvents='auto';document.getElementById("wb-send-image").style.opacity="0.90"}function Bt(){if(V('chattext')&&V('chattext').endsWith(Z('max_gone',S)+"")){Te=false;document.getElementById('onwbtxtarea').style.pointerEvents='none';document.getElementById("onwbtxtarea").disabled=true;document.getElementById('wb-send-image').style.pointerEvents='none';document.getElementById('wb-smile-image').style.pointerEvents='none';document.getElementById("onwbtxtarea").style.opacity="0.42";document.getElementById("wb-send-image").style.opacity="0.42";document.getElementById("wb-smile-image").style.opacity="0.42";document.getElementById("onwbtxtarea").setAttribute("placeholder","");disableMenuItem("uploadfileid")}}function kt(){Te=true;try{document.getElementById('onwbtxtarea').style.pointerEvents='auto';document.getElementById("onwbtxtarea").disabled=false;document.getElementById('wb-send-image').style.pointerEvents='auto';document.getElementById('wb-smile-image').style.pointerEvents='auto'}catch(e){}document.getElementById("onwbtxtarea").style.opacity="1";document.getElementById("wb-send-image").style.opacity="0.90";document.getElementById("wb-smile-image").style.opacity="0.78";document.getElementById("onwbtxtarea").setAttribute("placeholder",Z('max_placeholder',S));enableMenuItem("uploadfileid")}var Ct=e.length;if(ee==1&&We==0){}else{for(var D=0;D=0){setTimeout(ht,Tt*1e3,e[D].text,e[D].agentName)}}else if(e[D].isFullSite==0){var Pt=e[D].urls;var jt=false;var Mt=Pt.length;for(var t=0;t-1){jt=true;break}}if(jt){setTimeout(ht,e[D].delay*1e3,e[D].text,e[D].agentName)}}}}if(_t){setInterval(function(){if(V('secOnSite')===undefined||V('secOnSite')=='NaN')$('secOnSite',0);vt++;$('secOnSite',parseInt(V('secOnSite'))+1)},1e3)}function St(e){return e.replace(/&/g,"&").replace(//g,">")}var Wt=function(e,t,n){try{if(typeof gtag==='function'){gtag('event',t,{event_category:e,event_label:n})}else{ga('send','event',{eventCategory:e,eventAction:t,eventLabel:n})}}catch(e){}};function Lt(){if($t){if(document.getElementById("onwebchataudio").innerHTML.trim()==""){document.getElementById("onwebchataudio").innerHTML=' '}var e=document.getElementById("onwebchataudio");try{e.play()}catch(e){}}else{}}var Z=function(e,t){if(i[e]&&i[e][t]){return i[e][t]}else if(e=='email_text'){return"Send chat transcript to your email:"}else if(e=='email_sent'){return"Transcript sent!"}else if(e=='send'){return"Send"}else{if(i[e]==undefined)return"";else return i[e]['l1']}};try{for(var t=0;tn.length){t=n.length}t-=e.length;var o=n.indexOf(e,t);return o!==-1&&o===t}}function z(e,t,n){var o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3);var i="expires="+o.toGMTString();document.cookie=e+"="+t+"; "+i+";path=/"}function Ot(e){z(e,'',-1)}function U(e){var t=e+"=";var n=document.cookie.split(';');for(var o=0;o0){return e.indexOf('msie')!=-1?parseInt(e.split('msie')[1]):false}else if(n>0){return true}else if(o>0){return true}else{return false}}function Kt(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}var en=function(n,o){jdelay=0;if(typeof window['define']!=="undefined"){console.log("define..");jdelay=1200}setTimeout(function(){var t=document.createElement('script');t.src=n;t.async=true;t.onreadystatechange=t.onload=function(){var e=t.readyState;if(!o.done&&(!e||/loaded|complete/.test(e))){o.done=true;o()}};var e=document.getElementsByTagName('head')[0];e.insertBefore(t,e.firstChild)},jdelay)};if(typeof JSON==='undefined'){Zt=true}var tn=false;if(nn()){tn=true}function nn(){try{return window.self!==window.top}catch(e){return false}}if(typeof String.prototype.trim!=='function'){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}}function on(){G=true;Q.connect();if(Qt()!=8){Ut=setTimeout(function(){Q.io.disconnect();rn()},zt)}}function an(){document.getElementById("onwbchat_window").style.setProperty("animation-iteration-count","0");document.getElementById("onwbchat_window").style.setProperty("box-shadow","rgba(0, 0, 0, 0.43) 0px 0em 1.2em","important");if(Ie==1||ee){document.getElementById("onwbchat_window").style.setProperty("display","block")}if(document.getElementById("div_chat_max_title").style.display=="none"){a()}if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none");if(document.getElementById("outer_agent_bubble"))document.getElementById("outer_agent_bubble").style.setProperty("display","none","important");if(document.getElementById("onweb_chatimage_x"))document.getElementById("onweb_chatimage_x").style.setProperty("display","none");if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none");if(Le!=1&&R==0&&(V('chattext')==null||V('chattext')=='')){Pe="offline";document.getElementById('chat_area_id').style.display='none';document.getElementById('onwc_chat_message_div').style.display='none';document.getElementById('chat_info_id').style.display='none';document.getElementById('offline_form').style.display='block';document.getElementById("div_chat_max_title_span").textContent=Z('off_title',S);document.getElementById('prechat_form').style.display='none'}else{if(m==1&&V('chattext').length===0){Pe="prechat";document.getElementById('chat_area_id').style.display='none';document.getElementById('onwc_chat_message_div').style.display='none';document.getElementById('chat_info_id').style.display='none';document.getElementById('offline_form').style.display='none';document.getElementById('prechat_form').style.display='block';document.getElementById("div_chat_max_title_span").textContent=Z('max_title',S)}else{Pe="chat";document.getElementById('chat_area_id').style.display='block';document.getElementById('onwc_chat_message_div').style.display='block';document.getElementById('chat_info_id').style.display='block';document.getElementById('offline_form').style.display='none';document.getElementById('prechat_form').style.display='none';document.getElementById("div_chat_max_title_span").textContent=Z('max_title',S)}}if(ee){document.getElementById("onwbchat_window").style.setProperty("height","100%");document.getElementById("onwbchat_window").style.setProperty("max-height","100%");document.getElementById("onwbchat_window").style.setProperty("border-radius","0px","important");document.getElementById("webchat_header").style.setProperty("border-radius","0px","important");var e=document.getElementById("onwbchat_window").clientWidth;document.getElementById("onwbtxtarea").style.setProperty("width",e-48-23+"px","important");document.getElementById("chat_area_id").style.setProperty("width",e-0+"px","important");document.getElementById("webchat_header").style.setProperty("width",e-40+"px","important")}else{document.getElementById("onwbchat_window").style.setProperty("height",p+"px","important");document.getElementById("onwbchat_window").style.setProperty("top",v+"px");document.getElementById("onwbchat_window").style.setProperty("left",w+"px");document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important")}document.getElementById("div_chat_min_title").style.setProperty("line-height",42+"px","important");document.getElementById("webchat_header").style.setProperty("height",Oe+"px","important");document.getElementById("webchat_header").style.setProperty("cursor","move");document.getElementById("div_chat_max_title").style.setProperty("display","block");document.getElementById("div_chat_min_title").style.setProperty("display","none");if(document.getElementById('off-form-onwebchat-logo'))document.getElementById('off-form-onwebchat-logo').style.display='block';if(document.getElementById('onwebchat-logo-span'))document.getElementById('onwebchat-logo-span').style.display='block';$('maxChat',1);loadEmoticons();te();ln();sn();return false}function ln(){if(Pe=='chat'&&L==1){document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","50px","important")}else{document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","10px","important")}}function sn(){const e=document.getElementById('chat_area_id');let t=e.scrollHeight-e.clientHeight<=e.scrollTop+100;document.getElementById('scrollToBottomBtn').style.display=t?'none':'block'}function rn(){if(Ie==1||ee){document.getElementById("onwbchat_window").style.setProperty("display","none")}if(document.getElementById('div_chat_max_title').style.display=="block"){l()}$('maxChat',0);setTimeout(function(){document.getElementById('chat_area_id').style.display='none';document.getElementById('onwc_chat_message_div').style.display='none';document.getElementById('chat_info_id').style.display='none';document.getElementById('scrollToBottomBtn').style.display='none';if(document.getElementById("prechat_form"))document.getElementById('prechat_form').style.display='none';document.getElementById("onwbchat_window").style.setProperty("height","66px");document.getElementById('webchat_header').style.cursor='pointer';if(V('hideImage')==0&&document.getElementById("onweb_chatimage")){document.getElementById("onweb_chatimage").style.setProperty("display","inline");document.getElementById("onweb_chatimage").style.setProperty("cursor","pointer");document.getElementById("onweb_chatimage").style.setProperty("animation-iteration-count","0")}if(O==0){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none")}if(document.getElementById('onweb_chatimage_x')){document.getElementById('onweb_chatimage_x').style.display='inline';onweb_chatimage_loaded()}document.getElementById("div_chat_min_title").style.setProperty("display","block");document.getElementById("div_chat_max_title").style.setProperty("display","none");if(document.getElementById('off-form-onwebchat-logo'))document.getElementById('off-form-onwebchat-logo').style.display='none';if(document.getElementById('onwebchat-logo-span'))document.getElementById('onwebchat-logo-span').style.display='none';document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important");if(!ee){document.getElementById("onwbchat_window").style.setProperty("top","initial");document.getElementById("onwbchat_window").style.setProperty("left","initial");document.getElementById("onwbchat_window").style.setProperty(Ae,g+"px");document.getElementById("webchat_header").style.setProperty("height","40px","important");document.getElementById("onwbchat_window").style.setProperty("height","40px","important");document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important")}},100);return false}function dn(){cn(document.getElementById("onwbchat_window"));cn(document.getElementById("onweb_chatimage"))}function cn(e){if(e){e.classList.remove('onwc-show');e.classList.add('onwc-hide');fadeTimout=setTimeout(function(){e.style.setProperty("display","none")},400)}}function mn(){document.getElementById("onwbchat_window").classList.remove('onwc-hide');if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").classList.remove('onwc-hide');try{}catch(e){console.log(e)}if(Ie==0&&ee==false){document.getElementById("onwbchat_window").style.setProperty("display","block")}if(V('hideImage')==1){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none")}if(V('hideImage')==0){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","inline")}if(ee){$('maxChat',0)}if(V('maxChat')==1){an()}else{document.getElementById('chat_area_id').style.display='none';document.getElementById('onwc_chat_message_div').style.display='none';document.getElementById('chat_info_id').style.display='none'}setTimeout(function(){let e=un(document.getElementById('onweb_chatimage'));if(e==0){e=60}else{e=e+16}let t=document.getElementById("outer_agent_bubble");if(document.getElementById("outer_agent_bubble_span")){t.style.setProperty("bottom",e+"px","important");if(V('outeragentbubbletext')&&V('outeragentbubbletext')!=''&&document.getElementById('outer_agent_bubble_span').textContent==""){if(document.getElementById("outer_agent_bubble_span")){document.getElementById('outer_agent_bubble_span').insertAdjacentHTML("beforeend",V('outeragentbubbletext'))}if(V('maxChat')!=1){t.style.setProperty("display","grid","important")}}}t.addEventListener('click',function(){an();document.getElementById("onwbtxtarea").focus()});document.getElementById("outer_agent_bubble_x").addEventListener('click',function(e){e.stopPropagation();t.style.setProperty("display","none","important");qt('outeragentbubbletext')})},500)}function un(e){if(e!=null){const t=e.getBoundingClientRect().top;const n=window.innerHeight;const o=n-t;return o}else return 0}var pn;var gn;var fn;var ee;if(ee==1&&We==0){return}hasRequirejs_delay=100;if(typeof window['define']!=="undefined"){hasRequirejs_delay=5e3}setTimeout(function(){window.__requirejsToggleBackup={define:window.define,require:window.require,requirejs:window.requirejs};window['define']=undefined;window['require']=undefined;window['requirejs']=undefined;if(!Zt&&!tn){if(r!=""){en(X+'//cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.min.js',e);function e(){function e(e,t,n){var o=new XMLHttpRequest;o.open('GET',e);o.withCredentials=true;o.setRequestHeader('X-Requested-With','XMLHttpRequest');o.setRequestHeader('Content-Type','application/json');o.onreadystatechange=function(){if(o.readyState===4){if(o.status===200||o.status===0&&o.responseText!==''){n({url:e,status:200,body:o.responseText||''})}else{t({url:e,status:o.status,body:o.responseText||''})}}};o.send()}e(r,function(e){console.log("Error: language file failed to load! filename: "+r);console.log("Ensure that language file url is correct and is not blocked as cross-origin request.");if(S!='l1'&&S!='l2')S='l1';hn()},function(t){try{var e=JSON.parse(t.body);for(var n in e)if(e.hasOwnProperty(n))i[n]=e[n]}catch(e){console.log("exception parsing lang text file : "+e);console.log("lang text file data: "+t.body.substring(0,100)+" ...")}hn()})}}else{en(X+'//cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.min.js',hn)}}},hasRequirejs_delay);enableMenuItem=function(e){if(document.getElementById(e)){document.getElementById(e).style.opacity=.84;document.getElementById(e).onmouseenter=function(e){this.style.opacity=1};document.getElementById(e).onmouseleave=function(e){this.style.opacity=.84};document.getElementById(e).style.setProperty("cursor","pointer","important")}};disableMenuItem=function(e){if(document.getElementById(e)){document.getElementById(e).style.opacity=.5;document.getElementById(e).onmouseenter=function(e){this.style.opacity=.5};document.getElementById(e).onmouseleave=function(e){this.style.opacity=.5};document.getElementById(e).style.setProperty("cursor","initial","important")}};function te(){let t;if(document.getElementById("prechat_form").style.getPropertyValue('display')=='block'){t=document.getElementById('prechat_btn')}else{t=document.getElementById('offlineform_btn')}if(V('maxChat')==1){if(t!=null){let e=getComputedStyle(t);const n=e.backgroundColor;if(n=="rgb(255, 255, 255)")t.style.setProperty("background-color","#ababab","important");let o=i();const a=16,l=25,s=30,r=26,d=10;if(o<40&&document.getElementById("onwebchatform_div_id").style.margin==''||o<0){const m=(40-o)/9;let e=s-m*3;if(e<0)e=0;if(document.getElementById("onwebchatoffname"))document.getElementById("onwebchatoffname").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onwebchatoffemail"))document.getElementById("onwebchatoffemail").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onwebchatofftel"))document.getElementById("onwebchatofftel").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onwebchatemailtext"))document.getElementById("onwebchatemailtext").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onprechatname"))document.getElementById("onprechatname").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onprechatemail"))document.getElementById("onprechatemail").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onprechattel"))document.getElementById("onprechattel").style.setProperty("margin",a-m+"px auto 5px","important");if(document.getElementById("onprechattext"))document.getElementById("onprechattext").style.setProperty("margin",a-m+"px auto 5px","important");document.getElementById("prechat_btn").style.setProperty("margin",e+"px auto 20px","important");document.getElementById("offlineform_btn").style.setProperty("margin",e+"px auto 20px","important");let t=document.getElementsByClassName("onwebchatform_div");let n=l-m*2;if(n<4)n=4;t[0].style.setProperty("margin",n+"px auto auto","important");t[1].style.setProperty("margin",n+"px auto auto","important");document.getElementById("onweboffline_msg_id").style.setProperty("margin-bottom",r-m*2+"px","important");document.getElementById("onweboffline_msg_id").style.setProperty("top",d-m+"px","important");document.getElementById("onwebprechat_msg_id").style.setProperty("margin-bottom",r-m*2+"px","important");document.getElementById("onwebprechat_msg_id").style.setProperty("top",d-m+"px","important");o=i()}o=i();const c=28;if(o"+n+"");bn();if(h==1){document.getElementById("onweb_chatimage").style.setProperty('display','none')}setTimeout(function(){te()},5);if(!Zt){if(V('chattext')==null)$('chattext','');if((O==1||R==1||Le!=1||V('chattext')!=='')&&h==0&&O!==0){mn()}}var e=0;var t=navigator.userAgent;if(t.indexOf("Googlebot")>-1||t.indexOf("yandex.com/bot")>-1||t.indexOf("YandexBot")>-1||t.indexOf("Yahoo! Slurp")>-1||t.indexOf("Baiduspider")>-1||t.indexOf("BaiDuSpider")>-1||t.indexOf("bingbot")>-1||t.indexOf("msnbot")>-1){e=1}if(e==0){_n()}else{}if(ee){document.getElementById("onwebchat-widget-settings-submenu-ul").setAttribute("style","transform:scale(1.25); transform-origin: bottom; margin-left: 25px !important");document.getElementById("onweboffline_msg_id").style.setProperty('font-size','16px');document.getElementById("offlineform_btn").style.setProperty('font-size','16px');document.getElementById("onwcEndChatModal").setAttribute("style","transform:scale(1.15)");document.getElementById("onwcEmailModal").setAttribute("style","transform:scale(1.15)");document.getElementById("onwcEmailOkModal").setAttribute("style","transform:scale(1.15)");document.getElementById("onwcFileModal").setAttribute("style","transform:scale(1.15)");document.getElementById("onwcFileModalType").setAttribute("style","transform:scale(1.15)");document.getElementById("chat_area_id").setAttribute("style","font-size:120% !important");document.getElementById("onwc_chat_message_div").setAttribute("style","height:64px !important");document.getElementById("onwbtxtarea").setAttribute("style","max-width:83% !important");document.getElementById("onwbchat_window").style.setProperty("max-height","650px","important")}}function yn(e,t,n){document.getElementById('scrollToBottomBtn').style.visibility='hidden';var o=e.scrollTop;var i=o+i;var a=e.scrollHeight-e.clientHeight;var l=0;var s=(a-o)/t;function r(){o=o+s;e.scrollTop=o;l++;if(o>=a){clearInterval(d);document.getElementById('scrollToBottomBtn').style.visibility='visible'}}var d=setInterval(r,n)}function bn(){if(document.querySelectorAll(".onwebchatbox").length==0){if(R==1){div_chat_min_title=Z('min_online',S)}else{div_chat_min_title=Z('min_offline',S)}var n=' by onWebChat ';var o=n.replace("l=2&","");if(Se==1){o="";n=""}if(ee){if(R==1)image_name=Xt;else image_name=Yt}else{if(R==1)image_name=Gt;else image_name=Jt}let e='';let t='';if(L==1){e=' ';t=' '}var i=''+Z('max_msg',S)+''+'
';if(Z('max_msg',S)==''){i=''}tempSaveSt='';if(!Qt())tempSaveSt=' ';var a="";var l="";var s="";if(N==1){var r="";var d="";if(F==1){r=' ';d='padding-left: 0px;text-indent:-17px;'}a=''+r+''+Z('consent_text',S)+'
';l=a.replace(/_offline/g,'_prechat');s=a.replace(/_offline/g,'_inchat_modal')}if(ee!=1||We==1){if(Qt()!=8){document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',''+' '+''+''+''+'
'+'
'+'
'+'
'+'
'+e+i+'
'+'
'+' '+' '+' '+'
'+'
'+'
×
File size larger than 50 Mb '+'
'+'
'+'
'+'
'+'
'+'
'+'
')}}openonwcDepartMenu=function(){Q.emit('askdepartments',A);widthtemp=document.getElementById("departments").offsetWidth;document.getElementById("onwcdepartmenu").style.setProperty("width",widthtemp+"px","important")};onwcmenuliclick=function(e){document.getElementById("departments").value=e.children[0].innerText;Qe=e.children[1].innerText.trim();Q.emit('visitorselectdepartment',A,Qe);setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #CCC","important")},0)};consentTextClicked=function(){if(F==1){var e=document.getElementById("onwc_consent_checkbox_inchat_modal");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}e=document.getElementById("onwc_consent_checkbox_offline");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}e=document.getElementById("onwc_consent_checkbox_prechat");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}}};toggleModal=function(e,t){document.getElementById(e).classList.toggle("show-onwcmodal",t)};function c(e){if(e.target.id==='onwcEndChatModal'||e.target.id==='onwcFileModal'||e.target.id==='onwcFileModalType'||e.target.id==='onwcEmailModal'||e.target.id==='onwcEmailOkModal'){toggleModal(e.target.id,false)}if(e.target.id!='departments'&&e.target.id!='onweb_menu_minimize_btn_id'){if(document.getElementById("onwcdepartmenu"))document.getElementById("onwcdepartmenu").style.setProperty("display","none","important")}}if(document.getElementById('onwbchat_window'))document.getElementById('onwbchat_window').addEventListener("click",c);checkPhone=function(e){e.value=e.value.replace(/[^\d -]/g,'')};emailTranscript=function(){if(V('chattext')!=""&&ut<6){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEmailModal");document.getElementById("onwcemailtrans").focus()}};checkMobileChatHeight=function(){try{if(ee){var e=document.getElementById("onwbchat_window").clientHeight;document.getElementById("chat_area_id").style.setProperty("height",e-98-Oe-4+14+"px");yn(document.getElementById("chat_area_id"),2,1)}}catch(e){}};clickConsentModalOk=function(){var e=-1;if(document.getElementById("onwc_consent_checkbox_inchat_modal"))e=document.getElementById("onwc_consent_checkbox_inchat_modal").value;if(F==1&&document.getElementById("onwc_consent_checkbox_inchat_modal").checked==false)document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848");else if(F==1&&document.getElementById("onwc_consent_checkbox_inchat_modal").checked==true){z("consentvalue",2,93);toggleModal('onwcConsentModal',false);Q.emit('setconsentsettings',K,e,N,F)}else if(N==1&&F!=1){z("consentvalue",1,93);toggleModal('onwcConsentModal',false);Q.emit('setconsentsettings',K,e,N,F)}};if(document.getElementById("onwc_consent_checkbox_inchat_modal"))document.getElementById("onwc_consent_checkbox_inchat_modal").addEventListener('change',function(){if(document.getElementById("onwc_consent_checkbox_inchat_modal").checked==true){document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}});endChatClicked=function(){if(ue==true){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEndChatModal",true)}};endChatFunction=function(){if(V('chattext')!=""){$('chattext','');disableMenuItem("onwebchat-print-li");disableMenuItem("onwebchat-savetofile-li");disableMenuItem("onwebchat-email-li");disableMenuItem('onwebchat-endchat-li');ue=false;let n=document.getElementById('chat_area_id');let o=n.childNodes;for(let t=o.length-1;t>=0;t--){let e=o[t];if(!(e.tagName.toUpperCase()==='IMG'&&e.id==='operatorImage')){n.removeChild(e)}}document.getElementById('chat_area_id').insertAdjacentHTML('beforeend',i);mn();Q.emit('close_dialog_visitor');$("servingOpImage","");W="";if(L==1){W="0_support_man.png"}if(document.getElementById("departments")){document.getElementById("departments").value="";document.getElementById("departments").placeholder=Z('departments',S)}document.getElementById('onprechattext').value='';Qe=0}toggleModal('onwcEndChatModal',false);if(we==1&&U('inChatC')==1&&_e==0){toggleModal("onwcRatingChatModal",true)}_e=0;$("isRated",0);$('hasTriggeredNoReply',0);z('hasTriggeredNoReplyC',0,.166);z('inChatC',0,.166)};rate=function(e){this.rating=e;document.getElementById("sendStarButton").classList.remove("disabled");document.getElementById("sendStarButton").removeAttribute("disabled");for(D=1;D<=e;D++){var t="onwcstar"+D;document.getElementById(t).style.setProperty("color","#ffb900","important")}for(D=e+1;D<=5;D++){var t="onwcstar"+D;document.getElementById(t).style.setProperty("color","#aeaeae","important")}};sendRate=function(){Q.emit('ratechat',A,ve,this.rating);toggleModal('onwcRatingChatModal',false);if(U('inChatC')==0){_e=0;$("isRated",0)}else{_e=1;$("isRated",1)}};sendEmailTranscript=function(){if(!Kt(document.getElementById('onwcemailtrans').value)){document.getElementById("onwcemailtrans").focus();document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important")}else if(ut<6){var e=(new Date).getTimezoneOffset()/60*-1;Q.emit('onwcemailtranscript',K,A,document.getElementById("onwcemailtrans").value,e,gt);toggleModal("onwcEmailModal",false);var t=U('onwbchtemailsSent');ut++;if(t==""){z('onwbchtemailsSent',1,.0416)}else{z('onwbchtemailsSent',parseInt(t)+1,.0416)}}};if(document.getElementById("onwcemailtrans"))document.getElementById("onwcemailtrans").addEventListener('keyup',function(){if(Kt(document.getElementById('onwcemailtrans').value)){document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}});if(R==1){kt()}else{Bt()}if(Ie==1){document.getElementById("onwbchat_window").style.setProperty('display','none')}if(R==1){if(document.getElementById("onweb-offline-icon"))document.getElementById("onweb-offline-icon").style.setProperty('display','none')}else{if(document.getElementById("onweb-online-icon"))document.getElementById("onweb-online-icon").style.setProperty('display','none')}if(R==1&&ce!=""){document.getElementById("webchat_header").style.setProperty('background-color',ce,'important')}else if(M!=""){document.getElementById("webchat_header").style.setProperty('background-color',M,'important');document.getElementById("offlineform_btn").style.setProperty('background-color',M,'important')}if(ot==0){document.getElementById('onwc-settings-icon-id').remove()}if(at==0&&it==0&<==0&&st==0&&rt==0&&dt==0){if(document.getElementById('onwebchat-widget-settings-submenu-ul'))document.getElementById('onwebchat-widget-settings-submenu-ul').remove()}if(at==0){if(document.getElementById('onwebchat-email-li'))document.getElementById('onwebchat-email-li').remove()}if(it==0){if(document.getElementById('uploadfileid'))document.getElementById('uploadfileid').remove()}if(lt==0){if(document.getElementById('onwebchat-print-li'))document.getElementById('onwebchat-print-li').remove()}if(st==0){if(document.getElementById('onwebchat-savetofile-li'))document.getElementById('onwebchat-savetofile-li').remove()}if(rt==0){if(document.getElementById('onwebchat-volume-li-id'))document.getElementById('onwebchat-volume-li-id').remove()}if(dt==0){if(document.getElementById('onwebchat-endchat-li'))document.getElementById('onwebchat-endchat-li').remove()}validateFileSizeType=function(e,t){let n;let o;if(t==1){n=e.files[0].size/1024/1024;o=e.files[0].name}else{n=e.size/1024/1024;o=e.name}let i=o.split(".");i=i[i.length-1];i=i.toLowerCase();const a=["jpg","jpeg","png","gif","bmp","tiff","docx","xlsx","pdf","txt","rtf"];if(!a.includes(i)){toggleModal('onwcFileModalType');document.getElementById('onwbchtFileinput').value='';return false}else if(n>50){toggleModal('onwcFileModal');document.getElementById('onwbchtFileinput').value='';return false}else{In(''+Z('max_me',S)+' \t'+'[loading...]'+'
','me');if(t==1){f()}return true}};SaveToFile=function(e){try{if(V('chattext')!=""){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");var t=new Date;var n=t.getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate();var o='Chat transcript from '+vn(window.location.href)+' on '+n+' Chat transcript from '+vn(window.location.href)+' on '+n+'
Print '+document.getElementById(e).innerHTML+'
')}}catch(e){console.log(e)}};PrintElem2Printer=function(e){try{if(V('chattext')!=""){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");Popup2Print(document.getElementById(e).innerHTML)}}catch(e){console.log(e)}};Popup2Print=function(e){var t=window.open('','onWebChat live chat - Print ','height=700,width=920');t.document.write('Chat transcript from '+vn(window.location.href)+' ');t.document.write('');t.document.write(' ');t.document.write(e);t.document.write('');t.document.close();t.focus();t.print();t.close();return true};function m(e,t){var n=document.createElement('a');var o='download'in n;n.setAttribute('href','data:text/plain;charset=utf-8,'+encodeURIComponent(t));n.setAttribute('download',e);if(document.createEvent){var i=new MouseEvent("click",{view:window,bubbles:true,cancelable:true,clientX:0});n.dispatchEvent(i)}else{n.click()}}okButtonClicked=function(){Q.emit('chatWindowMax',0);rn()};uploadFilePressed=function(){if(document.getElementById("uploadfileid").style.opacity>.9){document.getElementById('onwbchtFileinput').click();if(Y==false&&G==false){on()}}};if(V('chattext')!=undefined&&V('chattext')!=""){enableMenuItem("onwebchat-print-li");enableMenuItem("onwebchat-savetofile-li");if(ut<6){enableMenuItem("onwebchat-email-li")}enableMenuItem('onwebchat-endchat-li');ue=true}var u=0;var p=document.getElementById('onwbchat_window');var g=document.getElementById('upload_img');p.addEventListener('dragenter',function(e){document.getElementById('upload_img_id').src="https://www.onwebchat.com/operator/assets/images/drop-file.png";u++;if(Te==true&&ot==1&&it==1&&Pe=='chat'){p.style.filter="brightness(55%)";g.style.display="block"}e.preventDefault()},false);p.addEventListener('dragleave',function(e){u--;if(u==0){p.style.filter="brightness(100%)";g.style.display="none"}e.preventDefault()},false);p.addEventListener('dragover',function(e){e.preventDefault()},false);p.addEventListener('drop',function(e){u=0;var t=e.dataTransfer;var n=t.files;p.style.filter="brightness(100%)";g.style.display="none";e.preventDefault();if(Te==true&&ot==1&&it==1&&Pe=='chat'){if(validateFileSizeType(n[0],0)){var o=new FormData;o.append('file',n[0]);o.append('siteid',A);sendFileToServer(o)}}},false);function f(){var e=new FormData(document.getElementById("onwbchtUploadForm"));if(ot==1&&it==1){sendFileToServer(e)}}function h(e,t,n,o){var i=document.getElementsByClassName("formVal");var a=new XMLHttpRequest;a.onreadystatechange=function(){if(a.readyState===4){if(a.status===200||a.status===0&&a.responseText!==''){o({url:e,status:200,body:a.responseText||''})}else{n({url:e,status:a.status,body:a.responseText||''})}}};a.open("post",e,true);a.send(t)}sendFileToServer=function(e){h(''+X+'//'+serverIP+'/chat_upload_file/url',e,function(e){console.log('Error sending file: '+e.status)},function(e){var t=document.querySelectorAll('img[src$="loading.gif"][class="onweb_uploadfile"]')[0];var n;var o=e.body;var i=o.substring(o.indexOf(":")+1);if(i.toLowerCase().endsWith(".png")||i.toLowerCase().endsWith(".jpg")||i.toLowerCase().endsWith(".jpeg")||i.toLowerCase().endsWith(".svg")||i.toLowerCase().endsWith(".gif")){Ce++;n=t.src.replace("chatimages/loading.gif","filesUpload/"+encodeURI(i));t.style.maxWidth="198px";t.style.maxHeight="110px";t.style.borderRadius="9px";t.style.overflow="auto";$('chattext',V('chattext').replace(' '," "));yn(document.getElementById("chat_area_id"),20,1);setTimeout(function(){yn(document.getElementById("chat_area_id"),20,1)},500);setTimeout(function(){yn(document.getElementById("chat_area_id"),20,1)},1e3);t.src=n;var a=document.createElement("a");a.innerHTML=t.outerHTML;a.setAttribute('href',X+"//"+serverIP+"/filesUpload/"+encodeURI(i));a.setAttribute('target','_blank');a.setAttribute('rel','noopener noreferrer');t.parentNode.insertBefore(a,t);t.remove()}else{n=t.src.replace("loading.gif","download-icon.png");var l=i.replace(/^.*[\\\/]/,'');t.src=n;var a=document.createElement("a");a.innerHTML=t.outerHTML;a.setAttribute('href',X+"//"+serverIP+"/filesUpload/"+encodeURI(i));a.setAttribute('target','_blank');a.setAttribute('rel','noopener noreferrer');t.parentNode.insertBefore(a,t);var s=t.parentNode;t.remove();var r=document.createElement("span");r.innerHTML=l;s.appendChild(r);$('chattext',V('chattext').replace(' ',""+l+" "))}k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=3244;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}let d=0;if(!Y){d=5400;if(Y==false&&G==false){obj.socketReconnect=1;on()}}setTimeout(function(){k=x();obj.durationInSeconds2=(k-oe)/1e3;obj.socketDurationInSeconds2=(k-B)/1e3;obj.isConnected2=Y;obj.tryToReconnect2=G;obj.firstConnection2=J;obj.timeoutTime_userconnect2=C;obj.sendChatDelay=d;obj.pos=3244;Q.emit('sendchat','{{fileuploaded:'+i+'}}',undefined,0,0,3244,ye,K,ft,obj);re("{{fileuploaded:"+i+"}}","visitor")},d)})};if(document.getElementById('onwc-settings-icon-id'))document.getElementById('onwc-settings-icon-id').onclick=function(e){e.stopPropagation();v(document.getElementById('onwebchat-emoticons-div'));b(document.getElementById('onwebchat-widget-settings-submenu-ul'))};document.getElementById('wb-smile-image').onclick=function(e){e.stopPropagation();b(document.getElementById('onwebchat-emoticons-div'));w(document.getElementById('onwebchat-widget-settings-submenu-ul'));if(Y==false&&G==false){on()}};var y;function b(e){if(e){if(e.classList.contains('onwc-show')){e.classList.remove('onwc-show');e.classList.add('onwc-hide');y=setTimeout(function(){e.style.setProperty("display","none")},400)}else{clearTimeout(y);e.style.setProperty("display","block");setTimeout(function(){e.classList.remove('onwc-hide');e.classList.add('onwc-show')},0)}}}function w(e){if(e&&e.classList.contains('onwc-show')){e.classList.remove('onwc-show');e.classList.add('onwc-hide');y=setTimeout(function(){e.style.setProperty("display","none")},400)}}function v(e){if(e){e.classList.remove('onwc-show');e.classList.add('onwc-hide');setTimeout(function(){e.style.setProperty("display","none")},400)}}document.addEventListener("click",function(e){if(document.getElementById("onwebchat-widget-settings-submenu-ul")&&document.getElementById("onwebchat-widget-settings-submenu-ul").classList.contains('onwc-show')=='1')b(document.getElementById('onwebchat-widget-settings-submenu-ul'));if(document.getElementById("onwebchat-emoticons-div").classList.contains('onwc-show')=='1')b(document.getElementById('onwebchat-emoticons-div'))});if(document.getElementById('onwebchat-volume-li-id')){document.getElementById('onwebchat-volume-li-id').onclick=function(e){if($t==true){$t=false;Rt("onwbchtSound",0);document.getElementById('onwebchat-volume-icon').innerHTML=fe}else{$t=true;Rt("onwbchtSound",1);document.getElementById('onwebchat-volume-icon').innerHTML=ge}}}if($t==false){document.getElementById('onwebchat-volume-icon').innerHTML=fe}if(document.getElementById("onwebchat-widget-settings-submenu-ul"))document.getElementById("onwebchat-widget-settings-submenu-ul").addEventListener("click",function(e){e.stopPropagation()});document.getElementById("onwebchat-emoticons-div").addEventListener("click",function(e){e.stopPropagation()});document.getElementById("webchat_header").style.setProperty("height","40px","important");document.getElementById("onwbchat_window").style.setProperty("height","40px","important");document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important");document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important");if(be==1||ee){if(ee)imageClass="onweb_chatimage_mobile";else imageClass="onweb_chatimage";var _=X+'//'+serverIP+'/chatWidgetImages/'+image_name;var I=document.getElementById('onwbchat_window');if(I){I.insertAdjacentHTML("afterend",'');if(O==0){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none")}}if(R==0&&Le==1){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none")}onweb_chatimage_loaded=function(){document.getElementById('onwbchat_window').insertAdjacentHTML('beforeend','
');var e=parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("left"));e=e+parseInt(document.getElementById('onweb_chatimage').clientWidth)-4;document.getElementById("onweb_chatimage_x").style.setProperty("left",e+"px");var t=parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("bottom"))+parseInt(document.getElementById('onweb_chatimage').clientHeight)-4;document.getElementById("onweb_chatimage_x").style.setProperty("bottom",t+"px");document.getElementById('onwbchat_window').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'};document.getElementById('onweb_chatimage_x').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'};document.getElementById('webchat_header').onmouseenter=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'};document.getElementById('onweb_chatimage_x').onclick=function(){document.getElementById("onweb_chatimage").style.setProperty("display","none");document.getElementById('onweb_chatimage_x').style.display="none";$('hideImage',1)}}}document.getElementById('offlineform_btn').onclick=function(){if(N==1&&F==1&&document.getElementById("onwc_consent_checkbox_offline").checked==false||Fe==1&&De==1&&!Kt(document.getElementById("onwebchatoffemail").value)||Ze==1&&ze==1&&document.getElementById("onwebchatofftel").value.length<4||He==1&&Ne==1&&document.getElementById("onwebchatoffname").value.length<2||document.getElementById("onwebchatemailtext").value.length<1){if(N==1&&F==1&&document.getElementById("onwc_consent_checkbox_offline").checked==false){document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#D04848","important")}if(document.getElementById("onwebchatemailtext").value.length<1){document.getElementById("onwebchatemailtext").focus();document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")}if(Ze==1&&ze==1&&document.getElementById("onwebchatofftel").value.length<4){document.getElementById("onwebchatofftel").focus();setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0);te()}if(Fe==1&&De==1&&!Kt(document.getElementById("onwebchatoffemail").value)){document.getElementById("onwebchatoffemail").focus();setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0);te()}if(He==1&&Ne==1&&document.getElementById("onwebchatoffname").value.length<2){document.getElementById("onwebchatoffname").focus();setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0);te()}return false}else{var e=-1;if(document.getElementById("onwc_consent_checkbox_offline"))e=document.getElementById("onwc_consent_checkbox_offline").value;var t=new FormData;t.append('clientip',pe);t.append('clientid',K);t.append('sid',A);t.append('name','');t.append('email','');t.append('text','');t.append('phone','');if(document.getElementById("onwebchatoffname"))t.append('name',document.getElementById("onwebchatoffname").value);if(document.getElementById("onwebchatoffemail"))t.append('email',document.getElementById("onwebchatoffemail").value);if(document.getElementById("onwebchatemailtext"))t.append('text',document.getElementById("onwebchatemailtext").value);if(document.getElementById("onwebchatofftel"))t.append('phone',document.getElementById("onwebchatofftel").value);t.append('conboxv',e);t.append('conuse',N);t.append('conboxshow',F);var n="";var o="";var i="";var a="";if(document.getElementById("onwebchatoffname"))o=document.getElementById("onwebchatoffname").value;if(document.getElementById("onwebchatoffemail"))n=document.getElementById("onwebchatoffemail").value;if(document.getElementById("onwebchatemailtext"))i=document.getElementById("onwebchatemailtext").value;if(document.getElementById("onwebchatofftel"))a=document.getElementById("onwebchatofftel").value;Q.emit('visitorSendOfflineEmail',K,pe,A,o,n,i,a,e,N,F,gt);document.getElementById('onwebchatform_div_id').style.display="none";document.getElementById('onweboffline_msg_id').innerHTML=Z('off_thank',S)+' ';Wt('onWebChat','Offline message sent','');return false}};document.getElementById('prechat_btn').onclick=function(){if(document.getElementById("onprechatname"))T=document.getElementById("onprechatname").value;if(document.getElementById("onprechatemail"))P=document.getElementById("onprechatemail").value;if(document.getElementById("onprechattel"))j=document.getElementById("onprechattel").value;if(T==undefined)T="";if(P==undefined)P="";if(j==undefined)j="";T=T.trim();P=P.trim();j=j.trim();if(N==1&&F==1&&document.getElementById("onwc_consent_checkbox_prechat").checked==false||$e==1&&Xe==1&&!Kt(P)||Ye==1&&Ge==1&&j.length<4||Ue==1&&Ve==1&&T.length<2||Ke==1&&Je==1&&Qe==0||document.getElementById('onprechattext').value.trim().length<1){if(N==1&&F==1&&document.getElementById("onwc_consent_checkbox_prechat").checked==false){document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#D04848","important")}if(document.getElementById('onprechattext').value.trim().length<1){document.getElementById('onprechattext').focus();document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")}if(Ye==1&&Ge==1&&j.length<4){document.getElementById("onprechattel").focus();setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0);te()}if($e==1&&Xe==1&&!Kt(document.getElementById('onprechatemail').value)){document.getElementById("onprechatemail").focus();setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0);te()}if(Ue==1&&Ve==1&&T.length<2){document.getElementById("onprechatname").focus();setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0);te()}if(Ke==1&&Je==1&&Qe==0){setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #D04848","important")},0);te()}return false}else{var t=document.getElementById("onprechattext").value;Q.emit('setclientdetails',K,A,T,P,j,"");var n=-1;if(document.getElementById("onwc_consent_checkbox_prechat"))n=document.getElementById("onwc_consent_checkbox_prechat").value;if(n==true){z("consentvalue",2,93)}else if(N==1){z("consentvalue",1,93)}Q.emit('setconsentsettings',K,n,N,F);document.getElementById('chat_area_id').style.display="block";document.getElementById('onwc_chat_message_div').style.display="block";document.getElementById('chat_info_id').style.display="block";document.getElementById('prechat_form').style.display="none";document.getElementById('div_chat_max_title_span').textContent=Z('max_title',S);var o="";o=" me-bubble";In(''+Z('max_me',S)+' \t'+St(t)+'
','me');q="me";k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=3850;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}let e=0;if(!Y){e=5400;if(Y==false&&G==false){obj.socketReconnect=1;on()}}setTimeout(function(){k=x();obj.durationInSeconds2=(k-oe)/1e3;obj.socketDurationInSeconds2=(k-B)/1e3;obj.isConnected2=Y;obj.tryToReconnect2=G;obj.firstConnection2=J;obj.timeoutTime_userconnect2=C;obj.sendChatDelay=e;setTimeout(function(){Q.emit('sendchat',t,undefined,0,Qe,3850,ye,K,ft,obj)},400)},e);yt();Pe="chat";ln();return false}};if(document.getElementById('onwc_consent_checkbox_offline'))document.getElementById('onwc_consent_checkbox_offline').addEventListener('change',function(){if(document.getElementById("onwc_consent_checkbox_offline").checked==true){document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#545454","important")}});if(document.getElementById('onwc_consent_checkbox_prechat'))document.getElementById('onwc_consent_checkbox_prechat').onchange=function(){if(document.getElementById("onwc_consent_checkbox_prechat").checked==true){document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#545454","important")}};if(document.getElementById('onwebchatoffemail'))document.getElementById('onwebchatoffemail').onkeyup=function(){if(Kt(document.getElementById('onwebchatoffemail').value)){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onwebchatemailtext'))document.getElementById('onwebchatemailtext').onkeyup=function(){if(document.getElementById('onwebchatemailtext').value.length>=1){document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onwebchatofftel'))document.getElementById('onwebchatofftel').onkeyup=function(){checkPhone(document.getElementById('onwebchatofftel'));if(document.getElementById('onwebchatofftel').value.length>=4){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onwebchatoffname'))document.getElementById('onwebchatoffname').onkeyup=function(){if(document.getElementById('onwebchatoffname').value.length>=2){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onprechatemail'))document.getElementById('onprechatemail').onkeyup=function(){if(Kt(document.getElementById('onprechatemail').value)){document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important");te()}};document.getElementById('onprechattext').onkeyup=function(){if(document.getElementById('onprechattext').value.length>=1){document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onprechattel'))document.getElementById('onprechattel').onkeyup=function(){checkPhone(document.getElementById('onprechattel'));if(document.getElementById('onprechattel').value.length>=4){document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important");te()}};if(document.getElementById('onprechatname'))document.getElementById('onprechatname').onkeyup=function(){if(document.getElementById('onprechatname').value.length>=2){document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important");te()}};loadEmoticons=function(){if(document.getElementById('onwebchat-emoticons-div').innerHTML==""){document.getElementById('onwebchat-emoticons-div').insertAdjacentHTML('beforeend','😉 😀 🙂 😂 😃 😁 '+'😅 😆 😎 😊 😇 😋 '+'😌 🤔 😍 😘 😗 😶 '+'😚 😜 😝 😛 😐 😒 '+'😳 😲 😵 😧 😞 😟 '+'😠 😡 😈 😔 😕 😓 '+'😦 😣 😖 😩 😤 😱 '+'😨 😰 😢 😭 😷 😴 '+'👍 👎 👏 🤝 💓 🙋 ');var e=document.querySelector("#onwebchat-emoticons-div").querySelectorAll("span");for(var t=0;t2)e="";document.getElementById("onwbtxtarea").value+=" "+e+" ";document.getElementById("onwbtxtarea").focus();checkText2ShowSendButton();if(document.getElementById("onwebchat-emoticons-div").classList.contains('onwc-show')=='1'){b(document.getElementById('onwebchat-emoticons-div'))}})}}};MaximizeWindowInit=function(){if(!Q){_n()}if(Y==false&&G==false){on()}Q.emit('chatWindowMax',1);an();document.getElementById("onwbtxtarea").focus();return false};document.getElementById("webchat_header").addEventListener("click",function(){if(ie==0){if(V('maxChat')!=1){ae();MaximizeWindowInit();Wt('onWebChat','Chat window opened','')}else{ae();Q.emit('chatWindowMax',0);rn()}}else{ie=0}});if(document.getElementById("onweb_chatimage")){document.getElementById("onweb_chatimage").addEventListener("click",function(){MaximizeWindowInit();ae();Wt('onWebChat','Chat window opened','');return false})}text=V('chattext');if(text)Ce=(text.match(/filesUpload/g)||[]).length;if(text!=null&&text!=''){if(document.getElementById("onwc_welcome_message")){document.getElementById("onwc_welcome_message").style.setProperty("display","none","important");setTimeout(function(){document.getElementById("onwc_welcome_message").style.setProperty("display","none","important")},0)}document.getElementById('chat_area_id').insertAdjacentHTML('beforeend',text);setTimeout(function(){document.getElementById("chat_area_id").scrollTop=999999999},0);setTimeout(function(){document.getElementById("chat_area_id").scrollTop=999999999},10);setTimeout(function(){document.getElementById("chat_area_id").scrollTop=999999999},120)}if(qe<340){var E=document.getElementsByClassName('operatorImageSmallClass');[].forEach.call(E,function(e){e.style.transform="scale(0.85)";e.style.marginLeft="3px"})}if(ee){document.getElementById("onwbchat_window").style.setProperty("height","100%","important");document.getElementById("onwbchat_window").style.setProperty("max-height","100%","important");document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important");document.getElementById("onwbchat_window").style.setProperty("width","100%","important");if(Ae=="left"){setTimeout(function(){document.getElementById("onwbchat_window").style.setProperty("left","0px","important")},10)}else{document.getElementById("onwbchat_window").style.setProperty("right","0px","important")}document.getElementById('wb-send-image').style.setProperty("transform","scale(1.2)","important");document.getElementById('wb-send-image').style.setProperty("right","16px","important");document.getElementById('wb-send-image').style.setProperty("top","27px","important");document.getElementById('wb-smile-image').style.setProperty("display","none","important");checkMobileChatHeight();document.getElementById('onweb_minimize_btn_icon_id').style.setProperty("transform","scale(1.2) rotate(45deg)","important");document.getElementById("onweb_chatimage_div").style.setProperty("right","0");document.getElementById("onweb_chatimage_div").style.setProperty("left","initial")}}document.getElementById('chat_area_id').addEventListener('scroll',sn);sn();document.getElementById('scrollToBottomBtn').addEventListener('click',()=>{yn(document.getElementById("chat_area_id"),50,1)})}var wn=At('onwbchttimesVisited');if(wn==''||wn==undefined||wn=='NaN'){wn=0;Rt("onwbchttimesVisited",1)}function vn(e){var t;if(e==null)return null;if(e.indexOf("://")>-1){t=e.split('/')[2]}else{t=e.split('/')[0]}t=t.split(':')[0];t=t.trim();if(t.startsWith("www.")){t=t.slice(4)}return t}function _n(){var e={query:{server:Dt},reconnectionAttempts:40};if(!y){Q=io.connect('https://'+serverIP+Ft,e)}else{Q=io.connect('http://'+serverIP+Ft,e)}Q.on('disconnect',function(){Y=false;Et()});Q.on('error',function(e){});Q.on('connect_error',function(e){});Q.on('connect_timeout',function(){});Q.on('reconnect',function(){});Q.on('reconnecting',function(e){});if(Qt()!=8){Ut=setTimeout(function(){Q.io.disconnect();rn()},zt)}Q.on('connect',function(){Y=true;G=false;xt();ye++;B=x();if(ye>15){Q.io.disconnect();Q.disconnect();Q=null}var e=document.referrer;C=0;if(!J&&(V('chattext')==null||V('chattext')=='')){}setTimeout(function(){Q.emit('userconnect',K,T,P,j,E,pt,gt,screen.width,je,pn,gn,wn,A,pe,e,At('onwbchtlastvisit'),fn,ee,h,J,R,N,F)},C);J=false});Q.on('onwcemailtranscript_ok',function(){toggleModal('onwcEmailOkModal')});Q.on('addvisited1',function(e){wn++;Rt("onwbchttimesVisited",wn);Rt("onwbchtlastvisit",e)});Q.on('setCookie',function(e,t){if(e=="onwbchtclientid"){if(At('onwbchtclientid')!=''&&At('onwbchtclientid')!=null){if(At('onwbchtclientid')!=t){deleteAllCookiesAndStorage();$('chattext','');var n=document.querySelectorAll('#chat_area_id p');n.forEach(function(e){e.remove()});document.getElementById('onwc_welcome_message').style.display="block"}}K=t}Rt(e,t)});Q.on('chatWindowMax',function(e){if(e==1)an();else if(e==0)rn()});Q.on('updateagents',function(e){se(e)});Q.on('send_dialogid',function(e){ve=e});Q.on('newChatEvent',function(e){Wt('onWebChat','Chat started','by '+e)});Q.on('askforrating',function(e){ve=e;toggleModal("onwcRatingChatModal",true)});Q.on('updateclientdetails',function(e,t,n,o){if(e!=''&&isNaN(e)){T=e}if(t!=''){P=t}if(n!=''){j=n}if(o!=''){E=o}});Q.on('senddepartments',function(e){document.getElementById("onwcdepartmenu").style.setProperty("display","grid","important");e=JSON.parse(e);onwcdepartmenu=document.getElementById("onwcdepartmenu");onwcdepartmenu.innerHTML="";if(onwcdepartmenu.childElementCount==0){for(var t=0;t0)&&h==0){if(O!=0)mn()}else{dn()}if(V('chattext').endsWith(Z('max_gone',S)+"")&&R==1&&H!=0){var i=document.getElementById('chat_area_id').lastChild;document.getElementById('chat_area_id').removeChild(i);$('chattext',V('chattext').substring(0,V('chattext').lastIndexOf(''+Z('max_gone',S)+'
')));kt()}if(R==1&&H!=0){kt()}if(ke==0&R!=1&&H==0&&V('chattext').length>0){if(!V('chattext').endsWith(Z('max_gone',S)+"")){var a=1e3;if(b==1){a=3e3}setTimeout(function(){if(R!=1&&H==0&&!V('chattext').endsWith(Z('max_gone',S)+"")){In(''+Z('max_gone',S)+'
');Bt()}},a)}}}});Q.on('setIsBlocked',function(e){if(e==undefined){e=0}h=e;Rt("onwbchtblocked",e);if(h==1){dn()}else if(h==0){if(R==1||Le!=1){if(O!=0)mn()}}});Q.on('visitordeleted',function(){$('chattext','');var e=document.querySelectorAll('#chat_area_id p');e.forEach(function(e){e.remove()});cn(document.getElementById("onwbchat_window"));deleteAllCookiesAndStorage();Q.disconnect()});deleteAllCookiesAndStorage=function(){Ot("onwbchtclientid");Ot("inChatC");Ot("onwbchtSound");Ot("onwbchtblocked");Ot("onwbchtexpress.sid");Ot("onwbchtlastvisit");Ot("onwbchtsessionrandom");Ot("onwbchttimesVisited");try{localStorage.clear();sessionStorage.clear()}catch(e){}};Q.on('servercommand',function(e,t,n,o,i,a){if(n==null||n=="")n="operator";if(e=='close_dialog'){if(U('inChatC')==1){if(Z('max_closed',S)!="")In(''+Z('max_closed',S).replace('{{operator}}',n)+'
')}if(we==1&&U('inChatC')==1&&_e==0){toggleModal("onwcRatingChatModal",true)}z('inChatC',0,.166);$("servingOpImage","");W="";if(L==1){W="0_support_man.png"}$('hasTriggeredNoReply',0);z('hasTriggeredNoReplyC',0,.166);disableMenuItem('onwebchat-endchat-li');ue=false;_e=0;$('isRated',0);ve=a}else if(e=='serve_dialog'){if(o=="androidapp"){b=1}else{b=0}q="served_by";if(Z('max_served',S)!=""){if(!V('hasWrSeByTr')){In(''+Z('max_served',S).replace('{{operator}}',n)+'
')}}if(i==""||!i){i="0_support_man.png"}W=i;$("servingOpImage",i);if(document.getElementById("operatorImage"))document.getElementById("operatorImage").setAttribute('src',X+'//'+serverIP+'/filesUpload/operatorImages/'+i)}else if(e=='no_agent'){In('No agent is online now, but we will reply to you asap.
')}});Q.on('disablesendbutton',function(){Et('aibot')});Q.on('updatechatvisitor',function(e,t){var n="";n=" me-bubble ";if(q!='me'){n=n+" me-first "}var o="";if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}In(''+Z('max_me',S)+' \t'+St(e)+'
',"me");q="me"});Q.on('updatechat',function(e,t,n,o){if(o==null||o=="")o="operator";if(o=='aibot'){ke=1;$("chatWithBot",1);W=ct;document.getElementById('onwbtxtarea').maxLength=xe;if(document.getElementById("operatorImage"))document.getElementById("operatorImage").setAttribute('src',X+'//'+serverIP+'/filesUpload/operatorImages/'+ct);$("servingOpImage",ct)}else{ke=0;$("chatWithBot",0)}if(n=='command:typing...'){if(document.getElementById('agenttypingimage'))document.getElementById('agenttypingimage').remove();let e="";if(L==1){e=" big-margin-left "}if(V('chattext')!=null&&V('chattext')!=''){document.getElementById('chat_area_id').insertAdjacentHTML("beforeend","")}setTimeout(function(){document.getElementById("chat_area_id").scrollTop=9999999},0)}else if(n=='command:notyping...'){try{if(document.getElementById('agenttypingimage')!=null)document.getElementById('agenttypingimage').style.visibility='hidden'}catch(e){}}else if(O==0){}else{xt();Lt();clearTimeout(I);kt();if(document.getElementById('agenttypingimage'))document.getElementById('agenttypingimage').remove();var i="";var a='';var l="";i=" agent-bubble ";if(q!='agent'){i=i+" agent-first ";if(L==1){a=' '}}if(L==1){l=" big-margin-left "}re(n,"operator");z('inChatC',1,.166);var s="";if(isRTLlanguage(n.substr(0,1))==true){s=' style="direction: rtl;text-align:right;" '}In(''+a+''+Z('max_agent',S).replace('{{operator}}',o)+' '+St(n)+'
');q="agent";if(e!=""&&V('maxChat')!=1){MaximizeWindowInit()}if(R!=1){if(V('chattext')!=null&&V('chattext')!=''){}mn()}if(document.getElementById('prechat_form').style.display=='block'){mn()}}});removeLoadingImage=function(e){if(document.getElementById(e))document.getElementById(e).style.background="none";yn(document.getElementById('chat_area_id'),10,10)};var t=0;var n=0;var o=0;var l="";function i(){if(ee){document.getElementById("onwbtxtarea").blur()}if(h==1){return}var n=document.getElementById('onwbtxtarea').value;document.getElementById('onwbtxtarea').value="";if(n.trim()!=""){var e="";e=" me-bubble";var o="";if(q!="me"){e=e+" me-first "}l=n;re(n,"visitor");n=n.replace(/\n/g,"{{newline}}");var i="";if(isRTLlanguage(n.substr(0,1))==true){i=' style="direction: rtl;text-align:right;" '}In(''+Z('max_me',S)+' \t'+St(n)+'
',"me");q="me";yt();k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.tryToReconnect=G;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.pos=5183;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}let t=300;if(!Y){t=900;if(Y==false&&G==false){obj.socketReconnect=1;on()}}if(Nt('sessionStorage')&&V('mustSendTriggerText')||!Nt('sessionStorage')&&_==true){const a=V('triggerText');setTimeout(function(){Q.emit('sendchat',n,a,0,0,5183,ye,K,ft,obj)},t);$('mustSendTriggerText',false);_=false;qt('triggerText')}else{setTimeout(function(){k=x();obj.durationInSeconds2=(k-oe)/1e3;obj.socketDurationInSeconds2=(k-B)/1e3;obj.isConnected2=Y;obj.tryToReconnect2=G;obj.firstConnection2=J;obj.timeoutTime_userconnect2=C;obj.sendChatDelay=t;obj.pos=5191;let e=300;if(!Y){e=5300}setTimeout(function(){k=x();obj.durationInSeconds3=(k-oe)/1e3;obj.socketDurationInSeconds3=(k-B)/1e3;obj.isConnected3=Y;obj.tryToReconnect3=G;obj.firstConnection3=J;obj.timeoutTime_userconnect3=C;obj.sendChatDelay2=e;obj.pos=5191;Q.emit('sendchat',n,undefined,0,0,5191,ye,K,ft,obj)},e)},t)}}t=0}function a(){var e=document.getElementById('onwbtxtarea').value;if(e.trim()!=""&&h==0){k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=5217;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}Q.emit('sendchat',e,undefined,1,0,5217,ye,K,ft,obj)}}document.getElementById("onwc_chat_message_div").addEventListener("paste",function(e){if(Y==false&&G==false){on()}setTimeout(function(){checkText2ShowSendButton()},0)});document.getElementById("onwc_chat_message_div").addEventListener("keydown",function(e){if(e.key=="Enter"&&!e.shiftKey){e.preventDefault();if(!Be){i();clearTimeout(o);o=0}}else{if(me!=1&&V('hasStartedWriting')!=1){le();$('hasStartedWriting',1)}me=1;if(Y==false&&G==false){on()}if(t==0&&h==0){if(ke!=1){k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=5265;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}Q.emit('sendchat','command:typing...',undefined,0,0,5265,ye,K,ft,obj)}t=1}let e=200;if(Me=='free'){e=1500}if(1==1){if(o==0){o=setTimeout(function(){a();o=0},e)}}clearTimeout(n);n=setTimeout(function(){t=0;clearTimeout(o);if(ke!=1){k=x();obj={};obj.vesrion=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=H;obj.agentOnline=R;obj.durationInSeconds=(k-oe)/1e3;obj.socketDurationInSeconds=(k-B)/1e3;obj.isConnected=Y;obj.firstConnection=J;obj.timeoutTime_userconnect=C;obj.tryToReconnect=G;obj.pos=5281;if(V('chattext')){obj.chattext=V('chattext').substring(0,20)}Q.emit('sendchat','command:notyping...',undefined,0,0,5281,ye,K,ft,obj)}},1800)}});document.getElementById("wb-send-image").addEventListener("click",function(e){i();if(!ee)document.getElementById("onwbtxtarea").focus();checkText2ShowSendButton()});isRTLlanguage=function(e){var t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/;result=t.test(e);return result};function s(){if(isRTLlanguage(Z('max_placeholder',S).trim().substring(0,2))){r("rtl","right")}else{r("","left")}}s();document.getElementById("onwc_chat_message_div").addEventListener("keyup",function(e){if(e.key=='ArrowUp'&&document.getElementById('onwbtxtarea').value==''){document.getElementById('onwbtxtarea').value=l}if(document.getElementById('onwbtxtarea').value.trim().substring(0,2)!=""){if(isRTLlanguage(document.getElementById('onwbtxtarea').value.trim().substring(0,2))){r("rtl","right")}else{r("","left")}}else if(document.getElementById('onwbtxtarea').value==""){s()}if(N==1&&U('consentvalue')!=1&&U('consentvalue')!=2){toggleModal("onwcConsentModal",true)}checkText2ShowSendButton()});checkText2ShowSendButton=function(){if(document.getElementById('onwbtxtarea').value==""){document.getElementById("wb-send-image").style.visibility="hidden"}else{document.getElementById("wb-send-image").style.visibility="visible"}};checkText2ShowSendButton();function r(e,t){document.getElementById('onwbtxtarea').style.setProperty("direction",e,"important");document.getElementById('onwbtxtarea').style.setProperty("text-align",t,"important")}document.getElementById('onwebchatemailtext').addEventListener("keyup",function(e){if(isRTLlanguage(document.getElementById('onwebchatemailtext').value.substring(0,2))){document.getElementById("onwebchatemailtext").style.setProperty("direction","rtl","important");document.getElementById("onwebchatemailtext").style.setProperty("text-align","right","important")}else{document.getElementById("onwebchatemailtext").style.setProperty("direction","","important");document.getElementById("onwebchatemailtext").style.setProperty("text-align","left","important")}});document.getElementById('onprechattext').addEventListener("keyup",function(e){if(isRTLlanguage(document.getElementById("onprechattext").value.substring(0,2))){document.getElementById("onprechattext").style.setProperty("direction","rtl","important");document.getElementById("onprechattext").style.setProperty("text-align","right","important")}else{document.getElementById("onprechattext").style.setProperty("direction","","important");document.getElementById("onprechattext").style.setProperty("text-align","left","important")}});var c=0;var m,u;var d=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('width'));function p(){window.removeEventListener('mousemove',f,true)}function g(e){var t;if(e.target)t=e.target;else if(e.srcElement)t=e.srcElement;if(t.id!="onweb_minimize_btn_icon_id"){if(V('maxChat')==1){c=1;window.addEventListener('mousemove',f,true);document.getElementById("webchat_header").style.setProperty('cursor','move')}}}function f(e){var t=window.innerHeight;var n=Math.max(document.documentElement["clientWidth"],document.body["scrollWidth"],document.documentElement["scrollWidth"],document.body["offsetWidth"],document.documentElement["offsetWidth"]);var o=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('height'));var i=parseInt(document.getElementById("onwbchat_window").offsetWidth);var a=e.clientX,l=e.clientY;if(c==1){var s=document.body.scrollTop;var r=document.body.scrollLeft;divTop=document.getElementById('onwbchat_window').offsetTop-s;divLeft=document.getElementById('onwbchat_window').offsetLeft-r;m=a-divLeft;u=l-divTop}c=0;ie=1;var d=document.getElementById('onwbchat_window');d.style.position='absolute';v=l-u;if(l-u<0)v=0;if(l-u>t-o)v=t-o;d.style.top=v+'px';w=a-m;if(a-m<0)w=0;if(a-m>n-i)w=n-i;d.style.left=w+'px'}try{if(!ee){document.getElementById('webchat_header').addEventListener('mousedown',g,false)}document.getElementById('onweb_minimize_btn_icon_id').removeEventListener('mousedown',g);window.addEventListener('mouseup',p,false)}catch(e){}setTimeout(function(){de()},500)}function In(t,e,n){if(n&&V('maxChat')==1){n=false}if(e==undefined)e="";let o="onwcouter_agent";if(e=="me"){o="onwcouter_me"}if(document.getElementById("onwc_welcome_message"))document.getElementById('onwc_welcome_message').style.display="none";if(document.getElementById("triangle_down"))document.getElementById("triangle_down").style.setProperty("display","none");t=kn(t);let i=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;()]*[-A-Z0-9+&@#\/%=~_|()])/gi;let a;if(!xn(t)){a=t.match(i)}else{}if(a!=null){a=a[0];var l=vn(a);if(l==vn(window.location.href)){t=t.replace(i,"$1 ")}else t=t.replace(i,"$1 ")}let s=/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;()]*[-A-Z0-9+&@#\/%=~_|()])/gi;let r;if(!xn(t)){r=t.match(s)}else{}if(r!=null){r=r[0];var l=vn(r);if(l==vn(window.location.href))t=t.replace(s,"$1$2 ");else t=t.replace(s,"$1$2 ")}var d=false;while(t.indexOf("{{fileuploaded:")>-1){var c=t.indexOf("{{fileuploaded:")+1;var m=t.indexOf("{{fileuploaded:")+15;var u=t.indexOf("}}",m);var p=t.substring(m,u);var g=p.replace(/^.*[\\\/]/,'');var f="";if(g.toLowerCase().endsWith(".png")||g.toLowerCase().endsWith(".jpg")||g.toLowerCase().endsWith(".jpeg")||g.toLowerCase().endsWith(".svg")||g.toLowerCase().endsWith(".gif")){d=true;Ce++;f=' '}else{f=' '+g+' '}t=t.replace("{{fileuploaded:"+p+"}}",f)}var h="😀😬😁😂😃😄😅😆😇😉😊🙂🙃😋😌😍😘😗😙😚😜😝😛🤑🤓😎🤗😏😶😐😒🙄🤔😳😞😟😠😡😔😕🙁😣😖😫😩😤😱😨😰😯😦😧😢😪😓😭😵😲🤐🤒🤕😴😮👍👎👏🤝💓🙏🙋😈😷";const y=h[Symbol.iterator]();var b;while(true){var w=y.next();if(w.done)break;b=w.value;t=t.replace(new RegExp(b,"g"),''+b+' ')}t=t.replace('[loading...]',' ');t=t.replace(/{{newline}}/g,' ');t=Bn(t);var v=new Date;var _=v.getHours();if(_<10)_="0"+_;var I=v.getMinutes();if(I<10)I="0"+I;if(n){let e=En(t);if(document.getElementById('outer_agent_bubble_span')){document.getElementById("outer_agent_bubble").style.setProperty("display","grid","important");document.getElementById('outer_agent_bubble_span').insertAdjacentHTML("beforeend",e)}$('outeragentbubbletext',e)}else{qt('outeragentbubbletext')}if(t.indexOf("server_messages")==-1){t=""}if(document.getElementById('agenttypingimage')!=null){document.getElementById('agenttypingimage').insertAdjacentHTML("beforebegin",t)}else{if(document.getElementById('chat_area_id'))document.getElementById('chat_area_id').insertAdjacentHTML("beforeend",t)}yn(document.getElementById("chat_area_id"),20,4);setTimeout(function(){yn(document.getElementById("chat_area_id"),20,1)},500);if(V('chattext')){$('chattext',V('chattext')+t)}else{$('chattext',t)}if(Qt()!=8){clearTimeout(Ut);Ut=setTimeout(function(){Q.io.disconnect();rn()},zt)}enableMenuItem("onwebchat-print-li");enableMenuItem("onwebchat-savetofile-li");if(ut<6){enableMenuItem("onwebchat-email-li")}enableMenuItem('onwebchat-endchat-li');ue=true;if(qe<340){var E=document.getElementsByClassName('operatorImageSmallClass');[].forEach.call(E,function(e){e.style.transform="scale(0.85)";e.style.marginLeft="3px"})}checkMobileChatHeight()}function En(e){var t=document.createElement('div');t.innerHTML=e;var n=t.querySelector('img');if(n){n.remove()}var o=t.querySelector('span.spanbold');if(o){o.remove()}var i=t.innerHTML;i=i.replace(/^]*>/,'').replace(/<\/p>$/,'');return i}function xn(e){var t=/]*href=["']/i;return t.test(e)}function Bn(e){const t=/\*\*(.*?)\*\*/g;return e.replace(t,'$1 ')}function kn(e){if(e){const t=/\[([^\]]+)\]\(((http:\/\/|https:\/\/|www\.)[^\)]+)\)/g;const n=e.replace(t,(e,t,n)=>{if(n.startsWith("www.")){n="https://"+n}let o=vn(n);if(o==vn(window.location.href)){return` ${t} `}else{return`${t} `}});return n}else return""}let Cn=900;let Tn=null;return{init:function(e){Vt=e},set:function(e,t){if(e=="name"&&h==0){T=t;try{Q.emit('setclientdetails',K,A,T,"","","")}catch(e){}}else if(e=="email"&&h==0){P=t;try{Q.emit('setclientdetails',K,A,"",P,"","")}catch(e){}}else if(e=="phone"&&h==0){j=t;try{Q.emit('setclientdetails',K,A,"","",j,"")}catch(e){}}else if(e=="notes"&&h==0){E=t;try{Q.emit('setclientdetails',K,A,"","","",E)}catch(e){}}else if(e=="pageUrl"&&h==0){try{Q.emit('setclientpageurl',K,A,"",t)}catch(e){}}else if(e=="pageTitle"&&h==0){try{Q.emit('setclientpageurl',K,A,t,"")}catch(e){}}else if(e=="max"&&h==0){if(t==1){an();document.getElementById("onwbtxtarea").focus()}else if(t==0){rn()}}else if(e=="show"&&h==0){if(t==1){O=1;mn()}else if(t==0){O=0;dn()}}else if(e=="online"&&h==0){}else if(e=="hideImage"&&h==0){if(t==1){}else if(t==0){}}else if(e=="language"&&h==0){S=t;if(S=='gr'||S=='el'){S='l1'}if(S=='en'){S='l2'}if(S!='l1'&&S!='l2'){S='l1'}}else if(e=="languageFile"&&h==0){r=""}else if(e=="onClick"&&h==0){ae=t}else if(e=="onMaximize"&&h==0){a=t}else if(e=="onMinimize"&&h==0){l=t}else if(e=="onTrigger"&&h==0){s=t}else if(e=="onStartWriting"&&h==0){le=t}else if(e=="onUpdateOperators"&&h==0){se=t}else if(e=="onNewMessage"&&h==0){re=t}else if(e=="onWebChatLoaded"&&h==0){de=t}else if(e=="onlineColor"&&h==0){ce=t;if(R==1&&ce!=""){document.getElementById("webchat_header").style.setProperty('background-color',ce,'important')}}else if(e=="offlineColor"&&h==0){M=t;if(R!=1&&M!=""){document.getElementById("webchat_header").style.setProperty('background-color',M,'important');document.getElementById("offlineform_btn").style.setProperty('background-color',M,'important')}}},get:function(e){if(e=="name"){return T}else if(e=="email"){return P}else if(e=="phone"){return j}else if(e=="notes"){return E}else if(e=="status"){if(R==1)return"online";else return"offline"}else return""}}}();