var onWebChat_=onWebChat_||function(){window.console||(console={log:function(){}});let Z=17;function g(){return(window.performance&&window.performance.now?window.performance:Date).now()}const U=g();let h,y;var u,V,X=!1,$=0,Y=0,G=!1,J=0;let w;var d={ min_offline: { l1: 'We are offline - Send us an email', l2: 'We are offline - Send us an email' }, min_online: { l1: 'We are online - chat with us!', l2: 'We are online - chat with us!' }, max_title: { l1: 'Genesis Medical Clinic', l2:'Chat with us!'}, max_msg: { l1: 'We are online - chat with us!', l2:'We are online - chat with us!'}, max_served: { l1: 'You are served by {{operator}}', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Type your message here ...', l2: 'Type your message here ...' }, max_closed: { l1: '{{operator}} closed the chat', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Email us!', l2:'Email us!'}, off_msg:{l1: 'Sorry, we are not online at the moment. Leave a message and we will get back to you.', l2:'Sorry, we are not online at the moment. Leave a message and we will get back to you.'}, off_name: { l1:'Name', l2: 'Name'}, off_email: { l1: 'Email', l2: 'Email'}, off_phone: { l1: 'Phone', l2: 'Phone'}, off_text: { l1: 'Message', l2: 'Message'}, prechat_name: { l1:'Name', l2: 'Name'}, prechat_email: { l1: 'Email', l2: 'Email'}, prechat_phone: { l1: 'Phone', l2: 'Phone'}, prechat_text: { l1: 'how can we help you?', l2: 'how can we help you?'}, off_send: { l1:'Send', l2: 'Send'}, off_thank: { l1: 'Thank you for contacting Genesis Medical Clinic. We will reply to you as soon as possible.', l2: 'Thank you for contacting Genesis Medical Clinic. We will reply to you as soon as possible.'}, prechat_msg: { l1: 'Please give us some info to serve you better.', l2: 'Please give us some info to serve you better.'}, prechat_btn: { l1: 'Start chat!', l2: 'Start chat!'} , max_gone: { l1: 'All operators are offline', l2: 'All operators are offline'} , consent_text: { l1: 'I agree that my personal data, provided via chat, to be processed for using live chat service', l2: 'I agree that my personal data, provided via chat, to be processed for using live chat service'} , menu_send_file: { l1: 'Send file', l2: 'Send file'} , menu_email: { l1: 'Email transcript', l2: 'Email transcript'} , menu_print: { l1: 'Print', l2: 'Print'} , menu_save: { l1: 'Save', l2: 'Save'} , menu_sound: { l1: 'Sound', l2: 'Sound'} , menu_end_chat: { l1: 'End chat', l2: 'End chat'} , end_chat_msg: { l1: 'Are you sure you want to close this chat?', l2: 'Are you sure you want to close this chat?'} , cancel: { l1: 'Cancel', l2: 'Cancel'} , rating_msg: { l1: 'Thank you. We would appreciate it if you could rate this chat', l2: 'Thank you. We would appreciate it if you could rate this chat'} , rating_btn: { l1: 'Submit', l2: 'Submit'} , rating_no_msg: { l1: 'No, thanks', l2: 'No, thanks'} , departments: { l1: 'Choose a department', l2: 'Choose a department'} },b="",f="",_="",Q="",K=function(){},c=function(){},l=function(){},s=function(){},ee=function(){},te=function(){},ne=function(){},oe=function(){},ae="",v="",ie=0,de=!1,ce="18.118.145.114",I="l1",r="",E="",le=(""!=L("servingOpImage")&&null!=L("servingOpImage")&&(E=L("servingOpImage")),"1");1==le&&""==E&&(E="0_support_man.png");const se='',re='';var x=-1,me=0,m=-1,pe=0,ue="1",ge="0",he=0,ye=0,we="0";""!=L("isRated")&&null!=L("isRated")&&(ye=L("isRated"));let be=2e3;const fe=400;let _e=!0,ve=0;1==(ve=""!=L("chatWithBot")&&null!=L("chatWithBot")?L("chatWithBot"):ve)&&(be=fe);var Ie,Ee=0,xe="",Be=(1==(we=1==we&&0==ue?0:we)&&O('hideImage',0),!0),Ce="",ke=(0!=L('hideImage')&&1!=L('hideImage')&&O('hideImage',0),Nt('onwbchtsessionrandom')),p=('null'!=ke&&null!=ke&&''!=ke&&'undefined'!=ke||At("onwbchtsessionrandom",ke=Math.floor(1e6*Math.random()+1)),"0"),B=26530,Te=".onwebchatbox span{font-size:unset;margin:initial;padding:initial}.onwebchatbox div{padding:initial;font-size:initial;margin:initial}.onwebchatbox #offline_form{display:none;position:initial;line-height:inherit}.onwebchatbox #prechat_form{display:none;position:initial}.onwebchatbox a{margin-bottom:0 !important;border-width:0 !important;border-style:none !important;display:inline;color:#393939;letter-spacing:initial;text-decoration:underline;vertical-align:baseline !important;cursor:pointer !important}.onwebchatbox a:hover{text-shadow:0 0 1px #b1b1b1}.onwebchatbox .onweb_uploadfile{margin-right:10px;margin-bottom:-3px}.onwebchatbox .onweb_uploadimage{background:url('https://www.onwebchat.com/chatimages/loading.gif');background-repeat:no-repeat;background-position:center}#onweb_chatimage_div{position:fixed;bottom:0;right:40px;width:#chat_widthpx;z-index:2147483600}#operatorImageSmall{width:32px !important;height:32px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;top:0 !important;box-shadow:0 0 7px 2px #bebebe !important;cursor:initial !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden}@media(max-width:480px){#operatorImageSmall{zoom:1.14 !important}}.operatorImageSmallClass{zoom:1}#operatorImage{position:absolute;z-index:100 !important;border-radius:30px;border-style:solid;border-color:#ababab;top:8px !important;left:20px !important;width:50px !important;height:50px !important;border-width:0 !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden;background:#fffffff7 !important}.onweb_chatimage{position:absolute !important;bottom:45px !important;left:166px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:153px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important;-webkit-filter:brightness(100%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onweb_chatimage_mobile{position:absolute !important;bottom:18px !important;right:20px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:70px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}img#onweb_chatimage:hover{opacity:1;-webkit-filter:brightness(112%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onwebchatbox .onweb_chatimage:-moz-loading{visibility:hidden}.onwebchatbox .onweb_chatimage_x{position:absolute;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer;border:0;opacity:.5}.onwebchatbox .wblogoimg{margin-right:10px;margin-top:7px}.onwebchatbox .wblogoimgdiv{text-align:right;width:100%}.onwebchatbox img{vertical-align:baseline;border:0;cursor:pointer;width:initial !important;margin:0;padding:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwcimg{vertical-align:baseline;border:0;cursor:pointer;margin:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox{all:initial;*{all:unset}color:#555;box-shadow:0 0 5px 0 #777 !important;line-height:16px !important;display:none;text-align:left;position:fixed !important;bottom:0 !important;right:40px;width:#chat_widthpx !important;height:#onwebchatbox_header1_heightpx;font-family:Arial,Helvetica,sans-serif !important;background-color:#fcfcfc;font-size:12px !important;border-top-left-radius:6px !important;border-top-right-radius:6px !important;z-index:2147483610 !important;box-sizing:content-box !important;color:#545454 !important;backgroundtransition: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;box-sizing:content-box !important;margin:0 !important;padding:0 !important;border:0 !important;outline:0 !important;float:left !important;padding-left:12px !important;padding-right:28px !important;vertical-align:baseline !important;font-size:13px !important;font-weight:bold !important;width:#chatheader_widthpx !important;position:relative;border-top-left-radius:11px !important;border-top-right-radius:11px !important;background-image:url(https://www.onwebchat.com/chatimages/backgrounds/trans-back4.png)}.onwebchatbox .webchat_header:hover{opacity:1}.onwebchatbox .webchat_header a{float:right;text-decoration:none;color:#fff;display:block;margin-right:0;padding-left:0;padding-right:0;line-height:13px}}.onwebchatbox .webchat_header a:hover{color:#000}.onwebchatbox .chat_area{float:left;clear:left;width:#chat_widthpx;height:#chat_area_heightpx;margin-top:0;margin-bottom:0;padding:26px 0 0 0;overflow:auto;color:#a4a4a4;box-sizing:content-box;direction:ltr !important;box-shadow:inset 0 11px 17px -17px rgba(0,0,0,0.4) !important}.onwebchatbox #chat_area_id{box-sizing:initial !important}#chat_area_id::-webkit-scrollbar{width:13px !important}#chat_area_id::-webkit-scrollbar-track{-webkit-border-radius:30px;border-radius:30px !important}#chat_area_id::-webkit-scrollbar-thumb{background-clip:content-box !important;background:#cdcdcd;-webkit-border-radius:10px;border-radius:12px;border:3px solid transparent !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background:#a5a5a5 !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background-color:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background-color:#a5a5a5 !important}#onwbtxtarea::-webkit-scrollbar{width:0 !important}.onwebchatbox .chat_area .me a{color:#visitor_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_area .agent a{color:#agent_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_info{clear:left;height:10px;background-color:#fcfcfc;border-top:1px solid #ddd;box-sizing:border-box;border-top:1px solid ##e2e2e2 !important;width:90% !important;float:none !important;margin:auto !important}.onwebchatbox .chat_message{position:initial;width:100%;height:55px;float:left;clear:left;padding-top:0;background-color:#fcfcfc;box-sizing:content-box}#onwc_chat_message_div{position:absolute;bottom:0;height:68px !important;border-bottom-left-radius:11px !important;border-bottom-right-radius:11px !important}.onwebchatbox #onwbtxtarea{float:none !important;padding:4px 25px 0 4px !important;font-weight:400 !important;text-align:initial !important;font-style:initial !important;box-sizing:initial !important;white-space:initial !important;position:absolute !important;left:9px !important;bottom:25px !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;line-height:inherit !important;font-family:inherit !important;padding:0 2px 0 2px}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox .chat_message .onwebtextarea{width:#textarea_widthpx !important;line-height:normal !important;min-height:initial !important;min-width:initial !important;max-height:initial !important;max-width:initial !important;font-family:Arial,Helvetica,sans-serif !important;text-transform:initial !important;letter-spacing:initial !important;color:#545454 !important;display:block;margin-left:auto !important;margin-right:auto !important;margin-bottom:initial !important;padding:2px 2px 2px 2px !important;background-image:none !important;resize:none;outline:none !important;border-radius:5px !important;box-sizing:content-box;transition:box-shadow .40s,border-color .40s ease-in-out;border:none !important;box-shadow:none !important;font-size:14px !important;height:27px !important;background-color:transparent !important}@media(max-width:480px){.onwebchatbox .chat_message .onwebtextarea{font-size:100% !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{font-size:15px !important}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{font-size:15px !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{font-size:15px !important}}.onwebchatbox .chat_message textarea:hover{border:none !important}.onwebchatbox .chat_message textarea:focus{border:none !important}.onwebchatbox #onweb-offline-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important;padding-top:1px !important}.onwebchatbox #onweb-online-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important}.onwebchatbox #onweb_chaticon{display:inline !important;position:absolute !important;right:0 !important;float:right !important;line-height:24px !important;margin-right:16px !important;margin-top:11px !important}.onwebchatbox .con:hover{opacity:.75}.onwebchatbox .onweb_minimize_btn_icon{display:initial !important;border:solid;border-width:0 3px 3px 0;position:absolute;top:#onweb_min_btn_marginpx !important;padding:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer;right:6px !important;zoom:01.0}.onwebchatbox .onweb_minimize_btn_icon:hover{margin-top:1px}.onwebchatbox .onweb_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:default;right:6px !important;zoom:01.0}.onwebchatbox div.maximize_onwebchatbox{display:inline}.onwebchatbox .chat_area p{letter-spacing:.1px !important;padding-left:12px;padding-right:12px;font-size:14px !important;font-family:Arial,Helvetica,sans-serif !important;line-height:20px;float:left;clear:left;word-wrap:break-word;max-width:max-content;margin:0;color:#agent_css_text_color;box-sizing:content-box}@media(max-width:480px){.onwebchatbox .chat_area p{font-size:115% !important;line-height:1.18 !important}}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color !important;margin-bottom:10px !important;font-family:arial,verdana,sans-serif !important;text-align:right}.onwebchatbox .spanbold{font-weight:700;margin-left:initial;float:initial;font-size:12px !important}@media(max-width:480px){.onwebchatbox .spanbold{font-size:14px !important}}.onwebchatbox .chat_area .agent{color:#agent_css_text_color !important;margin-bottom:10px !important;min-height:10px !important;font-family:arial,verdana,sans-serif !important}.onwebchatbox .chat_area .system{font-style:italic;font-size:11px}.onwebchatbox #onwebchat-logo-span{position:absolute !important;color:#707070 !important;font-weight:500 !important;font-family:Arial,sans-serif !important;letter-spacing:0 !important;font-size:11.7px !important;font-style:normal !important;bottom:5px !important;direction:ltr !important;user-select:none !important;left:50% !important;transform:translateX(-50%) !important}.onwebchatbox #off-form-onwebchat-logo{display:none;float:right !important;position:absolute !important;margin:0 !important;right:9px !important;border:none !important;box-sizing:content-box !important;opacity:.91;bottom:7px !important}.onwebchatbox #off-form-onwebchat-logo:hover{opacity:1}.onwebchatbox .widget-logo{float:right !important;position:absolute !important;margin:0 !important;bottom:0 !important;right:4px !important;border:none !important;padding:4px 6px !important;box-sizing:content-box;height:initial !important;width:initial !important;margin:initial !important;opacity:.80}.onwebchatbox .widget-logo:hover{opacity:1}.onwebchatbox #div_chat_min_title{display:block;position:initial;margin:auto 10px auto auto;width:97%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_min_title_span{color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;letter-spacing:.3px !important;font-size:14px !important;line-height:42px !important;vertical-align:baseline !important}.onwebchatbox #div_chat_max_title{display:none;position:initial;margin:auto 10px auto auto;width:96%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_max_title_span{padding-left:10px !important;color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;line-height:#onwebchatbox_header1_heightpx !important;font-weight:500 !important;font-size:15px !important;vertical-align:baseline !important;letter-spacing:.3px !important}@media(max-width:480px){.onwebchatbox #div_chat_max_title_span{font-size:18px !important}}.onwebchatbox .server_messages{display:block;text-align:center;width:90%;max-width:90% !important;margin:auto;color:#727787 !important;padding:0 0 10px 15px;box-sizing:content-box}.onwebchatbox .server_messages span{color:#727787 !important}.onwebchatbox .onweboffline_msg{position:relative !important;display:block !important;font-size:14px;font-weight:400;font-family:arial,verdana,sans-serif !important;color:#393939 !important;padding:2% 10% 0 !important;margin-top:22% !important;margin-bottom:3px !important;top:initial !important;min-height:26px !important;line-height:20px !important}.onwebchatbox .ns{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwebchat_title2{display:block;text-align:center !important;width:54% !important;margin:auto !important;color:#737379 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;border-radius:13px !important;box-sizing:initial;line-height:18px !important;position:relative;margin-top:13% !important;box-shadow:1px 1px 3px 0 #c9c9c9 !important;padding:14px 19px 14px 19px !important;max-width:160px !important;background:#f2f2f2 !important;border:none !important;font-size:15px !important}@media(max-width:480px){.onwebchatbox .onwebchat_title2{zoom:1.3 !important}}.onwebchatbox .onwebchat_title2::after{content:'';width:0;height:0;position:absolute;bottom:-16px;left:18%;border-left:0 solid transparent;border-right:22px solid transparent;border-top:17px solid #f2f2f2}.onwebchatbox .onwebchat_title2::before{content:'';width:0;height:0;position:absolute;bottom:-15px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:0}.onwebchatbox .onwebchatform_div{display:block;position:initial;line-height:inherit;width:80%;margin:19px auto auto;color:#545454 !important}.onwebchatbox #onwebchatoffname,#onwebchatoffemail,#onwebchatofftel,#onwebchatemailtext,#onprechatname,#onprechatemail,#onprechattel,#onprechattext,#departments{float:initial !important;display:block;background-color:#fefefe !important;background-image:none !important;padding:7px 11px !important;font-size:14px !important;font-weight:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:initial !important;text-transform:initial !important;text-indent:initial !important;text-align:initial !important;letter-spacing:.2px !important;color:#393939 !important;width:100% !important;max-width:initial !important;max-height:initial !important;min-width:initial !important;min-height:initial !important;resize:none !important;outline:none !important;border-radius:5px !important;line-height:inherit !important;transition:box-shadow .40s,border-color .40s ease-in-out !important;box-sizing:border-box !important;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important;height:36px !important;margin:12px auto 11px !important}.onwebchatbox .onwebchatform_div #onprechattext{height:68px !important;line-height:normal !important;text-align:initial !important;white-space:initial !important}.onwebchatbox .onwebchatform_div #onwebchatemailtext{height:82px !important;line-height:normal !important;text-align:initial !important;border:1px solid #ccc !important;white-space:initial !important}#prechat_btn{margin:30px auto 20px !important;color:#fff !important;background-image:inherit;background-color:#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 .spanbold,.agent .spanbold{display:block}.onwebchatbox .me-bubble{background-color:#e9e9e9;width:69% !important;margin-right:5% !important;padding:8px;position:relative !important;float:right !important;text-align:left;clear:both !important;border-radius:11px;border:0;margin-left:8px !important}.onwebchatbox .me-first{border-top-right-radius:2px !important}.onwebchatbox .me-bubble .spanbold{display:none}.onwebchatbox .agent-bubble{background-color:#567ea6;width:60% !important;margin-left:5% !important;padding:8px;position:relative;text-align:left;clear:both !important;border-radius:11px;border:0;margin-right:8px !important}.onwebchatbox .big-margin-left{margin-left:13% !important}.onwebchatbox .agent-first{border-top-left-radius:2px !important}.onwebchatbox .agent-bubble .spanbold{display:none}.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}.onwebchatbox .onwebchat-widget-settings-icon:hover{opacity:1 !important;background:#e3dbdb8a !important;border-radius:34px !important}.onwebchatbox #onwebchat-emoticons-div{position:absolute;bottom:66px !important;right:4px !important;background-color:#fff !important;box-shadow:0 3px 12px 1px #b5b5b5 !important;border:1px solid #d2d2d2 !important;display:none;margin:0 !important;padding:4px 6px !important;list-style-type:none !important;box-sizing:content-box !important;line-height:initial !important;width:223px !important;width:-moz-max-content !important;width:max-content !important;border-radius:8px !important;font-size:22px !important;line-height:1.5 !important;user-select:none !important;z-index:999999 !important}#onwebchat-emoticons-div:after{display:block !important;content:'' !important;border:9px solid transparent !important;border-top-color:#fff !important;position:absolute !important;right:9px !important;bottom:-17px !important;pointer-events:none !important}.onwebchatbox #onwebchat-emoticons-div span{font-size:22px !important;box-sizing:border-box !important;margin-bottom:initial !important;padding:2px 2px !important;display:inline-block !important;text-align:center !important;width:1.53em !important;height:1.56em !important;line-height:26px !important;vertical-align:middle !important;transition:transform .12s ease !important;-webkit-transition:-webkit-transform .12s ease !important}.onwebchatbox #onwebchat-emoticons-div span img{height:1.1em !important}.onwebchatbox #onwebchat-emoticons-div span:hover{cursor:pointer !important;-webkit-transform:scale(1.21) !important;transform:scale(1.21) !important}#onwbchat_window .chat_area p>i{font-size:140% !important;line-height:1.2 !important;font-style:normal !important}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;bottom:30px !important;left:10px !important;background-color:#fefefe !important;border:1px solid #d2d2d2 !important;opacity:1;display:none;margin:0 !important;padding:0 0 !important;list-style-type:none !important;width:initial !important;box-shadow:rgba(0,0,0,0.23) 0 2px 12px;border-radius:8px !important;overflow:hidden !important}.onwebchatbox .onwebchat-widget-settings-submenu li{text-align:left !important;float:initial !important;list-style-type:none !important;list-style:none !important;cursor:pointer !important;margin:0 !important;line-height:22px !important;direction:ltr !important;background:none !important;display:block !important;font-size:10px !important;padding:3px 50px 6px 10px !important}.onwebchatbox .onwebchat-widget-settings-submenu li:hover{background-color:#f4f4f4 !important;color:black !important}.onwebchatbox .onwebchat-widget-settings-submenu li:before{content:initial !important}.onwebchatbox .onwebchat-widget-settings-submenu-text{margin-right:10px;color:#484848;position:relative;bottom:4px !important;font-weight:500 !important;vertical-align:middle !important;font-family:arial,verdana,sans-serif !important;margin-left:11px !important;font-size:14px !important}.onwebchatbox .onwebchat-menu-icons{margin:0 0 0 5px !important;zoom:1.1 !important;vertical-align:baseline !important;fill:#787878 !important;position:relative !important;top:5px !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}#uploadfileid{opacity:.84}#uploadfileid:hover{opacity:1}#onwebchat-volume-li-id{opacity:.84}#onwebchat-volume-li-id:hover{opacity:1}#onwebchat-print-li{cursor:default !important;opacity:.5}#onwebchat-savetofile-li{cursor:default !important;opacity:.5}#onwebchat-email-li{cursor:default !important;opacity:.5}#onwebchat-endchat-li{cursor:default !important;opacity:.5}.onwebchatbox .onwcmodaltext{padding:8px 13px !important;line-height:20px !important;color:#383838 !important}.onwebchatbox .onwcmodal-content .onwcmodalclose{font-size:22px !important;color:#7f7e7e;font-weight:800;cursor:pointer;position:absolute;right:11px;top:4px;width:24px}.onwcmodalclose:hover{color:#ac1616 !important;background:#c9c9c9;border-radius:46px;transition-duration:350ms}.onwcmodal{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgb(70 70 70 / 55%);opacity:0;visibility:hidden;transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s;z-index:110;border-top-right-radius:5px;border-top-left-radius:5px;user-select:none}.onwebchatbox .onwcmodal-content{position:relative !important;display:grid !important;margin:auto;margin-top:50%;background-color:white !important;width:84% !important;max-width:240px !important;min-width:172px !important;line-height:24px !important;min-height:30px !important;font-size:15px !important;padding:32px 18px !important;border-radius:7px !important;user-select:none;text-align:center}.onwebchatbox .onwcmodal-content div{font-size:14px !important}.show-onwcmodal{opacity:1;visibility:visible;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.onwc-show{transition:opacity 400ms !important;opacity:1 !important}.onwc-hide{opacity:0 !important;transition:opacity 400ms !important}.onwebchatbox .onwcbutton{width:29% !important;cursor:pointer !important;line-height:initial !important;min-width:fit-content !important;min-width:-moz-fit-content !important;min-height:initial !important;margin-left:auto !important;margin-right:auto !important;color:#383838 !important;background:#ddd !important;font-family:Arial,Helvetica,sans-serif !important;border:1px solid rgba(0,0,0,0.0) !important;padding:5px 12px !important;font-size:14px !important;border-radius:5px !important;display:inline-block !important;height:fit-content !important}.onwcbutton:focus{outline-color:lightgray !important}.onwcbutton:hover{background:#c5c5c5 !important}#onwcemailtrans{text-align:left !important;border-radius:5px !important;height:20px !important;box-sizing:content-box !important;border:1px solid #909090 !important;height:20px !important;font-size:14px !important;padding:2% 5% !important;width:89% !important;outline:none !important;max-width:189px !important;margin:10px auto 19px auto !important}.onwebchatbox .orange{background:#f5d28d !important}.onwebchatbox .orange:hover:not(:disabled){background:#eac57b !important}.onwebchatbox .disabled{opacity:.5;cursor:default !important}#onwbchtlogo-in-widget-icon{width:12px !important;height:12px !important;bottom:-2px;position:relative;fill:#747474}.onwbchtlogo-in-widget-bw2,.onwbchtsend-icon,.onwbchtonline-icon,.onwbchtoffline-icon,.onwbchtupload-icon-2,.onwbchtvolume-icon-2,.onwbchtvolume-icon-off,.onwbchtsave-icon,.onwbchtemail-icon,.onwbchtclose2,.onwbchtendchat-icon{display:inline-block;background:url('https://www.onwebchat.com/chatimages/live-chat-images-3.png?v=2') no-repeat;overflow:hidden;text-indent:-9999px;text-align:left}.onwbchtlogo-in-widget-bw2{background-position:-1px -0;width:71px;height:10px}.onwbchtonline-icon{background-position:-1px -37px;width:23px;height:18px}.onwbchtoffline-icon{background-position:-52px -11px;width:17px;height:15px}.onwbchtupload-icon-2{background-position:-25px -39px;width:17px;height:14px}.onwbchtvolume-icon-2{background-position:-43px -43px;width:17px;height:13px}.onwbchtvolume-icon-off{background-position:-25px -54px;width:17px;height:13px}.onwbchtsave-icon{background-position:-1px -56px;width:16px;height:14px}.onwbchtemail-icon{background-position:-43px -57px;width:16px;height:15px}.onwbchtclose2{background-position:-18px -68px;width:14px;height:14px}.onwbchtendchat-icon{background-position:-16px -68px;width:17px;height:14px}#onwc_consent_l_offline span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_prechat span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_inchat_modal{margin-bottom:24px;display:block !important}#onwc_consent_l_inchat_modal span{font-size:14px !important;color:#545454 !important;line-height:20px !important;margin-bottom:18px}#onwc_consent_checkbox_inchat_modal{margin:0 5px 2px 0 !important}.onwebchatbox .rating{unicode-bidi:bidi-override;direction:rtl;text-align:center;margin-top:20px}.onwebchatbox .rating span{font-size:23px !important;display:inline-block !important;position:relative !important;width:1.1em !important;color:#aeaeae !important}.onwebchatbox .rating span:hover,.onwebchatbox .rating span:hover ~ span{cursor:pointer !important;color:#ffb900 !important}#onwbchat_window .onwcdepartmenu{display:none !important;position:absolute !important;background:white !important;list-style:none !important;border:1px solid #ddd !important;border-radius:7px !important;margin-top:-11px !important;padding-inline-start:0 !important;z-index:999999 !important;box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;-webkit-box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;user-select:none !important}#onwbchat_window .onwcdepartmenu>li{cursor:default !important;font-size:13px !important;padding:7px 15px 5px 15px !important}#onwbchat_window .onwcdepartmenu>li span{font-size:14px !important;color:#545454 !important}#onwbchat_window .onwcdepartmenu>li:hover{background:#fee188 !important}#onwbchat_window #upload_img{display:none;position:absolute;text-align:center;top:50%;width:100%;z-index:10000}#onwbchat_window .onwctime{text-align:left;display:block;padding-top:11px;opacity:0;padding-right:11px}#onwbchat_window .onwctime span{padding:initial !important;margin:initial !important;color:grey !important;font-size:13px !important;text-align:left !important}#onwbchat_window .onwctime.me{text-align:right !important}#onwbchat_window .onwcinner{display:inline-flex;width:100%}.onwcouter{position:relative;margin-bottom:2px;margin-top:3px !important}.onwcminner{position:relative;width:100%;text-align:right}.onwcouter:last-of-type .onwctime{opacity:1 !important}.onwcinner:hover .onwctime{opacity:1 !important;transition:opacity .5s ease-out;transition-delay:.09s}#onwbchat_window .onwcouter{margin-top:9px !important}#onwbchat_window .onwcouter_agent+.onwcouter_agent{margin-top:0 !important}#onwbchat_window .onwcouter_me+.onwcouter_me{margin-top:0 !important}#agenttypingimage{display:grid !important;position:relative !important;float:left !important;width:48px !important;height:42px !important;clear:both !important;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important}.onwc-typing-indicator{width:48px !important;height:32px !important;position:relative !important;margin-left:10px !important}.onwc-bubble{width:8px;height:8px;background:#555;position:absolute;bottom:0;border-radius:50%;animation:onwc-bubble 1.1s ease-in-out infinite}.onwc-bubble:nth-child(1){left:2px;animation-delay:0s}.onwc-bubble:nth-child(2){left:14px;animation-delay:.2s}.onwc-bubble:nth-child(3){left:26px;animation-delay:.4s}@keyframes onwc-bubble{0%{bottom:0;opacity:.6}50%{bottom:12px;opacity:1}100%{bottom:0;opacity:.6}} @keyframes onwbmoveleft { 0% { transform: scaleX(0.4) scaleY(0.4); } } #onweb_chatimage{ animation-name: onwbmoveleft ; animation-timing-function: linear; animation-iteration-count: 1 ; animation-duration: 0.35s ; }",Pe="free",We="0",Me="1",C="undefined",je=0,Se="560",Le="66",Oe="340",qe="right",Re="40",Ne="1",Ae="0",ze="1",He="1",Fe="1",De="0",Ze="1",Ue="0",Ve="1",Xe="1",$e="0",Ye="0",Ge="0",Je=0,Qe="0",k="0",T="1",Ke="1",et="0",tt="0",nt="0",ot="0",at="1",it="1";let dt="";''!=dt&&dt||(dt="chat-bot.png");var P=Nt('onwbchtblocked');''!=P&&null!=P&&'null'!=P&&'NaN'!=P||At('onwbchtblocked',P=0);var ct=""==(ct=S('onwbchtemailsSent'))?0:parseInt(ct),lt=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=Te.replace("#onweb_min_btn_margin",.36*Le-1.36)).replace(new RegExp('__modern','g'),"")).replace(/#textarea_width/g,Oe-71)).replace(/#chat_width/g,Oe)).replace(/#chatheader_width/g,Oe-40)).replace("#chat_area_height",Se-98-Le)).replace("#onwebchatbox_header_height_+_4",+Le+4)).replace(/#onwebchatbox_header1_height/g,Le)).replace(/#visitor_css_text_color/g,"#595959")).replace(/#agent_css_text_color/g,"#ffffff"),null!=C&&'undefined'!=C||(C=0),document.title),st=window.location.href;'remove'in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),window.addEventListener("orientationchange",function(e){1==L('maxChat')&&(setTimeout(function(){maximizeChatWindow()},20),setTimeout(function(){maximizeChatWindow()},200))});let rt=be/20*30;rt++,rt++;var mt=this,pt=navigator.appVersion,e=navigator.userAgent,t=navigator.appName,n=''+parseFloat(navigator.appVersion),ut=parseInt(navigator.appVersion,10);nn=pt+" -- "+e+" -- "+t+" -- "+n+" -- "+ut+" -- "+navigator.platform+" -- "+navigator.oscpu,-1!=(o=e.indexOf('Opera'))?(t='Opera',n=e.substring(o+6),-1!=(o=e.indexOf('Version'))&&(n=e.substring(o+8))):-1!=(o=e.indexOf('MSIE'))?(t='Internet Explorer',n=e.substring(o+5)):-1!=(o=e.indexOf('Edge'))||-1!=(o=e.indexOf('Edg/'))?(t='Edge',n=''):-1!=(o=e.indexOf('Chrome'))?(t='Chrome',n=e.substring(o+7),-1!=(o=e.indexOf('OPR/'))&&(t='Opera',n=e.substring(o+4))):-1!=(o=e.indexOf('Safari'))?(t='Safari',n=e.substring(o+7),-1!=(o=e.indexOf('Version'))&&(n=e.substring(o+8))):-1!=(o=e.indexOf('Firefox'))?(t='Firefox',n=e.substring(o+8)):-1!=e.indexOf('Trident/')?(t='Internet Explorer',n=e.substring(e.indexOf('rv:')+3)):(ht=e.lastIndexOf(' ')+1)<(o=e.lastIndexOf('/'))&&(t=e.substring(ht,o),n=e.substring(o+1),t.toLowerCase()==t.toUpperCase())&&(t=navigator.appName),0<(n=-1!=(ht=(n=-1!=(ht=(n=-1!=(ht=n.indexOf(';'))?n.substring(0,ht):n).indexOf(' '))?n.substring(0,ht):n).indexOf(')'))?n.substring(0,ht):n).indexOf('.')&&0<(o=n.indexOf('.',n.indexOf('.')+1))&&(n=n.substring(0,o)),ut=parseInt(''+n,10),isNaN(ut)&&(n=''+parseFloat(navigator.appVersion),parseInt(navigator.appVersion,10)),'Edge'==t&&(n=''),F=!1,(/(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(e)||/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(e.substr(0,4)))&&(F=!0);var gt,ht=!!navigator.cookieEnabled,yt=(void 0!==navigator.cookieEnabled||ht||(document.cookie='testcookie',ht=-1!=document.cookie.indexOf('testcookie')),''),wt=[{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(gt in wt){var bt=wt[gt];if(bt.r.test(e)){yt=bt.s;break}}''==yt&&(yt=navigator.platform);var ft="-";switch(/Windows/.test(yt)&&(ft=/Windows (.*)/.exec(yt)[1],yt='Windows'),yt){case'Mac OS X':ft=/Mac OS X (10[\.\_\d]+)/.exec(e)[1];break;case'Android':ft=/Android ([\.\_\d]+)/.exec(e)[1];break;case'iOS':ft=(ft=/OS (\d+)_(\d+)_?(\d+)?/.exec(pt))[1]+'.'+ft[2]+'.'+(0|ft[3])}var o='no check';'undefined'!=typeof swfobject&&(o=0<(ut=swfobject.getFlashPlayerVersion()).major?ut.major+'.'+ut.minor+' r'+ut.release:"-"),mt.jscd={browser:t,browserVersion:n,isMobile:F,os:yt,osVersion:ft,cookies:ht,flashVersion:o},tn=jscd.os+' '+jscd.osVersion,en=jscd.browser+' '+jscd.browserVersion;try{var _t=function(e,t){var n,o,a,i;1!=C||"undefined"==typeof sessionStorage||'1'==L('hasTriggered')||1==S('hasTriggeredC')||1==S('inChatC')||""!=L('chattext')||1==L('maxChat')&&1==p||(s(),0!=x&&(Ot('onWebChat','Trigger activated',''),O('hasTriggered',1),j('hasTriggeredC',1,.166),O('mustSendTriggerText',!0),G=!0,O('triggerText',e),qt(),""!=M('max_served',I)&&""!=t&&"null"!=t&&null!=t&&(printChat('

'+M('max_served',I).replace('{{operator}}',t)+'

'),O('hasWrSeByTr',!(xe=""))),n=" agent-bubble ",i=a=o="",'agent'!=xe&&(n+=" agent-first ",1==le)&&(a=''),1==le&&(i=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" '),printChat('

'+a+''+M('max_agent',I).replace('{{operator}}',t)+' '+Lt(e).replace(/({{newline}})/gm,"
")+'

'),xe="agent",1!=L('maxChat')&&MaximizeWindowInit(),N)&&q.emit('setclientstatus','triggered'))};function vt(){clearTimeout(J),1!=B&&(27254==B?J=setTimeout(It,3e3,"Бихте ли ни дали телефон за връзка, за да уточним детайли?"):3322==B&&(J=setTimeout(It,1e4,"Right now all our operators are busy. Please wait a few minutes or give us your email, so we can contact you.")))}function It(e){var t,n,o,a;"undefined"!=typeof sessionStorage&&'1'!=L('hasTriggeredNoReply')&&1!=S('hasTriggeredNoReplyC')&&1!=S('inChatC')&&0!=x&&(Ot('onWebChat','Trigger (no reply) activated',''),O('hasTriggeredNoReply',1),j('hasTriggeredNoReplyC',1,.166),O('mustSendTriggerNoReplyText',!0),y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=624,L('chattext')&&(obj.chattext=L('chattext').substring(0,20)),q.emit('sendchat',"",e,0,0,624,pe,H,rt,obj),qt(),t=" agent-bubble ",a=o=n="",'agent'!=xe&&(t+=" agent-first ",1==le)&&(o=''),1==le&&(a=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(n=' style="direction: rtl;text-align:right;" '),printChat('

'+o+''+M('max_agent',I).replace('{{operator}}',"")+' '+Lt(e).replace(/({{newline}})/gm,"
")+'

'))}}catch(e){console.log(e)}var ut='[]'.replace(/(\r\n|\n|\r)/gm,"{{newline}}"),a=JSON.parse(ut),Et=!1;void 0!==L('secOnSite')&&"NaN"!=L('secOnSite')||O('secOnSite',0);let xt;function Bt(e){_e=!0,document.getElementById('wb-send-image').style.pointerEvents='none',document.getElementById("wb-send-image").style.opacity="0.42",'aibot'==e&&(xt=setTimeout(function(){Ct()},1e4))}function Ct(){clearTimeout(xt),_e=!1,document.getElementById('wb-send-image').style.pointerEvents='auto',document.getElementById("wb-send-image").style.opacity="0.90"}function kt(){L('chattext')&&L('chattext').endsWith(M('max_gone',I)+"

")&&(Be=!1,document.getElementById('onwbtxtarea').style.pointerEvents='none',document.getElementById("onwbtxtarea").disabled=!0,document.getElementById('wb-send-image').style.pointerEvents='none',document.getElementById('wb-smile-image').style.pointerEvents='none',document.getElementById("onwbtxtarea").style.opacity="0.42",document.getElementById("wb-send-image").style.opacity="0.42",document.getElementById("wb-smile-image").style.opacity="0.42",document.getElementById("onwbtxtarea").setAttribute("placeholder",""),disableMenuItem("uploadfileid"))}function Tt(){Be=!0;try{document.getElementById('onwbtxtarea').style.pointerEvents='auto',document.getElementById("onwbtxtarea").disabled=!1,document.getElementById('wb-send-image').style.pointerEvents='auto',document.getElementById('wb-smile-image').style.pointerEvents='auto'}catch(e){}document.getElementById("onwbtxtarea").style.opacity="1",document.getElementById("wb-send-image").style.opacity="0.90",document.getElementById("wb-smile-image").style.opacity="0.78",document.getElementById("onwbtxtarea").setAttribute("placeholder",M('max_placeholder',I)),enableMenuItem("uploadfileid")}var Pt=a.length;if(1!=F||0!=Me)for(var W=0;W/g,">").replace(/"/g,""").replace(/'/g,"'")}Et&&setInterval(function(){void 0!==L('secOnSite')&&'NaN'!=L('secOnSite')||O('secOnSite',0),O('secOnSite',parseInt(L('secOnSite'))+1)},1e3);var Ot=function(e,t,n){try{'function'==typeof gtag?gtag('event',t,{event_category:e,event_label:n}):ga('send','event',{eventCategory:e,eventAction:t,eventLabel:n})}catch(e){}};function qt(){if(Vt){""==document.getElementById("onwebchataudio").innerHTML.trim()&&(document.getElementById("onwebchataudio").innerHTML='');var e=document.getElementById("onwebchataudio");try{e.play()}catch(e){}}}var M=function(e,t){return d[e]&&d[e][t]?d[e][t]:'email_text'==e?"Send chat transcript to your email:":'email_sent'==e?"Transcript sent!":'send'==e?"Send":null==d[e]?"":d[e].l1};try{for(i=0;in.length)&&(t=n.length),t-=e.length,n.indexOf(e,t));return-1!==n&&n===t});var Ht,q,R=document.location.protocol,Ft=('file:'==R&&(R="https:"),document.location.port),Ft=null==document.location.protocol||''==Ft||'80'==Ft||'443'==Ft?'':':443',Dt=(serverIP="www.onwebchat.com","1"),Zt=!1,N=!1,A=!1,z=!0,Ut=816e5,H=('free'==Pe&&(Ut=444e5),""),Vt=!0,Xt=(''==(Vt=Nt('onwbchtSound'))||null==Vt?(Vt=!0,At("onwbchtSound",1)):0==Vt&&(Vt=!1),''!=(H=null==(H=Nt('onwbchtclientid'))?'':H)&&null!=H&&1==ue&&1==m&&(ue=0),"predefined/chat-with-us-1.png"),$t="predefined/chat-with-us-1.png",Yt="uploaded/26530/LIveChatOnWeb.png",Gt="uploaded/26530/LIveChatOnWeb.png";function Jt(){var e=navigator.userAgent.toLowerCase(),t=e.indexOf('msie '),n=e.indexOf('trident/'),o=e.indexOf('edge/');return 0()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e)}function Kt(n,o){void(jdelay=0)!==window.define&&(console.log("define.."),jdelay=1200),setTimeout(function(){var t=document.createElement('script'),e=(t.src=n,t.async=!0,t.onreadystatechange=t.onload=function(){var e=t.readyState;o.done||e&&!/loaded|complete/.test(e)||(o.done=!0,o())},document.getElementsByTagName('head')[0]);e.insertBefore(t,e.firstChild)},jdelay)}'undefined'==typeof JSON&&(Zt=!0);var en,tn,nn,F,on,an=!1;function dn(){A=!0,q.connect(),8!=Jt()&&(Ht=setTimeout(function(){q.io.disconnect(),minimizeChatWindow()},Ut))}function cn(){'chat'==Ce&&1==le?document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","50px","important"):document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","10px","important")}function ln(e){e&&(e.classList.remove('onwc-show'),e.classList.add('onwc-hide'),fadeTimout=setTimeout(function(){e.style.setProperty("display","none")},400))}if(function(){try{return window.self!==window.top}catch(e){}}()&&(an=!0),'function'!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}),maximizeChatWindow=function(){var e;return document.getElementById("onwbchat_window").style.setProperty("animation-iteration-count","0"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","rgba(0, 0, 0, 0.43) 0px 0em 1.2em","important"),1!=we&&!F||document.getElementById("onwbchat_window").style.setProperty("display","block"),"none"==document.getElementById("div_chat_max_title").style.display&&c(),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById("onweb_chatimage_x")&&document.getElementById("onweb_chatimage_x").style.setProperty("display","none"),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),1==je||0!=C||null!=L('chattext')&&''!=L('chattext')?(1==p&&0===L('chattext').length?(Ce="prechat",document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById('offline_form').style.display='none',document.getElementById('prechat_form').style.display='block'):(Ce="chat",document.getElementById('chat_area_id').style.display='block',document.getElementById('onwc_chat_message_div').style.display='block',document.getElementById('chat_info_id').style.display='block',document.getElementById('offline_form').style.display='none',document.getElementById('prechat_form').style.display='none'),document.getElementById("div_chat_max_title_span").textContent=M('max_title',I)):(Ce="offline",document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById('offline_form').style.display='block',document.getElementById("div_chat_max_title_span").textContent=M('off_title',I),document.getElementById('prechat_form').style.display='none'),F?(document.getElementById("onwbchat_window").style.setProperty("height","100%"),document.getElementById("onwbchat_window").style.setProperty("max-height","100%"),document.getElementById("onwbchat_window").style.setProperty("border-radius","0px","important"),document.getElementById("webchat_header").style.setProperty("border-radius","0px","important"),e=document.getElementById("onwbchat_window").clientWidth,document.getElementById("onwbtxtarea").style.setProperty("width",e-48-23+"px","important"),document.getElementById("chat_area_id").style.setProperty("width",+e+"px","important"),document.getElementById("webchat_header").style.setProperty("width",e-40+"px","important")):(document.getElementById("onwbchat_window").style.setProperty("height",Se+"px","important"),document.getElementById("onwbchat_window").style.setProperty("top",V+"px"),document.getElementById("onwbchat_window").style.setProperty("left",u+"px"),document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important")),document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("webchat_header").style.setProperty("height",Le+"px","important"),document.getElementById("webchat_header").style.setProperty("cursor","move"),document.getElementById("div_chat_max_title").style.setProperty("display","block"),document.getElementById("div_chat_min_title").style.setProperty("display","none"),document.getElementById('off-form-onwebchat-logo')&&(document.getElementById('off-form-onwebchat-logo').style.display='block'),document.getElementById('onwebchat-logo-span')&&(document.getElementById('onwebchat-logo-span').style.display='block'),O('maxChat',1),loadEmoticons(),D(),cn(),!1},minimizeChatWindow=function(){return 1!=we&&!F||document.getElementById("onwbchat_window").style.setProperty("display","none"),"block"==document.getElementById('div_chat_max_title').style.display&&l(),O('maxChat',0),setTimeout(function(){document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById("prechat_form")&&(document.getElementById('prechat_form').style.display='none'),document.getElementById("onwbchat_window").style.setProperty("height","66px"),document.getElementById('webchat_header').style.cursor='pointer',0==L('hideImage')&&document.getElementById("onweb_chatimage")&&(document.getElementById("onweb_chatimage").style.setProperty("display","inline"),document.getElementById("onweb_chatimage").style.setProperty("cursor","pointer"),document.getElementById("onweb_chatimage").style.setProperty("animation-iteration-count","0")),0==x&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById('onweb_chatimage_x')&&(document.getElementById('onweb_chatimage_x').style.display='inline',onweb_chatimage_loaded()),document.getElementById("div_chat_min_title").style.setProperty("display","block"),document.getElementById("div_chat_max_title").style.setProperty("display","none"),document.getElementById('off-form-onwebchat-logo')&&(document.getElementById('off-form-onwebchat-logo').style.display='none'),document.getElementById('onwebchat-logo-span')&&(document.getElementById('onwebchat-logo-span').style.display='none'),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),F||(document.getElementById("onwbchat_window").style.setProperty("top","initial"),document.getElementById("onwbchat_window").style.setProperty("left","initial"),document.getElementById("onwbchat_window").style.setProperty(qe,Re+"px"),document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important"))},100),!1},hideChatWindow=function(){ln(document.getElementById("onwbchat_window")),ln(document.getElementById("onweb_chatimage"))},showChatWindow=function(){document.getElementById("onwbchat_window").classList.remove('onwc-hide'),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").classList.remove('onwc-hide'),0==we&&0==F&&document.getElementById("onwbchat_window").style.setProperty("display","block"),1==L('hideImage')&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),0==L('hideImage')&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","inline"),1==L('maxChat')?maximizeChatWindow():(document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none')},1!=F||0!=Me)return hasRequirejs_delay=100,void 0!==window.define&&(hasRequirejs_delay=5e3),setTimeout(function(){window.__requirejsToggleBackup={define:window.define,require:window.require,requirejs:window.requirejs},window.define=void 0,window.require=void 0,window.requirejs=void 0,Zt||an||Kt(R+'//cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.min.js',""!=r?function(){!function(e,t,n){var o=new XMLHttpRequest;o.open('GET',e),o.withCredentials=!0,o.setRequestHeader('X-Requested-With','XMLHttpRequest'),o.setRequestHeader('Content-Type','application/json'),o.onreadystatechange=function(){4===o.readyState&&(200===o.status||0===o.status&&''!==o.responseText?n({url:e,status:200,body:o.responseText||''}):t({url:e,status:o.status,body:o.responseText||''}))},o.send()}(r,function(e){console.log("Error: language file failed to load! filename: "+r),console.log("Ensure that language file url is correct and is not blocked as cross-origin request."),'l1'!=I&&'l2'!=I&&(I='l1'),sn()},function(t){try{var e,n=JSON.parse(t.body);for(e in n)n.hasOwnProperty(e)&&(d[e]=n[e])}catch(e){console.log("exception parsing lang text file : "+e),console.log("lang text file data: "+t.body.substring(0,100)+" ...")}sn()})}:sn)},hasRequirejs_delay),enableMenuItem=function(e){document.getElementById(e)&&(document.getElementById(e).style.opacity=.84,document.getElementById(e).onmouseenter=function(e){this.style.opacity=1},document.getElementById(e).onmouseleave=function(e){this.style.opacity=.84},document.getElementById(e).style.setProperty("cursor","pointer","important"))},disableMenuItem=function(e){document.getElementById(e)&&(document.getElementById(e).style.opacity=.5,document.getElementById(e).onmouseenter=function(e){this.style.opacity=.5},document.getElementById(e).onmouseleave=function(e){this.style.opacity=.5},document.getElementById(e).style.setProperty("cursor","initial","important"))},''!=(on=Nt('onwbchttimesVisited'))&&null!=on&&'NaN'!=on||(on=0,At("onwbchttimesVisited",1)),{init:function(e){0},set:function(e,t){if("name"==e&&0==P){b=t;try{q.emit('setclientdetails',H,B,b,"","","")}catch(e){}}else if("email"==e&&0==P){f=t;try{q.emit('setclientdetails',H,B,"",f,"","")}catch(e){}}else if("phone"==e&&0==P){_=t;try{q.emit('setclientdetails',H,B,"","",_,"")}catch(e){}}else if("notes"==e&&0==P){Q=t;try{q.emit('setclientdetails',H,B,"","","",Q)}catch(e){}}else if("pageUrl"==e&&0==P)try{q.emit('setclientpageurl',H,B,"",t)}catch(e){}else if("pageTitle"==e&&0==P)try{q.emit('setclientpageurl',H,B,t,"")}catch(e){}else"max"==e&&0==P?1==t?(maximizeChatWindow(),document.getElementById("onwbtxtarea").focus()):0==t&&minimizeChatWindow():"show"==e&&0==P?1==t?(x=1,showChatWindow()):0==t&&(x=0,hideChatWindow()):"online"==e&&0==P||"hideImage"==e&&0==P||("language"==e&&0==P?'l1'!=(I='en'==(I='gr'!=(I=t)&&'el'!=I?I:'l1')?'l2':I)&&'l2'!=I&&(I='l1'):"languageFile"==e&&0==P?r="":"onClick"==e&&0==P?K=t:"onMaximize"==e&&0==P?c=t:"onMinimize"==e&&0==P?l=t:"onTrigger"==e&&0==P?s=t:"onStartWriting"==e&&0==P?ee=t:"onUpdateOperators"==e&&0==P?te=t:"onNewMessage"==e&&0==P?ne=t:"onWebChatLoaded"==e&&0==P?oe=t:"onlineColor"==e&&0==P?(ae=t,1==C&&""!=ae&&document.getElementById("webchat_header").style.setProperty('background-color',ae,'important')):"offlineColor"==e&&0==P&&(v=t,1!=C)&&""!=v&&(document.getElementById("webchat_header").style.setProperty('background-color',v,'important'),document.getElementById("offlineform_btn").style.setProperty('background-color',v,'important')))},get:function(e){return"name"==e?b:"email"==e?f:"phone"==e?_:"notes"==e?Q:"status"==e?1==C?"online":"offline":""}};function D(){let e;if(e='block'==document.getElementById("prechat_form").style.getPropertyValue('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),1==L('maxChat')&&null!=e){"rgb(255, 255, 255)"==getComputedStyle(e).backgroundColor&&e.style.setProperty("background-color","#ababab","important");let n=i();if(n<40&&''==document.getElementById("onwebchatform_div_id").style.margin||n<0){var o=(40-n)/9;let e=30-3*o;e<0&&(e=0),document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("prechat_btn").style.setProperty("margin",e+"px auto 20px","important"),document.getElementById("offlineform_btn").style.setProperty("margin",e+"px auto 20px","important");var a=document.getElementsByClassName("onwebchatform_div");let t=25-2*o;t<4&&(t=4),a[0].style.setProperty("margin",t+"px auto auto","important"),a[1].style.setProperty("margin",t+"px auto auto","important"),document.getElementById("onweboffline_msg_id").style.setProperty("margin-bottom",26-2*o+"px","important"),document.getElementById("onweboffline_msg_id").style.setProperty("top",10-o+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("margin-bottom",26-2*o+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("top",10-o+"px","important"),n=i()}function i(){let e;return e='block'==document.getElementById("prechat_form").style.getPropertyValue('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),document.getElementById('onwbchat_window').getBoundingClientRect().bottom-e.getBoundingClientRect().bottom}(n=i())<28&&(a=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('height')),document.getElementById("onwbchat_window").style.setProperty("height",a+(28-n)+"px","important"))}}function sn(){function n(e){e&&(e.classList.contains('onwc-show')?(e.classList.remove('onwc-show'),e.classList.add('onwc-hide'),l=setTimeout(function(){e.style.setProperty("display","none")},400)):(clearTimeout(l),e.style.setProperty("display","block"),setTimeout(function(){e.classList.remove('onwc-hide'),e.classList.add('onwc-show')},0)))}Object.assign&&(Object.assign(window,window.__requirejsToggleBackup),delete window.__requirejsToggleBackup),document.getElementsByTagName('head')[0].insertAdjacentHTML('beforeend',""),0==document.querySelectorAll(".onwebchatbox").length&&(div_chat_min_title=M(1==C?'min_online':'min_offline',I),u=(e=' by onWebChat').replace("l=2&",""),1==We&&(e=u=""),image_name=F?1==C?Xt:$t:1==C?Yt:Gt,t='',1==le&&(t=''),a='
'+M('max_msg',I)+'
',''==M('max_msg',I)&&(a=''),tempSaveSt='',Jt()||(tempSaveSt='
  • '+M('menu_save',I)+'
  • '),o=p=m="",1==k&&(s=r="",1==T&&(r='',s='padding-left: 0px;text-indent:-17px;'),m='',p=m.replace(/_offline/g,'_prechat'),o=m.replace(/_offline/g,'_inchat_modal')),1==F&&1!=Me||8!=Jt()&&document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',"
    "+div_chat_min_title+"
    "+M('off_msg',I)+"
    "+(0==Ne?'':'')+(0==ze?'':'')+(0==Fe?'':'')+''+m+''+u+"
    "+M('prechat_msg',I)+"
    "+(0==Ze?'':'')+(0==Ve?'':'')+(0==$e?'':'')+(0==Qe?'':'
      ')+''+p+''+u+"
      "+t+a+"
      • "+M('menu_send_file',I)+"
      • "+M('menu_email',I)+"
      • "+M('menu_print',I)+'
      • '+tempSaveSt+'
      • '+se+''+M('menu_sound',I)+"
      • "+M('menu_end_chat',I)+"
      "+e+'
      ×
      File size larger than 50 Mb
      ×
      File type not allowed
      "+M('email_text',I)+"
      ×
      "+M('email_sent',I)+"
      "+M('end_chat_msg',I)+'
      "+M('rating_msg',I)+"
      "+o+"
      "),openonwcDepartMenu=function(){q.emit('askdepartments',B),widthtemp=document.getElementById("departments").offsetWidth,document.getElementById("onwcdepartmenu").style.setProperty("width",widthtemp+"px","important")},onwcmenuliclick=function(e){document.getElementById("departments").value=e.children[0].innerText,Je=e.children[1].innerText.trim(),q.emit('visitorselectdepartment',B,Je),setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #CCC","important")},0)},consentTextClicked=function(){var e;1==T&&((e=document.getElementById("onwc_consent_checkbox_inchat_modal"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change"))),(e=document.getElementById("onwc_consent_checkbox_offline"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change"))),e=document.getElementById("onwc_consent_checkbox_prechat"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change")))},toggleModal=function(e,t){document.getElementById(e).classList.toggle("show-onwcmodal",t)},document.getElementById('onwbchat_window')&&document.getElementById('onwbchat_window').addEventListener("click",function(e){'onwcEndChatModal'!==e.target.id&&'onwcFileModal'!==e.target.id&&'onwcFileModalType'!==e.target.id&&'onwcEmailModal'!==e.target.id&&'onwcEmailOkModal'!==e.target.id||toggleModal(e.target.id,!1),'departments'!=e.target.id&&'onweb_menu_minimize_btn_id'!=e.target.id&&document.getElementById("onwcdepartmenu")&&document.getElementById("onwcdepartmenu").style.setProperty("display","none","important")}),checkPhone=function(e){e.value=e.value.replace(/[^\d -]/g,'')},emailTranscript=function(){""!=L('chattext')&&ct<6&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),toggleModal("onwcEmailModal"),document.getElementById("onwcemailtrans").focus())},checkMobileChatHeight=function(){try{var e;F&&(e=document.getElementById("onwbchat_window").clientHeight,document.getElementById("chat_area_id").style.setProperty("height",e-98-Le-4+14+"px"),rn(document.getElementById("chat_area_id"),2,1))}catch(e){}},clickConsentModalOk=function(){var e=-1;document.getElementById("onwc_consent_checkbox_inchat_modal")&&(e=document.getElementById("onwc_consent_checkbox_inchat_modal").value),1==T&&0==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848"):1==T&&1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?(j("consentvalue",2,93),toggleModal('onwcConsentModal',!1),q.emit('setconsentsettings',H,e,k,T)):1==k&&1!=T&&(j("consentvalue",1,93),toggleModal('onwcConsentModal',!1),q.emit('setconsentsettings',H,e,k,T))},document.getElementById("onwc_consent_checkbox_inchat_modal")&&document.getElementById("onwc_consent_checkbox_inchat_modal").addEventListener('change',function(){1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked&&document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}),endChatClicked=function(){1==de&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),toggleModal("onwcEndChatModal",!0))},endChatFunction=function(){if(""!=L('chattext')){O('chattext',''),disableMenuItem("onwebchat-print-li"),disableMenuItem("onwebchat-savetofile-li"),disableMenuItem("onwebchat-email-li"),disableMenuItem('onwebchat-endchat-li'),de=!1;var t=document.getElementById('chat_area_id'),n=t.childNodes;for(let e=n.length-1;0<=e;e--){var o=n[e];'IMG'===o.tagName.toUpperCase()&&'operatorImage'===o.id||t.removeChild(o)}document.getElementById('chat_area_id').insertAdjacentHTML('beforeend',a),showChatWindow(),q.emit('close_dialog_visitor'),O("servingOpImage",""),E="",1==le&&(E="0_support_man.png"),document.getElementById("departments")&&(document.getElementById("departments").value="",document.getElementById("departments").placeholder=M('departments',I)),document.getElementById('onprechattext').value='',Je=0}toggleModal('onwcEndChatModal',!1),1==ge&&1==S('inChatC')&&0==ye&&toggleModal("onwcRatingChatModal",!0),O("isRated",ye=0),O('hasTriggeredNoReply',0),j('hasTriggeredNoReplyC',0,.166),j('inChatC',0,.166)},rate=function(e){for(this.rating=e,document.getElementById("sendStarButton").classList.remove("disabled"),document.getElementById("sendStarButton").removeAttribute("disabled"),W=1;W<=e;W++){var t="onwcstar"+W;document.getElementById(t).style.setProperty("color","#ffb900","important")}for(W=e+1;W<=5;W++){t="onwcstar"+W;document.getElementById(t).style.setProperty("color","#aeaeae","important")}},sendRate=function(){q.emit('ratechat',B,he,this.rating),toggleModal('onwcRatingChatModal',!1),0==S('inChatC')?O("isRated",ye=0):O("isRated",ye=1)},sendEmailTranscript=function(){var e;Qt(document.getElementById('onwcemailtrans').value)?ct<6&&(e=(new Date).getTimezoneOffset()/60*-1,q.emit('onwcemailtranscript',H,B,document.getElementById("onwcemailtrans").value,e,st),toggleModal("onwcEmailModal",!1),e=S('onwbchtemailsSent'),ct++,j('onwbchtemailsSent',""==e?1:parseInt(e)+1,.0416)):(document.getElementById("onwcemailtrans").focus(),document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important"))},document.getElementById("onwcemailtrans")&&document.getElementById("onwcemailtrans").addEventListener('keyup',function(){Qt(document.getElementById('onwcemailtrans').value)&&document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}),(1==C?Tt:kt)(),1==we&&document.getElementById("onwbchat_window").style.setProperty('display','none'),1==C?document.getElementById("onweb-offline-icon")&&document.getElementById("onweb-offline-icon").style.setProperty('display','none'):document.getElementById("onweb-online-icon")&&document.getElementById("onweb-online-icon").style.setProperty('display','none'),1==C&&""!=ae?document.getElementById("webchat_header").style.setProperty('background-color',ae,'important'):""!=v&&(document.getElementById("webchat_header").style.setProperty('background-color',v,'important'),document.getElementById("offlineform_btn").style.setProperty('background-color',v,'important')),0==Ke&&document.getElementById('onwc-settings-icon-id').remove(),0==tt&&0==et&&0==nt&&0==ot&&0==at&&0==it&&document.getElementById('onwebchat-widget-settings-submenu-ul')&&document.getElementById('onwebchat-widget-settings-submenu-ul').remove(),0==tt&&document.getElementById('onwebchat-email-li')&&document.getElementById('onwebchat-email-li').remove(),0==et&&document.getElementById('uploadfileid')&&document.getElementById('uploadfileid').remove(),0==nt&&document.getElementById('onwebchat-print-li')&&document.getElementById('onwebchat-print-li').remove(),0==ot&&document.getElementById('onwebchat-savetofile-li')&&document.getElementById('onwebchat-savetofile-li').remove(),0==at&&document.getElementById('onwebchat-volume-li-id')&&document.getElementById('onwebchat-volume-li-id').remove(),0==it&&document.getElementById('onwebchat-endchat-li')&&document.getElementById('onwebchat-endchat-li').remove(),validateFileSizeType=function(e,t){let n,o,a=(o=(1==t?(n=e.files[0].size/1024/1024,e.files[0]):(n=e.size/1024/1024,e)).name).split(".");a=(a=a[a.length-1]).toLowerCase();return["jpg","jpeg","png","gif","bmp","tiff","docx","xlsx","pdf","txt","rtf"].includes(a)?50'+M('max_me',I)+"\t[loading...]

      ",'me'),1==t&&(e=new FormData(document.getElementById("onwbchtUploadForm")),1==Ke)&&1==et&&sendFileToServer(e),!0):(toggleModal('onwcFileModalType'),document.getElementById('onwbchtFileinput').value='',!1)},SaveToFile=function(e){try{var t,n,o,a,i,d;""!=L('chattext')&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),n=(t=new Date).getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate(),o='Chat transcript from '+mn(window.location.href)+' on '+n+'

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

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




      ',0 in(d=document.createElement('a')),d.setAttribute('href','data:text/plain;charset=utf-8,'+encodeURIComponent(i)),d.setAttribute('download',a),document.createEvent?(i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,clientX:0}),d.dispatchEvent(i)):d.click())}catch(e){console.log(e)}},PrintElem2Printer=function(e){try{""!=L('chattext')&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),Popup2Print(document.getElementById(e).innerHTML))}catch(e){console.log(e)}},Popup2Print=function(e){var t=window.open('','onWebChat live chat - Print ','height=700,width=920');return t.document.write('Chat transcript from '+mn(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(),!0},okButtonClicked=function(){q.emit('chatWindowMax',0),minimizeChatWindow()},uploadFilePressed=function(){.9',"")),rn(document.getElementById("chat_area_id"),20,1),setTimeout(function(){rn(document.getElementById("chat_area_id"),20,1)},500),setTimeout(function(){rn(document.getElementById("chat_area_id"),20,1)},1e3),o.src=t,(n=document.createElement("a")).innerHTML=o.outerHTML,n.setAttribute('href',R+"//"+serverIP+"/filesUpload/"+encodeURI(a)),n.setAttribute('target','_blank'),n.setAttribute('rel','noopener noreferrer'),o.parentNode.insertBefore(n,o),o.remove()):(t=o.src.replace("loading.gif","download-icon.png"),e=a.replace(/^.*[\\\/]/,''),o.src=t,(n=document.createElement("a")).innerHTML=o.outerHTML,n.setAttribute('href',R+"//"+serverIP+"/filesUpload/"+encodeURI(a)),n.setAttribute('target','_blank'),n.setAttribute('rel','noopener noreferrer'),o.parentNode.insertBefore(n,o),t=o.parentNode,o.remove(),(n=document.createElement("span")).innerHTML=e,t.appendChild(n),O('chattext',L('chattext').replace('',""+e+""))),y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=3244,L('chattext')&&(obj.chattext=L('chattext').substring(0,20));let i=0;N||(i=5400,0==N&&0==A&&(obj.socketReconnect=1,dn())),setTimeout(function(){y=g(),obj.durationInSeconds2=(y-U)/1e3,obj.socketDurationInSeconds2=(y-h)/1e3,obj.isConnected2=N,obj.tryToReconnect2=A,obj.firstConnection2=z,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=i,obj.pos=3244,q.emit('sendchat','{{fileuploaded:'+a+'}}',void 0,0,0,3244,pe,H,rt,obj),ne("{{fileuploaded:"+a+"}}","visitor")},i)},document.getElementsByClassName("formVal"),(a=new XMLHttpRequest).onreadystatechange=function(){4===a.readyState&&(200===a.status||0===a.status&&''!==a.responseText?o({url:t,status:200,body:a.responseText||''}):n({url:t,status:a.status,body:a.responseText||''}))},a.open("post",t,!0),a.send(e)},document.getElementById('onwc-settings-icon-id')&&(document.getElementById('onwc-settings-icon-id').onclick=function(e){var t;e.stopPropagation(),(t=document.getElementById('onwebchat-emoticons-div'))&&(t.classList.remove('onwc-show'),t.classList.add('onwc-hide'),setTimeout(function(){t.style.setProperty("display","none")},400)),n(document.getElementById('onwebchat-widget-settings-submenu-ul'))}),document.getElementById('wb-smile-image').onclick=function(e){var t;e.stopPropagation(),n(document.getElementById('onwebchat-emoticons-div')),(t=document.getElementById('onwebchat-widget-settings-submenu-ul'))&&t.classList.contains('onwc-show')&&(t.classList.remove('onwc-show'),t.classList.add('onwc-hide'),l=setTimeout(function(){t.style.setProperty("display","none")},400)),0==N&&0==A&&dn()},document.addEventListener("click",function(e){document.getElementById("onwebchat-widget-settings-submenu-ul")&&'1'==document.getElementById("onwebchat-widget-settings-submenu-ul").classList.contains('onwc-show')&&n(document.getElementById('onwebchat-widget-settings-submenu-ul')),'1'==document.getElementById("onwebchat-emoticons-div").classList.contains('onwc-show')&&n(document.getElementById('onwebchat-emoticons-div'))}),document.getElementById('onwebchat-volume-li-id')&&(document.getElementById('onwebchat-volume-li-id').onclick=function(e){1==Vt?(Vt=!1,At("onwbchtSound",0),document.getElementById('onwebchat-volume-icon').innerHTML=re):(Vt=!0,At("onwbchtSound",1),document.getElementById('onwebchat-volume-icon').innerHTML=se)}),0==Vt&&(document.getElementById('onwebchat-volume-icon').innerHTML=re),document.getElementById("onwebchat-widget-settings-submenu-ul")&&document.getElementById("onwebchat-widget-settings-submenu-ul").addEventListener("click",function(e){e.stopPropagation()}),document.getElementById("onwebchat-emoticons-div").addEventListener("click",function(e){e.stopPropagation()}),document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),1!=ue&&!F||(imageClass=F?"onweb_chatimage_mobile":"onweb_chatimage",s=R+'//'+serverIP+'/chatWidgetImages/'+image_name,(r=document.getElementById('onwbchat_window'))&&(r.insertAdjacentHTML("afterend",'
      '),0==x)&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),0==C&&1==je&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),onweb_chatimage_loaded=function(){document.getElementById('onwbchat_window').insertAdjacentHTML('beforeend','
      ');var e=parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("left"))+parseInt(document.getElementById('onweb_chatimage').clientWidth)-4,e=(document.getElementById("onweb_chatimage_x").style.setProperty("left",e+"px"),parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("bottom"))+parseInt(document.getElementById('onweb_chatimage').clientHeight)-4);document.getElementById("onweb_chatimage_x").style.setProperty("bottom",e+"px"),document.getElementById('onwbchat_window').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'},document.getElementById('onweb_chatimage_x').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'},document.getElementById('webchat_header').onmouseenter=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'},document.getElementById('onweb_chatimage_x').onclick=function(){document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById('onweb_chatimage_x').style.display="none",O('hideImage',1)}}),document.getElementById('offlineform_btn').onclick=function(){var e,t,n,o,a;return 1==k&&1==T&&0==document.getElementById("onwc_consent_checkbox_offline").checked||1==ze&&1==He&&!Qt(document.getElementById("onwebchatoffemail").value)||1==Fe&&1==De&&document.getElementById("onwebchatofftel").value.length<4||1==Ne&&1==Ae&&document.getElementById("onwebchatoffname").value.length<2||document.getElementById("onwebchatemailtext").value.length<1?(1==k&&1==T&&0==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#D04848","important"),document.getElementById("onwebchatemailtext").value.length<1&&(document.getElementById("onwebchatemailtext").focus(),document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")),1==Fe&&1==De&&document.getElementById("onwebchatofftel").value.length<4&&(document.getElementById("onwebchatofftel").focus(),setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0),D()),1!=ze||1!=He||Qt(document.getElementById("onwebchatoffemail").value)||(document.getElementById("onwebchatoffemail").focus(),setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0),D()),1==Ne&&1==Ae&&document.getElementById("onwebchatoffname").value.length<2&&(document.getElementById("onwebchatoffname").focus(),setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0),D())):(e=-1,document.getElementById("onwc_consent_checkbox_offline")&&(e=document.getElementById("onwc_consent_checkbox_offline").value),(t=new FormData).append('clientip',ce),t.append('clientid',H),t.append('sid',B),t.append('name',''),t.append('email',''),t.append('text',''),t.append('phone',''),document.getElementById("onwebchatoffname")&&t.append('name',document.getElementById("onwebchatoffname").value),document.getElementById("onwebchatoffemail")&&t.append('email',document.getElementById("onwebchatoffemail").value),document.getElementById("onwebchatemailtext")&&t.append('text',document.getElementById("onwebchatemailtext").value),document.getElementById("onwebchatofftel")&&t.append('phone',document.getElementById("onwebchatofftel").value),t.append('conboxv',e),t.append('conuse',k),t.append('conboxshow',T),a=o=n=t="",document.getElementById("onwebchatoffname")&&(n=document.getElementById("onwebchatoffname").value),document.getElementById("onwebchatoffemail")&&(t=document.getElementById("onwebchatoffemail").value),document.getElementById("onwebchatemailtext")&&(o=document.getElementById("onwebchatemailtext").value),document.getElementById("onwebchatofftel")&&(a=document.getElementById("onwebchatofftel").value),q.emit('visitorSendOfflineEmail',H,ce,B,n,t,o,a,e,k,T,st),document.getElementById('onwebchatform_div_id').style.display="none",document.getElementById('onweboffline_msg_id').innerHTML=M('off_thank',I)+'',Ot('onWebChat','Offline message sent','')),!1},document.getElementById('prechat_btn').onclick=function(){if(document.getElementById("onprechatname")&&(b=document.getElementById("onprechatname").value),document.getElementById("onprechatemail")&&(f=document.getElementById("onprechatemail").value),document.getElementById("onprechattel")&&(_=document.getElementById("onprechattel").value),null==f&&(f=""),null==_&&(_=""),b=(b=null==b?"":b).trim(),f=f.trim(),_=_.trim(),1==k&&1==T&&0==document.getElementById("onwc_consent_checkbox_prechat").checked||1==Ve&&1==Xe&&!Qt(f)||1==$e&&1==Ye&&_.length<4||1==Ze&&1==Ue&&b.length<2||1==Qe&&1==Ge&&0==Je||document.getElementById('onprechattext').value.trim().length<1)return 1==k&&1==T&&0==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#D04848","important"),document.getElementById('onprechattext').value.trim().length<1&&(document.getElementById('onprechattext').focus(),document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")),1==$e&&1==Ye&&_.length<4&&(document.getElementById("onprechattel").focus(),setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0),D()),1!=Ve||1!=Xe||Qt(document.getElementById('onprechatemail').value)||(document.getElementById("onprechatemail").focus(),setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0),D()),1==Ze&&1==Ue&&b.length<2&&(document.getElementById("onprechatname").focus(),setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0),D()),1==Qe&&1==Ge&&0==Je&&(setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #D04848","important")},0),D()),!1;{var t=document.getElementById("onprechattext").value,n=(q.emit('setclientdetails',H,B,b,f,_,""),-1);1==(n=document.getElementById("onwc_consent_checkbox_prechat")?document.getElementById("onwc_consent_checkbox_prechat").value:n)?j("consentvalue",2,93):1==k&&j("consentvalue",1,93),q.emit('setconsentsettings',H,n,k,T),document.getElementById('chat_area_id').style.display="block",document.getElementById('onwc_chat_message_div').style.display="block",document.getElementById('chat_info_id').style.display="block",document.getElementById('prechat_form').style.display="none",document.getElementById('div_chat_max_title_span').textContent=M('max_title',I);printChat("

      "+M('max_me',I)+'\t'+Lt(t)+'

      ','me'),xe="me",y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=3850,L('chattext')&&(obj.chattext=L('chattext').substring(0,20));let e=0;return N||(e=5400,0==N&&0==A&&(obj.socketReconnect=1,dn())),setTimeout(function(){y=g(),obj.durationInSeconds2=(y-U)/1e3,obj.socketDurationInSeconds2=(y-h)/1e3,obj.isConnected2=N,obj.tryToReconnect2=A,obj.firstConnection2=z,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=e,setTimeout(function(){q.emit('sendchat',t,void 0,0,Je,3850,pe,H,rt,obj)},400)},e),vt(),Ce="chat",cn(),!1}},document.getElementById('onwc_consent_checkbox_offline')&&document.getElementById('onwc_consent_checkbox_offline').addEventListener('change',function(){1==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#545454","important")}),document.getElementById('onwc_consent_checkbox_prechat')&&(document.getElementById('onwc_consent_checkbox_prechat').onchange=function(){1==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#545454","important")}),document.getElementById('onwebchatoffemail')&&(document.getElementById('onwebchatoffemail').onkeyup=function(){Qt(document.getElementById('onwebchatoffemail').value)&&(document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onwebchatemailtext')&&(document.getElementById('onwebchatemailtext').onkeyup=function(){1<=document.getElementById('onwebchatemailtext').value.length&&(document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onwebchatofftel')&&(document.getElementById('onwebchatofftel').onkeyup=function(){checkPhone(document.getElementById('onwebchatofftel')),4<=document.getElementById('onwebchatofftel').value.length&&(document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onwebchatoffname')&&(document.getElementById('onwebchatoffname').onkeyup=function(){2<=document.getElementById('onwebchatoffname').value.length&&(document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onprechatemail')&&(document.getElementById('onprechatemail').onkeyup=function(){Qt(document.getElementById('onprechatemail').value)&&(document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onprechattext').onkeyup=function(){1<=document.getElementById('onprechattext').value.length&&(document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important"),D())},document.getElementById('onprechattel')&&(document.getElementById('onprechattel').onkeyup=function(){checkPhone(document.getElementById('onprechattel')),4<=document.getElementById('onprechattel').value.length&&(document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important"),D())}),document.getElementById('onprechatname')&&(document.getElementById('onprechatname').onkeyup=function(){2<=document.getElementById('onprechatname').value.length&&(document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important"),D())}),loadEmoticons=function(){if(""==document.getElementById('onwebchat-emoticons-div').innerHTML){document.getElementById('onwebchat-emoticons-div').insertAdjacentHTML('beforeend',"😉 😀 🙂 😂 😃 😁
      😅 😆 😎 😊 😇 😋
      😌 🤔 😍 😘 😗 😶
      😚 😜 😝 😛 😐 😒
      😳 😲 😵 😧 😞 😟
      😠 😡 😈 😔 😕 😓
      😦 😣 😖 😩 😤 😱
      😨 😰 😢 😭 😷 😴
      👍 👎 👏 🤝 💓 🙋");for(var e=document.querySelector("#onwebchat-emoticons-div").querySelectorAll("span"),t=0;t

      ")&&1==C&&0!=Ie&&(n=document.getElementById('chat_area_id').lastChild,document.getElementById('chat_area_id').removeChild(n),O('chattext',L('chattext').substring(0,L('chattext').lastIndexOf('

      '+M('max_gone',I)+'

      '))),Tt()),1==C&&0!=Ie&&Tt(),0==ve&1!=C)&&0==Ie&&0

      ")||setTimeout(function(){1==C||0!=Ie||L('chattext').endsWith(M('max_gone',I)+"

      ")||(printChat('

      '+M('max_gone',I)+'

      '),kt())},1==$?3e3:1e3))}),q.on('setIsBlocked',function(e){At("onwbchtblocked",P=e=null==e?0:e),1==P?hideChatWindow():0!=P||1!=C&&1==je||0!=x&&showChatWindow()}),q.on('visitordeleted',function(){O('chattext',''),document.querySelectorAll('#chat_area_id p').forEach(function(e){e.remove()}),ln(document.getElementById("onwbchat_window")),deleteAllCookiesAndStorage(),q.disconnect()}),deleteAllCookiesAndStorage=function(){Rt("onwbchtclientid"),Rt("inChatC"),Rt("onwbchtSound"),Rt("onwbchtblocked"),Rt("onwbchtexpress.sid"),Rt("onwbchtlastvisit"),Rt("onwbchtsessionrandom"),Rt("onwbchttimesVisited");try{localStorage.clear(),sessionStorage.clear()}catch(e){}},q.on('servercommand',function(e,t,n,o,a,i){null!=n&&""!=n||(n="operator"),'close_dialog'==e?(1==S('inChatC')&&""!=M('max_closed',I)&&printChat('

      '+M('max_closed',I).replace('{{operator}}',n)+'

      '),1==ge&&1==S('inChatC')&&0==ye&&toggleModal("onwcRatingChatModal",!0),j('inChatC',0,.166),O("servingOpImage",""),E=1==le?"0_support_man.png":"",O('hasTriggeredNoReply',0),j('hasTriggeredNoReplyC',0,.166),disableMenuItem('onwebchat-endchat-li'),de=!1,O('isRated',ye=0),he=i):'serve_dialog'==e?($="androidapp"==o?1:0,xe="served_by",""==M('max_served',I)||L('hasWrSeByTr')||printChat('

      '+M('max_served',I).replace('{{operator}}',n)+'

      '),null!=a&&''!=a&&(O("servingOpImage",E=a),document.getElementById("operatorImage"))&&document.getElementById("operatorImage").setAttribute('src',R+'//'+serverIP+'/filesUpload/operatorImages/'+a)):'no_agent'==e&&printChat('

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

      ')}),q.on('disablesendbutton',function(){Bt('aibot')}),q.on('updatechatvisitor',function(e,t){var n="",n=" me-bubble ",o=('me'!=xe&&(n+=" me-first "),"");1==isRTLlanguage(e.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" '),printChat('

      '+M('max_me',I)+'\t'+Lt(e)+'

      ',"me"),xe="me"}),q.on('updatechat',function(e,t,n,o){if('aibot'==(o=null!=o&&""!=o?o:"operator")?(O("chatWithBot",ve=1),E=dt,document.getElementById('onwbtxtarea').maxLength=fe,document.getElementById("operatorImage")&&document.getElementById("operatorImage").setAttribute('src',R+'//'+serverIP+'/filesUpload/operatorImages/'+dt),O("servingOpImage",dt)):O("chatWithBot",ve=0),'command:typing...'==n){document.getElementById('agenttypingimage')&&document.getElementById('agenttypingimage').remove();let e=1==le?" big-margin-left ":"";document.getElementById('chat_area_id').insertAdjacentHTML("beforeend","
      "),setTimeout(function(){document.getElementById("chat_area_id").scrollTop=9999999},0)}else if('command:notyping...'==n)try{null!=document.getElementById('agenttypingimage')&&(document.getElementById('agenttypingimage').style.visibility='hidden')}catch(e){}else{var a,i,d,c;0!=x&&(Ct(),qt(),clearTimeout(J),Tt(),document.getElementById('agenttypingimage')&&document.getElementById('agenttypingimage').remove(),i=a=d="",d=" agent-bubble ",'agent'!=xe&&(d+=" agent-first ",1==le)&&(a=''),1==le&&(i=" big-margin-left "),ne(n,"operator"),j('inChatC',1,.166),c="",1==isRTLlanguage(n.substr(0,1))&&(c=' style="direction: rtl;text-align:right;" '),printChat('

      '+a+''+M('max_agent',I).replace('{{operator}}',o)+' '+Lt(n)+'

      '),xe="agent",""!=e&&1!=L('maxChat')&&MaximizeWindowInit(),1!=C&&(null!=L('chattext')&&L('chattext'),showChatWindow()),'block'==document.getElementById('prechat_form').style.display)&&showChatWindow()}}),printChat=function(e,t){let n="me"==(t=null==t?"":t)?"onwcouter_me":"onwcouter_agent";document.getElementById("onwc_welcome_message")&&(document.getElementById('onwc_welcome_message').style.display="none"),document.getElementById("triangle_down")&&document.getElementById("triangle_down").style.setProperty("display","none"),e=function(e){e=e.replace(/\[([^\]]+)\]\((http:\/\/|https:\/\/[^\)]+)\)/g,(e,t,n)=>`${t}`);return e}(e);var o=/(?]*href=["'])(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])(?!<\/a>)/gi,a=o.exec(e);null!=a&&(e=mn(a[0])==mn(window.location.href)?e.replace(o,"$1"):e.replace(o,"$1"));a=(o=/(?]*href=["'])(?)/gi).exec(e);for(null!=a&&(e=mn(a[0])==mn(window.location.href)?e.replace(o,"$1$2"):e.replace(o,"$1$2"));-1'):''+d+'';e=e.replace("{{fileuploaded:"+i+"}}",c)}for(var l="😀😬😁😂😃😄😅😆😇😉😊🙂🙃😋😌😍😘😗😙😚😜😝😛🤑🤓😎🤗😏😶😐😒🙄🤔😳😞😟😠😡😔😕🙁😣😖😫😩😤😱😨😰😯😦😧😢😪😓😭😵😲🤐🤒🤕😴😮👍👎👏🤝💓🙏🙋😈😷"[Symbol.iterator]();;){var s=l.next();if(s.done)break;s=s.value,e=e.replace(new RegExp(s,"g"),''+s+'')}e=(e=e.replace('[loading...]','')).replace(/{{newline}}/g,'
      ');a=new Date,o=a.getHours(),a=a.getMinutes();a<10&&(a="0"+a),-1==e.indexOf("server_messages")&&(e="
      "+e+"
      "+o+":"+a+"
      "),null!=document.getElementById('agenttypingimage')?document.getElementById('agenttypingimage').insertAdjacentHTML("beforebegin",e):document.getElementById('chat_area_id').insertAdjacentHTML("beforeend",e),rn(document.getElementById("chat_area_id"),20,4),setTimeout(function(){rn(document.getElementById("chat_area_id"),20,1)},500),L('chattext')?O('chattext',L('chattext')+e):O('chattext',e),8!=Jt()&&(clearTimeout(Ht),Ht=setTimeout(function(){q.io.disconnect(),minimizeChatWindow()},Ut)),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),ct<6&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'),de=!0,Oe<340&&(t=document.getElementsByClassName('operatorImageSmallClass'),[].forEach.call(t,function(e){e.style.zoom="0.9"})),checkMobileChatHeight()},removeLoadingImage=function(e){document.getElementById(e)&&(document.getElementById(e).style.background="none"),rn(document.getElementById('chat_area_id'),10,10)};var t=0,n=0,o=0,a="";function i(){if(F&&document.getElementById("onwbtxtarea").blur(),1!=P){var n=document.getElementById('onwbtxtarea').value;if((document.getElementById('onwbtxtarea').value="")!=n.trim()){var e="",e=" me-bubble",o=("me"!=xe&&(e+=" me-first "),ne(a=n,"visitor"),n=n.replace(/\n/g,"{{newline}}"),"");1==isRTLlanguage(n.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" '),printChat('

      '+M('max_me',I)+'\t'+Lt(n)+'

      ',"me"),xe="me",vt(),y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.tryToReconnect=A,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.pos=5183,L('chattext')&&(obj.chattext=L('chattext').substring(0,20));let t=300;N||(t=900,0==N&&0==A&&(obj.socketReconnect=1,dn())),L('mustSendTriggerText')&&1==G?(setTimeout(function(){q.emit('sendchat',n,L('triggerText'),0,0,5183,pe,H,rt,obj)},t),O('mustSendTriggerText',!1),G=!1,o='triggerText',zt('sessionStorage')?sessionStorage.removeItem(o):j('sessionstorage.'+o,'pValue',-1)):setTimeout(function(){y=g(),obj.durationInSeconds2=(y-U)/1e3,obj.socketDurationInSeconds2=(y-h)/1e3,obj.isConnected2=N,obj.tryToReconnect2=A,obj.firstConnection2=z,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=t,obj.pos=5191;let e=N?300:5300;setTimeout(function(){y=g(),obj.durationInSeconds3=(y-U)/1e3,obj.socketDurationInSeconds3=(y-h)/1e3,obj.isConnected3=N,obj.tryToReconnect3=A,obj.firstConnection3=z,obj.timeoutTime_userconnect3=w,obj.sendChatDelay2=e,obj.pos=5191,q.emit('sendchat',n,void 0,0,0,5191,pe,H,rt,obj)},e)},t)}t=0}}function d(){isRTLlanguage(M('max_placeholder',I).trim().substring(0,2))?c("rtl","right"):c("","left")}function c(e,t){document.getElementById('onwbtxtarea').style.setProperty("direction",e,"important"),document.getElementById('onwbtxtarea').style.setProperty("text-align",t,"important")}document.getElementById("onwc_chat_message_div").addEventListener("paste",function(e){0==N&&0==A&&dn(),setTimeout(function(){checkText2ShowSendButton()},0)}),document.getElementById("onwc_chat_message_div").addEventListener("keydown",function(e){"Enter"!=e.key||e.shiftKey?(1!=ie&&1!=L('hasStartedWriting')&&(ee(),O('hasStartedWriting',1)),ie=1,0==N&&0==A&&dn(),0==t&&0==P&&(1!=ve&&(y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=5265,L('chattext')&&(obj.chattext=L('chattext').substring(0,20)),q.emit('sendchat','command:typing...',void 0,0,0,5265,pe,H,rt,obj)),t=1),'free'!=Pe&&0==o&&(o=setTimeout(function(){var e;""!=(e=document.getElementById('onwbtxtarea').value).trim()&&0==P&&(y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=5217,L('chattext')&&(obj.chattext=L('chattext').substring(0,20)),q.emit('sendchat',e,void 0,1,0,5217,pe,H,rt,obj)),o=0},250)),clearTimeout(n),n=setTimeout(function(){t=0,clearTimeout(o),1!=ve&&(y=g(),(obj={}).vesrion=Z,obj.durationInSeconds=(y-U)/1e3,obj.socketDurationInSeconds=(y-h)/1e3,obj.isConnected=N,obj.firstConnection=z,obj.timeoutTime_userconnect=w,obj.tryToReconnect=A,obj.pos=5281,L('chattext')&&(obj.chattext=L('chattext').substring(0,20)),q.emit('sendchat','command:notyping...',void 0,0,0,5281,pe,H,rt,obj))},1800)):(e.preventDefault(),_e||(i(),clearTimeout(o),o=0))}),document.getElementById("wb-send-image").addEventListener("click",function(e){i(),F||document.getElementById("onwbtxtarea").focus(),checkText2ShowSendButton()}),isRTLlanguage=function(e){return result=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/.test(e)},d(),document.getElementById("onwc_chat_message_div").addEventListener("keyup",function(e){'ArrowUp'==e.key&&''==document.getElementById('onwbtxtarea').value&&(document.getElementById('onwbtxtarea').value=a),""!=document.getElementById('onwbtxtarea').value.trim().substring(0,2)?isRTLlanguage(document.getElementById('onwbtxtarea').value.trim().substring(0,2))?c("rtl","right"):c("","left"):""==document.getElementById('onwbtxtarea').value&&d(),1==k&&1!=S('consentvalue')&&2!=S('consentvalue')&&toggleModal("onwcConsentModal",!0),checkText2ShowSendButton()}),(checkText2ShowSendButton=function(){""==document.getElementById('onwbtxtarea').value?document.getElementById("wb-send-image").style.visibility="hidden":document.getElementById("wb-send-image").style.visibility="visible"})(),document.getElementById('onwebchatemailtext').addEventListener("keyup",function(e){isRTLlanguage(document.getElementById('onwebchatemailtext').value.substring(0,2))?(document.getElementById("onwebchatemailtext").style.setProperty("direction","rtl","important"),document.getElementById("onwebchatemailtext").style.setProperty("text-align","right","important")):(document.getElementById("onwebchatemailtext").style.setProperty("direction","","important"),document.getElementById("onwebchatemailtext").style.setProperty("text-align","left","important"))}),document.getElementById('onprechattext').addEventListener("keyup",function(e){isRTLlanguage(document.getElementById("onprechattext").value.substring(0,2))?(document.getElementById("onprechattext").style.setProperty("direction","rtl","important"),document.getElementById("onprechattext").style.setProperty("text-align","right","important")):(document.getElementById("onprechattext").style.setProperty("direction","","important"),document.getElementById("onprechattext").style.setProperty("text-align","left","important"))});var l,s,r=0;parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('width'));function m(e){var t;e.target?t=e.target:e.srcElement&&(t=e.srcElement),"onweb_minimize_btn_icon_id"!=t.id&&1==L('maxChat')&&(r=1,window.addEventListener('mousemove',p,!0),document.getElementById("webchat_header").style.setProperty('cursor','move'))}function p(e){var t,n=window.innerHeight,o=Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth),a=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('height')),i=parseInt(document.getElementById("onwbchat_window").offsetWidth),d=e.clientX,e=e.clientY,c=(1==r&&(c=document.body.scrollTop,t=document.body.scrollLeft,divTop=document.getElementById('onwbchat_window').offsetTop-c,divLeft=document.getElementById('onwbchat_window').offsetLeft-t,l=d-divLeft,s=e-divTop),r=0,Y=1,document.getElementById('onwbchat_window'));c.style.position='absolute',(V=e-s)<0&&(V=0),n-a