var onWebChat_=onWebChat_||function(){function e(){c('chattext')&&c('chattext').endsWith(at('max_gone',U)+"

")&&(K=!1,w&&console.log("isAbleToWrite to false!"),document.getElementById('onwbtxtarea').style.pointerEvents='none',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",It('#onwbtxtarea').attr('placeholder',''),disableMenuItem("uploadfileid"))}function t(){K=!0,w&&console.log("isAbleToWrite to true!");try{document.getElementById('onwbtxtarea').style.pointerEvents='auto',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.73",document.getElementById("wb-smile-image").style.opacity="0.78",It('#onwbtxtarea').attr('placeholder',at('max_placeholder',U)),enableMenuItem("uploadfileid")}function o(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function n(){if(ft){var e=document.getElementById("onwebchataudio");try{e.play()}catch(t){w&&console.log("exception in audio.play:"+t)}w&&console.log("play sound!!! : ")}}function a(e,t,o){w&&console.log("set cookie! cname:"+e+" value:"+t+" exdays:"+o);var n=new Date;n.setTime(n.getTime()+24*o*60*60*1e3);var a="expires="+n.toGMTString();document.cookie=e+"="+t+"; "+a+";path=/"}function i(e){a(e,'',-1)}function s(e){for(var t=e+"=",o=document.cookie.split(';'),n=0;n0?-1!=e.indexOf('msie')?parseInt(e.split('msie')[1]):!1:o>0?!0:n>0}function h(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}window.console||(console={log:function(){}});var g,p,w=!1,u=!1,b=0,f=0,_=!1,y=0;w&&console.log("inside js: ar:"+onWebChat.ar),w&&console.log(onWebChat.ar);var v=1,x={ min_offline: { l1: 'Siamo offline - mandaci un\'email', l2: 'We are offline - Send us an email' }, min_online: { l1: 'Siamo online - chatta con noi!', l2: 'We are online - chat with us!' }, max_title: { l1: 'Chatta con noi!', l2:'Chat with us!'}, max_msg: { l1: 'Siamo online - chatta con noi!', l2:'We are online - chat with us!'}, max_served: { l1: 'Sei servito da MAuro', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Scrivi qui il tuo messaggio ...', l2: 'Type your message here ...' }, max_closed: { l1: 'Mauro ha chiuso la chat', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Mandaci una email!', l2:'Email us!'}, off_msg:{l1: 'Spiacenti, al momento non siamo in linea. Lascia un messaggio e ti ricontattiamo', l2:'Sorry, we are not online at the moment. Leave a message and we will get back to you.'}, off_name: { l1:'Nome', l2: 'Name'}, off_email: { l1: 'Email', l2: 'Email'}, off_phone: { l1: 'phone', l2: 'phone'}, off_text: { l1: 'Messaggio', 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:'Invia', l2: 'Send'}, off_thank: { l1: 'Grazie per averci contattato. Risponderemo al piĆ¹ presto possibile.', l2: 'Thank you for contacting us. We will reply to you as soon as possible.'}, prechat_msg: { l1: 'Please give us some info to serve you better.', l2: 'Please give us some info to serve you better.'}, prechat_btn: { l1: 'Start chat!', l2: 'Start chat!'} , max_gone: { l1: 'Gli operatori sono offline', l2: 'Operator has gone 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'} };w&&console.log(x);var I="",k="",C="",E="",P=function(){},W=function(){},B=function(){},S=function(){},O=function(){},T=function(){},M=function(){},z=function(){},F="",j="",L=0,N="3.215.182.36",U="l2";w&&console.log("language:"+U+" client_ip:"+N);var A="",D="";""!=c("servingOpImage")&&void 0!=c("servingOpImage")&&(D=c("servingOpImage"));var R="0";w&&console.log("showOperatorImages:"+R),1==R&&""==D&&(D="0_support_man.png");var V=-1,q=0,$=-1,X=0,H="1",J="1",Z="0";1==v&&(H=1),1==Z&&0==J&&(w&&console.log("den ginetai showOnlyImage==1 && image_use==0"),Z=0);var Y=0,G="";1==Z&&l('hideImage',0);var K=!0,Q="";0!=c('hideImage')&&1!=c('hideImage')&&l('hideImage',0);var ee,te="0",oe="1",ne=11740,ae=".onwebchatbox div{padding: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}.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:20px;width:#chat_widthpx;z-index:2147483600}#operatorImageSmall{width:32px !important;position:absolute !important;border-radius:20px !important;left:-39px !important;top:0 !important;box-shadow:0 0 7px 2px #bebebe !important;cursor:initial !important}.operatorImageSmallClass{zoom:1}#operatorImage{position:absolute;top:-1px !important;left:10px !important;z-index:100 !important;width:48px !important;height:48px !important;border-radius:30px;border-style:solid;border-width:1px;border-color:#ababab}#operatorImage__modern{top:8px !important;left:20px !important;width:50px !important;height:50px !important;border-width:0 !important}.onweb_chatimage{position:absolute !important;bottom:30px !important;left:78px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:114px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}.onweb_chatimage_mobile{position:absolute !important;bottom:13px !important;left:205px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:60px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}.onwebchatbox .onweb_chatimage:hover{opacity:1}.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}#agenttypingimage{position:relative !important;float:left !important;padding-left:18px !important;height:initial !important;clear:both !important}.onwebchatbox .wblogoimg{margin-right:10px;margin-top:7px}.onwebchatbox .wblogoimgdiv{text-align:right;width:100%}.onwebchatbox img{vertical-align:baseline;border:0;cursor:pointer;width:initial !important;margin:0;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:20px;width:#chat_widthpx !important;height:#onwebchatbox_header1_heightpx;font-family:Arial,Helvetica,sans-serif !important;background-color:#fcfcfc;font-size:12px !important;border-top-left-radius:6px !important;border-top-right-radius:6px !important;z-index:2147483610 !important;box-sizing:content-box !important;color:#545454 !important;transition:initial !important}#onwbchat_window{background-image:url(https://www.onwebchat.com/chatimages/backgrounds/back4.png)}#onwbchat_window__modern{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;border-top-left-radius:5px !important;border-top-right-radius:5px !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}.onwebchatbox .webchat_header__modern{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:16px 0 0 0;overflow:auto;color:#a4a4a4;box-shadow:inset 0 17px 17px -17px rgba(0,0,0,0.4);box-sizing:content-box;direction:ltr !important}.onwebchatbox .chat_area__modern{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:8px;height:8px;border:3px solid #eee}#chat_area_id::-webkit-scrollbar-button:start:decrement,::-webkit-scrollbar-button:end:increment{display:block;height:10px;background:#eee}#chat_area_id::-webkit-scrollbar-track{background:#eee;-webkit-border-radius:10px;border-radius:10px;-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.2)}#chat_area_id::-webkit-scrollbar-thumb{height:50px;width:50px;background:#b2b2b2;-webkit-border-radius:8px;border-radius:8px;-webkit-box-shadow:inset 0 0 4px rgba(0,0,0,.1)}#chat_area_id::-webkit-scrollbar-thumb:hover{background:#a2a2a2}#onwbtxtarea::-webkit-scrollbar{width:0}.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{width:100%;float:left;clear:left;height:10px;background-color:#fcfcfc;border-top:1px solid #ddd;box-sizing:border-box}.onwebchatbox .chat_info__modern{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{height:80px !important;position:absolute;bottom:0}#onwc_chat_message_div__modern{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;bottom:18px !important;left:9px !important}.onwebchatbox #onwbtxtarea__modern{bottom:25px !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{color:#717171 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;line-height:inherit !important;font-family:inherit !important;padding:0 2px 0 2pxa}.onwebchatbox__modern input::-webkit-input-placeholder,.onwebchatbox__modern textarea::-webkit-input-placeholder{font-size:14px !important}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{color:#515151 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox__modern input::-moz-placeholder,.onwebchatbox__modern textarea::-moz-placeholder{font-size:14px !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{color:#717171 !important;font-size:13px !important;font-style:italic !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox__modern input:-ms-input-placeholder,.onwebchatbox__modern textarea:-ms-input-placeholder{font-size:14px !important}.onwebchatbox .chat_message .onwebtextarea{border:1px solid #cfcfcf !important;width:#textarea_widthpx !important;height:48px !important;line-height:normal !important;min-height:initial !important;min-width:initial !important;max-height:initial !important;max-width:initial !important;font-size:13px !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-color:#fefefe !important;background-image:none !important;resize:none;outline:none !important;border-radius:5px !important;box-sizing:content-box;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important;transition:box-shadow .40s,border-color .40s ease-in-out}.onwebchatbox .chat_message .onwebtextarea__modern{border:none !important;box-shadow:none !important;font-size:14px !important;height:27px !important;background-color:transparent !important}.onwebchatbox .chat_message textarea:hover{border:1px solid #bababa !important}.onwebchatbox .chat_message__modern textarea:hover{border:none !important}.onwebchatbox .chat_message textarea:focus{border:1px solid #bababa !important}.onwebchatbox .chat_message__modern textarea:focus{border:none !important}.onwebchatbox a.minimize_onwebchatbox{display:none;color:#ddd;margin-top:6px;background-color:#85a6d7;width:18px;height:20px;margin-right:10px}.onwebchatbox #onweb-offline-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;padding-top:1px !important}.onwebchatbox #onweb-online-icon{margin:initial !important;border:none !important;box-sizing:content-box !important}.onwebchatbox #onweb_chaticon{display:inline !important;position:absolute !important;right:0 !important;float:right !important;margin-right:10px !important;margin-top:7px !important;line-height:24px !important}.onwebchatbox #onweb_chaticon__modern{margin-right:16px !important;margin-top:11px !important}.onwebchatbox .con:hover{opacity:.75}.onwebchatbox .onweb_minimize_btn_icon{border:solid;border-width:0 3px 3px 0;position:absolute;right:2px !important;top:#onweb_min_btn_marginpx;!important;padding:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer}.onwebchatbox .onweb_minimize_btn_icon__modern{right:6px !important;zoom:01.0}.onwebchatbox .onweb_minimize_btn_icon:hover{margin-top:1px}.onwebchatbox div.maximize_onwebchatbox{display:inline}.onwebchatbox .chat_area p{padding-left:12px;padding-right:12px;font-size:13px !important;font-family:Arial,Helvetica,sans-serif !important;line-height:22px;float:left;clear:left;word-wrap:break-word;max-width:60%;margin:0;color:#agent_css_text_color;box-sizing:content-box}.onwebchatbox__modern .chat_area p{font-size:14px !important}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color;margin-bottom:4px;line-height:15px;font-family:arial,verdana,sans-serif !important}.onwebchatbox__modern .chat_area .me{line-height:17px}.onwebchatbox .spanbold{font-weight:800;margin-left:initial;float:initial;font-size:12px !important}.onwebchatbox .chat_area .agent{color:#agent_css_text_color;margin-bottom:4px;line-height:15px;min-height:10px;font-family:arial,verdana,sans-serif !important}.onwebchatbox__modern .chat_area .agent{line-height:17px !important}.onwebchatbox .chat_area .system{font-style:italic;font-size:11px}.onwebchatbox #onwebchat-logo-span{position:absolute !important;bottom:0;right:15px;color:#a0a0a0;font-weight:bold;font-family:Arial,sans-serif !important;letter-spacing:0;font-size:11.5px}.onwebchatbox #onwebchat-logo-span__modern{bottom:3px !important;direction:ltr !important}.onwebchatbox #off-form-onwebchat-logo{display:none;float:right !important;position:absolute !important;margin:0 !important;bottom:4px !important;right:9px !important;border:none !important;box-sizing:content-box !important;opacity:.91}.onwebchatbox #off-form-onwebchat-logo__modern{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-size:13px !important;font-family:arial,verdana,sans-serif !important;line-height:32px !important;font-weight:600 !important}.onwebchatbox #div_chat_min_title_span__modern{font-size:14px !important;line-height:42px !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-size:13px !important;font-family:arial,verdana,sans-serif !important;line-height:#onwebchatbox_header1_heightpx !important;font-weight:600 !important}.onwebchatbox #div_chat_max_title_span__modern{font-size:15px !important}.onwebchatbox .server_messages{display:block;text-align:center;width:90%;max-width:90% !important;margin:auto;color:#db846c !important;padding:0 0 10px 15px;box-sizing:content-box}.onwebchatbox .onweboffline_msg{margin-top:26px;margin-bottom:32px;position:relative;top:15px;min-height:45px;padding:1px 30px;font-size:14px;font-weight:400;line-height:17px !important;font-family:arial,verdana,sans-serif !important;color:#545454 !important}.onwebchatbox .onweboffline_msg__modern{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}.ns{-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;background:#fff !important;box-shadow:0 0 5px 0 #b5b5b5 !important;font-size:14px !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;padding:12px 10px 12px 10px !important;margin-top:30px !important;border-radius:13px !important;box-sizing:initial;line-height:18px !important;position:relative;border:1px solid #cac7c7}.onwebchatbox .onwebchat_title2__modern{margin-top:13% !important;box-shadow:1px 1px 3px 0 #c9c9c9 !important;padding:14px 19px 14px 19px !important;max-width:160px !important;background:#ececec !important;border:none !important;font-size:15px !important}.onwebchatbox .onwebchat_title2::after{content:'';width:0;height:0;position:absolute;bottom:-14px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:14px solid #fff}.onwebchatbox .onwebchat_title2__modern::after{bottom:-16px;left:18%;border-left:0 solid transparent;border-right:22px solid transparent;border-top:17px solid #ececec}.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:14px solid #aaa}.onwebchatbox .onwebchat_title2__modern::before{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{float:initial !important;display:block;background-color:#fefefe !important;background-image:none !important;margin:16px auto 7px !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;height:29px !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}.onwebchatbox #onwebchatoffname__modern,#onwebchatoffemail__modern,#onwebchatofftel__modern,#onwebchatemailtext__modern,#onprechatname__modern,#onprechatemail__modern,#onprechattel__modern,#onprechattext__modern{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}#prechat_btn__modern{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}#offlineform_btn__modern{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:60px !important}#offlineform_ok_btn__modern{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-size:13px !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;left:3px !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}.onwebchatbox .onweb_mail_btn__modern{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:#efeded;border-radius:5px;max-width:74% !important;margin-right:5% !important;padding:8px;position:relative !important;float:right !important;text-align:left;border:1px solid #c7c5c5;clear:both !important}.onwebchatbox__modern .me-bubble__modern{border-radius:11px;border:0}.onwebchatbox .me-first{margin-top:8px !important}.onwebchatbox__modern .me-first__modern{border-top-right-radius:2px !important}.onwebchatbox .me-bubble::before{content:'';position:absolute;right:-6px;bottom:8px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #c7c5c5}.onwebchatbox__modern .me-bubble__modern::before{display:none}.onwebchatbox .me-bubble::after{content:'';position:absolute;right:-5px;bottom:8px;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:5px solid #efeded}.onwebchatbox__modern .me-bubble__modern::after{display:none}.onwebchatbox .me-bubble .spanbold{display:none}.onwebchatbox .agent-bubble{background-color:#d1d1d1;border-radius:5px;width:75% !important;margin-left:5% !important;padding:8px;position:relative;text-align:left;border:1px solid #a9a9a9;clear:both !important}.onwebchatbox .agent-bubble__modern{border-radius:11px;border:0}.onwebchatbox .big-margin-left{margin-left:13% !important}.onwebchatbox .agent-first{margin-top:8px !important}.onwebchatbox__modern .agent-first__modern{border-top-left-radius:2px !important}.onwebchatbox .agent-bubble::before{content:'';position:absolute;left:-7px;bottom:6px;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #a9a9a9}.onwebchatbox .agent-bubble__modern::before{display:none}.onwebchatbox .agent-bubble::after{content:'';position:absolute;left:-6px;bottom:6px;width:0;height:0;border-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #d1d1d1}.onwebchatbox .agent-bubble__modern::after{display:none}.onwebchatbox .agent-bubble .spanbold{display:none}.onwebchatbox .onwebchat-widget-settings-icon{opacity:.83 !important;position:absolute;bottom:3px !important;left:9px}.onwebchatbox .onwebchat-widget-settings-icon__modern{bottom:9px !important;left:12px}.onwebchatbox .onwebchat-widget-settings-icon:hover{opacity:1 !important}.onwebchatbox #onwebchat-emoticons-div{position:absolute;bottom:42px !important;right:8px !important;background-color:#fff !important;box-shadow:0 0 6px 0 #b5b5b5 !important;border:1px solid #d2d2d2 !important;border-radius:5px !important;display:none;margin:0 !important;padding:4px 6px !important;list-style-type:none !important;width:122px !important;box-sizing:content-box !important;line-height:initial !important}.onwebchatbox #onwebchat-emoticons-div__modern{width:147px !important;border-radius:8px !important}.onwebchatbox #onwebchat-emoticons-div img{padding:4px 5px !important;display:initial !important;margin-bottom:initial !important}.onwebchatbox #onwebchat-emoticons-div__modern img{padding:7px 8px !important}.onwebchatbox #onwebchat-emoticons-div img:hover{opacity:.8}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;bottom:15px !important;left:8px !important;background-color:#fffff9 !important;border:1px solid #d2d2d2 !important;border-radius:5px !important;display:none;margin:0 !important;padding:3px 5px !important;list-style-type:none !important;width:initial !important;box-shadow:rgba(0,0,0,0.23) 0 1px 10px}.onwebchatbox .onwebchat-widget-settings-submenu__modern{border-radius:8px !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;padding:5px 12px 0 6px !important;line-height:22px !important;direction:ltr !important;background:none !important;display:block !important;font-size:10px !important}.onwebchatbox .onwebchat-widget-settings-submenu__modern li{padding:11px 13px 5px 10px !important}.onwebchatbox .onwebchat-widget-settings-submenu li:hover{background-color:#d4d4d4;color:black !important}.onwebchatbox .onwebchat-widget-settings-submenu li:before{content:initial !important}.onwebchatbox .onwebchat-widget-settings-submenu-text{margin-left:8px;margin-right:10px;color:#585858;position:relative;bottom:4px;font-weight:bold;vertical-align:middle;font-size:12px !important;font-family:arial,verdana,sans-serif !important}.onwebchatbox .onwebchat-widget-settings-submenu-text__modern{margin-left:11px !important;font-size:13px !important}.onwebchatbox .onwebchat-menu-icons{margin:0 !important}.onwebchatbox .onwebchat-menu-icons__modern{zoom:1.1}.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:50px;height:80px;position:absolute;right:0;bottom:0}#wb-send-image{position:relative;float:right;right:10px;top:13px;opacity:.8;z-index:initial}#wb-send-image__modern{right:35px !important;top:28px !important}#wb-smile-image{position:relative;float:right;right:-14px;top:35px;opacity:.8;z-index:initial}#wb-smile-image__modern{top:26px !important}#wb-send-image:hover{opacity:1 !important}#wb-smile-image:hover{opacity:1 !important}#uploadfileid{opacity:.84}#uploadfileid:hover{opacity:1;background-color:#e5e5e5 !important}#onwebchat-volume-li-id{opacity:.84}#onwebchat-volume-li-id:hover{opacity:1;background-color:#e5e5e5 !important}#onwebchat-print-li{cursor:default !important;opacity:.5}#onwebchat-print-li:hover{background-color:#e5e5e5 !important}#onwebchat-savetofile-li{cursor:default !important;opacity:.5}#onwebchat-savetofile-li:hover{background-color:#e5e5e5 !important}#onwebchat-email-li{cursor:default !important;opacity:.5}#onwebchat-email-li:hover{background-color:#e5e5e5 !important}#onwebchat-endchat-li{cursor:default !important;opacity:.5}#onwebchat-endchat-li:hover{background-color:#e5e5e5 !important}.onwcmodal{position:absolute;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,0.69);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}.onwebchatbox .onwcmodal-content{padding:9px !important;position:relative !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%) !important;background-color:white !important;width:60% !important;min-width:172px !important;border-radius:3px !important;font-size:13.4px !important;line-height:17px !important;min-height:22px !important}.onwebchatbox .onwcmodal-content__modern{font-size:14px !important;padding:13px 20px !important;border-radius:7px !important}.onwcmodalclose{font-size:16px;color:#7f7e7e;font-weight:800;margin-left:5px;float:right;width:18px;line-height:18px;text-align:center;cursor:pointer;border-radius:3px;background-color:lightgray;margin-top:-3px;margin-right:-3px}.onwcmodalclose:hover{background-color:darkgray}.show-onwcmodal{opacity:1;visibility:visible;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.onwcbutton{width:29% !important;cursor:pointer !important;border:1px solid rgba(0,0,0,0.20) !important;border-radius:3px !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:#484848 !important;background:#ddd !important;font-size:12px !important;font-family:Arial,Helvetica,sans-serif !important;padding:3px 7px !important}.onwcbutton:focus{outline-color:lightgray !important}.onwcbutton:hover{background:#c5c5c5 !important}.onwcbutton__modern{border:1px solid rgba(0,0,0,0.0) !important;padding:5px 12px !important;font-size:13px !important;border-radius:5px !important}.onwebchatbox .orange{background:#f5d28d !important}.onwebchatbox .orange:hover{background:#eac57b !important}.onwbchtlogo-in-widget-bw2,.onwbchtlogo-in-widget-icon,.onwbchtsmile-icon,.onwbchtsend-icon,.onwbchtonline-icon,.onwbchtoffline-icon,.onwbchtprint-icon,.onwbchtupload-icon-2,.onwbchtvolume-icon-2,.onwbchtvolume-icon-off,.onwbchtsave-icon,.onwbchtemail-icon,.onwbchtclose2,.onwbchtendchat-icon,.onwbchtsettings-icon-final2{display:inline-block;background:url('https://www.onwebchat.com/chatimages/live-chat-images-3.png') no-repeat;overflow:hidden;text-indent:-9999px;text-align:left}.onwbchtlogo-in-widget-bw2{background-position:-1px -0;width:71px;height:10px}.onwbchtsmile-icon{background-position:-1px -11px;width:25px;height:25px}.onwbchtsend-icon{background-position:-27px -11px;width:24px;height:27px}.onwbchtonline-icon{background-position:-1px -37px;width:23px;height:18px}.onwbchtoffline-icon{background-position:-52px -11px;width:17px;height:15px}.onwbchtprint-icon{background-position:-52px -27px;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}.onwbchtsettings-icon-final2{background-position:-59px -57px;width:12px;height:12px}.onwbchtsettings-icon-final2__modern{background-position:-59px -57px;width:16px;height:15px}.onwbchtlogo-in-widget-icon{background-position:0 -69px;width:17px;height:14px}#onwc_consent_l_offline{font-size:13px !important} ",ie="free",se="0",ce="1",le="0",re=0,de="560",me="66",he="340",ge="right",pe="20",we="#555555",ue="#444444",be="1",fe="0",_e="1",ye="1",ve="0",xe="0",Ie="1",ke="0",Ce="1",Ee="1",Pe="0",We="0",Be="0",Se="1",Oe="0",Te="us",Me=['gr','cy','gb','at','be','bg','hr','cz','dk','ee','fi','fr','de','hu','ie','it','lv','lt','lu','mt','nl','pl','pt','ro','sk','si','es','se'],ze="1",Fe="1",je="1",Le="0",Ne="1",Ue="1",Ae="1";1==Be&&1==Oe&&-1===Me.indexOf(Te)&&(Be=0);var De=s('onwbchtemailsSent');De=""==De?0:parseInt(De),"0"===oe&&(ae=ae.replace(/radius: 13px|radius: 11px|radius: 8px|radius: 5px|radius: 6px|radius: 2px|radius: 3px/g,"radius:0px"),ae=ae.replace(/radius:13px|radius:11px|radius:8px|radius:5px|radius:6px|radius:2px|radius:3px/g,"radius:0px")),ae=ae.replace("#onweb_min_btn_margin",.36*me-1.36),1==v?(ae=ae.replace(new RegExp('__modern','g'),""),ae=ae.replace(/#textarea_width/g,he-71)):(ae=ae.replace(new RegExp('live-chat-images-3.png','g'),"live-chat-images.png"),ae=ae.replace(/#textarea_width/g,he-48)),ae=ae.replace(/#chat_width/g,he),ae=ae.replace(/#chatheader_width/g,he-40),ae=ae.replace("#chat_area_height",de-98-me-4+14*v),ae=ae.replace("#onwebchatbox_header_height_+_4",me-0+4),ae=ae.replace(/#onwebchatbox_header1_height/g,me),0==H&&(w&&console.log("bubbles_use = 0 "),we="#595959",ue="#595959"),ae=ae.replace(/#visitor_css_text_color/g,we),ae=ae.replace(/#agent_css_text_color/g,ue),void 0!=le&&'undefined'!=le||(le=0),w&&console.log("plan:"+ie+" agentOnline:"+le+" siteid:"+ne+" showOnMobiles:"+ce+" roundedCorners:"+oe+" chatPosition:"+ge+" chatMargin:"+pe);var Re=document.title,Ve=window.location.href;try{var qe=function(e,t){if(w&&console.log(" triggerNow "),1==le&&"undefined"!=typeof sessionStorage&&'1'!=c('hasTriggered')&&1!=s('hasTriggeredC')&&1!=s('inChatC')&&""==c('chattext'))if(1==c('maxChat')&&1==te)w&&console.log(" maxChat 1 & preChatForm 1");else if(S(),0!=V){nt('onWebChat','Trigger activated',''),l('hasTriggered',1),a('hasTriggeredC',1,.166),l('mustSendTriggerText',!0),_=!0,l('triggerText',e),n(),""!=at('max_served',U)&&""!=t&&"null"!=t&&null!=t&&(printChat('

'+at('max_served',U).replace('{{operator}}',t)+'

'),G="",l('hasWrSeByTr',!0));var i="";1==H&&(i=" agent-bubble ");var r="",d='',m="";'agent'!=G&&(i+=" agent-first ",1==R&&(d='')),1==R&&(m=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(r=' style="direction: rtl;text-align:right;" '),printChat('

'+d+''+at('max_agent',U).replace('{{operator}}',t)+' '+o(e).replace(/({{newline}})/gm,"
")+'

'),G="agent",w&&console.log("i!!!!:"+c('maxChat')+" - "+te+" - "+c('chattext').length),1!=c('maxChat')&&MaximizeWindowInit(),ht&&rt.emit('setclientstatus','triggered')}}}catch($e){console.log($e)}var Xe='[]';w&&console.log(Xe),Xe=Xe.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var He=JSON.parse(Xe);w&&console.log("triggers"),w&&console.log(He);var Je=0,Ze=!1;void 0===c('secOnSite')&&l('secOnSite',0);for(var Ye=He.length,Ge=0;Ye>Ge;Ge++)if(w&&console.log("i :: "+Ge),1==He[Ge].isFullSite&&0==He[Ge].whole)w&&console.log(" isFullsite 1 kai whole 0"),setTimeout(qe,1e3*He[Ge].delay,He[Ge].text,He[Ge].agentName);else if(1==He[Ge].isFullSite&&1==He[Ge].whole){Ze=!0,w&&console.log(" isFullsite 1 kai whole 1");try{var Ke=He[Ge].delay-c('secOnSite')}catch($e){console.log($e)}w&&console.log("delay :: "+Ke),Ke>=0&&setTimeout(qe,1e3*Ke,He[Ge].text,He[Ge].agentName)}else if(0==He[Ge].isFullSite){w&&console.log("triggers[i].isFullSite==0");for(var Qe=He[Ge].urls,et=!1,tt=Qe.length,ot=0;tt>ot;ot++)if(window.location.href.indexOf(Qe[ot])>-1){w&&console.log(":::::::::::"+Qe[ot]),et=!0;break}et&&setTimeout(qe,1e3*He[Ge].delay,He[Ge].text,He[Ge].agentName)}Ze&&setInterval(function(){void 0===c('secOnSite')&&l('secOnSite',0),Je++,l('secOnSite',parseInt(c('secOnSite'))+1)},1e3);var nt=function(e,t,o){try{'function'==typeof gtag?gtag('event',t,{event_category:e,event_label:o}):ga('send','event',{eventCategory:e,eventAction:t,eventLabel:o})}catch(n){}},at=function(e,t){return x[e]&&x[e][t]?(w&&console.log(e+" , "+t+" :"+x[e][t]),x[e][t]):'end_chat_msg'==e?"Are you sure you want to close this chat?":'email_text'==e?"Send chat transcript to the following email:":'email_sent'==e?"Transcript sent!":'cancel'==e?"Cancel":'send'==e?"Send":void 0==x[e]?"":x[e].l1};try{for(var ot=0;oto.length)&&(t=o.length),t-=e.length;var n=o.indexOf(e,t);return-1!==n&&n===t});var it=void 0,st=document.location.protocol;'file:'==st&&(st="https:");var ct=document.location.port;void 0==document.location.protocol||''==ct||'80'==ct||'443'==ct?(w&&console.log("port 80 or 443 ! port: "+ct),ct=''):(w&&console.log("port not 80!"),ct=':443'),w&&console.log("protocol :"+st+" port:"+document.location.port),serverIP="www.onwebchat.com";var lt,rt,dt="1",mt=!1,ht=!1,gt=!1,pt=!0,wt=288e5,ut={},bt="",ft=!0;ft=s('onwbchtSound'),''==ft||null==ft?(ft=!0,a("onwbchtSound",1,93)):0==ft&&(ft=!1),bt=s('onwbchtclientid'),''==bt||null==bt?w&&console.log("clientId == null!!!!! (den iparxei sto cookie)"):w&&console.log("clientId:"+bt+" (iparxei sto cookie)"),1==J&&1==$&&(J=0);var _t="predefined/boy.png",yt="predefined/boy.png";w&&console.log("image_UsE:"+J);var vt=s('onwbchtblocked');''!=vt&&null!=vt&&'null'!=vt&&'NaN'!=vt||(vt=0,a("onwbchtblocked",0,183)),w&&console.log("agentOnline:"+le+" hideOffline:"+re+" sessionStorage.maxChat:"+c('maxChat')+" blocked:"+vt),w&&console.log("isIE: "+m());var xt=function(e,t){var o=document.createElement('script');o.src=e,o.async=!0,o.onreadystatechange=o.onload=function(){var e=o.readyState;t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t())};var n=document.getElementsByTagName('head')[0];n.insertBefore(o,n.firstChild)};w&&console.log("serverip:"+serverIP);var It;return xt(st+'//code.jquery.com/jquery-1.11.0.min.js',function(){function d(){try{return window.self!==window.top}catch(e){return!1}}function S(){w&&console.log(" call function socketReconnect"),gt=!0,rt.connect(),w&&console.log("after call socket.io.reconnect()"),8!=m()&&(w&&console.log("not ie .."),lt=setTimeout(function(){rt.io.disconnect(),minimizeChatWindow()},wt))}function $(){'chat'==Q&&1==R?(It("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","50px","important"),w&&console.log("50px nowIsShowing: "+Q+" showOperatorImages:"+R)):(It("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","10px","important"),w&&console.log("10px nowIsShowing: "+Q+" showOperatorImages:"+R))}function oe(){var e;if(w&&console.log("checkBottomOfButton.."),e='block'==It("#prechat_form").css('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),null!=e){var t=getComputedStyle(e);const o=t.backgroundColor;"rgb(255, 255, 255)"==o&&e.style.setProperty("background-color","#ababab","important"),e=e.getBoundingClientRect();var n=document.getElementById('onwbchat_window').getBoundingClientRect(),a=n.bottom-e.bottom,i=16,s=25,c=30,l=26,r=15;if(40>a&&''==document.getElementById("onwebchatform_div_id").style.margin||0>a){w&&console.log("margin:"+document.getElementById("onwebchatform_div_id").style.margin);var d=(40-a)/9,m=c-3*d;0>m&&(m=0),document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("margin",i-d+"px auto 5px","important"),document.getElementById("prechat_btn").style.setProperty("margin",m+"px auto 20px","important"),document.getElementById("offlineform_btn").style.setProperty("margin",m+"px auto 20px","important");var h=document.getElementsByClassName("onwebchatform_div"),g=s-2*d;w&&console.log("formMargin:"+g+" spaceBelow:"+a),4>g&&(g=4),h[0].style.setProperty("margin",g+"px auto auto","important"),h[1].style.setProperty("margin",g+"px auto auto","important"),document.getElementById("onweboffline_msg_id").style.setProperty("margin-bottom",l-2*d+"px","important"),document.getElementById("onweboffline_msg_id").style.setProperty("top",r-d+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("margin-bottom",l-2*d+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("top",r-d+"px","important"),e='block'==It("#prechat_form").css('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn'),e=e.getBoundingClientRect(),n=document.getElementById('onwbchat_window').getBoundingClientRect();var p=n.bottom-e.bottom;22>p&&(document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("height","29px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("height","29px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("height","29px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("height","60px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("height","29px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("height","29px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("height","29px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("height","60px","important"))}}}function we(){w&&console.log("load .js and css files ... mobile:"+Xe),ue(),setTimeout(function(){oe()},5),w&&console.log(" mobile: "+Xe+" screenWidth: "+screen.width+" margin:"+pe),mt||(null==c('chattext')&&l('chattext',''),w&&console.log("runWhenLoadAllFiles-> showchatapi: "+V+" blocked:"+vt),1!=V&&1!=le&&1==re&&''===c('chattext')||0!=vt||0===V||(w&&console.log("not ie8html4 and (agentonline=1 or hideoffline!=1...)"),showChatWindow()));var e=0,t=navigator.userAgent;(t.indexOf("Googlebot")>-1||t.indexOf("Yahoo! Slurp")>-1||t.indexOf("Baiduspider")>-1||t.indexOf("BaiDuSpider")>-1||t.indexOf("bingbot")>-1||t.indexOf("msnbot")>-1)&&(e=1,w&&console.log(" I am bot!")),0==e?Oe():w&&console.log("is a bot!!")}function ue(){function n(e){'onwcFileModal'!==e.target.id&&'onwcEmailModal'!==e.target.id&&'onwcEmailOkModal'!==e.target.id||toggleModal(e.target.id,!1)}function i(e){return e=e.replace(//gi,''),e=e.replace(/

/gi,''),e=e.replace(/<\/p>/gi,'\n'),e=e.replace(//gi,"\n"),e=e.replace(/]+>/gi,'')}function r(e,t){w&&console.log("download is run 1.. isIE?:"+m());var o=document.createElement('a');if(o.setAttribute('href','data:text/plain;charset=utf-8,'+encodeURIComponent(t)),o.setAttribute('download',e),document.createEvent){var n=document.createEvent('MouseEvents');n.initMouseEvent('click',!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,0,null),o.dispatchEvent(n)}else o.click()}if(0==It(".onwebchatbox").length){1==le?div_chat_min_title=at('min_online',U):div_chat_min_title=at('min_offline',U);var d=' by onWebChat',g=' by onWebChat';1==se&&(d="",g=""),w&&console.log("to mobile einai:::: "+Xe+" to showOnMobiles:"+ce),Xe?image_name=_t:image_name=yt;var p='';1==R&&(p='');var u='

'+at('max_msg',U)+'
';''==at('max_msg',U)&&(u=''),tempSaveSt='',m()||(tempSaveSt='
  • '+at('menu_save',U)+'
  • ');var b="",_="",y="";if(1==Be){var x="",E="";1==Se&&(x='',E='padding-left: 0px;text-indent:-17px;'),b='',_=b.replace(/_offline/g,'_prechat'),y=b.replace(/_offline/g,'_inchat_modal')}1==Xe&&1!=ce||(w&&console.log("mobile !=1 OR showOnMobiles==1 mobile:"+Xe+" showOnMobiles:"+ce),8!=m()&&It("body").append('
    "+div_chat_min_title+"
    "+at('off_msg',U)+"
    "+(0==be?'':'')+(0==_e?'':'')+(0==ve?'':'')+''+b+''+d+"
    "+at('prechat_msg',U)+"
    "+(0==Ie?'':'')+(0==Ce?'':'')+(0==Pe?'':'')+''+_+''+d+"
    "+p+u+"
    • "+at('menu_send_file',U)+"
    • "+at('menu_email',U)+"
    • "+at('menu_print',U)+'
    • '+tempSaveSt+'
    • '+at('menu_sound',U)+"
    • "+at('menu_end_chat',U)+"
    "+g+'
    ×File size > 5 Mb!
    "+at('email_text',U)+"

    ×"+at('email_sent',U)+"
    "+at('end_chat_msg',U)+'
    "+y+"
    ")),consentTextClicked=function(){if(1==Se){var e=It("input#onwc_consent_checkbox_inchat_modal");e&&e.prop('checked',!e.prop('checked')),e=It("input#onwc_consent_checkbox_offline"),e&&e.prop('checked',!e.prop('checked')),e=It("input#onwc_consent_checkbox_prechat"),e&&e.prop('checked',!e.prop('checked'))}},toggleModal=function(e,t){w&&console.log("function toggleModal , modal:"+e),document.getElementById(e).classList.toggle("show-onwcmodal",t)},document.getElementById('onwbchat_window').addEventListener("click",n),emailTranscript=function(){""!=c('chattext')&&6>De&&(It(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEmailModal"))},checkMobileChatHeight=function(){try{if(Xe){w&&console.log("checkMobileChatHeight..");var e=It("#onwbchat_window").height();It(".onwebchatbox .chat_area").css("height",e-98-me-4+14*v+"px"),It('#onwbchat_window .chat_area').animate({scrollTop:9999999},200)}}catch(t){}},clickConsentModalOk=function(){var e=It("input#onwc_consent_checkbox_inchat_modal").val();void 0==e&&(e=-1),1==Se&&0==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848"):1==Se&&1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?(a("consentvalue",2,93),toggleModal('onwcConsentModal',!1),rt.emit('setconsentsettings',bt,e,Be,Se)):1==Be&&1!=Se&&(a("consentvalue",1,93),toggleModal('onwcConsentModal',!1),rt.emit('setconsentsettings',bt,e,Be,Se))},It('input#onwc_consent_checkbox_inchat_modal').change(function(){1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked&&document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}),endChatClicked=function(){""!=c('chattext')&&(It(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEndChatModal",!0))},endChatFunction=function(){""!=c('chattext')&&(l('chattext',''),disableMenuItem("onwebchat-print-li"),disableMenuItem("onwebchat-savetofile-li"),disableMenuItem("onwebchat-email-li"),disableMenuItem('onwebchat-endchat-li'),It('#onwbchat_window .chat_area').empty(),It('#onwbchat_window .chat_area').append(u),showChatWindow(),rt.emit('close_dialog_visitor'),l("servingOpImage",""),D=""),toggleModal('onwcEndChatModal',!1)},sendEmailTranscript=function(){if(h(It("input#onwcemailtrans").val())){if(6>De){var e=(new Date).getTimezoneOffset()/60*-1;rt.emit('onwcemailtranscript',bt,ne,It("input#onwcemailtrans").val(),e),toggleModal("onwcEmailModal",!1);var t=s('onwbchtemailsSent');w&&console.log("emailsSent:"+t),De++,""==t?a('onwbchtemailsSent',1,.0416):a('onwbchtemailsSent',parseInt(t)+1,.0416)}}else It("input#onwcemailtrans").focus(),document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important")},It('input#onwcemailtrans').keyup(function(){h(It("input#onwcemailtrans").val())&&document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}),1==le?t():e(),1==Z&&(It('#onwbchat_window').css('display','none'),w&&console.log("showOnlyImage==1 - q111('#onwbchat_window').css('display', 'none'); mobile:"+Xe)),1==le?It('#onweb-offline-icon').hide():It('#onweb-online-icon').hide(),1==le&&""!=F?It('#webchat_header')[0].style.setProperty('background-color',F,'important'):""!=j&&(It('#webchat_header')[0].style.setProperty('background-color',j,'important'),It('#offlineform_btn')[0].style.setProperty('background-color',j,'important')),0==ze&&It('#onwc-settings-icon-id').remove(),0==je&&0==Fe&&0==Le&&0==Ne&&0==Ue&&0==Ae&&It('#onwebchat-widget-settings-submenu-ul').remove(),0==je&&It('#onwebchat-email-li').remove(),0==Fe&&It('#uploadfileid').remove(),0==Le&&It('#onwebchat-print-li').remove(),0==Ne&&It('#onwebchat-savetofile-li').remove(),0==Ue&&It('#onwebchat-volume-li-id').remove(),0==Ae&&It('#onwebchat-endchat-li').remove(),setEmoticon=function(e){It('#onwbtxtarea').val(It('#onwbtxtarea').val()+" {"+e+"}"),It('#onwebchat-emoticons-div').hide(),It('#onwbtxtarea').focus(),checkText2ShowSendButton()},validateFileSize=function(e,t){if(w&&console.log("validadteFileSize.."),1==t)var o=e.files[0].size/1024/1024;else var o=e.size/1024/1024; return o>5?(toggleModal('onwcFileModal'),It("#onwbchtFileinput").val(''),!1):(printChat('

    '+at('max_me',U)+" [loading...]

    "),1==t&&It("#onwbchtUploadForm").submit(),!0)},SaveToFile=function(e){try{if(""!=c('chattext')){It(".onwebchat-widget-settings-submenu").hide();var t=new Date,o=t.getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate(),n=t.getHours()+':'+t.getMinutes()+':'+t.getSeconds();strBy="\n## by www.onwebchat.com ",1==se&&(strBy=""),r('chat_'+o+'.txt','## Chat transcipt on '+o+' '+n+strBy+'\n\n'+i(It(e).html()))}}catch(a){console.log(a)}},PrintElem2Printer=function(e){try{""!=c('chattext')&&(It(".onwebchat-widget-settings-submenu").hide(),Popup2Print(It(e).html()))}catch(t){console.log(t)}},Popup2Print=function(e){var t=window.open('','onWebChat live chat - Print ','height=600,width=800');return t.document.write('onWebChat live chat '),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(){rt.emit('chatWindowMax',0),minimizeChatWindow()},uploadFilePressed=function(){w&&console.log("uploadFilePressed.."),It('#uploadfileid').css("opacity")>.9&&(It('#onwbchtFileinput').trigger('click'),0==ht&&0==gt&&(w&&console.log(" isConnected = false , so try to connect now.."),S()))},void 0!=c('chattext')&&""!=c('chattext')&&(w&&console.log("chattext:"+c('chattext')),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>De&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'));var W=0,B=document.getElementById('onwbchat_window');if(B.addEventListener('dragenter',function(e){B.style.backgroundImage="url('')",W++,1==K&&1==Fe&&'chat'==Q&&(B.style.filter="brightness(50%)"),e.preventDefault()},!1),B.addEventListener('dragleave',function(e){W--,0==W&&(B.style.filter="brightness(100%)"),e.preventDefault()},!1),B.addEventListener('dragover',function(e){e.preventDefault()},!1),B.addEventListener('drop',function(e){W=0;var t=e.dataTransfer,o=t.files;if(B.style.filter="brightness(100%)",e.preventDefault(),w&&console.log("isAbleToWrite:"+K+" nowIsShowing:"+Q),1==K&&1==Fe&&'chat'==Q&&validateFileSize(o[0],0)){var n=new FormData;n.append('file',o[0]),n.append('siteid',ne),sendFileToServer(n)}},!1),It("#onwbchtUploadForm").submit(function(e){w&&console.log("onwbchuploadForm 1");var t=(It(this),new FormData(this));sendFileToServer(t),e.preventDefault()}),sendFileToServer=function(e){It.ajax({url:''+st+'//'+serverIP+'/chat_upload_file/url',type:'POST',data:e,mimeType:"multipart/form-data",contentType:!1,cache:!1,processData:!1,success:function(e,t,o){w&&console.log("server response: "+e+" textStatus:"+t);var n,a=It("#onwbchat_window img[src$='loading.gif']"),i=e.substring(e.indexOf(":")+1);if(w&&console.log("fileUrl:"+i),i.toLowerCase().endsWith(".png")||i.toLowerCase().endsWith(".jpg")||i.toLowerCase().endsWith(".jpeg")||i.toLowerCase().endsWith(".svg")||i.toLowerCase().endsWith(".gif"))Y++,n=a.attr("src").replace("chatimages/loading.gif","filesUpload/"+encodeURI(i)),a.css("max-width","150px"),a.css("max-height","70px"),l('chattext',c('chattext').replace('',"")),It('#onwbchat_window .chat_area').animate({scrollTop:999999999},200),setTimeout(function(){It('#onwbchat_window .chat_area').animate({scrollTop:999999999},200)},1e3),a.attr("src",n),a.wrap("");else{n=a.attr("src").replace("loading.gif","download-icon.png");var s=i.replace(/^.*[\\\/]/,'');a.attr("src",n),a.wrap(""),a.parent().append(""+s+""),l('chattext',c('chattext').replace('',""+s+""))}rt.emit('sendchat','{{fileuploaded:'+i+'}}'),M("{{fileuploaded:"+i+"}}","visitor")},error:function(e,t,o){console.log('Error: '+e.status+o)}})},It('.onwebchat-widget-settings-icon').click(function(e){e.stopPropagation(),It('.onwebchat-widget-settings-submenu').toggle(),It('#onwebchat-emoticons-div').hide()}),It('#wb-smile-image').click(function(e){e.stopPropagation(),loadEmoticons(),It('#onwebchat-emoticons-div').toggle(),It(".onwebchat-widget-settings-submenu").hide(),0==ht&&0==gt&&(w&&console.log(" isConnected = false , so try to connect now.."),S())}),It(document).on("click",function(){It(".onwebchat-widget-settings-submenu").hide(),It('#onwebchat-emoticons-div').hide()}),It("#onwebchat-volume-li-id").click(function(){1==ft?(It("#wb-volume-text-id").html(at('menu_sound',U)),ft=!1,a("onwbchtSound",0,93),It("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),It("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")):(It("#wb-volume-text-id").html(at('menu_sound',U)),ft=!0,a("onwbchtSound",1,93),It("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-off"),It("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-2"))}),0==ft&&(It("#wb-volume-text-id").html(at('menu_sound',U)),It("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),It("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")),It(".onwebchat-widget-settings-submenu").on("click",function(e){e.stopPropagation()}),It("#operatorImage").error(function(){w&&console.log(" den vrika to operatorImage"),It(this).hide()}),1==v&&(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==J||Xe){imageClass="onweb_chatimage",Xe&&(imageClass="onweb_chatimage_mobile");var O=st+'//'+serverIP+'/chatWidgetImages/'+image_name;void 0!=It(".onwebchatbox")&&It(".onwebchatbox").after('
    '),0==le&&1==re&&It("#onweb_chatimage").css("display","none"),It("#onweb_chatimage").load(function(){It(".onwebchatbox").append('
    ');var e=parseInt(It("#onweb_chatimage").css("left"));e=e+parseInt(It("#onweb_chatimage").width())-4,It("#onweb_chatimage_x").css("left",e);var t=parseInt(It("#onweb_chatimage").css("bottom"))+parseInt(It("#onweb_chatimage").height())-4;It("#onweb_chatimage_x").css("bottom",t),It(".onwebchatbox").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),It(".onweb_chatimage_x").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'}),It(".webchat_header").mouseenter(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),It('#onweb_chatimage_x').click(function(){It("#onweb_chatimage").css("display","none"),It(".onweb_chatimage_x").css("display","none"),l('hideImage',1)})}),w&&console.log("imageurl:"+O)}It('#offlineform_btn').click(function(){if(w&&console.log(" mandatory_offline_email_field: "+ye+" show_offline_phone_field:"+ve),1==Be&&1==Se&&0==document.getElementById("onwc_consent_checkbox_offline").checked||1==_e&&1==ye&&!h(It("input#onwebchatoffemail").val())||1==ve&&1==xe&&It("input#onwebchatofftel").val().length<4||1==be&&1==fe&&It("input#onwebchatoffname").val().length<2||It("textarea#onwebchatemailtext").val().length<1)return 1==Be&&1==Se&&0==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline").style.setProperty("color","#D04848"),It("textarea#onwebchatemailtext").val().length<1&&(It("textarea#onwebchatemailtext").focus(),document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")),1==ve&&1==xe&&It("input#onwebchatofftel").val().length<4&&(It("input#onwebchatofftel").focus(),setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0),oe()),1!=_e||1!=ye||h(It("input#onwebchatoffemail").val())||(It("input#onwebchatoffemail").focus(),setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0),oe()),1==be&&1==fe&&It("input#onwebchatoffname").val().length<2&&(It("input#onwebchatoffname").focus(),setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0),oe()),!1;w&&console.log("email send "+It("input#onwebchatoffname").val());var e=It("input#onwc_consent_checkbox_offline").val();return void 0==e&&(e=-1),It.ajax({type:"POST",url:st+"//"+serverIP+"/visitorSendEmail",data:'clientip='+N+'&clientid='+bt+'&sid='+ne+'&name='+It("input#onwebchatoffname").val()+'&email='+It("input#onwebchatoffemail").val()+'&text='+It("textarea#onwebchatemailtext").val()+'&phone='+It("input#onwebchatofftel").val()+'&conboxv='+e+'&conuse='+Be+'&conboxshow='+Se}),It(".onwebchatform_div").css("display","none"),It(".onweboffline_msg").html(at('off_thank',U)+''),nt('onWebChat','Offline message sent',''),!1}),It('#prechat_btn').click(function(){if(I=It("input#onprechatname").val(),k=It("input#onprechatemail").val(),C=It("input#onprechattel").val(),void 0==I&&(I=""),void 0==k&&(k=""),void 0==C&&(C=""),I=I.trim(),k=k.trim(),C=C.trim(),1==Be&&1==Se&&0==document.getElementById("onwc_consent_checkbox_prechat").checked||1==Ce&&1==Ee&&!h(k)||1==Pe&&1==We&&C.length<4||1==Ie&&1==ke&&I.length<2||It("textarea#onprechattext").val().trim().length<1)return 1==Be&&1==Se&&0==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat").style.setProperty("color","#D04848"),It("textarea#onprechattext").val().trim().length<1&&(It("textarea#onprechattext").focus(),document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")),1==Pe&&1==We&&C.length<4&&(It("input#onprechattel").focus(),setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0),oe()),1!=Ce||1!=Ee||h(It("input#onprechatemail").val())||(It("input#onprechatemail").focus(),setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0),oe()),1==Ie&&1==ke&&I.length<2&&(It("input#onprechatname").focus(),setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0),oe()),!1;w&&console.log("PRECHAT: start chat with user name: "+It("input#onprechatname").val()+" and user email:"+It("input#onprechatemail").val()),w&&console.log("clienId:"+bt);var e=It("textarea#onprechattext").val();w&&console.log("pre_msg:"+e),rt.emit('setclientdetails',bt,ne,I,k,C,"");var t=It("input#onwc_consent_checkbox_prechat").val();void 0==t&&(t=-1),1==t?a("consentvalue",2,93):1==Be&&a("consentvalue",1,93),rt.emit('setconsentsettings',bt,t,Be,Se),It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),It("#onwbchat_window").find("#prechat_form").css("display","none"),It("#onwbchat_window #div_chat_max_title_span").text(at('max_title',U));var n="";return 1==H&&(n=" me-bubble"),printChat('

    '+at('max_me',U)+' '+o(e)+'

    '),G="me",setTimeout(function(){rt.emit('sendchat',e)},300),Q="chat",$(),!1}),It('input#onwc_consent_checkbox_offline').change(function(){1==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline").style.setProperty("color","#545454")}),It('input#onwc_consent_checkbox_prechat').change(function(){1==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat").style.setProperty("color","#545454")}),It('input#onwebchatoffemail').keyup(function(){h(It("input#onwebchatoffemail").val())&&(document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important"),oe())}),It('textarea#onwebchatemailtext').keyup(function(){It("textarea#onwebchatemailtext").val().length>=1&&(document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important"),oe())}),It('input#onwebchatofftel').keyup(function(){It("input#onwebchatofftel").val().length>=4&&(document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important"),oe())}),It('input#onwebchatoffname').keyup(function(){It("input#onwebchatoffname").val().length>=2&&(document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important"),oe())}),It('input#onprechatemail').keyup(function(){h(It("input#onprechatemail").val())&&(document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important"),oe())}),It('textarea#onprechattext').keyup(function(){It("textarea#onprechattext").val().length>=1&&(document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important"),oe())}),It('input#onprechattel').keyup(function(){It("input#onprechattel").val().length>=4&&(document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important"),oe())}),It('input#onprechatname').keyup(function(){It("input#onprechatname").val().length>=2&&(document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important"),oe())}),loadEmoticons=function(){""==It('#onwebchat-emoticons-div').html()&&It('#onwebchat-emoticons-div').append('')},MaximizeWindowInit=function(){return rt||(w&&console.log("!socket so ioconnect.."),Oe()),0==ht&&0==gt&&(w&&console.log(" isConnected==false tryToReconnect==false , so try to connect now.."),S()),rt.emit('chatWindowMax',1),maximizeChatWindow(),It("#onwbchat_window #onwbtxtarea").focus(),!1},It("#onwbchat_window .webchat_header").on("click",function(){w&&console.log("webchat_header clicked!"),0==f?1!=c('maxChat')?(P(),MaximizeWindowInit(),nt('onWebChat','Chat window opened','')):(P(),rt.emit('chatWindowMax',0),minimizeChatWindow()):f=0}),It("#onweb_chatimage_div #onweb_chatimage").on("click",function(){return MaximizeWindowInit(),P(),nt('onWebChat','Chat window opened',''),!1}),text=c('chattext'),text&&(Y=(text.match(/filesUpload/g)||[]).length),null!=text&&''!=text&&(It(".onwebchat_title2").css("display","none"),It("#triangle_down").css("display","none"),It('#onwbchat_window .chat_area').append(text),It('#onwbchat_window .chat_area').animate({scrollTop:999999999},200)),340>he&&It(".operatorImageSmallClass").css("zoom","0.9"),Xe&&(It("#onwbchat_window").css("height","95%"),It("#onwbchat_window")[0].style.setProperty("bottom","2px","important"),It("#onwbchat_window")[0].style.setProperty("width","99%","important"),"left"==ge?setTimeout(function(){It("#onwbchat_window")[0].style.setProperty("left","0px","important")},10):It("#onwbchat_window")[0].style.setProperty("right","0px","important"),It("#wb-send-image")[0].style.setProperty("zoom","1.2","important"),It("#wb-send-image")[0].style.setProperty("right","13px","important"),It("#wb-send-image")[0].style.setProperty("top","22px","important"),It("#wb-smile-image")[0].style.setProperty("display","none","important"),checkMobileChatHeight(),It(".onweb_minimize_btn_icon").css("zoom","1.2"),It("#onweb_chatimage_div")[0].style.setProperty("right","0"),It("#onweb_chatimage_div")[0].style.setProperty("left","initial"))}}function Oe(){function d(e){var t;return null==e?null:(t=e.indexOf("://")>-1?e.split('/')[2]:e.split('/')[0],t=t.split(':')[0])}function h(){function e(){}var t=It('#onwbtxtarea').val();if(It('#onwbtxtarea').val(''),""!=t.trim()){var n="";1==H&&(n=" me-bubble"),"me"!=G&&(n+=" me-first "),te=t,M(t,"visitor");var a="";1==isRTLlanguage(t.substr(0,1))&&(a=' style="direction: rtl;text-align:right;" '),printChat('

    '+at('max_me',U)+' '+o(t)+'

    '),G="me",w&&console.log("send normal text, msg:"+t),clearTimeout(y),c('mustSendTriggerText')&&1==_?(rt.emit('sendchat',t,c('triggerText')),e(),l('mustSendTriggerText',!1),_=!1,r('triggerText')):(rt.emit('sendchat',t),e())}Z=0}function x(){var e=It('#onwbtxtarea').val();w&&console.log("onwebSendTextInsights:: msg:"+e),""!=e.trim()&&rt.emit('sendchat',e,void 0,1)}function P(){isRTLlanguage(at('max_placeholder',U).trim().substring(0,2))?W("rtl","right"):W("","left")}function W(e,t){It('.chat_message textarea')[0].style.setProperty("direction",e,"important"),It('.chat_message textarea')[0].style.setProperty("text-align",t,"important")}function B(){window.removeEventListener('mousemove',$,!0)}function A(e){var t;e.target?t=e.target:e.srcElement&&(t=e.srcElement),w&&console.log("onwbmouseDown: e:"+t.id),"onweb_minimize_btn_icon_id"!=t.id&&1==c('maxChat')&&(se=1,window.addEventListener('mousemove',$,!0),It("#webchat_header").css('cursor','move'))}function $(e){var t=It(window).height(),o=It(window).width(),n=parseInt(It("#onwbchat_window").css('height')),a=e.clientX,i=e.clientY;if(1==se){var s=It(window).scrollTop(),c=It(window).scrollLeft();divTop=It("#webchat_header").offset().top-s,divLeft=It("#webchat_header").offset().left-c,oe=a-divLeft,ae=i-divTop}se=0,f=1;var l=document.getElementById('onwbchat_window');l.style.position='absolute',p=i-ae,0>i-ae&&(p=0),i-ae>t-n&&(p=t-n),l.style.top=p+'px',g=a-oe,0>a-oe&&(g=0),a-oe>o-ce&&(g=o-ce),l.style.left=g+'px'}var J={query:{server:dt},reconnectionAttempts:40};rt=u?io.connect('http://'+serverIP+ct,J):io.connect('https://'+serverIP+ct,J),w&&console.log('call connect ..'),rt.on('disconnect',function(){ht=!1,w&&console.log("on socket disconnect.."+new Date)}),rt.on('error',function(e){w&&console.log('Unable to connect Socket.IO'+e)}),rt.on('connect_error',function(e){w&&console.log('on connect_error: '+e)}),rt.on('connect_timeout',function(){w&&console.log('on connect_timeout')}),rt.on('reconnect',function(){w&&console.log('on reconnect')}),rt.on('reconnecting',function(e){w&&console.log('on reconnecting , attempt:'+e)}),8!=m()&&(lt=setTimeout(function(){rt.io.disconnect(),minimizeChatWindow()},wt)),rt.on('connect',function(){X++,X>10&&(rt.io.disconnect(),rt.disconnect(),rt=null),ht=!0,gt=!1,w&&console.log("on connect..."+new Date),sessionrandom=s('onwbchtsessionrandom'),'null'!=sessionrandom&&null!=sessionrandom&&''!=sessionrandom&&'undefined'!=sessionrandom||(sessionrandom=Math.floor(1e6*Math.random()+1),a("onwbchtsessionrandom",Math.floor(1e6*Math.random()+1),365));var e=document.referrer,t=0;if(!pt&&(null==c('chattext')||''==c('chattext')))var t=Math.floor(11e3*Math.random())+1e4;setTimeout(function(){rt.emit('userconnect',bt,I,k,C,E,Re,Ve,screen.width,sessionrandom,Me,qe,He,ne,N,e,s('onwbchtlastvisit'),$e,Xe,vt,pt,le,Be,Se)},t),pt=!1}),rt.on('onwcemailtranscript_ok',function(){toggleModal('onwcEmailOkModal')}),rt.on('addvisited1',function(e){He++,a("onwbchttimesVisited",He,93),a("onwbchtlastvisit",e,93)}),rt.on('setCookie',function(e,t){"onwbchtclientid"==e&&(''!=s('onwbchtclientid')&&null!=s('onwbchtclientid')&&(w&&console.log("vrika kai palio cookie onwbchtclientid me timi:"+s('onwbchtclientid')+" o server esteile:"+t+" (pithano visitor deleted)"),s('onwbchtclientid')!=t&&(deleteAllCookies(),l('chattext',''),It('#onwbchat_window .chat_area p').remove(),It("#onwbchat_window .onwebchat_title2").css("display","block"))),bt=t),a(e,t,365),w&&console.log('set cookie...')}),rt.on('chatWindowMax',function(e){w&&console.log("on chatWindowMax max!!:"+e),1==e?maximizeChatWindow():0==e&&minimizeChatWindow()}),rt.on('updateagents',function(e){w&&console.log("on updateagents agentsdata:"+e),T(e)}),rt.on('newChatEvent',function(e){nt('onWebChat','Chat started','by '+e)}),rt.on('setAgentOnlineHideOffline',function(o,n,a,i){if(1!=q){void 0==a&&(a=0),ee=a;try{w&&console.log(" on setAgentOnlineHideOffline, setAgentOnline: "+o+" setHideOffline:"+n+" blocked:"+vt+" sessionStorage.chattext.length:"+sessionStorage.chattext.length)}catch(s){console.log(s)}if(w&&console.log(" realAgentOnlineTemp: "+a),1==o&&void 0!=i&&''!=i&&(D=i,It('#operatorImage').attr('src',st+'//'+serverIP+'/filesUpload/operatorImages/'+i)),void 0!=o&&null!=o&&(le!=o&&(1==o?(It("#div_chat_min_title_span").text(at('min_online',U)),It('#onweb-offline-icon').hide(),It('#onweb-online-icon').show(),""!=F&&It('#webchat_header')[0].style.setProperty('background-color',F,'important')):setTimeout(function(){It("#div_chat_min_title_span").text(at('min_offline',U)),It('#onweb-offline-icon').show(),It('#onweb-online-icon').hide(),""!=j&&It('#webchat_header')[0].style.setProperty('background-color',j,'important'),""!=j&&It('#offlineform_btn')[0].style.setProperty('background-color',j,'important')},300)),le=o,re=n,(1==le||1!=re||c('chattext').length>0)&&0==vt?(w&&console.log("show........."),0!=V&&showChatWindow()):(w&&console.log("hide........."),hideChatWindow()),c('chattext').endsWith(at('max_gone',U)+"

    ")&&1==le&&0!=ee&&(It('p:last-child','#onwbchat_window .chat_area').remove(),l('chattext',c('chattext').substring(0,c('chattext').lastIndexOf('

    '+at('max_gone',U)+'

    '))),t()),1==le&&0!=ee&&t(),1!=le&&0==ee&&c('chattext').length>0&&!c('chattext').endsWith(at('max_gone',U)+"

    "))){var r=2e3;1==b&&(r=5e3),setTimeout(function(){1==le||0!=ee||c('chattext').endsWith(at('max_gone',U)+"

    ")||printChat('

    '+at('max_gone',U)+'

    '),e()},r)}}}),rt.on('setIsBlocked',function(e){w&&console.log(" on setIsBlocked, set isBlocked: "+e),void 0==e&&(e=0,w&&console.log("isBlocked undefined , so set it to 0")),vt=e,a("onwbchtblocked",e,183),1==vt?hideChatWindow():0==vt&&(1!=le&&1==re||0!=V&&showChatWindow())}),rt.on('visitordeleted',function(){w&&console.log(" on visitordeleted"),l('chattext',''),It('#onwbchat_window .chat_area p').remove(),setTimeout(function(){It("#onwbchat_window").fadeOut(700,'swing')},200),deleteAllCookies(),rt.disconnect()}),deleteAllCookies=function(){i("onwbchtclientid"),i("inChatC"),i("onwbchtSound"),i("onwbchtblocked"),i("onwbchtexpress.sid"),i("onwbchtlastvisit"),i("onwbchtsessionrandom"),i("onwbchttimesVisited")},rt.on('servercommand',function(e,t,o,n,i){null!=o&&""!=o||(o="operator"),w&&console.log(" on servercommand: "+e+" agentinfo:"+n+" agentImage:"+i),'close_dialog'==e?(w&&console.log('close_dialog get... clear chatdialogid cookie...'),w&&console.log('clear chatdialogid cookie...'),1==s('inChatC')&&""!=at('max_closed',U)&&printChat('

    '+at('max_closed',U).replace('{{operator}}',o)+'

    '),l("servingOpImage",""),D="",a('inChatC',0,.166),l('hasTriggeredNoReply',0),a('hasTriggeredNoReplyC',0,.166)):'serve_dialog'==e?(b="androidapp"==n?1:0,w&&console.log("served_by command.. isAgentFromAndroid:"+b+" agentImage:"+i),""!=at('max_served',U)&&(c('hasWrSeByTr')||printChat('

    '+at('max_served',U).replace('{{operator}}',o)+'

    ')),w&&console.log("agent name:"+o),void 0!=i&&''!=i&&(D=i,l("servingOpImage",i),It('#operatorImage').attr('src',st+'//'+serverIP+'/filesUpload/operatorImages/'+i))):'no_agent'==e&&printChat('

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

    ')}),rt.on('updatechat',function(e,i,s,l){if(null!=l&&""!=l||(l="operator"),w&&console.log(" on updatechat: data: "+s+" agentname:"+l+" showChatApi:"+V),'command:typing...'==s)It('#agenttypingimage').remove(),It('#onwbchat_window .chat_area').append(""),It('#onwbchat_window .chat_area').animate({scrollTop:9999999},200);else if('command:notyping...'==s)try{null!=document.getElementById('agenttypingimage')&&(document.getElementById('agenttypingimage').style.visibility='hidden')}catch(r){}else if(0==V)w&&console.log("den emfanizetai epeidi showchatapi=0");else{n(),clearTimeout(y),t(),It('#agenttypingimage').remove();var d="",m='',h="";1==H&&(d=" agent-bubble "),'agent'!=G&&(d+=" agent-first ",1==R&&(m='')),1==R&&(h=" big-margin-left "),M(s,"operator"),a('inChatC',1,.166);var g="";1==isRTLlanguage(s.substr(0,1))&&(g=' style="direction: rtl;text-align:right;" '),printChat('

    '+m+''+at('max_agent',U).replace('{{operator}}',l)+' '+o(s)+'

    '),G="agent",""!=e&&1!=c('maxChat')&&(w&&console.log(" MaximizeWindowInit , giati: fromSocket!=0 kai maxChat!=1! fromSocket:"+e+" maxChat:"+c("maxChat")),MaximizeWindowInit()),1!=le&&(w&&console.log("agentOnline!=1 !!!"),null!=c('chattext')&&''!=c('chattext')&&w&&console.log("sessionstorage.chattext!=null"),showChatWindow()),w&&console.log(" prechatform -> display:"+It("#onwbchat_window").find("#prechat_form").css("display")),'block'==It("#onwbchat_window").find("#prechat_form").css("display")&&showChatWindow()}}),printChat=function(e){It("#onwbchat_window .onwebchat_title2").css("display","none"),It("#onwbchat_window #triangle_down").css("display","none");var t=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,o=t.exec(e);if(null!=o){o=o[0];var n=d(o);w&&console.log("urlDomain (a): "+n+" url:"+o),e=n==d(window.location.href)?e.replace(t,"$1"):e.replace(t,"$1")}var t=/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,a=t.exec(e);if(null!=a){a=a[0];var n=d(a);e=n==d(window.location.href)?e.replace(t,"$1$2"):e.replace(t,"$1$2")}for(var i=!1;e.indexOf("{{fileuploaded:")>-1;){var s=(e.indexOf("{{fileuploaded:")+1,e.indexOf("{{fileuploaded:")+15),r=e.indexOf("}}",s),h=e.substring(s,r),g=h.replace(/^.*[\\\/]/,'');w&&console.log("filename:"+g);var p="";g.toLowerCase().endsWith(".png")||g.toLowerCase().endsWith(".jpg")||g.toLowerCase().endsWith(".jpeg")||g.toLowerCase().endsWith(".svg")||g.toLowerCase().endsWith(".gif")?(i=!0,Y++,p=''):p=''+g+'',e=e.replace("{{fileuploaded:"+h+"}}",p)}onerror="this.style.visibility='hidden'",e=e.replace(/{angry}/g,''),e=e.replace(/{cap}/g,''),e=e.replace(/{confused}/g,''),e=e.replace(/{crying}/g,''),e=e.replace(/{depression}/g,''),e=e.replace(/{dislike}/g,''),e=e.replace(/{geek}/g,''),e=e.replace(/{kiss}/g,''),e=e.replace(/{laughing}/g,''),e=e.replace(/{like}/g,''),e=e.replace(/{love}/g,''),e=e.replace(/{money}/g,''),e=e.replace(/{mustache}/g,''),e=e.replace(/{punk}/g,''),e=e.replace(/{security}/g,''),e=e.replace(/{sleepi}/g,''),e=e.replace(/{star}/g,''),e=e.replace(/{sunglass}/g,''), e=e.replace(/{surprise}/g,''),e=e.replace(/{wink}/g,''),e=e.replace('[loading...]',''),null!=document.getElementById('agenttypingimage')?It('#onwbchat_window .chat_area #agenttypingimage').before(e):It('#onwbchat_window .chat_area').append(e),It('#onwbchat_window .chat_area').animate({scrollTop:9999999},200),c('chattext')?l('chattext',c('chattext')+e):l('chattext',e),8!=m()&&(clearTimeout(lt),lt=setTimeout(function(){rt.io.disconnect(),minimizeChatWindow()},wt)),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>De&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'),340>he&&It(".operatorImageSmallClass").css("zoom","0.9"),checkMobileChatHeight()},removeLoadingImage=function(e){It('#'+e).css('background','none')};var Z=0,K=0,Q=0,te="";It('.chat_message textarea').on('paste',function(e){w&&console.log(" on paste.."),0==ht&&0==gt&&(w&&console.log(" isConnected = false , so try to connect now.."),S())}),It('.chat_message textarea').on('keypress',function(e){13!=e.keyCode||e.shiftKey?(1!=L&&1!=c('hasStartedWriting')&&(O(),l('hasStartedWriting',1)),L=1,0==ht&&0==gt&&(w&&console.log(" isConnected = false , so try to connect now.."),S()),0==Z&&(rt.emit('sendchat','command:typing...'),Z=1),'free'!=ie&&0==Q&&(Q=setTimeout(function(){x(),Q=0},500)),clearTimeout(K),K=setTimeout(function(){Z=0,clearTimeout(Q),rt.emit('sendchat','command:notyping...')},1800)):(e.preventDefault(),h(),clearTimeout(Q),Q=0)}),It('#wb-send-image').on('click',function(e){h(),It("#onwbtxtarea").focus(),checkText2ShowSendButton()}),isRTLlanguage=function(e){var t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/;return result=t.test(e),result},P(),It('.chat_message textarea').on('keyup',function(e){38==e.keyCode&&''==It(this).val()&&It(this).val(te),""!=It('#onwbtxtarea').val().trim().substring(0,2)?isRTLlanguage(It('#onwbtxtarea').val().trim().substring(0,2))?W("rtl","right"):W("","left"):""==It('#onwbtxtarea').val()&&P(),1==Be&&1!=s('consentvalue')&&2!=s('consentvalue')&&toggleModal("onwcConsentModal",!0),checkText2ShowSendButton()}),checkText2ShowSendButton=function(){""==It('#onwbtxtarea').val()&&1==v?document.getElementById("wb-send-image").style.visibility="hidden":document.getElementById("wb-send-image").style.visibility="visible"},checkText2ShowSendButton(),It('#onwebchatemailtext').on('keyup',function(e){isRTLlanguage(It('#onwebchatemailtext').val().substring(0,2))?(It('#onwebchatemailtext')[0].style.setProperty("direction","rtl","important"),It('#onwebchatemailtext')[0].style.setProperty("text-align","right","important")):(It('#onwebchatemailtext')[0].style.setProperty("direction","","important"),It('#onwebchatemailtext')[0].style.setProperty("text-align","left","important"))}),It('#onprechattext').on('keyup',function(e){isRTLlanguage(It('#onprechattext').val().substring(0,2))?(It('#onprechattext')[0].style.setProperty("direction","rtl","important"),It('#onprechattext')[0].style.setProperty("text-align","right","important")):(It('#onprechattext')[0].style.setProperty("direction","","important"),It('#onprechattext')[0].style.setProperty("text-align","left","important"))});var oe,ae,se=0,ce=parseInt(It("#onwbchat_window").css('width'));try{document.getElementById('webchat_header').addEventListener('mousedown',A,!1),document.getElementById('onweb_minimize_btn_icon_id').removeEventListener('mousedown',A),window.addEventListener('mouseup',B,!1)}catch(de){w&&console.log("error on 11112 : "+de)}z()}It=jQuery.noConflict(!0),w&&console.log("jquery loaded!"),'undefined'==typeof JSON&&(w&&console.log(" JSON: undefined!!! mallon ie8 me html 4 ?"),mt=!0);var Te=!1;10705==ne&&d()&&(Te=!0),w&&console.log(" getName at begining :"+I),'function'!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}),maximizeChatWindow=function(){if(w&&console.log(" maximizeChatWindow() .. showOnlyImage: "+Z+" mobile:"+Xe),It("#onwbchat_window").css("animation-iteration-count","0"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","rgba(0, 0, 0, 0.43) 0px 0em 1.2em","important"),(1==Z||Xe)&&(w&&console.log(" if --> showOnlyImage: "+Z+" mobile:"+Xe),It("#onwbchat_window").fadeIn(100,'swing')),"none"==It("#onwbchat_window #div_chat_max_title").css("display")&&W(),It("#onweb_chatimage_div #onweb_chatimage").css("display","none"),It("#onwbchat_window .onweb_chatimage_x").css("display","none"),1==re||0!=le||null!=c('chattext')&&''!=c('chattext')?1==te&&0===c('chattext').length?(Q="prechat",It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),It("#onwbchat_window").find("#offline_form").css("display","none"),It("#onwbchat_window").find("#prechat_form").css("display","block"),It("#onwbchat_window #div_chat_max_title_span").text(at('max_title',U))):(Q="chat",It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),It("#onwbchat_window").find("#offline_form").css("display","none"),It("#onwbchat_window").find("#prechat_form").css("display","none"),It("#onwbchat_window #div_chat_max_title_span").text(at('max_title',U))):(Q="offline",It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),It("#onwbchat_window").find("#offline_form").css("display","block"),It("#onwbchat_window #div_chat_max_title_span").text(at('off_title',U)),It("#onwbchat_window").find("#prechat_form").css("display","none")),Xe){It("#onwbchat_window").css("height","95%");var e=It("#onwbchat_window").width();It("#onwbtxtarea")[0].style.setProperty("width",e-48-23*v+"px","important"),It("#chat_area_id").css("width",e-0+"px","important"),It("#webchat_header")[0].style.setProperty("width",e-40+"px","important")}else It("#onwbchat_window").css("height",de),It("#onwbchat_window").css("top",p+"px"),It("#onwbchat_window").css("left",g+"px"),1==v&&document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important");return 1==v?(document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("webchat_header").style.setProperty("height",me+"px","important")):document.getElementById("webchat_header").style.setProperty("height",me-0+4+"px","important"),It("#onwbchat_window").find(".onweb_minimize_btn").css("display","inline"),It("#onwbchat_window").find(".onweb_minimize_btn").css("position","absolute"),It("#onwbchat_window").find(".onweb_minimize_btn").css("right","0px"),It("#onwbchat_window .webchat_header").css("cursor","move"),It("#onwbchat_window #div_chat_max_title").css("display","block"),It("#onwbchat_window #div_chat_min_title").css("display","none"),It("#onwbchat_window #off-form-onwebchat-logo").css("display","block"),It("#onwbchat_window #onwebchat-logo-span").css("display","block"),It("#onwbchat_window .webchat_header").hover(function(){It("#onwbchat_window .webchat_header").css("opacity","1")},function(){It("#onwbchat_window .webchat_header").css("opacity","1")}),l('maxChat',1),loadEmoticons(),oe(),$(),!1},minimizeChatWindow=function(){return(1==Z||Xe)&&(w&&console.log("showOnlyImage:"+Z+" mobile:"+Xe),It("#onwbchat_window").fadeOut(0)),"block"==It("#onwbchat_window #div_chat_max_title").css("display")&&B(),w&&console.log("minimizeChatWindow.."),l('maxChat',0),w&&console.log("sessionStorage.maxChat:"+c('maxChat')+" sessionStorage.hideImage:"+c('hideImage')),setTimeout(function(){It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide(),It(".onwebchatbox").css("height","66px"),It("#onwbchat_window .webchat_header").css("cursor","pointer"),0==c('hideImage')&&(It("#onweb_chatimage_div #onweb_chatimage").css("display","inline"),It("#onweb_chatimage_div #onweb_chatimage").css("cursor","pointer"),It("#onweb_chatimage").css("animation-iteration-count","0")),It("#onwbchat_window .onweb_chatimage_x").css("display","inline"),It("#onwbchat_window #div_chat_min_title").css("display","block"),It("#onwbchat_window #div_chat_max_title").css("display","none"),It("#onwbchat_window #off-form-onwebchat-logo").css("display","none"),It("#onwbchat_window #onwebchat-logo-span").css("display","none"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),It("#onwbchat_window").find(".onweb_maximize_btn").css("display","inline"),Xe||(It("#onwbchat_window").css("top","initial"),It("#onwbchat_window").css("left","initial"),It("#onwbchat_window").css(ge,pe+"px"),1==v?(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")):(document.getElementById("webchat_header").style.setProperty("height",me+"px","important"),document.getElementById("onwbchat_window").style.setProperty("height",me+"px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important")))},100),!1},hideChatWindow=function(){It("#onwbchat_window").fadeOut(300,'swing'),It("#onweb_chatimage_div #onweb_chatimage").fadeOut(300,'swing'),w&&console.log("hideChatWindow..")},showChatWindow=function(){try{w&&console.log("showChatWindow.. hideOffline:"+re+" sessionStorage.hideImage:"+c('hideImage'))}catch(e){console.log(e)}0==Z&&0==Xe&&(w&&console.log("showOnlyImage:::: "+Z+" mobile:"+Xe),It("#onwbchat_window").css("display","block")),1==c('hideImage')&&(w&&console.log("hide image..."),It("#onweb_chatimage_div #onweb_chatimage").css("display","none")),0==c('hideImage')&&(w&&console.log("show image now.."),It("#onweb_chatimage_div #onweb_chatimage").css("display","inline")),1==c('maxChat')?(w&&console.log("sessionStorage.maxChat==1"),maximizeChatWindow()):(w&&console.log("sessionStorage.maxChat!=1"),It("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide())};var Me,qe,$e,Xe;w&&console.log(" jquery version in demochat.js: "+It.fn.jquery),It.ajaxSetup({cache:!0}),mt||Te||(""!=A?It.when(It.getScript(st+"//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js",function(e,t,o){w&&console.log(t),w&&console.log(" just now (with lang file) load file socket.js , data:"+e)}).done(function(e,t){w&&console.log("just load socket.io ... ")}).fail(function(){w&&console.log("fail loading socket.io .. ...: "+exception)}),It.get(A,function(e){if(w&&console.log("onwebchatLanguages.txt Load was performed. , data: "),""!=e)try{It.extend(!0,x,JSON.parse(e))}catch(t){console.log("exception parsing lang text file : "+t),console.log("lang text file data: "+e.substring(0,100)+" ...")}w&&console.log(x)}).fail(function(){console.log("Error: language file failed to load! filename: "+A),console.log("Ensure that language file url is correct and is not blocked as cross-origin request."),'l1'!=U&&'l2'!=U&&(U='l1'),w&&console.log(" ****final language::"+U)}),It('head').append("")).done(function(){we()}):It.when(It.getScript(st+"//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js",function(e,t,o){w&&console.log(t),w&&console.log(" just now ( no lang file) load file socket.js , data:"+e)}).done(function(e,t){w&&console.log("just load socket.io ... ")}).fail(function(){w&&console.log("fail loading socket.io .. ...: "+exception)}),It('head').append("")).done(function(){we()})),enableMenuItem=function(e){It("#"+e).css("opacity",.84),It("#"+e).hover(function(e){It(this).css("opacity","mouseenter"===e.type?1:.84)}),document.getElementById(e)&&document.getElementById(e).style.setProperty("cursor","pointer","important")},disableMenuItem=function(e){It("#"+e).css("opacity",.5),It("#"+e).hover(function(e){It(this).css("opacity",("mouseenter"===e.type,.5))}),document.getElementById(e)&&document.getElementById(e).style.setProperty("cursor","initial","important")},function(e){var t='-',o=navigator.appVersion,n=navigator.userAgent,a=navigator.appName,i=''+parseFloat(navigator.appVersion),s=parseInt(navigator.appVersion,10);$e=o+" -- "+n+" -- "+a+" -- "+i+" -- "+s+" -- "+navigator.platform+" -- "+navigator.oscpu;var c,l,r;-1!=(l=n.indexOf('Opera'))?(a='Opera',i=n.substring(l+6),-1!=(l=n.indexOf('Version'))&&(i=n.substring(l+8))):-1!=(l=n.indexOf('MSIE'))?(a='Internet Explorer',i=n.substring(l+5)):-1!=(l=n.indexOf('Edge'))?(a='Edge',i=''):-1!=(l=n.indexOf('Chrome'))?(a='Chrome',i=n.substring(l+7)):-1!=(l=n.indexOf('Safari'))?(a='Safari',i=n.substring(l+7),-1!=(l=n.indexOf('Version'))&&(i=n.substring(l+8))):-1!=(l=n.indexOf('Firefox'))?(a='Firefox',i=n.substring(l+8)):-1!=n.indexOf('Trident/')?(a='Internet Explorer',i=n.substring(n.indexOf('rv:')+3)):(c=n.lastIndexOf(' ')+1)<(l=n.lastIndexOf('/'))&&(a=n.substring(c,l),i=n.substring(l+1),a.toLowerCase()==a.toUpperCase()&&(a=navigator.appName)),-1!=(r=i.indexOf(';'))&&(i=i.substring(0,r)),-1!=(r=i.indexOf(' '))&&(i=i.substring(0,r)),-1!=(r=i.indexOf(')'))&&(i=i.substring(0,r));var d=i.indexOf('.');if(d>0){var m=i.indexOf('.',i.indexOf('.')+1);m>0&&(i=i.substring(0,m))}s=parseInt(''+i,10),isNaN(s)&&(i=''+parseFloat(navigator.appVersion),s=parseInt(navigator.appVersion,10)),'Edge'==a&&(i=''),Xe=!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(n)||/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(n.substr(0,4)))&&(Xe=!0),w&&console.log(" nVer: "+o),w&&console.log(" nAgt: "+n),w&&console.log(" mobile: "+Xe);var h=!!navigator.cookieEnabled;'undefined'!=typeof navigator.cookieEnabled||h||(document.cookie='testcookie',h=-1!=document.cookie.indexOf('testcookie'));var g=t,p=[{s:'Windows 3.11',r:/Win16/},{s:'Windows 95',r:/(Windows 95|Win95|Windows_95)/},{s:'Windows ME',r:/(Win 9x 4.90|Windows ME)/},{s:'Windows 98',r:/(Windows 98|Win98)/},{s:'Windows CE',r:/Windows CE/},{s:'Windows 2000',r:/(Windows NT 5.0|Windows 2000)/},{s:'Windows XP',r:/(Windows NT 5.1|Windows XP)/},{s:'Windows Server 2003',r:/Windows NT 5.2/},{s:'Windows Vista',r:/Windows NT 6.0/},{s:'Windows 7',r:/(Windows 7|Windows NT 6.1)/},{s:'Windows 8.1',r:/(Windows 8.1|Windows NT 6.3)/},{s:'Windows 8',r:/(Windows 8|Windows NT 6.2)/},{s:'Windows 10',r:/(Windows 10|Windows NT 10.0)/},{s:'Windows NT 4.0',r:/(Windows NT 4.0|WinNT4.0)/},{s:'Windows',r:/(WinNT|Windows NT)/},{s:'Windows ME',r:/Windows ME/},{s:'Windows Phone',r:/Windows Phone/},{s:'Android',r:/Android/},{s:'Open BSD',r:/OpenBSD/},{s:'Sun OS',r:/SunOS/},{s:'Linux',r:/(Linux|X11)/},{s:'iOS',r:/(iPhone|iPad|iPod)/},{s:'Mac OS X',r:/Mac OS X/},{s:'Mac OS',r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:'QNX',r:/QNX/},{s:'UNIX',r:/UNIX/},{s:'BeOS',r:/BeOS/},{s:'OS/2',r:/OS\/2/},{s:'BlackBerry OS',r:/BlackBerry/},{s:'Search Bot',r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(var u in p){var b=p[u];if(b.r.test(n)){g=b.s;break}}var f=t;switch(/Windows/.test(g)&&(f=/Windows (.*)/.exec(g)[1],g='Windows'),g){case'Mac OS X':f=/Mac OS X (10[\.\_\d]+)/.exec(n)[1];break;case'Android':f=/Android ([\.\_\d]+)/.exec(n)[1];break;case'iOS':f=/OS (\d+)_(\d+)_?(\d+)?/.exec(o),f=f[1]+'.'+f[2]+'.'+(0|f[3])}var _='no check';if('undefined'!=typeof swfobject){var y=swfobject.getFlashPlayerVersion();_=y.major>0?y.major+'.'+y.minor+' r'+y.release:t}e.jscd={browser:a,browserVersion:i,mobile:Xe,os:g,osVersion:f,cookies:h,flashVersion:_}}(this),qe=jscd.os+' '+jscd.osVersion,Me=jscd.browser+' '+jscd.browserVersion;var He=s('onwbchttimesVisited');''!=He&&void 0!=He&&'NaN'!=He||(He=0,a("onwbchttimesVisited",1,93)),It.support.cors=!0}),{init:function(e){ut=e},set:function(e,t){if("name"==e){I=t,w&&console.log("set name:"+t);try{rt.emit('setclientdetails',bt,ne,I,"","","")}catch(o){w&&console.log("error on set : "+o)}}else if("email"==e){k=t;try{rt.emit('setclientdetails',bt,ne,"",k,"","")}catch(o){w&&console.log("error on set : "+o)}}else if("phone"==e){C=t;try{rt.emit('setclientdetails',bt,ne,"","",C,"")}catch(o){w&&console.log("error on set : "+o)}}else if("notes"==e){E=t;try{rt.emit('setclientdetails',bt,ne,"","","",E)}catch(o){w&&console.log("error on set : "+o)}}else if("pageUrl"==e)try{rt.emit('setclientpageurl',bt,ne,"",t)}catch(o){w&&console.log("error on set : "+o)}else if("pageTitle"==e)try{rt.emit('setclientpageurl',bt,ne,t,"")}catch(o){w&&console.log("error on set : "+o)}else"max"==e?1==t?(maximizeChatWindow(),It("#onwbtxtarea").focus()):0==t&&minimizeChatWindow():"show"==e?1==t?(V=1,showChatWindow()):0==t&&(V=0,hideChatWindow()):"online"==e?1==t?(le=1,showChatWindow()):0==t&&(le=0,showChatWindow()):"hideImage"==e?1==t?w&&console.log(" set hideImage: )!!! : "+t):0==t&&w&&console.log(" set hideImage: )!!! : "+t):"language"==e?(U=t,w&&console.log(" setLanguage (2)!!! : "+U),'gr'!=U&&'el'!=U||(U='l1'),'en'==U&&(U='l2'),'l1'!=U&&'l2'!=U&&(U='l1'),w&&console.log(" final language : "+U)):"languageFile"==e?(A="",w&&console.log("prosoxi !! languageFile set (set function..) : "+A+" mallon me opera, opote den to ipostririzo pros to paron ")):"onClick"==e?P=t:"onMaximize"==e?W=t:"onMinimize"==e?B=t:"onTrigger"==e?S=t:"onStartWriting"==e?O=t:"onUpdateOperators"==e?T=t:"onNewMessage"==e?M=t:"onWebChatLoaded"==e?z=t:"onlineColor"==e?(F=t,1==le&&""!=F&&It('#webchat_header')[0].style.setProperty('background-color',F,'important')):"offlineColor"==e&&(j=t,1!=le&&""!=j&&(It('#webchat_header')[0].style.setProperty('background-color',j,'important'),It('#offlineform_btn')[0].style.setProperty('background-color',j,'important')))},get:function(e){return"name"==e?(w&&console.log(" get name:"+I),I):"email"==e?k:"phone"==e?C:"notes"==e?E:"status"==e?1==le?"online":"offline":""}}}();