var onWebChat_=onWebChat_||function(){function e(){clearTimeout(x),1==ie||27254==ie&&(x=setTimeout(t,3e3,"Бихте ли ни дали телефон за връзка, за да уточним детайли?"))}function t(e){if(b&&console.log(" triggerNowNoReply "),"undefined"!=typeof sessionStorage&&'1'!=r('hasTriggeredNoReply')&&1!=l('hasTriggeredNoReplyC')&&1!=l('inChatC')&&0!=$){it('onWebChat','Trigger (no reply) activated',''),d('hasTriggeredNoReply',1),s('hasTriggeredNoReplyC',1,.166),d('mustSendTriggerNoReplyText',!0),mt.emit('sendchat',"",e),i();var t="";1==Z&&(t=" agent-bubble ");var o="",n='',c="";'agent'!=Q&&(t+=" agent-first ",1==q&&(n='')),1==q&&(c=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(o=' style="direction: rtl;text-align:right;" ');var m="";b&&console.log('

'+n+''+st('max_agent',R).replace('{{operator}}',m)+' '+a(e).replace(/({{newline}})/gm,"
")+'

'),printChat('

'+n+''+st('max_agent',R).replace('{{operator}}',m)+' '+a(e).replace(/({{newline}})/gm,"
")+'

'),b&&console.log("i!!!!:"+r('maxChat')+" - "+ne+" - "+r('chattext').length)}}function o(){r('chattext')&&r('chattext').endsWith(st('max_gone',R)+"

")&&(ee=!1,b&&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",Pt('#onwbtxtarea').attr('placeholder',''),disableMenuItem("uploadfileid"))}function n(){ee=!0,b&&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",Pt('#onwbtxtarea').attr('placeholder',st('max_placeholder',R)),enableMenuItem("uploadfileid")}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function i(){if(yt){var e=document.getElementById("onwebchataudio");try{e.play()}catch(t){b&&console.log("exception in audio.play:"+t)}b&&console.log("play sound!!! : ")}}function s(e,t,o){b&&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 c(e){s(e,'',-1)}function l(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 p(e){var t=/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i;return t.test(e)}window.console||(console={log:function(){}});var w,u,b=!1,f=!1,_=0,y=0,v=!1,x=0;b&&console.log("inside js: ar:"+onWebChat.ar),b&&console.log(onWebChat.ar);var I=1,k={ 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'} };b&&console.log(k);var C="",E="",P="",W="",B=function(){},S=function(){},T=function(){},O=function(){},M=function(){},z=function(){},F=function(){},j=function(){},N="",L="",U=0,A="35.173.57.84",R="l2";b&&console.log("language:"+R+" client_ip:"+A);var D="",V="";""!=r("servingOpImage")&&void 0!=r("servingOpImage")&&(V=r("servingOpImage"));var q="0";b&&console.log("showOperatorImages:"+q),1==q&&""==V&&(V="0_support_man.png");var $=-1,X=0,H=-1,J=0,Z="1",Y="1",G="0";1==I&&(Z=1),1==G&&0==Y&&(b&&console.log("den ginetai showOnlyImage==1 && image_use==0"),G=0);var K=0,Q="";1==G&&d('hideImage',0);var ee=!0,te="";0!=r('hideImage')&&1!=r('hideImage')&&d('hideImage',0);var oe,ne="0",ae="1",ie=11740,se=".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;-webkit-filter:brightness(100%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onweb_chatimage_mobile{position:absolute !important;bottom: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}img#onweb_chatimage:hover{opacity:1;-webkit-filter:brightness(112%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onwebchatbox .onweb_chatimage:-moz-loading{visibility:hidden}.onwebchatbox .onweb_chatimage_x{position:absolute;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer;border:0;opacity:.5}#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;font-style:normal}.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} ",ce="free",le="0",re="1",de="undefined",me=0,he="560",ge="66",pe="340",we="right",ue="20",be="#555555",fe="#444444",_e="1",ye="0",ve="1",xe="1",Ie="0",ke="0",Ce="1",Ee="0",Pe="1",We="1",Be="0",Se="0",Te="0",Oe="1",Me="0",ze="us",Fe=['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'],je="1",Ne="1",Le="1",Ue="0",Ae="1",Re="1",De="1";1==Te&&1==Me&&-1===Fe.indexOf(ze)&&(Te=0);var Ve=l('onwbchtemailsSent');Ve=""==Ve?0:parseInt(Ve),"0"===ae&&(se=se.replace(/radius: 13px|radius: 11px|radius: 8px|radius: 5px|radius: 6px|radius: 2px|radius: 3px/g,"radius:0px"),se=se.replace(/radius:13px|radius:11px|radius:8px|radius:5px|radius:6px|radius:2px|radius:3px/g,"radius:0px")),se=se.replace("#onweb_min_btn_margin",.36*ge-1.36),1==I?(se=se.replace(new RegExp('__modern','g'),""),se=se.replace(/#textarea_width/g,pe-71)):(se=se.replace(new RegExp('live-chat-images-3.png','g'),"live-chat-images.png"),se=se.replace(/#textarea_width/g,pe-48)),se=se.replace(/#chat_width/g,pe),se=se.replace(/#chatheader_width/g,pe-40),se=se.replace("#chat_area_height",he-98-ge-4+14*I),se=se.replace("#onwebchatbox_header_height_+_4",ge-0+4),se=se.replace(/#onwebchatbox_header1_height/g,ge),0==Z&&(b&&console.log("bubbles_use = 0 "),be="#595959",fe="#595959"),se=se.replace(/#visitor_css_text_color/g,be),se=se.replace(/#agent_css_text_color/g,fe),void 0!=de&&'undefined'!=de||(de=0),b&&console.log("plan:"+ce+" agentOnline:"+de+" siteid:"+ie+" showOnMobiles:"+re+" roundedCorners:"+ae+" chatPosition:"+we+" chatMargin:"+ue);var qe=document.title,$e=window.location.href;try{var Xe=function(e,t){if(b&&console.log(" triggerNow "),1==de&&"undefined"!=typeof sessionStorage&&'1'!=r('hasTriggered')&&1!=l('hasTriggeredC')&&1!=l('inChatC')&&""==r('chattext'))if(1==r('maxChat')&&1==ne)b&&console.log(" maxChat 1 & preChatForm 1");else if(O(),0!=$){it('onWebChat','Trigger activated',''),d('hasTriggered',1),s('hasTriggeredC',1,.166),d('mustSendTriggerText',!0),v=!0,d('triggerText',e),i(),""!=st('max_served',R)&&""!=t&&"null"!=t&&null!=t&&(printChat('

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

'),Q="",d('hasWrSeByTr',!0));var o="";1==Z&&(o=" agent-bubble ");var n="",c='',m="";'agent'!=Q&&(o+=" agent-first ",1==q&&(c='')),1==q&&(m=" big-margin-left "),1==isRTLlanguage(e.substr(0,1))&&(n=' style="direction: rtl;text-align:right;" '),printChat('

'+c+''+st('max_agent',R).replace('{{operator}}',t)+' '+a(e).replace(/({{newline}})/gm,"
")+'

'),Q="agent",b&&console.log("i!!!!:"+r('maxChat')+" - "+ne+" - "+r('chattext').length),1!=r('maxChat')&&MaximizeWindowInit(),pt&&mt.emit('setclientstatus','triggered')}}}catch(He){console.log(He)}var Je='[]';b&&console.log(Je),Je=Je.replace(/(\r\n|\n|\r)/gm,"{{newline}}");var Ze=JSON.parse(Je);b&&console.log("triggers"),b&&console.log(Ze);var Ye=0,Ge=!1;void 0===r('secOnSite')&&d('secOnSite',0);for(var Ke=Ze.length,Qe=0;Ke>Qe;Qe++)if(b&&console.log("i :: "+Qe),1==Ze[Qe].isFullSite&&0==Ze[Qe].whole)b&&console.log(" isFullsite 1 kai whole 0"),setTimeout(Xe,1e3*Ze[Qe].delay,Ze[Qe].text,Ze[Qe].agentName);else if(1==Ze[Qe].isFullSite&&1==Ze[Qe].whole){Ge=!0,b&&console.log(" isFullsite 1 kai whole 1");try{var et=Ze[Qe].delay-r('secOnSite')}catch(He){console.log(He)}b&&console.log("delay :: "+et),et>=0&&setTimeout(Xe,1e3*et,Ze[Qe].text,Ze[Qe].agentName)}else if(0==Ze[Qe].isFullSite){b&&console.log("triggers[i].isFullSite==0");for(var tt=Ze[Qe].urls,ot=!1,nt=tt.length,at=0;nt>at;at++)if(window.location.href.indexOf(tt[at])>-1){b&&console.log(":::::::::::"+tt[at]),ot=!0;break}ot&&setTimeout(Xe,1e3*Ze[Qe].delay,Ze[Qe].text,Ze[Qe].agentName)}Ge&&setInterval(function(){void 0===r('secOnSite')&&d('secOnSite',0),Ye++,d('secOnSite',parseInt(r('secOnSite'))+1)},1e3);var it=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){}},st=function(e,t){return k[e]&&k[e][t]?(b&&console.log(e+" , "+t+" :"+k[e][t]),k[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==k[e]?"":k[e].l1};try{for(var at=0;ato.length)&&(t=o.length),t-=e.length;var n=o.indexOf(e,t);return-1!==n&&n===t});var ct=void 0,lt=document.location.protocol;'file:'==lt&&(lt="https:");var rt=document.location.port;void 0==document.location.protocol||''==rt||'80'==rt||'443'==rt?(b&&console.log("port 80 or 443 ! port: "+rt),rt=''):(b&&console.log("port not 80!"),rt=':443'),b&&console.log("protocol :"+lt+" port:"+document.location.port),serverIP="www.onwebchat.com";var dt,mt,ht="1",gt=!1,pt=!1,wt=!1,ut=!0,bt=288e5,ft={},_t="",yt=!0;yt=l('onwbchtSound'),''==yt||null==yt?(yt=!0,s("onwbchtSound",1,93)):0==yt&&(yt=!1),_t=l('onwbchtclientid'),''==_t||null==_t?b&&console.log("clientId == null!!!!! (den iparxei sto cookie)"):b&&console.log("clientId:"+_t+" (iparxei sto cookie)"),1==Y&&1==H&&(Y=0);var vt="predefined/boy.png",xt="predefined/boy.png",It="predefined/boy.png",kt="predefined/boy.png";b&&console.log("image_UsE:"+Y);var Ct=l('onwbchtblocked');''!=Ct&&null!=Ct&&'null'!=Ct&&'NaN'!=Ct||(Ct=0,s("onwbchtblocked",0,183)),b&&console.log("agentOnline:"+de+" hideOffline:"+me+" sessionStorage.maxChat:"+r('maxChat')+" blocked:"+Ct),b&&console.log("isIE: "+g());var Et=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)};b&&console.log("serverip:"+serverIP);var Pt;return Et(lt+'//code.jquery.com/jquery-1.11.0.min.js',function(){function t(){try{return window.self!==window.top}catch(e){return!1}}function h(){b&&console.log(" call function socketReconnect"),wt=!0,mt.connect(),b&&console.log("after call socket.io.reconnect()"),8!=g()&&(b&&console.log("not ie .."),dt=setTimeout(function(){mt.io.disconnect(),minimizeChatWindow()},bt))}function O(){'chat'==te&&1==q?(Pt("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","50px","important"),b&&console.log("50px nowIsShowing: "+te+" showOperatorImages:"+q)):(Pt("#onwbchat_window #div_chat_max_title_span")[0].style.setProperty("padding-left","10px","important"),b&&console.log("10px nowIsShowing: "+te+" showOperatorImages:"+q))}function H(){var e;if(b&&console.log("checkBottomOfButton.."),e='block'==Pt("#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){b&&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;b&&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'==Pt("#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 ae(){b&&console.log("load .js and css files ... mobile:"+He),be(),setTimeout(function(){H()},5),b&&console.log(" mobile: "+He+" screenWidth: "+screen.width+" margin:"+ue),gt||(null==r('chattext')&&d('chattext',''),b&&console.log("runWhenLoadAllFiles-> showchatapi: "+$+" blocked:"+Ct),1!=$&&1!=de&&1==me&&''===r('chattext')||0!=Ct||0===$||(b&&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,b&&console.log(" I am bot!")),0==e?fe():b&&console.log("is a bot!!")}function be(){function t(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 c(e,t){b&&console.log("download is run 1.. isIE?:"+g());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==Pt(".onwebchatbox").length){1==de?div_chat_min_title=st('min_online',R):div_chat_min_title=st('min_offline',R);var m=' by onWebChat',w=m.replace("l=2&","");1==le&&(w="",m=""),b&&console.log("to mobile einai:::: "+He+" to showOnMobiles:"+re+" agentOnline:"+de),He?1==de?image_name=vt:image_name=xt:1==de?image_name=It:image_name=kt;var u='';1==q&&(u='');var f='

'+st('max_msg',R)+'
';''==st('max_msg',R)&&(f=''),tempSaveSt='',g()||(tempSaveSt='
  • '+st('menu_save',R)+'
  • ');var _="",v="",x="";if(1==Te){var k="",W="";1==Oe&&(k='',W='padding-left: 0px;text-indent:-17px;'),_='',v=_.replace(/_offline/g,'_prechat'),x=_.replace(/_offline/g,'_inchat_modal')}1==He&&1!=re||(b&&console.log("mobile !=1 OR showOnMobiles==1 mobile:"+He+" showOnMobiles:"+re),8!=g()&&Pt("body").append('
    "+div_chat_min_title+"
    "+st('off_msg',R)+"
    "+(0==_e?'':'')+(0==ve?'':'')+(0==Ie?'':'')+''+_+''+w+"
    "+st('prechat_msg',R)+"
    "+(0==Ce?'':'')+(0==Pe?'':'')+(0==Be?'':'')+''+v+''+w+"
    "+u+f+"
    • "+st('menu_send_file',R)+"
    • "+st('menu_email',R)+"
    • "+st('menu_print',R)+'
    • '+tempSaveSt+'
    • '+st('menu_sound',R)+"
    • "+st('menu_end_chat',R)+"
    "+m+'
    ×File size > 5 Mb!
    "+st('email_text',R)+"

    ×"+st('email_sent',R)+"
    "+st('end_chat_msg',R)+'
    "+x+"
    ")),consentTextClicked=function(){if(1==Oe){var e=Pt("input#onwc_consent_checkbox_inchat_modal");e&&e.prop('checked',!e.prop('checked')),e=Pt("input#onwc_consent_checkbox_offline"),e&&e.prop('checked',!e.prop('checked')),e=Pt("input#onwc_consent_checkbox_prechat"),e&&e.prop('checked',!e.prop('checked'))}},toggleModal=function(e,t){b&&console.log("function toggleModal , modal:"+e),document.getElementById(e).classList.toggle("show-onwcmodal",t)},document.getElementById('onwbchat_window').addEventListener("click",t),emailTranscript=function(){""!=r('chattext')&&6>Ve&&(Pt(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEmailModal"))},checkMobileChatHeight=function(){try{if(He){b&&console.log("checkMobileChatHeight..");var e=Pt("#onwbchat_window").height();Pt(".onwebchatbox .chat_area").css("height",e-98-ge-4+14*I+"px"),Pt('#onwbchat_window .chat_area').animate({scrollTop:9999999},200)}}catch(t){}},clickConsentModalOk=function(){var e=Pt("input#onwc_consent_checkbox_inchat_modal").val();void 0==e&&(e=-1),1==Oe&&0==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848"):1==Oe&&1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?(s("consentvalue",2,93),toggleModal('onwcConsentModal',!1),mt.emit('setconsentsettings',_t,e,Te,Oe)):1==Te&&1!=Oe&&(s("consentvalue",1,93),toggleModal('onwcConsentModal',!1),mt.emit('setconsentsettings',_t,e,Te,Oe))},Pt('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(){""!=r('chattext')&&(Pt(".onwebchat-widget-settings-submenu").hide(),toggleModal("onwcEndChatModal",!0))},endChatFunction=function(){""!=r('chattext')&&(d('chattext',''),disableMenuItem("onwebchat-print-li"),disableMenuItem("onwebchat-savetofile-li"),disableMenuItem("onwebchat-email-li"),disableMenuItem('onwebchat-endchat-li'),Pt('#onwbchat_window .chat_area').empty(),Pt('#onwbchat_window .chat_area').append(f),showChatWindow(),mt.emit('close_dialog_visitor'),d("servingOpImage",""),V=""),toggleModal('onwcEndChatModal',!1)},sendEmailTranscript=function(){if(p(Pt("input#onwcemailtrans").val())){if(6>Ve){var e=(new Date).getTimezoneOffset()/60*-1;mt.emit('onwcemailtranscript',_t,ie,Pt("input#onwcemailtrans").val(),e),toggleModal("onwcEmailModal",!1);var t=l('onwbchtemailsSent');b&&console.log("emailsSent:"+t),Ve++,""==t?s('onwbchtemailsSent',1,.0416):s('onwbchtemailsSent',parseInt(t)+1,.0416)}}else Pt("input#onwcemailtrans").focus(),document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important")},Pt('input#onwcemailtrans').keyup(function(){p(Pt("input#onwcemailtrans").val())&&document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}),1==de?n():o(),1==G&&(Pt('#onwbchat_window').css('display','none'), b&&console.log("showOnlyImage==1 - q111('#onwbchat_window').css('display', 'none'); mobile:"+He)),1==de?Pt('#onweb-offline-icon').hide():Pt('#onweb-online-icon').hide(),1==de&&""!=N?Pt('#webchat_header')[0].style.setProperty('background-color',N,'important'):""!=L&&(Pt('#webchat_header')[0].style.setProperty('background-color',L,'important'),Pt('#offlineform_btn')[0].style.setProperty('background-color',L,'important')),0==je&&Pt('#onwc-settings-icon-id').remove(),0==Le&&0==Ne&&0==Ue&&0==Ae&&0==Re&&0==De&&Pt('#onwebchat-widget-settings-submenu-ul').remove(),0==Le&&Pt('#onwebchat-email-li').remove(),0==Ne&&Pt('#uploadfileid').remove(),0==Ue&&Pt('#onwebchat-print-li').remove(),0==Ae&&Pt('#onwebchat-savetofile-li').remove(),0==Re&&Pt('#onwebchat-volume-li-id').remove(),0==De&&Pt('#onwebchat-endchat-li').remove(),setEmoticon=function(e){Pt('#onwbtxtarea').val(Pt('#onwbtxtarea').val()+" {"+e+"}"),Pt('#onwebchat-emoticons-div').hide(),Pt('#onwbtxtarea').focus(),checkText2ShowSendButton()},validateFileSize=function(e,t){if(b&&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'),Pt("#onwbchtFileinput").val(''),!1):(printChat('

    '+st('max_me',R)+" [loading...]

    "),1==t&&Pt("#onwbchtUploadForm").submit(),!0)},SaveToFile=function(e){try{if(""!=r('chattext')){Pt(".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==le&&(strBy=""),c('chat_'+o+'.txt','## Chat transcipt on '+o+' '+n+strBy+'\n\n'+i(Pt(e).html()))}}catch(a){console.log(a)}},PrintElem2Printer=function(e){try{""!=r('chattext')&&(Pt(".onwebchat-widget-settings-submenu").hide(),Popup2Print(Pt(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(){mt.emit('chatWindowMax',0),minimizeChatWindow()},uploadFilePressed=function(){b&&console.log("uploadFilePressed.."),Pt('#uploadfileid').css("opacity")>.9&&(Pt('#onwbchtFileinput').trigger('click'),0==pt&&0==wt&&(b&&console.log(" isConnected = false , so try to connect now.."),h()))},void 0!=r('chattext')&&""!=r('chattext')&&(b&&console.log("chattext:"+r('chattext')),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>Ve&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'));var S=0,T=document.getElementById('onwbchat_window');if(T.addEventListener('dragenter',function(e){T.style.backgroundImage="url('')",S++,1==ee&&1==Ne&&'chat'==te&&(T.style.filter="brightness(50%)"),e.preventDefault()},!1),T.addEventListener('dragleave',function(e){S--,0==S&&(T.style.filter="brightness(100%)"),e.preventDefault()},!1),T.addEventListener('dragover',function(e){e.preventDefault()},!1),T.addEventListener('drop',function(e){S=0;var t=e.dataTransfer,o=t.files;if(T.style.filter="brightness(100%)",e.preventDefault(),b&&console.log("isAbleToWrite:"+ee+" nowIsShowing:"+te),1==ee&&1==Ne&&'chat'==te&&validateFileSize(o[0],0)){var n=new FormData;n.append('file',o[0]),n.append('siteid',ie),sendFileToServer(n)}},!1),Pt("#onwbchtUploadForm").submit(function(e){b&&console.log("onwbchuploadForm 1");var t=(Pt(this),new FormData(this));sendFileToServer(t),e.preventDefault()}),sendFileToServer=function(e){Pt.ajax({url:''+lt+'//'+serverIP+'/chat_upload_file/url',type:'POST',data:e,mimeType:"multipart/form-data",contentType:!1,cache:!1,processData:!1,success:function(e,t,o){b&&console.log("server response: "+e+" textStatus:"+t);var n,a=Pt("#onwbchat_window img[src$='loading.gif']"),i=e.substring(e.indexOf(":")+1);if(b&&console.log("fileUrl:"+i),i.toLowerCase().endsWith(".png")||i.toLowerCase().endsWith(".jpg")||i.toLowerCase().endsWith(".jpeg")||i.toLowerCase().endsWith(".svg")||i.toLowerCase().endsWith(".gif"))K++,n=a.attr("src").replace("chatimages/loading.gif","filesUpload/"+encodeURI(i)),a.css("max-width","150px"),a.css("max-height","70px"),d('chattext',r('chattext').replace('',"")),Pt('#onwbchat_window .chat_area').animate({scrollTop:999999999},200),setTimeout(function(){Pt('#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+""),d('chattext',r('chattext').replace('',""+s+""))}mt.emit('sendchat','{{fileuploaded:'+i+'}}'),F("{{fileuploaded:"+i+"}}","visitor")},error:function(e,t,o){console.log('Error: '+e.status+o)}})},Pt('.onwebchat-widget-settings-icon').click(function(e){e.stopPropagation(),Pt('.onwebchat-widget-settings-submenu').toggle(),Pt('#onwebchat-emoticons-div').hide()}),Pt('#wb-smile-image').click(function(e){e.stopPropagation(),loadEmoticons(),Pt('#onwebchat-emoticons-div').toggle(),Pt(".onwebchat-widget-settings-submenu").hide(),0==pt&&0==wt&&(b&&console.log(" isConnected = false , so try to connect now.."),h())}),Pt(document).on("click",function(){Pt(".onwebchat-widget-settings-submenu").hide(),Pt('#onwebchat-emoticons-div').hide()}),Pt("#onwebchat-volume-li-id").click(function(){1==yt?(Pt("#wb-volume-text-id").html(st('menu_sound',R)),yt=!1,s("onwbchtSound",0,93),Pt("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),Pt("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")):(Pt("#wb-volume-text-id").html(st('menu_sound',R)),yt=!0,s("onwbchtSound",1,93),Pt("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-off"),Pt("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-2"))}),0==yt&&(Pt("#wb-volume-text-id").html(st('menu_sound',R)),Pt("#onwebchat-volume-icon").removeClass("onwbchtvolume-icon-2"),Pt("#onwebchat-volume-icon").addClass("onwbchtvolume-icon-off")),Pt(".onwebchat-widget-settings-submenu").on("click",function(e){e.stopPropagation()}),Pt("#operatorImage").error(function(){b&&console.log(" den vrika to operatorImage"),Pt(this).hide()}),1==I&&(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==Y||He){He?imageClass="onweb_chatimage_mobile":imageClass="onweb_chatimage";var M=lt+'//'+serverIP+'/chatWidgetImages/'+image_name;void 0!=Pt(".onwebchatbox")&&Pt(".onwebchatbox").after('
    '),0==de&&1==me&&Pt("#onweb_chatimage").css("display","none"),Pt("#onweb_chatimage").load(function(){Pt(".onwebchatbox").append('
    ');var e=parseInt(Pt("#onweb_chatimage").css("left"));e=e+parseInt(Pt("#onweb_chatimage").width())-4,Pt("#onweb_chatimage_x").css("left",e);var t=parseInt(Pt("#onweb_chatimage").css("bottom"))+parseInt(Pt("#onweb_chatimage").height())-4;Pt("#onweb_chatimage_x").css("bottom",t),Pt(".onwebchatbox").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),Pt(".onweb_chatimage_x").mouseleave(function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'}),Pt(".webchat_header").mouseenter(function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'}),Pt('#onweb_chatimage_x').click(function(){Pt("#onweb_chatimage").css("display","none"),Pt(".onweb_chatimage_x").css("display","none"),d('hideImage',1)})}),b&&console.log("imageurl:"+M)}Pt('#offlineform_btn').click(function(){if(b&&console.log(" mandatory_offline_email_field: "+xe+" show_offline_phone_field:"+Ie),1==Te&&1==Oe&&0==document.getElementById("onwc_consent_checkbox_offline").checked||1==ve&&1==xe&&!p(Pt("input#onwebchatoffemail").val())||1==Ie&&1==ke&&Pt("input#onwebchatofftel").val().length<4||1==_e&&1==ye&&Pt("input#onwebchatoffname").val().length<2||Pt("textarea#onwebchatemailtext").val().length<1)return 1==Te&&1==Oe&&0==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline").style.setProperty("color","#D04848"),Pt("textarea#onwebchatemailtext").val().length<1&&(Pt("textarea#onwebchatemailtext").focus(),document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")),1==Ie&&1==ke&&Pt("input#onwebchatofftel").val().length<4&&(Pt("input#onwebchatofftel").focus(),setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0),H()),1!=ve||1!=xe||p(Pt("input#onwebchatoffemail").val())||(Pt("input#onwebchatoffemail").focus(),setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0),H()),1==_e&&1==ye&&Pt("input#onwebchatoffname").val().length<2&&(Pt("input#onwebchatoffname").focus(),setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0),H()),!1;b&&console.log("email send "+Pt("input#onwebchatoffname").val());var e=Pt("input#onwc_consent_checkbox_offline").val();return void 0==e&&(e=-1),Pt.ajax({type:"POST",url:lt+"//"+serverIP+"/visitorSendEmail",data:'clientip='+A+'&clientid='+_t+'&sid='+ie+'&name='+Pt("input#onwebchatoffname").val()+'&email='+Pt("input#onwebchatoffemail").val()+'&text='+Pt("textarea#onwebchatemailtext").val()+'&phone='+Pt("input#onwebchatofftel").val()+'&conboxv='+e+'&conuse='+Te+'&conboxshow='+Oe}),Pt(".onwebchatform_div").css("display","none"),Pt(".onweboffline_msg").html(st('off_thank',R)+''),it('onWebChat','Offline message sent',''),!1}),Pt('#prechat_btn').click(function(){if(C=Pt("input#onprechatname").val(),E=Pt("input#onprechatemail").val(),P=Pt("input#onprechattel").val(),void 0==C&&(C=""),void 0==E&&(E=""),void 0==P&&(P=""),C=C.trim(),E=E.trim(),P=P.trim(),1==Te&&1==Oe&&0==document.getElementById("onwc_consent_checkbox_prechat").checked||1==Pe&&1==We&&!p(E)||1==Be&&1==Se&&P.length<4||1==Ce&&1==Ee&&C.length<2||Pt("textarea#onprechattext").val().trim().length<1)return 1==Te&&1==Oe&&0==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat").style.setProperty("color","#D04848"),Pt("textarea#onprechattext").val().trim().length<1&&(Pt("textarea#onprechattext").focus(),document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")),1==Be&&1==Se&&P.length<4&&(Pt("input#onprechattel").focus(),setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0),H()),1!=Pe||1!=We||p(Pt("input#onprechatemail").val())||(Pt("input#onprechatemail").focus(),setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0),H()),1==Ce&&1==Ee&&C.length<2&&(Pt("input#onprechatname").focus(),setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0),H()),!1;b&&console.log("PRECHAT: start chat with user name: "+Pt("input#onprechatname").val()+" and user email:"+Pt("input#onprechatemail").val()),b&&console.log("clienId:"+_t);var t=Pt("textarea#onprechattext").val();b&&console.log("pre_msg:"+t),mt.emit('setclientdetails',_t,ie,C,E,P,"");var o=Pt("input#onwc_consent_checkbox_prechat").val();void 0==o&&(o=-1),1==o?s("consentvalue",2,93):1==Te&&s("consentvalue",1,93),mt.emit('setconsentsettings',_t,o,Te,Oe),Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),Pt("#onwbchat_window").find("#prechat_form").css("display","none"),Pt("#onwbchat_window #div_chat_max_title_span").text(st('max_title',R));var n="";return 1==Z&&(n=" me-bubble"),printChat('

    '+st('max_me',R)+' '+a(t)+'

    '),Q="me",setTimeout(function(){mt.emit('sendchat',t)},300),e(),te="chat",O(),!1}),Pt('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")}),Pt('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")}),Pt('input#onwebchatoffemail').keyup(function(){p(Pt("input#onwebchatoffemail").val())&&(document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('textarea#onwebchatemailtext').keyup(function(){Pt("textarea#onwebchatemailtext").val().length>=1&&(document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('input#onwebchatofftel').keyup(function(){Pt("input#onwebchatofftel").val().length>=4&&(document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('input#onwebchatoffname').keyup(function(){Pt("input#onwebchatoffname").val().length>=2&&(document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('input#onprechatemail').keyup(function(){p(Pt("input#onprechatemail").val())&&(document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('textarea#onprechattext').keyup(function(){Pt("textarea#onprechattext").val().length>=1&&(document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('input#onprechattel').keyup(function(){Pt("input#onprechattel").val().length>=4&&(document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important"),H())}),Pt('input#onprechatname').keyup(function(){Pt("input#onprechatname").val().length>=2&&(document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important"),H())}),loadEmoticons=function(){""==Pt('#onwebchat-emoticons-div').html()&&Pt('#onwebchat-emoticons-div').append('')},MaximizeWindowInit=function(){return mt||(b&&console.log("!socket so ioconnect.."),fe()),0==pt&&0==wt&&(b&&console.log(" isConnected==false tryToReconnect==false , so try to connect now.."),h()),mt.emit('chatWindowMax',1),maximizeChatWindow(),Pt("#onwbchat_window #onwbtxtarea").focus(),!1},Pt("#onwbchat_window .webchat_header").on("click",function(){b&&console.log("webchat_header clicked!"),0==y?1!=r('maxChat')?(B(),MaximizeWindowInit(),it('onWebChat','Chat window opened','')):(B(),mt.emit('chatWindowMax',0),minimizeChatWindow()):y=0}),Pt("#onweb_chatimage_div #onweb_chatimage").on("click",function(){return MaximizeWindowInit(),B(),it('onWebChat','Chat window opened',''),!1}),text=r('chattext'),text&&(K=(text.match(/filesUpload/g)||[]).length),null!=text&&''!=text&&(Pt(".onwebchat_title2").css("display","none"),Pt("#triangle_down").css("display","none"),Pt('#onwbchat_window .chat_area').append(text),Pt('#onwbchat_window .chat_area').animate({scrollTop:999999999},200)),340>pe&&Pt(".operatorImageSmallClass").css("zoom","0.9"),He&&(Pt("#onwbchat_window").css("height","95%"),Pt("#onwbchat_window")[0].style.setProperty("bottom","2px","important"),Pt("#onwbchat_window")[0].style.setProperty("width","99%","important"),"left"==we?setTimeout(function(){Pt("#onwbchat_window")[0].style.setProperty("left","0px","important")},10):Pt("#onwbchat_window")[0].style.setProperty("right","0px","important"),Pt("#wb-send-image")[0].style.setProperty("zoom","1.2","important"),Pt("#wb-send-image")[0].style.setProperty("right","13px","important"),Pt("#wb-send-image")[0].style.setProperty("top","22px","important"),Pt("#wb-smile-image")[0].style.setProperty("display","none","important"),checkMobileChatHeight(),Pt(".onweb_minimize_btn_icon").css("zoom","1.2"),Pt("#onweb_chatimage_div")[0].style.setProperty("right","0"),Pt("#onweb_chatimage_div")[0].style.setProperty("left","initial"))}}function fe(){function t(e){var t;return null==e?null:(t=e.indexOf("://")>-1?e.split('/')[2]:e.split('/')[0],t=t.split(':')[0])}function p(){var t=Pt('#onwbtxtarea').val();if(Pt('#onwbtxtarea').val(''),""!=t.trim()){var o="";1==Z&&(o=" me-bubble"),"me"!=Q&&(o+=" me-first "),te=t,F(t,"visitor");var n="";1==isRTLlanguage(t.substr(0,1))&&(n=' style="direction: rtl;text-align:right;" '),printChat('

    '+st('max_me',R)+' '+a(t)+'

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

    ")&&1==de&&0!=oe&&(Pt('p:last-child','#onwbchat_window .chat_area').remove(),d('chattext',r('chattext').substring(0,r('chattext').lastIndexOf('

    '+st('max_gone',R)+'

    '))),n()),1==de&&0!=oe&&n(),1!=de&&0==oe&&r('chattext').length>0&&!r('chattext').endsWith(st('max_gone',R)+"

    "))){var c=2e3;1==_&&(c=5e3),setTimeout(function(){1==de||0!=oe||r('chattext').endsWith(st('max_gone',R)+"

    ")||printChat('

    '+st('max_gone',R)+'

    '),o()},c)}}}),mt.on('setIsBlocked',function(e){b&&console.log(" on setIsBlocked, set isBlocked: "+e),void 0==e&&(e=0,b&&console.log("isBlocked undefined , so set it to 0")),Ct=e,s("onwbchtblocked",e,183),1==Ct?hideChatWindow():0==Ct&&(1!=de&&1==me||0!=$&&showChatWindow())}),mt.on('visitordeleted',function(){b&&console.log(" on visitordeleted"),d('chattext',''),Pt('#onwbchat_window .chat_area p').remove(),setTimeout(function(){Pt("#onwbchat_window").fadeOut(700,'swing')},200),deleteAllCookies(),mt.disconnect()}),deleteAllCookies=function(){c("onwbchtclientid"),c("inChatC"),c("onwbchtSound"),c("onwbchtblocked"),c("onwbchtexpress.sid"),c("onwbchtlastvisit"),c("onwbchtsessionrandom"),c("onwbchttimesVisited")},mt.on('servercommand',function(e,t,o,n,a){null!=o&&""!=o||(o="operator"),b&&console.log(" on servercommand: "+e+" agentinfo:"+n+" agentImage:"+a),'close_dialog'==e?(b&&console.log('close_dialog get... clear chatdialogid cookie...'),b&&console.log('clear chatdialogid cookie...'),1==l('inChatC')&&""!=st('max_closed',R)&&printChat('

    '+st('max_closed',R).replace('{{operator}}',o)+'

    '),d("servingOpImage",""),V="",s('inChatC',0,.166),d('hasTriggeredNoReply',0),s('hasTriggeredNoReplyC',0,.166)):'serve_dialog'==e?(_="androidapp"==n?1:0,b&&console.log("served_by command.. isAgentFromAndroid:"+_+" agentImage:"+a),""!=st('max_served',R)&&(r('hasWrSeByTr')||printChat('

    '+st('max_served',R).replace('{{operator}}',o)+'

    ')),b&&console.log("agent name:"+o),void 0!=a&&''!=a&&(V=a,d("servingOpImage",a),Pt('#operatorImage').attr('src',lt+'//'+serverIP+'/filesUpload/operatorImages/'+a))):'no_agent'==e&&printChat('

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

    ')}),mt.on('updatechat',function(e,t,o,c){if(null!=c&&""!=c||(c="operator"),b&&console.log(" on updatechat: data: "+o+" agentname:"+c+" showChatApi:"+$),'command:typing...'==o)Pt('#agenttypingimage').remove(),Pt('#onwbchat_window .chat_area').append(""),Pt('#onwbchat_window .chat_area').animate({scrollTop:9999999},200);else if('command:notyping...'==o)try{null!=document.getElementById('agenttypingimage')&&(document.getElementById('agenttypingimage').style.visibility='hidden')}catch(l){}else if(0==$)b&&console.log("den emfanizetai epeidi showchatapi=0");else{i(),clearTimeout(x),n(),Pt('#agenttypingimage').remove();var d="",m='',h="";1==Z&&(d=" agent-bubble "),'agent'!=Q&&(d+=" agent-first ",1==q&&(m='')),1==q&&(h=" big-margin-left "),F(o,"operator"),s('inChatC',1,.166);var g="";1==isRTLlanguage(o.substr(0,1))&&(g=' style="direction: rtl;text-align:right;" '),printChat('

    '+m+''+st('max_agent',R).replace('{{operator}}',c)+' '+a(o)+'

    '),Q="agent",""!=e&&1!=r('maxChat')&&(b&&console.log(" MaximizeWindowInit , giati: fromSocket!=0 kai maxChat!=1! fromSocket:"+e+" maxChat:"+r("maxChat")),MaximizeWindowInit()),1!=de&&(b&&console.log("agentOnline!=1 !!!"),null!=r('chattext')&&''!=r('chattext')&&b&&console.log("sessionstorage.chattext!=null"),showChatWindow()),b&&console.log(" prechatform -> display:"+Pt("#onwbchat_window").find("#prechat_form").css("display")),'block'==Pt("#onwbchat_window").find("#prechat_form").css("display")&&showChatWindow()}}),printChat=function(e){Pt("#onwbchat_window .onwebchat_title2").css("display","none"),Pt("#onwbchat_window #triangle_down").css("display","none");var o=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,n=o.exec(e);if(null!=n){n=n[0];var a=t(n);b&&console.log("urlDomain (a): "+a+" url:"+n),e=a==t(window.location.href)?e.replace(o,"$1"):e.replace(o,"$1")}var o=/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,i=o.exec(e);if(null!=i){i=i[0];var a=t(i);e=a==t(window.location.href)?e.replace(o,"$1$2"):e.replace(o,"$1$2")}for(var s=!1;e.indexOf("{{fileuploaded:")>-1;){var c=(e.indexOf("{{fileuploaded:")+1,e.indexOf("{{fileuploaded:")+15),l=e.indexOf("}}",c),m=e.substring(c,l),h=m.replace(/^.*[\\\/]/,'');b&&console.log("filename:"+h);var p="";h.toLowerCase().endsWith(".png")||h.toLowerCase().endsWith(".jpg")||h.toLowerCase().endsWith(".jpeg")||h.toLowerCase().endsWith(".svg")||h.toLowerCase().endsWith(".gif")?(s=!0,K++,p=''):p=''+h+'',e=e.replace("{{fileuploaded:"+m+"}}",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')?Pt('#onwbchat_window .chat_area #agenttypingimage').before(e):Pt('#onwbchat_window .chat_area').append(e),Pt('#onwbchat_window .chat_area').animate({scrollTop:9999999},200),r('chattext')?d('chattext',r('chattext')+e):d('chattext',e),8!=g()&&(clearTimeout(dt),dt=setTimeout(function(){mt.io.disconnect(),minimizeChatWindow()},bt)),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),6>Ve&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'),340>pe&&Pt(".operatorImageSmallClass").css("zoom","0.9"),checkMobileChatHeight()},removeLoadingImage=function(e){Pt('#'+e).css('background','none')};var Y=0,G=0,ee=0,te="";Pt('.chat_message textarea').on('paste',function(e){b&&console.log(" on paste.."),0==pt&&0==wt&&(b&&console.log(" isConnected = false , so try to connect now.."),h())}),Pt('.chat_message textarea').on('keypress',function(e){13!=e.keyCode||e.shiftKey?(1!=U&&1!=r('hasStartedWriting')&&(M(),d('hasStartedWriting',1)),U=1,0==pt&&0==wt&&(b&&console.log(" isConnected = false , so try to connect now.."),h()),0==Y&&(mt.emit('sendchat','command:typing...'),Y=1),'free'!=ce&&0==ee&&(ee=setTimeout(function(){k(),ee=0},500)),clearTimeout(G),G=setTimeout(function(){Y=0,clearTimeout(ee),mt.emit('sendchat','command:notyping...')},1800)):(e.preventDefault(),p(),clearTimeout(ee),ee=0)}),Pt('#wb-send-image').on('click',function(e){p(),Pt("#onwbtxtarea").focus(),checkText2ShowSendButton()}),isRTLlanguage=function(e){var t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/;return result=t.test(e),result},B(),Pt('.chat_message textarea').on('keyup',function(e){38==e.keyCode&&''==Pt(this).val()&&Pt(this).val(te),""!=Pt('#onwbtxtarea').val().trim().substring(0,2)?isRTLlanguage(Pt('#onwbtxtarea').val().trim().substring(0,2))?S("rtl","right"):S("","left"):""==Pt('#onwbtxtarea').val()&&B(),1==Te&&1!=l('consentvalue')&&2!=l('consentvalue')&&toggleModal("onwcConsentModal",!0),checkText2ShowSendButton()}),checkText2ShowSendButton=function(){""==Pt('#onwbtxtarea').val()&&1==I?document.getElementById("wb-send-image").style.visibility="hidden":document.getElementById("wb-send-image").style.visibility="visible"},checkText2ShowSendButton(),Pt('#onwebchatemailtext').on('keyup',function(e){isRTLlanguage(Pt('#onwebchatemailtext').val().substring(0,2))?(Pt('#onwebchatemailtext')[0].style.setProperty("direction","rtl","important"),Pt('#onwebchatemailtext')[0].style.setProperty("text-align","right","important")):(Pt('#onwebchatemailtext')[0].style.setProperty("direction","","important"),Pt('#onwebchatemailtext')[0].style.setProperty("text-align","left","important"))}),Pt('#onprechattext').on('keyup',function(e){isRTLlanguage(Pt('#onprechattext').val().substring(0,2))?(Pt('#onprechattext')[0].style.setProperty("direction","rtl","important"),Pt('#onprechattext')[0].style.setProperty("text-align","right","important")):(Pt('#onprechattext')[0].style.setProperty("direction","","important"),Pt('#onprechattext')[0].style.setProperty("text-align","left","important"))});var ne,ae,se=0,le=parseInt(Pt("#onwbchat_window").css('width'));try{document.getElementById('webchat_header').addEventListener('mousedown',O,!1),document.getElementById('onweb_minimize_btn_icon_id').removeEventListener('mousedown',O),window.addEventListener('mouseup',T,!1)}catch(re){b&&console.log("error on 11112 : "+re)}j()}Pt=jQuery.noConflict(!0),b&&console.log("jquery loaded!"),'undefined'==typeof JSON&&(b&&console.log(" JSON: undefined!!! mallon ie8 me html 4 ?"),gt=!0);var Me=!1;10705==ie&&t()&&(Me=!0),b&&console.log(" getName at begining :"+C),'function'!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}),maximizeChatWindow=function(){if(b&&console.log(" maximizeChatWindow() .. showOnlyImage: "+G+" mobile:"+He),Pt("#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==G||He)&&(b&&console.log(" if --> showOnlyImage: "+G+" mobile:"+He),Pt("#onwbchat_window").fadeIn(100,'swing')),"none"==Pt("#onwbchat_window #div_chat_max_title").css("display")&&S(),Pt("#onweb_chatimage_div #onweb_chatimage").css("display","none"),Pt("#onwbchat_window .onweb_chatimage_x").css("display","none"),1==me||0!=de||null!=r('chattext')&&''!=r('chattext')?1==ne&&0===r('chattext').length?(te="prechat",Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),Pt("#onwbchat_window").find("#offline_form").css("display","none"),Pt("#onwbchat_window").find("#prechat_form").css("display","block"),Pt("#onwbchat_window #div_chat_max_title_span").text(st('max_title',R))):(te="chat",Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","block"),Pt("#onwbchat_window").find("#offline_form").css("display","none"),Pt("#onwbchat_window").find("#prechat_form").css("display","none"),Pt("#onwbchat_window #div_chat_max_title_span").text(st('max_title',R))):(te="offline",Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").css("display","none"),Pt("#onwbchat_window").find("#offline_form").css("display","block"),Pt("#onwbchat_window #div_chat_max_title_span").text(st('off_title',R)),Pt("#onwbchat_window").find("#prechat_form").css("display","none")),He){Pt("#onwbchat_window").css("height","95%");var e=Pt("#onwbchat_window").width();Pt("#onwbtxtarea")[0].style.setProperty("width",e-48-23*I+"px","important"),Pt("#chat_area_id").css("width",e-0+"px","important"),Pt("#webchat_header")[0].style.setProperty("width",e-40+"px","important")}else Pt("#onwbchat_window").css("height",he),Pt("#onwbchat_window").css("top",u+"px"),Pt("#onwbchat_window").css("left",w+"px"),1==I&&document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important");return 1==I?(document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("webchat_header").style.setProperty("height",ge+"px","important")):document.getElementById("webchat_header").style.setProperty("height",ge-0+4+"px","important"),Pt("#onwbchat_window").find(".onweb_minimize_btn").css("display","inline"),Pt("#onwbchat_window").find(".onweb_minimize_btn").css("position","absolute"),Pt("#onwbchat_window").find(".onweb_minimize_btn").css("right","0px"),Pt("#onwbchat_window .webchat_header").css("cursor","move"),Pt("#onwbchat_window #div_chat_max_title").css("display","block"),Pt("#onwbchat_window #div_chat_min_title").css("display","none"),Pt("#onwbchat_window #off-form-onwebchat-logo").css("display","block"),Pt("#onwbchat_window #onwebchat-logo-span").css("display","block"),Pt("#onwbchat_window .webchat_header").hover(function(){Pt("#onwbchat_window .webchat_header").css("opacity","1")},function(){Pt("#onwbchat_window .webchat_header").css("opacity","1")}),d('maxChat',1),loadEmoticons(),H(),O(),!1},minimizeChatWindow=function(){return(1==G||He)&&(b&&console.log("showOnlyImage:"+G+" mobile:"+He),Pt("#onwbchat_window").fadeOut(0)),"block"==Pt("#onwbchat_window #div_chat_max_title").css("display")&&T(),b&&console.log("minimizeChatWindow.."),d('maxChat',0),b&&console.log("sessionStorage.maxChat:"+r('maxChat')+" sessionStorage.hideImage:"+r('hideImage')),setTimeout(function(){Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide(),Pt(".onwebchatbox").css("height","66px"),Pt("#onwbchat_window .webchat_header").css("cursor","pointer"),0==r('hideImage')&&(Pt("#onweb_chatimage_div #onweb_chatimage").css("display","inline"),Pt("#onweb_chatimage_div #onweb_chatimage").css("cursor","pointer"),Pt("#onweb_chatimage").css("animation-iteration-count","0")),Pt("#onwbchat_window .onweb_chatimage_x").css("display","inline"),Pt("#onwbchat_window #div_chat_min_title").css("display","block"),Pt("#onwbchat_window #div_chat_max_title").css("display","none"),Pt("#onwbchat_window #off-form-onwebchat-logo").css("display","none"),Pt("#onwbchat_window #onwebchat-logo-span").css("display","none"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),Pt("#onwbchat_window").find(".onweb_maximize_btn").css("display","inline"),He||(Pt("#onwbchat_window").css("top","initial"),Pt("#onwbchat_window").css("left","initial"),Pt("#onwbchat_window").css(we,ue+"px"),1==I?(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",ge+"px","important"),document.getElementById("onwbchat_window").style.setProperty("height",ge+"px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important")))},100),!1},hideChatWindow=function(){Pt("#onwbchat_window").fadeOut(300,'swing'),Pt("#onweb_chatimage_div #onweb_chatimage").fadeOut(300,'swing'),b&&console.log("hideChatWindow..")},showChatWindow=function(){try{b&&console.log("showChatWindow.. hideOffline:"+me+" sessionStorage.hideImage:"+r('hideImage'))}catch(e){console.log(e)}0==G&&0==He&&(b&&console.log("showOnlyImage:::: "+G+" mobile:"+He),Pt("#onwbchat_window").css("display","block")),1==r('hideImage')&&(b&&console.log("hide image..."),Pt("#onweb_chatimage_div #onweb_chatimage").css("display","none")),0==r('hideImage')&&(b&&console.log("show image now.."),Pt("#onweb_chatimage_div #onweb_chatimage").css("display","inline")),1==r('maxChat')?(b&&console.log("sessionStorage.maxChat==1"),maximizeChatWindow()):(b&&console.log("sessionStorage.maxChat!=1"),Pt("#onwbchat_window").find(".chat_area,.chat_message,.chat_info").hide())};var ze,Fe,Xe,He;b&&console.log(" jquery version in demochat.js: "+Pt.fn.jquery),Pt.ajaxSetup({cache:!0}),gt||Me||(""!=D?Pt.when(Pt.getScript(lt+"//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js",function(e,t,o){b&&console.log(t),b&&console.log(" just now (with lang file) load file socket.js , data:"+e)}).done(function(e,t){b&&console.log("just load socket.io ... ")}).fail(function(){b&&console.log("fail loading socket.io .. ...: "+exception)}),Pt.get(D,function(e){if(b&&console.log("onwebchatLanguages.txt Load was performed. , data: "),""!=e)try{Pt.extend(!0,k,JSON.parse(e))}catch(t){console.log("exception parsing lang text file : "+t),console.log("lang text file data: "+e.substring(0,100)+" ...")}b&&console.log(k)}).fail(function(){console.log("Error: language file failed to load! filename: "+D),console.log("Ensure that language file url is correct and is not blocked as cross-origin request."),'l1'!=R&&'l2'!=R&&(R='l1'),b&&console.log(" ****final language::"+R)}),Pt('head').append("")).done(function(){ae()}):Pt.when(Pt.getScript(lt+"//cdnjs.cloudflare.com/ajax/libs/socket.io/1.4.5/socket.io.min.js",function(e,t,o){b&&console.log(t),b&&console.log(" just now ( no lang file) load file socket.js , data:"+e)}).done(function(e,t){b&&console.log("just load socket.io ... ")}).fail(function(){b&&console.log("fail loading socket.io .. ...: "+exception)}),Pt('head').append("")).done(function(){ae()})),enableMenuItem=function(e){Pt("#"+e).css("opacity",.84),Pt("#"+e).hover(function(e){Pt(this).css("opacity","mouseenter"===e.type?1:.84)}),document.getElementById(e)&&document.getElementById(e).style.setProperty("cursor","pointer","important")},disableMenuItem=function(e){Pt("#"+e).css("opacity",.5),Pt("#"+e).hover(function(e){Pt(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);Xe=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=''),He=!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)))&&(He=!0),b&&console.log(" nVer: "+o),b&&console.log(" nAgt: "+n),b&&console.log(" mobile: "+He);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 w in p){var u=p[w];if(u.r.test(n)){g=u.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:He,os:g,osVersion:f,cookies:h,flashVersion:_}}(this),Fe=jscd.os+' '+jscd.osVersion,ze=jscd.browser+' '+jscd.browserVersion;var Je=l('onwbchttimesVisited');''!=Je&&void 0!=Je&&'NaN'!=Je||(Je=0,s("onwbchttimesVisited",1,93)),Pt.support.cors=!0}),{init:function(e){ft=e},set:function(e,t){if("name"==e){C=t,b&&console.log("set name:"+t);try{mt.emit('setclientdetails',_t,ie,C,"","","")}catch(o){b&&console.log("error on set : "+o)}}else if("email"==e){E=t;try{mt.emit('setclientdetails',_t,ie,"",E,"","")}catch(o){b&&console.log("error on set : "+o)}}else if("phone"==e){P=t;try{mt.emit('setclientdetails',_t,ie,"","",P,"")}catch(o){b&&console.log("error on set : "+o)}}else if("notes"==e){W=t;try{mt.emit('setclientdetails',_t,ie,"","","",W)}catch(o){b&&console.log("error on set : "+o)}}else if("pageUrl"==e)try{mt.emit('setclientpageurl',_t,ie,"",t)}catch(o){b&&console.log("error on set : "+o)}else if("pageTitle"==e)try{mt.emit('setclientpageurl',_t,ie,t,"")}catch(o){b&&console.log("error on set : "+o)}else"max"==e?1==t?(maximizeChatWindow(),Pt("#onwbtxtarea").focus()):0==t&&minimizeChatWindow():"show"==e?1==t?($=1,showChatWindow()):0==t&&($=0,hideChatWindow()):"online"==e?1==t?(de=1,showChatWindow()):0==t&&(de=0,showChatWindow()):"hideImage"==e?1==t?b&&console.log(" set hideImage: )!!! : "+t):0==t&&b&&console.log(" set hideImage: )!!! : "+t):"language"==e?(R=t,b&&console.log(" setLanguage (2)!!! : "+R),'gr'!=R&&'el'!=R||(R='l1'),'en'==R&&(R='l2'),'l1'!=R&&'l2'!=R&&(R='l1'),b&&console.log(" final language : "+R)):"languageFile"==e?(D="",b&&console.log("prosoxi !! languageFile set (set function..) : "+D+" mallon me opera, opote den to ipostririzo pros to paron ")):"onClick"==e?B=t:"onMaximize"==e?S=t:"onMinimize"==e?T=t:"onTrigger"==e?O=t:"onStartWriting"==e?M=t:"onUpdateOperators"==e?z=t:"onNewMessage"==e?F=t:"onWebChatLoaded"==e?j=t:"onlineColor"==e?(N=t,1==de&&""!=N&&Pt('#webchat_header')[0].style.setProperty('background-color',N,'important')):"offlineColor"==e&&(L=t,1!=de&&""!=L&&(Pt('#webchat_header')[0].style.setProperty('background-color',L,'important'),Pt('#offlineform_btn')[0].style.setProperty('background-color',L,'important')))},get:function(e){return"name"==e?(b&&console.log(" get name:"+C),C):"email"==e?E:"phone"==e?P:"notes"==e?W:"status"==e?1==de?"online":"offline":""}}}();