var onWebChat_=onWebChat_||function(){if(!window.console)console={log:function(){}};let J=18;function _(){if(window.performance&&window.performance.now){return window.performance.now()}else{return Date.now()}}const Y=_();let Q;let S;let G=0;let ee=0;if(N("AHSALOM")!=undefined&&N("AHSALOM")!=""){ee=N("AHSALOM")}var i=false;var v=false;var te=0;var ne=0;var oe,re;var a=false;var ie=0;var ae=0;let le;var j;var n={"en":{"min_online":"We are online - chat with us!","min_offline":"We are offline - Send us an email","max_title":"Chat with us!","max_subtitle":"","max_msg":"We are online - chat with us!","max_served":"You are served by {{operator}}","max_me":"","max_agent":"","max_closed":"{{operator}} closed the chat","max_typing":"","off_title":"Email us!","off_subtitle":"","off_msg":"Sorry, we are not online at the moment. Leave a message and we will get back to you.","off_name":"Name","off_email":"Email","off_phone":"Phone","off_text":"Message","off_send":"Send","off_thank":"Thank you for contacting us. We will reply to you as soon as possible.","prechat_name":"Name","prechat_email":"Email","prechat_phone":"Phone","prechat_text":"how can we help you?","prechat_msg":"Please give us some info to serve you better.","prechat_btn":"Start chat!","max_placeholder":"Type your message here ...","recording_placeholder":"Listening ...","max_agent_gone":"All operators are offline","consent_text":"I agree that my personal data, provided via chat, to be processed for using live chat service","menu_send_file":"Send file","menu_print":"Print","menu_email":"Email transcript","menu_save":"Save","menu_sound":"Sound","menu_end_chat":"End chat","end_chat_msg":"Are you sure you want to end this chat?","cancel":"Cancel","rating_msg":"Thank you. We would appreciate it if you could rate this chat","rating_btn":"Submit","rating_no_msg":"No, thanks","departments":"Choose a department"},"sr":{"min_online":"Trenutno smo online!","min_offline":"Nema na nas - pošaljite nam mail","max_title":"Pitanja?","max_subtitle":"","max_msg":"Trenutno smo online!","max_served":"Posluženi ste od {{operator}}","max_me":"","max_agent":"","max_closed":"{{operator}} zatvorio je chat","max_typing":"","off_title":"Email us!","off_subtitle":"","off_msg":"Sorry, we are not online at the moment. Leave a message and we will get back to you.","off_name":"Name","off_email":"Email","off_phone":"Phone","off_text":"Message","off_send":"Send","off_thank":"Thank you for contacting us. We will reply to you as soon as possible.","prechat_name":"Name","prechat_email":"Email","prechat_phone":"Phone","prechat_text":"how can we help you?","prechat_msg":"Please give us some info to serve you better.","prechat_btn":"Start chat!","max_placeholder":"Ovdje upišite svoju poruku ...","recording_placeholder":"Слушам ...","max_agent_gone":"Svi operatieru trenutno su offline.","consent_text":"I agree that my personal data, provided via chat, to be processed for using live chat service","menu_send_file":"Send file","menu_print":"Print","menu_email":"Email transcript","menu_save":"Save","menu_sound":"Sound","menu_end_chat":"End chat","end_chat_msg":"Are you sure you want to end this chat?","cancel":"Cancel","rating_msg":"Thank you. We would appreciate it if you could rate this chat","rating_btn":"Submit","rating_no_msg":"No, thanks","departments":"Choose a department"}};var q="",se="",x="",ce="";var de="";var ue=function(){};var s=function(){};var c=function(){};var d=function(){};var fe=function(){};var pe=function(){};var he=function(){};var me=function(){};var ye=function(){};var ge=function(){};var be="";var k="";var we=0;var ve=false;var _e="216.73.216.198";let f="sr";let p="en";var C=navigator.language||navigator.userLanguage||"en";if(C==="zh-TW"){}else{C=C.split("-")[0].toLowerCase()}var w="";if(N("servingOpImage")!=""&&N("servingOpImage")!=undefined){w=N("servingOpImage")}var Se="1";let qe="predefined/chat-with-us-1.png";let xe="predefined/chat-with-us-1.png";let ke="predefined/live-chat-3.png";let Ce="predefined/live-chat-3.png";let Te="";const Pe="support-man-48w.png";if(Se==1&&w==""){w=Pe}const Me='';const Ie='';var T=-1;var je=0;var e=-1;var Le=0;var We="1";var Ee="0";var Ae="0";var h="";var Oe=0;var m=0;var Re=0;var Be="1";if(N("isRated")!=""&&N("isRated")!=undefined){Re=N("isRated")}let y=2e3;const He=500;let Ne=true;let ze=0;if(N("chatWithBot")!=""&&N("chatWithBot")!=undefined){ze=N("chatWithBot")}if(ze==1){y=He}if(Be==1&&We==0){Be=0}var De=0;var Fe="";var g=null;var b=null;var Ue="";var Ze=false;if(Be==1){z('hideImage',0)}var Ve=true;var P="";if(N('hideImage')!=0&&N('hideImage')!=1){z('hideImage',0)}var Xe=xn('onwbchtsessionrandom');if(Xe=='null'||Xe==null||Xe==''||Xe=='undefined'){Xe=Math.floor(Math.random()*1e6+1);kn("onwbchtsessionrandom",Xe)}var $e="0";var Ke="1";var M=29296;if(M==0){i=true}let Je="0";if(Je==1){Je=true}else{Je=false}var t=".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}#onwebchat_chatimage_div{z-index:2147483600}#onwbchat_window #operatorImage{display:none !important}#onwbchat_window #operatorImageSmall{width:29px !important;height:29px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;top:2px !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)}#onwbchat_window #operatorImage{position:absolute;z-index:100 !important;border-radius:30px;border-style:solid;border-color:#ababab;top:12px !important;left:20px !important;width:44px !important;height:44px !important;border-width:0 !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden;background:#fffffff7 !important}.onwebchat_chatimage{position:fixed !important;bottom:6px !important;left:16px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:59px !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;z-index:2147483600}.onwebchat_chatimage_mobile{position:fixed !important;bottom:21px !important;left:20px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:52px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important;z-index:2147483600 !important}img#onwebchat_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 .onwebchat_chatimage:-moz-loading{visibility:hidden}#onwebchat_code .onweb_chatimage_x{position:absolute !important;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer !important;border:0;opacity:.5 !important}#onwebchat_code .onweb_chatimage_x:hover{opacity:.85 !important}.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 15px 0 #c5c5c5 !important;line-height:16px !important;display:none;text-align:left;position:fixed !important;bottom:0 !important;left:20px;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:#567ea6 !important;height:#onwebchatbox_header_height_+_4px !important;min-height:36px !important;line-height:#onwebchatbox_header1_heightpx !important;cursor:pointer;transition:background-color .18s ease !important;-webkit-tap-highlight-color:transparent;box-sizing:content-box !important;margin:0 !important;padding:0 !important;border:0 !important;outline:0 !important;float:left !important;padding-left:0 !important;padding-right:0 !important;vertical-align:baseline !important;font-size:13px !important;font-weight:bold !important;width:100% !important;position:relative;z-index:3 !important;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::before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:inherit;border-top-right-radius:inherit;background-color:rgba(0,0,0,0);pointer-events:none;transition:background-color .18s ease !important}.onwebchatbox .webchat_header:hover::before{background-color:rgba(0,0,0,0.05)}@media(max-width:480px){.onwebchatbox .webchat_header::before,.onwebchatbox .webchat_header:hover::before,.onwebchatbox .webchat_header:active::before{background-color:rgba(0,0,0,0) !important;transition:none !important}}.onwebchatbox .webchat_header.onwc-mobile-header::before,.onwebchatbox .webchat_header.onwc-mobile-header:hover::before,.onwebchatbox .webchat_header.onwc-mobile-header:active::before{background-color:rgba(0,0,0,0) !important;transition:none !important}.onwebchatbox .webchat_header.onwc-maximized{-webkit-clip-path:url(#onwc_header_wave_clip);clip-path:url(#onwc_header_wave_clip)}.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;position:relative;top:#chat_area_top_shiftpx;width:#chat_widthpx;height:#chat_area_heightpx;margin-top:0;margin-bottom:0;padding:#chat_area_pad_toppx 0 9px 0;overflow:auto;color:#a4a4a4;box-sizing:content-box;direction:ltr !important;box-shadow:none !important;display:flex !important;flex-direction:column !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;overflow-wrap:anywhere !important;position:absolute !important;left:9px !important;bottom:13px !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:36px !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:block !important;position:absolute;top:40% !important;right:8px !important;width:24px !important;height:24px !important;padding:3px !important;margin-right:0;color:#f1f1f1;cursor:pointer;border:none !important;border-radius:50% !important;box-sizing:content-box !important;background:rgba(255,255,255,0.1) !important;box-shadow:0 1px 3px rgba(0,0,0,0.12) !important;transform:translateY(-50%) !important;-webkit-transform:translateY(-50%) !important;transition:background .25s ease,box-shadow .25s ease !important;-webkit-transition:background .25s ease,box-shadow .25s ease !important}.onwebchatbox .onweb_minimize_btn_icon:before{content:'' !important;display:block !important;width:9px !important;height:9px !important;border:solid #f1f1f1 !important;border-width:0 3px 3px 0 !important;position:absolute !important;top:47% !important;left:50% !important;transform:translate(-50%,-60%) rotate(45deg) !important;-webkit-transform:translate(-50%,-60%) rotate(45deg) !important}.onwebchatbox .onweb_minimize_btn_icon:hover{background:rgba(255,255,255,0.20) !important;box-shadow:0 2px 6px rgba(0,0,0,0.18) !important}.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 !important;padding-right:12px !important;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){#onwbchat_window .chat_area p{font-size:110% !important;line-height:1.18 !important}#onwbchat_window #reply_buttons_container .reply-button{font-size:110% !important}}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color !important;margin-bottom:8px !important;font-family:arial,verdana,sans-serif !important;text-align:left}.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:8px !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:relative;margin:0 !important;width:100%;height:100%;text-align:left;overflow:hidden;line-height:inherit !important;box-sizing:border-box}.onwebchatbox #div_chat_max_title_content{display:flex !important;align-items:center !important;height:100% !important;padding:0 78px 16px 15px !important;box-sizing:border-box;overflow:hidden}.onwebchatbox #webchat_header_image_wrap{flex:0 0 auto;width:44px;height:44px;margin-right:12px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,0.18);border-radius:50%;overflow:hidden;color:#f1f1f1}.onwebchatbox #webchat_header_image_wrap img,.onwebchatbox #webchat_header_image_wrap svg{width:27px !important;height:27px !important;display:block;fill:#f1f1f1 !important;color:#f1f1f1 !important}.onwebchatbox #webchat_header_image_wrap svg path{fill:#f1f1f1 !important}.onwebchatbox #webchat_header_image_wrap img{width:44px !important;height:44px !important;object-fit:cover;border-radius:50%}.onwebchatbox #div_chat_max_title_texts{display:flex !important;flex-direction:column !important;justify-content:center !important;overflow:hidden;min-width:0;flex:1 1 auto;line-height:1.2 !important}.onwebchatbox #div_chat_max_title_span{padding-left:0 !important;color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;line-height:1.2 !important;font-weight:700 !important;font-size:15px !important;vertical-align:baseline !important;letter-spacing:.3px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.onwebchatbox #div_chat_max_title_sub_span{color:#f1f1f1 !important;opacity:.85;font-family:arial,verdana,sans-serif !important;line-height:1.2 !important;font-weight:400 !important;font-size:12px !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.onwebchatbox #div_chat_max_title_sub_span:empty{display:none}@media(max-width:480px){.onwebchatbox #div_chat_max_title_span{font-size:17px !important}.onwebchatbox #div_chat_max_title_sub_span{font-size:12px !important}}.onwebchatbox #div_chat_max_title_titleline{display:flex !important;align-items:center !important;gap:6px !important;min-width:0 !important}.onwebchatbox #div_chat_max_title_titleline #div_chat_max_title_span{flex:0 1 auto !important;min-width:0 !important}.onwebchatbox .onwc-ai-badge{display:none !important;flex:0 0 auto !important;align-items:center !important;height:16px !important;padding:0 6px !important;border-radius:8px !important;background:rgba(255,255,255,0.22) !important;color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;font-weight:700 !important;font-size:10px !important;letter-spacing:.6px !important;line-height:16px !important;text-transform:uppercase !important;white-space:nowrap !important;cursor:default !important}.onwebchatbox .onwc-ai-badge.onwc-show{display:inline-flex !important}.onwebchatbox .onwc-ai-disclosure{margin:8px auto !important;padding:5px 12px !important;max-width:85% !important;border-radius:12.5px !important;background:rgba(0,0,0,0.05) !important;color:#525252 !important;font-family:arial,verdana,sans-serif !important;font-size:11px !important;line-height:1.35 !important;text-align:center !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 .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:#567ea6 !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:#567ea6 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}#offlineform_ok_btn{background-color:#567ea6 !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:#567ea6 !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:#567ea6;opacity:.82;border-style:none;box-shadow:none !important}.onwebchatbox .me-bubble{background-color:#e9e9e9;width:69% !important;margin-right:5% !important;padding:8px !important;position:relative !important;float:right !important;text-align:left;clear:both !important;border-radius:11px;border:0;margin-left:8px !important}.onwebchatbox .me-first{border-top-right-radius:2px !important}.onwebchatbox .me-bubble b{font-weight:600}.onwebchatbox .agent-bubble b{font-weight:600}.onwebchatbox .agent-bubble{background-color:#567ea6;width:#agent_bubble_width_pct% !important;margin-left:5% !important;padding:8px !important;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.header-position{position:absolute !important;bottom:auto !important;left:auto !important;top:40% !important;right:43px !important;transform:translateY(-50%) !important;height:24px !important;width:24px !important;fill:#f1f1f1 !important;opacity:.9 !important;border-radius:50% !important;padding:3px !important;box-sizing:content-box !important;background:rgba(255,255,255,0.1) !important;box-shadow:0 1px 3px rgba(0,0,0,0.12) !important}.onwebchatbox .onwebchat-widget-settings-icon.header-position:hover{background:rgba(255,255,255,0.20) !important;box-shadow:0 2px 6px rgba(0,0,0,0.18) !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:130% !important;line-height:1.2 !important;font-style:normal !important}#onwbchat_window .chat_area p>it{font-style:italic !important}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;top:62px !important;right:10px !important;bottom:auto !important;left:auto !important;background-color:#fefefe !important;border:1px solid #d2d2d2 !important;opacity:1;display:none;margin:0 !important;padding:8px 0 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}@media(max-width:480px){.onwebchatbox .onwebchat-widget-settings-submenu{right:28px !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 40px 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:#181818;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:#595959 !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:#567ea6 !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}#wb-mic-image:hover svg,#wb-mic-image:hover path,#wb-mic-image:hover *{fill:#535353 !important;transition:fill .22s ease !important;-webkit-transition:fill .22s ease !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:#b64a4a;background:#f6eeee;border:1px solid #f0d9d9;border-radius:50%;font-weight:800;cursor:pointer;position:absolute;right:10px;top:10px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;box-sizing:border-box;transition:background-color .18s ease,border-color .18s ease,color .18s ease,transform .18s ease}.onwebchatbox .onwcmodal-content .onwcmodalclose:hover{color:#fff !important;background:#d55151 !important;border-color:#d55151;transform:scale(1.05);cursor:pointer !important}.onwcmodal{position:absolute !important;display:flex !important;align-items:center !important;justify-content:center !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;background-color:rgb(28 32 38 / 72%) !important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);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 !important;background:linear-gradient(180deg,#fff 0,#fbfcff 100%) !important;width:calc(100% - 58px) !important;max-width:276px !important;min-width:172px !important;line-height:24px !important;min-height:30px !important;font-size:15px !important;padding:42px 24px 28px !important;border:1px solid rgba(255,255,255,0.85);border-radius:12px !important;box-shadow:0 18px 42px rgba(16,24,40,0.26),0 2px 10px rgba(16,24,40,0.08);user-select:none;text-align:left;color:#273142 !important;animation:onwcModalEnter .22s ease-out}.onwebchatbox .onwcmodal-content>span{display:block;font-size:15px !important;line-height:21px !important;font-weight:500}.onwebchatbox .onwcmodal-content div{font-size:15px !important}@keyframes onwcModalEnter{from{opacity:0;transform:translateY(10px) scale(0.98)}to{opacity:1;transform:translateY(0) scale(1)}}.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:67% !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:#fff !important;font-family:Arial,Helvetica,sans-serif !important;border:1px solid #313131 !important;padding:8px 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{transition:background-color .2s ease !important}.onwcbutton:hover{background:#eee !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:78% !important;outline:none !important;max-width:189px !important;margin:10px auto 19px auto !important}.onwebchatbox .orange{background:#272727 !important;color:white !important}.onwebchatbox .orange:hover:not(:disabled){background:#000 !important}.onwebchatbox .onwcmodal-actions{display:flex !important;flex-wrap:wrap !important;justify-content:center !important;gap:8px !important;margin-top:14px !important;margin-bottom:6px !important}.onwebchatbox .onwcmodal-actions .onwcbutton{width:auto !important;flex:1 1 auto !important;min-width:max-content !important;margin:0 !important;padding:8px 14px !important;text-align:center !important}.onwebchatbox .onwcbutton-danger{background:#d04848 !important;color:#fff !important;border-color:#d04848 !important}.onwebchatbox .onwcbutton-danger:hover:not(:disabled){background:#b13a3a !important;border-color:#b13a3a !important}.onwebchatbox .onwcmodal-actions .onwcbutton:only-child{flex:0 1 auto !important;min-width:96px !important}.onwebchatbox .onwcmodal-link{display:block;text-align:center;margin:10px auto 4px;font-size:13px !important}.onwebchatbox .disabled{opacity:.5;cursor:default !important}#onwbchtlogo-in-widget-icon{width:13px !important;height:13px !important;bottom:-2px;position:relative;fill:#567ea6}.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 .agent-bubble+.onwctime{padding-top:9px !important}#onwbchat_window .onwctime span{padding:initial !important;margin:initial !important;color:#737373 !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:last-of-type .onwctime{opacity:1 !important}.onwcinner:hover .onwctime{opacity:1 !important;transition:opacity .5s ease-out;transition-delay:.09s}.onwcouter{position:relative;margin-bottom:2px;margin-top:3px !important}@keyframes onwcMsgSlideUp{0%{opacity:0;transform:translateY(18px) scale(0.82)}100%{opacity:1;transform:translateY(0) scale(1)}}.onwcmsg-enter{animation:onwcMsgSlideUp .42s cubic-bezier(0.22,1,0.36,1) both;transform-origin:center center;will-change:transform,opacity}.onwcmsg-enter.onwcouter_me,.onwcmsg-enter .me{transform-origin:center left}.onwcmsg-enter.onwcouter_agent,.onwcmsg-enter .agent{transform-origin:center right}.onwcminner{position:relative;width:100%;text-align:right}#onwbchat_window .onwcouter{margin-top:11px !important;display:block !important;clear:both !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}}.onwc-stream-cursor{display:inline-block;width:2px;height:1em;margin-left:1px;vertical-align:text-bottom;background:currentColor;opacity:.7;animation:onwc-stream-cursor-blink 1s step-start infinite}@keyframes onwc-stream-cursor-blink{50%{opacity:0}}#onwbchat_window #scrollToBottomButton{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}#onwbchat_window #scrollToBottomButton: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;left:50px !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 #e5e5e4 !important;border-radius:9px !important;background-color:#fdfdfd !important;box-shadow:0 1px 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:10px 23px 11px 11px !important;line-height:1.11rem !important;max-height:80px !important;overflow:auto}#outer_agent_bubble_x{position:absolute !important;top:5px !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;transition:transform .4s ease}#bubble_x_svg:hover{fill:#464646 !important;transform:rotate(90deg)}#operatorImageSmallPreview{display:none !important}.circle-anim{height:29px;width:29px;animation-fill-mode:none;animation-play-state:running;animation:pulsating2 1s infinite linear}@-webkit-keyframes pulsating2{0%{-webkit-transform:scale(0.9)}50%{-webkit-transform:scale(0.8)}100%{-webkit-transform:scale(0.9)}}#onwbchat_window #lang-toggle-btn{position:absolute !important;right:70px !important;top:20px !important;z-index:999 !important;cursor:pointer !important;font-size:12px !important;padding:2px 5px !important;background-color:#f0f0f0 !important;color:#5b5b5b !important;border:1px solid #ccc !important;border-radius:3px !important}#onwbchat_window #lang-toggle-btn:hover{background-color:#e4e4e4 !important;color:#4b4b4b !important}#onwbchat_window #lang-toggle-btn:focus{outline:none !important}#onwbchat_window #lang-dropdown{display:none;position:absolute !important;user-select:none !important;right:70px !important;bottom:45px !important;background-color:#fff !important;border:1px solid #ccc !important;border-radius:3px !important;box-shadow:0 2px 5px rgba(0,0,0,0.2) !important;z-index:1000 !important;max-height:200px !important;min-height:32px !important;overflow-y:auto !important}#onwbchat_window .lang-option{padding:8px 12px !important;cursor:pointer !important;font-size:12px !important;line-height:32px !important;color:#5b5b5b !important}#onwbchat_window .lang-option:hover{background-color:#f0f0f0 !important}#onwbchat_window .lang-option:active{background-color:#e0e0e0 !important}#onwbchat_window #reply_buttons_container{display:none !important;background-color:transparent !important;position:relative !important;margin-top:auto !important;margin-bottom:1px !important;padding:8px 16px !important;padding-top:20px !important;border-radius:20px !important;font-size:14px !important;color:#333 !important;flex-shrink:0 !important}#onwbchat_window #reply_buttons_list{display:flex !important;flex-wrap:wrap !important;gap:4px !important;justify-content:flex-end !important;margin-left:12px !important}#onwbchat_window .reply-button{padding:8px 16px !important;background-color:#fff !important;border:1px solid #ddd !important;border-radius:20px !important;cursor:pointer !important;font-size:14px !important;color:#333 !important;transition:all .2s !important;margin:3px !important;white-space:wrap !important;overflow-wrap:anywhere !important;text-align:right !important}#onwbchat_window .reply-button:hover{background-color:#f0f0f0 !important;border:1px solid #b5b5b5 !important}#onwbchat_window .welcome-message .agent-bubble{margin-top:3px !important}#onwbchat_window .welcome-message .onwctime{padding-top:26px !important}@keyframes onwbZoomIn{0%{transform:scaleX(0.81) scaleY(0.81);opacity:.5}100%{transform:scaleX(1) scaleY(1);opacity:1}}#onwebchat_chatimage{animation-name:onwbZoomIn;animation-timing-function:linear;animation-iteration-count:1;animation-duration:.3s} ";var Ye="free";var Qe="0";var Ge="";var et='M65.6198 34.5087C65.6197 19.1713 53.2049 6.6879 37.9525 6.6879C22.7003 6.68804 10.2863 19.1496 10.2861 34.5087C10.2861 46.7307 18.0857 57.4065 29.6766 61.0448L31.4528 61.611L27.837 69.7685L45.8603 61.611L50.3238 59.3672C59.6008 54.6921 65.4353 45.3936 65.6155 35.0048L65.6198 34.5087ZM71.8576 34.5087C71.8576 47.4829 64.642 59.1674 53.1181 64.9748L53.1137 64.9774L48.6503 67.2211L48.5372 67.2789L48.4206 67.3305L15.4797 82.2411L23.0603 65.1358C11.5221 59.5008 4.04831 47.7307 4.04831 34.5087C4.04845 15.6821 19.2585 0.415423 37.9525 0.415283C56.6499 0.415283 71.8575 15.707 71.8576 34.5087Z';var tt="1";var I="0";var nt=0;var ot;var rt="560";var it="66";var L="340";var at="4";rt=parseInt(rt,10);it=parseInt(it,10);L=parseInt(L,10);at=parseInt(at,10);if(at===6){if(!L||L<460)L=460;if(!it||it<72)it=72;if(!rt||rt<720)rt=720}else if(at===5){if(!L||L<390)L=390;if(!it||it<70)it=70;if(!rt||rt<650)rt=650}var lt=it+20;var st=Math.round(lt*.26);var ct="left";var dt=20;"47";var ut="#595959";var ft="#ffffff";var pt="1";var ht="0";var mt="1";var yt="1";var gt="0";var bt="0";var wt="1";var vt="0";var _t="1";var St="1";var qt="0";var xt="0";var kt="0";var W=0;var Ct="0";var E="1";var A="1";var Tt="0";var Pt="us";var Mt=['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 It="1";var jt="0";var Lt="0";var Wt="0";var Et="0";var At="1";var Ot="1";if(jt==0&&Lt==0&&Wt==0&&Et==0&&At==0&&Ot==0){It=0}let Rt="";if(Rt==''||Rt==undefined){Rt="chat-bot.png?v=2"}let Bt=0;if(Bt!=1)Bt=0;var Ht='[]';Ht=Ht.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var o=JSON.parse(Ht);let Nt='';let zt='';let Dt=-1;let Ft=-1;let Ut=0;var Zt=0;var Vt=false;if(N('secOnSite')===undefined||N('secOnSite')=="NaN"){z('secOnSite',0)}let Xt;let $t="";const Kt="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.922Z";if(E==1&&Tt==1&&Mt.indexOf(Pt)===-1){E=0}var u=xn('onwbchtblocked');if(u==''||u==null||u=='null'||u=='NaN'){u=0;kn('onwbchtblocked',0)}var Jt=H('onwbchtemailsSent');if(Jt=="")Jt=0;else Jt=parseInt(Jt);if(Ke=="0"){t=t.replace(/radius: 13px|radius: 11px|radius: 8px|radius: 5px|radius: 6px|radius: 7px|radius: 2px|radius: 3px|border-radius: 2.2em\/1em/g,"radius:0px");t=t.replace(/radius:13px|radius:11px|radius:8px|radius:5px|radius:6px|radius:7px|radius:2px|radius:3px|border-radius:2.2em\/1em/g,"radius:0px")}t=t.replace(new RegExp('__modern','g'),"");t=t.replace(/#textarea_width/g,L-77);t=t.replace(/#chat_width_15/g,L-15);t=t.replace(/#chat_width/g,L);t=t.replace(/#chatheader_width/g,L-40);t=t.replace("#chat_area_height",rt-98-lt-9);t=t.replace("#onwebchatbox_header_height_+_4",lt);t=t.replace(/#onwebchatbox_header1_height/g,it);t=t.replace(/#chat_area_top_shift/g,-st);t=t.replace(/#chat_area_pad_top/g,26+st);t=t.replace(/#visitor_css_text_color/g,ut);t=t.replace(/#agent_css_text_color/g,ft);t=t.replace(/#agent_bubble_width_pct/g,at===6?66:at===5?64:60);if(I==undefined||I=='undefined')I=0;var Yt=document.title;var Qt=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(N('maxChat')==1){setTimeout(function(){Un()},20);setTimeout(function(){Un()},200)}});let Gt=y/20*30;Gt++;Gt++;(function(e){{var t='-';var n=navigator.appVersion;var o=navigator.userAgent;var r=navigator.appName;var i=''+parseFloat(navigator.appVersion);var a=parseInt(navigator.appVersion,10);lo=n+" -- "+o+" -- "+r+" -- "+i+" -- "+a+" -- "+navigator.platform+" -- "+navigator.oscpu;var l,s,c;if((s=o.indexOf('Opera'))!=-1){r='Opera';i=o.substring(s+6);if((s=o.indexOf('Version'))!=-1){i=o.substring(s+8)}}else if((s=o.indexOf('MSIE'))!=-1){r='Internet Explorer';i=o.substring(s+5)}else if((s=o.indexOf('Edge'))!=-1||(s=o.indexOf('Edg/'))!=-1){r='Edge';i=''}else if((s=o.indexOf('Chrome'))!=-1){r='Chrome';i=o.substring(s+7);if((s=o.indexOf('OPR/'))!=-1){r='Opera';i=o.substring(s+4)}}else if((s=o.indexOf('Safari'))!=-1){r='Safari';i=o.substring(s+7);if((s=o.indexOf('Version'))!=-1){i=o.substring(s+8)}}else if((s=o.indexOf('Firefox'))!=-1){r='Firefox';i=o.substring(s+8)}else if(o.indexOf('Trident/')!=-1){r='Internet Explorer';i=o.substring(o.indexOf('rv:')+3)}else if((l=o.lastIndexOf(' ')+1)<(s=o.lastIndexOf('/'))){r=o.substring(l,s);i=o.substring(s+1);if(r.toLowerCase()==r.toUpperCase()){r=navigator.appName}}if((c=i.indexOf(';'))!=-1)i=i.substring(0,c);if((c=i.indexOf(' '))!=-1)i=i.substring(0,c);if((c=i.indexOf(')'))!=-1)i=i.substring(0,c);var d=i.indexOf('.');if(d>0){var u=i.indexOf('.',i.indexOf('.')+1);if(u>0)i=i.substring(0,u)}a=parseInt(''+i,10);if(isNaN(a)){i=''+parseFloat(navigator.appVersion);a=parseInt(navigator.appVersion,10)}if(r=='Edge')i='';$=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))){$=true}if($){Je=false}var f=navigator.cookieEnabled?true:false;if(typeof navigator.cookieEnabled=='undefined'&&!f){document.cookie='testcookie';f=document.cookie.indexOf('testcookie')!=-1?true:false}var p='';var h=[{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 m in h){var y=h[m];if(y.r.test(o)){p=y.s;break}}if(p==''){p=navigator.platform}var g=t;if(/Windows/.test(p)){g=/Windows (.*)/.exec(p)[1];p='Windows';en(p,g);if(g==="10.0"||g==="10"||g==10){g="10/11"}}switch(p){case'Mac OS X':g=/Mac OS X (10[\.\_\d]+)/.exec(o)[1];break;case'Android':var b=/Android ([\.\_\d]+)/.exec(o);if(b){g=b[1]}else{g=""}break;case'iOS':g=/OS (\d+)_(\d+)_?(\d+)?/.exec(n);g=g[1]+'.'+g[2]+'.'+(g[3]|0);break}var w='no check';if(typeof swfobject!='undefined'){var v=swfobject.getFlashPlayerVersion();if(v.major>0){w=v.major+'.'+v.minor+' r'+v.release}else{w=t}}}e.jscd={browser:r,browserVersion:i,isMobile:$,os:p,osVersion:g,cookies:f,flashVersion:w}})(this);ao=jscd.os+' '+jscd.osVersion;ro=jscd.browser+' '+jscd.browserVersion;function en(e,t){if(t==="10.0"||t==="10"||t==10){osVersion="10/11";if(navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues){navigator.userAgentData.getHighEntropyValues(['platformVersion']).then(e=>{const t=parseInt(e.platformVersion.split('.')[0]);if(t>=13){osVersion="11"}else{osVersion="10"}ao=jscd.os+' '+osVersion}).catch(e=>{})}}}function tn(e){Ne=true;j.querySelector('#wb-send-image').style.pointerEvents='none';j.querySelector("#wb-send-image").style.opacity="0.42";if(e=='aibot'){Xt=setTimeout(function(){nn()},1e4)}}function nn(){clearTimeout(Xt);Ne=false;j.querySelector('#wb-send-image').style.pointerEvents='auto';j.querySelector("#wb-send-image").style.opacity="0.90"}function on(){if(N('chattext')&&N('chattext').endsWith("

")){Ve=false;j.querySelector('#onwbtxtarea').style.pointerEvents='none';j.querySelector("#onwbtxtarea").disabled=true;j.querySelector('#wb-send-image').style.pointerEvents='none';j.querySelector('#wb-smile-image').style.pointerEvents='none';j.querySelector("#onwbtxtarea").style.opacity="0.42";j.querySelector("#wb-send-image").style.opacity="0.42";j.querySelector("#wb-smile-image").style.opacity="0.42";j.querySelector("#onwbtxtarea").setAttribute("placeholder","");disableMenuItem("uploadfileid")}}function rn(){Ve=true;try{j.querySelector('#onwbtxtarea').style.pointerEvents='auto';j.querySelector("#onwbtxtarea").disabled=false;j.querySelector('#wb-send-image').style.pointerEvents='auto';j.querySelector('#wb-smile-image').style.pointerEvents='auto';j.querySelector("#onwbtxtarea").style.opacity="1";j.querySelector("#wb-send-image").style.opacity="0.90";j.querySelector("#wb-smile-image").style.opacity="0.78";j.querySelector("#onwbtxtarea").setAttribute("placeholder",R('max_placeholder',C))}catch(e){}enableMenuItem("uploadfileid")}try{var an=function(e,t){if(I==1&&u==0){if(typeof sessionStorage!=="undefined"&&N('hasTriggered')!='1'&&H('hasTriggeredC')!=1&&H('inChatC')!=1&&N('chattext')==""){if(N('maxChat')==1&&$e==1){}else{d();if(T!=0){pn('onWebChat','Trigger activated','');z('hasTriggered',1);B('hasTriggeredC',1,.166);z('mustSendTriggerText',true);a=true;z('triggerText',e);if(R('max_served',C)!=""&&t!=""&&t!="null"&&t!=null){Lo('

'+R('max_served',C).replace('{{operator}}',t).replace('{{agent}}',t)+'

');Fe="";z('hasWrSeByTr',true)}var n="";n=" agent-bubble ";var o="";var r='';var i="";if(Fe!='agent'){n=n+" agent-first ";if(Se==1){r='Operator avatar'}}if(Se==1){i=" big-margin-left "}if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}Po();Lo('

'+r+''+R('max_agent',C).replace('{{operator}}',t).replace('{{agent}}',t)+' '+fn(e).replace(/({{newline}})/gm,"
")+'

',"",true);Fe="agent";if(N('maxChat')!=1){}if(F){V.emit('setclientstatus','triggered')}}}}}else{}};function ln(e){if(e==1){if(G==1){clearTimeout(ae);if(Ft!=-1){ae=setTimeout(sn,Ft*1e3,zt,1)}}else{}}else if(e==2){clearTimeout(ie);if(Dt!=-1){ie=setTimeout(sn,Dt*1e3,Nt,2)}}}function sn(e,t){if(t==1&&typeof sessionStorage!=="undefined"&&N('hasTriggeredNoReplyAnyone')!='1'&&H('hasTriggeredNoReplyAnyoneC')!=1||t==2&&typeof sessionStorage!=="undefined"&&N('hasTriggeredNoReplyAgent')!='1'&&H('hasTriggeredNoReplyAgentC')!=1){if(T!=0){pn('onWebChat','Trigger (no reply) activated','');if(t==1){z('hasTriggeredNoReplyAnyone',1);B('hasTriggeredNoReplyAnyoneC',1,.166)}else if(t==2){z('hasTriggeredNoReplyAgent',1);B('hasTriggeredNoReplyAgentC',1,.166)}S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=624;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}if(V&&V.emit){V.emit('sendchat',"",e,0,0,624,Le,X,Gt,obj)}hn();var n="";n=" agent-bubble ";var o="";var r=" big-margin-left ";if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}var i="";Lo('

'+R('max_agent',C).replace('{{operator}}',i).replace('{{agent}}',i)+' '+fn(e).replace(/({{newline}})/gm,"
")+'

');if(F){}}}}}catch(i){console.log("exception trigger");console.log(i)}if($==1&&tt==0){}else{let e=o.length;for(var O=0;Oo[O].delay){zt=o[O].text;Ft=o[O].delay}}else if(o[O].type=='2'){if(Dt==-1||Dt>o[O].delay){Nt=o[O].text;Dt=o[O].delay;if(o[O].onlyFirstVisitorMessage==1){Ut=1}else{Ut=0}}}continue}if(o[O].isFullSite==1&&o[O].whole==0){setTimeout(an,o[O].delay*1e3,o[O].text,o[O].agentName)}else if(o[O].isFullSite==1&&o[O].whole==1){Vt=true;let e;try{e=o[O].delay-N('secOnSite')}catch(i){console.log(i)}if(e>=0){setTimeout(an,e*1e3,o[O].text,o[O].agentName)}}else if(o[O].isFullSite==0){var cn=o[O].urls;var dn=false;var un=cn.length;for(var r=0;r-1){dn=true;break}}if(dn){setTimeout(an,o[O].delay*1e3,o[O].text,o[O].agentName)}}}}if(Vt){setInterval(function(){if(N('secOnSite')===undefined||N('secOnSite')=='NaN')z('secOnSite',0);Zt++;z('secOnSite',parseInt(N('secOnSite'))+1)},1e3)}function fn(e){return e.replace(/&/g,"&").replace(//g,">")}var pn=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 hn(){if(An){if(j.querySelector("#onwebchataudio").innerHTML.trim()==""){j.querySelector("#onwebchataudio").innerHTML=''}var e=j.querySelector("#onwebchataudio");try{e.play()}catch(e){}}else{}}var R=function(e,t){if(n[t]&&n[t][e]){return n[t][e]}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(n[t]&&n[t][e]==undefined||n[t]&&n[t][e]==""){return""}else{if(n[p]&&n[p][e]){return n[p][e]}else{return""}}}};var mn=function(e,t){if(n[e]&&n[e][t]){return n[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(n[e]==undefined)return"";else return n[e]['l1']}};var yn={en:"You're chatting with an AI assistant.",el:"Συνομιλείτε με έναν AI βοηθό.",de:"Sie chatten mit einem KI-Assistenten.",fr:"Vous discutez avec un assistant IA.",es:"Estás hablando con un asistente de IA.",it:"Stai chattando con un assistente IA.",pt:"Está a conversar com um assistente de IA.",nl:"Je chat met een AI-assistent.",pl:"Rozmawiasz z asystentem AI.",ro:"Discuți cu un asistent AI.",sv:"Du chattar med en AI-assistent.",da:"Du chatter med en AI-assistent.",fi:"Keskustelet tekoälyavustajan kanssa.",cs:"Chatujete s AI asistentem.",sk:"Chatujete s AI asistentom.",bg:"Разговаряте с AI асистент.",hr:"Razgovarate s AI asistentom.",hu:"Egy MI-asszisztenssel beszélget.",sl:"Klepetate z AI-pomočnikom.",et:"Vestlete tehisintellekti assistendiga.",ga:"Tá tú ag comhrá le cúntóir intleachta saorga.",lv:"Jūs tērzējat ar MI asistentu.",lt:"Bendraujate su DI asistentu.",mt:"Qed titkellem ma' assistent tal-IA.",lb:"Dir schwätzt mat engem KI-Assistent.",ru:"Вы общаетесь с ИИ-ассистентом.",tr:"Bir yapay zeka asistanıyla sohbet ediyorsunuz.",ar:"أنت تتحدث مع مساعد ذكاء اصطناعي."};function gn(){return yn[C]||yn[p]||yn.en}function bn(){try{var e=j.querySelector('#onwc_ai_badge');if(e){e.classList.add('onwc-show');e.title=gn();e.setAttribute('aria-label',gn())}}catch(e){}}function wn(){try{var e=j.querySelector('#onwc_ai_badge');if(e)e.classList.remove('onwc-show')}catch(e){}}function vn(){try{if(N('onwc_ai_disclosure_shown')==1)return;var e=j.querySelector('#chat_area_id');if(!e)return;e.insertAdjacentHTML('beforeend','
'+fn(gn())+'
');z('onwc_ai_disclosure_shown',1);e.scrollTop=9999999}catch(e){}}function _n(){if(ze==1||Bt==1&&N('onwc_human_serving')!=1){bn();if(ze==1)vn()}else{wn()}}if($){z('maxChat',0)}try{for(var r=0;rn.length){t=n.length}t-=e.length;var o=n.indexOf(e,t);return o!==-1&&o===t}}function B(e,t,n){var o=new Date;o.setTime(o.getTime()+n*24*60*60*1e3);var r="expires="+o.toGMTString();document.cookie=e+"="+t+"; "+r+";path=/"}function Sn(e){B(e,'',-1)}function H(e){var t=e+"=";var n=document.cookie.split(';');for(var o=0;o=o&&c<=e){a.push(c)}}}}catch(e){}}var d=0;var u=0;var f=a.length;for(l=0;l=t)d++;if(a[l]>=n)u++}if(d>=3||u>=8||f>=30){z(r,JSON.stringify(a));return false}a.push(e);z(r,JSON.stringify(a));return true}function Pn(e){try{var t=window[e];var n='iiric';t.setItem(n,n);t.removeItem(n);return true}catch(e){return false}}var D=document.location.protocol;if(D=='file:')D="https:";var Mn=document.location.port;if(document.location.protocol==undefined||Mn==''||Mn=='80'||Mn=='443'){Mn=''}else{Mn=':443'}serverIP="www.onwebchat.com";var In="1";var jn=false;var F=false;var U=false;var Z=true;var Ln=816e5;if(Ye=='free'){Ln=444e5}var Wn;var V;var En={};var X="";var An=true;An=xn('onwbchtSound');if(An==''||An==null){An=true;kn("onwbchtSound",1)}else if(An==0){An=false}X=xn('onwbchtclientid');if(X==null){X=''}if(X==''||X==null){}else if(We==1&&e==1){We=0}function On(){var e=navigator.userAgent.toLowerCase();var t=e.indexOf('msie ');var n=e.indexOf('trident/');var o=e.indexOf('edge/');if(t>0){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 Rn(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}var Bn=function(n,o,r){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()}};t.onerror=function(){if(r&&!o.done){Bn(r,o)}};var e=document.getElementsByTagName('head')[0];e.insertBefore(t,e.firstChild)},jdelay)};if(typeof JSON==='undefined'){jn=true}var Hn=false;if(Nn()){Hn=true}function Nn(){try{return window.self!==window.top}catch(e){return false}}if(typeof String.prototype.trim!=='function'){String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}}function zn(){U=true;if(V===null||V===undefined){qo();return}V.connect();if(On()!=8){Wn=setTimeout(function(){if(V&&V.io){V.io.disconnect()}Jn()},Ln)}}var Dn=null;var Fn=null;function Un(){if(Dn){clearTimeout(Dn);Dn=null}if(Fn){clearTimeout(Fn);Fn=null}const e=j.querySelector("#onwbchat_window");e.style.setProperty("transform","scale(0.87)","important");e.style.setProperty("transition","transform 0.25s ease-out","important");e.offsetHeight;setTimeout(()=>{e.style.setProperty("transform","scale(1)","important");setTimeout(()=>{e.style.removeProperty("transition");e.style.removeProperty("transform")},250)},10);j.querySelector("#onwbchat_window").style.setProperty("animation-iteration-count","0");j.querySelector("#onwbchat_window").style.setProperty("box-shadow","#c5c5c58c 0px 0em 15px","important");if(Be==1||$){j.querySelector("#onwbchat_window").style.setProperty("display","block")}if(j.querySelector("#div_chat_max_title").style.display=="none"){s()}if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","none");if(j.querySelector("#outer_agent_bubble"))j.querySelector("#outer_agent_bubble").style.setProperty("display","none","important");if(j.querySelector("#onweb_chatimage_x"))j.querySelector("#onweb_chatimage_x").style.setProperty("display","none");if(nt!=1&&I==0&&(N('chattext')==null||N('chattext')=='')){P="offline";j.querySelector('#chat_area_id').style.setProperty('display','none','important');j.querySelector('#onwc_chat_message_div').style.display='none';j.querySelector('#chat_info_id').style.display='none';j.querySelector('#offline_form').style.display='block';j.querySelector("#div_chat_max_title_span").textContent=R('off_title',C);if(j.querySelector("#div_chat_max_title_sub_span"))j.querySelector("#div_chat_max_title_sub_span").textContent=R('off_subtitle',C)||'';j.querySelector('#prechat_form').style.display='none';var t=j.querySelector('#onwc-settings-icon-id');if(t)t.style.display='none';Vn();Po();Co()}else{if($e==1&&(N('chattext')||"").length===0){P="prechat";j.querySelector('#chat_area_id').style.setProperty('display','none','important');j.querySelector('#onwc_chat_message_div').style.display='none';j.querySelector('#chat_info_id').style.display='none';j.querySelector('#offline_form').style.display='none';j.querySelector('#prechat_form').style.display='block';j.querySelector("#div_chat_max_title_span").textContent=R('max_title',C);if(j.querySelector("#div_chat_max_title_sub_span"))j.querySelector("#div_chat_max_title_sub_span").textContent=R('max_subtitle',C)||'';var n=j.querySelector('#onwc-settings-icon-id');if(n)n.style.display='none';Vn();Po();Co()}else{P="chat";j.querySelector('#chat_area_id').style.display='block';j.querySelector('#onwc_chat_message_div').style.display='block';j.querySelector('#chat_info_id').style.display='block';if(Ho()){setTimeout(function(){const e=j.querySelector('.welcome-message');if(!e){To()}},100)}j.querySelector('#offline_form').style.display='none';j.querySelector('#prechat_form').style.display='none';var o=j.querySelector('#onwc-settings-icon-id');if(o)o.style.display='';Vn();j.querySelector("#div_chat_max_title_span").textContent=R('max_title',C);if(j.querySelector("#div_chat_max_title_sub_span"))j.querySelector("#div_chat_max_title_sub_span").textContent=R('max_subtitle',C)||''}}if($){j.querySelector("#onwbchat_window").style.setProperty("height","100%");j.querySelector("#onwbchat_window").style.setProperty("max-height","100%");j.querySelector("#onwbchat_window").style.setProperty("border-radius","0px","important");j.querySelector("#webchat_header").style.setProperty("border-radius","0px","important");var r=j.querySelector("#onwbchat_window").clientWidth;j.querySelector("#onwbtxtarea").style.setProperty("width",r-48-23+"px","important");j.querySelector("#chat_area_id").style.setProperty("width",r-0+"px","important");j.querySelector("#webchat_header").style.setProperty("width",r+"px","important");if(typeof checkMobileChatHeight==='function')checkMobileChatHeight();Xn();setTimeout(function(){Xn()},0)}else{j.querySelector("#onwbchat_window").style.setProperty("height",rt+"px","important");j.querySelector("#onwbchat_window").style.setProperty("top",re+"px");j.querySelector("#onwbchat_window").style.setProperty("left",oe+"px");j.querySelector("#onwbchat_window").style.setProperty("bottom","14px","important")}j.querySelector("#div_chat_min_title").style.setProperty("line-height",42+"px","important");j.querySelector("#webchat_header").style.setProperty("height",lt+"px","important");j.querySelector("#webchat_header").style.setProperty("cursor","pointer");j.querySelector("#div_chat_max_title").style.setProperty("display","block");j.querySelector("#webchat_header").classList.add("onwc-maximized");j.querySelector("#div_chat_min_title").style.setProperty("display","none");if(j.querySelector('#off-form-onwebchat-logo'))j.querySelector('#off-form-onwebchat-logo').style.display='block';if(j.querySelector('#onwebchat-logo-span'))j.querySelector('#onwebchat-logo-span').style.display='block';z('maxChat',1);loadEmoticons();K();Zn();Xn();setTimeout(function(){Xn()},0);Kn();_n();return false}function Zn(){var e=j.querySelector("#div_chat_max_title_span");if(e)e.style.setProperty("padding-left","0","important")}function Vn(){var e=j.querySelector('#onweb_minimize_btn_icon_id');if(!e)return;var t=j.querySelector('#onwc-settings-icon-id');var n=!t||t.style.display==='none';e.style.setProperty("right",n?"19px":"8px","important")}function Xn(){if(!$||P!=="offline"&&P!=="prechat")return;var e=j.querySelector("#onwbchat_window");e.style.setProperty("height","100%","important");e.style.setProperty("max-height","100%","important");e.style.setProperty("min-height","100%","important");try{e.style.setProperty("height","100dvh","important");e.style.setProperty("max-height","100dvh","important");e.style.setProperty("min-height","100dvh","important")}catch(e){}$n(P==="offline"?"#offline_form":"#prechat_form",".onwebchatform_div, .onweboffline_msg, input, textarea")}function $n(e,t){var n=j.querySelector(e);if(!n)return;var o=[n];var r=n.querySelectorAll(t);for(var i=0;i{Dn=null;e.style.removeProperty("transition");e.style.removeProperty("transform");if(Be==1||$){j.querySelector("#onwbchat_window").style.setProperty("display","none")}if(Be==0&&!$){j.querySelector("#onwbchat_window").style.setProperty("display","none");Fn=setTimeout(function(){Fn=null;j.querySelector("#onwbchat_window").style.setProperty("display","block")},200)}t()},250);function t(){if(j.querySelector('#div_chat_max_title').style.display=="block"){c()}z('maxChat',0);setTimeout(function(){j.querySelector('#chat_area_id').style.setProperty('display','none','important');j.querySelector('#onwc_chat_message_div').style.display='none';j.querySelector('#chat_info_id').style.display='none';j.querySelector('#scrollToBottomButton').style.display='none';if(j.querySelector("#prechat_form"))j.querySelector('#prechat_form').style.display='none';j.querySelector("#onwbchat_window").style.setProperty("height","66px");j.querySelector('#webchat_header').style.cursor='pointer';if((N('hideImage')==0||N('hideImage')==null)&&j.querySelector("#onwebchat_chatimage")){j.querySelector("#onwebchat_chatimage").style.setProperty("display","inline");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","block");j.querySelector("#onwebchat_chatimage").style.setProperty("cursor","pointer");j.querySelector("#onwebchat_chatimage").style.setProperty("animation-iteration-count","0")}if(T==0){if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","none")}try{if(j.querySelector('#onweb_chatimage_x')){j.querySelector('#onweb_chatimage_x').style.display='inline';onweb_chatimage_loaded()}}catch(e){}j.querySelector("#div_chat_min_title").style.setProperty("display","block");j.querySelector("#div_chat_max_title").style.setProperty("display","none");j.querySelector("#webchat_header").classList.remove("onwc-maximized");if(j.querySelector('#off-form-onwebchat-logo'))j.querySelector('#off-form-onwebchat-logo').style.display='none';if(j.querySelector('#onwebchat-logo-span'))j.querySelector('#onwebchat-logo-span').style.display='none';j.querySelector("#onwbchat_window").style.setProperty("box-shadow","0px 0em 15px rgba(197, 197, 197, 0.55)","important");if(!$){j.querySelector("#onwbchat_window").style.setProperty("top","initial");j.querySelector("#onwbchat_window").style.setProperty("left","initial");j.querySelector("#onwbchat_window").style.setProperty(ct,dt+"px");j.querySelector("#webchat_header").style.setProperty("height","40px","important");j.querySelector("#onwbchat_window").style.setProperty("height","40px","important");j.querySelector("#onwbchat_window").style.setProperty("bottom","0px","important")}},100);return false}}function Yn(){Qn(j.querySelector("#onwbchat_window"));Qn(j.querySelector("#onwebchat_chatimage"));Qn(j.querySelector("#onwebchat_chatimage_div"));Qn(j.querySelector("#outer_agent_bubble"))}function Qn(e){if(e){e.classList.remove('onwc-show');e.classList.add('onwc-hide');fadeTimout=setTimeout(function(){e.style.setProperty("display","none")},400)}}function Gn(){j.querySelector("#onwbchat_window").classList.remove('onwc-hide');if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").classList.remove('onwc-hide');if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").classList.remove('onwc-hide');try{}catch(e){console.log(e)}if(Be==0&&$==false){j.querySelector("#onwbchat_window").style.setProperty("display","block")}if(N('hideImage')==1){if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","none")}if(N('hideImage')==0){if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","inline");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","inline")}if(N('maxChat')==1){Un()}else{j.querySelector('#chat_area_id').style.setProperty('display','none','important');j.querySelector('#onwc_chat_message_div').style.display='none';j.querySelector('#chat_info_id').style.display='none'}setTimeout(function(){let e=to(j.querySelector('#onwebchat_chatimage'));if(e==0){e=60}else{e=e+16}let t=j.querySelector("#outer_agent_bubble");if(j.querySelector("#outer_agent_bubble_span")){t.style.setProperty("bottom",e+"px","important");if(N('outeragentbubbletext')&&N('outeragentbubbletext')!=''&&j.querySelector('#outer_agent_bubble_span').textContent==""){if(j.querySelector("#outer_agent_bubble_span")){j.querySelector('#outer_agent_bubble_span').insertAdjacentHTML("beforeend",N('outeragentbubbletext'))}if(N('maxChat')!=1){t.style.setProperty("display","grid","important");eo()}}}t.addEventListener('click',function(){Un();j.querySelector("#onwbtxtarea").focus()});j.querySelector("#outer_agent_bubble_x").addEventListener('click',function(e){e.stopPropagation();t.style.setProperty("display","none","important");qn('outeragentbubbletext')});window.addEventListener('resize',function(){if(t.style.display!=="none"){eo()}})},500)}function eo(){try{var i=j.querySelector('#onwebchat_chatimage');var a=j.querySelector('#outer_agent_bubble');if(!i||!a)return;a.style.setProperty("visibility","hidden","important");setTimeout(function(){a.style.setProperty("left","auto","important");a.style.setProperty("right","0px","important");var e=i.getBoundingClientRect();var t=a.getBoundingClientRect();var n=e.left+e.width/2;var o=t.width/2;var r=n-o;if(r<5)r=5;if(r+t.width>window.innerWidth-5){r=window.innerWidth-t.width-5}a.style.setProperty("left",r+"px","important");a.style.setProperty("right","auto","important");a.style.setProperty("visibility","visible","important")},50)}catch(e){}}function to(o){if(o!=null){const e=o.getBoundingClientRect().top;const t=window.innerHeight;const n=t-e;return n}else return 0}function no(){if(P==="offline"||P==="prechat"){return}if(!Ho()&&!No()){return}if(Ae==1&&h){try{var e;if(typeof h==='string'){e=JSON.parse(h)}else{e=h}if(e&&e.length>0){oo(e)}else{}}catch(e){}}else{}}function oo(e){var t=j.querySelector('#reply_buttons_container');var n=j.querySelector('#reply_buttons_list');if(!t||!n){return}checkMobileChatHeight();n.innerHTML='';var o=0;for(var r=0;r0){e.style.setProperty("height",t+(n-r)+"px","important")}}}function d(){let e;if(j.querySelector("#prechat_form").style.getPropertyValue('display')=='block'){e=j.querySelector('#prechat_btn')}else{e=j.querySelector('#offlineform_btn')}let t=j.querySelector('#onwbchat_window').getBoundingClientRect().bottom-e.getBoundingClientRect().bottom;return t}}}}function so(){if(Object.assign){Object.assign(window,window.__requirejsToggleBackup);delete window.__requirejsToggleBackup}document.getElementsByTagName('head')[0].insertAdjacentHTML('beforeend',"");vo(e);function e(){if(Je){if(co()){bo()}else{}}if(u==1){j.querySelector("#onwebchat_chatimage").style.setProperty('display','none');if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty('display','none')}setTimeout(function(){K()},5);if(!jn){if(N('chattext')==null)z('chattext','');if((T==1||I==1||nt!=1||N('chattext')!=='')&&u==0&&T!==0){Gn()}}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){qo()}else{}if($){j.querySelector("#onwebchat-widget-settings-submenu-ul").setAttribute("style","transform:scale(1.12); transform-origin: top right;");j.querySelector("#onweboffline_msg_id").style.setProperty('font-size','16px');j.querySelector("#offlineform_btn").style.setProperty('font-size','16px');j.querySelector("#chat_area_id").setAttribute("style","font-size:120% !important");j.querySelector("#onwc_chat_message_div").setAttribute("style","height:64px !important");j.querySelector("#onwbtxtarea").setAttribute("style","max-width:83% !important");j.querySelector("#onwbchat_window").style.setProperty("max-height","650px","important")}}}function co(){if(j.querySelector("#wb-mic-image")){j.querySelector("#wb-mic-image").style.display="none"}if(j.querySelector("#wb-rec-image")){j.querySelector("#wb-rec-image").style.display="none"}if(!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia){return false}if(!uo()){return false}return true}function uo(){window.SpeechRecognition=window.SpeechRecognition||window.webkitSpeechRecognition||window.mozSpeechRecognition||window.msSpeechRecognition||window.oSpeechRecognition;return window.SpeechRecognition!==undefined}var l=null;var fo=false;function po(){if(!uo()){return}l=new window.SpeechRecognition;l.continuous=false;l.interimResults=true;const e=N('speechRecognitionLang');l.lang=e||C||'en-US';ho();l.onresult=function(e){var t='';for(var n=e.resultIndex;ne.code&&e.name).filter(e=>{if(n.has(e.code)){return false}n.add(e.code);return true});o.forEach(e=>{const t=document.createElement('div');t.className='lang-option';t.textContent=e.name;t.dataset.langCode=e.code;if(e.code===l.lang){t.style.backgroundColor='#f0f0f0';t.style.fontWeight='bold'}t.addEventListener('click',function(e){e.stopPropagation();const t=this.dataset.langCode;const n=fo;if(fo){go()}l.lang=t;if(n){yo()}const o=t.split('-');r.innerHTML=o[0].toUpperCase();i.style.display='none';z('speechRecognitionLang',t);document.querySelectorAll('.lang-option').forEach(e=>{e.style.backgroundColor='';e.style.fontWeight='normal';if(e.dataset.langCode===t){e.style.backgroundColor='#f0f0f0';e.style.fontWeight='bold'}})});i.appendChild(t)});j.querySelector('#onwc_chat_message_div').appendChild(i);r.addEventListener('click',function(e){e.stopPropagation();if(i.style.display==='none'){i.style.display='block';if($){$n("#lang-dropdown",".lang-option")}}else{i.style.display='none'}});function a(){i.style.display='none'}i.closeDropdownHandler=a;document.addEventListener('click',a);j.querySelector('#onwc_chat_message_div').appendChild(r)}}function mo(){if(!l){po()}if(fo){go()}else{navigator.mediaDevices.getUserMedia({audio:true}).then(function(e){e.getTracks().forEach(e=>e.stop());yo()}).catch(function(e){alert("Microphone access is required for speech recognition.")})}}function yo(){if(!l){po()}try{l.start();fo=true;if(j.querySelector("#onwbtxtarea")){j.querySelector("#onwbtxtarea").placeholder=R('recording_placeholder',C)||"Listening..."}if(j.querySelector("#wb-mic-image")){j.querySelector("#wb-mic-image").style.display="none"}if(j.querySelector("#wb-rec-image")){j.querySelector("#wb-rec-image").style.display="block"}if(j.querySelector("#lang-toggle-btn")){j.querySelector("#lang-toggle-btn").style.display="block"}}catch(e){}}function go(){if(j.querySelector("#wb-mic-image")){j.querySelector("#wb-mic-image").style.display="none"}if(j.querySelector("#lang-toggle-btn")){j.querySelector("#lang-toggle-btn").style.display="none"}if(l&&fo){try{l.stop()}catch(e){}}fo=false;if(j.querySelector("#wb-rec-image")){j.querySelector("#wb-rec-image").style.display="none"}if(j.querySelector("#onwbtxtarea").value.trim().length>0){if(j.querySelector("#wb-send-image")){j.querySelector("#wb-send-image").style.display="block";j.querySelector("#wb-send-image").style.visibility="visible"}}else{if(j.querySelector("#wb-mic-image")){j.querySelector("#wb-mic-image").style.display="block"}j.querySelector("#onwbtxtarea").placeholder=R('max_placeholder',C)}}function bo(){if(j.querySelector("#wb-mic-image")){j.querySelector("#wb-mic-image").addEventListener("click",function(){mo()})}if(j.querySelector("#wb-rec-image")){j.querySelector("#wb-rec-image").addEventListener("click",function(){go()})}}function wo(e,t,n){j.querySelector('#scrollToBottomButton').style.visibility='hidden';var o=e.scrollTop;var r=o+r;var i=e.scrollHeight-e.clientHeight;var a=0;var l=(i-o)/t;function s(){o=o+l;e.scrollTop=o;a++;if(o>=i){clearInterval(c);j.querySelector('#scrollToBottomButton').style.visibility='visible'}}var c=setInterval(s,n)}function vo(t){if(document.querySelectorAll(".onwebchatbox").length==0){if(I==1){div_chat_min_title=R('min_online',C)}else{div_chat_min_title=R('min_offline',C)}var n=' by onWebChat';var o=n.replace("l=2&","");if(Qe==1){o="";n=""}if($){if(I==1)image_name=qe;else image_name=xe}else{if(I==1)image_name=ke;else image_name=Ce}let e='';const v=R('max_msg',C);if(v!==''){let e='';if(v.length>130){e='margin-top: 9% !important;'}}else if(R('max_msg',C)==''){e=''}tempSaveSt='';if(!On())tempSaveSt='
  • '+R('menu_save',C)+'
  • ';var r="";var i="";var a="";if(E==1){var l="";var s="";var c=R('consent_text',C).replace(/<[^>]*>/g,'').replace(/&/g,'&').replace(/"/g,'"').replace(/\s+/g,' ').trim();if(A==1){l='';s='padding-left: 0px;text-indent:0px;'}r='';i=r.replace(/_offline/g,'_prechat');a=r.replace(/_offline/g,'_inchat_modal')}if($!=1||tt==1){if(On()!=8){document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend','
    '+'
    '+'
    '+'
    '+'
    '+'
    '+''+'
    '+'
    '+div_chat_min_title+''+'
    '+'
    '+'
    '+'
    '+'
    '+'
    '+'
    '+''+''+'AI'+''+''+'
    '+'
    '+''+'
    '+'
    '+'
    '+'
    '+'
    '+R('off_msg',C)+'
    '+'
    '+(pt==0?'':'')+(mt==0?'':'')+(gt==0?'':'')+''+''+''+r+''+o+'
    '+'
    '+'
    '+'
    '+'
    '+R('prechat_msg',C)+'
    '+'
    '+(wt==0?'':'')+(_t==0?'':'')+(qt==0?'':'')+(Ct==0?'':'
      ')+''+i+''+o+'
      '+'
      '+'
      '+'
      '+e+'
      '+'
      '+'
      '+'
      '+''+'
      '+'
      '+'
      '+''+'
      '+''+''+''+''+''+''+'
      '+'
      '+'
        '+'
      • '+R('menu_send_file',C)+'
      • '+'
      • '+R('menu_email',C)+'
      • '+'
      • '+R('menu_print',C)+'
      • '+tempSaveSt+'
      • '+Me+''+R('menu_sound',C)+'
      • '+'
      • '+R('menu_end_chat',C)+'
      • '+'
      '+n+''+'
      '+'
      ×
      File size larger than 50 Mb
      '+'
      ×
      File type not allowed
      '+'
      '+'
      '+R('email_text',C)+'
      '+'
      '+'
      ×
      '+R('email_sent',C)+'
      '+'
      '+R('end_chat_msg',C)+'
      '+'
      '+'
      '+R('rating_msg',C)+'
      '+'
      '+'
      '+''+R('rating_no_msg',C)+''+'
      '+'
      '+'
      '+a+'
      '+'
      '+'
      '+'
      ')}}setTimeout(function(){j=document.getElementById("onwebchat_code");d();t()},0);function d(){var e='';var t=j.querySelector("#webchat_header_image_wrap");if(t){if(Ge&&Ge!==''&&Ge!=='#'+'header_image'){var n=document.createElement('img');n.id='webchat_header_image';n.alt='';n.src=D+'//'+serverIP+'/filesUpload/headerImages/'+Ge;n.onerror=function(){t.innerHTML=e};t.appendChild(n)}else{t.innerHTML=e}}if(v!==''){let e='';if(v.length>130){e='margin-top: 9% !important;'}}openonwcDepartMenu=function(){V.emit('askdepartments',M);widthtemp=j.querySelector("#departments").offsetWidth;j.querySelector("#onwcdepartmenu").style.setProperty("width",widthtemp+"px","important")};onwcmenuliclick=function(e){j.querySelector("#departments").value=e.children[0].innerText;W=e.children[1].innerText.trim();V.emit('visitorselectdepartment',M,W);setTimeout(function(){j.querySelector("#departments").style.setProperty("border","1px solid #CCC","important")},0)};consentTextClicked=function(){if(A==1){var e=j.querySelector("#onwc_consent_checkbox_inchat_modal");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}e=j.querySelector("#onwc_consent_checkbox_offline");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}e=j.querySelector("#onwc_consent_checkbox_prechat");if(e){e.checked=!e.checked;e.dispatchEvent(new Event("change"))}}};toggleModal=function(e,t){j.querySelector("#"+e).classList.toggle("show-onwcmodal",t);if(e=='onwcEmailModal'){j.querySelector("#onwcemailtrans").focus();setTimeout(function(){j.querySelector("#onwcemailtrans").focus()},1e3)}};function o(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(j.querySelector("#onwcdepartmenu"))j.querySelector("#onwcdepartmenu").style.setProperty("display","none","important")}if(!$&&Ve&&N('maxChat')==1){var t=e.target;var n=j.querySelector("#onwbtxtarea");var o=window.getSelection?window.getSelection().toString():'';if(n&&!n.disabled&&o.length===0&&!j.querySelector('.onwcmodal.show-onwcmodal')&&t&&t.closest&&!t.closest('a, button, input, select, textarea, img, video, [role="button"], li, label, #webchat_header')){n.focus()}}}if(document.getElementById('onwbchat_window'))document.getElementById('onwbchat_window').addEventListener("click",o);checkPhone=function(e){e.value=e.value.replace(/[^\d -]/g,'')};emailTranscript=function(){if(!Ho()&&Jt<6){j.querySelector("#onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEmailModal");j.querySelector("#onwcemailtrans").focus()}};clickConsentModalOk=function(){var e=-1;if(j.querySelector("#onwc_consent_checkbox_inchat_modal"))e=j.querySelector("#onwc_consent_checkbox_inchat_modal").value;if(A==1&&j.querySelector("#onwc_consent_checkbox_inchat_modal").checked==false)j.querySelector("#onwc_consent_l_inchat_modal").style.setProperty("color","#D04848");else if(A==1&&j.querySelector("#onwc_consent_checkbox_inchat_modal").checked==true){B("consentvalue",2,93);toggleModal('onwcConsentModal',false);if(V&&V.emit){V.emit('setconsentsettings',X,e,E,A)}}else if(E==1&&A!=1){B("consentvalue",1,93);toggleModal('onwcConsentModal',false);if(V&&V.emit){V.emit('setconsentsettings',X,e,E,A)}}};if(j.querySelector("#onwc_consent_checkbox_inchat_modal"))j.querySelector("#onwc_consent_checkbox_inchat_modal").addEventListener('change',function(){if(j.querySelector("#onwc_consent_checkbox_inchat_modal").checked==true){j.querySelector("#onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}});endChatClicked=function(){if(ve==true){j.querySelector("#onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");toggleModal("onwcEndChatModal",true)}};endChatFunction=function(){if(N('chattext')!=""){z('chattext','');disableMenuItem("onwebchat-print-li");disableMenuItem("onwebchat-savetofile-li");disableMenuItem("onwebchat-email-li");disableMenuItem('onwebchat-endchat-li');ve=false;let o=j.querySelector('#chat_area_id');if(o){const e=Array.from(o.childNodes);for(const n of e){const e=n.nodeType===1&&n.id==='operatorImage';const t=n.nodeType===1&&n.id==='reply_buttons_container';if(!e&&!t){try{o.removeChild(n)}catch(e){}}}}setTimeout(function(){To()},100);setTimeout(function(){if(Ae==1){var e=j.querySelector('#reply_buttons_container');if(e){e.style.display='block'}no()}},150);if(I==0&&nt!=1){Gn()}if(V&&V.emit){V.emit('close_dialog_visitor')}me("visitor");z("servingOpImage","");if(j.querySelector("#departments")){j.querySelector("#departments").value="";j.querySelector("#departments").placeholder=R('departments',C)}j.querySelector('#onprechattext').value='';W=0}toggleModal('onwcEndChatModal',false);if(Ee==1&&H('inChatC')==1&&Re==0){toggleModal("onwcRatingChatModal",true)}Re=0;z("isRated",0);clearTimeout(ae);clearTimeout(ie);z('hasTriggeredNoReplyAgent',0);B('hasTriggeredNoReplyAgentC',0,.166);z('hasTriggeredNoReplyAnyone',0);B('hasTriggeredNoReplyAnyoneC',0,.166);G=0;ee=0;z("AHSALOM",0);z("chatWithBot",0);ze=0;z('onwc_human_serving',0);z('onwc_ai_disclosure_shown',0);_n();B('inChatC',0,.166)};rate=function(e){this.rating=e;j.querySelector("#sendStarButton").classList.remove("disabled");j.querySelector("#sendStarButton").removeAttribute("disabled");for(O=1;O<=e;O++){var t="onwcstar"+O;j.querySelector("#"+t).style.setProperty("color","#ffb900","important")}for(O=e+1;O<=5;O++){var t="onwcstar"+O;j.querySelector("#"+t).style.setProperty("color","#aeaeae","important")}};sendRate=function(){if(V&&V.emit){V.emit('ratechat',M,Oe,this.rating)}toggleModal('onwcRatingChatModal',false);if(H('inChatC')==0){Re=0;z("isRated",0)}else{Re=1;z("isRated",1)}};sendEmailTranscript=function(){if(!Rn(j.querySelector('#onwcemailtrans').value)){j.querySelector("#onwcemailtrans").focus();j.querySelector("#onwcemailtrans").style.setProperty("border","1px solid #D04848","important")}else if(Jt<6){var e=(new Date).getTimezoneOffset()/60*-1;if(V&&V.emit){V.emit('onwcemailtranscript',X,M,j.querySelector("#onwcemailtrans").value,e,Qt)}toggleModal("onwcEmailModal",false);var t=H('onwbchtemailsSent');Jt++;if(t==""){B('onwbchtemailsSent',1,.0416)}else{B('onwbchtemailsSent',parseInt(t)+1,.0416)}}};if(j.querySelector("#onwcemailtrans"))j.querySelector("#onwcemailtrans").addEventListener('keyup',function(){if(Rn(j.querySelector('#onwcemailtrans').value)){j.querySelector("#onwcemailtrans").style.setProperty("border","1px solid #909090","important")}});if(I==1){rn()}else{on()}if(Be==1){j.querySelector("#onwbchat_window").style.setProperty('display','none')}if(I==1){if(j.querySelector("#onweb-offline-icon"))j.querySelector("#onweb-offline-icon").style.setProperty('display','none')}else{if(j.querySelector("#onweb-online-icon"))j.querySelector("#onweb-online-icon").style.setProperty('display','none')}if(I==1&&be!=""){j.querySelector("#webchat_header").style.setProperty('background-color',be,'important')}else if(k!=""){j.querySelector("#webchat_header").style.setProperty('background-color',k,'important');j.querySelector("#offlineform_btn").style.setProperty('background-color',k,'important')}if(It==0){j.querySelector('#onwc-settings-icon-id').remove();Vn()}if(Lt==0&&jt==0&&Wt==0&&Et==0&&At==0&&Ot==0){if(j.querySelector('#onwebchat-widget-settings-submenu-ul'))j.querySelector('#onwebchat-widget-settings-submenu-ul').remove()}if(Lt==0){if(j.querySelector('#onwebchat-email-li'))j.querySelector('#onwebchat-email-li').remove()}if(jt==0){if(j.querySelector('#uploadfileid'))j.querySelector('#uploadfileid').remove()}if(Wt==0){if(j.querySelector('#onwebchat-print-li'))j.querySelector('#onwebchat-print-li').remove()}if(Et==0){if(j.querySelector('#onwebchat-savetofile-li'))j.querySelector('#onwebchat-savetofile-li').remove()}if(At==0){if(j.querySelector('#onwebchat-volume-li-id'))j.querySelector('#onwebchat-volume-li-id').remove()}if(Ot==0){if(j.querySelector('#onwebchat-endchat-li'))j.querySelector('#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 r=o.split(".");r=r[r.length-1];r=r.toLowerCase();const i=["jpg","jpeg","png","gif","bmp","tiff","docx","xlsx","pdf","txt","rtf"];if(!i.includes(r)){toggleModal('onwcFileModalType');j.querySelector('#onwbchtFileinput').value='';return false}else if(n>50){toggleModal('onwcFileModal');j.querySelector('#onwbchtFileinput').value='';return false}else{Lo('

      '+R('max_me',C)+'\t'+'[loading...]'+'

      ','me');if(t==1){s()}return true}};SaveToFile=function(e){try{if(!Ho()){j.querySelector("#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 '+So(window.location.href)+' on '+n+'

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

      '+j.querySelector("#"+e).innerHTML+'




      ')}}catch(e){console.log(e)}};PrintElem2Printer=function(e){try{if(!Ho()){j.querySelector("#onwebchat-widget-settings-submenu-ul").style.setProperty("display","none");Popup2Print(j.querySelector("#"+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 '+So(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 i(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 r=new MouseEvent("click",{view:window,bubbles:true,cancelable:true,clientX:0});n.dispatchEvent(r)}else{n.click()}}okButtonClicked=function(){V.emit('chatWindowMax',0);Jn()};uploadFilePressed=function(){if(j.querySelector("#uploadfileid").style.opacity>.9){j.querySelector('#onwbchtFileinput').click();if(F==false&&U==false){zn()}else{}}else{}};if(!Ho()){enableMenuItem("onwebchat-print-li");enableMenuItem("onwebchat-savetofile-li");if(Jt<6){enableMenuItem("onwebchat-email-li")}}if(!Ho()){enableMenuItem('onwebchat-endchat-li');ve=true}var r=0;var a=j.querySelector('#onwbchat_window');var l=j.querySelector('#upload_img');a.addEventListener('dragenter',function(e){j.querySelector('#upload_img_id').src="https://www.onwebchat.com/operator/assets/images/drop-file.png";r++;if(Ve==true&&It==1&&jt==1&&P=='chat'){a.style.filter="brightness(55%)";l.style.display="block"}e.preventDefault()},false);a.addEventListener('dragleave',function(e){r--;if(r==0){a.style.filter="brightness(100%)";l.style.display="none"}e.preventDefault()},false);a.addEventListener('dragover',function(e){e.preventDefault()},false);a.addEventListener('drop',function(e){r=0;var t=e.dataTransfer;var n=t.files;a.style.filter="brightness(100%)";l.style.display="none";e.preventDefault();if(Ve==true&&It==1&&jt==1&&P=='chat'){if(validateFileSizeType(n[0],0)){var o=new FormData;o.append('file',n[0]);o.append('siteid',M);sendFileToServer(o)}}},false);function s(){var e=new FormData(j.querySelector("#onwbchtUploadForm"));if(It==1&&jt==1){sendFileToServer(e)}}function c(e,t,n,o){var r=document.getElementsByClassName("formVal");var i=new XMLHttpRequest;i.onreadystatechange=function(){if(i.readyState===4){if(i.status===200||i.status===0&&i.responseText!==''){o({url:e,status:200,body:i.responseText||''})}else{n({url:e,status:i.status,body:i.responseText||''})}}};i.open("post",e,true);i.send(t)}sendFileToServer=function(e){c(''+D+'//'+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 r=o.substring(o.indexOf(":")+1);if(r.toLowerCase().endsWith(".png")||r.toLowerCase().endsWith(".jpg")||r.toLowerCase().endsWith(".jpeg")||r.toLowerCase().endsWith(".svg")||r.toLowerCase().endsWith(".gif")){De++;n=t.src.replace("chatimages/loading.gif","filesUpload/"+encodeURI(r));t.style.maxWidth="198px";t.style.maxHeight="110px";t.style.borderRadius="9px";t.style.overflow="auto";z('chattext',N('chattext').replace('',"Shared image").replace('Uploading file',"Shared image"));wo(j.querySelector("#chat_area_id"),20,1);setTimeout(function(){wo(j.querySelector("#chat_area_id"),20,1)},500);setTimeout(function(){wo(j.querySelector("#chat_area_id"),20,1)},1e3);t.src=n;var i=document.createElement("a");i.innerHTML=t.outerHTML;i.setAttribute('href',D+"//"+serverIP+"/filesUpload/"+encodeURI(r));i.setAttribute('target','_blank');i.setAttribute('rel','noopener noreferrer');t.parentNode.insertBefore(i,t);t.remove()}else{n=t.src.replace("loading.gif","download-icon.png");var a=r.replace(/^.*[\\\/]/,'');t.src=n;var i=document.createElement("a");i.innerHTML=t.outerHTML;i.setAttribute('href',D+"//"+serverIP+"/filesUpload/"+encodeURI(r));i.setAttribute('target','_blank');i.setAttribute('rel','noopener noreferrer');t.parentNode.insertBefore(i,t);var l=t.parentNode;t.remove();var s=document.createElement("span");s.innerHTML=a;l.appendChild(s);z('chattext',N('chattext').replace('',""+a+"").replace('Uploading file',""+a+""))}S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=3244;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}let c=0;if(!F){c=5400;if(F==false&&U==false){obj.socketReconnect=1;zn()}}setTimeout(function(){S=_();obj.durationInSeconds2=(S-Y)/1e3;obj.socketDurationInSeconds2=(S-Q)/1e3;obj.isConnected2=F;obj.tryToReconnect2=U;obj.firstConnection2=Z;obj.timeoutTime_userconnect2=le;obj.sendChatDelay=c;obj.pos=3244;if(V&&V.emit){V.emit('sendchat','{{fileuploaded:'+r+'}}',undefined,0,W,3244,Le,X,Gt,obj)}he("{{fileuploaded:"+r+"}}","visitor")},c)})};var d=j.querySelector('#onwebchat-widget-settings-submenu-ul');var u=j.querySelector('#onwbchat_window');if(d&&u&&d.parentNode!==u){u.appendChild(d)}var f=j.querySelector('#onwc-settings-icon-id');if(f){var p=function(e){if(e){e.stopPropagation();if(e.stopImmediatePropagation)e.stopImmediatePropagation();if(e.preventDefault)e.preventDefault()}g(j.querySelector('#onwebchat-emoticons-div'));m(j.querySelector('#onwebchat-widget-settings-submenu-ul'))};f.addEventListener('click',p,true);f.onclick=p}j.querySelector('#wb-smile-image').onclick=function(e){e.stopPropagation();m(j.querySelector('#onwebchat-emoticons-div'));y(j.querySelector('#onwebchat-widget-settings-submenu-ul'));if(F==false&&U==false){zn()}};var h;function m(e){if(e){if(e.classList.contains('onwc-show')){e.classList.remove('onwc-show');e.classList.add('onwc-hide');h=setTimeout(function(){e.style.setProperty("display","none")},400)}else{clearTimeout(h);e.style.setProperty("display","block");if($&&e.id==="onwebchat-widget-settings-submenu-ul"){$n("#onwebchat-widget-settings-submenu-ul","li, svg, span")}if($&&e.id==="onwebchat-emoticons-div"){$n("#onwebchat-emoticons-div","span, img")}setTimeout(function(){e.classList.remove('onwc-hide');e.classList.add('onwc-show')},0)}}}function y(e){if(e&&e.classList.contains('onwc-show')){e.classList.remove('onwc-show');e.classList.add('onwc-hide');h=setTimeout(function(){e.style.setProperty("display","none")},400)}}function g(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(j.querySelector("#onwebchat-widget-settings-submenu-ul")&&j.querySelector("#onwebchat-widget-settings-submenu-ul").classList.contains('onwc-show')=='1')m(j.querySelector('#onwebchat-widget-settings-submenu-ul'));if(j.querySelector("#onwebchat-emoticons-div").classList.contains('onwc-show')=='1')m(j.querySelector('#onwebchat-emoticons-div'))});if(j.querySelector('#onwebchat-volume-li-id')){j.querySelector('#onwebchat-volume-li-id').onclick=function(e){if(An==true){An=false;kn("onwbchtSound",0);j.querySelector('#onwebchat-volume-icon').innerHTML=Ie}else{An=true;kn("onwbchtSound",1);j.querySelector('#onwebchat-volume-icon').innerHTML=Me}}}if(An==false){j.querySelector('#onwebchat-volume-icon').innerHTML=Ie}if(j.querySelector("#onwebchat-widget-settings-submenu-ul"))j.querySelector("#onwebchat-widget-settings-submenu-ul").addEventListener("click",function(e){e.stopPropagation()});j.querySelector("#onwebchat-emoticons-div").addEventListener("click",function(e){e.stopPropagation()});j.querySelector("#webchat_header").style.setProperty("height","40px","important");j.querySelector("#onwbchat_window").style.setProperty("height","40px","important");j.querySelector("#div_chat_min_title").style.setProperty("line-height","42px","important");j.querySelector("#onwbchat_window").style.setProperty("box-shadow","0px 0em 15px rgba(197, 197, 197, 0.55)","important");if(We==1||$){if($)imageClass="onwebchat_chatimage_mobile";else imageClass="onwebchat_chatimage";if(Te==null||Te==""){Te=D+'//'+serverIP+'/chatWidgetImages/'+image_name}else{}var b=j.querySelector('#onwbchat_window');if(b){b.insertAdjacentHTML("afterend",'
      ');if(T==0){if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","none")}}if(I==0&&nt==1){if(j.querySelector("#onwebchat_chatimage"))j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");if(j.querySelector("#onwebchat_chatimage_div"))j.querySelector("#onwebchat_chatimage_div").style.setProperty("display","none")}onweb_chatimage_loaded=function(){if(Be==0){j.querySelector('#onwebchat_chatimage_div').insertAdjacentHTML('beforeend','
      ')}var e=j.querySelector("#onwebchat_chatimage");var t=j.querySelector("#onwebchat_chatimage_div");var n=j.querySelector("#onweb_chatimage_x");var o=e.getBoundingClientRect();t.style.position="fixed";t.style.left=o.left+"px";t.style.bottom=window.innerHeight-o.bottom+"px";t.style.width=e.clientWidth+"px";t.style.height=e.clientHeight+"px";try{n.style.setProperty("right","-2px","important");n.style.setProperty("top","-2px","important")}catch(e){}j.querySelector('#onwbchat_window').onmouseleave=function(){try{j.querySelector('#onweb_chatimage_x').style.visibility='hidden'}catch(e){}};try{j.querySelector('#onweb_chatimage_x').onmouseleave=function(){j.querySelector('#onweb_chatimage_x').style.opacity='0.5'}}catch(e){}j.querySelector('#webchat_header').onmouseenter=function(){try{j.querySelector('#onweb_chatimage_x').style.visibility='hidden'}catch(e){}};try{j.querySelector('#onweb_chatimage_x').onclick=function(){j.querySelector("#onwebchat_chatimage").style.setProperty("display","none");j.querySelector('#onweb_chatimage_x').style.display="none";z('hideImage',1)}}catch(e){}}}j.querySelector('#offlineform_btn').onclick=function(){document.getElementById("onwebchatofffield").value=Math.random().toString(36).substring(2);if(E==1&&A==1&&j.querySelector("#onwc_consent_checkbox_offline").checked==false||mt==1&&yt==1&&!Rn(j.querySelector("#onwebchatoffemail").value)||gt==1&&bt==1&&j.querySelector("#onwebchatofftel").value.length<4||pt==1&&ht==1&&j.querySelector("#onwebchatoffname").value.length<2||j.querySelector("#onwebchatemailtext").value.length<1){if(E==1&&A==1&&j.querySelector("#onwc_consent_checkbox_offline").checked==false){j.querySelector("#onwc_consent_l_offline_span").style.setProperty("color","#D04848","important")}if(j.querySelector("#onwebchatemailtext").value.length<1){j.querySelector("#onwebchatemailtext").focus();j.querySelector("#onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")}if(gt==1&&bt==1&&j.querySelector("#onwebchatofftel").value.length<4){j.querySelector("#onwebchatofftel").focus();setTimeout(function(){j.querySelector("#onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0);K()}if(mt==1&&yt==1&&!Rn(j.querySelector("#onwebchatoffemail").value)){j.querySelector("#onwebchatoffemail").focus();setTimeout(function(){j.querySelector("#onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0);K()}if(pt==1&&ht==1&&j.querySelector("#onwebchatoffname").value.length<2){j.querySelector("#onwebchatoffname").focus();setTimeout(function(){j.querySelector("#onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0);K()}return false}else{var e=-1;if(j.querySelector("#onwc_consent_checkbox_offline"))e=j.querySelector("#onwc_consent_checkbox_offline").value;var t="";var n="";var o="";var r="";var i="";var a="";if(j.querySelector("#onwebchatoffname"))n=j.querySelector("#onwebchatoffname").value;if(j.querySelector("#onwebchatoffemail"))t=j.querySelector("#onwebchatoffemail").value;if(j.querySelector("#onwebchatemailtext"))o=j.querySelector("#onwebchatemailtext").value;if(j.querySelector("#onwebchatofftel"))r=j.querySelector("#onwebchatofftel").value;if(j.querySelector("#onwebchatoffwebsite"))i=j.querySelector("#onwebchatoffwebsite").value;if(j.querySelector("#onwebchatofffield"))a=j.querySelector("#onwebchatofffield").value;V.emit('visitorSendOfflineEmail',X,_e,M,n,t,o,r,e,E,A,Qt,i,a);j.querySelector('#onwebchatform_div_id').style.display="none";if(a!=""){j.querySelector('#onweboffline_msg_id').innerHTML=R('off_thank',C)+''}pn('onWebChat','Offline message sent','');return false}};j.querySelector('#prechat_btn').onclick=function(){if(j.querySelector("#onprechatname"))q=j.querySelector("#onprechatname").value;if(j.querySelector("#onprechatemail"))se=j.querySelector("#onprechatemail").value;if(j.querySelector("#onprechattel"))x=j.querySelector("#onprechattel").value;if(q==undefined)q="";if(se==undefined)se="";if(x==undefined)x="";q=q.trim();se=se.trim();x=x.trim();if(E==1&&A==1&&j.querySelector("#onwc_consent_checkbox_prechat").checked==false||_t==1&&St==1&&!Rn(se)||qt==1&&xt==1&&x.length<4||wt==1&&vt==1&&q.length<2||Ct==1&&kt==1&&W==0||j.querySelector('#onprechattext').value.trim().length<1){if(E==1&&A==1&&j.querySelector("#onwc_consent_checkbox_prechat").checked==false){j.querySelector("#onwc_consent_l_prechat_span").style.setProperty("color","#D04848","important")}if(j.querySelector('#onprechattext').value.trim().length<1){j.querySelector('#onprechattext').focus();j.querySelector("#onprechattext").style.setProperty("border","1px solid #D04848","important")}if(qt==1&&xt==1&&x.length<4){j.querySelector("#onprechattel").focus();setTimeout(function(){j.querySelector("#onprechattel").style.setProperty("border","1px solid #D04848","important")},0);K()}if(_t==1&&St==1&&!Rn(j.querySelector('#onprechatemail').value)){j.querySelector("#onprechatemail").focus();setTimeout(function(){j.querySelector("#onprechatemail").style.setProperty("border","1px solid #D04848","important")},0);K()}if(wt==1&&vt==1&&q.length<2){j.querySelector("#onprechatname").focus();setTimeout(function(){j.querySelector("#onprechatname").style.setProperty("border","1px solid #D04848","important")},0);K()}if(Ct==1&&kt==1&&W==0){setTimeout(function(){j.querySelector("#departments").style.setProperty("border","1px solid #D04848","important")},0);K()}return false}else{var t=j.querySelector("#onprechattext").value;V.emit('setclientdetails',X,M,q,se,x,"");var n=-1;if(j.querySelector("#onwc_consent_checkbox_prechat"))n=j.querySelector("#onwc_consent_checkbox_prechat").value;if(n==true){B("consentvalue",2,93)}else if(E==1){B("consentvalue",1,93)}V.emit('setconsentsettings',X,n,E,A);j.querySelector('#chat_area_id').style.display="block";j.querySelector('#onwc_chat_message_div').style.display="block";j.querySelector('#chat_info_id').style.display="block";j.querySelector('#prechat_form').style.display="none";var o=j.querySelector('#onwc-settings-icon-id');if(o)o.style.display='';Vn();j.querySelector('#div_chat_max_title_span').textContent=R('max_title',C);if(j.querySelector('#div_chat_max_title_sub_span'))j.querySelector('#div_chat_max_title_sub_span').textContent=R('max_subtitle',C)||'';var r="";r=" me-bubble";Lo('

      '+R('max_me',C)+'\t'+fn(t)+'

      ','me');Fe="me";S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=3850;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}let e=0;if(!F){e=5400;if(F==false&&U==false){obj.socketReconnect=1;zn()}}setTimeout(function(){S=_();obj.durationInSeconds2=(S-Y)/1e3;obj.socketDurationInSeconds2=(S-Q)/1e3;obj.isConnected2=F;obj.tryToReconnect2=U;obj.firstConnection2=Z;obj.timeoutTime_userconnect2=le;obj.sendChatDelay=e;setTimeout(function(){V.emit('sendchat',t,undefined,0,W,3850,Le,X,Gt,obj)},400)},e);ln(1);ln(2);P="chat";Zn();return false}};if(j.querySelector('#onwc_consent_checkbox_offline'))j.querySelector('#onwc_consent_checkbox_offline').addEventListener('change',function(){if(j.querySelector("#onwc_consent_checkbox_offline").checked==true){j.querySelector("#onwc_consent_l_offline_span").style.setProperty("color","#545454","important")}});if(j.querySelector('#onwc_consent_checkbox_prechat'))j.querySelector('#onwc_consent_checkbox_prechat').onchange=function(){if(j.querySelector("#onwc_consent_checkbox_prechat").checked==true){j.querySelector("#onwc_consent_l_prechat_span").style.setProperty("color","#545454","important")}};if(j.querySelector('#onwebchatoffemail'))j.querySelector('#onwebchatoffemail').onkeyup=function(){if(Rn(j.querySelector('#onwebchatoffemail').value)){j.querySelector("#onwebchatoffemail").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onwebchatemailtext'))j.querySelector('#onwebchatemailtext').onkeyup=function(){if(j.querySelector('#onwebchatemailtext').value.length>=1){j.querySelector("#onwebchatemailtext").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onwebchatofftel'))j.querySelector('#onwebchatofftel').onkeyup=function(){checkPhone(j.querySelector('#onwebchatofftel'));if(j.querySelector('#onwebchatofftel').value.length>=4){j.querySelector("#onwebchatofftel").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onwebchatoffname'))j.querySelector('#onwebchatoffname').onkeyup=function(){if(j.querySelector('#onwebchatoffname').value.length>=2){j.querySelector("#onwebchatoffname").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onprechatemail'))j.querySelector('#onprechatemail').onkeyup=function(){if(Rn(j.querySelector('#onprechatemail').value)){j.querySelector("#onprechatemail").style.setProperty("border","1px solid #ccc","important");K()}};j.querySelector('#onprechattext').onkeyup=function(){if(j.querySelector('#onprechattext').value.length>=1){j.querySelector("#onprechattext").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onprechattel'))j.querySelector('#onprechattel').onkeyup=function(){checkPhone(j.querySelector('#onprechattel'));if(j.querySelector('#onprechattel').value.length>=4){j.querySelector("#onprechattel").style.setProperty("border","1px solid #ccc","important");K()}};if(j.querySelector('#onprechatname'))j.querySelector('#onprechatname').onkeyup=function(){if(j.querySelector('#onprechatname').value.length>=2){j.querySelector("#onprechatname").style.setProperty("border","1px solid #ccc","important");K()}};loadEmoticons=function(){if(j.querySelector('#onwebchat-emoticons-div').innerHTML==""){j.querySelector('#onwebchat-emoticons-div').insertAdjacentHTML('beforeend','😉 😀 🙂 😂 😃 😁
      '+'😅 😆 😎 😊 😇 😋
      '+'😌 🤔 😍 😘 😗 😶
      '+'😚 😜 😝 😛 😐 😒
      '+'😳 😲 😵 😧 😞 😟
      '+'😠 😡 😈 😔 😕 😓
      '+'😦 😣 😖 😩 😤 😱
      '+'😨 😰 😢 😭 😷 😴
      '+'👍 👎 👏 🤝 💓 🙋');var e=document.querySelector("#onwebchat-emoticons-div").querySelectorAll("span");for(var t=0;t2)e="";j.querySelector("#onwbtxtarea").value+=" "+e+" ";j.querySelector("#onwbtxtarea").focus();checkText2ShowSendButton();if(j.querySelector("#onwebchat-emoticons-div").classList.contains('onwc-show')=='1'){m(j.querySelector('#onwebchat-emoticons-div'))}})}}};MaximizeWindowInit=function(){if(!V){qo()}if(F==false&&U==false){zn()}V.emit('chatWindowMax',1);Un();j.querySelector("#onwbtxtarea").focus();return false};j.querySelector("#webchat_header").addEventListener("click",function(e){var t=e&&e.target;if(t&&t.closest&&t.closest('#onwc-settings-icon-id')){return}if(ne==0){if(N('maxChat')!=1){ue();MaximizeWindowInit();pn('onWebChat','Chat window opened','')}else{ue();V.emit('chatWindowMax',0);Jn()}}else{ne=0}});if(j.querySelector("#onwebchat_chatimage")){j.querySelector("#onwebchat_chatimage").addEventListener("click",function(){MaximizeWindowInit();ue();pn('onWebChat','Chat window opened','');return false})}text=N('chattext');if(text)De=(text.match(/filesUpload/g)||[]).length;if(!Ho()){j.querySelector('#chat_area_id').insertAdjacentHTML('afterbegin',text);setTimeout(function(){j.querySelector("#chat_area_id").scrollTop=999999999},0);setTimeout(function(){j.querySelector("#chat_area_id").scrollTop=999999999},10);setTimeout(function(){j.querySelector("#chat_area_id").scrollTop=999999999},120)}else{setTimeout(function(){To()},150)}setTimeout(function(){no()},200);if(L<340){var w=document.getElementsByClassName('operatorImageSmallClass');[].forEach.call(w,function(e){e.style.transform="scale(0.85)";e.style.marginLeft="3px"})}if($){j.querySelector("#onwbchat_window").style.setProperty("height","100%","important");j.querySelector("#onwbchat_window").style.setProperty("max-height","100%","important");j.querySelector("#onwbchat_window").style.setProperty("bottom","0px","important");j.querySelector("#onwbchat_window").style.setProperty("width","100%","important");if(ct=="left"){setTimeout(function(){j.querySelector("#onwbchat_window").style.setProperty("left","0px","important")},10)}else{j.querySelector("#onwbchat_window").style.setProperty("right","0px","important")}j.querySelector('#wb-send-image').style.setProperty("transform","scale(1.2)","important");j.querySelector('#wb-send-image').style.setProperty("right","16px","important");j.querySelector('#wb-send-image').style.setProperty("top","27px","important");j.querySelector('#wb-smile-image').style.setProperty("display","none","important");checkMobileChatHeight();j.querySelector('#onweb_minimize_btn_icon_id').style.setProperty("transform","translateY(-50%)","important");j.querySelector('#webchat_header').classList.add("onwc-mobile-header");j.querySelector("#onwebchat_chatimage_div").style.setProperty("right","0");j.querySelector("#onwebchat_chatimage_div").style.setProperty("left","initial");if(j.querySelector("#onwc_welcome_message")){j.querySelector("#onwc_welcome_message").style.setProperty("margin-top","35%","important")}}j.querySelector('#chat_area_id').addEventListener('scroll',Kn);Kn();j.querySelector('#scrollToBottomButton').addEventListener('click',()=>{wo(j.querySelector("#chat_area_id"),50,1)})}}}var _o=xn('onwbchttimesVisited');if(_o==''||_o==undefined||_o=='NaN'){_o=0;kn("onwbchttimesVisited",1)}function So(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 qo(){var e={query:{server:In,siteid:M},reconnectionAttempts:40};if(!v){V=io.connect('https://'+serverIP+Mn,e)}else{V=io.connect('http://'+serverIP+Mn,e)}V.on('disconnect',function(){F=false;tn()});V.on('error',function(e){});V.on('connect_error',function(e){});V.on('connect_timeout',function(){});V.on('reconnect',function(){});V.on('reconnecting',function(e){});if(On()!=8){Wn=setTimeout(function(){V.io.disconnect();Jn()},Ln)}V.on('connect',function(){F=true;U=false;nn();Le++;Q=_();if(Le>15){V.io.disconnect();V.disconnect();V=null}var e=document.referrer;le=0;if(!Z&&(N('chattext')==null||N('chattext')=='')){}setTimeout(function(){if(typeof ce!=='string'){ce=""}if(V&&V.emit){V.emit('userconnect',X,q,se,x,ce,Yt,Qt,screen.width,Xe,ro,ao,_o,M,_e,e,xn('onwbchtlastvisit'),lo,$,u,Z,I,E,A,de)}},le);Z=false;if(W!=undefined&&W!=0){V.emit('visitorselectdepartment',M,W)}});V.on('onwcemailtranscript_ok',function(){toggleModal('onwcEmailOkModal')});V.on('addvisited1',function(e){_o++;kn("onwbchttimesVisited",_o);kn("onwbchtlastvisit",e)});V.on('setCookie',function(e,t){if(e=="onwbchtclientid"){if(xn('onwbchtclientid')!=''&&xn('onwbchtclientid')!=null){if(xn('onwbchtclientid')!=t){deleteAllCookiesAndStorage();z('chattext','');var n=document.querySelectorAll('#chat_area_id p');n.forEach(function(e){e.remove()});var o=document.querySelectorAll('#chat_area_id .welcome-message');o.forEach(function(e){e.remove()});if(typeof To==='function'){setTimeout(function(){To()},0)}}}X=t}kn(e,t)});V.on('chatWindowMax',function(e){if(e==1)Un();else if(e==0)Jn()});V.on('updateagents',function(e){pe(e)});V.on('send_dialogid',function(e){Oe=e});V.on('newChatEvent',function(e){pn('onWebChat','Chat started','by '+e)});V.on('askforrating',function(e){Oe=e;toggleModal("onwcRatingChatModal",true)});V.on('updateclientdetails',function(e,t,n,o){if(e!=''&&isNaN(e)){q=e}if(t!=''){se=t}if(n!=''){x=n}if(o!=''){ce=o}});V.on('senddepartments',function(e){j.querySelector("#onwcdepartmenu").style.setProperty("display","grid","important");e=JSON.parse(e);onwcdepartmenu=j.querySelector("#onwcdepartmenu");onwcdepartmenu.innerHTML="";if(onwcdepartmenu.childElementCount==0){for(var t=0;t0)&&u==0){if(T!=0)Gn()}else{Yn()}if(e.endsWith("

      ")&&I==1&&ot!=0){var r=j.querySelector('#chat_area_id').lastChild;j.querySelector('#chat_area_id').removeChild(r);z('chattext',e.substring(0,e.lastIndexOf('

      ')));rn()}if(I==1&&ot!=0){rn()}if(ze==0&I!=1&&ot==0&&e.length>0){if(!e.endsWith("

      ")){var i=1e3;if(te==1){i=3e3}setTimeout(function(){if(I!=1&&ot==0&&!e.endsWith("

      ")){Lo('

      ');on()}},i)}}}});V.on('setIsBlocked',function(e){if(e==undefined){e=0}u=e;kn("onwbchtblocked",e);if(u==1){Yn()}else if(u==0){if(I==1||nt!=1){if(T!=0)Gn()}}});V.on('visitordeleted',function(){z('chattext','');var e=document.querySelectorAll('#chat_area_id p');e.forEach(function(e){e.remove()});var t=document.querySelectorAll('#chat_area_id .welcome-message');t.forEach(function(e){e.remove()});Qn(j.querySelector("#onwbchat_window"));deleteAllCookiesAndStorage();V.disconnect()});deleteAllCookiesAndStorage=function(){Sn("onwbchtclientid");Sn("inChatC");Sn("onwbchtSound");Sn("onwbchtblocked");Sn("onwbchtexpress.sid");Sn("onwbchtlastvisit");Sn("onwbchtsessionrandom");Sn("onwbchttimesVisited");try{localStorage.clear();sessionStorage.clear()}catch(e){}};V.on('servercommand',function(e,t,n,o,r,i){if(n==null||n=="")n="operator";if(e=='close_dialog'){if(H('inChatC')==1){if(R('max_closed',C)!="")Lo('

      '+R('max_closed',C).replace('{{operator}}',n).replace('{{agent}}',n)+'

      ')}if(Ee==1&&H('inChatC')==1&&Re==0){toggleModal("onwcRatingChatModal",true)}B('inChatC',0,.166);me(ze==1?"bot":"agent");z("servingOpImage","");w="";if(Se==1){w=Pe}clearTimeout(ae);clearTimeout(ie);z('hasTriggeredNoReplyAgent',0);B('hasTriggeredNoReplyAgentC',0,.166);z('hasTriggeredNoReplyAnyone',0);B('hasTriggeredNoReplyAnyoneC',0,.166);G=0;ee=0;z("AHSALOM",0);if(Ho()){disableMenuItem('onwebchat-endchat-li');ve=false}Re=0;z('isRated',0);Oe=i}else if(e=='serve_dialog'){if(o=="androidapp"){te=1}else{te=0}Fe="served_by";if(R('max_served',C)!=""&&n!=""&&n!="null"&&n!=null){if(!N('hasWrSeByTr')){Lo('

      '+R('max_served',C).replace('{{operator}}',n).replace('{{agent}}',n)+'

      ')}}if(r==""||!r){r=Pe}w=r;z("servingOpImage",r)}else if(e=='no_agent'){Lo('

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

      ')}else if(e=='do_not_wait_for_reply'){if(j.querySelector('#agenttypingimage'))j.querySelector('#agenttypingimage').remove()}});V.on('disablesendbutton',function(){tn('aibot')});V.on('updatechatvisitor',function(e,t){var n="";n=" me-bubble ";if(Fe!='me'){n=n+" me-first "}var o="";if(isRTLlanguage(e.substr(0,1))==true){o=' style="direction: rtl;text-align:right;" '}Lo('

      '+R('max_me',C)+'\t'+fn(e)+'

      ',"me");Fe="me"});V.on('aiStreamChunk',function(e,t,n){try{if(T==0)return;if(n){jo();return}if(t==null||t==="")return;Io(t)}catch(e){}});V.on('updatechat',function(e,t,n,o){if(n==""||n==null){return}if(o==null||o=="")o="operator";if(o=='aibot'){ze=1;z("chatWithBot",1);z("onwc_human_serving",0);w=Rt;j.querySelector('#onwbtxtarea').maxLength=He;z("servingOpImage",Rt);_n()}else{ze=0;z("chatWithBot",0);z("onwc_human_serving",1);z("onwc_ai_disclosure_shown",0);_n()}if(n=='command:typing...'){if(j.querySelector('#agenttypingimage'))j.querySelector('#agenttypingimage').remove();let e="";if(Se==1){e=" big-margin-left "}if(!Ho()){j.querySelector('#chat_area_id').insertAdjacentHTML("beforeend","
      ")}const t=j.querySelector("#chat_area_id");const n=t.scrollTop>=t.scrollHeight-t.clientHeight-50;if(n){setTimeout(function(){t.scrollTop=9999999},0)}}else if(n=='command:notyping...'){try{if(j.querySelector('#agenttypingimage')!=null)j.querySelector('#agenttypingimage').style.visibility='hidden'}catch(e){}}else if(n==''||n=="''"){jo();try{if(j.querySelector('#agenttypingimage')!=null)j.querySelector('#agenttypingimage').style.visibility='hidden'}catch(e){}nn()}else if(T==0){}else{nn();hn();clearTimeout(ie);rn();if(jo())Ze=true;if(j.querySelector('#agenttypingimage'))j.querySelector('#agenttypingimage').remove();var r="";var i='';var a="";r=" agent-bubble ";if(Fe!='agent'){r=r+" agent-first ";if(Se==1){i='Operator avatar'}}if(Se==1){a=" big-margin-left "}he(n,ze==1?"bot":"agent");B('inChatC',1,.166);var l="";if(isRTLlanguage(n.substr(0,1))==true){l=' style="direction: rtl;text-align:right;" '}Lo('

      '+i+''+R('max_agent',C).replace('{{operator}}',o).replace('{{agent}}',o)+' '+fn(n)+'

      ');Fe="agent";if(e!=""&&N('maxChat')!=1){MaximizeWindowInit()}if(I!=1){if(N('chattext')!=null&&N('chattext')!=''){}Gn()}if(j.querySelector('#prechat_form').style.display=='block'){Gn()}ee=1;z("AHSALOM",1)}});removeLoadingImage=function(e){if(j.querySelector("#"+e))j.querySelector("#"+e).style.background="none";wo(j.querySelector('#chat_area_id'),10,10)};var t=0;var n=0;var o=0;function r(){var e=j.querySelector('#onwbtxtarea').value;if(e.trim()!=""&&u==0){S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=5217;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}if(V&&V.emit){V.emit('sendchat',e,undefined,1,0,5217,Le,X,Gt,obj)}}}j.querySelector("#onwc_chat_message_div").addEventListener("paste",function(e){if(F==false&&U==false){zn()}setTimeout(function(){checkText2ShowSendButton()},0)});j.querySelector("#onwc_chat_message_div").addEventListener("keydown",function(e){if(e.key=="Enter"&&!e.shiftKey){e.preventDefault();if(!Ne){xo();clearTimeout(o);o=0}}else{if(we!=1&&N('hasStartedWriting')!=1){fe();z('hasStartedWriting',1)}we=1;if(F==false&&U==false){zn()}if(t==0&&u==0){S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=5265;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}if(V&&V.emit){V.emit('sendchat','command:typing...',undefined,0,0,5265,Le,X,Gt,obj)}t=1}let e=200;if(Ye=='free'){e=1500}if(1==1){if(o==0){o=setTimeout(function(){r();o=0},e)}}clearTimeout(n);n=setTimeout(function(){t=0;clearTimeout(o);S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.tryToReconnect=U;obj.pos=5281;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}if(V&&V.emit){V.emit('sendchat','command:notyping...',undefined,0,0,5281,Le,X,Gt,obj)}},1800)}});j.querySelector("#wb-send-image").addEventListener("click",function(e){xo();if(!$)j.querySelector("#onwbtxtarea").focus();checkText2ShowSendButton()});function i(){if(isRTLlanguage(R('max_placeholder',C).trim().substring(0,2))){a("rtl","right")}else{a("","left")}}i();j.querySelector("#onwc_chat_message_div").addEventListener("keyup",function(e){if(e.key=='ArrowUp'&&j.querySelector('#onwbtxtarea').value==''){j.querySelector('#onwbtxtarea').value=$t}if(j.querySelector('#onwbtxtarea').value.trim().substring(0,2)!=""){if(isRTLlanguage(j.querySelector('#onwbtxtarea').value.trim().substring(0,2))){a("rtl","right")}else{a("","left")}}else if(j.querySelector('#onwbtxtarea').value==""){i()}if(E==1&&H('consentvalue')!=1&&H('consentvalue')!=2){toggleModal("onwcConsentModal",true)}checkText2ShowSendButton()});checkText2ShowSendButton=function(){if(j.querySelector('#onwbtxtarea').value.trim()==""){j.querySelector("#wb-send-image").style.visibility="hidden";if(Je&&co()){j.querySelector("#wb-mic-image").style.visibility="visible";j.querySelector("#wb-mic-image").style.display="block"}}else{j.querySelector("#wb-send-image").style.visibility="visible";j.querySelector("#wb-mic-image").style.visibility="hidden";j.querySelector("#wb-mic-image").style.display="none"}};checkText2ShowSendButton();function a(e,t){j.querySelector('#onwbtxtarea').style.setProperty("direction",e,"important");j.querySelector('#onwbtxtarea').style.setProperty("text-align",t,"important")}j.querySelector('#onwebchatemailtext').addEventListener("keyup",function(e){if(isRTLlanguage(j.querySelector('#onwebchatemailtext').value.substring(0,2))){j.querySelector("#onwebchatemailtext").style.setProperty("direction","rtl","important");j.querySelector("#onwebchatemailtext").style.setProperty("text-align","right","important")}else{j.querySelector("#onwebchatemailtext").style.setProperty("direction","","important");j.querySelector("#onwebchatemailtext").style.setProperty("text-align","left","important")}});j.querySelector('#onprechattext').addEventListener("keyup",function(e){if(isRTLlanguage(j.querySelector("#onprechattext").value.substring(0,2))){j.querySelector("#onprechattext").style.setProperty("direction","rtl","important");j.querySelector("#onprechattext").style.setProperty("text-align","right","important")}else{j.querySelector("#onprechattext").style.setProperty("direction","","important");j.querySelector("#onprechattext").style.setProperty("text-align","left","important")}});var f=0;var p=0;var h=0;var m=0;var y=4;var g,b;var l=parseInt(j.querySelector("#onwbchat_window").style.getPropertyValue('width'));function s(){window.removeEventListener('mousemove',d,true);f=0;p=0;j.querySelector("#webchat_header").style.setProperty('cursor','pointer')}function c(e){var t;if(e.target)t=e.target;else if(e.srcElement)t=e.srcElement;if(t.id!="onweb_minimize_btn_icon_id"&&t.id!="onwc-settings-icon-id"&&(!t.closest||!t.closest("#onwc-settings-icon-id"))){if(N('maxChat')==1){f=1;p=0;h=e.clientX;m=e.clientY;window.addEventListener('mousemove',d,true)}}}function d(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(j.querySelector("#onwbchat_window").style.getPropertyValue('height'));var r=parseInt(j.querySelector("#onwbchat_window").offsetWidth);var i=e.clientX,a=e.clientY;if(f==1&&p==0){var l=Math.abs(i-h);var s=Math.abs(a-m);if(lt-o)re=t-o;u.style.top=re+'px';oe=i-g;if(i-g<0)oe=0;if(i-g>n-r)oe=n-r;u.style.left=oe+'px'}try{if(!$){j.querySelector('#webchat_header').addEventListener('mousedown',c,false)}j.querySelector('#onweb_minimize_btn_icon_id').removeEventListener('mousedown',c);window.addEventListener('mouseup',s,false)}catch(e){}setTimeout(function(){ge()},500)}function xo(){if($){j.querySelector("#onwbtxtarea").blur()}if(u==1){return}var n=j.querySelector('#onwbtxtarea').value;j.querySelector('#onwbtxtarea').value="";j.querySelector("#onwbtxtarea").placeholder=R('max_placeholder',C);if(n.trim()!=""){var e="";e=" me-bubble";var o="";if(Fe!="me"){e=e+" me-first "}$t=n;he(n,"visitor");n=n.replace(/\n/g,"{{newline}}");var r="";if(isRTLlanguage(n.substr(0,1))==true){r=' style="direction: rtl;text-align:right;" '}Lo('

      '+R('max_me',C)+'\t'+fn(n)+'

      ',"me");Fe="me";if(Ut==0||Ut==1&&ee==0){ln(2)}G=1;S=_();obj={};obj.version=J;obj.url=window.location.href;obj.userAgent=navigator.userAgent;obj.realAgentOnline=ot;obj.agentOnline=I;obj.durationInSeconds=(S-Y)/1e3;obj.socketDurationInSeconds=(S-Q)/1e3;obj.isConnected=F;obj.tryToReconnect=U;obj.firstConnection=Z;obj.timeoutTime_userconnect=le;obj.pos=5183;if(N('chattext')){obj.chattext=N('chattext').substring(0,20)}let t=300;if(!F){t=900;if(F==false&&U==false){obj.socketReconnect=1;zn()}}if(Pn('sessionStorage')&&N('mustSendTriggerText')||!Pn('sessionStorage')&&a==true){const e=N('triggerText');setTimeout(function(){V.emit('sendchat',n,e,0,W,5183,Le,X,Gt,obj)},t);z('mustSendTriggerText',false);a=false;qn('triggerText')}else{setTimeout(function(){S=_();obj.durationInSeconds2=(S-Y)/1e3;obj.socketDurationInSeconds2=(S-Q)/1e3;obj.isConnected2=F;obj.tryToReconnect2=U;obj.firstConnection2=Z;obj.timeoutTime_userconnect2=le;obj.sendChatDelay=t;obj.pos=5191;let e=300;if(!F){e=5300}setTimeout(function(){S=_();obj.durationInSeconds3=(S-Y)/1e3;obj.socketDurationInSeconds3=(S-Q)/1e3;obj.isConnected3=F;obj.tryToReconnect3=U;obj.firstConnection3=Z;obj.timeoutTime_userconnect3=le;obj.sendChatDelay2=e;obj.pos=5191;V.emit('sendchat',n,undefined,0,W,5191,Le,X,Gt,obj)},e)},t)}}if(ze==1){tn('aibot')}typing=0}function ko(e){var t=j.querySelector('#onwbtxtarea');if(t){t.value=e;if(F==false&&U==false){zn();setTimeout(function(){xo()},1e3)}else{xo()}Co()}}function Co(){var e=j.querySelector('#reply_buttons_container');if(e){e.style.display='none';var t=j.querySelector('#reply_buttons_list');if(t){t.innerHTML=''}}}function To(){if(P==="offline"||P==="prechat")return;const e=R('max_msg',C);if(!e||e==='')return;const t=j.querySelector('#chat_area_id');if(!t)return;const n=t.querySelectorAll('.onwcouter');const o=Array.from(n).some(e=>!e.classList.contains('welcome-message'));if(o)return;const r=t.querySelector('.welcome-message');if(r){r.remove()}const i=new Date;let a=i.getHours();let l=i.getMinutes();if(a<10)a="0"+a;if(l<10)l="0"+l;let s=w;if(ze==1||N("chatWithBot")==1){s=Rt}let c='';if(Se==1){c='Operator avatar'}const d='
      '+'
      '+'
      '+'

      '+c+' '+fn(e)+'

      '+'
      '+''+a+':'+l+' '+'
      '+'
      '+'
      '+'
      ';const u=t.querySelector('#reply_buttons_container');if(u){u.insertAdjacentHTML('beforebegin',d)}else{t.insertAdjacentHTML('beforeend',d)}}function Po(){const n=j.querySelector('.welcome-message');if(n){n.remove();let t=N('chattext')||'';if(t.includes('welcome-message')){const n=document.createElement('div');n.innerHTML=t;const e=n.querySelector('.welcome-message');if(e){e.remove();z('chattext',n.innerHTML)}}}}function Mo(){if(b&&j.contains(b))return b;ze=1;z("chatWithBot",1);z("onwc_human_serving",0);w=Rt;z("servingOpImage",Rt);try{j.querySelector('#onwbtxtarea').maxLength=He}catch(e){}_n();rn();var e=j.querySelector('#agenttypingimage');if(e)e.remove();var t=" agent-bubble ";var n='';var o="";if(Fe!='agent'){t=t+" agent-first ";if(Se==1){n='Operator avatar'}}if(Se==1){o=" big-margin-left "}var r=R('max_agent',C).replace('{{operator}}','aibot').replace('{{agent}}','aibot');var i="
      "+"

      "+n+""+r+" "+""+"

      ";var a=j.querySelector('#chat_area_id');if(!a)return null;a.insertAdjacentHTML('beforeend',i);g=j.querySelector('#onwc_stream_outer');b=j.querySelector('#onwc_stream_text');Ue="";return b}function Io(e){var t=Mo();if(!t)return;var n=j.querySelector('#chat_area_id');var o=n?n.scrollTop>=n.scrollHeight-n.clientHeight-80:true;Ue+=e;t.innerHTML=fn(Ue).replace(/{{newline}}/g,'
      ').replace(/\n/g,'
      ');if(o&&n)n.scrollTop=9999999}function jo(){var e=!!g;if(g&&g.parentNode){g.parentNode.removeChild(g)}g=null;b=null;Ue="";return e}function Lo(n,e,t){ln(1);var o=n.indexOf('trigger-text')!==-1;if(!o){Co()}if(t&&N('maxChat')==1){t=false}if(e==undefined)e="";let r="onwcouter_agent";if(e=="me"){r="onwcouter_me"}if(j.querySelector("#triangle_down"))j.querySelector("#triangle_down").style.setProperty("display","none");n=zo(n);let i=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)(?:(?!{{newline}})(?:[^&\s<>"'‒-―*]|&(?!lt;|gt;|nbsp;|quot;)))+)/gi;let a;if(!Eo(n)){a=n.match(i)}else{}if(a!=null){a=a[0];var l=So(Ao(a));if(l==So(window.location.href)){n=n.replace(i,function(e){var t=Ao(e);var n=e.substring(t.length);if(!t)return e;try{var o=decodeURIComponent(t);return""+o+""+n}catch(e){return""+t+""+n}})}else n=n.replace(i,function(e){var t=Ao(e);var n=e.substring(t.length);if(!t)return e;try{var o=decodeURIComponent(t);return""+o+""+n}catch(e){return""+t+""+n}})}let s=/(^|[^\/])(www\.(?:(?!{{newline}})(?:[^&\s<>"'‒-―*]|&(?!lt;|gt;|nbsp;|quot;)))+)/gi;let c;if(!Eo(n)){c=n.match(s)}else{}if(c!=null){c=c[0];var l=So(Ao(c));if(l==So(window.location.href))n=n.replace(s,function(e,t,n){var o=Ao(n);var r=n.substring(o.length);if(!o)return e;try{var i=decodeURIComponent(o);return t+""+i+""+r}catch(e){return t+""+o+""+r}});else n=n.replace(s,function(e,t,n){var o=Ao(n);var r=n.substring(o.length);if(!o)return e;try{var i=decodeURIComponent(o);return t+""+i+""+r}catch(e){return t+""+o+""+r}})}var d=false;while(n.indexOf("{{fileuploaded:")>-1){var u=n.indexOf("{{fileuploaded:")+1;var f=n.indexOf("{{fileuploaded:")+15;var p=n.indexOf("}}",f);var h=n.substring(f,p);var m=h.replace(/^.*[\\\/]/,'');var y="";if(m.toLowerCase().endsWith(".png")||m.toLowerCase().endsWith(".jpg")||m.toLowerCase().endsWith(".jpeg")||m.toLowerCase().endsWith(".svg")||m.toLowerCase().endsWith(".gif")){d=true;De++;y='Shared image'}else{y=''+m+''}n=n.replace("{{fileuploaded:"+h+"}}",y)}var g="😀😬😁😂😃😄😅😆😇😉😊🙂🙃😋😌😍😘😗😙😚😜😝😛🤑🤓😎🤗😏😶😐😒🙄🤔😳😞😟😠😡😔😕🙁😣😖😫😩😤😱😨😰😯😦😧😢😪😓😭😵😲🤐🤒🤕😴😮👍👎👏🤝💓🙏🙋😈😷";const b=g[Symbol.iterator]();var w;while(true){var v=b.next();if(v.done)break;w=v.value;n=n.replace(new RegExp(w,"g"),''+w+'')}n=n.replace('[loading...]','Uploading file');n=n.replace(/ • /g,"{{newline}} • ");n=n.replace(/{{newline}}/g,'
      ');n=Oo(n);n=Ro(n);n=Bo(n);var _=new Date;var S=_.getHours();if(S<10)S="0"+S;var q=_.getMinutes();if(q<10)q="0"+q;if(t){let e=Wo(n);if(j.querySelector('#outer_agent_bubble_span')){j.querySelector("#outer_agent_bubble").style.setProperty("display","grid","important");j.querySelector('#outer_agent_bubble_span').insertAdjacentHTML("beforeend",e);eo()}z('outeragentbubbletext',e)}else{qn('outeragentbubbletext')}if(n.indexOf("server_messages")==-1){n="
      "+n+"
      "+S+":"+q+"
      "}var x=Ze;Ze=false;function k(e){if(x)return;for(var t=0;t]*>/,'').replace(/<\/p>$/,'');return r}function Eo(e){var t=/]*href=["']/i;return t.test(e)}function Ao(e){if(!e)return e;e=e.replace(/[.,!?;:\]\}]+$/,'');var t=(e.match(/\(/g)||[]).length;var n=(e.match(/\)/g)||[]).length;if(n>t){e=e.replace(/\)+$/,'')}return e}function Oo(e){const t=/\*\*(.*?)\*\*/g;return e.replace(t,'$1')}function Ro(e){const t=/\*([^\*\r\n<>]+)\*/g;return e.replace(t,'$1')}function Bo(e){const t=/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}\b/gi;const n=e.split(/(<[^>]+>)/g);for(let e=0;e`${e}`)}}return n.join('')}isRTLlanguage=function(e){var t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/;result=t.test(e);return result};checkMobileChatHeight=function(){try{if($){var e=j.querySelector("#onwbchat_window").clientHeight;document.getElementById('chat_area_id').style.setProperty("height",e-98-lt-9+"px");wo(document.getElementById('chat_area_id'),2,1)}}catch(e){}};const Ho=function(){const e=N('chattext');return e==null||e===''};const No=function(){const e=N('chattext');if(e==null||e===''){return false}const t=document.createElement('div');t.innerHTML=e;const n=t.querySelectorAll('div.onwcouter');if(n.length!==1){return false}const o=n[0].querySelectorAll('p.trigger-text');if(o.length==1){return true}else{return false}};function zo(n){if(n){const e=/\[([^\]]+)\]\(((http:\/\/|https:\/\/|www\.)[^\)]+)\)/g;const t=n.replace(e,(e,t,n)=>{if(n.startsWith("www.")){n="https://"+n}let o=So(n);if(o==So(window.location.href)){return`${t}`}else{return`${t}`}});return t}else return""}(function(){const t=history.pushState;const n=history.replaceState;function e(){try{V.emit('setclientpageurl',X,M,"",document.location.href)}catch(e){}if(window.onWebChat&&typeof window.onWebChat.onUrlChange==='function'){}}history.pushState=function(){const e=t.apply(this,arguments);window.dispatchEvent(new Event('onwebchat-urlchange'));return e};history.replaceState=function(){const e=n.apply(this,arguments);window.dispatchEvent(new Event('onwebchat-urlchange'));return e};window.addEventListener('onwebchat-urlchange',e);window.addEventListener('popstate',e);document.addEventListener("DOMContentLoaded",e)})();(function(){window.addEventListener('pageshow',function(e){if(e.persisted){window.location.reload()}})})();let Do=900;let Fo=null;function Uo(e,t){if(!e)return;var n=R(t,C);e.setAttribute('placeholder',n);e.setAttribute('aria-label',n)}function Zo(e,t){var n=j&&j.querySelector(e);if(!n)return;var o=R(t,C);n.setAttribute('aria-label',o);var r=n.querySelector('.onwebchat-widget-settings-submenu-text');if(r)r.textContent=o}function Vo(){if(!j)return;try{var e=j.querySelector("#div_chat_min_title_span");if(e){e.textContent=I==1?R('min_online',C):R('min_offline',C)}var t=j.querySelector("#div_chat_max_title_span");var n=j.querySelector("#div_chat_max_title_sub_span");if(t){t.textContent=P==="offline"?R('off_title',C):R('max_title',C)}if(n){n.textContent=(P==="offline"?R('off_subtitle',C):R('max_subtitle',C))||''}var o=j.querySelector("#onweboffline_msg_id");if(o)o.textContent=R('off_msg',C);Uo(j.querySelector("#onwebchatoffname"),'off_name');Uo(j.querySelector("#onwebchatoffemail"),'off_email');Uo(j.querySelector("#onwebchatofftel"),'off_phone');Uo(j.querySelector("#onwebchatemailtext"),'off_text');var r=j.querySelector("#offlineform_btn");if(r){var i=R('off_send',C);r.value=i;r.setAttribute('aria-label',i)}var a=j.querySelector("#onwebprechat_msg_id");if(a)a.textContent=R('prechat_msg',C);Uo(j.querySelector("#onprechatname"),'prechat_name');Uo(j.querySelector("#onprechatemail"),'prechat_email');Uo(j.querySelector("#onprechattel"),'prechat_phone');Uo(j.querySelector("#departments"),'departments');Uo(j.querySelector("#onprechattext"),'prechat_text');var l=j.querySelector("#prechat_btn");if(l){var s=R('prechat_btn',C);l.value=s;l.setAttribute('aria-label',s)}var c=j.querySelector("#onwbtxtarea");if(c){var d=R('max_placeholder',C);c.placeholder=d;c.setAttribute('aria-label',d)}var u=[j.querySelector("#onwc_consent_l_offline_span"),j.querySelector("#onwc_consent_l_prechat_span"),j.querySelector("#onwc_consent_l_inchat_modal_span")];u.forEach(function(e){if(e)e.innerHTML=R('consent_text',C)+' '});Zo("#uploadfileid",'menu_send_file');Zo("#onwebchat-email-li",'menu_email');Zo("#onwebchat-print-li",'menu_print');Zo("#onwebchat-savetofile-li",'menu_save');Zo("#onwebchat-volume-li-id",'menu_sound');Zo("#onwebchat-endchat-li",'menu_end_chat');var f=j.querySelector("#onwbchtFileinput");if(f)f.setAttribute('aria-label',R('menu_send_file',C));var p=j.querySelector("#onwcEmailModal .onwcmodaltext");if(p)p.textContent=R('email_text',C);Uo(j.querySelector("#onwcemailtrans"),'off_email');var h=j.querySelector("#onwcEndChatModal .onwcmodaltext");if(h)h.textContent=R('end_chat_msg',C);var m=j.querySelector("#onwcEmailOkModal .onwcmodaltext");if(m)m.textContent=R('email_sent',C);var y=j.querySelector("#onwcRatingChatModal .onwcmodaltext");if(y)y.textContent=R('rating_msg',C);var g=j.querySelector("#sendStarButton");if(g){var b=R('rating_btn',C);g.value=b;g.setAttribute('aria-label',b)}var w=j.querySelector("#onwcRatingChatModal a");if(w)w.textContent=R('rating_no_msg',C);j.querySelectorAll('#onwcEmailModal .onwcbutton, #onwcEndChatModal .onwcbutton').forEach(function(e){if(e.classList.contains('onwcbutton-danger')){var t=R('menu_end_chat',C);e.value=t;e.setAttribute('aria-label',t)}else if(e.classList.contains('orange')){var n=R('off_send',C);e.value=n;e.setAttribute('aria-label',n)}else{var o=R('cancel',C);e.value=o;e.setAttribute('aria-label',o)}})}catch(e){}}return{init:function(e){En=e},set:function(e,t){if(e=="name"&&u==0){q=t;try{V.emit('setclientdetails',X,M,q,"","","")}catch(e){}}else if(e=="email"&&u==0){se=t;try{V.emit('setclientdetails',X,M,"",se,"","")}catch(e){}}else if(e=="emailHash"&&u==0){de=t;try{V.emit('setclientdetails',X,M,"","","","",de)}catch(e){}}else if(e=="phone"&&u==0){x=t;try{V.emit('setclientdetails',X,M,"","",x,"")}catch(e){}}else if(e=="notes"&&u==0){ce=t;try{V.emit('setclientdetails',X,M,"","","",ce)}catch(e){}}else if(e=="pageUrl"&&u==0){try{V.emit('setclientpageurl',X,M,"",t)}catch(e){}}else if(e=="pageTitle"&&u==0){try{V.emit('setclientpageurl',X,M,t,"")}catch(e){}}else if(e=="max"&&u==0){if(t==1){Un();j.querySelector("#onwbtxtarea").focus()}else if(t==0){Jn()}}else if(e=="show"&&u==0){if(t==1){T=1;Gn()}else if(t==0){T=0;Yn()}}else if(e=="online"&&u==0){}else if(e=="hideImage"&&u==0){if(t==1){}else if(t==0){}}else if(e=="language"&&u==0){C=t;Vo()}else if(e=="languageFile"&&u==0){}else if(e=="chatWidgetLauncher"){Te=t;try{document.getElementById("onwebchat_chatimage").src=Te}catch(e){}}else if(e=="chatWidgetLauncherWidth"){}else if(e=="onClick"&&u==0){ue=t}else if(e=="onMaximize"&&u==0){s=t}else if(e=="onMinimize"&&u==0){c=t}else if(e=="onTrigger"&&u==0){d=t}else if(e=="onStartWriting"&&u==0){fe=t}else if(e=="onUpdateOperators"&&u==0){pe=t}else if(e=="onNewMessage"&&u==0){he=t}else if(e=="onEndChat"&&u==0){me=t}else if(e=="onChatStatusChange"&&u==0){ye=t}else if(e=="sendMessage"&&u==0){if(t&&typeof t==='string'&&t.trim()!==''){if(!Tn()){console.log("sendMessage blocked");return}try{Un();j.querySelector('#onwbtxtarea').value=t;xo()}catch(e){}}}else if(e=="department"&&u==0){if(t){W=t;try{V.emit('visitorselectdepartment',M,W)}catch(e){}}else{W=0;try{if(j.querySelector("#departments"))j.querySelector("#departments").value=""}catch(e){}}}else if(e=="onWebChatLoaded"&&u==0){ge=t}else if(e=="onlineColor"&&u==0){be=t;if(I==1&&be!=""){j.querySelector("#webchat_header").style.setProperty('background-color',be,'important')}}else if(e=="offlineColor"&&u==0){k=t;if(I!=1&&k!=""){j.querySelector("#webchat_header").style.setProperty('background-color',k,'important');j.querySelector("#offlineform_btn").style.setProperty('background-color',k,'important')}}},get:function(e){if(e=="name"){return q}else if(e=="email"){return se}else if(e=="phone"){return x}else if(e=="notes"){return ce}else if(e=="status"){if(I==1)return"online";else return"offline"}else if(e=="isConnected"){return F?true:false}else if(e=="isMaximized"){return N('maxChat')==1?true:false}else if(e=="dialogId"){return Oe}else return""}}}();