
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
{"request":{"hurl":"https:\/\/workforcesaudi.core3.agency\/wp-content\/plugins\/chaty\/js\/cht-front-script.min.js","inline":"","enable_minification":true,"type":"js","handle":"chaty-front-end","version":"3.4.41750088620"},"log":{"url":"\/wp-content\/plugins\/chaty\/js\/cht-front-script.min.js","success":true},"code":"function getWidgetIndex(t){return null!=t&&\"widget_index\"!=t||(t=1),jQuery(\"#chaty-widget-\"+t).length||jQuery(\"#chaty-widget_-\"+t).length||jQuery(\".chaty\").length&&0!=(t=jQuery(\".chaty:first\").data(\"id\"))&&(t=t.replace(\/[^0-9]\/g,\"\")),t}function activateChatyWidget(t){jQuery(\".chaty-outer-forms\").removeClass(\"active\"),jQuery(\"#chaty-widget-\"+t).length&&jQuery(\"#chaty-widget-\"+t).addClass(\"active\"),jQuery(\"#chaty-widget-_\"+t).length&&jQuery(\"#chaty-widget-_\"+t).addClass(\"active\")}function launch_chaty(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery(\"#chaty-widget-\"+t).length&&jQuery(\"#chaty-widget-\"+t+\" .chaty-cta-button .open-chaty\").trigger(\"click\"),jQuery(\"#chaty-widget-_\"+t).length&&jQuery(\"#chaty-widget-_\"+t+\" .chaty-cta-button .open-chaty\").trigger(\"click\")}function open_chaty_whatsapp_popup(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery(\"#chaty-widget-\"+t).length&&jQuery(\"#chaty-widget-\"+t+\" .Whatsapp-channel\").trigger(\"click\"),jQuery(\"#chaty-widget-_\"+t).length&&jQuery(\"#chaty-widget-_\"+t+\" .Whatsapp-channel\").trigger(\"click\")}function close_chaty_whatsapp_popup(t){t=getWidgetIndex(t),jQuery(\"#chaty-form-\"+t+\"-Whatsapp\").length&&jQuery(\"#chaty-form-\"+t+\"-Whatsapp .whatsapp-form-close-btn\").trigger(\"click\"),jQuery(\"#chaty-form-_\"+t+\"-Whatsapp\").length&&jQuery(\"#chaty-form-_\"+t+\"-Whatsapp .whatsapp-form-close-btn\").trigger(\"click\")}function open_chaty_contact_form(t){activateChatyWidget(t=getWidgetIndex(t)),jQuery(\"#chaty-widget-\"+t).length&&jQuery(\"#chaty-widget-\"+t+\" .Contact_Us-channel\").trigger(\"click\"),jQuery(\"#chaty-widget-_\"+t).length&&jQuery(\"#chaty-widget-_\"+t+\" .Contact_Us-channel\").trigger(\"click\")}function close_chaty_contact_form(t){t=getWidgetIndex(t),jQuery(\"#chaty-form-\"+t+\"-Contact_Us\").length&&jQuery(\"#chaty-form-\"+t+\"-Contact_Us .chaty-close-button\").trigger(\"click\"),jQuery(\"#chaty-form-_\"+t+\"-Contact_Us\").length&&jQuery(\"#chaty-form-_\"+t+\"-Contact_Us .chaty-close-button\").trigger(\"click\")}!function(t){\"use strict\";\"function\"==typeof define&&define.amd?define([\"jquery\"],t):\"undefined\"!=typeof module&&module.exports?module.exports=t(require(\"jquery\")):t(jQuery)}((function(t,e){var a,c,n=[],i=\"\",s=\/(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(navigator.userAgent)||\/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(navigator.userAgent.substr(0,4))?1:0,o=[\"System Stack\",\"Arial\",\"Tahoma\",\"Verdana\",\"Helvetica\",\"Times New Roman\",\"Trebuchet MS\",\"Georgia\",\"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif\"],h=!0,l=!1,r=0,d=!1,y=!1,g=[],p=0,f=0,u=\"\",w=0,m=\"\";let v=!0;function _(a){if(t(\"#chaty-widget-\"+a).data(\"animation\")!=e&&\"none\"!=t(\"#chaty-widget-\"+a).data(\"animation\")){var c=\"chaty-animation-\"+t(\"#chaty-widget-\"+a).data(\"animation\");t(\"#chaty-widget-\"+a+\" .\"+c).removeClass(c)}t(\"#chaty-widget-\"+a+\" .ch-pending-msg\").remove()}function b(){var e,a,c=!1;if(n.length&&t.each(n,(function(t,e){q(e.triggers.has_countries)&&!Q(e.triggers.countries)&&e.triggers.countries.length&&(c=!0)})),1==chaty_settings.has_CookieYes||1==chaty_settings.has_iubenda_cookie?null==V(\"chaty_cookie_accepted\")?(R(\"chaty_cookie_accepted\",!1,365),v=V(\"chaty_cookie_accepted\")):v=V(\"chaty_cookie_accepted\"):(e=\"chaty_cookie_accepted\",document.cookie=e+\"=;expires=Thu, 01 Jan 1970 00:00:01 GMT;\"),\"false\"==v)return!1;c?\"\"!=(i=P())?C():(a=\"https:\/\/www.cloudflare.com\/cdn-cgi\/trace\",t.get(a,(function(t){var e,a=t.match(\"loc=(.*)\");a.length>1&&(a=a[1])&&(\"\"==(a=a.toUpperCase())&&(a=\"-\"),e=a,\"undefined\"!=typeof Storage?null==window.sessionStorage.getItem(\"chaty_user_country_code\")&&window.sessionStorage.setItem(\"chaty_user_country_code\",e):X(\"chaty_user_country_code\")||R(\"chaty_user_country_code\",e,365),C())}))):C()}function C(){n.length&&(t(\"body\").append('<svg width=\"39\" height=\"39\" viewBox=\"0 0 39 39\" class=\"hide-cht-svg-bg\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><defs> <linearGradient id=\"linear-gradient\" x1=\"0.892\" y1=\"0.192\" x2=\"0.128\" y2=\"0.85\" gradientUnits=\"objectBoundingBox\"> <stop offset=\"0\" stop-color=\"#4a64d5\"\/> <stop offset=\"0.322\" stop-color=\"#9737bd\"\/> <stop offset=\"0.636\" stop-color=\"#f15540\"\/> <stop offset=\"1\" stop-color=\"#fecc69\"\/> <\/linearGradient> <linearGradient id=\"linear-gradient-insta-dm\" x1=\"0.892\" y1=\"0.192\" x2=\"0.128\" y2=\"0.85\" gradientUnits=\"objectBoundingBox\"> <stop offset=\"0\" stop-color=\"#4A64D5\"><\/stop> <stop offset=\"0.322\" stop-color=\"#9737BD\"><\/stop> <stop offset=\"0.636\" stop-color=\"#F15540\"><\/stop> <stop offset=\"1\" stop-color=\"#FECC69\"><\/stop> <\/linearGradient><\/defs>'),t.each(n,(function(e,a){var c=\"\",h=\"\",g=0,p=[],f={},w=function(e){if(q(e.triggers.has_countries)&&!Q(e.triggers.countries)&&e.triggers.countries.length&&\"-\"!=(i=P())&&-1==t.inArray(i,e.triggers.countries))return!1;return!0}(a);w=w&&function(t){if(t.triggers.has_date_scheduling_rules){var e=t.triggers.date_scheduling_rules.start_date_time,a=t.triggers.date_scheduling_rules.end_date_time,c=new Date,n=(c=H(c,t.triggers.time_diff)).getFullYear()+\"-\"+A(c.getMonth()+1)+\"-\"+A(c.getDate())+\" \"+A(c.getHours())+\":\"+A(c.getMinutes())+\":\"+A(c.getSeconds());return\"\"==a&&e<=n||(\"\"==e&&a>=n||\"\"!=e&&\"\"!=a&&e<=n&&a>=n)}return!0}(a),w=w&&function(t){var e=!0;if(q(t.triggers.has_day_hours_scheduling_rules)&&t.triggers.day_hours_scheduling_rules.length>0){var a=t.triggers.day_hours_scheduling_rules;if(a.length>0){e=!1;for(var c=new Date,n=(c=H(c,t.triggers.day_time_diff)).getHours(),i=c.getMinutes(),s=c.getDay(),o=0;o<a.length;o++){var h=0,l=0;-1==a[o].days?l=1:a[o].days>=0&&a[o].days<=6?a[o].days==s&&(l=1):7==a[o].days?s>=0&&s<=4&&(l=1):8==a[o].days?s>=1&&s<=5&&(l=1):9==a[o].days&&(6!=s&&0!=s||(l=1)),1==l&&(n>a[o].start_hours&&n<a[o].end_hours?h=1:n==a[o].start_hours&&n<a[o].end_hours?i>=a[o].start_min&&(h=1):n>a[o].start_hours&&n==a[o].end_hours?i<=a[o].end_min&&(h=1):n==a[o].start_hours&&n==a[o].end_hours&&i>=a[o].start_min&&i<=a[o].end_min&&(h=1),1==h&&i>=a[o].start_min&&i<=a[o].end_min&&1),1==h&&1==l&&(e=1),1==e&&(o=a.length+1)}}}return e}(a);let m=null,v=0,_=null,b=!1;t.each(a.channels,(function(t,e){k(e)&&(\"Chatway\"===e.channel?(v=!0,_=e.chatway_position,m=e,\"inside-chaty\"!==_&&\"chat-view\"!==a.settings.cta_type||(b=!0,g++,p.push(e))):(f=e,p.push(e),g++))})),\"open\"==a.settings.default_state&&1==g&&\"chat-view\"!=a.settings.cta_type&&(a.settings.default_state=\"click\",n[e].settings.default_state=\"click\");let C=\"\";if(v&&(C=\"has-chatway-channel\"),(1!=g||!b)&&w&&g>0&&!t(\"#chaty-widget-\"+a.id).length){var M=U(a.settings);M=\"right\"==M?\"right\":\"left\";var T=z(a);if(\"chat-view\"==a.settings.cta_type){var S=\"<div style='display: none' class='chaty chaty-has-chat-view chaty-id-\"+a.id+\" chaty-widget-\"+a.id+\" chaty-key-\"+e+\"' id='chaty-widget-\"+a.id+\"' data-key='\"+e+\"' data-id='\"+a.id+\"' data-identifier='\"+a.identifier+\"' data-nonce='\"+a.settings.widget_token+\"' ><div class='chaty-widget \"+M+\"-position'><div class='chaty-channels'><div class='chaty-channel-list' id='csaas-channels-\"+a.id+\"'><\/div><div class='chaty-i-trigger csaas-widget-trigger \"+C+\"'><\/div><\/div><\/div><\/div>\";t(\"body\").append(S),function(e){var a=e.id,c=B(a);null==c&&(c=-1);var n=e.settings.cta_body,i=e.settings.cta_head,s=t(\"title\").text();Q(s)?(n=n.replace(\/{title}\/g,\"\"),i=i.replace(\/{title}\/g,\"\")):(n=n.replace(\/{title}\/g,s),i=i.replace(\/{title}\/g,s));n=n.replace(\/{url}\/g,\"<a target='_blank' href='\"+window.location.href+\"'>\"+window.location.href+\"<\/a>\"),i=i.replace(\/{url}\/g,\"<a target='_blank' href='\"+window.location.href+\"'>\"+window.location.href+\"<\/a>\");var o=\"\";o+=\"<div style='display:none;' class='chaty-chat-view chaty-chat-view-\"+a+\" chaty-form-\"+a+\"' data-channel='chaty-chat-view' id='chaty-form-\"+a+\"-chaty-chat-view' data-widget='\"+a+\"' data-index='\"+c+\"'>\",o+=\"<div class='chaty-view-body'>\",o+=\"<div class='chaty-view-header'>\"+i,o+=\"<div role='button' class='chaty-close-view-list'><svg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 330 330'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'\/><\/svg><\/div>\",o+=\"<\/div>\",o+=\"<div class='chaty-view-content'>\",o+=\"<div class='chaty-top-content'>\",o+=n,o+=\"<\/div>\",o+=\"<div class='chaty-view-channels'>\",o+=\"<\/div>\",o+=\"<\/div>\",o+=\"<\/div>\",o+=\"<\/div>\",t(\"#chaty-widget-\"+a).append(o)}(a)}else{S=\"<div style='display: none' class='chaty chaty-id-\"+a.id+\" chaty-widget-\"+a.id+\" chaty-key-\"+e+\"' id='chaty-widget-\"+a.id+\"' data-key='\"+e+\"' data-id='\"+a.id+\"' data-identifier='\"+a.identifier+\"' data-nonce='\"+a.settings.widget_token+\"' ><div class='chaty-widget \"+M+\"-position'><div class='chaty-channels'><div class='chaty-channel-list' id='csaas-channels-\"+a.id+\"'><\/div><div class='chaty-i-trigger csaas-widget-trigger \"+C+\"'><\/div><\/div><\/div><\/div>\";t(\"body\").append(S)}q(a.triggers.auto_hide_widget)&&parseInt(a.triggers.hide_after)>0&&(t(\"#chaty-widget-\"+a.id).addClass(\"auto-hide-chaty\"),t(\"#chaty-widget-\"+a.id).attr(\"data-time\",a.triggers.hide_after));var W=G(a.id,\"c-widget\");if(t(\"#chaty-widget-\"+a.id).addClass(a.settings.show_cta),1==g&&\"chat-view\"!=a.settings.cta_type){\"vertical\"!=a.settings.icon_view&&(T=\"right\"!=M?\"right\":\"left\");var E=I(f,a.id,T);t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger\").append(E),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger\").addClass(\"single-channel\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel\").addClass(\"single\"),t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(\"has-single\");var N=a.settings.cta_text;\"first_click\"==a.settings.show_cta&&(W?(t(\"#chaty-widget-\"+a.id+\" .chaty-tooltip\").removeClass(\"chaty-tooltip\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel\").addClass(\"active\").addClass(\"chaty-tooltip\").addClass(\"pos-\"+T),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel\").append(\"<span class='on-hover-text'>\"+N+\"<\/span>\").addClass(\"active\").addClass(\"has-on-hover\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel a\").append(\"<span class='on-hover-text'>\"+N+\"<\/span>\").addClass(\"has-on-hover\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel a\").attr(\"data-text\",N)):t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel a\").append(\"<span class='on-hover-text'>\"+N+\"<\/span>\").removeClass(\"active\").addClass(\"has-on-hover\")),\"all_time\"==a.settings.show_cta&&(t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-tooltip\").append(\"<span class='on-hover-text'>\"+N+\"<\/span>\").addClass(\"active\").addClass(\"has-on-hover\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger.single-channel .chaty-channel a\").attr(\"data-text\",N));var O=f;(\"Instagram\"!=O.channel_type||\"#ffffff\"!=O.icon_color&&\"#fff\"!=O.icon_color)&&(c+=\"#chaty-widget-\"+a.id+\" .\"+O.channel+\"-channel .color-element{ fill: \"+O.icon_color+\"; color: \"+O.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .channel-icon-\"+O.channel+\" .color-element{ fill: \"+O.icon_color+\"; color: \"+O.icon_color+\";}\"),c+=\"#chaty-widget-\"+a.id+\" .\"+O.channel+\"-channel .chaty-custom-icon { background-color: \"+O.icon_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .\"+O.channel+\"-channel .chaty-svg { background-color: \"+O.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .channel-icon-\"+O.channel+\" .chaty-svg { background-color: \"+O.icon_color+\";}\",\"Contact_Us\"==O.channel_type&&(c+=\".chaty-contact-form-box #chaty-submit-button-\"+a.id+\" {background-color: \"+O.contact_form_settings.button_bg_color+\"; color: \"+O.contact_form_settings.button_text_color+\";} \",c+=\"#chaty-form-\"+a.id+\"-Contact_Us .chaty-contact-form-title {background-color: \"+O.contact_form_settings.title_bg_color+\"; } \");var R='<div class=\"chaty-channel chaty-cta-close chaty-tooltip pos-'+T+'\" data-hover=\"'+a.settings.close_text+'\"><div class=\"chaty-cta-button\"><button type=\"button\"><span class=\"chaty-svg\"><svg viewBox=\"0 0 52 52\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><ellipse cx=\"26\" cy=\"26\" rx=\"26\" ry=\"26\" fill=\"'+a.settings.widget_color+'\"><\/ellipse><rect width=\"27.1433\" height=\"3.89857\" rx=\"1.94928\" transform=\"translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)\" fill=\"'+a.settings.widget_icon_color+'\"><\/rect><rect width=\"27.1433\" height=\"3.89857\" rx=\"1.94928\" transform=\"translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)\" fill=\"'+a.settings.widget_icon_color+'\"><\/rect><\/svg><\/span><span class=\"sr-only\">Hide chaty<\/span><\/button><\/div><\/div>';t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger\").append(R)}else{t.each(a.channels,(function(e,n){if(k(n)&&(\"Chatway\"!==n.channel||\"inside-chaty\"===_||\"chat-view\"===a.settings.cta_type)){if(L(n.channel_type)&&(n.channel_type=n.channel),\"chat-view\"==a.settings.cta_type){var i=I(n,a.id,\"top\");t(\".chaty-chat-view-\"+a.id+\" .chaty-view-channels\").append(i)}else{i=I(n,a.id,T);t(\"#chaty-widget-\"+a.id+\" .chaty-channel-list\").append(i)}(\"Instagram\"!=n.channel_type&&\"Instagram_DM\"!=n.channel_type||\"#ffffff\"!=n.icon_color&&\"#fff\"!=n.icon_color)&&(c+=\"#chaty-widget-\"+a.id+\" .\"+n.channel+\"-channel .color-element{ fill: \"+n.icon_color+\"; color: \"+n.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .channel-icon-\"+n.channel+\" .color-element{ fill: \"+n.icon_color+\"; color: \"+n.icon_color+\";}\"),c+=\"#chaty-widget-\"+a.id+\" .\"+n.channel+\"-channel .chaty-custom-icon { background-color: \"+n.icon_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .\"+n.channel+\"-channel .chaty-svg { background-color: \"+n.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .channel-icon-\"+n.channel+\" .chaty-svg { background-color: \"+n.icon_color+\";}\",c+=\".chaty-chat-view-\"+a.id+\" .\"+n.channel+\"-channel .chaty-custom-icon { background-color: \"+n.icon_color+\"; }\",c+=\".chaty-chat-view-\"+a.id+\" .\"+n.channel+\"-channel .chaty-svg { background-color: \"+n.icon_color+\";}\",c+=\".chaty-chat-view-\"+a.id+\" .channel-icon-\"+n.channel+\" .chaty-svg { background-color: \"+n.icon_color+\";}\",\"Contact_Us\"==n.channel_type&&(c+=\".chaty-contact-form-box #chaty-submit-button-\"+a.id+\" {background-color: \"+n.contact_form_settings.button_bg_color+\"; color: \"+n.contact_form_settings.button_text_color+\";} \",c+=\"#chaty-form-\"+a.id+\"-Contact_Us .chaty-contact-form-title {background-color: \"+n.contact_form_settings.title_bg_color+\"; } \")}}));var V=function(t,e){(\"\"==t.widget_icon||\"chat-image\"==t.widget_icon&&Q(t.widget_icon_url)||\"chat-fa-icon\"==t.widget_icon&&Q(t.widget_fa_icon))&&(t.widget_icon=\"chat-base\");return\"chat-image\"==t.widget_icon?\"<span class='chaty-svg' style='background-color: \"+t.widget_color+\"'><img src='\"+t.widget_icon_url+\"' alt='Chaty Widget' \/><\/span>\":\"chat-fa-icon\"==t.widget_icon?\"<span class='chaty-svg' style='background-color: \"+t.widget_color+\"'><i class='\"+t.widget_fa_icon+\" widget-fa-icon' style='color: \"+t.widget_icon_color+\"'><\/i><\/span>\":'<span class=\"chaty-svg\">'+function(t,e,a,c){switch(t){case\"chat-smile\":return'<svg version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" x=\"0px\" y=\"0px\" viewBox=\"-496.8 507.1 54 54\" xml:space=\"preserve\"><style type=\"text\/css\">.chaty-sts1-'+c+\"{fill:\"+a+';} .chaty-sts2{fill:none;stroke:#808080;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;}<\/style><g><circle cx=\"-469.8\" cy=\"534.1\" r=\"27\" fill=\"'+e+'\"\/><\/g><path class=\"chaty-sts1-'+c+'\" d=\"M-459.5,523.5H-482c-2.1,0-3.7,1.7-3.7,3.7v13.1c0,2.1,1.7,3.7,3.7,3.7h19.3l5.4,5.4c0.2,0.2,0.4,0.2,0.7,0.2c0.2,0,0.2,0,0.4,0c0.4-0.2,0.6-0.6,0.6-0.9v-21.5C-455.8,525.2-457.5,523.5-459.5,523.5z\"\/><path class=\"chaty-sts2\" d=\"M-476.5,537.3c2.5,1.1,8.5,2.1,13-2.7\"\/><path class=\"chaty-sts2\" d=\"M-460.8,534.5c-0.1-1.2-0.8-3.4-3.3-2.8\"\/><\/svg>';case\"chat-bubble\":return'<svg version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" x=\"0px\" y=\"0px\" viewBox=\"-496.9 507.1 54 54\" xml:space=\"preserve\"><style type=\"text\/css\">.chaty-sts2-'+c+\"{fill:\"+a+';}<\/style><g><circle  cx=\"-469.9\" cy=\"534.1\" r=\"27\" fill=\"'+e+'\"\/><\/g><path class=\"chaty-sts2-'+c+'\" d=\"M-472.6,522.1h5.3c3,0,6,1.2,8.1,3.4c2.1,2.1,3.4,5.1,3.4,8.1c0,6-4.6,11-10.6,11.5v4.4c0,0.4-0.2,0.7-0.5,0.9   c-0.2,0-0.2,0-0.4,0c-0.2,0-0.5-0.2-0.7-0.4l-4.6-5c-3,0-6-1.2-8.1-3.4s-3.4-5.1-3.4-8.1C-484.1,527.2-478.9,522.1-472.6,522.1z   M-462.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-464.6,534.6-463.9,535.3-462.9,535.3z   M-469.9,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-471.7,534.6-471,535.3-469.9,535.3z   M-477,535.3c1.1,0,1.8-0.7,1.8-1.8c0-1.1-0.7-1.8-1.8-1.8c-1.1,0-1.8,0.7-1.8,1.8C-478.8,534.6-478.1,535.3-477,535.3z\"\/><\/svg>';case\"chat-db\":return'<svg version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" x=\"0px\" y=\"0px\" viewBox=\"-496 507.1 54 54\" xml:space=\"preserve\"><style type=\"text\/css\">.chaty-sts3-'+c+\"{fill:\"+a+';}<\/style><g><circle  cx=\"-469\" cy=\"534.1\" r=\"27\" fill=\"'+e+'\"\/><\/g><path class=\"chaty-sts3-'+c+'\" d=\"M-464.6,527.7h-15.6c-1.9,0-3.5,1.6-3.5,3.5v10.4c0,1.9,1.6,3.5,3.5,3.5h12.6l5,5c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18.2C-461.1,529.3-462.7,527.7-464.6,527.7z\"\/><path class=\"chaty-sts3-'+c+'\" d=\"M-459.4,522.5H-475c-1.9,0-3.5,1.6-3.5,3.5h13.9c2.9,0,5.2,2.3,5.2,5.2v11.6l1.9,1.9c0.2,0.2,0.3,0.2,0.7,0.2c0.2,0,0.2,0,0.3,0c0.3-0.2,0.5-0.5,0.5-0.9v-18C-455.9,524.1-457.5,522.5-459.4,522.5z\"\/><\/svg>';default:return'<svg version=\"1.1\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" x=\"0px\" y=\"0px\" viewBox=\"-496 507.7 54 54\" xml:space=\"preserve\"><style type=\"text\/css\">.chaty-sts4-'+c+\"{fill: \"+a+';}.chaty-st0{fill: #808080;}<\/style><g><circle cx=\"-469\" cy=\"534.7\" r=\"27\" fill=\"'+e+'\"\/><\/g><path class=\"chaty-sts4-'+c+'\" d=\"M-459.9,523.7h-20.3c-1.9,0-3.4,1.5-3.4,3.4v15.3c0,1.9,1.5,3.4,3.4,3.4h11.4l5.9,4.9c0.2,0.2,0.3,0.2,0.5,0.2 h0.3c0.3-0.2,0.5-0.5,0.5-0.8v-4.2h1.7c1.9,0,3.4-1.5,3.4-3.4v-15.3C-456.5,525.2-458,523.7-459.9,523.7z\"\/><path class=\"chaty-st0\" d=\"M-477.7,530.5h11.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-11.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,530.8-478.2,530.5-477.7,530.5z\"\/><path class=\"chaty-st0\" d=\"M-477.7,533.5h7.9c0.5,0,0.8,0.4,0.8,0.8l0,0c0,0.5-0.4,0.8-0.8,0.8h-7.9c-0.5,0-0.8-0.4-0.8-0.8l0,0C-478.6,533.9-478.2,533.5-477.7,533.5z\"\/><\/svg>'}}(t.widget_icon,t.widget_color,t.widget_icon_color,e)+\"<\/span>\"}(a.settings,a.id);N=a.settings.cta_text;\"first_click\"==a.settings.show_cta&&(W||(N=\"\"));var X=T;\"horizontal\"==a.settings.icon_view&&(X=\"left\"==M?\"right\":\"left\");var Y='<div class=\"chaty-channel chaty-cta-main chaty-tooltip has-on-hover pos-'+X+' active\" data-widget=\"'+a.id+'\" ><span class=\"on-hover-text\">'+N+'<\/span><div class=\"chaty-cta-button\"><button type=\"button\" class=\"open-chaty\">'+V+'<span class=\"sr-only\">Open chaty<\/span><\/button><button type=\"button\" class=\"open-chaty-channel\"><span class=\"sr-only\">chaty buttons<\/span><\/button><\/div><\/div>';t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger\").html(Y);R='<div class=\"chaty-channel chaty-cta-close chaty-tooltip pos-'+T+'\" data-hover=\"'+a.settings.close_text+'\"><div class=\"chaty-cta-button\"><button type=\"button\"><span class=\"chaty-svg\"><svg viewBox=\"0 0 52 52\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><ellipse cx=\"26\" cy=\"26\" rx=\"26\" ry=\"26\" fill=\"'+a.settings.widget_color+'\"><\/ellipse><rect width=\"27.1433\" height=\"3.89857\" rx=\"1.94928\" transform=\"translate(18.35 15.6599) scale(0.998038 1.00196) rotate(45)\" fill=\"'+a.settings.widget_icon_color+'\"><\/rect><rect width=\"27.1433\" height=\"3.89857\" rx=\"1.94928\" transform=\"translate(37.5056 18.422) scale(0.998038 1.00196) rotate(135)\" fill=\"'+a.settings.widget_icon_color+'\"><\/rect><\/svg><\/span><span class=\"sr-only\">Hide chaty<\/span><\/button><\/div><\/div>';t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger\").append(R)}t.each(a.channels,(function(t,e){\"Contact_Us\"==e.channel_type&&\"yes\"==e.hide_recaptcha_badge&&(c+=\".grecaptcha-badge {visibility: hidden;}\")})),\"chat-view\"==a.settings.cta_type&&a.settings.show_close_button,!(W=G(a.id,\"c-widget\"))||\"open\"==a.settings.default_state&&1!=g||(function(e,a){var c=G(a,\"c-widget\");c&&q(e.is_pending_mesg_enabled)&&parseInt(e.pending_mesg_count)>0&&(t(\"#chaty-widget-\"+a+\" .chaty-widget\").hasClass(\"has-single\")?\"sheen\"==e.attention_effect||\"spin\"==e.attention_effect||\"pulse\"==e.attention_effect?t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-channel\").append(\"<span class='ch-pending-msg'>\"+e.pending_mesg_count+\"<\/span>\"):t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-channel .chaty-svg\").append(\"<span class='ch-pending-msg'>\"+e.pending_mesg_count+\"<\/span>\"):\"jump\"==e.attention_effect||\"waggle\"==e.attention_effect||\"blink\"==e.attention_effect||\"pulse-icon\"==e.attention_effect||\"floating\"==e.attention_effect?t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-cta-main .chaty-cta-button\").append(\"<span class='ch-pending-msg'>\"+e.pending_mesg_count+\"<\/span>\"):t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-cta-main\").append(\"<span class='ch-pending-msg'>\"+e.pending_mesg_count+\"<\/span>\"))}(a.settings,a.id),function(e,a){var c=G(a,\"c-widget\");c&&\"none\"!=e.attention_effect&&\"\"!=e.attention_effect&&(t(\"#chaty-widget-\"+a).attr(\"data-animation\",e.attention_effect),t(\"#chaty-widget-\"+a+\" .chaty-widget\").hasClass(\"has-single\")?t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-channel .chaty-svg\").addClass(\"chaty-animation-\"+e.attention_effect):t(\"#chaty-widget-\"+a+\" .chaty-i-trigger .chaty-cta-main .chaty-cta-button\").addClass(\"chaty-animation-\"+e.attention_effect))}(a.settings,a.id));var Z=0;if(\"open\"!=a.settings.default_state||q(a.settings.show_close_button)||(t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(\"chaty-no-close-button\").addClass(\"chaty-open\"),Z=1),v&&(t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(_),\"above-chaty\"===_)){t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(\"has-chatway\");let e=z(a),n=I(m,a.id,e,a.settings);t(\"#chaty-widget-\"+a.id).length&&(t(\"#chaty-widget-\"+a.id+\" .chaty-channel-list\").prepend(n),u+=\"#chaty-widget-\"+a.id+\" .\"+m.channel_type+\"-channel .color-element{ fill: \"+m.icon_color+\"; color: \"+m.icon_color+\";}\",u+=\"#chaty-widget-\"+a.id+\" .\"+m.channel_type+\"-channel .csaas-svg { background-color: \"+m.icon_color+\";}\",u+=\".channel-\"+a.id+\"-\"+m.channel_type+\" .csaas-svg { background-color: \"+m.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .\"+m.channel_type+\"-channel .chaty-custom-icon { background-color: \"+m.icon_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .\"+m.channel_type+\"-channel .chaty-svg { background-color: \"+m.icon_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .channel-icon-\"+m.channel_type+\" .chaty-svg { background-color: \"+m.icon_color+\";}\")}q(a.settings.is_google_analytics_enabled)&&(t(\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel > a\").addClass(\"has-gae\"),t(\"#chaty-form-\"+a.id+\"-chaty-chat-view .chaty-channel > a\").addClass(\"has-gae\"),t(\"#chaty-widget-\"+a.id+\" .chaty-i-trigger.single-channel .chaty-channel > a\").addClass(\"has-gae\"),t(\".chaty-outer-forms.chaty-whatsapp-btn-form.chaty-form-\"+a.id+\" form.add-analytics\").addClass(\"form-google-analytics\"),t(\".whatsapp-chaty-form-\"+a.id).addClass(\"has-form-gae\")),q(a.settings.has_custom_css)&&!Q(a.settings.custom_css)&&(h+=a.settings.custom_css),\"hover\"==a.settings.default_state?t(\"#chaty-widget-\"+a.id).addClass(\"open-on-hover\"):\"open\"==a.settings.default_state&&(t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(\"default-open\"),!W&&q(a.settings.show_close_button)||t(\"#chaty-widget-\"+a.id+\" .chaty-widget:not(.has-single)\").addClass(\"chaty-open\"),W||t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").removeClass(\"default-open\")),t(\"#chaty-widget-\"+a.id+\" .chaty-widget:not(.has-single):not(.chaty-no-close-button)\").hasClass(\"default-open\")?q(a.settings.bg_blur_effect)&&t(\"body\").addClass(\"add-bg-blur-effect\"):t(\"body\").removeClass(\"add-bg-blur-effect\"),q(a.settings.bg_blur_effect)&&t(\"#chaty-widget-\"+a.id+\" .chaty-widget:not(.chaty-no-close-button)\").addClass(\"has-bg-blur-effect\");var F=function(t){return t}(a.settings.widget_size,a.settings.custom_widget_size);if(F=parseInt(F),c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel > a {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel > a .chaty-custom-icon {display:block; width: \"+F+\"px; height: \"+F+\"px; line-height: \"+F+\"px; font-size: \"+parseInt(F\/2)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel button {width: \"+F+\"px; height: \"+F+\"px; margin: 0; padding:0; outline: none; border-radius: 50%;}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel .chaty-svg {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel .chaty-svg img {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel span.chaty-icon {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel a {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: \"+F+\"px; height: \"+F+\"px; line-height: \"+F+\"px; display: block; font-size:\"+parseInt(F\/2)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-cta-button {background-color: \"+a.settings.widget_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-cta-button button {background-color: \"+a.settings.widget_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel > a {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel > a .chaty-custom-icon {display:block; width: \"+F+\"px; height: \"+F+\"px; line-height: \"+F+\"px; font-size: \"+parseInt(F\/2)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel button {width: \"+F+\"px; height: \"+F+\"px; margin: 0; padding:0; outline: none; border-radius: 50%;}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel .chaty-svg {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel .chaty-svg img {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel span.chaty-icon {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel a {width: \"+F+\"px; height: \"+F+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: \"+F+\"px; height: \"+F+\"px; line-height: \"+F+\"px; display: block; font-size:\"+parseInt(F\/2)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .ch-pending-msg {background-color: \"+a.settings.pending_mesg_count_bgcolor+\"; color: \"+a.settings.pending_mesg_count_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel .chaty-svg .widget-fa-icon {line-height: \"+F+\"px; font-size:\"+parseInt(F\/2)+\"px; }\",\"vertical\"==a.settings.icon_view){c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list {height: \"+g*(F+8)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list {width: \"+(F+8)+\"px; }\";for(var J=0;J<=g;J++)c+=\"#chaty-widget-\"+a.id+\" .chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(J+1)+\") {-webkit-transform: translateY(-\"+(F+8)*(g-J-Z)+\"px); transform: translateY(-\"+(F+8)*(g-J-Z)+\"px);}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-open.above-chaty.has-chatway .chaty-channel-list .chaty-channel:nth-child(\"+(J+1)+\") {-webkit-transform: translateY(-\"+(F+8)*(g-J-Z+1)+\"px); transform: translateY(-\"+(F+8)*(g-J-Z+1)+\"px);}\";if(v&&\"inside-chaty\"==_){let t=0,e=1;for(let n=0;n<p.length;n++)O=p[n],c+=\"body.chatway--active #chaty-widget-\"+a.id+\" .chaty-open .chaty-channel-list .chaty-channel.\"+O.channel+\"-link {-webkit-transform: translateY(-\"+(F+8)*(g-t-Z)+\"px); transform: translateY(-\"+(F+8)*(g-t-Z)+\"px);}\",\"Chatway\"!=O.channel?c+=\"body:not(.chatway--active) #chaty-widget-\"+a.id+\" .chaty-open .chaty-channel-list .chaty-channel.\"+O.channel+\"-channel-link {-webkit-transform: translateY(-\"+(F+8)*(g-t-e-Z)+\"px); transform: translateY(-\"+(F+8)*(g-t-e-Z)+\"px);}\":e=0,t++}else{let t=0;for(t=0;t<=g;t++)c+=\"#chaty-widget-\"+a.id+\" .chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(t+1)+\") {-webkit-transform: translateY(-\"+(F+8)*(g-t-Z)+\"px); transform: translateY(-\"+(F+8)*(g-t-Z)+\"px);}\";\"above-chaty\"==_&&(c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateY(-\"+(F+8)*Z+\"px); transform: translateY(-\"+(F+8)*(1-Z)+\"px);}\")}}else{t(\"#chaty-widget-\"+a.id+\" .chaty-widget\").addClass(\"hor-mode\"),c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list {width: \"+g*(F+8)+\"px; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-channel-list {height: \"+F+\"px; }\";let e=0;if(v&&\"inside-chaty\"==_){let t=0,e=1;for(let n=0;n<p.length;n++)O=p[n],c+=\"body.chatway--active .chaty-widget-\"+a.id+\" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(t+1)+\") {-webkit-transform: translateX(\"+(F+8)*(g-t-Z)+\"px); transform: translateX(\"+(F+8)*(g-t-Z)+\"px);}\",c+=\"body.chatway--active .chaty-widget-\"+a.id+\" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(t+1)+\") {-webkit-transform: translateX(-\"+(F+8)*(g-t-Z)+\"px); transform: translateX(-\"+(F+8)*(g-t-Z)+\"px);}\",\"Chatway\"!=O.channel?(c+=\"body:not(.chatway--active) #chaty-widget-\"+a.id+\" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(t+1)+\") {-webkit-transform: translateX(\"+(F+8)*(g-t-e-Z)+\"px); transform: translateX(\"+(F+8)*(g-t-e-Z)+\"px);}\",c+=\"body:not(.chatway--active) #chaty-widget-\"+a.id+\" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(t+1)+\") {-webkit-transform: translateX(-\"+(F+8)*(g-t-e-Z)+\"px); transform: translateX(-\"+(F+8)*(g-t-e-Z)+\"px);}\"):e=0,t++}else{for(e=0;e<=g;e++)c+=\"#chaty-widget-\"+a.id+\" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(e+1)+\") {-webkit-transform: translateX(\"+(F+8)*(g-e-Z)+\"px); transform: translateX(\"+(F+8)*(g-e-Z)+\"px);}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child(\"+(e+1)+\") {-webkit-transform: translateX(-\"+(F+8)*(g-e-Z)+\"px); transform: translateX(-\"+(F+8)*(g-e-Z)+\"px);}\";\"above-chaty\"==_&&(c+=\"#chaty-widget-\"+a.id+\" .chaty-widget.left-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX(\"+(F+8)*(1-Z)+\"px); transform: translateX(\"+(F+8)*(1-Z)+\"px);}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-widget.right-position.hor-mode .chaty-channel-list .Chatway-channel-link {-webkit-transform: translateX(-\"+(F+8)*(1-Z)+\"px); transform: translateX(-\"+(F+8)*(1-Z)+\"px);}\")}}var $=a.settings.bottom_spacing,K=a.settings.side_spacing;c+=\"#chaty-widget-\"+a.id+\" .chaty-widget {bottom: \"+$+\"px}\",\"left\"==M?(c+=\"#chaty-widget-\"+a.id+\" .chaty-widget {left: \"+K+\"px; right: auto;}\",c+=\".chaty-outer-forms.pos-left.chaty-form-\"+a.id+\" {left: \"+K+\"px}\",t(\".chaty-form-\"+a.id).addClass(\"pos-left\")):(c+=\"#chaty-widget-\"+a.id+\" .chaty-widget {right: \"+K+\"px; left:auto;}\",t(\".chaty-form-\"+a.id).addClass(\"pos-right\"),c+=\".chaty-outer-forms.pos-right.chaty-form-\"+a.id+\" {right: \"+K+\"px; left:auto;}\"),t(\".chaty-form-\"+a.id).show();var tt=F+15+parseInt($);c+=\".chaty-outer-forms.active.chaty-form-\"+a.id+\" {-webkit-transform: translateY(-\"+tt+\"px); transform: translateY(-\"+tt+\"px)} \",c+=\"#chaty-widget-\"+a.id+\".chaty:not(.form-open) .chaty-widget.chaty-open + .chaty-chat-view {-webkit-transform: translateY(-\"+tt+\"px); transform: translateY(-\"+tt+\"px)} \",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip:after {background-color: \"+a.settings.cta_bg_color+\"; color: \"+a.settings.cta_text_color+\"}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-top:before {border-top-color: \"+a.settings.cta_bg_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-left:before {border-left-color: \"+a.settings.cta_bg_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-right:before {border-right-color: \"+a.settings.cta_bg_color+\";}\",c+=\"#chaty-widget-\"+a.id+\" .on-hover-text {background-color: \"+a.settings.cta_bg_color+\"; color: \"+a.settings.cta_text_color+\"}\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-top .on-hover-text:before {border-top-color: \"+a.settings.cta_bg_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-left .on-hover-text:before {border-left-color: \"+a.settings.cta_bg_color+\"; }\",c+=\"#chaty-widget-\"+a.id+\" .chaty-tooltip.pos-right .on-hover-text:before {border-right-color: \"+a.settings.cta_bg_color+\";}\";var et=tt+72+F;et>0&&(c+=\".chaty-outer-forms.chaty-form-\"+a.id+\" .chaty-agent-body {max-height: calc(100vh - \"+et+\"px); overflow-y: auto; } \"),c+=\"#chaty-form-\"+a.id+\"-chaty-chat-view .chaty-view-header {background-color: \"+a.settings.cta_head_bg_color+\";}\",c+=\"#chaty-form-\"+a.id+\"-chaty-chat-view .chaty-view-header {color: \"+a.settings.cta_head_text_color+\";}\",c+=\"#chaty-form-\"+a.id+\"-chaty-chat-view .chaty-view-header svg {fill : \"+a.settings.cta_head_text_color+\";}\";var at=tt+82+F;at>0&&(c+=\".chaty-outer-forms.chaty-contact-form-box.chaty-form-\"+a.id+\" .chaty-contact-inputs {max-height: calc(100vh - \"+at+\"px); overflow-y: auto; } \"),25==$&&25==K||(t(\".chaty-outer-forms.chaty-form-\"+a.id).addClass(\"custom-cht-pos\"),t(\"#chaty-widget-\"+a.id).addClass(\"has-custom-pos\"));var ct=parseInt(t(\"#chaty-form-\"+a.id+\"-Whatsapp .chaty-whatsapp-header\").outerHeight())+parseInt(t(\"#chaty-form-\"+a.id+\"-Whatsapp .chaty-whatsapp-footer\").outerHeight())+parseInt(F)+parseInt($)+20;if(c+=\"#chaty-form-\"+a.id+\"-Whatsapp .chaty-whatsapp-body { max-height: calc(100vh - \"+ct+\"px); overflow-y: auto; }\",G(a.id,\"v-widget\")&&(q(a.triggers.exit_intent)||q(a.triggers.has_time_delay)||q(a.triggers.has_display_after_page_scroll)>0)?(q(a.triggers.has_time_delay)&&0==parseInt(a.triggers.time_delay)?(j(a.id),t(\"#chaty-widget-\"+a.id).addClass(\"active\")):q(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(l=!0,parseInt(a.triggers.time_delay)>r&&(r=a.triggers.time_delay),t(\"#chaty-widget-\"+a.id).addClass(\"on-chaty-delay\"),t(\"#chaty-widget-\"+a.id).addClass(\"delay-time-\"+parseInt(a.triggers.time_delay)),t(\"#chaty-widget-\"+a.id).attr(\"data-time\",parseInt(a.triggers.time_delay))),q(a.triggers.has_display_after_page_scroll)&&0==parseInt(a.triggers.display_after_page_scroll)?(j(a.id),t(\"#chaty-widget-\"+a.id).addClass(\"active\")):q(a.triggers.has_display_after_page_scroll)&&parseInt(a.triggers.display_after_page_scroll)>0&&(d=!0,t(\"#chaty-widget-\"+a.id).addClass(\"on-chaty-scroll\"),t(\"#chaty-widget-\"+a.id).addClass(\"page-scroll-\"+parseInt(a.triggers.display_after_page_scroll)),t(\"#chaty-widget-\"+a.id).attr(\"data-scroll\",parseInt(a.triggers.display_after_page_scroll))),q(a.triggers.exit_intent)&&(y=!0,t(\"#chaty-widget-\"+a.id).addClass(\"on-chaty-exit-intent\"))):(j(a.id),t(\"#chaty-widget-\"+a.id).addClass(\"active\")),!Q(a.settings.font_family)&&\"none\"!=a.settings.font_family){var nt=a.settings.font_family;-1!=t.inArray(nt,o)?\"System Stack\"==nt&&(nt=\"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif\"):(t(\"head\").append('<link rel=\"preload\" as=\"style\" href=\"https:\/\/fonts.googleapis.com\/css?family='+nt+'&display=swap\">'),t(\"head\").append('<link rel=\"stylesheet\" href=\"https:\/\/fonts.googleapis.com\/css?family='+nt+'&display=swap\">')),c+=\"#chaty-widget-\"+a.id+\", #chaty-widget-\"+a.id+\" .chaty-tooltip:after {font-family: \"+nt+\"}\"}}y&&(s?function(){if(window.history&&window.history.pushState&&y){function e(){y&&\"\"!==location.hash.split(\"#!\/\")[1]&&\"\"===window.location.hash&&D()}var a=100;window.history.state&&window.history.state.page&&(a=window.history.state.page),window.history.pushState({page:a+1},\"\"),window.history.pushState({page:a+2},\"\"),window.onpopstate=function(){e()},window.history.onpopstate=function(){e()},window.addEventListener(\"popstate\",(function(){e()})),document.addEventListener(\"backbutton\",(function(){e()})),window.addEventListener(\"backbutton\",(function(){e()})),t(window).on(\"popstate\",(function(){e()}))}}():t(document).mouseleave((function(t){function e(t,e,a){t.addEventListener?(t.addEventListener(e,a,!1),D()):t.attachEvent&&t.attachEvent(\"on\"+e,a)}e(document,\"mouseout\",(function(t){null==t.toElement&&null==t.relatedTarget&&D()}))}))),\"\"!=c&&(t(\"#custom-chaty-css\").length||t(\"head\").append(\"<style id='custom-chaty-css'><\/style>\"),t(\"#custom-chaty-css\").append(c)),\"\"!=h&&(t(\"#custom-advance-chaty-css\").length||t(\"head\").append(\"<style id='custom-advance-chaty-css'><\/style>\"),t(\"#custom-advance-chaty-css\").append(h)),n.length,t(\".chaty-sms-channel\").length&&t(\".chaty-sms-channel\").each((function(){var e=t(this).attr(\"href\");e=(e=e.replace(\/{title}\/g,x())).replace(\/{url}\/g,window.location.href),t(this).attr(\"href\",e)})),t(document).on(\"click\",\"#chaty-widget-\"+a.id+\" .chaty-i-trigger .chaty-channel\",(function(){t(this).closest(\".chaty-widget\").hasClass(\"has-single\")?t(this).closest(\".chaty\").hasClass(\"form-open\")&&(q(a.settings.bg_blur_effect)?t(\"body\").addClass(\"add-bg-blur-effect\"):t(\"body\").removeClass(\"add-bg-blur-effect\")):t(this).closest(\".chaty-widget\").hasClass(\"chaty-open\")?t(\"body\").removeClass(\"add-bg-blur-effect\"):t(this).closest(\".chaty-widget\").hasClass(\"chaty-no-close-button\")||q(a.settings.bg_blur_effect)&&t(\"body\").addClass(\"add-bg-blur-effect\")}))})),t(\"#custom-advance-chaty-css\").length||t(\"head\").append(\"<style id='custom-advance-chaty-css'><\/style>\"),t(\"#custom-advance-chaty-css\").append(u),(t(\".v3_site_key\").length&&!Q(t(\".v3_site_key\").val())||t(\".v2_site_key\").length&&!Q(t(\".v2_site_key\").val()))&&function(){if(jQuery(\".v2_site_key\").length&&\"\"!=jQuery(\".v2_site_key\").val()){var t=document.createElement(\"script\");t.type=\"text\/javascript\",t.async=!0,t.src=\"https:\/\/www.google.com\/recaptcha\/api.js?onload=onloadChatyCallback&render=explicit&hl=en\",(document.getElementsByTagName(\"head\")[0]||document.getElementsByTagName(\"body\")[0]).appendChild(t)}jQuery(\".v3_site_key\").length&&\"\"!=jQuery(\".v3_site_key\").val()&&jQuery(\".v3_site_key\").length&&\"\"!=jQuery(\".v3_site_key\").val()&&jQuery(\".front-google-captcha\").length&&jQuery(\".front-google-captcha:not(.loaded)\").each((function(){jQuery(this).addClass(\"loaded\");var t=jQuery(\".v3_site_key\").val(),e=document.createElement(\"script\");e.type=\"text\/javascript\",e.async=!0,e.src=\"https:\/\/www.google.com\/recaptcha\/api.js?onload=onloadCallbackChatyV3&render=\"+t,(document.getElementsByTagName(\"head\")[0]||document.getElementsByTagName(\"body\")[0]).appendChild(e),e.loadEventEnd=function(){}}))}()),t(\".chaty-tooltip\").each((function(){\"\"==t(this).data(\"hover\")&&t(this).removeClass(\"left\").removeClass(\"right\").removeClass(\"top\").removeClass(\"chaty-tooltip\")})),function(){t(\".chaty.auto-hide-chaty\").length&&(c=setInterval((function(){var e=++w;if(t(\".chaty.auto-hide-chaty.hide-after-\"+w).length){var a=t(\".chaty.auto-hide-chaty.hide-after-\"+e).data(\"id\");t(\".chaty-form-\"+a).removeClass(\"active\"),t(\".chaty.auto-hide-chaty.hide-after-\"+e).removeClass(\"active\"),t(\"#chaty-widget-\"+a).removeClass(\"auto-hide-chaty\"),t(\"body\").removeClass(\"add-bg-blur-effect\")}0==t(\".chaty.auto-hide-chaty\").length&&clearInterval(c)}),1e3));l&&(a=setInterval((function(){(p++,t(\".chaty.delay-time-\"+p).length)&&E(t(\".chaty.delay-time-\"+p).data(\"id\"))}),1e3));if(d){t(window).on(\"scroll\",(function(){if(d){var e=t(document).height()-t(window).height(),a=t(window).scrollTop();if(0!=e){var c=parseInt(a\/e*100);if(f<=c){var n=f;f=c;for(var i=n;i<=c;i++)-1==t.inArray(i,g)&&t(\".chaty.on-chaty-scroll.page-scroll-\"+i).length&&t(\".chaty.on-chaty-scroll.page-scroll-\"+i).each((function(){var e=t(this).data(\"id\");t(this).removeClass(\"on-chaty-scroll\"),E(e)}));f=c}}}}));window.innerWidth,document.documentElement.clientWidth}}()}function x(){return t(\"title\").length?t(\"title\").text():\"\"}function k(t){if(q(t.is_agent)){if(t.agent_data.length&&(!s&&q(t.is_agent_desktop)||s&&q(t.is_agent_mobile)))return!0}else if((!s&&q(t.is_desktop)||s&&q(t.is_mobile))&&(\"\"!=t.value||\"Contact_Us\"==t.channel||\"Chatway\"==t.channel))return!0;return!1}function j(a){if(t(\"#chaty-widget-\"+a+\" .chaty-channel.chaty-default-open\").length){var c=t(\"#chaty-widget-\"+a+\" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form\").data(\"form\");if(!Q(c)){var i=G(a,\"c-\"+t(\"#chaty-widget-\"+a+\" .chaty-channel.chaty-default-open\").data(\"channel\"));if(i&&(t(\"#\"+c).addClass(\"is-active\"),t(\"#\"+c).length)){var o=t(\"#chaty-widget-\"+a+\" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form\").html()+\"<span class='hide-cht-svg-bg'>\"+chaty_settings.lang.hide_whatsapp_form+\"<\/span>\";if(_(a),t(\"#chaty-widget-\"+a).find(\".ch-pending-msg\").remove(),t(\"#chaty-widget-\"+a+\" .chaty-widget\").removeClass(\"chaty-open\"),t(\"#chaty-widget-\"+a).addClass(\"form-open\"),t(\"#\"+c).addClass(\"active\"),t(\"#chaty-widget-\"+a+\" .chaty-widget:not(.chaty-no-close-button)\").hasClass(\"has-bg-blur-effect\")&&t(\"body\").addClass(\"add-bg-blur-effect\"),setTimeout((function(){t(\".chaty-whatsapp-btn-form.active .chaty-whatsapp-input\").focus()}),100),t(\"#chaty-widget-\"+a+\" .open-chaty-channel\").html(o),t(\"#chaty-widget-\"+a).addClass(\"active\"),t(\"#chaty-widget-\"+a).addClass(\"active\"),t(\"#chaty-widget-\"+a).hasClass(\"auto-hide-chaty\"))(y=parseInt(t(\"#chaty-widget-\"+a).data(\"time\")))>0&&(y+=w,t(\"#chaty-widget-\"+a).addClass(\"hide-after-\"+y));if(\"on\"==chaty_settings.data_analytics_settings){var l=[],r=t(\"#chaty-widget-\"+a+\" .chaty-channel.chaty-default-open\").data(\"channel\");if(G(a,\"v-\"+r)&&void 0!==r&&(N(a,\"v-\"+r),l.push(r)),!h&&l.length){var d=t(\"#chaty-widget-\"+a).data(\"nonce\");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,widgetNonce:d,action:\"update_chaty_channel_views\"},type:\"post\",dataType:\"json\",success:function(t){},error:function(t,e,a){}})}}return}}}var y;(t(\"#chaty-widget-\"+a).addClass(\"active\"),t(\"#chaty-widget-\"+a).hasClass(\"auto-hide-chaty\"))&&((y=parseInt(t(\"#chaty-widget-\"+a).data(\"time\")))>0&&(y+=w,t(\"#chaty-widget-\"+a).addClass(\"hide-after-\"+y)));V(\"hide-bg-blur-effect\")&&t(\"body\").removeClass(\"add-bg-blur-effect\");var g=G(a,\"v-widget\");if(g){N(a,\"v-widget\");t(\"#chaty-widget-\"+a).data(\"user\"),l=[];var p=0,f=0,u=t(\"#chaty-widget-\"+a).data(\"key\");if(typeof n[u]!=e){var m=V(\"activechatyWidgets\");null!=m?(m=m.split(\",\"),-1==t.inArray(a,m)&&(m.push(a),R(\"activechatyWidgets\",m=m.join(\",\"),1))):R(\"activechatyWidgets\",m=a,1)}if(t(\"#chaty-widget-\"+a+\" .chaty-widget\").hasClass(\"has-single\"))p=1,r=t(\"#chaty-widget-\"+a+\" .chaty-channel\").data(\"channel\"),G(a,\"v-\"+r)&&void 0!==r&&(N(a,\"v-\"+r),l.push(r));else t(\"#chaty-widget-\"+a+\" .chaty-widget\").hasClass(\"chaty-open\")&&(f=1,t(\"#chaty-widget-\"+a).hasClass(\"chaty-has-chat-view\")?t(\".chaty-chat-view.chaty-chat-view-\"+a+\" .chaty-view-channels\").find(\".chaty-channel\").each((function(){chatyChannel=t(this).data(\"channel\"),(i=G(a,\"v-\"+chatyChannel))&&\"undefined\"!=typeof chatyChannel&&(N(a,\"v-\"+chatyChannel),l.push(chatyChannel))})):t(\"#chaty-widget-\"+a+\" .chaty-channel-list .chaty-channel\").each((function(){r=t(this).data(\"channel\"),G(a,\"v-\"+r)&&void 0!==r&&(N(a,\"v-\"+r),l.push(r))})));if(g&&!h){d=t(\"#chaty-widget-\"+a).data(\"nonce\");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:l,userId:a,isMobile:s,isOpen:f,isSingle:p,widgetNonce:d,action:\"update_chaty_widget_views\"},type:\"post\",dataType:\"json\",success:function(t){},error:function(t,e,a){}})}}}function I(e,a,c){var n=\"\";if(!q(e.is_agent)){L(e.channel_type)&&(e.channel_type=e.channel);o=S(e,W(e),c,a);if(\"Contact_Us\"==e.channel_type)n+=\" has-chaty-box chaty-contact-form\";else if(\"Whatsapp\"==e.channel_type){if(q(e.is_default_open))G(a,\"c-\"+e.channel_type)&&(n+=\" chaty-default-open\")}return\"<div class='chaty-channel \"+e.channel+\"-channel-link\"+n+\"' id='\"+e.channel+\"-\"+a+\"-channel' data-id='\"+e.channel_type+\"-\"+a+\"' data-widget='\"+a+\"' data-channel='\"+e.channel+\"'>\"+o+\"<\/div>\"}if(e.agent_data.length){var i=0;if(t.each(e.agent_data,(function(t,e){\"\"!=e.value&&(i++,e)})),i>0){var o,h=B(a);return null==h&&(h=-1),function(e,a){var c=\"\",n=B(a);null==n&&(n=-1);c+=\"<div style='display:none;' class='chaty-outer-forms chaty-agent-data chaty-agent-data-\"+a+\" chaty-form-\"+a+\"' data-channel='\"+e.channel_type+\"' id='chaty-form-\"+a+\"-\"+e.channel_type+\"' data-widget='\"+a+\"' data-index='\"+n+\"'>\",c+=\"<div class='chaty-form'>\",c+=\"<div class='chaty-form-body'>\",c+=\"<div role='button' class='chaty-close-agent-list'><svg xmlns='http:\/\/www.w3.org\/2000\/svg' viewBox='0 0 330 330'><path d='M325.607 79.393c-5.857-5.857-15.355-5.858-21.213.001l-139.39 139.393L25.607 79.393c-5.857-5.857-15.355-5.858-21.213.001s-5.858 15.355 0 21.213l150.004 150a15 15 0 0 0 21.212-.001l149.996-150c5.859-5.857 5.859-15.355.001-21.213z'\/><\/svg><\/div>\",c+=\"<div class='chaty-agent-header agent-info-\"+a+\"-\"+e.channel+\"'>\",Q(e.header_text)||(c+=\"<div class='agent-main-header'>\"+e.header_text+\"<\/div>\");Q(e.header_sub_text)||(c+=\"<div class='agent-sub-header'>\"+e.header_sub_text+\"<\/div>\");c+=\"<\/div>\",c+=\"<div class='chaty-agent-body agents-body-\"+a+\" agent-body-\"+a+\"-\"+e.channel+\"'>\",t.each(e.agent_data,(function(n,i){if(\"\"!=i.value){var o=i.svg_icon;Q(i.agent_image)||(o=\"<img class='chaty-agent-img' src='\"+i.agent_image+\"' alt='\"+i.agent_title+\"' \/>\");var h=function(e,a,c,n,i,o){var h=e.value,l=\"_blank\";if(\"Whatsapp\"==a.channel_type){var r=M(e.value),d=\"\";if(!Q(e.pre_set_message)){d=decodeURI(e.pre_set_message);var y=t(\"title\").text();d=(d=Q(y)?d.replace(\/{title}\/g,\"\"):d.replace(\/{title}\/g,y)).replace(\/{url}\/g,window.location),d=encodeURIComponent(d)}s?(l=\"\",h=\"https:\/\/wa.me\/\"+r+\"?text=\"+d):(l=\"_blank\",h=q(e.use_whatsapp_web)?\"https:\/\/web.whatsapp.com\/send?phone=\"+r+\"&text=\"+d:\"https:\/\/wa.me\/\"+r+\"?text=\"+d)}else\"WeChat\"==a.channel_type?(l=\"\",h=\"javascript:;\"):\"Email\"==a.channel_type?(l=\"\",h=\"mailto:\"+e.value):\"Facebook_Messenger\"==a.channel_type?l=s?\"\":\"_blank\":\"SMS\"==a.channel_type?(l=\"\",h=\"sms:\"+e.value):\"Telegram\"==a.channel_type?(h=\"https:\/\/telegram.me\/\"+(h=T(e.value,\"@\")),l=\"_blank\"):\"Twitter\"==a.channel_type?h=\"https:\/\/twitter.com\/\"+t.trim(e.value):\"Instagram\"==a.channel_type?h=\"https:\/\/www.instagram.com\/\"+T(e.value,\"@\"):\"Instagram_DM\"==a.channel_type?h=\"https:\/\/ig.me\/m\/\"+T(e.value,\"@\"):\"Phone\"==a.channel_type?(l=\"\",h=\"tel:\"+t.trim(e.value)):\"Skype\"==a.channel_type?(l=\"\",h=\"skype:\"+t.trim(e.value)+\"?chat\"):\"Snapchat\"==a.channel_type?h=\"https:\/\/www.snapchat.com\/add\/\"+t.trim(e.value):\"Vkontakte\"==a.channel_type?h=\"https:\/\/vk.me\/\"+t.trim(e.value):\"Linkedin\"==a.channel_type?h=\"personal\"==e.link_type?\"https:\/\/www.linkedin.com\/in\/\"+t.trim(e.value):\"https:\/\/www.linkedin.com\/company\/\"+t.trim(e.value):\"Viber\"==a.channel_type?(\"\"!=e.viber_url?h=\"viber:\/\/pa?chatURI=\"+e.value:(h=T(e.value,\"+\"),isNaN(h)||(h=h.replace(\"+\",\"\"),navigator.userAgent.match(\/(iPod|iPhone|iPad)\/)&&(h=\"+\"+h),h=\"viber:\/\/chat?number=\"+h)),l=\"\"):\"TikTok\"==a.channel_type&&(h=\"https:\/\/www.tiktok.com\/@\"+(h=T(t.trim(e.value),\"@\")),l=\"\");return\"<a href='\"+h+\"' target='\"+l+\"'><span class='chaty-agent-icon'>\"+i+\"<\/span><span class='chaty-agent-title'>\"+o+\"<\/span><\/a>\"}(i,e,0,0,o,i.agent_title);c+=\"<div class='chaty-agent agent-info-\"+a+\"-\"+e.channel+\" agent-info-\"+n+\"'>\"+h+\"<\/div>\"}u+=\".agent-info-\"+a+\"-\"+e.channel+\".agent-info-\"+n+\" .chaty-agent-icon img { background-color: \"+i.agent_bg_color+\"; } \",(\"Instagram\"!=e.channel_type&&\"Instagram_DM\"!=e.channel_type||\"#ffffff\"!=i.agent_bg_color&&\"#fff\"!=i.agent_bg_color)&&(u+=\".agent-info-\"+a+\"-\"+e.channel+\".agent-info-\"+n+\" .chaty-agent-icon .color-element { fill: \"+i.agent_bg_color+\"; } \"),u+=\".agent-info-\"+a+\"-\"+e.channel+\".agent-info-\"+n+\" .chaty-custom-icon { background-color: \"+i.agent_bg_color+\"; } \"})),c+=\"<\/div>\",c+=\"<\/div>\",c+=\"<\/div>\",c+=\"<\/div>\",u+=\".chaty-agent-header.agent-info-\"+a+\"-\"+e.channel+\" { background-color: \"+e.header_bg_color+\"; color: \"+e.header_text_color+\" } \",u+=\".agent-info-\"+a+\"-\"+e.channel+\" .chaty-close-agent-list svg { fill: \"+e.header_text_color+\" } \",t(\"body\").append(c)}(e,a),o=S(e,W(e),c,a),(\"Instagram\"!=e.channel_type&&\"Instagram_DM\"!=e.channel_type||\"#ffffff\"!=e.icon_color&&\"#fff\"!=e.icon_color)&&(u+=\".chaty-agent-\"+a+\"-\"+e.channel+\" .color-element {fill: \"+e.icon_color+\"; color: \"+e.icon_color+\";}\"),u+=\".chaty-agent-\"+a+\"-\"+e.channel+\" .chaty-custom-icon { background-color: \"+e.icon_color+\";}\",u+=\".chaty-agent-\"+a+\"-\"+e.channel+\" .chaty-svg-img { background-color: \"+e.icon_color+\";}\",\"<div data-form='chaty-form-\"+a+\"-\"+e.channel+\"' class='chaty-channel chaty-agent-button chaty-agent-\"+a+\"-\"+e.channel+\" \"+e.channel+\"-channel\"+n+\"' id='\"+e.channel+\"-\"+a+\"-channel' data-id='\"+e.channel_type+\"-\"+a+\"' data-widget='\"+a+\"' data-channel='\"+e.channel+\"'>\"+o+\"<\/div>\"}}}function M(t){return t=(t=(t=(t=T(t,\"+\")).replace(\/ \/g,\"\")).replace(\/-\/g,\"\")).replace(\/_\/g,\"\")}function T(e,a){for(e=t.trim(e);e.charAt(0)==a;)e=e.substring(1);for(;e.charAt(e.length-1)==a;)e=e.substring(0,e.length-1);return e}function S(e,a,c,n){var i=\"\";if(q(e.is_agent))e.url=\"javascript:;\",e.target=\"\";else if(\"Whatsapp\"==e.channel_type)if(q(e.has_welcome_message))e.url=\"javascript:;\",e.target=\"\",i+=\" has-chaty-box chaty-whatsapp-btn-form\",function(e,a){const c=new Date;var n=c.getMinutes()<10?\"0\"+c.getMinutes():c.getMinutes();const i=(c.getHours()<10?\"0\"+c.getHours():c.getHours())+\":\"+n;var o=\"\",h=B(a);null==h&&(h=-1);var l=\"https:\/\/web.whatsapp.com\/send\",r=\"\";s?l=\"https:\/\/wa.me\/\"+e.value:(l=q(e.is_use_web_version)?\"https:\/\/web.whatsapp.com\/send\":\"https:\/\/wa.me\/\"+e.value,r=\"_blank\");o+=\"<div style='display:none;' class='chaty-outer-forms chaty-popup-whatsapp-form chaty-whatsapp-btn-form chaty-form-\"+a+\"' data-channel='\"+e.channel_type+\"' id='chaty-form-\"+a+\"-\"+e.channel_type+\"' data-widget='\"+a+\"' data-index='\"+h+\"'>\",o+=\"<div class='chaty-whatsapp-form'>\";var d=Q(e.wp_popup_headline)?\"\":e.wp_popup_headline;o+=\"<div class='chaty-whatsapp-header'>\",o+=\"<div class='header-wp-icon'>\",o+='<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"32\" height=\"33\" viewBox=\"0 0 32 33\" fill=\"none\"> <g filter=\"url(#filter0_f_9477_7201)\"> <path d=\"M9.95924 25.2858L10.3674 25.5276C12.0818 26.545 14.0475 27.0833 16.052 27.0842H16.0562C22.2122 27.0842 27.2221 22.0753 27.2247 15.919C27.2258 12.9357 26.0652 10.1303 23.9565 8.01998C22.9223 6.97924 21.6919 6.15397 20.3365 5.59195C18.9812 5.02992 17.5278 4.74231 16.0606 4.74576C9.89989 4.74576 4.88975 9.75407 4.88756 15.91C4.88453 18.0121 5.47648 20.0722 6.59498 21.852L6.86071 22.2742L5.73223 26.394L9.95924 25.2858ZM2.50586 29.5857L4.41235 22.6249C3.23657 20.5878 2.618 18.2768 2.61873 15.9091C2.62183 8.50231 8.64941 2.47656 16.0564 2.47656C19.6508 2.47839 23.0245 3.87717 25.5618 6.41629C28.0991 8.95542 29.4952 12.3305 29.4939 15.9199C29.4906 23.3262 23.4621 29.353 16.0562 29.353H16.0504C13.8016 29.3521 11.592 28.788 9.62923 27.7177L2.50586 29.5857Z\" fill=\"#B3B3B3\"\/> <\/g> <path d=\"M2.36719 29.447L4.27368 22.4862C3.09587 20.4442 2.47721 18.1278 2.48005 15.7705C2.48316 8.36364 8.51074 2.33789 15.9177 2.33789C19.5121 2.33972 22.8859 3.73849 25.4232 6.27762C27.9605 8.81675 29.3565 12.1918 29.3552 15.7812C29.3519 23.1875 23.3234 29.2143 15.9175 29.2143H15.9117C13.663 29.2134 11.4533 28.6493 9.49056 27.5791L2.36719 29.447Z\" fill=\"white\"\/> <path d=\"M15.715 3.84769C9.17146 3.84769 3.85 9.16696 3.84767 15.7051C3.84445 17.9377 4.47318 20.1257 5.66119 22.016L5.94343 22.4646L4.48888 27.2525L9.23469 25.663L9.66824 25.9199C11.4891 27.0005 13.5769 27.5719 15.7061 27.5731H15.7105C22.249 27.5731 27.5705 22.2532 27.573 15.7146C27.5779 14.1562 27.2737 12.6123 26.6778 11.1722C26.082 9.73214 25.2064 8.42458 24.1017 7.3252C23.0032 6.21981 21.6963 5.34329 20.2567 4.74637C18.8171 4.14946 17.2734 3.844 15.715 3.84769Z\" fill=\"#25D366\"\/> <path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M12.0858 9.60401C11.8138 9.00922 11.5276 8.99717 11.2692 8.98687L10.5736 8.97852C10.3316 8.97852 9.93846 9.0679 9.60608 9.42544C9.27369 9.78297 8.33594 10.6471 8.33594 12.4046C8.33594 14.1622 9.63628 15.8605 9.81747 16.0991C9.99866 16.3377 12.3277 20.0594 16.0162 21.4913C19.0813 22.6813 19.705 22.4446 20.3706 22.3852C21.0361 22.3257 22.5175 21.521 22.8197 20.6869C23.1219 19.8527 23.1221 19.138 23.0315 18.9886C22.9409 18.8391 22.6989 18.7503 22.3357 18.5716C21.9725 18.3928 20.1888 17.5287 19.8562 17.4094C19.5236 17.2901 19.2818 17.2308 19.0396 17.5883C18.7975 17.9459 18.1029 18.7501 17.8911 18.9886C17.6793 19.227 17.4679 19.2569 17.1047 19.0783C16.7416 18.8998 15.5731 18.5224 14.1867 17.3054C13.108 16.3585 12.3799 15.1892 12.1679 14.8318C11.9559 14.4745 12.1454 14.2809 12.3274 14.1029C12.4902 13.9428 12.6901 13.6858 12.8719 13.4773C13.0537 13.2688 13.1135 13.1197 13.2343 12.8817C13.3551 12.6437 13.2949 12.4346 13.2041 12.256C13.1133 12.0774 12.4083 10.3105 12.0858 9.60401Z\" fill=\"white\"\/> <defs> <filter id=\"filter0_f_9477_7201\" x=\"1.21611\" y=\"1.18682\" width=\"29.5678\" height=\"29.6889\" filterUnits=\"userSpaceOnUse\" color-interpolation-filters=\"sRGB\"> <feFlood flood-opacity=\"0\" result=\"BackgroundImageFix\"\/> <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"BackgroundImageFix\" result=\"shape\"\/> <feGaussianBlur stdDeviation=\"0.644873\" result=\"effect1_foregroundBlur_9477_7201\"\/> <\/filter> <\/defs> <\/svg>',o+=\"<\/div>\",o+=\"<div class='header-wp-title'>\",o+=d,o+=\"<\/div>\",o+=\"<div class='whatsapp-form-close-btn'>\",o+='<svg width=\"15\" height=\"9\" viewBox=\"0 0 15 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"> <path d=\"M1 1L7.31429 8L14 1\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path> <\/svg>',o+=\"<\/div>\",o+=\"<\/div>\",o+=\"<div class='chaty-whatsapp-body'>\",Q(e.chat_welcome_message)||(\"\"!=e.wp_popup_profile?(o+=\"<div class='chaty-whatsapp-content has-content'>\",o+=\"<div class='wp-profile-img'>\",o+=\"<img src='\"+e.wp_popup_profile+\"'>\",o+=\"<\/div>\"):o+=\"<div class='chaty-whatsapp-content'>\",o+=\"<div class='chaty-whatsapp-message'>\",o+=\"<div class='chaty-whatsapp-message-nickname'>\"+e.wp_popup_nickname+\"<\/div>\",o+=\"<div class='chaty-whatsapp-message-content'><\/div>\",o+=\"<div class='chaty-whatsapp-message-time'>\"+i+\"<\/div>\",o+=\"<\/div>\",o+=\"<\/div>\");o+=\"<\/div>\",o+=\"<div class='chaty-whatsapp-footer'>\",o+=\"<form action='\"+l+\"' target='\"+r+\"' class='whatsapp-chaty-form-\"+a+\" whatsapp-chaty-form \"+(q(e.is_default_open)?\"add-analytics\":\"\")+\"' data-widget='\"+a+\"' data-channel='\"+e.channel_type+\"' autocomplete='off'>\",o+=\"<div class='chaty-whatsapp-data'>\",o+=`<div class='chaty-whatsapp-field ${q(e.emoji_picker)?\"has_emoji\":\"\"}'>`,q(e.emoji_picker)&&(o+='<button type=\"button\" class=\"chaty-wp-emoji-input\"><span class=\"hide-cht-svg-bg\">\"+chaty_settings.lang.emoji_picker+\"<\/span><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"> <path d=\"M12 2C6.47 2 2 6.5 2 12C2 14.6522 3.05357 17.1957 4.92893 19.0711C5.85752 19.9997 6.95991 20.7362 8.17317 21.2388C9.38642 21.7413 10.6868 22 12 22C14.6522 22 17.1957 20.9464 19.0711 19.0711C20.9464 17.1957 22 14.6522 22 12C22 10.6868 21.7413 9.38642 21.2388 8.17317C20.7362 6.95991 19.9997 5.85752 19.0711 4.92893C18.1425 4.00035 17.0401 3.26375 15.8268 2.7612C14.6136 2.25866 13.3132 2 12 2ZM15.5 8C15.8978 8 16.2794 8.15804 16.5607 8.43934C16.842 8.72064 17 9.10218 17 9.5C17 9.89782 16.842 10.2794 16.5607 10.5607C16.2794 10.842 15.8978 11 15.5 11C15.1022 11 14.7206 10.842 14.4393 10.5607C14.158 10.2794 14 9.89782 14 9.5C14 9.10218 14.158 8.72064 14.4393 8.43934C14.7206 8.15804 15.1022 8 15.5 8ZM8.5 8C8.89782 8 9.27936 8.15804 9.56066 8.43934C9.84196 8.72064 10 9.10218 10 9.5C10 9.89782 9.84196 10.2794 9.56066 10.5607C9.27936 10.842 8.89782 11 8.5 11C8.10218 11 7.72064 10.842 7.43934 10.5607C7.15804 10.2794 7 9.89782 7 9.5C7 9.10218 7.15804 8.72064 7.43934 8.43934C7.72064 8.15804 8.10218 8 8.5 8ZM12 17.5C9.67 17.5 7.69 16.04 6.89 14H17.11C16.3 16.04 14.33 17.5 12 17.5Z\" fill=\"#CDD9E2\"\/> <\/svg><\/button>');o+=\"<label class='sr-only' for='chaty_whatsapp_input'>WhatsApp Message<\/label>\",o+=\"<input name='text' type='text' id='chaty_whatsapp_input' class='chaty-whatsapp-input' \/>\",o+=\"<button type='submit' class='chaty-whatsapp-button-button' >\",o+=\"<span class='hide-cht-svg-bg'>\"+chaty_settings.lang.whatsapp_button+\"<\/span>\",o+='<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" fill=\"none\"><g clip-path=\"url(#clip0_9452_6982)\"><path d=\"M18.5703 9.99996L2.66037 17.6603L5.60665 9.99996L2.66037 2.33963L18.5703 9.99996Z\" fill=\"white\" stroke=\"white\" stroke-width=\"1.6625\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path><path d=\"M8.24069 9.99947L3.07723 9.99992\" stroke=\"#C6D7E3\" stroke-width=\"1.6625\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path><\/g><defs><clipPath id=\"clip0_9452_6982\"><rect width=\"20\" height=\"20\" fill=\"white\"><\/rect><\/clipPath><\/defs><\/svg>',o+=\"<\/button>\",o+=\"<\/div>\",o+=\"<\/div>\",!s&&q(e.is_use_web_version)&&(o+=\"<input type='hidden' name='phone' value='\"+e.value+\"' \/>\");if(o+=\"<\/form>\",o+=\"<\/div>\",o+=\"<\/div>\",o+=\"<\/div>\",t(\"body\").append(o),t(\"#chaty-form-\"+a+\"-\"+e.channel_type+\" .chaty-whatsapp-message .chaty-whatsapp-message-content\").html(e.chat_welcome_message),!Q(e.pre_set_message)){var y=e.pre_set_message,g=t(\"title\").text();y=(y=Q(g)?y.replace(\/{title}\/g,\"\"):y.replace(\/{title}\/g,g)).replace(\/{url}\/g,window.location),t(\"#chaty-form-\"+a+\"-\"+e.channel_type+\" .chaty-whatsapp-input\").val(y)}t(\"#chaty-form-\"+a+\"-\"+e.channel_type+\" .chaty-whatsapp-input\").attr(\"placeholder\",e.input_placeholder),t(\"#chaty-form-\"+a+\"-\"+e.channel_type).show(),t(\"#chaty-form-\"+a+\"-\"+e.channel_type+\" .chaty-whatsapp-header\").css(\"background-color\",e.wp_popup_head_bg_color)}(e,n);else{var o=\"\";if(!Q(e.pre_set_message))o=decodeURI(e.pre_set_message),o=(o=Q(h=t(\"title\").text())?o.replace(\/{title}\/g,\"\"):o.replace(\/{title}\/g,h)).replace(\/{url}\/g,window.location),o=encodeURIComponent(o);s?(e.target=\"\",e.url=\"https:\/\/wa.me\/\"+e.value+\"?text=\"+o):(e.target=\"_blank\",q(e.is_use_web_version)?e.url=\"https:\/\/web.whatsapp.com\/send?phone=\"+e.value+\"&text=\"+o:e.url=\"https:\/\/wa.me\/\"+e.value+\"?text=\"+o)}else if(\"WeChat\"==e.channel_type)Q(e.qr_code_image_url)||(!function(e,a){var c=\"\",n=B(a);null==n&&(n=-1);var i=Q(e.wechat_header)?\"\":e.wechat_header+\": \";i+=e.value,c+=\"<div style='display:none;' class='chaty-outer-forms chaty-wechat-form chaty-form-\"+a+\"' data-channel='\"+e.channel_type+\"' id='chaty-form-\"+a+\"-\"+e.channel_type+\"' data-widget='\"+a+\"' data-index='\"+n+\"'>\",c+=\"<div class='chaty-form'>\",c+=\"<div class='chaty-form-body qr-code-body'>\",c+='<div class=\"qr-code-header\"><div class=\"qr-code-head-title\"><svg width=\"25\" height=\"22\" viewBox=\"0 0 25 22\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"> <path d=\"M17.2315 6.81844C17.6918 6.81844 18.1403 6.85385 18.5769 6.91286C17.7744 3.40752 14.092 0.751953 9.66605 0.751953C4.64999 0.751953 0.578125 4.15108 0.578125 8.34096C0.578125 10.7605 1.93541 12.8967 4.04806 14.2894L2.85601 16.6853L6.1135 15.2808C6.80985 15.5287 7.5416 15.7293 8.32057 15.8356C8.21435 15.3753 8.15533 14.9032 8.15533 14.4075C8.14353 10.2294 12.2154 6.81844 17.2315 6.81844ZM12.6875 4.16288C12.8363 4.16288 12.9836 4.19218 13.1211 4.24912C13.2586 4.30607 13.3835 4.38952 13.4887 4.49474C13.5939 4.59995 13.6773 4.72486 13.7343 4.86232C13.7912 4.99979 13.8205 5.14712 13.8205 5.29592C13.8205 5.44471 13.7912 5.59205 13.7343 5.72951C13.6773 5.86698 13.5939 5.99189 13.4887 6.0971C13.3835 6.20231 13.2586 6.28577 13.1211 6.34271C12.9836 6.39965 12.8363 6.42896 12.6875 6.42896C12.387 6.42896 12.0988 6.30958 11.8863 6.0971C11.6738 5.88461 11.5545 5.59642 11.5545 5.29592C11.5545 4.99542 11.6738 4.70722 11.8863 4.49474C12.0988 4.28225 12.387 4.16288 12.6875 4.16288ZM6.63281 6.44076C6.33231 6.44076 6.04412 6.32139 5.83163 6.1089C5.61914 5.89641 5.49977 5.60822 5.49977 5.30772C5.49977 5.00722 5.61914 4.71903 5.83163 4.50654C6.04412 4.29405 6.33231 4.17468 6.63281 4.17468C6.93331 4.17468 7.2215 4.29405 7.43399 4.50654C7.64648 4.71903 7.76585 5.00722 7.76585 5.30772C7.76585 5.60822 7.64648 5.89641 7.43399 6.1089C7.2215 6.32139 6.93331 6.44076 6.63281 6.44076Z\" fill=\"white\"\/> <path d=\"M24.7978 14.4102C24.7978 11.0583 21.4105 8.34375 17.2324 8.34375C13.0543 8.34375 9.66699 11.0583 9.66699 14.4102C9.66699 17.7621 13.0543 20.4767 17.2324 20.4767C17.9169 20.4767 18.5779 20.3823 19.2034 20.2407L23.2871 21.9992L21.8708 19.1666C23.6412 18.0572 24.7978 16.3577 24.7978 14.4102ZM14.9545 14.0326C14.7304 14.0326 14.5114 13.9661 14.325 13.8416C14.1387 13.7171 13.9935 13.5401 13.9077 13.3331C13.822 13.1261 13.7995 12.8983 13.8432 12.6785C13.887 12.4587 13.9949 12.2568 14.1533 12.0983C14.3118 11.9399 14.5137 11.832 14.7335 11.7882C14.9533 11.7445 15.1811 11.767 15.3881 11.8527C15.5951 11.9385 15.7721 12.0837 15.8966 12.27C16.0211 12.4564 16.0876 12.6754 16.0876 12.8995C16.0994 13.525 15.58 14.0326 14.9545 14.0326ZM19.4985 14.0326C19.198 14.0326 18.9098 13.9132 18.6973 13.7007C18.4848 13.4882 18.3654 13.2 18.3654 12.8995C18.3654 12.599 18.4848 12.3108 18.6973 12.0983C18.9098 11.8858 19.198 11.7665 19.4985 11.7665C19.799 11.7665 20.0872 11.8858 20.2997 12.0983C20.5121 12.3108 20.6315 12.599 20.6315 12.8995C20.6315 13.2 20.5121 13.4882 20.2997 13.7007C20.0872 13.9132 19.799 14.0326 19.4985 14.0326Z\" fill=\"white\"\/> <\/svg>'+i+'<\/div><div class=\"qr-code-hide-btn chaty-close-button\"><svg width=\"15\" height=\"9\" viewBox=\"0 0 15 9\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"> <path d=\"M1 1L7.31429 8L14 1\" stroke=\"white\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><\/path> <\/svg><\/div><\/div>',Q(e.wechat_qr_code_title)||(c+='<div class=\"qr-code-title\">'+e.wechat_qr_code_title+\":<\/div>\");c+=\"<div role='button' class='close-chaty-form is-whatsapp-btn'><div aria-hidden='true' class='chaty-close-button'><\/div><span class='hide-cht-svg-bg'>\"+chaty_settings.lang.hide_whatsapp_form+\"<\/span><\/div><\/div>\",c+=\"<div class='qr-code-box'><div class='qr-code-image'><img src='\"+e.qr_code_image_url+\"' alt='\"+e.title+\"' \/><\/div>\",c+=\"<\/div>\",c+=\"<\/div>\",c+=\"<\/div>\",t(\"body\").append(c),t(\"#chaty-form-\"+a+\"-\"+e.channel_type+\" .qr-code-header\").css(\"background-color\",e.wechat_header_color)}(e,n),e.url=\"javascript:;\",e.target=\"\",i+=\" has-chaty-box chaty-qr-code-form\");else if(\"Contact_Us\"==e.channel_type)!function(e,a){var c=\"\",n=B(a);null==n&&(n=-1);c+=\"<div style='display:none;' class='chaty-outer-forms chaty-contact-form-box chaty-form-\"+a+\"' data-channel='\"+e.channel_type+\"' id='chaty-form-\"+a+\"-\"+e.channel_type+\"' data-widget='\"+a+\"' data-index='\"+n+\"'>\",c+=\"<div class='chaty-form'>\",c+=\"<div class='chaty-form-body'>\",c+=\"<div role='button' class='close-chaty-form'><div aria-hidden='true' class='chaty-close-button'><\/div><span class='hide-cht-svg-bg'>\"+chaty_settings.lang.hide_whatsapp_form+\"<\/span><\/div>\",c+=\"<form class='chaty-ajax-contact-form' id='chaty-ajax-contact-form-\"+n+\"' method='post' data-channel='\"+e.channel_type+\"' data-widget='\"+a+\"' data-token='\"+e.widget_token+\"' data-index='\"+e.widget_index+\"' enctype='multipart\/form-data'>\",c+=\"<div class='chaty-contact-form-body'>\",c+=\"<div class='chaty-contact-form-title'><div class='form-title'>\"+e.contact_form_settings.contact_form_title+\"<\/div><div aria-hidden='true' class='chaty-close-button'><span class='hide-cht-svg-bg'>\"+chaty_settings.lang.hide_whatsapp_form+\"<\/span><svg width='15' height='9' viewBox='0 0 15 9' fill='none' xmlns='http:\/\/www.w3.org\/2000\/svg'> <path d='M1 1L7.31429 8L14 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><\/path><\/svg><\/div><\/div>\",c+=\"<div class='chaty-contact-inputs'>\",t.each(e.contact_fields,(function(e,n){c+=\"<div class='chaty-contact-input'>\";var i=q(n.is_required)?\"is-required\":\"\",s=\"\";q(n.is_required)&&(s=\"<span class='required_indicate'>*<\/span>\"),q(n.is_custom)?(c+=\"<label class='chaty-form-label' for='\"+n.field_dropdown+\"-\"+e+\"'>\"+n.field_label+\" \"+s+\"<\/label>\",c+=\"<input type='hidden' name='custom_fields[\"+e+\"][label_\"+n.field_dropdown+\"]' value='\"+n.field_label+\"'>\",c+=\"<input type='hidden' name='custom_fields[\"+e+\"][slug]' value='\"+n.field_dropdown+\"'>\",\"text\"==n.field_dropdown||\"url\"==n.field_dropdown||\"date\"==n.field_dropdown?c+=\"<input type='\"+n.field_dropdown+\"' class='chaty-input-field \"+i+\" field-\"+n.field_dropdown+\"' placeholder='\"+n.placeholder+\"' name='custom_fields[\"+e+\"][\"+n.field_dropdown+\"]' id='\"+n.field_dropdown+\"-\"+e+\"' \/>\":\"file\"==n.field_dropdown?c+=\"<input type='file' class='chaty-input-field \"+i+\" field-\"+n.field_dropdown+\"' name='custom_fields[\"+e+\"][\"+n.field_dropdown+\"]' id='\"+n.field_dropdown+\"-\"+e+\"' accept='.jpg,.jpeg,.png,.gif,.pdf,.doc,.docx,.ppt,.pptx,.pps,.ppsx,.odt,.xls,.xlsx,.mp3,.mp4,.wav,.mpg,.avi,.mov,.wmv,.3gp,.ogv' multiple\/>\":\"textarea\"==n.field_dropdown?c+=\"<textarea class='chaty-textarea-field \"+i+\" field-\"+n.field_dropdown+\"' placeholder='\"+n.placeholder+\"' name='custom_fields[\"+e+\"][\"+n.field_dropdown+\"]' id='\"+n.field_dropdown+\"-\"+e+\"' ><\/textarea>\":\"dropdown\"==n.field_dropdown?(c+=\"<select name='custom_fields[\"+e+\"][\"+n.field_dropdown+\"]' class='chaty-input-field \"+i+\"'>\",n.dropdown_placeholder&&(c+=\"<option value=''>\"+n.dropdown_placeholder+\"<\/option>\"),t.each(n.dropdown_option,(function(t,e){e&&(c+=\"<option value='\"+e+\"'>\"+e+\"<\/option>\")})),c+=\"<\/select>\"):\"textblock\"==n.field_dropdown?c+=n.placeholder:\"number\"==n.field_dropdown&&(c+=\"<input type='tel' class='chaty-input-field \"+i+\" field-\"+n.field_dropdown+\"' placeholder='\"+n.placeholder+\"' name='custom_fields[\"+e+\"][\"+n.field_dropdown+\"]' id='\"+n.field_dropdown+\"-\"+e+\"' \/>\")):\"textarea\"==n.type?(Q(n.title)?c+=\"<label class='sr-only' for='\"+n.field+\"-\"+a+\"'>\"+n.field+\"<\/label>\":c+=\"<label class='chaty-form-label' for='\"+n.field+\"-\"+a+\"'>\"+n.title+\" \"+s+\"<\/label>\",c+=\"<textarea type='\"+n.type+\"' class='chaty-textarea-field \"+i+\" field-\"+n.field+\"' placeholder='\"+n.placeholder+\"' name='\"+n.field+\"' id='\"+n.field+\"-\"+a+\"' ><\/textarea>\"):(Q(n.title)?c+=\"<label class='sr-only' for='\"+n.field+\"-\"+a+\"'>\"+n.field+\"<\/label>\":c+=\"<label class='chaty-form-label' for='\"+n.field+\"-\"+a+\"'>\"+n.title+\" \"+s+\"<\/label>\",c+=\"<input type='\"+n.type+\"' class='chaty-input-field \"+i+\" field-\"+n.field+\"' placeholder='\"+n.placeholder+\"' name='\"+n.field+\"' id='\"+n.field+\"-\"+a+\"' \/>\",\"email\"==n.field&&(c+='<p id=\"email_suggestion'+a+'\" class=\"email_suggestion\"><\/p>')),c+=\"<\/div>\"})),q(e.enable_recaptcha)&&(Q(e.v2_site_key)||(c+=\"<div class='chaty-contact-input'>\",c+=\"<div class='front-google-captcha' id='front_recaptcha_\"+n+\"'><\/div>\",c+=\"<\/div>\"),Q(e.v3_site_key)||(c+=\"<div class='chaty-contact-input'>\",c+=\"<div class='front-google-captcha' id='front_recaptcha_\"+n+\"'><\/div>\",c+=\"<\/div>\"));c+=\"<\/div>\",c+=\"<div class='chaty-contact-form-button'><button type='submit' id='chaty-submit-button-\"+a+\"' class='chaty-submit-button'>\"+e.contact_form_settings.button_text+\"<span class='chaty-loader'><span class='dashicons dashicons-update'><\/span><\/span><\/button><\/div>\",c+=\"<\/div>\",c+=\"<input type='hidden' name='nonce' value='\"+e.widget_token+\"'>\",c+=\"<input type='hidden' name='action' value='chaty_front_form_save_data'>\",c+='<input type=\"hidden\" name=\"channel\" value=\"'+e.channel_type+'\">',c+='<input type=\"hidden\" name=\"widget\" value=\"'+a+'\">',c+='<input type=\"hidden\" name=\"ref_url\" value=\"'+window.location.href+'\">',c+='<input type=\"hidden\" name=\"token\" value=\"'+googleV3Token+'\">',c+='<input type=\"hidden\" name=\"page_id\" value=\"'+chaty_settings.page_id+'\">',c+='<input type=\"hidden\" name=\"page_title\" value=\"'+x()+'\">';var i=t(\".g-recaptcha-response\").length?t(\".g-recaptcha-response\").val():\"\";c+='<input type=\"hidden\" name=\"v2token\" value=\"'+i+'\">',q(e.enable_recaptcha)&&(Q(e.v2_site_key)||(c+=\"<input type='hidden' id='v2_site_key' class='v2_site_key' value='\"+e.v2_site_key+\"'>\"),Q(e.v3_site_key)||(c+=\"<input type='hidden' id='v3_site_key' class='v3_site_key' value='\"+e.v3_site_key+\"'>\"));c+=\"<\/form>\",c+=\"<\/div>\",c+=\"<\/div>\",c+=\"<\/div>\",t(\"body\").append(c)}(e,n),e.url=\"javascript:;\",e.target=\"\",i+=\" has-chaty-box chaty-contact-us-form\";else if(\"Email\"==e.channel_type){if(!Q(e.mail_subject)){var h,l=decodeURI(e.mail_subject);l=(l=Q(h=t(\"title\").text())?l.replace(\/{title}\/g,\"\"):l.replace(\/{title}\/g,h)).replace(\/{url}\/g,window.location),l=encodeURIComponent(l),e.url+=\"?subject=\"+l}}else\"Viber\"==e.channel_type?(\"\"!=e.viber_url?e.url=\"viber:\/\/pa?chatURI=\"+e.value:(e.value=T(e.value,\"+\"),s&&!isNaN(e.value)&&navigator.userAgent.match(\/(iPod|iPhone|iPad)\/)&&(e.value=\"+\"+e.value),e.url=\"viber:\/\/chat?number=\"+e.value),e.target=\"\"):\"Vkontakte\"==e.channel_type?e.url=\"https:\/\/vk.me\/\"+t.trim(e.value):\"Waze\"==e.channel_type&&(e.url=decodeURI(t.trim(e.value)));m=\"Link\"==e.channel||\"Custom_Link\"==e.channel||\"Custom_Link_3\"==e.channel||\"Custom_Link_4\"==e.channel||\"Custom_Link_5\"==e.channel?Q(e.hover_text)?e.channel:e.hover_text:e.channel;var r=\"\";return Q(e.click_event)||(r='onclick=\"'+e.click_event+'\"',e.target=\"\",e.url=\"javascript:;\"),\"<a href='\"+e.url+\"' \"+r+\" target='\"+e.target+\"' rel='nofollow noopener' aria-label='\"+m+\"' class='chaty-tooltip \"+e.channel_type+\"-channel chaty-link chaty-\"+e.channel_type.toLowerCase()+\"-channel pos-\"+c+i+\"' data-form='chaty-form-\"+n+\"-\"+e.channel_type+\"' data-hover='\"+e.hover_text+\"'>\"+a+\"<\/a>\"}function B(e){var a=null;return n.length&&t.each(n,(function(t,c){c.id==e&&(a=t)})),a}function Q(e){return null==e||\"\"==e||\"\"==t.trim(e)}function W(t){return\"\"!=t.custom_image_url&&\"null\"!=t.custom_image_url?\"<span class='chaty-icon channel-icon-\"+t.channel+\"'><span class='chaty-svg chaty-svg-img'><img src='\"+t.custom_image_url+\"' alt='\"+t.hover_text+\"' \/><\/span><\/span>\":\"<span class='chaty-icon channel-icon-\"+t.channel+\"'><span class='chaty-svg'>\"+t.svg_icon+\"<\/span><\/span>\"}function L(e){return\"\"==e||\"\"==t.trim(e)||null==e||\"null\"==e}function U(t){return\"custom\"==t.position?t.custom_position:t.position}function z(t){return\"vertical\"!=t.settings.icon_view?\"top\":\"right\"==U(t.settings)?\"left\":\"right\"}function D(){y&&t(\".on-chaty-exit-intent\").length&&t(\".on-chaty-exit-intent\").each((function(){var e=t(this).data(\"id\");t(this).removeClass(\"on-chaty-exit-intent\"),E(e),t(\"#chaty-widget-\"+e+\" .chaty-widget\").append(\"<div class='chaty-exit-intent'><\/div>\"),setTimeout((function(){t(\".chaty-exit-intent\").addClass(\"animate\"),setTimeout((function(){t(\".chaty-exit-intent\").removeClass(\"animate\")}),2500)}),500)}))}function E(e){j(e),t(\".chaty-widget-\"+e).removeClass(\"on-chaty-delay\"),t(\".chaty-widget-\"+e).removeClass(\"on-chaty-exit-intent\"),t(\".chaty-widget-\"+e).removeClass(\"on-chaty-scroll\"),t(\".chaty.on-chaty-delay\").length||(clearInterval(a),l=!1),t(\".chaty.on-chaty-exit-intent\").length||(y=!1),t(\".chaty.on-chaty-scroll\").length||(d=!1)}function A(t){for(t=t.toString();t.length<2;)t=\"0\"+t;return t}function q(t){return\"1\"==t||1==t||1==t||\"true\"==t||\"yes\"==t||\"on\"==t}function H(t,e){if(isNaN(e)){var a=new Date(t.toLocaleString(\"en-US\",{timeZone:e})),c=t.getTime()-a.getTime();return new Date(t.getTime()-c)}var n=new Date;if(n=n.toLocaleString(\"en-US\",{timeZone:\"UTC\"}),n=new Date(n),-1!=e.indexOf(\"+\")){var i=e.replace(\"+\",\"\"),s=parseInt(i),o=60*parseFloat(i%s);(o=n.getUTCMinutes()+o)>59&&(s+=parseInt(o\/60),o%=60),n.setUTCHours(n.getUTCHours()+s,o)}else if(-1!=e.indexOf(\"-\")){i=e.replace(\"-\",\"\"),s=parseInt(i),o=60*parseFloat(i%s);(o=n.getUTCMinutes()-o)<0&&(s-=parseInt(o\/60),o%=60),n.setUTCHours(n.getUTCHours()-s,-o)}c=t.getTime()-n.getTime();return new Date(t.getTime()-c)}function P(){return i=\"\",\"undefined\"!=typeof Storage&&null!=window.sessionStorage.getItem(\"chaty_user_country_code\")?i=window.sessionStorage.getItem(\"chaty_user_country_code\"):X(\"chaty_user_country_code\")&&(i=V(\"chaty_user_country_code\")),i}function N(t,e){var a=V(\"chatyWidget_\"+t),c=[];null!=a&&\"\"!=a&&(c=JSON.parse(a));var n=!1;if(c.length>0)for(var i=0;i<c.length;i++)c[i].k==e&&(n=!0,c[i].v=new Date);n||c.push({k:e,v:new Date}),R(\"chatyWidget_\"+t,a=JSON.stringify(c),\"7\")}function O(){t(\".chaty-widget.default-open.has-bg-blur-effect\").length&&t(\".chaty-widget.default-open.has-bg-blur-effect\").each((function(){N(t(this).closest(\".chaty\").data(\"id\"),\"c-widget\")}))}function G(t,e){var a=function(t,e){var a=V(\"chatyWidget_\"+t),c=[];if(null!=a&&\"\"!=a&&(c=JSON.parse(a)),c.length>0)for(var n=0;n<c.length;n++)if(c[n].k==e)return c[n].v;return null}(t,e);if(null!=a&&\"\"!=a){a=new Date(a);var c=Math.abs(new Date-a);return Math.floor(c\/864e5)>=2}return!0}function R(t,e,a){var c=new Date;c.setTime(c.getTime()+24*a*60*60*1e3);var n=\"expires=\"+c.toUTCString();document.cookie=t+\"=\"+e+\"; \"+n+\"; path=\/; SameSite=Lax\"}function V(t){t+=\"=\";for(var e=document.cookie.split(\";\"),a=0;a<e.length;a++){for(var c=e[a];\" \"==c.charAt(0);)c=c.substring(1);if(0==c.indexOf(t))return c.substring(t.length,c.length)}return null}function X(t){var e=V(t);return\"\"!=e&&null!==e}t(document).ready((function(){var a=new RegExp(\"(googlebot\/|bot|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww|httpunit|nutch|phpcrawl|msnbot|jyxobot|FAST-WebCrawler|FAST Enterprise Crawler|biglotron|teoma|convera|seekbot|gigablast|exabot|ngbot|ia_archiver|GingerCrawler|webmon |httrack|webcrawler|grub.org|UsineNouvelleCrawler|antibot|netresearchserver|speedy|fluffy|bibnum.bnf|findlink|msrbot|panscient|yacybot|AISearchBot|IOI|ips-agent|tagoobot|MJ12bot|dotbot|woriobot|yanga|buzzbot|mlbot|yandexbot|purebot|Linguee Bot|Voyager|CyberPatrol|voilabot|baiduspider|citeseerxbot|spbot|twengabot|postrank|turnitinbot|scribdbot|page2rss|sitebot|linkdex|Adidxbot|blekkobot|ezooms|dotbot|Mail.RU_Bot|discobot|heritrix|findthatfile|europarchive.org|NerdByNature.Bot|sistrix crawler|ahrefsbot|Aboundex|domaincrawler|wbsearchbot|summify|ccbot|edisterbot|seznambot|ec2linkfinder|gslfbot|aihitbot|intelium_bot|facebookexternalhit|yeti|RetrevoPageAnalyzer|lb-spider|sogou|lssbot|careerbot|wotbox|wocbot|ichiro|DuckDuckBot|lssrocketcrawler|drupact|webcompanycrawler|acoonbot|openindexspider|gnam gnam spider|web-archive-net.com.bot|backlinkcrawler|coccoc|integromedb|content crawler spider|toplistbot|seokicks-robot|it2media-domain-crawler|ip-web-crawler.com|siteexplorer.info|elisabot|proximic|changedetection|blexbot|arabot|WeSEE:Search|niki-bot|CrystalSemanticsBot|rogerbot|360Spider|psbot|InterfaxScanBot|Lipperhey SEO Service|CC Metadata Scaper|g00g1e.net|GrapeshotCrawler|urlappendbot|brainobot|fr-crawler|binlar|SimpleCrawler|Livelapbot|Twitterbot|cXensebot|smtbot|bnf.fr_bot|A6-Indexer|ADmantX|Facebot|Twitterbot|OrangeBot|memorybot|AdvBot|MegaIndex|SemanticScholarBot|ltx71|nerdybot|xovibot|BUbiNG|Qwantify|archive.org_bot|Applebot|TweetmemeBot|crawler4j|findxbot|SemrushBot|yoozBot|lipperhey|y!j-asr|Domain Re-Animator Bot|AddThis)\",\"i\"),c=navigator.userAgent;a.test(c)&&(h=!0),s?t(\"body\").addClass(\"cht-in-mobile\"):t(\"body\").addClass(\"cht-in-desktop\"),q(chaty_settings.has_chatway)&&t(\"body\").addClass(\"csaas-has-chatway\"),\"undefined\"==typeof chaty_settings?(console.log(\"Chaty settings doesn't exists\"),chatyInterval=setInterval((function(){\"object\"==typeof chaty_settings&&(clearInterval(chatyInterval),\"object\"!=typeof chaty_settings||\"on\"==chaty_settings.data_analytics_settings&&\"off\"!=chaty_settings.data_analytics_settings||(h=!0),q(chaty_settings.has_chatway)&&t(\"body\").addClass(\"csaas-has-chatway\"),n=chaty_settings.chaty_widgets,b())}),1e3)):0==chaty_settings.chaty_widgets.length?console.log(\"Chaty widget doesn't exists\"):(n=chaty_settings.chaty_widgets,b(),(\"object\"==typeof chaty_settings&&\"on\"!=chaty_settings.data_analytics_settings||\"off\"==chaty_settings.data_analytics_settings)&&(h=!0)),t(window).height()>t(window).width()?t(\"body\").addClass(\"cht-portrait\").removeClass(\"cht-landscape\"):t(\"body\").addClass(\"cht-landscape\").removeClass(\"cht-portrait\"),t(document).on(\"click\",\"html, body\",(function(e){t(\".chaty-popup-whatsapp-form.active\").length&&t(\".chaty-popup-whatsapp-form.active\").each((function(){var e=t(this).data(\"widget\"),a=G(e,\"c-Whatsapp\");Q(e)&&0!=e||!a||N(e,\"c-Whatsapp\")})),t(\".form-open\").removeClass(\"form-open\"),t(\".chaty-outer-forms\").removeClass(\"active\"),t(\".chaty .chaty-widget.chaty-no-close-button:not(.has-single)\").addClass(\"chaty-open\"),t(\".chaty .chaty-widget\").hasClass(\"chaty-open\")&&(t(\".chaty .chaty-widget:not(.chaty-no-close-button)\").removeClass(\"chaty-open\"),t(\"body\").removeClass(\"add-bg-blur-effect\")),t(\"body\").removeClass(\"add-bg-blur-effect\"),R(\"hide-bg-blur-effect\",!0,365),O()})),t(document).on(\"click\",\".chaty, .chaty-outer-forms\",(function(t){t.stopPropagation()})),t(document).on(\"click\",\".chaty.form-open .chaty-i-trigger.single-channel a\",(function(e){t(\"body\").removeClass(\"add-bg-blur-effect\")})),t(document).on(\"click\",\".chaty.form-open .chaty-i-trigger.single-channel .chaty-cta-close\",(function(e){t(\"body\").removeClass(\"add-bg-blur-effect\")})),t(document).on(\"click\",\".chaty-close-view-list\",(function(){t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(\"body\").removeClass(\"add-bg-blur-effect\"),R(\"hide-bg-blur-effect\",!0,365),O()})),t(document).on(\"submit\",\".whatsapp-chaty-form\",(function(){if(t(this).hasClass(\"form-google-analytics\")){var e=\"Whatsapp\";if(window.hasOwnProperty(\"gtag\")&&gtag(\"event\",\"chaty_\"+e,{eventCategory:\"chaty_\"+e,event_action:\"chaty_\"+e,method:\"chaty_\"+e}),window.hasOwnProperty(\"ga\")){var a=window.ga.getAll()[0];a&&a.send(\"event\",\"click\",{eventCategory:\"chaty_\"+e,eventAction:\"chaty_\"+e,method:\"chaty_\"+e})}}var c=t(this).data(\"widget\"),n=t(this).data(\"channel\"),i=G(c,\"c-\"+n);if((!Q(c)||0==c)&&i){N(c,\"c-\"+n);var o=t(\"#chaty-widget-\"+c).data(\"nonce\");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:c,userId:c,isMobile:s,channel:n,nonce:o,action:\"update_chaty_channel_click\"},dataType:\"json\",method:\"post\"})}t(\"#chaty-widget-\"+c).length&&(t(\"#chaty-widget-\"+c).removeClass(\"form-open\"),t(this).closest(\".chaty-outer-forms\").removeClass(\"active\"),t(\"#chaty-widget-\"+c).find(\".chaty-widget\").hasClass(\"cssas-no-close-button\")&&t(\"#chaty-widget-\"+c).find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\")),t(\"body\").hasClass(\"add-bg-blur-effect\")&&(t(\"body\").removeClass(\"add-bg-blur-effect\"),O())})),t(document).on(\"click\",\".chaty-close-button, .chaty-close-agent-list, .whatsapp-form-close-btn\",(function(e){e.preventDefault(),e.stopPropagation();var a=t(this).closest(\".chaty-outer-forms\").data(\"widget\");if(!Q(a)||0==a){if(t(\"#chaty-widget-\"+a).length&&(t(\"#chaty-widget-\"+a).removeClass(\"form-open\"),t(this).closest(\".chaty-outer-forms\").removeClass(\"active\"),t(\"#chaty-widget-\"+a).find(\".chaty-widget\").hasClass(\"chaty-no-close-button\")&&t(\"#chaty-widget-\"+a).find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\")),t(this).closest(\".chaty-whatsapp-btn-form\").length){var c=t(this).closest(\".chaty-outer-forms\").data(\"channel\");if(!Q(c)){var n=G(a,\"c-\"+c);n&&N(a,\"c-\"+c)}G(a,\"v-widget\")&&j(a)}t(this).hasClass(\"whatsapp-form-close-btn\")&&(n=G(a,\"c-Whatsapp\"),Q(a)&&0!=a||!n||N(a,\"c-Whatsapp\"))}t(\"body\").removeClass(\"add-bg-blur-effect\")})),t(document).on(\"keypress\",'.chaty-contact-input input[type=\"tel\"]',(function(e){var a=e.which?e.which:e.keyCode;return 43==a&&\"\"==t(this).val()||a>=48&&a<=57})),t(document).on(\"change\",'.chaty-contact-input input[type=\"tel\"]',(function(){var e=new RegExp(\/^(\\+)?\\d*$\/),a=t(this).val();e.test(a)||t(this).val(\"\")})),t(document).on(\"click\",\"a.chaty-qr-code-form\",(function(e){e.preventDefault();var a=t(this).data(\"form\");if(!Q(a)&&t(\"#\"+a).length){var c=t(this).html();t(\"#\"+a).hasClass(\"active\")?(t(this).closest(\".chaty\").find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\"),t(this).closest(\".chaty\").removeClass(\"form-open\"),t(\"#\"+a).removeClass(\"active\"),t(\"body\").removeClass(\"add-bg-blur-effect\")):(t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(this).closest(\".chaty\").addClass(\"form-open\"),t(\"#\"+a).addClass(\"active\"),c=t(this).closest(\".chaty\").find(\".chaty-widget .chaty-cta-close\").find(\"button\").html(),t(this).closest(\".chaty\").find(\".open-chaty-channel\").html(c))}})),t(document).on(\"click\",\"a.chaty-contact-us-form\",(function(e){e.preventDefault();var a=t(this).data(\"form\");Q(a)||t(\"#\"+a).length&&(\"\"!=googleV3Token&&(googleV3Token=\"\",refreshG3Token()),t(\"#\"+a).hasClass(\"active\")?(t(this).closest(\".chaty\").find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\"),t(this).closest(\".chaty\").removeClass(\"form-open\"),t(\"#\"+a).removeClass(\"active\"),t(\"body\").removeClass(\"add-bg-blur-effect\")):(t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(this).closest(\".chaty\").addClass(\"form-open\"),t(\"#\"+a).addClass(\"active\"),t(\"#\"+a).find(\".chaty-ajax-success-message\").remove(),t(\"#\"+a).find(\".chaty-ajax-error-message\").remove(),t(\"#\"+a).find(\".has-chaty-error\").removeClass(\"has-chaty-error\"),buttonHtml=t(this).closest(\".chaty\").find(\".chaty-widget .chaty-cta-close\").find(\"button\").html(),t(this).closest(\".chaty\").find(\".open-chaty-channel\").html(buttonHtml)))})),t(document).on(\"click\",\"a.chaty-whatsapp-btn-form\",(function(e){e.preventDefault();var a=t(this).data(\"form\");if(!Q(a)&&t(\"#\"+a).length){if(t(\"#\"+a).hasClass(\"active\"))t(this).closest(\".chaty\").find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\"),t(this).closest(\".chaty\").removeClass(\"form-open\"),t(\"#\"+a).removeClass(\"active\"),t(\"body\").removeClass(\"add-bg-blur-effect\"),setTimeout((function(){t(\"body\").removeClass(\"add-bg-blur-effect\")}),100);else{t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(this).closest(\".chaty\").addClass(\"form-open\"),t(\"#\"+a).addClass(\"active\");var c=t(this).closest(\".chaty\").find(\".chaty-widget .chaty-cta-close\").find(\"button\").html();t(this).closest(\".chaty\").find(\".chaty-widget\").find(\".open-chaty-channel\").html(c)}setTimeout((function(){t(\".chaty-whatsapp-btn-form.active .chaty-whatsapp-input\").focus()}),100)}})),t(document).on(\"click\",\".chaty-channel.chaty-agent-button\",(function(e){e.preventDefault();var a=t(this).data(\"form\");if(!Q(a)&&t(\"#\"+a).length)if(t(this).closest(\".chaty\").find(\".chaty-widget\").hasClass(\"has-single\"))t(this).closest(\".chaty\").hasClass(\"form-open\")?(t(this).closest(\".chaty\").find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\"),t(this).closest(\".chaty\").removeClass(\"form-open\"),t(\"#\"+a).removeClass(\"active\"),t(\"body\").removeClass(\"add-bg-blur-effect\")):(c=t(this).closest(\".chaty\").find(\".chaty-widget .chaty-cta-close\").find(\"button\").html(),t(\"#\"+a).addClass(\"is-active\"),t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(this).closest(\".chaty\").addClass(\"form-open\"),t(\"#\"+a).addClass(\"active\"),t(this).closest(\".chaty\").find(\".open-chaty-channel\").html(c));else{var c=t(this).html();t(\"#\"+a).addClass(\"is-active\"),t(this).closest(\".chaty\").find(\".chaty-widget\").removeClass(\"chaty-open\"),t(this).closest(\".chaty\").addClass(\"form-open\"),t(\"#\"+a).addClass(\"active\"),c=t(this).closest(\".chaty\").find(\".chaty-widget .chaty-cta-close\").find(\"button\").html(),t(this).closest(\".chaty\").find(\".open-chaty-channel\").html(c)}})),t(document).on(\"click\",\".chaty-channel a.has-gae\",(function(a){var c=t(this).closest(\".chaty-channel\").data(\"channel\");if(c!==e&&\"\"!=c&&null!=c&&(window.hasOwnProperty(\"gtag\")&&gtag(\"event\",\"chaty_\"+c,{eventCategory:\"chaty_\"+c,event_action:\"chaty_\"+c,method:\"chaty_\"+c}),window.hasOwnProperty(\"ga\"))){var n=window.ga.getAll()[0];n&&n.send(\"event\",\"click\",{eventCategory:\"chaty_\"+c,eventAction:\"chaty_\"+c,method:\"chaty_\"+c})}})),t(document).on(\"mouseover\",\".chaty-widget.has-single .chaty-channel a.has-on-hover[data-hover]\",(function(){t(this).find(\".on-hover-text\").text(t(this).data(\"hover\"))})).on(\"mouseleave\",\".chaty-widget.has-single .chaty-channel a.has-on-hover[data-text]\",(function(){t(this).find(\".on-hover-text\").html(t(this).data(\"text\"))})),t(document).on(\"submit\",\".whatsapp-chaty-form.has-form-gae\",(function(){var a=t(this).data(\"widget\"),c=t(\"#Whatsapp-\"+a+\"-channel\").data(\"channel\");if(c!==e&&\"\"!=c&&null!=c&&(window.hasOwnProperty(\"gtag\")&&gtag(\"event\",\"chaty_whatsapp_redirect\",{eventCategory:\"chaty_whatsapp_redirect\",event_action:\"chaty_whatsapp_redirect\",method:\"chaty_whatsapp_redirect\"}),window.hasOwnProperty(\"ga\"))){var n=window.ga.getAll()[0];n&&n.send(\"event\",\"click\",{eventCategory:\"chaty_whatsapp_redirect\",eventAction:\"chaty_whatsapp_redirect\",method:\"chaty_whatsapp_redirect\"})}})),t(document).on(\"click\",\".chaty-i-trigger:not(.single-channel)\",(function(){t(this).closest(\".chaty\").hasClass(\"form-open\")?(t(this).closest(\".chaty\").removeClass(\"form-open\"),t(this).closest(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\")):t(this).closest(\".chaty-widget\").toggleClass(\"chaty-open\"),t(\".chaty-outer-forms.active\").each((function(){t(this).removeClass(\"active\");var e=t(this).data(\"widget\");t(\"#chaty-widget-\"+e).removeClass(\"form-open\")})),t(this).closest(\".chaty\").find(\".chaty-widget\").hasClass(\"chaty-no-close-button\")&&t(this).closest(\".chaty\").find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\")})),t(document).on(\"click\",\".chaty-i-trigger.single-channel .chaty-cta-close\",(function(){if(t(this).closest(\".chaty\").hasClass(\"form-open\")){t(this).closest(\".chaty\").removeClass(\"form-open\");var e=t(this).closest(\".chaty\").data(\"id\");t(\"#chaty-form-\"+e+\"-Whatsapp\").length&&t(\"#chaty-form-\"+e+\"-Whatsapp\").hasClass(\"active\")&&(clickStatus=G(e,\"c-Whatsapp\"),Q(e)&&0!=e||!clickStatus||N(e,\"c-Whatsapp\"))}t(\".chaty-outer-forms.active\").each((function(){t(this).removeClass(\"active\");var e=t(this).data(\"widget\");t(\"#chaty-widget-\"+e).removeClass(\"form-open\")}))})),s||t(document).on(\"mouseover\",\"body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)\",(function(){t(this).closest(\".chaty-widget\").hasClass(\"chaty-open\")||t(this).closest(\".chaty-widget\").hasClass(\"on-chaty-widget\")||(t(this).closest(\".chaty-widget\").addClass(\"on-chaty-widget\"),t(this).find(\".chaty-cta-main\").trigger(\"click\"))})).on(\"mouseleave\",\"body:not(.chaty-in-mobile) .chaty.open-on-hover .chaty-i-trigger:not(.single-channel)\",(function(){t(this).closest(\".chaty-widget\").hasClass(\"chaty-open\")||t(this).closest(\".chaty-widget\").removeClass(\"on-chaty-widget\")})),t(document).on(\"click\",\".chaty-channel.single a\",(function(){var e=t(this).closest(\".chaty\").data(\"id\");t(this).closest(\".chaty\").hasClass(\"first_click\")&&t(this).closest(\".chaty-channel\").removeClass(\"active\"),_(e)})),t(document).on(\"click\",\".chaty-chatway-channel\",(function(){\"object\"==typeof window.$chatway&&window.$chatway.openChatwayWidget()})),t(document).on(\"click\",\".chaty-channel a, .chaty-channel button\",(function(e){var a,c,n=[],i=0,o=t(this).closest(\".chaty\").data(\"id\");if(void 0!==o&&void 0!==t(\"#chaty-widget-\"+o).data(\"identifier\")){var l=t(\"#chaty-widget-\"+o).data(\"user\");if(_(o),t(this).closest(\".chaty-channel\").hasClass(\"chaty-cta-main\")||t(this).closest(\".chaty-channel\").hasClass(\"chaty-cta-close\")){if(t(\"#chaty-form-\"+o+\"-Whatsapp\").length&&t(\"#chaty-form-\"+o+\"-Whatsapp\").hasClass(\"active\")&&(a=G(o,\"c-Whatsapp\"),Q(o)&&0!=o||!a||N(o,\"c-Whatsapp\")),a=G(o,\"c-widget\"),t(\"#chaty-widget-\"+o).find(\".ch-pending-msg\").remove(),a&&(N(o,\"c-widget\"),t(this).closest(\".chaty-channel\").hasClass(\"chaty-cta-main\"))){n=[],t(\"#chaty-widget-\"+o).hasClass(\"chaty-has-chat-view\")?t(\".chaty-chat-view.chaty-chat-view-\"+o+\" .chaty-view-channels\").find(\".chaty-channel\").each((function(){c=t(this).data(\"channel\"),(a=G(o,\"v-\"+c))&&void 0!==c&&(N(o,\"v-\"+c),n.push(c))})):t(\"#chaty-widget-\"+o+\" .chaty-channel-list\").find(\".chaty-channel\").each((function(){c=t(this).data(\"channel\"),(a=G(o,\"v-\"+c))&&void 0!==c&&(N(o,\"v-\"+c),n.push(c))}));var r=t(\"#chaty-widget-\"+o).data(\"nonce\");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channels:n,isSingle:0,nonce:r,action:\"update_chaty_widget_click\"},dataType:\"json\",method:\"post\"})}t(\"#chaty-widget-\"+o).hasClass(\"first_click\")&&(t(\"#chaty-widget-\"+o+\" .chaty-cta-main\").removeClass(\"active\"),t(\"#chaty-widget-\"+o+\" .chaty-cta-main\").removeClass(\"chaty-tooltip\"))}else if(t(this).closest(\".chaty-channel\").hasClass(\"single\")){t(\"#chaty-widget-\"+o).find(\".ch-pending-msg\").remove(),a=G(o,\"c-widget\");r=t(\"#chaty-widget-\"+o).data(\"nonce\");a&&(N(o,\"c-widget\"),i=0,n=[],c=t(this).closest(\".chaty-channel\").data(\"channel\"),(a=G(o,\"c-\"+c))&&(n.push(c),i=1),h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channels:n,isSingle:i,nonce:r,action:\"update_chaty_widget_click\"},dataType:\"json\",method:\"post\"})),t(\"#chaty-widget-\"+o).hasClass(\"first_click\")&&(t(\"#chaty-widget-\"+o+\" .chaty-tooltip\").removeClass(\"chaty-tooltip\"),t(\"#chaty-widget-\"+o+\" .single-channel a\").addClass(\"chaty-tooltip\"))}else if(t(this).hasClass(\"chaty-link\")&&(c=t(this).closest(\".chaty-channel\").data(\"channel\"),a=G(o,\"c-\"+c))){N(o,\"c-\"+c);r=t(\"#chaty-widget-\"+o).data(\"nonce\");h||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:l,isMobile:s,channel:c,nonce:r,action:\"update_chaty_channel_click\"},dataType:\"json\",method:\"post\"})}}})),t(document).on(\"submit\",\".chaty-ajax-contact-form\",(function(e){e.preventDefault();var a=0;if(t(this).find(\".has-chaty-error\").each((function(){t(this).removeClass(\"has-chaty-error\")})),t(this).find(\".chaty-error-msg\").remove(),t(this).find(\".chaty-ajax-error-message\").remove(),t(this).find(\".chaty-ajax-success-message\").remove(),t(this).find(\".is-required\").each((function(){\"\"==jQuery.trim(t(this).val())&&(a++,t(this).addClass(\"has-chaty-error\"),t(this).hasClass(\"chaty-text-block\")&&t(this).closest(\".chaty-contact-input\").find(\".mce-tinymce\").addClass(\"mce-error\"))})),0==a){var c=t(this),n=c[0],i=new FormData(n);t(\".chaty-submit-button\").attr(\"disabled\",!0),t(\"#chaty-submit-button-\"+c.data(\"index\")+\" .chaty-loader\").addClass(\"active\"),jQuery.ajax({url:chaty_settings.ajax_url,enctype:\"multipart\/form-data\",data:i,type:\"post\",dataType:\"json\",cache:!1,contentType:!1,processData:!1,success:function(e){if(\"\"!=googleV3Token&&(googleV3Token=\"\",refreshG3Token()),t(\".chaty-ajax-error-message\").remove(),t(\".chaty-ajax-success-message\").remove(),t(\".chaty-submit-button\").attr(\"disabled\",!1),1==e.status){if(t(\"#chaty-submit-button-\"+c.data(\"index\")+\" .chaty-loader\").removeClass(\"active\"),t(\".chaty-contact-inputs\").append(\"<div class='chaty-ajax-success-message'>\"+e.message+\"<\/div>\"),t(\".chaty-ajax-contact-form\").find(\".chaty-contact-input .mce-tinymce\").removeClass(\"mce-error\"),t(\".field-name, .field-email, .field-message, .field-phone\").val(\"\"),t(\".chaty-ajax-contact-form\").find(\".chaty-input-field\").val(\"\"),t(\".chaty-ajax-contact-form\").find(\".chaty-textarea-field\").val(\"\"),t(\"#\"+c.find(\".chaty-text-block\").attr(\"id\")+\"_ifr\").contents().find(\"body\").html(\"\"),\"yes\"==e.redirect_action)if(\"yes\"==e.link_in_new_tab)null==window.open(e.redirect_link,\"_blank\")&&window.open(e.redirect_link);else window.location=e.redirect_link;\"yes\"==e.close_form_after&&setTimeout((function(){if(t(\".chaty-outer-forms.active\").length){var e=t(\".chaty-outer-forms.active\").data(\"widget\");Q(e)&&0!=e||t(\"#chaty-widget-\"+e).length&&(t(\"#chaty-widget-\"+e).removeClass(\"form-open\"),t(\"body\").removeClass(\"add-bg-blur-effect\"),t(\".chaty-outer-forms.active\").removeClass(\"active\"),t(\"#chaty-widget-\"+e).find(\".chaty-widget\").hasClass(\"chaty-no-close-button\")&&t(\"#chaty-widget-\"+e).find(\".chaty-widget:not(.has-single)\").addClass(\"chaty-open\"))}}),1e3*parseInt(e.close_form_after_seconds))}else if(1==e.error){if(e.errors.length)for(var a=0;a<e.errors.length;a++)t(\".\"+e.errors[a].field).addClass(\"has-chaty-error\"),t(\".\"+e.errors[a].field).after(\"<span class='chaty-error-msg'>\"+e.errors[a].message+\"<\/span>\");t(\".chaty-loader\").removeClass(\"active\")}else 0==e.status&&(t(\".chaty-contact-inputs\").append(\"<div class='chaty-ajax-error-message'>\"+e.message+\"<\/div>\"),t(\".chaty-loader\").removeClass(\"active\"));t(\".email_suggestion\").html(\"\")}})}else t(\".has-chaty-error:first\").focus();return!1})),t(document).on(\"blur\",\".chaty-contact-form-box .field-email\",(function(e){var a=t(this).closest(\".chaty-contact-form-box\").data(\"widget\");t(this).mailcheck({suggested:function(e,c){t(\"#email_suggestion\"+a).html(\"Did you mean <b><i>\"+c.full+\"<\/b><\/i>?\")},empty:function(e){t(\"#email_suggestion\"+a).html(\"\")}})})),t(\".chaty-contact-form-box .field-email\").length&&t(\".chaty-contact-form-box .field-email\").emailautocomplete({domains:[\"protonmail.com\",\"yahoo.com\",\"gmail.com\"]}),t(document).on(\"click\",\".email_suggestion i\",(function(){t(this).closest(\".chaty-contact-form-box\").find(\".field-email\").val(t(this).text()).focus(),jQuery(this).closest(\".email_suggestion\").html(\"\")})),t(document).on(\"click\",\".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel\",(function(){window.location=t(this).find(\"a\").prop(\"href\")})),t(document).on(\"click\",\".chaty-widget.has-single .chaty-i-trigger .chaty-channel:not(.chaty-agent-button).Phone-channel a, .picmo__popupContainer\",(function(t){t.stopPropagation(),t.stopImmediatePropagation()})),t(document).on(\"click\",\".chaty-wp-emoji-input\",(function(){if(t(\".picmo__popupContainer\").length);else{const{createPopup:e}=window.picmoPopup,a=document.querySelector(\"#chaty_whatsapp_input\"),c=e({},{referenceElement:a,triggerElement:a,position:\"top\",hideOnEmojiSelect:!1});c.toggle(),c.addEventListener(\"emoji:select\",(e=>{t(\".chaty-whatsapp-input\").val(t(\".chaty-whatsapp-input\").val()+e.emoji)}))}})),t(document).on(\"click\",\"#chaty_whatsapp_input\",(function(){t(\".picmo__popupContainer\").length&&t(\".picmo__popupContainer\").remove()})),t(document).on(\"click\",\".iubenda-cs-accept-btn, .iubFooterBtn #wt-cli-privacy-save-btn, #wt-cli-accept-all-btn, #cookie_action_close_header, .cky-btn-accept\",(function(){R(\"chaty_cookie_accepted\",!0,365),b()})),t(document).on(\"click\",\".iubenda-cs-reject-btn, .cky-btn-customize, .cky-btn-preferences, .cky-btn-reject\",(function(){R(\"chaty_cookie_accepted\",!1,365),t(\".chaty.active\").removeClass(\"active\")})),document.addEventListener(\"cookieyes_consent_update\",(function(){const e=V(\"cookieyes-consent\");if(e){\"yes\"===function(t){const e={};return t.split(\",\").forEach((t=>{const[a,c]=t.split(\":\");a&&c&&(e[a.trim()]=c.trim())})),e}(e).consent?(R(\"chaty_cookie_accepted\",!0,365),b()):(R(\"chaty_cookie_accepted\",!1,365),t(\".chaty.active\").removeClass(\"active\"))}}))})),t(window).resize((function(){t(window).height()>t(window).width()?t(\"body\").addClass(\"cht-portrait\").removeClass(\"cht-landscape\"):t(\"body\").addClass(\"cht-landscape\").removeClass(\"cht-portrait\")}))}));var googleV3Token=\"\";function onloadCallbackChatyV3(){var t=jQuery(\".v3_site_key\").val();t&&\"\"==googleV3Token&&grecaptcha.ready((function(){grecaptcha.execute(t,{action:\"contact_form\"}).then((function(t){googleV3Token=t}))}))}function refreshG3Token(){if(\"function\"==typeof grecaptcha||\"object\"==typeof grecaptcha){var t=jQuery(\".v3_site_key\").val();t&&\"\"==googleV3Token&&grecaptcha.ready((function(){grecaptcha.execute(t,{action:\"contact_form\"}).then((function(t){googleV3Token=t}))}))}}function onloadChatyCallback(){jQuery(\".v2_site_key\").length&&\"\"!=jQuery(\".v2_site_key\").val()&&jQuery(\".front-google-captcha\").length&&jQuery(\".front-google-captcha:not(.loaded)\").each((function(){var t=jQuery(this).attr(\"id\");jQuery(this).addClass(\"loaded\"),document.getElementById(t)&&grecaptcha.render(t,{sitekey:jQuery(\".v2_site_key\").val()})}))};\n","status":true}