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 B=x();let k;let C;let oe=0;var o=false;var y=false;var b=0;var ie=0;var w,v;var _=false;var ae=0;var le=0;let T;var i={ min_offline: { l1: 'We are offline - Send us an email', l2: 'We are offline - Send us an email' }, min_online: { l1: 'We are online - chat with us!', l2: 'We are online - chat with us!' }, max_title: { l1: 'Chat with us!', l2:'Chat with us!'}, max_msg: { l1: 'We are online - chat with us!', l2:'We are online - chat with us!'}, max_served: { l1: 'You are served by {{operator}}', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Type your message here ...', l2: 'Type your message here ...' }, max_closed: { l1: '{{operator}} closed the chat', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Email us!', l2:'Email us!'}, off_msg:{l1: 'Sorry, we are not online at the moment. Leave a message and we will get back to you.', 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: 'All operators are offline', l2: 'All operators are offline'} , consent_text: { l1: 'I agree that my personal data, provided via chat, to be processed for using live chat service', 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: 'Please select a department', l2: 'Please select a department'} };var P="",j="",M="",I="";var se=function(){};var a=function(){};var l=function(){};var s=function(){};var E=function(){};var re=function(){};var de=function(){};var ce=function(){};var me="";var S="";var ue=0;var ge=false;var pe="18.191.72.220";var W="l2";var r="";var L="";if(U("servingOpImage")!=""&&U("servingOpImage")!=undefined){L=U("servingOpImage")}var fe="1";if(fe==1&&L==""){L="0_support_man.png"}const he='';const ye='';var O=-1;var be=0;var d=-1;var we=0;var ve="1";var _e="0";var Ie=0;var c=0;var Ee=0;var xe="1";if(U("isRated")!=""&&U("isRated")!=undefined){Ee=U("isRated")}let Be=2e3;const ke=400;let Ce=true;let Te=0;if(U("chatWithBot")!=""&&U("chatWithBot")!=undefined){Te=U("chatWithBot")}if(Te==1){Be=ke}if(xe==1&&ve==0){xe=0}var Pe=0;var je="";if(xe==1){V('hideImage',0)}var Me=true;var Se="";if(U('hideImage')!=0&&U('hideImage')!=1){V('hideImage',0)}var We=zt('onwbchtsessionrandom');if(We=='null'||We==null||We==''||We=='undefined'){We=Math.floor(Math.random()*1e6+1);Ut("onwbchtsessionrandom",We)}var m="0";var u="1";var A=56734;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:8px;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:18px !important;left:38px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:55px !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:8px !important;right:150px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:38px !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:8px;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:#BB8D09 !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:23% !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:#BB8D09 !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:#BB8D09 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}#offlineform_ok_btn{background-color:#BB8D09 !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:#BB8D09 !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:#BB8D09;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:#BB8D09;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:#BB8D09 !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_width_15px !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 Le="free";var Oe="0";var Ae="1";var q="undefined";var qe=0;var R;var g="420";var Re="60";var Ne="295";var He="left";var p="8";var f="#555555";var Fe="#ffffff";var De="1";var Ze="0";var ze="1";var Ue="1";var Ve="0";var $e="0";var Xe="1";var Ye="0";var Ge="1";var Je="1";var Qe="0";var Ke="0";var et="0";var tt=0;var nt="0";var N="0";var H="1";var ot="0";var it="us";var at=['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 lt="1";var st="0";var rt="0";var dt="0";var ct="0";var mt="1";var ut="1";let gt="";if(gt==''||gt==undefined){gt="chat-bot.png"}const pt="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&&ot==1&&at.indexOf(it)===-1){N=0}var h=zt('onwbchtblocked');if(h==''||h==null||h=='null'||h=='NaN'){h=0;Ut('onwbchtblocked',0)}var ft=z('onwbchtemailsSent');if(ft=="")ft=0;else ft=parseInt(ft);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",Re*.36-1.36);n=n.replace(new RegExp('__modern','g'),"");n=n.replace(/#textarea_width/g,Ne-71);n=n.replace(/#chat_width_15/g,Ne-15);n=n.replace(/#chat_width/g,Ne);n=n.replace(/#chatheader_width/g,Ne-40);n=n.replace("#chat_area_height",g-98-Re);n=n.replace("#onwebchatbox_header_height_+_4",Re-0+4);n=n.replace(/#onwebchatbox_header1_height/g,Re);n=n.replace(/#visitor_css_text_color/g,f);n=n.replace(/#agent_css_text_color/g,Fe);if(q==undefined||q=='undefined')q=0;var ht=document.title;var yt=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(U('maxChat')==1){setTimeout(function(){un()},20);setTimeout(function(){un()},200)}});let bt=Be/20*30;bt++;bt++;(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);In=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='';K=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))){K=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 g='';var p=[{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 p){var h=p[f];if(h.r.test(o)){g=h.s;break}}if(g==''){g=navigator.platform}var y=t;if(/Windows/.test(g)){y=/Windows (.*)/.exec(g)[1];g='Windows'}switch(g){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:K,os:g,osVersion:y,cookies:u,flashVersion:b}})(this);_n=jscd.os+' '+jscd.osVersion;vn=jscd.browser+' '+jscd.browserVersion;try{var wt=function(e,t){if(q==1){U('chattext session :'+U('chattext'));if(typeof sessionStorage!=="undefined"&&U('hasTriggered')!='1'&&z('hasTriggeredC')!=1&&z('inChatC')!=1&&U('chattext')==""){if(U('maxChat')==1&&m==1){}else{s();if(O!=0){Ht('onWebChat','Trigger activated','');V('hasTriggered',1);Z('hasTriggeredC',1,.166);V('mustSendTriggerText',true);_=true;V('triggerText',e);if(D('max_served',W)!=""&&t!=""&&t!="null"&&t!=null){te('

'+D('max_served',W).replace('{{operator}}',t)+'

');je="";V('hasWrSeByTr',true)}var n="";n=" agent-bubble ";var o="";var i='';var a="";if(je!='agent'){n=n+" agent-first ";if(fe==1){i=''}}if(fe==1){a=" big-margin-left "}if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}te('

'+i+''+D('max_agent',W).replace('{{operator}}',t)+' '+Nt(e).replace(/({{newline}})/gm,"
")+'

',"",true);je="agent";if(U('maxChat')!=1){}if(X){J.emit('setclientstatus','triggered')}}}}}};e;function vt(e){if(e==1){if(oe==1){clearTimeout(le);if(kt!=-1){le=setTimeout(_t,kt*1e3,xt,1)}}else{}}else if(e==2){clearTimeout(ae);if(Bt!=-1){ae=setTimeout(_t,Bt*1e3,Et,2)}}}function _t(e,t){if(t==1&&typeof sessionStorage!=="undefined"&&U('hasTriggeredNoReplyAnyone')!='1'&&z('hasTriggeredNoReplyAnyoneC')!=1||t==2&&typeof sessionStorage!=="undefined"&&U('hasTriggeredNoReplyAgent')!='1'&&z('hasTriggeredNoReplyAgentC')!=1){if(O!=0){Ht('onWebChat','Trigger (no reply) activated','');if(t==1){V('hasTriggeredNoReplyAnyone',1);Z('hasTriggeredNoReplyAnyoneC',1,.166)}else if(t==2){V('hasTriggeredNoReplyAgent',1);Z('hasTriggeredNoReplyAgentC',1,.166)}C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=624;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}J.emit('sendchat',"",e,0,0,624,we,Q,bt,obj);Ft();var n="";n=" agent-bubble ";var o="";var i=" big-margin-left ";if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}var a="";te('

'+D('max_agent',W).replace('{{operator}}',a)+' '+Nt(e).replace(/({{newline}})/gm,"
")+'

');if(X){}}}}}catch(e){console.log(e)}var It='[]';It=It.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var e=JSON.parse(It);let Et='';let xt='';let Bt=-1;let kt=-1;var Ct=0;var Tt=false;if(U('secOnSite')===undefined||U('secOnSite')=="NaN"){V('secOnSite',0)}let Pt;function jt(e){Ce=true;document.getElementById('wb-send-image').style.pointerEvents='none';document.getElementById("wb-send-image").style.opacity="0.42";if(e=='aibot'){Pt=setTimeout(function(){Mt()},1e4)}}function Mt(){clearTimeout(Pt);Ce=false;document.getElementById('wb-send-image').style.pointerEvents='auto';document.getElementById("wb-send-image").style.opacity="0.90"}function St(){if(U('chattext')&&U('chattext').endsWith(D('max_gone',W)+"

")){Me=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 Wt(){Me=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",D('max_placeholder',W));enableMenuItem("uploadfileid")}var Lt=e.length;if(K==1&&Ae==0){}else{for(var F=0;Fe[F].delay){xt=e[F].text;kt=e[F].delay}}else if(e[F].type=='2'){if(Bt==-1||Bt>e[F].delay){Et=e[F].text;Bt=e[F].delay}}continue}if(e[F].isFullSite==1&&e[F].whole==0){setTimeout(wt,e[F].delay*1e3,e[F].text,e[F].agentName)}else if(e[F].isFullSite==1&&e[F].whole==1){Tt=true;try{var Ot=e[F].delay-U('secOnSite')}catch(e){console.log(e)}if(Ot>=0){setTimeout(wt,Ot*1e3,e[F].text,e[F].agentName)}}else if(e[F].isFullSite==0){var At=e[F].urls;var qt=false;var Rt=At.length;for(var t=0;t-1){qt=true;break}}if(qt){setTimeout(wt,e[F].delay*1e3,e[F].text,e[F].agentName)}}}}if(Tt){setInterval(function(){if(U('secOnSite')===undefined||U('secOnSite')=='NaN')V('secOnSite',0);Ct++;V('secOnSite',parseInt(U('secOnSite'))+1)},1e3)}function Nt(e){return e.replace(/&/g,"&").replace(//g,">")}var Ht=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 Ft(){if(en){if(document.getElementById("onwebchataudio").innerHTML.trim()==""){document.getElementById("onwebchataudio").innerHTML=''}var e=document.getElementById("onwebchataudio");try{e.play()}catch(e){}}else{}}var D=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']}};if(K){V('maxChat',0)}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 Dt(e){Z(e,'',-1)}function z(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 sn(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}var rn=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'){Gt=true}var dn=false;if(cn()){dn=true}function cn(){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 mn(){Y=true;J.connect();if(ln()!=8){Qt=setTimeout(function(){J.io.disconnect();fn()},Jt)}}function un(){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(xe==1||K){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(qe!=1&&q==0&&(U('chattext')==null||U('chattext')=='')){Se="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=D('off_title',W);document.getElementById('prechat_form').style.display='none'}else{if(m==1&&U('chattext').length===0){Se="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=D('max_title',W)}else{Se="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=D('max_title',W)}}if(K){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",g+"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",Re+"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';V('maxChat',1);loadEmoticons();ee();gn();pn();return false}function gn(){if(Se=='chat'&&fe==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 pn(){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 fn(){if(xe==1||K){document.getElementById("onwbchat_window").style.setProperty("display","none")}if(document.getElementById('div_chat_max_title').style.display=="block"){l()}V('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","60px");document.getElementById('webchat_header').style.cursor='pointer';if(U('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(!K){document.getElementById("onwbchat_window").style.setProperty("top","initial");document.getElementById("onwbchat_window").style.setProperty("left","initial");document.getElementById("onwbchat_window").style.setProperty(He,p+"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 hn(){yn(document.getElementById("onwbchat_window"));yn(document.getElementById("onweb_chatimage"))}function yn(e){if(e){e.classList.remove('onwc-show');e.classList.add('onwc-hide');fadeTimout=setTimeout(function(){e.style.setProperty("display","none")},400)}}function bn(){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(xe==0&&K==false){document.getElementById("onwbchat_window").style.setProperty("display","block")}if(U('hideImage')==1){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","none")}if(U('hideImage')==0){if(document.getElementById("onweb_chatimage"))document.getElementById("onweb_chatimage").style.setProperty("display","inline")}if(U('maxChat')==1){un()}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=wn(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(U('outeragentbubbletext')&&U('outeragentbubbletext')!=''&&document.getElementById('outer_agent_bubble_span').textContent==""){if(document.getElementById("outer_agent_bubble_span")){document.getElementById('outer_agent_bubble_span').insertAdjacentHTML("beforeend",U('outeragentbubbletext'))}if(U('maxChat')!=1){t.style.setProperty("display","grid","important")}}}t.addEventListener('click',function(){un();document.getElementById("onwbtxtarea").focus()});document.getElementById("outer_agent_bubble_x").addEventListener('click',function(e){e.stopPropagation();t.style.setProperty("display","none","important");Zt('outeragentbubbletext')})},500)}function wn(e){if(e!=null){const t=e.getBoundingClientRect().top;const n=window.innerHeight;const o=n-t;return o}else return 0}var vn;var _n;var In;var K;if(K==1&&Ae==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(!Gt&&!dn){if(r!=""){rn($+'//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(W!='l1'&&W!='l2')W='l1';En()},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)+" ...")}En()})}}else{rn($+'//cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.min.js',En)}}},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 ee(){let t;if(document.getElementById("prechat_form").style.getPropertyValue('display')=='block'){t=document.getElementById('prechat_btn')}else{t=document.getElementById('offlineform_btn')}if(U('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(){ee()},5);if(!Gt){if(U('chattext')==null)V('chattext','');if((O==1||q==1||qe!=1||U('chattext')!=='')&&h==0&&O!==0){bn()}}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){Tn()}else{}if(K){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 xn(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(q==1){div_chat_min_title=D('min_online',W)}else{div_chat_min_title=D('min_offline',W)}var n=' by onWebChat';var o=n.replace("l=2&","");if(Oe==1){o="";n=""}if(K){if(q==1)image_name=tn;else image_name=nn}else{if(q==1)image_name=on;else image_name=an}let e='';let t='';if(fe==1){e='';t=''}var i='
'+D('max_msg',W)+''+'
';if(D('max_msg',W)==''){i=''}tempSaveSt='';if(!ln())tempSaveSt='
  • '+D('menu_save',W)+'
  • ';var a="";var l="";var s="";if(N==1){var r="";var d="";if(H==1){r='';d='padding-left: 0px;text-indent:-17px;'}a='';l=a.replace(/_offline/g,'_prechat');s=a.replace(/_offline/g,'_inchat_modal')}if(K!=1||Ae==1){if(ln()!=8){document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',''+'
    '+t+'
    '+'
    '+'
    '+'
    '+'
    '+'
    '+div_chat_min_title+''+'
    '+'
    '+'
    '+'
    '+''+'
    '+'
    '+'
    '+'
    '+'
    '+D('off_msg',W)+'
    '+'
    '+(De==0?'':'')+(ze==0?'':'')+(Ve==0?'':'')+''+a+''+o+'
    '+'
    '+'
    '+'
    '+'
    '+D('prechat_msg',W)+'
    '+'
    '+(Xe==0?'':'')+(Ge==0?'':'')+(Qe==0?'':'')+(nt==0?'':'
      ')+''+l+''+o+'
      '+'
      '+'
      '+'
      '+e+i+'
      '+''+'
      '+'
      '+'
      '+''+'
      '+''+''+''+''+'
      '+'
      '+''+'
        '+'
      • '+D('menu_send_file',W)+'
      • '+'
      • '+D('menu_email',W)+'
      • '+'
      • '+D('menu_print',W)+'
      • '+tempSaveSt+'
      • '+he+''+D('menu_sound',W)+'
      • '+'
      • '+D('menu_end_chat',W)+'
      • '+'
      '+n+''+'
      '+'
      ×
      File size larger than 50 Mb
      '+'
      ×
      File type not allowed
      '+'
      '+'
      '+D('email_text',W)+'
      '+'
      '+'
      ×
      '+D('email_sent',W)+'
      '+'
      '+D('end_chat_msg',W)+'
      '+'
      '+D('rating_msg',W)+'
      '+'
      '+'
      '+'
      '+'
      '+s+'
      '+'
      '+'
      ')}}openonwcDepartMenu=function(){J.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;tt=e.children[1].innerText.trim();J.emit('visitorselectdepartment',A,tt);setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #CCC","important")},0)};consentTextClicked=function(){if(H==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(U('chattext')!=""&&ft<6){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEmailModal");document.getElementById("onwcemailtrans").focus()}};checkMobileChatHeight=function(){try{if(K){var e=document.getElementById("onwbchat_window").clientHeight;document.getElementById("chat_area_id").style.setProperty("height",e-98-Re-4+14+"px");xn(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(H==1&&document.getElementById("onwc_consent_checkbox_inchat_modal").checked==false)document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848");else if(H==1&&document.getElementById("onwc_consent_checkbox_inchat_modal").checked==true){Z("consentvalue",2,93);toggleModal('onwcConsentModal',false);J.emit('setconsentsettings',Q,e,N,H)}else if(N==1&&H!=1){Z("consentvalue",1,93);toggleModal('onwcConsentModal',false);J.emit('setconsentsettings',Q,e,N,H)}};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(ge==true){document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEndChatModal",true)}};endChatFunction=function(){if(U('chattext')!=""){V('chattext','');disableMenuItem("onwebchat-print-li");disableMenuItem("onwebchat-savetofile-li");disableMenuItem("onwebchat-email-li");disableMenuItem('onwebchat-endchat-li');ge=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);bn();J.emit('close_dialog_visitor');V("servingOpImage","");L="";if(fe==1){L="0_support_man.png"}if(document.getElementById("departments")){document.getElementById("departments").value="";document.getElementById("departments").placeholder=D('departments',W)}document.getElementById('onprechattext').value='';tt=0}toggleModal('onwcEndChatModal',false);if(_e==1&&z('inChatC')==1&&Ee==0){toggleModal("onwcRatingChatModal",true)}Ee=0;V("isRated",0);clearTimeout(le);clearTimeout(ae);V('hasTriggeredNoReplyAgent',0);Z('hasTriggeredNoReplyAgentC',0,.166);V('hasTriggeredNoReplyAnyone',0);Z('hasTriggeredNoReplyAnyoneC',0,.166);oe=0;Z('inChatC',0,.166)};rate=function(e){this.rating=e;document.getElementById("sendStarButton").classList.remove("disabled");document.getElementById("sendStarButton").removeAttribute("disabled");for(F=1;F<=e;F++){var t="onwcstar"+F;document.getElementById(t).style.setProperty("color","#ffb900","important")}for(F=e+1;F<=5;F++){var t="onwcstar"+F;document.getElementById(t).style.setProperty("color","#aeaeae","important")}};sendRate=function(){J.emit('ratechat',A,Ie,this.rating);toggleModal('onwcRatingChatModal',false);if(z('inChatC')==0){Ee=0;V("isRated",0)}else{Ee=1;V("isRated",1)}};sendEmailTranscript=function(){if(!sn(document.getElementById('onwcemailtrans').value)){document.getElementById("onwcemailtrans").focus();document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important")}else if(ft<6){var e=(new Date).getTimezoneOffset()/60*-1;J.emit('onwcemailtranscript',Q,A,document.getElementById("onwcemailtrans").value,e,yt);toggleModal("onwcEmailModal",false);var t=z('onwbchtemailsSent');ft++;if(t==""){Z('onwbchtemailsSent',1,.0416)}else{Z('onwbchtemailsSent',parseInt(t)+1,.0416)}}};if(document.getElementById("onwcemailtrans"))document.getElementById("onwcemailtrans").addEventListener('keyup',function(){if(sn(document.getElementById('onwcemailtrans').value)){document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}});if(q==1){Wt()}else{St()}if(xe==1){document.getElementById("onwbchat_window").style.setProperty('display','none')}if(q==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(q==1&&me!=""){document.getElementById("webchat_header").style.setProperty('background-color',me,'important')}else if(S!=""){document.getElementById("webchat_header").style.setProperty('background-color',S,'important');document.getElementById("offlineform_btn").style.setProperty('background-color',S,'important')}if(lt==0){document.getElementById('onwc-settings-icon-id').remove()}if(rt==0&&st==0&&dt==0&&ct==0&&mt==0&&ut==0){if(document.getElementById('onwebchat-widget-settings-submenu-ul'))document.getElementById('onwebchat-widget-settings-submenu-ul').remove()}if(rt==0){if(document.getElementById('onwebchat-email-li'))document.getElementById('onwebchat-email-li').remove()}if(st==0){if(document.getElementById('uploadfileid'))document.getElementById('uploadfileid').remove()}if(dt==0){if(document.getElementById('onwebchat-print-li'))document.getElementById('onwebchat-print-li').remove()}if(ct==0){if(document.getElementById('onwebchat-savetofile-li'))document.getElementById('onwebchat-savetofile-li').remove()}if(mt==0){if(document.getElementById('onwebchat-volume-li-id'))document.getElementById('onwebchat-volume-li-id').remove()}if(ut==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{te('

      '+D('max_me',W)+'\t'+'[loading...]'+'

      ','me');if(t==1){f()}return true}};SaveToFile=function(e){try{if(U('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 '+Cn(window.location.href)+' on '+n+'

      Chat transcript from '+Cn(window.location.href)+' on '+n+'

      '+document.getElementById(e).innerHTML+'




      ')}}catch(e){console.log(e)}};PrintElem2Printer=function(e){try{if(U('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 '+Cn(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(){J.emit('chatWindowMax',0);fn()};uploadFilePressed=function(){if(document.getElementById("uploadfileid").style.opacity>.9){document.getElementById('onwbchtFileinput').click();if(X==false&&Y==false){mn()}}};if(U('chattext')!=undefined&&U('chattext')!=""){enableMenuItem("onwebchat-print-li");enableMenuItem("onwebchat-savetofile-li");if(ft<6){enableMenuItem("onwebchat-email-li")}enableMenuItem('onwebchat-endchat-li');ge=true}var u=0;var g=document.getElementById('onwbchat_window');var p=document.getElementById('upload_img');g.addEventListener('dragenter',function(e){document.getElementById('upload_img_id').src="https://www.onwebchat.com/operator/assets/images/drop-file.png";u++;if(Me==true&<==1&&st==1&&Se=='chat'){g.style.filter="brightness(55%)";p.style.display="block"}e.preventDefault()},false);g.addEventListener('dragleave',function(e){u--;if(u==0){g.style.filter="brightness(100%)";p.style.display="none"}e.preventDefault()},false);g.addEventListener('dragover',function(e){e.preventDefault()},false);g.addEventListener('drop',function(e){u=0;var t=e.dataTransfer;var n=t.files;g.style.filter="brightness(100%)";p.style.display="none";e.preventDefault();if(Me==true&<==1&&st==1&&Se=='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(lt==1&&st==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(''+$+'//'+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")){Pe++;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";V('chattext',U('chattext').replace('',""));xn(document.getElementById("chat_area_id"),20,1);setTimeout(function(){xn(document.getElementById("chat_area_id"),20,1)},500);setTimeout(function(){xn(document.getElementById("chat_area_id"),20,1)},1e3);t.src=n;var a=document.createElement("a");a.innerHTML=t.outerHTML;a.setAttribute('href',$+"//"+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',$+"//"+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);V('chattext',U('chattext').replace('',""+l+""))}C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=3244;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}let d=0;if(!X){d=5400;if(X==false&&Y==false){obj.socketReconnect=1;mn()}}setTimeout(function(){C=x();obj.durationInSeconds2=(C-B)/1e3;obj.socketDurationInSeconds2=(C-k)/1e3;obj.isConnected2=X;obj.tryToReconnect2=Y;obj.firstConnection2=G;obj.timeoutTime_userconnect2=T;obj.sendChatDelay=d;obj.pos=3244;J.emit('sendchat','{{fileuploaded:'+i+'}}',undefined,0,0,3244,we,Q,bt,obj);de("{{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(X==false&&Y==false){mn()}};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(en==true){en=false;Ut("onwbchtSound",0);document.getElementById('onwebchat-volume-icon').innerHTML=ye}else{en=true;Ut("onwbchtSound",1);document.getElementById('onwebchat-volume-icon').innerHTML=he}}}if(en==false){document.getElementById('onwebchat-volume-icon').innerHTML=ye}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(ve==1||K){if(K)imageClass="onweb_chatimage_mobile";else imageClass="onweb_chatimage";var _=$+'//'+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(q==0&&qe==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";V('hideImage',1)}}}document.getElementById('offlineform_btn').onclick=function(){if(N==1&&H==1&&document.getElementById("onwc_consent_checkbox_offline").checked==false||ze==1&&Ue==1&&!sn(document.getElementById("onwebchatoffemail").value)||Ve==1&&$e==1&&document.getElementById("onwebchatofftel").value.length<4||De==1&&Ze==1&&document.getElementById("onwebchatoffname").value.length<2||document.getElementById("onwebchatemailtext").value.length<1){if(N==1&&H==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(Ve==1&&$e==1&&document.getElementById("onwebchatofftel").value.length<4){document.getElementById("onwebchatofftel").focus();setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0);ee()}if(ze==1&&Ue==1&&!sn(document.getElementById("onwebchatoffemail").value)){document.getElementById("onwebchatoffemail").focus();setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0);ee()}if(De==1&&Ze==1&&document.getElementById("onwebchatoffname").value.length<2){document.getElementById("onwebchatoffname").focus();setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0);ee()}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',Q);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',H);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;J.emit('visitorSendOfflineEmail',Q,pe,A,o,n,i,a,e,N,H,yt);document.getElementById('onwebchatform_div_id').style.display="none";document.getElementById('onweboffline_msg_id').innerHTML=D('off_thank',W)+'';Ht('onWebChat','Offline message sent','');return false}};document.getElementById('prechat_btn').onclick=function(){if(document.getElementById("onprechatname"))P=document.getElementById("onprechatname").value;if(document.getElementById("onprechatemail"))j=document.getElementById("onprechatemail").value;if(document.getElementById("onprechattel"))M=document.getElementById("onprechattel").value;if(P==undefined)P="";if(j==undefined)j="";if(M==undefined)M="";P=P.trim();j=j.trim();M=M.trim();if(N==1&&H==1&&document.getElementById("onwc_consent_checkbox_prechat").checked==false||Ge==1&&Je==1&&!sn(j)||Qe==1&&Ke==1&&M.length<4||Xe==1&&Ye==1&&P.length<2||nt==1&&et==1&&tt==0||document.getElementById('onprechattext').value.trim().length<1){if(N==1&&H==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(Qe==1&&Ke==1&&M.length<4){document.getElementById("onprechattel").focus();setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0);ee()}if(Ge==1&&Je==1&&!sn(document.getElementById('onprechatemail').value)){document.getElementById("onprechatemail").focus();setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0);ee()}if(Xe==1&&Ye==1&&P.length<2){document.getElementById("onprechatname").focus();setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0);ee()}if(nt==1&&et==1&&tt==0){setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #D04848","important")},0);ee()}return false}else{var t=document.getElementById("onprechattext").value;J.emit('setclientdetails',Q,A,P,j,M,"");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)}J.emit('setconsentsettings',Q,n,N,H);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=D('max_title',W);var o="";o=" me-bubble";te('

      '+D('max_me',W)+'\t'+Nt(t)+'

      ','me');je="me";C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=3850;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}let e=0;if(!X){e=5400;if(X==false&&Y==false){obj.socketReconnect=1;mn()}}setTimeout(function(){C=x();obj.durationInSeconds2=(C-B)/1e3;obj.socketDurationInSeconds2=(C-k)/1e3;obj.isConnected2=X;obj.tryToReconnect2=Y;obj.firstConnection2=G;obj.timeoutTime_userconnect2=T;obj.sendChatDelay=e;setTimeout(function(){J.emit('sendchat',t,undefined,0,tt,3850,we,Q,bt,obj)},400)},e);vt(1);vt(2);Se="chat";gn();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(sn(document.getElementById('onwebchatoffemail').value)){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important");ee()}};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");ee()}};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");ee()}};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");ee()}};if(document.getElementById('onprechatemail'))document.getElementById('onprechatemail').onkeyup=function(){if(sn(document.getElementById('onprechatemail').value)){document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important");ee()}};document.getElementById('onprechattext').onkeyup=function(){if(document.getElementById('onprechattext').value.length>=1){document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important");ee()}};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");ee()}};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");ee()}};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(!J){Tn()}if(X==false&&Y==false){mn()}J.emit('chatWindowMax',1);un();document.getElementById("onwbtxtarea").focus();return false};document.getElementById("webchat_header").addEventListener("click",function(){if(ie==0){if(U('maxChat')!=1){se();MaximizeWindowInit();Ht('onWebChat','Chat window opened','')}else{se();J.emit('chatWindowMax',0);fn()}}else{ie=0}});if(document.getElementById("onweb_chatimage")){document.getElementById("onweb_chatimage").addEventListener("click",function(){MaximizeWindowInit();se();Ht('onWebChat','Chat window opened','');return false})}text=U('chattext');if(text)Pe=(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(Ne<340){var E=document.getElementsByClassName('operatorImageSmallClass');[].forEach.call(E,function(e){e.style.transform="scale(0.85)";e.style.marginLeft="3px"})}if(K){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(He=="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("onwc_welcome_message").style.setProperty("margin-top","35%","important")}}document.getElementById('chat_area_id').addEventListener('scroll',pn);pn();document.getElementById('scrollToBottomBtn').addEventListener('click',()=>{xn(document.getElementById("chat_area_id"),50,1)})}var kn=zt('onwbchttimesVisited');if(kn==''||kn==undefined||kn=='NaN'){kn=0;Ut("onwbchttimesVisited",1)}function Cn(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 Tn(){var e={query:{server:Yt},reconnectionAttempts:40};if(!y){J=io.connect('https://'+serverIP+Xt,e)}else{J=io.connect('http://'+serverIP+Xt,e)}J.on('disconnect',function(){X=false;jt()});J.on('error',function(e){});J.on('connect_error',function(e){});J.on('connect_timeout',function(){});J.on('reconnect',function(){});J.on('reconnecting',function(e){});if(ln()!=8){Qt=setTimeout(function(){J.io.disconnect();fn()},Jt)}J.on('connect',function(){X=true;Y=false;Mt();we++;k=x();if(we>15){J.io.disconnect();J.disconnect();J=null}var e=document.referrer;T=0;if(!G&&(U('chattext')==null||U('chattext')=='')){}setTimeout(function(){J.emit('userconnect',Q,P,j,M,I,ht,yt,screen.width,We,vn,_n,kn,A,pe,e,zt('onwbchtlastvisit'),In,K,h,G,q,N,H)},T);G=false});J.on('onwcemailtranscript_ok',function(){toggleModal('onwcEmailOkModal')});J.on('addvisited1',function(e){kn++;Ut("onwbchttimesVisited",kn);Ut("onwbchtlastvisit",e)});J.on('setCookie',function(e,t){if(e=="onwbchtclientid"){if(zt('onwbchtclientid')!=''&&zt('onwbchtclientid')!=null){if(zt('onwbchtclientid')!=t){deleteAllCookiesAndStorage();V('chattext','');var n=document.querySelectorAll('#chat_area_id p');n.forEach(function(e){e.remove()});document.getElementById('onwc_welcome_message').style.display="block"}}Q=t}Ut(e,t)});J.on('chatWindowMax',function(e){if(e==1)un();else if(e==0)fn()});J.on('updateagents',function(e){re(e)});J.on('send_dialogid',function(e){Ie=e});J.on('newChatEvent',function(e){Ht('onWebChat','Chat started','by '+e)});J.on('askforrating',function(e){Ie=e;toggleModal("onwcRatingChatModal",true)});J.on('updateclientdetails',function(e,t,n,o){if(e!=''&&isNaN(e)){P=e}if(t!=''){j=t}if(n!=''){M=n}if(o!=''){I=o}});J.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)bn()}else{hn()}if(U('chattext').endsWith(D('max_gone',W)+"

      ")&&q==1&&R!=0){var i=document.getElementById('chat_area_id').lastChild;document.getElementById('chat_area_id').removeChild(i);V('chattext',U('chattext').substring(0,U('chattext').lastIndexOf('

      '+D('max_gone',W)+'

      ')));Wt()}if(q==1&&R!=0){Wt()}if(Te==0&q!=1&&R==0&&U('chattext').length>0){if(!U('chattext').endsWith(D('max_gone',W)+"

      ")){var a=1e3;if(b==1){a=3e3}setTimeout(function(){if(q!=1&&R==0&&!U('chattext').endsWith(D('max_gone',W)+"

      ")){te('

      '+D('max_gone',W)+'

      ');St()}},a)}}}});J.on('setIsBlocked',function(e){if(e==undefined){e=0}h=e;Ut("onwbchtblocked",e);if(h==1){hn()}else if(h==0){if(q==1||qe!=1){if(O!=0)bn()}}});J.on('visitordeleted',function(){V('chattext','');var e=document.querySelectorAll('#chat_area_id p');e.forEach(function(e){e.remove()});yn(document.getElementById("onwbchat_window"));deleteAllCookiesAndStorage();J.disconnect()});deleteAllCookiesAndStorage=function(){Dt("onwbchtclientid");Dt("inChatC");Dt("onwbchtSound");Dt("onwbchtblocked");Dt("onwbchtexpress.sid");Dt("onwbchtlastvisit");Dt("onwbchtsessionrandom");Dt("onwbchttimesVisited");try{localStorage.clear();sessionStorage.clear()}catch(e){}};J.on('servercommand',function(e,t,n,o,i,a){if(n==null||n=="")n="operator";if(e=='close_dialog'){if(z('inChatC')==1){if(D('max_closed',W)!="")te('

      '+D('max_closed',W).replace('{{operator}}',n)+'

      ')}if(_e==1&&z('inChatC')==1&&Ee==0){toggleModal("onwcRatingChatModal",true)}Z('inChatC',0,.166);V("servingOpImage","");L="";if(fe==1){L="0_support_man.png"}clearTimeout(le);clearTimeout(ae);V('hasTriggeredNoReplyAgent',0);Z('hasTriggeredNoReplyAgentC',0,.166);V('hasTriggeredNoReplyAnyone',0);Z('hasTriggeredNoReplyAnyoneC',0,.166);oe=0;disableMenuItem('onwebchat-endchat-li');ge=false;Ee=0;V('isRated',0);Ie=a}else if(e=='serve_dialog'){if(o=="androidapp"){b=1}else{b=0}je="served_by";if(D('max_served',W)!=""){if(!U('hasWrSeByTr')){te('

      '+D('max_served',W).replace('{{operator}}',n)+'

      ')}}if(i==""||!i){i="0_support_man.png"}L=i;V("servingOpImage",i);if(document.getElementById("operatorImage"))document.getElementById("operatorImage").setAttribute('src',$+'//'+serverIP+'/filesUpload/operatorImages/'+i)}else if(e=='no_agent'){te('

      No agent is online now, but we will reply to you asap.

      ')}});J.on('disablesendbutton',function(){jt('aibot')});J.on('updatechatvisitor',function(e,t){var n="";n=" me-bubble ";if(je!='me'){n=n+" me-first "}var o="";if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}te('

      '+D('max_me',W)+'\t'+Nt(e)+'

      ',"me");je="me"});J.on('updatechat',function(e,t,n,o){if(o==null||o=="")o="operator";if(o=='aibot'){Te=1;V("chatWithBot",1);L=gt;document.getElementById('onwbtxtarea').maxLength=ke;if(document.getElementById("operatorImage"))document.getElementById("operatorImage").setAttribute('src',$+'//'+serverIP+'/filesUpload/operatorImages/'+gt);V("servingOpImage",gt)}else{Te=0;V("chatWithBot",0)}if(n=='command:typing...'){if(document.getElementById('agenttypingimage'))document.getElementById('agenttypingimage').remove();let e="";if(fe==1){e=" big-margin-left "}if(U('chattext')!=null&&U('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{Mt();Ft();clearTimeout(ae);Wt();if(document.getElementById('agenttypingimage'))document.getElementById('agenttypingimage').remove();var i="";var a='';var l="";i=" agent-bubble ";if(je!='agent'){i=i+" agent-first ";if(fe==1){a=''}}if(fe==1){l=" big-margin-left "}de(n,"operator");Z('inChatC',1,.166);var s="";if(isRTLlanguage(n.substr(0,1))==true){s=' style="direction: rtl;text-align:right;" '}te('

      '+a+''+D('max_agent',W).replace('{{operator}}',o)+' '+Nt(n)+'

      ');je="agent";if(e!=""&&U('maxChat')!=1){MaximizeWindowInit()}if(q!=1){if(U('chattext')!=null&&U('chattext')!=''){}bn()}if(document.getElementById('prechat_form').style.display=='block'){bn()}}});removeLoadingImage=function(e){if(document.getElementById(e))document.getElementById(e).style.background="none";xn(document.getElementById('chat_area_id'),10,10)};var t=0;var n=0;var o=0;var l="";function i(){oe=1;if(K){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(je!="me"){e=e+" me-first "}l=n;de(n,"visitor");n=n.replace(/\n/g,"{{newline}}");var i="";if(isRTLlanguage(n.substr(0,1))==true){i=' style="direction: rtl;text-align:right;" '}te('

      '+D('max_me',W)+'\t'+Nt(n)+'

      ',"me");je="me";vt(2);C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.tryToReconnect=Y;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.pos=5183;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}let t=300;if(!X){t=900;if(X==false&&Y==false){obj.socketReconnect=1;mn()}}if($t('sessionStorage')&&U('mustSendTriggerText')||!$t('sessionStorage')&&_==true){const a=U('triggerText');setTimeout(function(){J.emit('sendchat',n,a,0,0,5183,we,Q,bt,obj)},t);V('mustSendTriggerText',false);_=false;Zt('triggerText')}else{setTimeout(function(){C=x();obj.durationInSeconds2=(C-B)/1e3;obj.socketDurationInSeconds2=(C-k)/1e3;obj.isConnected2=X;obj.tryToReconnect2=Y;obj.firstConnection2=G;obj.timeoutTime_userconnect2=T;obj.sendChatDelay=t;obj.pos=5191;let e=300;if(!X){e=5300}setTimeout(function(){C=x();obj.durationInSeconds3=(C-B)/1e3;obj.socketDurationInSeconds3=(C-k)/1e3;obj.isConnected3=X;obj.tryToReconnect3=Y;obj.firstConnection3=G;obj.timeoutTime_userconnect3=T;obj.sendChatDelay2=e;obj.pos=5191;J.emit('sendchat',n,undefined,0,0,5191,we,Q,bt,obj)},e)},t)}}t=0}function a(){var e=document.getElementById('onwbtxtarea').value;if(e.trim()!=""&&h==0){C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=5217;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}J.emit('sendchat',e,undefined,1,0,5217,we,Q,bt,obj)}}document.getElementById("onwc_chat_message_div").addEventListener("paste",function(e){if(X==false&&Y==false){mn()}setTimeout(function(){checkText2ShowSendButton()},0)});document.getElementById("onwc_chat_message_div").addEventListener("keydown",function(e){if(e.key=="Enter"&&!e.shiftKey){e.preventDefault();if(!Ce){i();clearTimeout(o);o=0}}else{if(ue!=1&&U('hasStartedWriting')!=1){E();V('hasStartedWriting',1)}ue=1;if(X==false&&Y==false){mn()}if(t==0&&h==0){if(Te!=1){C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=5265;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}J.emit('sendchat','command:typing...',undefined,0,0,5265,we,Q,bt,obj)}t=1}let e=200;if(Le=='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(Te!=1){C=x();obj={};obj.version=ne;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=R;obj.agentOnline=q;obj.durationInSeconds=(C-B)/1e3;obj.socketDurationInSeconds=(C-k)/1e3;obj.isConnected=X;obj.firstConnection=G;obj.timeoutTime_userconnect=T;obj.tryToReconnect=Y;obj.pos=5281;if(U('chattext')){obj.chattext=U('chattext').substring(0,20)}J.emit('sendchat','command:notyping...',undefined,0,0,5281,we,Q,bt,obj)}},1800)}});document.getElementById("wb-send-image").addEventListener("click",function(e){i();if(!K)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(D('max_placeholder',W).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&&z('consentvalue')!=1&&z('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 g(){window.removeEventListener('mousemove',f,true)}function p(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(U('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(!K){document.getElementById('webchat_header').addEventListener('mousedown',p,false)}document.getElementById('onweb_minimize_btn_icon_id').removeEventListener('mousedown',p);window.addEventListener('mouseup',g,false)}catch(e){}setTimeout(function(){ce()},500)}function te(t,e,n){vt(1);if(n&&U('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=Sn(t);let i=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;()]*[-A-Z0-9+&@#\/%=~_|()])/gi;let a;if(!jn(t)){a=t.match(i)}else{}if(a!=null){a=a[0];var l=Cn(a);if(l==Cn(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(!jn(t)){r=t.match(s)}else{}if(r!=null){r=r[0];var l=Cn(r);if(l==Cn(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 g=t.substring(m,u);var p=g.replace(/^.*[\\\/]/,'');var f="";if(p.toLowerCase().endsWith(".png")||p.toLowerCase().endsWith(".jpg")||p.toLowerCase().endsWith(".jpeg")||p.toLowerCase().endsWith(".svg")||p.toLowerCase().endsWith(".gif")){d=true;Pe++;f=''}else{f=''+p+''}t=t.replace("{{fileuploaded:"+g+"}}",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=Mn(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=Pn(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)}V('outeragentbubbletext',e)}else{Zt('outeragentbubbletext')}if(t.indexOf("server_messages")==-1){t="
      "+t+"
      "+_+":"+I+"
      "}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)}xn(document.getElementById("chat_area_id"),20,4);setTimeout(function(){xn(document.getElementById("chat_area_id"),20,1)},500);if(U('chattext')){V('chattext',U('chattext')+t)}else{V('chattext',t)}if(ln()!=8){clearTimeout(Qt);Qt=setTimeout(function(){J.io.disconnect();fn()},Jt)}enableMenuItem("onwebchat-print-li");enableMenuItem("onwebchat-savetofile-li");if(ft<6){enableMenuItem("onwebchat-email-li")}enableMenuItem('onwebchat-endchat-li');ge=true;if(Ne<340){var E=document.getElementsByClassName('operatorImageSmallClass');[].forEach.call(E,function(e){e.style.transform="scale(0.85)";e.style.marginLeft="3px"})}checkMobileChatHeight()}function Pn(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 jn(e){var t=/]*href=["']/i;return t.test(e)}function Mn(e){const t=/\*\*(.*?)\*\*/g;return e.replace(t,'$1')}function Sn(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=Cn(n);if(o==Cn(window.location.href)){return`${t}`}else{return`${t}`}});return n}else return""}let Wn=900;let Ln=null;return{init:function(e){Kt=e},set:function(e,t){if(e=="name"&&h==0){P=t;try{J.emit('setclientdetails',Q,A,P,"","","")}catch(e){}}else if(e=="email"&&h==0){j=t;try{J.emit('setclientdetails',Q,A,"",j,"","")}catch(e){}}else if(e=="phone"&&h==0){M=t;try{J.emit('setclientdetails',Q,A,"","",M,"")}catch(e){}}else if(e=="notes"&&h==0){I=t;try{J.emit('setclientdetails',Q,A,"","","",I)}catch(e){}}else if(e=="pageUrl"&&h==0){try{J.emit('setclientpageurl',Q,A,"",t)}catch(e){}}else if(e=="pageTitle"&&h==0){try{J.emit('setclientpageurl',Q,A,t,"")}catch(e){}}else if(e=="max"&&h==0){if(t==1){un();document.getElementById("onwbtxtarea").focus()}else if(t==0){fn()}}else if(e=="show"&&h==0){if(t==1){O=1;bn()}else if(t==0){O=0;hn()}}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){W=t;if(W=='gr'||W=='el'){W='l1'}if(W=='en'){W='l2'}if(W!='l1'&&W!='l2'){W='l1'}}else if(e=="languageFile"&&h==0){r=""}else if(e=="onClick"&&h==0){se=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){E=t}else if(e=="onUpdateOperators"&&h==0){re=t}else if(e=="onNewMessage"&&h==0){de=t}else if(e=="onWebChatLoaded"&&h==0){ce=t}else if(e=="onlineColor"&&h==0){me=t;if(q==1&&me!=""){document.getElementById("webchat_header").style.setProperty('background-color',me,'important')}}else if(e=="offlineColor"&&h==0){S=t;if(q!=1&&S!=""){document.getElementById("webchat_header").style.setProperty('background-color',S,'important');document.getElementById("offlineform_btn").style.setProperty('background-color',S,'important')}}},get:function(e){if(e=="name"){return P}else if(e=="email"){return j}else if(e=="phone"){return M}else if(e=="notes"){return I}else if(e=="status"){if(q==1)return"online";else return"offline"}else return""}}}();