var onWebChat_=onWebChat_||function(){window.console||(console={log:function(){}});let U=17;function h(){return(window.performance&&window.performance.now?window.performance:Date).now()}const V=h();let y,b;var u,g,$=!1,X=0,Y=0,G=!1,J=0;let w;var d={ min_offline: { l1: 'Fora de línia: envieu-nos mail', l2: 'We are offline - Send us an email' }, min_online: { l1: 'Estem en línia!', l2: 'We are online - chat with us!' }, max_title: { l1: 'Xateja amb nosaltres!', l2:'Chat with us!'}, max_msg: { l1: 'En què et podem ajudar?', l2:'We are online - chat with us!'}, max_served: { l1: 'Hola sóc en {{operator}}', l2:'You are served by {{operator}}'}, max_me: { l1: 'Me:', l2: 'Me:' }, max_agent: { l1: '{{operator}}:', l2: '{{operator}}:' }, max_placeholder: { l1: 'Escriviu el missatge aquí ...', l2: 'Type your message here ...' }, max_closed: { l1: '{{operator}} va tancar el xat', l2: '{{operator}} closed the chat' }, max_typing: {l1: '{{operator}} is typing..', l2: '{{operator}} is typing..'}, off_title:{l1: 'Envia\'ns un correu!', l2:'Email us!'}, off_msg:{l1: 'Disculpeu, no estem en línia en aquests moments. Envia un missatge i et donarem resposta aviat.', l2:'Sorry, we are not online at the moment. Leave a message and we will get back to you.'}, off_name: { l1:'nom', l2: 'name'}, off_email: { l1: 'correu electrònic', l2: 'email'}, off_phone: { l1: 'phone', l2: 'phone'}, off_text: { l1: 'missatge', 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:'Enviar', l2: 'Send'}, off_thank: { l1: 'Gràcies per contactar amb nosaltres. Us respondrem el més aviat possible.', l2: 'Thank you for contacting us. We will reply to you as soon as possible.'}, prechat_msg: { l1: 'Please give us some info to serve you better.', l2: 'Please give us some info to serve you better.'}, prechat_btn: { l1: 'Start chat!', l2: 'Start chat!'} , max_gone: { l1: 'L\'operador s\'ha desconnectat', l2: 'Operator has gone offline'} , consent_text: { l1: 'Accepto que les meves dades personals, facilitades mitjançant xat, es processin per utilitzar el servei de xat en viu. Política Privacitat', l2: 'I agree that my personal data, provided via chat, to be processed for using live chat service.Política Privacitat'} , menu_send_file: { l1: 'Send file', l2: 'Send file'} , menu_email: { l1: 'Email transcript', l2: 'Email transcript'} , menu_print: { l1: 'Print', l2: 'Print'} , menu_save: { l1: 'Save', l2: 'Save'} , menu_sound: { l1: 'Sound', l2: 'Sound'} , menu_end_chat: { l1: 'End chat', l2: 'End chat'} , end_chat_msg: { l1: 'Are you sure you want to close this chat?', l2: 'Are you sure you want to close this chat?'} , cancel: { l1: 'Cancel', l2: 'Cancel'} , rating_msg: { l1: 'Thank you. We would appreciate it if you could rate this chat', l2: 'Thank you. We would appreciate it if you could rate this chat'} , rating_btn: { l1: 'Submit', l2: 'Submit'} , rating_no_msg: { l1: 'No, thanks', l2: 'No, thanks'} , departments: { l1: 'Choose a department', l2: 'Choose a department'} },f="",_="",v="",Q="",K=function(){},l=function(){},c=function(){},s=function(){},ee=function(){},te=function(){},ne=function(){},oe=function(){},ae="",I="",ie=0,de=!1,le="3.145.33.252",E="l2",r="",x="",ce=(""!=O("servingOpImage")&&null!=O("servingOpImage")&&(x=O("servingOpImage")),"1");1==ce&&""==x&&(x="0_support_man.png");const se='',re='';var B=-1,me=0,m=-1,pe=0,ue="1",ge="0",he=0,ye=0,be="0";""!=O("isRated")&&null!=O("isRated")&&(ye=O("isRated"));let we=2e3;const fe=400;let _e=!0,ve=0;1==(ve=""!=O("chatWithBot")&&null!=O("chatWithBot")?O("chatWithBot"):ve)&&(we=fe);var Ie,Ee=0,xe="",Be=(1==(be=1==be&&0==ue?0:be)&&q('hideImage',0),!0),ke="",Ce=(0!=O('hideImage')&&1!=O('hideImage')&&q('hideImage',0),Nt('onwbchtsessionrandom')),p=('null'!=Ce&&null!=Ce&&''!=Ce&&'undefined'!=Ce||Ft("onwbchtsessionrandom",Ce=Math.floor(1e6*Math.random()+1)),"0"),k=21129,Te=".onwebchatbox span{font-size:unset;margin:initial;padding:initial}.onwebchatbox div{padding:initial;font-size:initial;margin:initial}.onwebchatbox #offline_form{display:none;position:initial;line-height:inherit}.onwebchatbox #prechat_form{display:none;position:initial}.onwebchatbox a{margin-bottom:0 !important;border-width:0 !important;border-style:none !important;display:inline;color:#393939;letter-spacing:initial;text-decoration:underline;vertical-align:baseline !important;cursor:pointer !important}.onwebchatbox a:hover{text-shadow:0 0 1px #b1b1b1}.onwebchatbox .onweb_uploadfile{margin-right:10px;margin-bottom:-3px}.onwebchatbox .onweb_uploadimage{background:url('https://www.onwebchat.com/chatimages/loading.gif');background-repeat:no-repeat;background-position:center}#onweb_chatimage_div{position:fixed;bottom:0;right:20px;width:#chat_widthpx;z-index:2147483600}#operatorImageSmall{width:32px !important;height:32px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;top:0 !important;box-shadow:0 0 7px 2px #bebebe !important;cursor:initial !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden}@media(max-width:480px){#operatorImageSmall{zoom:1.14 !important}}.operatorImageSmallClass{zoom:1}#operatorImage{position:absolute;z-index:100 !important;border-radius:30px;border-style:solid;border-color:#ababab;top:8px !important;left:20px !important;width:50px !important;height:50px !important;border-width:0 !important;user-drag:none !important;-webkit-user-drag:none !important;overflow:hidden;background:#fffffff7 !important}.onweb_chatimage{position:absolute !important;bottom:36px !important;left:197px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:39px !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;right:20px !important;cursor:pointer !important;border:none !important;opacity:1 !important;width:70px !important;max-height:initial !important;max-width:initial !important;min-width:initial !important;min-height:initial !important}img#onweb_chatimage:hover{opacity:1;-webkit-filter:brightness(112%);-webkit-transition:all .7s ease;-moz-transition:all .7s ease;-o-transition:all .7s ease;-ms-transition:all .7s ease;transition:all .7s ease}.onwebchatbox .onweb_chatimage:-moz-loading{visibility:hidden}.onwebchatbox .onweb_chatimage_x{position:absolute;visibility:hidden;z-index:2147483600;display:inline;cursor:pointer;border:0;opacity:.5}.onwebchatbox .wblogoimg{margin-right:10px;margin-top:7px}.onwebchatbox .wblogoimgdiv{text-align:right;width:100%}.onwebchatbox img{vertical-align:baseline;border:0;cursor:pointer;width:initial !important;margin:0;padding:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwcimg{vertical-align:baseline;border:0;cursor:pointer;margin:0;clear:initial;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox{all:initial;*{all:unset}color:#555;box-shadow:0 0 5px 0 #777 !important;line-height:16px !important;display:none;text-align:left;position:fixed !important;bottom:0 !important;right: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;backgroundtransition:initial !important}.onwebchatbox svg,.onwebchatbox svg *{all:revert-layer}#onwbchat_window{background-image:url(https://www.onwebchat.com/chatimages/backgrounds/back4.png);border-radius:11px !important;border-top-left-radius:13px !important;border-top-right-radius:13px !important;box-shadow:rgba(0,0,0,0.43) 0 0 1.2em !important}.onwebchatbox .webchat_header{display:block !important;white-space:nowrap !important;background-color:#66a656 !important;height:#onwebchatbox_header_height_+_4px !important;min-height:36px !important;line-height:#onwebchatbox_header1_heightpx !important;cursor:pointer;box-sizing:content-box !important;margin:0 !important;padding:0 !important;border:0 !important;outline:0 !important;float:left !important;padding-left:12px !important;padding-right:28px !important;vertical-align:baseline !important;font-size:13px !important;font-weight:bold !important;width:#chatheader_widthpx !important;position:relative;border-top-left-radius:11px !important;border-top-right-radius:11px !important;background-image:url(https://www.onwebchat.com/chatimages/backgrounds/trans-back4.png)}.onwebchatbox .webchat_header:hover{opacity:1}.onwebchatbox .webchat_header a{float:right;text-decoration:none;color:#fff;display:block;margin-right:0;padding-left:0;padding-right:0;line-height:13px}}.onwebchatbox .webchat_header a:hover{color:#000}.onwebchatbox .chat_area{float:left;clear:left;width:#chat_widthpx;height:#chat_area_heightpx;margin-top:0;margin-bottom:0;padding:26px 0 0 0;overflow:auto;color:#a4a4a4;box-sizing:content-box;direction:ltr !important;box-shadow:inset 0 11px 17px -17px rgba(0,0,0,0.4) !important}.onwebchatbox #chat_area_id{box-sizing:initial !important}#chat_area_id::-webkit-scrollbar{width:13px !important}#chat_area_id::-webkit-scrollbar-track{-webkit-border-radius:30px;border-radius:30px !important}#chat_area_id::-webkit-scrollbar-thumb{background-clip:content-box !important;background:#cdcdcd;-webkit-border-radius:10px;border-radius:12px;border:3px solid transparent !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background:#a5a5a5 !important}#chat_area_id::-webkit-scrollbar-thumb:hover{background-color:#bababa !important}#chat_area_id::-webkit-scrollbar-thumb:active{background-color:#a5a5a5 !important}#onwbtxtarea::-webkit-scrollbar{width:0 !important}.onwebchatbox .chat_area .me a{color:#visitor_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_area .agent a{color:#agent_css_text_color !important;text-decoration:underline !important;letter-spacing:normal !important;line-height:normal !important}.onwebchatbox .chat_info{clear:left;height:10px;background-color:#fcfcfc;border-top:1px solid #ddd;box-sizing:border-box;border-top:1px solid ##e2e2e2 !important;width:90% !important;float:none !important;margin:auto !important}.onwebchatbox .chat_message{position:initial;width:100%;height:55px;float:left;clear:left;padding-top:0;background-color:#fcfcfc;box-sizing:content-box}#onwc_chat_message_div{position:absolute;bottom:0;height:68px !important;border-bottom-left-radius:11px !important;border-bottom-right-radius:11px !important}.onwebchatbox #onwbtxtarea{float:none !important;padding:4px 25px 0 4px !important;font-weight:400 !important;text-align:initial !important;font-style:initial !important;box-sizing:initial !important;white-space:initial !important;position:absolute !important;left:9px !important;bottom:25px !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;line-height:inherit !important;font-family:inherit !important;padding:0 2px 0 2px}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{color:#919191 !important;font-size:14px !important;font-weight:400 !important;font-family:inherit !important;line-height:inherit !important}.onwebchatbox .chat_message .onwebtextarea{width:#textarea_widthpx !important;line-height:normal !important;min-height:initial !important;min-width:initial !important;max-height:initial !important;max-width:initial !important;font-family:Arial,Helvetica,sans-serif !important;text-transform:initial !important;letter-spacing:initial !important;color:#545454 !important;display:block;margin-left:auto !important;margin-right:auto !important;margin-bottom:initial !important;padding:2px 2px 2px 2px !important;background-image:none !important;resize:none;outline:none !important;border-radius:5px !important;box-sizing:content-box;transition:box-shadow .40s,border-color .40s ease-in-out;border:none !important;box-shadow:none !important;font-size:14px !important;height:27px !important;background-color:transparent !important}@media(max-width:480px){.onwebchatbox .chat_message .onwebtextarea{font-size:100% !important}.onwebchatbox input::-webkit-input-placeholder,.onwebchatbox textarea::-webkit-input-placeholder{font-size:15px !important}.onwebchatbox input::-moz-placeholder,.onwebchatbox textarea::-moz-placeholder{font-size:15px !important}.onwebchatbox input:-ms-input-placeholder,.onwebchatbox textarea:-ms-input-placeholder{font-size:15px !important}}.onwebchatbox .chat_message textarea:hover{border:none !important}.onwebchatbox .chat_message textarea:focus{border:none !important}.onwebchatbox #onweb-offline-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important;padding-top:1px !important}.onwebchatbox #onweb-online-icon{margin:initial !important;border:none !important;box-sizing:content-box !important;vertical-align:baseline !important}.onwebchatbox #onweb_chaticon{display:inline !important;position:absolute !important;right:0 !important;float:right !important;line-height:24px !important;margin-right:16px !important;margin-top:11px !important}.onwebchatbox .con:hover{opacity:.75}.onwebchatbox .onweb_minimize_btn_icon{display:initial !important;border:solid;border-width:0 3px 3px 0;position:absolute;top:#onweb_min_btn_marginpx !important;padding:4px;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:pointer;right:6px !important;zoom:01.0}.onwebchatbox .onweb_minimize_btn_icon:hover{margin-top:1px}.onwebchatbox .onweb_menu_minimize_btn{border:solid;border-width:0 2px 2px 0;padding:3px;border-color:#929292;position:relative;top:-35px;float:right;transform:rotate(45deg);-webkit-transform:rotate(45deg);margin-right:15px;color:#ddd;cursor:default;right:6px !important;zoom:01.0}.onwebchatbox div.maximize_onwebchatbox{display:inline}.onwebchatbox .chat_area p{letter-spacing:.1px !important;padding-left:12px;padding-right:12px;font-size:14px !important;font-family:Arial,Helvetica,sans-serif !important;line-height:20px;float:left;clear:left;word-wrap:break-word;max-width:max-content;margin:0;color:#agent_css_text_color;box-sizing:content-box}@media(max-width:480px){.onwebchatbox .chat_area p{font-size:115% !important;line-height:1.18 !important}}.onwebchatbox .chat_area .error{color:#c30000;font-style:italic}.onwebchatbox .chat_area .me{color:#visitor_css_text_color !important;margin-bottom:10px !important;font-family:arial,verdana,sans-serif !important;text-align:right}.onwebchatbox .spanbold{font-weight:700;margin-left:initial;float:initial;font-size:12px !important}@media(max-width:480px){.onwebchatbox .spanbold{font-size:14px !important}}.onwebchatbox .me .spanbold,.onwebchatbox .agent .spanbold{display:none}.onwebchatbox .chat_area .agent{color:#agent_css_text_color !important;margin-bottom:10px !important;min-height:10px !important;font-family:arial,verdana,sans-serif !important}.onwebchatbox .chat_area .system{font-style:italic;font-size:11px}.onwebchatbox #onwebchat-logo-span{position:absolute !important;color:#707070 !important;font-weight:500 !important;font-family:Arial,sans-serif !important;letter-spacing:0 !important;font-size:11.7px !important;font-style:normal !important;bottom:5px !important;direction:ltr !important;user-select:none !important;left:50% !important;transform:translateX(-50%) !important}.onwebchatbox #off-form-onwebchat-logo{display:none;float:right !important;position:absolute !important;margin:0 !important;right:9px !important;border:none !important;box-sizing:content-box !important;opacity:.91;bottom:7px !important}.onwebchatbox #off-form-onwebchat-logo:hover{opacity:1}.onwebchatbox .widget-logo{float:right !important;position:absolute !important;margin:0 !important;bottom:0 !important;right:4px !important;border:none !important;padding:4px 6px !important;box-sizing:content-box;height:initial !important;width:initial !important;margin:initial !important;opacity:.80}.onwebchatbox .widget-logo:hover{opacity:1}.onwebchatbox #div_chat_min_title{display:block;position:initial;margin:auto 10px auto auto;width:97%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_min_title_span{color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;letter-spacing:.3px !important;font-size:14px !important;line-height:42px !important;vertical-align:baseline !important}.onwebchatbox #div_chat_max_title{display:none;position:initial;margin:auto 10px auto auto;width:96%;text-align:center;overflow:hidden;margin-right:10px;line-height:inherit !important}.onwebchatbox #div_chat_max_title_span{padding-left:10px !important;color:#f1f1f1 !important;font-family:arial,verdana,sans-serif !important;line-height:#onwebchatbox_header1_heightpx !important;font-weight:500 !important;font-size:15px !important;vertical-align:baseline !important;letter-spacing:.3px !important}@media(max-width:480px){.onwebchatbox #div_chat_max_title_span{font-size:18px !important}}.onwebchatbox .server_messages{display:block;text-align:center;width:90%;max-width:90% !important;margin:auto;color:#727787 !important;padding:0 0 10px 15px;box-sizing:content-box}.onwebchatbox .server_messages span{color:#727787 !important}.onwebchatbox .onweboffline_msg{position:relative !important;display:block !important;font-size:14px;font-weight:400;font-family:arial,verdana,sans-serif !important;color:#393939 !important;padding:2% 10% 0 !important;margin-top:22% !important;margin-bottom:3px !important;top:initial !important;min-height:26px !important;line-height:20px !important}.onwebchatbox .ns{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.onwebchatbox .onwebchat_title2{display:block;text-align:center !important;width:54% !important;margin:auto !important;color:#737379 !important;font-family:arial,verdana,sans-serif !important;font-weight:300 !important;border-radius:13px !important;box-sizing:initial;line-height:18px !important;position:relative;margin-top:13% !important;box-shadow:1px 1px 3px 0 #c9c9c9 !important;padding:14px 19px 14px 19px !important;max-width:160px !important;background:#f2f2f2 !important;border:none !important;font-size:15px !important}@media(max-width:480px){.onwebchatbox .onwebchat_title2{zoom:1.3 !important}}.onwebchatbox .onwebchat_title2::after{content:'';width:0;height:0;position:absolute;bottom:-16px;left:18%;border-left:0 solid transparent;border-right:22px solid transparent;border-top:17px solid #f2f2f2}.onwebchatbox .onwebchat_title2::before{content:'';width:0;height:0;position:absolute;bottom:-15px;left:23%;border-left:5px solid transparent;border-right:12px solid transparent;border-top:0}.onwebchatbox .onwebchatform_div{display:block;position:initial;line-height:inherit;width:80%;margin:19px auto auto;color:#545454 !important}.onwebchatbox #onwebchatoffname,#onwebchatoffemail,#onwebchatofftel,#onwebchatemailtext,#onprechatname,#onprechatemail,#onprechattel,#onprechattext,#departments{float:initial !important;display:block;background-color:#fefefe !important;background-image:none !important;padding:7px 11px !important;font-size:14px !important;font-weight:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:initial !important;text-transform:initial !important;text-indent:initial !important;text-align:initial !important;letter-spacing:.2px !important;color:#393939 !important;width:100% !important;max-width:initial !important;max-height:initial !important;min-width:initial !important;min-height:initial !important;resize:none !important;outline:none !important;border-radius:5px !important;line-height:inherit !important;transition:box-shadow .40s,border-color .40s ease-in-out !important;box-sizing:border-box !important;box-shadow:inset 0 1px 2px rgba(0,0,0,0.1) !important;height:36px !important;margin:12px auto 11px !important}.onwebchatbox .onwebchatform_div #onprechattext{height:68px !important;line-height:normal !important;text-align:initial !important;white-space:initial !important}.onwebchatbox .onwebchatform_div #onwebchatemailtext{height:82px !important;line-height:normal !important;text-align:initial !important;border:1px solid #ccc !important;white-space:initial !important}#prechat_btn{margin:30px auto 20px !important;color:#fff !important;background-image:inherit;background-color:#66a656 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}.onwebchatbox #onwebchatoffname:focus,#onwebchatoffemail:focus,#onwebchatemailtext:focus,#onwebchatofftel:focus,#onprechatname:focus,#onprechatemail:focus,#onprechattext:focus,#onprechattel:focus{background:inherit;box-shadow:0 0 1px !important}#offlineform_btn{background-color:#66a656 !important;width:100% !important;font-weight:600 !important;height:40px !important;max-width:initial !important;letter-spacing:.1px !important}#offlineform_ok_btn{background-color:#66a656 !important;min-width:100% !important;height:37px !important}.onwebchatbox .onweb_mail_btn{display:block !important;margin:30px auto 20px !important;text-align:center !important;text-transform:initial !important;text-indent:initial !important;font-family:Arial,Helvetica,sans-serif !important;font-style:normal !important;font-weight:400 !important;background-color:#66a656 !important;cursor:pointer;padding:3px 14px !important;border-style:none !important;position:relative !important;border-radius:5px !important;float:inherit !important;min-width:80px !important;width:initial;max-width:200px !important;outline:none !important;min-height:initial !important;height:28px !important;line-height:16px !important;box-sizing:border-box !important;text-shadow:inherit !important;box-shadow:none !important;letter-spacing:inherit !important;font-size:14px !important}.onwebchatbox .onweb_mail_btn:hover{background-color:#66a656;opacity:.82;border-style:none;box-shadow:none !important}.onwebchatbox .me-bubble{background-color:#efeded;width:69% !important;margin-right:5% !important;padding:8px;position:relative !important;float:right !important;text-align:left;clear:both !important;border-radius:11px;border:0;margin-left:8px !important}.onwebchatbox .me-first{border-top-right-radius:2px !important}.onwebchatbox .me-bubble b{font-weight:600}.onwebchatbox .agent-bubble b{font-weight:600}.onwebchatbox .agent-bubble{background-color:#d1d1d1;width:60% !important;margin-left:5% !important;padding:8px;position:relative;text-align:left;clear:both !important;border-radius:11px;border:0;margin-right:8px !important}.onwebchatbox .big-margin-left{margin-left:13% !important}.onwebchatbox .agent-first{border-top-left-radius:2px !important}.onwebchatbox .onwebchat-widget-settings-icon{opacity:.83 !important;position:absolute !important;bottom:1px !important;left:12px !important;height:29px !important;fill:#787878 !important;cursor:pointer !important;border-radius:34px !important;transition:transform .25s ease,background .25s ease !important;-webkit-transition:-webkit-transform .25s ease,background .25s ease !important;-webkit-tap-highlight-color:transparent}.onwebchatbox .onwebchat-widget-settings-icon:hover{opacity:1 !important;background:#e3dbdb8a !important;border-radius:34px !important}.onwebchatbox #onwebchat-emoticons-div{position:absolute;bottom:66px !important;right:4px !important;background-color:#fff !important;box-shadow:0 3px 12px 1px #b5b5b5 !important;border:1px solid #d2d2d2 !important;display:none;margin:0 !important;padding:4px 6px !important;list-style-type:none !important;box-sizing:content-box !important;line-height:initial !important;width:223px !important;width:-moz-max-content !important;width:max-content !important;border-radius:8px !important;font-size:22px !important;line-height:1.5 !important;user-select:none !important;z-index:999999 !important}#onwebchat-emoticons-div:after{display:block !important;content:'' !important;border:9px solid transparent !important;border-top-color:#fff !important;position:absolute !important;right:9px !important;bottom:-17px !important;pointer-events:none !important}.onwebchatbox #onwebchat-emoticons-div span{font-size:22px !important;box-sizing:border-box !important;margin-bottom:initial !important;padding:2px 2px !important;display:inline-block !important;text-align:center !important;width:1.53em !important;height:1.56em !important;line-height:26px !important;vertical-align:middle !important;transition:transform .12s ease !important;-webkit-transition:-webkit-transform .12s ease !important}.onwebchatbox #onwebchat-emoticons-div span img{height:1.1em !important}.onwebchatbox #onwebchat-emoticons-div span:hover{cursor:pointer !important;-webkit-transform:scale(1.21) !important;transform:scale(1.21) !important}#onwbchat_window .chat_area p>i{font-size:140% !important;line-height:1.2 !important;font-style:normal !important}.onwebchatbox .onwebchat-widget-settings-submenu{position:absolute;bottom:30px !important;left:10px !important;background-color:#fefefe !important;border:1px solid #d2d2d2 !important;opacity:1;display:none;margin:0 !important;padding:0 0 !important;list-style-type:none !important;width:initial !important;box-shadow:rgba(0,0,0,0.23) 0 2px 12px;border-radius:8px !important;overflow:hidden !important;z-index:999999 !important}.onwebchatbox .onwebchat-widget-settings-submenu li{text-align:left !important;float:initial !important;list-style-type:none !important;list-style:none !important;cursor:pointer !important;margin:0 !important;line-height:22px !important;direction:ltr !important;background:none !important;display:block !important;font-size:10px !important;padding:3px 50px 6px 10px !important}.onwebchatbox .onwebchat-widget-settings-submenu li:hover{background-color:#f4f4f4 !important;color:black !important}.onwebchatbox .onwebchat-widget-settings-submenu li:before{content:initial !important}.onwebchatbox .onwebchat-widget-settings-submenu-text{margin-right:10px;color:#484848;position:relative;bottom:4px !important;font-weight:500 !important;vertical-align:middle !important;font-family:arial,verdana,sans-serif !important;margin-left:11px !important;font-size:14px !important}.onwebchatbox .onwebchat-menu-icons{margin:0 0 0 5px !important;zoom:1.1 !important;vertical-align:baseline !important;fill:#787878 !important;position:relative !important;top:5px !important}.onwebchatbox .onwebchat-emoticons{position:relative;top:4px;cursor:initial !important}.onwebchatbox img:-moz-loading{visibility:hidden}#operator-image{position:absolute;width:46px;left:15px;border-radius:100%;border:2px solid #bbb7b7;z-index:9999999;top:-5px}#iconsdiv{width:54px !important;height:80px !important;position:absolute !important;right:0 !important;bottom:-5px !important}#wb-send-image{position:relative !important;float:right !important;z-index:initial !important;right:35px !important;top:25px !important;width:26px !important;height:26px !important;fill:#66a656 !important;cursor:pointer !important}#wb-smile-image{position:relative !important;float:right !important;right:-14px !important;opacity:.8 !important;z-index:initial !important;fill:#707070 !important;cursor:pointer !important;top:26px !important}#wb-smile-image:hover{opacity:1 !important}#wb-send-image:hover{opacity:1 !important;transform:scale(1.06) !important;-webkit-transform:scale(1.06) !important;transition:transform .22s ease !important;-webkit-transition:-webkit-transform .22s ease !important;padding:0 !important}#uploadfileid{opacity:.84}#uploadfileid:hover{opacity:1}#onwebchat-volume-li-id{opacity:.84}#onwebchat-volume-li-id:hover{opacity:1}#onwebchat-print-li{cursor:default !important;opacity:.5}#onwebchat-savetofile-li{cursor:default !important;opacity:.5}#onwebchat-email-li{cursor:default !important;opacity:.5}#onwebchat-endchat-li{cursor:default !important;opacity:.5}.onwebchatbox .onwcmodaltext{padding:8px 13px !important;line-height:20px !important;color:#383838 !important}.onwebchatbox .onwcmodal-content .onwcmodalclose{font-size:22px !important;color:#7f7e7e;font-weight:800;cursor:pointer;position:absolute;right:11px;top:4px;width:24px}.onwcmodalclose:hover{color:#ac1616 !important;background:#c9c9c9;border-radius:46px;transition-duration:350ms}.onwcmodal{position:absolute !important;left:0 !important;top:0 !important;width:100% !important;height:100% !important;background-color:rgb(70 70 70 / 55%) !important;opacity:0;visibility:hidden;transition:visibility 0s linear .25s,opacity .25s 0s,transform .25s !important;z-index:999999 !important;border-top-right-radius:5px !important;border-top-left-radius:5px !important;user-select:none !important}.onwebchatbox .onwcmodal-content{position:relative !important;display:grid !important;margin:auto;margin-top:50%;background-color:white !important;width:84% !important;max-width:240px !important;min-width:172px !important;line-height:24px !important;min-height:30px !important;font-size:15px !important;padding:32px 18px !important;border-radius:7px !important;user-select:none;text-align:center}.onwebchatbox .onwcmodal-content div{font-size:14px !important}.show-onwcmodal{opacity:1;visibility:visible;transition:visibility 0s linear 0s,opacity .25s 0s,transform .25s}.onwc-show{transition:opacity 400ms !important;opacity:1 !important}.onwc-hide{opacity:0 !important;transition:opacity 400ms !important}.onwebchatbox .onwcbutton{width:29% !important;cursor:pointer !important;line-height:initial !important;min-width:fit-content !important;min-width:-moz-fit-content !important;min-height:initial !important;margin-left:auto !important;margin-right:auto !important;color:#383838 !important;background:#ddd !important;font-family:Arial,Helvetica,sans-serif !important;border:1px solid rgba(0,0,0,0.0) !important;padding:5px 12px !important;font-size:14px !important;border-radius:5px !important;display:inline-block !important;height:fit-content !important}.onwcbutton:focus{outline-color:lightgray !important}.onwcbutton:hover{background:#c5c5c5 !important}#onwcemailtrans{text-align:left !important;border-radius:5px !important;height:20px !important;box-sizing:content-box !important;border:1px solid #909090 !important;height:20px !important;font-size:14px !important;padding:2% 5% !important;width:89% !important;outline:none !important;max-width:189px !important;margin:10px auto 19px auto !important}.onwebchatbox .orange{background:#f5d28d !important}.onwebchatbox .orange:hover:not(:disabled){background:#eac57b !important}.onwebchatbox .disabled{opacity:.5;cursor:default !important}#onwbchtlogo-in-widget-icon{width:12px !important;height:12px !important;bottom:-2px;position:relative;fill:#747474}.onwbchtlogo-in-widget-bw2,.onwbchtsend-icon,.onwbchtonline-icon,.onwbchtoffline-icon,.onwbchtupload-icon-2,.onwbchtvolume-icon-2,.onwbchtvolume-icon-off,.onwbchtsave-icon,.onwbchtemail-icon,.onwbchtclose2,.onwbchtendchat-icon{display:inline-block;background:url('https://www.onwebchat.com/chatimages/live-chat-images-3.png?v=2') no-repeat;overflow:hidden;text-indent:-9999px;text-align:left}.onwbchtlogo-in-widget-bw2{background-position:-1px -0;width:71px;height:10px}.onwbchtonline-icon{background-position:-1px -37px;width:23px;height:18px}.onwbchtoffline-icon{background-position:-52px -11px;width:17px;height:15px}.onwbchtupload-icon-2{background-position:-25px -39px;width:17px;height:14px}.onwbchtvolume-icon-2{background-position:-43px -43px;width:17px;height:13px}.onwbchtvolume-icon-off{background-position:-25px -54px;width:17px;height:13px}.onwbchtsave-icon{background-position:-1px -56px;width:16px;height:14px}.onwbchtemail-icon{background-position:-43px -57px;width:16px;height:15px}.onwbchtclose2{background-position:-18px -68px;width:14px;height:14px}.onwbchtendchat-icon{background-position:-16px -68px;width:17px;height:14px}#onwc_consent_l_offline span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_prechat span{font-size:14px !important;color:#545454 !important}#onwc_consent_l_inchat_modal{margin-bottom:24px;display:block !important}#onwc_consent_l_inchat_modal span{font-size:14px !important;color:#545454 !important;line-height:20px !important;margin-bottom:18px}#onwc_consent_checkbox_inchat_modal{margin:0 5px 2px 0 !important}.onwebchatbox .rating{unicode-bidi:bidi-override;direction:rtl;text-align:center;margin-top:20px}.onwebchatbox .rating span{font-size:23px !important;display:inline-block !important;position:relative !important;width:1.1em !important;color:#aeaeae !important}.onwebchatbox .rating span:hover,.onwebchatbox .rating span:hover ~ span{cursor:pointer !important;color:#ffb900 !important}#onwbchat_window .onwcdepartmenu{display:none !important;position:absolute !important;background:white !important;list-style:none !important;border:1px solid #ddd !important;border-radius:7px !important;margin-top:-11px !important;padding-inline-start:0 !important;z-index:999999 !important;box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;-webkit-box-shadow:0 2px 10px rgb(0 0 0 / 20%) !important;user-select:none !important}#onwbchat_window .onwcdepartmenu>li{cursor:default !important;font-size:13px !important;padding:7px 15px 5px 15px !important}#onwbchat_window .onwcdepartmenu>li span{font-size:14px !important;color:#545454 !important}#onwbchat_window .onwcdepartmenu>li:hover{background:#fee188 !important}#onwbchat_window #upload_img{display:none;position:absolute;text-align:center;top:50%;width:100%;z-index:10000}#onwbchat_window .onwctime{text-align:left;display:block;padding-top:11px;opacity:0;padding-right:11px}#onwbchat_window .onwctime span{padding:initial !important;margin:initial !important;color:grey !important;font-size:13px !important;text-align:left !important}#onwbchat_window .onwctime.me{text-align:right !important}#onwbchat_window .onwcinner{display:inline-flex;width:100%}.onwcouter{position:relative;margin-bottom:2px;margin-top:3px !important}.onwcminner{position:relative;width:100%;text-align:right}.onwcouter:last-of-type .onwctime{opacity:1 !important}.onwcinner:hover .onwctime{opacity:1 !important;transition:opacity .5s ease-out;transition-delay:.09s}#onwbchat_window .onwcouter{margin-top:9px !important}#onwbchat_window .onwcouter_agent+.onwcouter_agent{margin-top:0 !important}#onwbchat_window .onwcouter_me+.onwcouter_me{margin-top:0 !important}#agenttypingimage{display:grid !important;position:relative !important;float:left !important;width:48px !important;height:42px !important;clear:both !important;padding:0 !important;margin-top:0 !important;margin-bottom:0 !important}.onwc-typing-indicator{width:48px !important;height:32px !important;position:relative !important;margin-left:10px !important}.onwc-bubble{width:8px;height:8px;background:#555;position:absolute;bottom:0;border-radius:50%;animation:onwc-bubble 1.1s ease-in-out infinite}.onwc-bubble:nth-child(1){left:2px;animation-delay:0s}.onwc-bubble:nth-child(2){left:14px;animation-delay:.2s}.onwc-bubble:nth-child(3){left:26px;animation-delay:.4s}@keyframes onwc-bubble{0%{bottom:0;opacity:.6}50%{bottom:12px;opacity:1}100%{bottom:0;opacity:.6}}#scrollToBottomBtn{position:absolute !important;bottom:77px !important;left:50% !important;transform:translateX(-50%) !important;width:32px !important;height:32px !important;text-align:center !important;border-radius:50% !important;background-color:#fff !important;color:#0a0a0a !important;border:none !important;cursor:pointer !important;border:1px solid #ccc !important;font-size:46px !important;z-index:999998 !important;outline:none !important;-webkit-tap-highlight-color:transparent !important}#scrollToBottomBtn:hover{border:1px solid #777 !important}#onwbchat_window [type='checkbox']+span:not(.lever):before,#onwbchat_window [type='checkbox']:not(.filled-in)+span:not(.lever):after{box-sizing:border-box !important;margin-left:-3px !important}#outer_agent_bubble{box-shadow:none !important;box-sizing:border-box !important;position:fixed !important;display:none !important;bottom:139px !important;background:transparent !important;z-index:1999999999 !important;cursor:pointer !important;height:auto !important;min-width:60px !important;width:fit-content !important;max-width:#chat_widthpx !important}@media(max-width:480px){#outer_agent_bubble{right:16px !important}}#outer_agent_bubble_div{display:grid;border:1px solid #f5f5f4 !important;border-radius:5px !important;border-top-left-radius:0 !important;background-color:#fdfdfd !important;box-shadow:0 2px 3px rgba(0,0,0,.08) !important;font-family:arial,verdana,sans-serif !important;letter-spacing:.1px !important;font-size:14px !important;user-select:none !important;white-space:normal !important;word-break:break-word !important;padding:7px 11px !important;max-height:80px !important;overflow:auto}#outer_agent_bubble_x{position:absolute !important;top:-24px !important;right:3px !important;background:white !important;height:17px !important;width:17px !important;border-radius:25px !important}#bubble_x_svg{margin-left:-3px !important;margin-top:-3px !important;background:transparent !important;fill:gray !important}#bubble_x_svg:hover{fill:#5a5a5a !important}#operatorImageSmallPreview{box-shadow:none !important;top:4px !important;width:32px !important;height:32px !important;position:absolute !important;border-radius:20px !important;left:-37px !important;cursor:pointer !important;-webkit-user-drag:none !important;overflow:hidden !important;background:white !important} @keyframes onwbmoveleft { 0% { transform: translateY(+170px); } 84% { transform: translateY(-3px); } } #onwbchat_window,#onweb_chatimage{ animation-name: onwbmoveleft ; animation-timing-function: ease-out; animation-iteration-count: 1; animation-duration: 0.8s ; }",Pe="free",Me="0",je="1",C="undefined",Se=0,We="490",Le="63",Oe="320",qe="right",Re="20",Ae="1",He="1",Ne="1",Fe="1",De="0",ze="0",Ze="1",Ue="0",Ve="1",$e="1",Xe="0",Ye="0",Ge="0",Je=0,Qe="0",T="1",P="1",Ke="1",et="0",tt="1",nt="0",ot="1",at="1",it="1";let dt="";''!=dt&&dt||(dt="chat-bot.png");const lt="M337.615-298.693 480-441.078l142.385 142.385 38.922-38.922L518.922-480l142.385-142.385-38.922-38.922L480-518.922 337.615-661.307l-38.922 38.922L441.078-480 298.693-337.615l38.922 38.922Zm142.477 190.615q-77.152 0-145.066-29.325-67.914-29.324-118.152-79.595-50.238-50.27-79.517-118.055-29.279-67.785-29.279-144.855 0-77.152 29.325-145.066 29.324-67.914 79.595-118.152 50.27-50.238 118.055-79.517 67.785-29.279 144.855-29.279 77.152 0 145.066 29.325 67.914 29.324 118.152 79.595 50.238 50.27 79.517 118.055 29.279 67.785 29.279 144.855 0 77.152-29.325 145.066-29.324 67.914-79.595 118.152-50.27 50.238-118.055 79.517-67.785 29.279-144.855 29.279Zm-.105-55.96q131.898 0 223.936-92.026 92.039-92.026 92.039-223.923 0-131.898-92.026-223.936-92.026-92.039-223.923-92.039-131.898 0-223.936 92.026-92.039 92.026-92.039 223.923 0 131.898 92.026 223.936 92.026 92.039 223.923 92.039ZM480-480Z";var M=Nt('onwbchtblocked'),ct=(''!=M&&null!=M&&'null'!=M&&'NaN'!=M||Ft('onwbchtblocked',M=0),""==(ct=L('onwbchtemailsSent'))?0:parseInt(ct)),st=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=(Te=Te.replace("#onweb_min_btn_margin",.36*Le-1.36)).replace(new RegExp('__modern','g'),"")).replace(/#textarea_width/g,Oe-71)).replace(/#chat_width/g,Oe)).replace(/#chatheader_width/g,Oe-40)).replace("#chat_area_height",We-98-Le)).replace("#onwebchatbox_header_height_+_4",+Le+4)).replace(/#onwebchatbox_header1_height/g,Le)).replace(/#visitor_css_text_color/g,"#555555")).replace(/#agent_css_text_color/g,"#444444"),null!=C&&'undefined'!=C||(C=0),document.title),rt=window.location.href;'remove'in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),window.addEventListener("orientationchange",function(e){1==O('maxChat')&&(setTimeout(function(){ln()},20),setTimeout(function(){ln()},200))});let mt=we/20*30;mt++,mt++;var pt=navigator.appVersion,e=navigator.userAgent,t=navigator.appName,n=''+parseFloat(navigator.appVersion),ut=pt+" -- "+e+" -- "+t+" -- "+n+" -- "+(Et=parseInt(navigator.appVersion,10))+" -- "+navigator.platform+" -- "+navigator.oscpu;-1!=(o=e.indexOf('Opera'))?(t='Opera',n=e.substring(o+6),-1!=(o=e.indexOf('Version'))&&(n=e.substring(o+8))):-1!=(o=e.indexOf('MSIE'))?(t='Internet Explorer',n=e.substring(o+5)):-1!=(o=e.indexOf('Edge'))||-1!=(o=e.indexOf('Edg/'))?(t='Edge',n=''):-1!=(o=e.indexOf('Chrome'))?(t='Chrome',n=e.substring(o+7),-1!=(o=e.indexOf('OPR/'))&&(t='Opera',n=e.substring(o+4))):-1!=(o=e.indexOf('Safari'))?(t='Safari',n=e.substring(o+7),-1!=(o=e.indexOf('Version'))&&(n=e.substring(o+8))):-1!=(o=e.indexOf('Firefox'))?(t='Firefox',n=e.substring(o+8)):-1!=e.indexOf('Trident/')?(t='Internet Explorer',n=e.substring(e.indexOf('rv:')+3)):(ht=e.lastIndexOf(' ')+1)<(o=e.lastIndexOf('/'))&&(t=e.substring(ht,o),n=e.substring(o+1),t.toLowerCase()==t.toUpperCase())&&(t=navigator.appName),0<(n=-1!=(ht=(n=-1!=(ht=(n=-1!=(ht=n.indexOf(';'))?n.substring(0,ht):n).indexOf(' '))?n.substring(0,ht):n).indexOf(')'))?n.substring(0,ht):n).indexOf('.')&&0<(o=n.indexOf('.',n.indexOf('.')+1))&&(n=n.substring(0,o)),Et=parseInt(''+n,10),isNaN(Et)&&(n=''+parseFloat(navigator.appVersion),parseInt(navigator.appVersion,10)),'Edge'==t&&(n=''),z=!1,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|ipad|iris|kindle|Android|Silk|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(z=!0);var gt,ht=!!navigator.cookieEnabled,yt=(void 0!==navigator.cookieEnabled||ht||(document.cookie='testcookie',ht=-1!=document.cookie.indexOf('testcookie')),''),bt=[{s:'Windows 3.11',r:/Win16/},{s:'Windows 95',r:/(Windows 95|Win95|Windows_95)/},{s:'Windows ME',r:/(Win 9x 4.90|Windows ME)/},{s:'Windows 98',r:/(Windows 98|Win98)/},{s:'Windows CE',r:/Windows CE/},{s:'Windows 2000',r:/(Windows NT 5.0|Windows 2000)/},{s:'Windows XP',r:/(Windows NT 5.1|Windows XP)/},{s:'Windows Server 2003',r:/Windows NT 5.2/},{s:'Windows Vista',r:/Windows NT 6.0/},{s:'Windows 7',r:/(Windows 7|Windows NT 6.1)/},{s:'Windows 8.1',r:/(Windows 8.1|Windows NT 6.3)/},{s:'Windows 8',r:/(Windows 8|Windows NT 6.2)/},{s:'Windows 10',r:/(Windows 10|Windows NT 10.0)/},{s:'Windows NT 4.0',r:/(Windows NT 4.0|WinNT4.0)/},{s:'Windows',r:/(WinNT|Windows NT)/},{s:'Windows ME',r:/Windows ME/},{s:'Windows Phone',r:/Windows Phone/},{s:'Android',r:/Android/},{s:'Open BSD',r:/OpenBSD/},{s:'Sun OS',r:/SunOS/},{s:'Linux',r:/(Linux|X11)/},{s:'iOS',r:/(iPhone|iPad|iPod)/},{s:'Mac OS X',r:/Mac OS X/},{s:'Mac OS',r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/},{s:'QNX',r:/QNX/},{s:'UNIX',r:/UNIX/},{s:'BeOS',r:/BeOS/},{s:'OS/2',r:/OS\/2/},{s:'BlackBerry OS',r:/BlackBerry/},{s:'Search Bot',r:/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver)/}];for(gt in bt){var wt=bt[gt];if(wt.r.test(e)){yt=wt.s;break}}''==yt&&(yt=navigator.platform);var ft="-";switch(/Windows/.test(yt)&&(ft=/Windows (.*)/.exec(yt)[1],yt='Windows'),yt){case'Mac OS X':ft=/Mac OS X (10[\.\_\d]+)/.exec(e)[1];break;case'Android':ft=/Android ([\.\_\d]+)/.exec(e)[1];break;case'iOS':ft=(ft=/OS (\d+)_(\d+)_?(\d+)?/.exec(pt))[1]+'.'+ft[2]+'.'+(0|ft[3])}var o='no check';'undefined'!=typeof swfobject&&(o=0<(Et=swfobject.getFlashPlayerVersion()).major?Et.major+'.'+Et.minor+' r'+Et.release:"-"),this.jscd={browser:t,browserVersion:n,isMobile:z,os:yt,osVersion:ft,cookies:ht,flashVersion:o},nn=jscd.os+' '+jscd.osVersion,tn=jscd.browser+' '+jscd.browserVersion;try{var _t=function(e,t){var n,o,a;1==C&&(O('chattext session :'+O('chattext')),"undefined"==typeof sessionStorage||'1'==O('hasTriggered')||1==L('hasTriggeredC')||1==L('inChatC')||""!=O('chattext')||1==O('maxChat')&&1==p||(s(),0!=B&&(qt('onWebChat','Trigger activated',''),q('hasTriggered',1),W('hasTriggeredC',1,.166),q('mustSendTriggerText',!0),G=!0,q('triggerText',e),Rt(),""!=S('max_served',E)&&""!=t&&"null"!=t&&null!=t&&(wn(''+S('max_served',E).replace('{{operator}}',t)+'
'),q('hasWrSeByTr',!(xe=""))),n=" agent-bubble ",a=o="",'agent'!=xe&&(n+=" agent-first ",1==ce)&&(o='
'),1==ce&&(a=" big-margin-left "),wn(''+o+''+S('max_agent',E).replace('{{operator}}',t)+' '+Ot(e).replace(/({{newline}})/gm,"
")+'
',"",!0),xe="agent",O('maxChat'),H)&&R.emit('setclientstatus','triggered')))};function vt(){clearTimeout(J),1!=k&&(27254==k?J=setTimeout(It,3e3,"Бихте ли ни дали телефон за връзка, за да уточним детайли?"):3322==k&&(J=setTimeout(It,1e4,"Right now all our operators are busy. Please wait a few minutes or give us your email, so we can contact you.")))}function It(e){var t,n,o;"undefined"!=typeof sessionStorage&&'1'!=O('hasTriggeredNoReply')&&1!=L('hasTriggeredNoReplyC')&&1!=L('inChatC')&&0!=B&&(qt('onWebChat','Trigger (no reply) activated',''),q('hasTriggeredNoReply',1),W('hasTriggeredNoReplyC',1,.166),q('mustSendTriggerNoReplyText',!0),b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=624,O('chattext')&&(obj.chattext=O('chattext').substring(0,20)),R.emit('sendchat',"",e,0,0,624,pe,D,mt,obj),Rt(),t=" agent-bubble ",o=n="",'agent'!=xe&&(t+=" agent-first ",1==ce)&&(n='
'),1==ce&&(o=" big-margin-left "),wn(''+n+''+S('max_agent',E).replace('{{operator}}',"")+' '+Ot(e).replace(/({{newline}})/gm,"
")+'
'))}}catch(e){console.log(e)}var Et='[]'.replace(/(\r\n|\n|\r)/gm,"{{newline}}"),a=JSON.parse(Et),xt=!1;void 0!==O('secOnSite')&&"NaN"!=O('secOnSite')||q('secOnSite',0);let Bt;function kt(e){_e=!0,document.getElementById('wb-send-image').style.pointerEvents='none',document.getElementById("wb-send-image").style.opacity="0.42",'aibot'==e&&(Bt=setTimeout(function(){Ct()},1e4))}function Ct(){clearTimeout(Bt),_e=!1,document.getElementById('wb-send-image').style.pointerEvents='auto',document.getElementById("wb-send-image").style.opacity="0.90"}function Tt(){O('chattext')&&O('chattext').endsWith(S('max_gone',E)+"
")&&(Be=!1,document.getElementById('onwbtxtarea').style.pointerEvents='none',document.getElementById("onwbtxtarea").disabled=!0,document.getElementById('wb-send-image').style.pointerEvents='none',document.getElementById('wb-smile-image').style.pointerEvents='none',document.getElementById("onwbtxtarea").style.opacity="0.42",document.getElementById("wb-send-image").style.opacity="0.42",document.getElementById("wb-smile-image").style.opacity="0.42",document.getElementById("onwbtxtarea").setAttribute("placeholder",""),disableMenuItem("uploadfileid"))}function Pt(){Be=!0;try{document.getElementById('onwbtxtarea').style.pointerEvents='auto',document.getElementById("onwbtxtarea").disabled=!1,document.getElementById('wb-send-image').style.pointerEvents='auto',document.getElementById('wb-smile-image').style.pointerEvents='auto'}catch(e){}document.getElementById("onwbtxtarea").style.opacity="1",document.getElementById("wb-send-image").style.opacity="0.90",document.getElementById("wb-smile-image").style.opacity="0.78",document.getElementById("onwbtxtarea").setAttribute("placeholder",S('max_placeholder',E)),enableMenuItem("uploadfileid")}var Mt=a.length;if(1!=z||0!=je)for(var j=0;j/g,">")}xt&&setInterval(function(){void 0!==O('secOnSite')&&'NaN'!=O('secOnSite')||q('secOnSite',0),q('secOnSite',parseInt(O('secOnSite'))+1)},1e3);var qt=function(e,t,n){try{'function'==typeof gtag?gtag('event',t,{event_category:e,event_label:n}):ga('send','event',{eventCategory:e,eventAction:t,eventLabel:n})}catch(e){}};function Rt(){if(Xt){""==document.getElementById("onwebchataudio").innerHTML.trim()&&(document.getElementById("onwebchataudio").innerHTML='');var e=document.getElementById("onwebchataudio");try{e.play()}catch(e){}}}var S=function(e,t){return d[e]&&d[e][t]?d[e][t]:'email_text'==e?"Send chat transcript to your email:":'email_sent'==e?"Transcript sent!":'send'==e?"Send":null==d[e]?"":d[e].l1};try{for(i=0;in.length)&&(t=n.length),t-=e.length,-1!==(n=n.indexOf(e,t))&&n===t});var zt,R,A=document.location.protocol,Zt=('file:'==A&&(A="https:"),document.location.port),Zt=null==document.location.protocol||''==Zt||'80'==Zt||'443'==Zt?'':':443',Ut=(serverIP="www.onwebchat.com","1"),Vt=!1,H=!1,N=!1,F=!0,$t=816e5,D=('free'==Pe&&($t=444e5),""),Xt=!0,Yt=(''==(Xt=Nt('onwbchtSound'))||null==Xt?(Xt=!0,Ft("onwbchtSound",1)):0==Xt&&(Xt=!1),''!=(D=null==(D=Nt('onwbchtclientid'))?'':D)&&null!=D&&1==ue&&1==m&&(ue=0),"predefined/bubble1.png"),Gt="predefined/bubble1.png",Jt="predefined/chat-cloud-circle.png",Qt="predefined/chat-cloud-circle.png";function Kt(){var e=navigator.userAgent.toLowerCase(),t=e.indexOf('msie '),n=e.indexOf('trident/'),o=e.indexOf('edge/');return 0()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(e)}'undefined'==typeof JSON&&(Vt=!0);var tn,nn,ut,z,on,an=!1;function dn(){N=!0,R.connect(),8!=Kt()&&(zt=setTimeout(function(){R.io.disconnect(),rn()},$t))}function ln(){var e;document.getElementById("onwbchat_window").style.setProperty("animation-iteration-count","0"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","rgba(0, 0, 0, 0.43) 0px 0em 1.2em","important"),1!=be&&!z||document.getElementById("onwbchat_window").style.setProperty("display","block"),"none"==document.getElementById("div_chat_max_title").style.display&&l(),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById("outer_agent_bubble")&&document.getElementById("outer_agent_bubble").style.setProperty("display","none","important"),document.getElementById("onweb_chatimage_x")&&document.getElementById("onweb_chatimage_x").style.setProperty("display","none"),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),1==Se||0!=C||null!=O('chattext')&&''!=O('chattext')?(1==p&&0===O('chattext').length?(ke="prechat",document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById('offline_form').style.display='none',document.getElementById('prechat_form').style.display='block'):(ke="chat",document.getElementById('chat_area_id').style.display='block',document.getElementById('onwc_chat_message_div').style.display='block',document.getElementById('chat_info_id').style.display='block',document.getElementById('offline_form').style.display='none',document.getElementById('prechat_form').style.display='none'),document.getElementById("div_chat_max_title_span").textContent=S('max_title',E)):(ke="offline",document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById('offline_form').style.display='block',document.getElementById("div_chat_max_title_span").textContent=S('off_title',E),document.getElementById('prechat_form').style.display='none'),z?(document.getElementById("onwbchat_window").style.setProperty("height","100%"),document.getElementById("onwbchat_window").style.setProperty("max-height","100%"),document.getElementById("onwbchat_window").style.setProperty("border-radius","0px","important"),document.getElementById("webchat_header").style.setProperty("border-radius","0px","important"),e=document.getElementById("onwbchat_window").clientWidth,document.getElementById("onwbtxtarea").style.setProperty("width",e-48-23+"px","important"),document.getElementById("chat_area_id").style.setProperty("width",+e+"px","important"),document.getElementById("webchat_header").style.setProperty("width",e-40+"px","important")):(document.getElementById("onwbchat_window").style.setProperty("height",We+"px","important"),document.getElementById("onwbchat_window").style.setProperty("top",g+"px"),document.getElementById("onwbchat_window").style.setProperty("left",u+"px"),document.getElementById("onwbchat_window").style.setProperty("bottom","20px","important")),document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("webchat_header").style.setProperty("height",Le+"px","important"),document.getElementById("webchat_header").style.setProperty("cursor","move"),document.getElementById("div_chat_max_title").style.setProperty("display","block"),document.getElementById("div_chat_min_title").style.setProperty("display","none"),document.getElementById('off-form-onwebchat-logo')&&(document.getElementById('off-form-onwebchat-logo').style.display='block'),document.getElementById('onwebchat-logo-span')&&(document.getElementById('onwebchat-logo-span').style.display='block'),q('maxChat',1),loadEmoticons(),Z(),cn(),sn()}function cn(){'chat'==ke&&1==ce?document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","50px","important"):document.getElementById("div_chat_max_title_span").style.setProperty("padding-left","10px","important")}function sn(){var e=(e=document.getElementById('chat_area_id')).scrollHeight-e.clientHeight<=e.scrollTop+100;document.getElementById('scrollToBottomBtn').style.display=e?'none':'block'}function rn(){1!=be&&!z||document.getElementById("onwbchat_window").style.setProperty("display","none"),"block"==document.getElementById('div_chat_max_title').style.display&&c(),q('maxChat',0),setTimeout(function(){document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none',document.getElementById('scrollToBottomBtn').style.display='none',document.getElementById("prechat_form")&&(document.getElementById('prechat_form').style.display='none'),document.getElementById("onwbchat_window").style.setProperty("height","63px"),document.getElementById('webchat_header').style.cursor='pointer',0==O('hideImage')&&document.getElementById("onweb_chatimage")&&(document.getElementById("onweb_chatimage").style.setProperty("display","inline"),document.getElementById("onweb_chatimage").style.setProperty("cursor","pointer"),document.getElementById("onweb_chatimage").style.setProperty("animation-iteration-count","0")),0==B&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById('onweb_chatimage_x')&&(document.getElementById('onweb_chatimage_x').style.display='inline',onweb_chatimage_loaded()),document.getElementById("div_chat_min_title").style.setProperty("display","block"),document.getElementById("div_chat_max_title").style.setProperty("display","none"),document.getElementById('off-form-onwebchat-logo')&&(document.getElementById('off-form-onwebchat-logo').style.display='none'),document.getElementById('onwebchat-logo-span')&&(document.getElementById('onwebchat-logo-span').style.display='none'),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),z||(document.getElementById("onwbchat_window").style.setProperty("top","initial"),document.getElementById("onwbchat_window").style.setProperty("left","initial"),document.getElementById("onwbchat_window").style.setProperty(qe,Re+"px"),document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("bottom","0px","important"))},100)}function mn(){pn(document.getElementById("onwbchat_window")),pn(document.getElementById("onweb_chatimage"))}function pn(e){e&&(e.classList.remove('onwc-show'),e.classList.add('onwc-hide'),fadeTimout=setTimeout(function(){e.style.setProperty("display","none")},400))}function un(){document.getElementById("onwbchat_window").classList.remove('onwc-hide'),document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").classList.remove('onwc-hide'),0==be&&0==z&&document.getElementById("onwbchat_window").style.setProperty("display","block"),1==O('hideImage')&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),0==O('hideImage')&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","inline"),z&&q('maxChat',0),1==O('maxChat')?ln():(document.getElementById('chat_area_id').style.display='none',document.getElementById('onwc_chat_message_div').style.display='none',document.getElementById('chat_info_id').style.display='none'),setTimeout(function(){let e=null!=(t=document.getElementById('onweb_chatimage'))?(t=t.getBoundingClientRect().top,window.innerHeight-t):0;var t;0==e?e=60:e+=16;let n=document.getElementById("outer_agent_bubble");document.getElementById("outer_agent_bubble_span")&&(n.style.setProperty("bottom",e+"px","important"),O('outeragentbubbletext'))&&''!=O('outeragentbubbletext')&&""==document.getElementById('outer_agent_bubble_span').textContent&&(document.getElementById("outer_agent_bubble_span")&&document.getElementById('outer_agent_bubble_span').insertAdjacentHTML("beforeend",O('outeragentbubbletext')),1!=O('maxChat'))&&n.style.setProperty("display","grid","important"),n.addEventListener('click',function(){ln(),document.getElementById("onwbtxtarea").focus()}),document.getElementById("outer_agent_bubble_x").addEventListener('click',function(e){e.stopPropagation(),n.style.setProperty("display","none","important"),Ht('outeragentbubbletext')})},500)}if(function(){try{return window.self!==window.top}catch(e){}}()&&(an=!0),'function'!=typeof String.prototype.trim&&(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'')}),1!=z||0!=je)return hasRequirejs_delay=100,void 0!==window.define&&(hasRequirejs_delay=5e3),setTimeout(function(){var n,o;window.__requirejsToggleBackup={define:window.define,require:window.require,requirejs:window.requirejs},window.define=void 0,window.require=void 0,window.requirejs=void 0,Vt||an||(n=A+'//cdnjs.cloudflare.com/ajax/libs/socket.io/4.5.4/socket.io.min.js',o=""!=r?function(){var o,a;o=r,(a=new XMLHttpRequest).open('GET',o),a.withCredentials=!0,a.setRequestHeader('X-Requested-With','XMLHttpRequest'),a.setRequestHeader('Content-Type','application/json'),a.onreadystatechange=function(){if(4===a.readyState){if(200===a.status||0===a.status&&''!==a.responseText){var e={url:o,status:200,body:a.responseText||''};try{var t,n=JSON.parse(e.body);for(t in n)n.hasOwnProperty(t)&&(d[t]=n[t])}catch(t){console.log("exception parsing lang text file : "+t),console.log("lang text file data: "+e.body.substring(0,100)+" ...")}}else a.status,a.responseText,console.log("Error: language file failed to load! filename: "+r),console.log("Ensure that language file url is correct and is not blocked as cross-origin request."),'l1'!=E&&'l2'!=E&&(E='l1');gn()}},a.send()}:gn,void(jdelay=0)!==window.define&&(console.log("define.."),jdelay=1200),setTimeout(function(){var t=document.createElement('script'),e=(t.src=n,t.async=!0,t.onreadystatechange=t.onload=function(){var e=t.readyState;o.done||e&&!/loaded|complete/.test(e)||(o.done=!0,o())},document.getElementsByTagName('head')[0]);e.insertBefore(t,e.firstChild)},jdelay))},hasRequirejs_delay),enableMenuItem=function(e){document.getElementById(e)&&(document.getElementById(e).style.opacity=.84,document.getElementById(e).onmouseenter=function(e){this.style.opacity=1},document.getElementById(e).onmouseleave=function(e){this.style.opacity=.84},document.getElementById(e).style.setProperty("cursor","pointer","important"))},disableMenuItem=function(e){document.getElementById(e)&&(document.getElementById(e).style.opacity=.5,document.getElementById(e).onmouseenter=function(e){this.style.opacity=.5},document.getElementById(e).onmouseleave=function(e){this.style.opacity=.5},document.getElementById(e).style.setProperty("cursor","initial","important"))},''!=(on=Nt('onwbchttimesVisited'))&&null!=on&&'NaN'!=on||(on=0,Ft("onwbchttimesVisited",1)),{init:function(e){},set:function(e,t){if("name"==e&&0==M){f=t;try{R.emit('setclientdetails',D,k,f,"","","")}catch(e){}}else if("email"==e&&0==M){_=t;try{R.emit('setclientdetails',D,k,"",_,"","")}catch(e){}}else if("phone"==e&&0==M){v=t;try{R.emit('setclientdetails',D,k,"","",v,"")}catch(e){}}else if("notes"==e&&0==M){Q=t;try{R.emit('setclientdetails',D,k,"","","",Q)}catch(e){}}else if("pageUrl"==e&&0==M)try{R.emit('setclientpageurl',D,k,"",t)}catch(e){}else if("pageTitle"==e&&0==M)try{R.emit('setclientpageurl',D,k,t,"")}catch(e){}else"max"==e&&0==M?1==t?(ln(),document.getElementById("onwbtxtarea").focus()):0==t&&rn():"show"==e&&0==M?1==t?(B=1,un()):0==t&&(B=0,mn()):"online"==e&&0==M||"hideImage"==e&&0==M||("language"==e&&0==M?'l1'!=(E='en'==(E='gr'!=(E=t)&&'el'!=E?E:'l1')?'l2':E)&&'l2'!=E&&(E='l1'):"languageFile"==e&&0==M?r="":"onClick"==e&&0==M?K=t:"onMaximize"==e&&0==M?l=t:"onMinimize"==e&&0==M?c=t:"onTrigger"==e&&0==M?s=t:"onStartWriting"==e&&0==M?ee=t:"onUpdateOperators"==e&&0==M?te=t:"onNewMessage"==e&&0==M?ne=t:"onWebChatLoaded"==e&&0==M?oe=t:"onlineColor"==e&&0==M?(ae=t,1==C&&""!=ae&&document.getElementById("webchat_header").style.setProperty('background-color',ae,'important')):"offlineColor"==e&&0==M&&(I=t,1!=C)&&""!=I&&(document.getElementById("webchat_header").style.setProperty('background-color',I,'important'),document.getElementById("offlineform_btn").style.setProperty('background-color',I,'important')))},get:function(e){return"name"==e?f:"email"==e?_:"phone"==e?v:"notes"==e?Q:"status"==e?1==C?"online":"offline":""}};function Z(){var o='block'==document.getElementById("prechat_form").style.getPropertyValue('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn');if(1==O('maxChat')&&null!=o){"rgb(255, 255, 255)"==getComputedStyle(o).backgroundColor&&o.style.setProperty("background-color","#ababab","important");let n=i();if(n<40&&''==document.getElementById("onwebchatform_div_id").style.margin||n<0){o=(40-n)/9;let e=30-3*o;e<0&&(e=0),document.getElementById("onwebchatoffname")&&document.getElementById("onwebchatoffname").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatoffemail")&&document.getElementById("onwebchatoffemail").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatofftel")&&document.getElementById("onwebchatofftel").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onwebchatemailtext")&&document.getElementById("onwebchatemailtext").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechatname")&&document.getElementById("onprechatname").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechatemail")&&document.getElementById("onprechatemail").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechattel")&&document.getElementById("onprechattel").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("onprechattext")&&document.getElementById("onprechattext").style.setProperty("margin",16-o+"px auto 5px","important"),document.getElementById("prechat_btn").style.setProperty("margin",e+"px auto 20px","important"),document.getElementById("offlineform_btn").style.setProperty("margin",e+"px auto 20px","important");var a=document.getElementsByClassName("onwebchatform_div");let t=25-2*o;t<4&&(t=4),a[0].style.setProperty("margin",t+"px auto auto","important"),a[1].style.setProperty("margin",t+"px auto auto","important"),document.getElementById("onweboffline_msg_id").style.setProperty("margin-bottom",26-2*o+"px","important"),document.getElementById("onweboffline_msg_id").style.setProperty("top",10-o+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("margin-bottom",26-2*o+"px","important"),document.getElementById("onwebprechat_msg_id").style.setProperty("top",10-o+"px","important"),n=i()}function i(){var e='block'==document.getElementById("prechat_form").style.getPropertyValue('display')?document.getElementById('prechat_btn'):document.getElementById('offlineform_btn');return document.getElementById('onwbchat_window').getBoundingClientRect().bottom-e.getBoundingClientRect().bottom}(n=i())<28&&(a=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('height')),document.getElementById("onwbchat_window").style.setProperty("height",a+(28-n)+"px","important"))}}function gn(){if(Object.assign&&(Object.assign(window,window.__requirejsToggleBackup),delete window.__requirejsToggleBackup),document.getElementsByTagName('head')[0].insertAdjacentHTML('beforeend',""),0==document.querySelectorAll(".onwebchatbox").length){div_chat_min_title=S(1==C?'min_online':'min_offline',E);var n=' by onWebChat',o=n.replace("l=2&","");1==Me&&(n=o=""),image_name=z?1==C?Yt:Gt:1==C?Jt:Qt;let e='',t='';1==ce&&(e='
',t='
');var a=''+S('max_msg',E)+'
',i=(''==S('max_msg',E)&&(a=''),tempSaveSt='',Kt()||(tempSaveSt=''),""),d="",l="";1==T&&(s=r="",1==P&&(r='',s='padding-left: 0px;text-indent:-17px;'),d=(i=''+r+''+S('consent_text',E)+'
').replace(/_offline/g,'_prechat'),l=i.replace(/_offline/g,'_inchat_modal')),1==z&&1!=je||8!=Kt()&&document.getElementsByTagName('body')[0].insertAdjacentHTML('beforeend',"×
File size larger than 50 Mb "),openonwcDepartMenu=function(){R.emit('askdepartments',k),widthtemp=document.getElementById("departments").offsetWidth,document.getElementById("onwcdepartmenu").style.setProperty("width",widthtemp+"px","important")},onwcmenuliclick=function(e){document.getElementById("departments").value=e.children[0].innerText,Je=e.children[1].innerText.trim(),R.emit('visitorselectdepartment',k,Je),setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #CCC","important")},0)},consentTextClicked=function(){var e;1==P&&((e=document.getElementById("onwc_consent_checkbox_inchat_modal"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change"))),(e=document.getElementById("onwc_consent_checkbox_offline"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change"))),e=document.getElementById("onwc_consent_checkbox_prechat"))&&(e.checked=!e.checked,e.dispatchEvent(new Event("change")))},toggleModal=function(e,t){document.getElementById(e).classList.toggle("show-onwcmodal",t)},document.getElementById('onwbchat_window')&&document.getElementById('onwbchat_window').addEventListener("click",function(e){'onwcEndChatModal'!==e.target.id&&'onwcFileModal'!==e.target.id&&'onwcFileModalType'!==e.target.id&&'onwcEmailModal'!==e.target.id&&'onwcEmailOkModal'!==e.target.id||toggleModal(e.target.id,!1),'departments'!=e.target.id&&'onweb_menu_minimize_btn_id'!=e.target.id&&document.getElementById("onwcdepartmenu")&&document.getElementById("onwcdepartmenu").style.setProperty("display","none","important")}),checkPhone=function(e){e.value=e.value.replace(/[^\d -]/g,'')},emailTranscript=function(){""!=O('chattext')&&ct<6&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),toggleModal("onwcEmailModal"),document.getElementById("onwcemailtrans").focus())},checkMobileChatHeight=function(){try{var e;z&&(e=document.getElementById("onwbchat_window").clientHeight,document.getElementById("chat_area_id").style.setProperty("height",e-98-Le-4+14+"px"),hn(document.getElementById("chat_area_id"),2,1))}catch(e){}},clickConsentModalOk=function(){var e=-1;document.getElementById("onwc_consent_checkbox_inchat_modal")&&(e=document.getElementById("onwc_consent_checkbox_inchat_modal").value),1==P&&0==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#D04848"):1==P&&1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked?(W("consentvalue",2,93),toggleModal('onwcConsentModal',!1),R.emit('setconsentsettings',D,e,T,P)):1==T&&1!=P&&(W("consentvalue",1,93),toggleModal('onwcConsentModal',!1),R.emit('setconsentsettings',D,e,T,P))},document.getElementById("onwc_consent_checkbox_inchat_modal")&&document.getElementById("onwc_consent_checkbox_inchat_modal").addEventListener('change',function(){1==document.getElementById("onwc_consent_checkbox_inchat_modal").checked&&document.getElementById("onwc_consent_l_inchat_modal").style.setProperty("color","#545454")}),endChatClicked=function(){1==de&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),toggleModal("onwcEndChatModal",!0))},endChatFunction=function(){if(""!=O('chattext')){q('chattext',''),disableMenuItem("onwebchat-print-li"),disableMenuItem("onwebchat-savetofile-li"),disableMenuItem("onwebchat-email-li"),disableMenuItem('onwebchat-endchat-li'),de=!1;var t=document.getElementById('chat_area_id'),n=t.childNodes;for(let e=n.length-1;0<=e;e--){var o=n[e];'IMG'===o.tagName.toUpperCase()&&'operatorImage'===o.id||t.removeChild(o)}document.getElementById('chat_area_id').insertAdjacentHTML('beforeend',a),un(),R.emit('close_dialog_visitor'),q("servingOpImage",""),x=1==ce?"0_support_man.png":"",document.getElementById("departments")&&(document.getElementById("departments").value="",document.getElementById("departments").placeholder=S('departments',E)),document.getElementById('onprechattext').value='',Je=0}toggleModal('onwcEndChatModal',!1),1==ge&&1==L('inChatC')&&0==ye&&toggleModal("onwcRatingChatModal",!0),q("isRated",ye=0),q('hasTriggeredNoReply',0),W('hasTriggeredNoReplyC',0,.166),W('inChatC',0,.166)},rate=function(e){for(this.rating=e,document.getElementById("sendStarButton").classList.remove("disabled"),document.getElementById("sendStarButton").removeAttribute("disabled"),j=1;j<=e;j++){var t="onwcstar"+j;document.getElementById(t).style.setProperty("color","#ffb900","important")}for(j=e+1;j<=5;j++)t="onwcstar"+j,document.getElementById(t).style.setProperty("color","#aeaeae","important")},sendRate=function(){R.emit('ratechat',k,he,this.rating),toggleModal('onwcRatingChatModal',!1),0==L('inChatC')?q("isRated",ye=0):q("isRated",ye=1)},sendEmailTranscript=function(){var e;en(document.getElementById('onwcemailtrans').value)?ct<6&&(e=(new Date).getTimezoneOffset()/60*-1,R.emit('onwcemailtranscript',D,k,document.getElementById("onwcemailtrans").value,e,rt),toggleModal("onwcEmailModal",!1),e=L('onwbchtemailsSent'),ct++,W('onwbchtemailsSent',""==e?1:parseInt(e)+1,.0416)):(document.getElementById("onwcemailtrans").focus(),document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #D04848","important"))},document.getElementById("onwcemailtrans")&&document.getElementById("onwcemailtrans").addEventListener('keyup',function(){en(document.getElementById('onwcemailtrans').value)&&document.getElementById("onwcemailtrans").style.setProperty("border","1px solid #909090","important")}),(1==C?Pt:Tt)(),1==be&&document.getElementById("onwbchat_window").style.setProperty('display','none'),1==C?document.getElementById("onweb-offline-icon")&&document.getElementById("onweb-offline-icon").style.setProperty('display','none'):document.getElementById("onweb-online-icon")&&document.getElementById("onweb-online-icon").style.setProperty('display','none'),1==C&&""!=ae?document.getElementById("webchat_header").style.setProperty('background-color',ae,'important'):""!=I&&(document.getElementById("webchat_header").style.setProperty('background-color',I,'important'),document.getElementById("offlineform_btn").style.setProperty('background-color',I,'important')),0==Ke&&document.getElementById('onwc-settings-icon-id').remove(),0==tt&&0==et&&0==nt&&0==ot&&0==at&&0==it&&document.getElementById('onwebchat-widget-settings-submenu-ul')&&document.getElementById('onwebchat-widget-settings-submenu-ul').remove(),0==tt&&document.getElementById('onwebchat-email-li')&&document.getElementById('onwebchat-email-li').remove(),0==et&&document.getElementById('uploadfileid')&&document.getElementById('uploadfileid').remove(),0==nt&&document.getElementById('onwebchat-print-li')&&document.getElementById('onwebchat-print-li').remove(),0==ot&&document.getElementById('onwebchat-savetofile-li')&&document.getElementById('onwebchat-savetofile-li').remove(),0==at&&document.getElementById('onwebchat-volume-li-id')&&document.getElementById('onwebchat-volume-li-id').remove(),0==it&&document.getElementById('onwebchat-endchat-li')&&document.getElementById('onwebchat-endchat-li').remove(),validateFileSizeType=function(e,t){let n,o=(1==t?(n=e.files[0].size/1024/1024,e.files[0]):(n=e.size/1024/1024,e)).name.split(".");return o=(o=o[o.length-1]).toLowerCase(),["jpg","jpeg","png","gif","bmp","tiff","docx","xlsx","pdf","txt","rtf"].includes(o)?50'+S('max_me',E)+"\t[loading...]",'me'),1==t&&(e=new FormData(document.getElementById("onwbchtUploadForm")),1==Ke)&&1==et&&sendFileToServer(e),!0):(toggleModal('onwcFileModalType'),document.getElementById('onwbchtFileinput').value='',!1)},SaveToFile=function(e){try{var t,n,o,a,i,d;""!=O('chattext')&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),n=(t=new Date).getFullYear()+'-'+(t.getMonth()+1)+'-'+t.getDate(),o='Chat transcript from '+yn(window.location.href)+' on '+n+' Chat transcript from "+yn(window.location.href)+' on '+n+'
'+document.getElementById(e).innerHTML+'
',0 in(d=document.createElement('a')),d.setAttribute('href','data:text/plain;charset=utf-8,'+encodeURIComponent(i)),d.setAttribute('download',a),document.createEvent?(i=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0,clientX:0}),d.dispatchEvent(i)):d.click())}catch(e){console.log(e)}},PrintElem2Printer=function(e){try{""!=O('chattext')&&(document.getElementById("onwebchat-widget-settings-submenu-ul").style.setProperty("display","none"),Popup2Print(document.getElementById(e).innerHTML))}catch(e){console.log(e)}},Popup2Print=function(e){var t=window.open('','onWebChat live chat - Print ','height=700,width=920');return t.document.write('Chat transcript from '+yn(window.location.href)+' '),t.document.write(''),t.document.write('
'),t.document.write(e),t.document.write(''),t.document.close(),t.focus(),t.print(),t.close(),!0},okButtonClicked=function(){R.emit('chatWindowMax',0),rn()},uploadFilePressed=function(){.9',"
")),hn(document.getElementById("chat_area_id"),20,1),setTimeout(function(){hn(document.getElementById("chat_area_id"),20,1)},500),setTimeout(function(){hn(document.getElementById("chat_area_id"),20,1)},1e3),o.src=t,(n=document.createElement("a")).innerHTML=o.outerHTML,n.setAttribute('href',A+"//"+serverIP+"/filesUpload/"+encodeURI(a)),n.setAttribute('target','_blank'),n.setAttribute('rel','noopener noreferrer'),o.parentNode.insertBefore(n,o),o.remove()):(t=o.src.replace("loading.gif","download-icon.png"),e=a.replace(/^.*[\\\/]/,''),o.src=t,(n=document.createElement("a")).innerHTML=o.outerHTML,n.setAttribute('href',A+"//"+serverIP+"/filesUpload/"+encodeURI(a)),n.setAttribute('target','_blank'),n.setAttribute('rel','noopener noreferrer'),o.parentNode.insertBefore(n,o),t=o.parentNode,o.remove(),(n=document.createElement("span")).innerHTML=e,t.appendChild(n),q('chattext',O('chattext').replace('
',"
"+e+""))),b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=3244,O('chattext')&&(obj.chattext=O('chattext').substring(0,20));let i=0;H||(i=5400,0==H&&0==N&&(obj.socketReconnect=1,dn())),setTimeout(function(){b=h(),obj.durationInSeconds2=(b-V)/1e3,obj.socketDurationInSeconds2=(b-y)/1e3,obj.isConnected2=H,obj.tryToReconnect2=N,obj.firstConnection2=F,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=i,obj.pos=3244,R.emit('sendchat','{{fileuploaded:'+a+'}}',void 0,0,0,3244,pe,D,mt,obj),ne("{{fileuploaded:"+a+"}}","visitor")},i)};document.getElementsByClassName("formVal"),(t=new XMLHttpRequest).onreadystatechange=function(){4===t.readyState&&(200===t.status||0===t.status&&''!==t.responseText?a({url:n,status:200,body:t.responseText||''}):o({url:n,status:t.status,body:t.responseText||''}))},t.open("post",n,!0),t.send(e)},document.getElementById('onwc-settings-icon-id')&&(document.getElementById('onwc-settings-icon-id').onclick=function(e){var t;e.stopPropagation(),(t=document.getElementById('onwebchat-emoticons-div'))&&(t.classList.remove('onwc-show'),t.classList.add('onwc-hide'),setTimeout(function(){t.style.setProperty("display","none")},400)),g(document.getElementById('onwebchat-widget-settings-submenu-ul'))}),document.getElementById('wb-smile-image').onclick=function(e){var t;e.stopPropagation(),g(document.getElementById('onwebchat-emoticons-div')),(t=document.getElementById('onwebchat-widget-settings-submenu-ul'))&&t.classList.contains('onwc-show')&&(t.classList.remove('onwc-show'),t.classList.add('onwc-hide'),c=setTimeout(function(){t.style.setProperty("display","none")},400)),0==H&&0==N&&dn()},document.addEventListener("click",function(e){document.getElementById("onwebchat-widget-settings-submenu-ul")&&'1'==document.getElementById("onwebchat-widget-settings-submenu-ul").classList.contains('onwc-show')&&g(document.getElementById('onwebchat-widget-settings-submenu-ul')),'1'==document.getElementById("onwebchat-emoticons-div").classList.contains('onwc-show')&&g(document.getElementById('onwebchat-emoticons-div'))}),document.getElementById('onwebchat-volume-li-id')&&(document.getElementById('onwebchat-volume-li-id').onclick=function(e){1==Xt?(Xt=!1,Ft("onwbchtSound",0),document.getElementById('onwebchat-volume-icon').innerHTML=re):(Xt=!0,Ft("onwbchtSound",1),document.getElementById('onwebchat-volume-icon').innerHTML=se)}),0==Xt&&(document.getElementById('onwebchat-volume-icon').innerHTML=re),document.getElementById("onwebchat-widget-settings-submenu-ul")&&document.getElementById("onwebchat-widget-settings-submenu-ul").addEventListener("click",function(e){e.stopPropagation()}),document.getElementById("onwebchat-emoticons-div").addEventListener("click",function(e){e.stopPropagation()}),document.getElementById("webchat_header").style.setProperty("height","40px","important"),document.getElementById("onwbchat_window").style.setProperty("height","40px","important"),document.getElementById("div_chat_min_title").style.setProperty("line-height","42px","important"),document.getElementById("onwbchat_window").style.setProperty("box-shadow","0px 0px 5px 0px #777","important"),1!=ue&&!z||(imageClass=z?"onweb_chatimage_mobile":"onweb_chatimage",s=A+'//'+serverIP+'/chatWidgetImages/'+image_name,(r=document.getElementById('onwbchat_window'))&&(r.insertAdjacentHTML("afterend",''),0==B)&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),0==C&&1==Se&&document.getElementById("onweb_chatimage")&&document.getElementById("onweb_chatimage").style.setProperty("display","none"),onweb_chatimage_loaded=function(){document.getElementById('onwbchat_window').insertAdjacentHTML('beforeend','');var e=parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("left"))+parseInt(document.getElementById('onweb_chatimage').clientWidth)-4,e=(document.getElementById("onweb_chatimage_x").style.setProperty("left",e+"px"),parseInt(window.getComputedStyle(document.getElementById("onweb_chatimage"),null).getPropertyValue("bottom"))+parseInt(document.getElementById('onweb_chatimage').clientHeight)-4);document.getElementById("onweb_chatimage_x").style.setProperty("bottom",e+"px"),document.getElementById('onwbchat_window').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'},document.getElementById('onweb_chatimage_x').onmouseleave=function(){document.getElementById('onweb_chatimage_x').style.opacity='0.5'},document.getElementById('webchat_header').onmouseenter=function(){document.getElementById('onweb_chatimage_x').style.visibility='hidden'},document.getElementById('onweb_chatimage_x').onclick=function(){document.getElementById("onweb_chatimage").style.setProperty("display","none"),document.getElementById('onweb_chatimage_x').style.display="none",q('hideImage',1)}}),document.getElementById('offlineform_btn').onclick=function(){var e,t,n,o,a;return 1==T&&1==P&&0==document.getElementById("onwc_consent_checkbox_offline").checked||1==Ne&&1==Fe&&!en(document.getElementById("onwebchatoffemail").value)||1==De&&1==ze&&document.getElementById("onwebchatofftel").value.length<4||1==Ae&&1==He&&document.getElementById("onwebchatoffname").value.length<2||document.getElementById("onwebchatemailtext").value.length<1?(1==T&&1==P&&0==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#D04848","important"),document.getElementById("onwebchatemailtext").value.length<1&&(document.getElementById("onwebchatemailtext").focus(),document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #D04848","important")),1==De&&1==ze&&document.getElementById("onwebchatofftel").value.length<4&&(document.getElementById("onwebchatofftel").focus(),setTimeout(function(){document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #D04848","important")},0),Z()),1!=Ne||1!=Fe||en(document.getElementById("onwebchatoffemail").value)||(document.getElementById("onwebchatoffemail").focus(),setTimeout(function(){document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #D04848","important")},0),Z()),1==Ae&&1==He&&document.getElementById("onwebchatoffname").value.length<2&&(document.getElementById("onwebchatoffname").focus(),setTimeout(function(){document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #D04848","important")},0),Z())):(e=-1,document.getElementById("onwc_consent_checkbox_offline")&&(e=document.getElementById("onwc_consent_checkbox_offline").value),(t=new FormData).append('clientip',le),t.append('clientid',D),t.append('sid',k),t.append('name',''),t.append('email',''),t.append('text',''),t.append('phone',''),document.getElementById("onwebchatoffname")&&t.append('name',document.getElementById("onwebchatoffname").value),document.getElementById("onwebchatoffemail")&&t.append('email',document.getElementById("onwebchatoffemail").value),document.getElementById("onwebchatemailtext")&&t.append('text',document.getElementById("onwebchatemailtext").value),document.getElementById("onwebchatofftel")&&t.append('phone',document.getElementById("onwebchatofftel").value),t.append('conboxv',e),t.append('conuse',T),t.append('conboxshow',P),a=o=n=t="",document.getElementById("onwebchatoffname")&&(n=document.getElementById("onwebchatoffname").value),document.getElementById("onwebchatoffemail")&&(t=document.getElementById("onwebchatoffemail").value),document.getElementById("onwebchatemailtext")&&(o=document.getElementById("onwebchatemailtext").value),document.getElementById("onwebchatofftel")&&(a=document.getElementById("onwebchatofftel").value),R.emit('visitorSendOfflineEmail',D,le,k,n,t,o,a,e,T,P,rt),document.getElementById('onwebchatform_div_id').style.display="none",document.getElementById('onweboffline_msg_id').innerHTML=S('off_thank',E)+'',qt('onWebChat','Offline message sent','')),!1},document.getElementById('prechat_btn').onclick=function(){if(document.getElementById("onprechatname")&&(f=document.getElementById("onprechatname").value),document.getElementById("onprechatemail")&&(_=document.getElementById("onprechatemail").value),document.getElementById("onprechattel")&&(v=document.getElementById("onprechattel").value),null==_&&(_=""),null==v&&(v=""),f=(f=null==f?"":f).trim(),_=_.trim(),v=v.trim(),1==T&&1==P&&0==document.getElementById("onwc_consent_checkbox_prechat").checked||1==Ve&&1==$e&&!en(_)||1==Xe&&1==Ye&&v.length<4||1==Ze&&1==Ue&&f.length<2||1==Qe&&1==Ge&&0==Je||document.getElementById('onprechattext').value.trim().length<1)return 1==T&&1==P&&0==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#D04848","important"),document.getElementById('onprechattext').value.trim().length<1&&(document.getElementById('onprechattext').focus(),document.getElementById("onprechattext").style.setProperty("border","1px solid #D04848","important")),1==Xe&&1==Ye&&v.length<4&&(document.getElementById("onprechattel").focus(),setTimeout(function(){document.getElementById("onprechattel").style.setProperty("border","1px solid #D04848","important")},0),Z()),1!=Ve||1!=$e||en(document.getElementById('onprechatemail').value)||(document.getElementById("onprechatemail").focus(),setTimeout(function(){document.getElementById("onprechatemail").style.setProperty("border","1px solid #D04848","important")},0),Z()),1==Ze&&1==Ue&&f.length<2&&(document.getElementById("onprechatname").focus(),setTimeout(function(){document.getElementById("onprechatname").style.setProperty("border","1px solid #D04848","important")},0),Z()),1==Qe&&1==Ge&&0==Je&&(setTimeout(function(){document.getElementById("departments").style.setProperty("border","1px solid #D04848","important")},0),Z()),!1;{var t,n=document.getElementById("onprechattext").value;R.emit('setclientdetails',D,k,f,_,v,"");1==(t=document.getElementById("onwc_consent_checkbox_prechat")?document.getElementById("onwc_consent_checkbox_prechat").value:-1)?W("consentvalue",2,93):1==T&&W("consentvalue",1,93),R.emit('setconsentsettings',D,t,T,P),document.getElementById('chat_area_id').style.display="block",document.getElementById('onwc_chat_message_div').style.display="block",document.getElementById('chat_info_id').style.display="block",document.getElementById('prechat_form').style.display="none",document.getElementById('div_chat_max_title_span').textContent=S('max_title',E),wn(""+S('max_me',E)+'\t'+Ot(n)+'
','me'),xe="me",b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=3850,O('chattext')&&(obj.chattext=O('chattext').substring(0,20));let e=0;return H||(e=5400,0==H&&0==N&&(obj.socketReconnect=1,dn())),setTimeout(function(){b=h(),obj.durationInSeconds2=(b-V)/1e3,obj.socketDurationInSeconds2=(b-y)/1e3,obj.isConnected2=H,obj.tryToReconnect2=N,obj.firstConnection2=F,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=e,setTimeout(function(){R.emit('sendchat',n,void 0,0,Je,3850,pe,D,mt,obj)},400)},e),vt(),ke="chat",cn(),!1}},document.getElementById('onwc_consent_checkbox_offline')&&document.getElementById('onwc_consent_checkbox_offline').addEventListener('change',function(){1==document.getElementById("onwc_consent_checkbox_offline").checked&&document.getElementById("onwc_consent_l_offline_span").style.setProperty("color","#545454","important")}),document.getElementById('onwc_consent_checkbox_prechat')&&(document.getElementById('onwc_consent_checkbox_prechat').onchange=function(){1==document.getElementById("onwc_consent_checkbox_prechat").checked&&document.getElementById("onwc_consent_l_prechat_span").style.setProperty("color","#545454","important")}),document.getElementById('onwebchatoffemail')&&(document.getElementById('onwebchatoffemail').onkeyup=function(){en(document.getElementById('onwebchatoffemail').value)&&(document.getElementById("onwebchatoffemail").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onwebchatemailtext')&&(document.getElementById('onwebchatemailtext').onkeyup=function(){1<=document.getElementById('onwebchatemailtext').value.length&&(document.getElementById("onwebchatemailtext").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onwebchatofftel')&&(document.getElementById('onwebchatofftel').onkeyup=function(){checkPhone(document.getElementById('onwebchatofftel')),4<=document.getElementById('onwebchatofftel').value.length&&(document.getElementById("onwebchatofftel").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onwebchatoffname')&&(document.getElementById('onwebchatoffname').onkeyup=function(){2<=document.getElementById('onwebchatoffname').value.length&&(document.getElementById("onwebchatoffname").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onprechatemail')&&(document.getElementById('onprechatemail').onkeyup=function(){en(document.getElementById('onprechatemail').value)&&(document.getElementById("onprechatemail").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onprechattext').onkeyup=function(){1<=document.getElementById('onprechattext').value.length&&(document.getElementById("onprechattext").style.setProperty("border","1px solid #ccc","important"),Z())},document.getElementById('onprechattel')&&(document.getElementById('onprechattel').onkeyup=function(){checkPhone(document.getElementById('onprechattel')),4<=document.getElementById('onprechattel').value.length&&(document.getElementById("onprechattel").style.setProperty("border","1px solid #ccc","important"),Z())}),document.getElementById('onprechatname')&&(document.getElementById('onprechatname').onkeyup=function(){2<=document.getElementById('onprechatname').value.length&&(document.getElementById("onprechatname").style.setProperty("border","1px solid #ccc","important"),Z())}),loadEmoticons=function(){if(""==document.getElementById('onwebchat-emoticons-div').innerHTML){document.getElementById('onwebchat-emoticons-div').insertAdjacentHTML('beforeend',"😉 😀 🙂 😂 😃 😁
😅 😆 😎 😊 😇 😋
😌 🤔 😍 😘 😗 😶
😚 😜 😝 😛 😐 😒
😳 😲 😵 😧 😞 😟
😠 😡 😈 😔 😕 😓
😦 😣 😖 😩 😤 😱
😨 😰 😢 😭 😷 😴
👍 👎 👏 🤝 💓 🙋");for(var e=document.querySelector("#onwebchat-emoticons-div").querySelectorAll("span"),t=0;t{hn(document.getElementById("chat_area_id"),50,1)}),1==M&&document.getElementById("onweb_chatimage").style.setProperty('display','none'),setTimeout(function(){Z()},5),Vt||(null==O('chattext')&&q('chattext',''),1!=B&&1!=C&&1==Se&&''===O('chattext'))||0!=M||0===B||un(),(d=0)==(d=-1<(o=navigator.userAgent).indexOf("Googlebot")||-1")&&1==C&&0!=Ie&&(n=document.getElementById('chat_area_id').lastChild,document.getElementById('chat_area_id').removeChild(n),q('chattext',O('chattext').substring(0,O('chattext').lastIndexOf(''+S('max_gone',E)+'
'))),Pt()),1==C&&0!=Ie&&Pt(),0==ve&1!=C)&&0==Ie&&0")||setTimeout(function(){1==C||0!=Ie||O('chattext').endsWith(S('max_gone',E)+"")||(wn(''+S('max_gone',E)+'
'),Tt())},1==X?3e3:1e3))}),R.on('setIsBlocked',function(e){Ft("onwbchtblocked",M=e=null==e?0:e),1==M?mn():0!=M||1!=C&&1==Se||0!=B&&un()}),R.on('visitordeleted',function(){q('chattext',''),document.querySelectorAll('#chat_area_id p').forEach(function(e){e.remove()}),pn(document.getElementById("onwbchat_window")),deleteAllCookiesAndStorage(),R.disconnect()}),deleteAllCookiesAndStorage=function(){At("onwbchtclientid"),At("inChatC"),At("onwbchtSound"),At("onwbchtblocked"),At("onwbchtexpress.sid"),At("onwbchtlastvisit"),At("onwbchtsessionrandom"),At("onwbchttimesVisited");try{localStorage.clear(),sessionStorage.clear()}catch(e){}},R.on('servercommand',function(e,t,n,o,a,i){null!=n&&""!=n||(n="operator"),'close_dialog'==e?(1==L('inChatC')&&""!=S('max_closed',E)&&wn(''+S('max_closed',E).replace('{{operator}}',n)+'
'),1==ge&&1==L('inChatC')&&0==ye&&toggleModal("onwcRatingChatModal",!0),W('inChatC',0,.166),q("servingOpImage",""),x=1==ce?"0_support_man.png":"",q('hasTriggeredNoReply',0),W('hasTriggeredNoReplyC',0,.166),disableMenuItem('onwebchat-endchat-li'),de=!1,q('isRated',ye=0),he=i):'serve_dialog'==e?(X="androidapp"==o?1:0,xe="served_by",""==S('max_served',E)||O('hasWrSeByTr')||wn(''+S('max_served',E).replace('{{operator}}',n)+'
'),q("servingOpImage",x=a=""!=a&&a?a:"0_support_man.png"),document.getElementById("operatorImage")&&document.getElementById("operatorImage").setAttribute('src',A+'//'+serverIP+'/filesUpload/operatorImages/'+a)):'no_agent'==e&&wn('No agent is online now, but we will reply to you asap.
')}),R.on('disablesendbutton',function(){kt('aibot')}),R.on('updatechatvisitor',function(e,t){var n="",n=" me-bubble ";'me'!=xe&&(n+=" me-first ");wn(''+S('max_me',E)+'\t'+Ot(e)+'
',"me"),xe="me"}),R.on('updatechat',function(e,t,n,o){if('aibot'==(o=null!=o&&""!=o?o:"operator")?(q("chatWithBot",ve=1),x=dt,document.getElementById('onwbtxtarea').maxLength=fe,document.getElementById("operatorImage")&&document.getElementById("operatorImage").setAttribute('src',A+'//'+serverIP+'/filesUpload/operatorImages/'+dt),q("servingOpImage",dt)):q("chatWithBot",ve=0),'command:typing...'==n){document.getElementById('agenttypingimage')&&document.getElementById('agenttypingimage').remove();var a=1==ce?" big-margin-left ":"";null!=O('chattext')&&''!=O('chattext')&&document.getElementById('chat_area_id').insertAdjacentHTML("beforeend",""),setTimeout(function(){document.getElementById("chat_area_id").scrollTop=9999999},0)}else if('command:notyping...'==n)try{null!=document.getElementById('agenttypingimage')&&(document.getElementById('agenttypingimage').style.visibility='hidden')}catch(e){}else{var i,d;0!=B&&(Ct(),Rt(),clearTimeout(J),Pt(),document.getElementById('agenttypingimage')&&document.getElementById('agenttypingimage').remove(),d=i=a="",a=" agent-bubble ",'agent'!=xe&&(a+=" agent-first ",1==ce)&&(i='
'),1==ce&&(d=" big-margin-left "),ne(n,"operator"),W('inChatC',1,.166),wn(''+i+''+S('max_agent',E).replace('{{operator}}',o)+' '+Ot(n)+'
'),xe="agent",""!=e&&1!=O('maxChat')&&MaximizeWindowInit(),1!=C&&(null!=O('chattext')&&O('chattext'),un()),'block'==document.getElementById('prechat_form').style.display)&&un()}}),removeLoadingImage=function(e){document.getElementById(e)&&(document.getElementById(e).style.background="none"),hn(document.getElementById('chat_area_id'),10,10)},0),n=0,o=0,a="";function i(){if(z&&document.getElementById("onwbtxtarea").blur(),1!=M){var n=document.getElementById('onwbtxtarea').value;if((document.getElementById('onwbtxtarea').value="")!=n.trim()){var e="",e=" me-bubble";"me"!=xe&&(e+=" me-first "),ne(a=n,"visitor"),n=n.replace(/\n/g,"{{newline}}");wn(''+S('max_me',E)+'\t'+Ot(n)+'
',"me"),xe="me",vt(),b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.tryToReconnect=N,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.pos=5183,O('chattext')&&(obj.chattext=O('chattext').substring(0,20));let t=300;if(H||(t=900,0==H&&0==N&&(obj.socketReconnect=1,dn())),Dt('sessionStorage')&&O('mustSendTriggerText')||!Dt('sessionStorage')&&1==G){const o=O('triggerText');setTimeout(function(){R.emit('sendchat',n,o,0,0,5183,pe,D,mt,obj)},t),q('mustSendTriggerText',!1),G=!1,Ht('triggerText')}else setTimeout(function(){b=h(),obj.durationInSeconds2=(b-V)/1e3,obj.socketDurationInSeconds2=(b-y)/1e3,obj.isConnected2=H,obj.tryToReconnect2=N,obj.firstConnection2=F,obj.timeoutTime_userconnect2=w,obj.sendChatDelay=t,obj.pos=5191;let e=H?300:5300;setTimeout(function(){b=h(),obj.durationInSeconds3=(b-V)/1e3,obj.socketDurationInSeconds3=(b-y)/1e3,obj.isConnected3=H,obj.tryToReconnect3=N,obj.firstConnection3=F,obj.timeoutTime_userconnect3=w,obj.sendChatDelay2=e,obj.pos=5191,R.emit('sendchat',n,void 0,0,0,5191,pe,D,mt,obj)},e)},t)}t=0}}function d(){isRTLlanguage(S('max_placeholder',E).trim().substring(0,2))?l("rtl","right"):l("","left")}function l(e,t){document.getElementById('onwbtxtarea').style.setProperty("direction",e,"important"),document.getElementById('onwbtxtarea').style.setProperty("text-align",t,"important")}document.getElementById("onwc_chat_message_div").addEventListener("paste",function(e){0==H&&0==N&&dn(),setTimeout(function(){checkText2ShowSendButton()},0)}),document.getElementById("onwc_chat_message_div").addEventListener("keydown",function(e){"Enter"!=e.key||e.shiftKey?(1!=ie&&1!=O('hasStartedWriting')&&(ee(),q('hasStartedWriting',1)),ie=1,0==H&&0==N&&dn(),0==t&&0==M&&(1!=ve&&(b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=5265,O('chattext')&&(obj.chattext=O('chattext').substring(0,20)),R.emit('sendchat','command:typing...',void 0,0,0,5265,pe,D,mt,obj)),t=1),0==o&&(o=setTimeout(function(){var e;""!=(e=document.getElementById('onwbtxtarea').value).trim()&&0==M&&(b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=5217,O('chattext')&&(obj.chattext=O('chattext').substring(0,20)),R.emit('sendchat',e,void 0,1,0,5217,pe,D,mt,obj)),o=0},'free'==Pe?1500:200)),clearTimeout(n),n=setTimeout(function(){t=0,clearTimeout(o),1!=ve&&(b=h(),(obj={}).vesrion=U,obj.durationInSeconds=(b-V)/1e3,obj.socketDurationInSeconds=(b-y)/1e3,obj.isConnected=H,obj.firstConnection=F,obj.timeoutTime_userconnect=w,obj.tryToReconnect=N,obj.pos=5281,O('chattext')&&(obj.chattext=O('chattext').substring(0,20)),R.emit('sendchat','command:notyping...',void 0,0,0,5281,pe,D,mt,obj))},1800)):(e.preventDefault(),_e||(i(),clearTimeout(o),o=0))}),document.getElementById("wb-send-image").addEventListener("click",function(e){i(),z||document.getElementById("onwbtxtarea").focus(),checkText2ShowSendButton()}),isRTLlanguage=function(e){return result=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\uFB50-\uFC3F\uFE70-\uFEFC]/.test(e)},d(),document.getElementById("onwc_chat_message_div").addEventListener("keyup",function(e){'ArrowUp'==e.key&&''==document.getElementById('onwbtxtarea').value&&(document.getElementById('onwbtxtarea').value=a),""!=document.getElementById('onwbtxtarea').value.trim().substring(0,2)?isRTLlanguage(document.getElementById('onwbtxtarea').value.trim().substring(0,2))?l("rtl","right"):l("","left"):""==document.getElementById('onwbtxtarea').value&&d(),1==T&&1!=L('consentvalue')&&2!=L('consentvalue')&&toggleModal("onwcConsentModal",!0),checkText2ShowSendButton()}),(checkText2ShowSendButton=function(){""==document.getElementById('onwbtxtarea').value?document.getElementById("wb-send-image").style.visibility="hidden":document.getElementById("wb-send-image").style.visibility="visible"})(),document.getElementById('onwebchatemailtext').addEventListener("keyup",function(e){isRTLlanguage(document.getElementById('onwebchatemailtext').value.substring(0,2))?(document.getElementById("onwebchatemailtext").style.setProperty("direction","rtl","important"),document.getElementById("onwebchatemailtext").style.setProperty("text-align","right","important")):(document.getElementById("onwebchatemailtext").style.setProperty("direction","","important"),document.getElementById("onwebchatemailtext").style.setProperty("text-align","left","important"))}),document.getElementById('onprechattext').addEventListener("keyup",function(e){isRTLlanguage(document.getElementById("onprechattext").value.substring(0,2))?(document.getElementById("onprechattext").style.setProperty("direction","rtl","important"),document.getElementById("onprechattext").style.setProperty("text-align","right","important")):(document.getElementById("onprechattext").style.setProperty("direction","","important"),document.getElementById("onprechattext").style.setProperty("text-align","left","important"))});var c,s,r=0;function m(e){var t;e.target?t=e.target:e.srcElement&&(t=e.srcElement),"onweb_minimize_btn_icon_id"!=t.id&&1==O('maxChat')&&(r=1,window.addEventListener('mousemove',p,!0),document.getElementById("webchat_header").style.setProperty('cursor','move'))}function p(e){var t,n=window.innerHeight,o=Math.max(document.documentElement.clientWidth,document.body.scrollWidth,document.documentElement.scrollWidth,document.body.offsetWidth,document.documentElement.offsetWidth),a=parseInt(document.getElementById("onwbchat_window").style.getPropertyValue('height')),i=parseInt(document.getElementById("onwbchat_window").offsetWidth),d=e.clientX,e=e.clientY,l=(1==r&&(l=document.body.scrollTop,t=document.body.scrollLeft,divTop=document.getElementById('onwbchat_window').offsetTop-l,divLeft=document.getElementById('onwbchat_window').offsetLeft-t,c=d-divLeft,s=e-divTop),r=0,Y=1,document.getElementById('onwbchat_window'));l.style.position='absolute',(g=e-s)<0&&(g=0),n-ayn(n=n.startsWith("www.")?"https://"+n:n)==yn(window.location.href)?`${t}`:`${t}`):"";var a=/(\b(https?|ftp|file):\/\/(?![-A-Z0-9+\/:.]*filesUpload\/operatorImages)[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi;for(null!=(m=fn(e)?void 0:e.match(a))&&(e=yn(m[0])==yn(window.location.href)?e.replace(a,"$1"):e.replace(a,"$1")),a=/(^|[^\/])(www\.[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,null!=(m=fn(e)?void 0:e.match(a))&&(e=yn(m[0])==yn(window.location.href)?e.replace(a,"$1$2"):e.replace(a,"$1$2"));-1
'):'
'+d+'';e=e.replace("{{fileuploaded:"+i+"}}",d)}for(var l="😀😬😁😂😃😄😅😆😇😉😊🙂🙃😋😌😍😘😗😙😚😜😝😛🤑🤓😎🤗😏😶😐😒🙄🤔😳😞😟😠😡😔😕🙁😣😖😫😩😤😱😨😰😯😦😧😢😪😓😭😵😲🤐🤒🤕😴😮👍👎👏🤝💓🙏🙋😈😷"[Symbol.iterator]();;){var c=l.next();if(c.done)break;c=c.value,e=e.replace(new RegExp(c,"g"),''+c+'')}e=(e=(e=e.replace('[loading...]','
')).replace(/{{newline}}/g,'
')).replace(/\*\*(.*?)\*\*/g,'$1');var s,r,m=(a=new Date).getHours();(a=a.getMinutes())<10&&(a="0"+a),n?(s=e,(r=document.createElement('div')).innerHTML=s,(s=r.querySelector('img'))&&s.remove(),(s=r.querySelector('span.spanbold'))&&s.remove(),n=(s=r.innerHTML).replace(/^]*>/,'').replace(/<\/p>$/,''),document.getElementById('outer_agent_bubble_span')&&(document.getElementById("outer_agent_bubble").style.setProperty("display","grid","important"),document.getElementById('outer_agent_bubble_span').insertAdjacentHTML("beforeend",n)),q('outeragentbubbletext',n)):Ht('outeragentbubbletext'),-1==e.indexOf("server_messages")&&(e="
"),null!=document.getElementById('agenttypingimage')?document.getElementById('agenttypingimage').insertAdjacentHTML("beforebegin",e):document.getElementById('chat_area_id')&&document.getElementById('chat_area_id').insertAdjacentHTML("beforeend",e),hn(document.getElementById("chat_area_id"),20,4),setTimeout(function(){hn(document.getElementById("chat_area_id"),20,1)},500),O('chattext')?q('chattext',O('chattext')+e):q('chattext',e),8!=Kt()&&(clearTimeout(zt),zt=setTimeout(function(){R.io.disconnect(),rn()},$t)),enableMenuItem("onwebchat-print-li"),enableMenuItem("onwebchat-savetofile-li"),ct<6&&enableMenuItem("onwebchat-email-li"),enableMenuItem('onwebchat-endchat-li'),de=!0,Oe<340&&(n=document.getElementsByClassName('operatorImageSmallClass'),[].forEach.call(n,function(e){e.style.zoom="0.9"})),checkMobileChatHeight()}function fn(e){return/]*href=["']/i.test(e)}}();