Current Path : /storage/v11800/webspeed/public_html/wp-content/plugins/chaty/js/ |
Linux v11800 5.3.0-1023-aws #25~18.04.1-Ubuntu SMP Fri Jun 5 15:19:18 UTC 2020 aarch64
|
Current File : /storage/v11800/webspeed/public_html/wp-content/plugins/chaty/js/cht-front-script.min.js |
function launch_chaty(t){null!=t&&"widget_index"!=t||(t=1),jQuery("#chaty-widget-_"+t).length&&jQuery("#chaty-widget-_"+t+" .chaty-cta-button .open-chaty").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,i=[],n="",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"],l=!1,h=!1,r=0,d=!1,g=!1,y=[],p=0,f=0,u="",m=0,w="";function v(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 _(){i.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> </defs>'),t.each(i,(function(e,a){var c="",l="",y=0,p={},f=function(e){if(W(e.triggers.has_countries)&&!L(e.triggers.countries)&&e.triggers.countries.length&&"-"!=(n=Q())&&-1==t.inArray(n,e.triggers.countries))return!1;return!0}(a);if(f=f&&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,i=(c=A(c,t.triggers.time_diff)).getFullYear()+"-"+E(c.getMonth()+1)+"-"+E(c.getDate())+" "+E(c.getHours())+":"+E(c.getMinutes())+":"+E(c.getSeconds());return""==a&&e<=i||(""==e&&a>=i||""!=e&&""!=a&&e<=i&&a>=i)}return!0}(a),f=f&&function(t){var e=!0;if(W(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,i=(c=A(c,t.triggers.day_time_diff)).getHours(),n=c.getMinutes(),s=c.getDay(),o=0;o<a.length;o++){var l=0,h=0;-1==a[o].days?h=1:a[o].days>=0&&a[o].days<=6?a[o].days==s&&(h=1):7==a[o].days?s>=0&&s<=4&&(h=1):8==a[o].days?s>=1&&s<=5&&(h=1):9==a[o].days&&(6!=s&&0!=s||(h=1)),1==h&&(i>a[o].start_hours&&i<a[o].end_hours?l=1:i==a[o].start_hours&&i<a[o].end_hours?n>=a[o].start_min&&(l=1):i>a[o].start_hours&&i==a[o].end_hours?n<=a[o].end_min&&(l=1):i==a[o].start_hours&&i==a[o].end_hours&&n>=a[o].start_min&&n<=a[o].end_min&&(l=1),1==l&&n>=a[o].start_min&&n<=a[o].end_min&&1),1==l&&1==h&&(e=1),1==e&&(o=a.length+1)}}}return e}(a),t.each(a.channels,(function(t,e){x(e)&&(y++,p=e)})),"open"==a.settings.default_state&&1==y&&(a.settings.default_state="click",i[e].settings.default_state="click"),f&&y>0&&!t("#chaty-widget-"+a.id).length){var u=z(a.settings);u="right"==u?"right":"left";var m=function(t){if("vertical"!=t.settings.icon_view)return"top";var e=z(t.settings);if("right"==e)return"left";return"right"}(a);if("chat-view"==a.settings.cta_type){var w="<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 "+u+"-position'><div class='chaty-channels'><div class='chaty-i-trigger'></div></div></div></div>";t("body").append(w),function(e){var a=e.id,c=S(a);null==c&&(c=-1);var i=e.settings.cta_body,n=e.settings.cta_head,s=t("title").text();L(s)?(i=i.replace(/{title}/g,""),n=n.replace(/{title}/g,"")):(i=i.replace(/{title}/g,s),n=n.replace(/{title}/g,s));i=i.replace(/{url}/g,"<a target='_blank' href='"+window.location.href+"'>"+window.location.href+"</a>"),n=n.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'>"+n,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+=i,o+="</div>",o+="<div class='chaty-view-channels'>",o+="</div>",o+="</div>",o+="</div>",o+="</div>",t("#chaty-widget-"+a).append(o)}(a)}else{w="<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 "+u+"-position'><div class='chaty-channels'><div class='chaty-channel-list'></div><div class='chaty-i-trigger'></div></div></div></div>";t("body").append(w)}W(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 v=H(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==y&&"chat-view"!=a.settings.cta_type){"vertical"!=a.settings.icon_view&&(m="right"!=u?"right":"left");var _=j(p,a.id,m);t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(_),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"),L(B=a.settings.cta_text)||(B=C(B)),"first_click"==a.settings.show_cta&&(v?(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-"+m),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").append("<span class='on-hover-text'>"+B+"</span>").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append("<span class='on-hover-text'>"+B+"</span>").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-text",B)):t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append("<span class='on-hover-text'>"+B+"</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'>"+B+"</span>").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel a").attr("data-text",B));var I=p;("Instagram"!=I.channel_type||"#ffffff"!=I.icon_color&&"#fff"!=I.icon_color)&&(c+="#chaty-widget-"+a.id+" ."+I.channel_type+"-channel .color-element{ fill: "+I.icon_color+"; color: "+I.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+I.channel_type+" .color-element{ fill: "+I.icon_color+"; color: "+I.icon_color+";}"),c+="#chaty-widget-"+a.id+" ."+I.channel_type+"-channel .chaty-custom-icon { background-color: "+I.icon_color+"; }",c+="#chaty-widget-"+a.id+" ."+I.channel_type+"-channel .chaty-svg { background-color: "+I.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+I.channel_type+" .chaty-svg { background-color: "+I.icon_color+";}","Contact_Us"==I.channel_type&&(c+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+I.contact_form_settings.button_bg_color+"; color: "+I.contact_form_settings.button_text_color+";} ",c+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+I.contact_form_settings.title_bg_color+"; } ");var M='<div class="chaty-channel chaty-cta-close chaty-tooltip pos-'+m+'" 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(M)}else{t.each(a.channels,(function(e,i){if(x(i)){if(q(i.channel_type)&&(i.channel_type=i.channel),"chat-view"==a.settings.cta_type){var n=j(i,a.id,"top");t(".chaty-chat-view-"+a.id+" .chaty-view-channels").append(n)}else{n=j(i,a.id,m);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(n)}("Instagram"!=i.channel_type||"#ffffff"!=i.icon_color&&"#fff"!=i.icon_color)&&(c+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .color-element{ fill: "+i.icon_color+"; color: "+i.icon_color+";}"),c+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-custom-icon { background-color: "+i.icon_color+"; }",c+="#chaty-widget-"+a.id+" ."+i.channel_type+"-channel .chaty-svg { background-color: "+i.icon_color+";}",c+="#chaty-widget-"+a.id+" .channel-icon-"+i.channel_type+" .chaty-svg { background-color: "+i.icon_color+";}",c+=".chaty-chat-view-"+a.id+" ."+i.channel_type+"-channel .chaty-custom-icon { background-color: "+i.icon_color+"; }",c+=".chaty-chat-view-"+a.id+" ."+i.channel_type+"-channel .chaty-svg { background-color: "+i.icon_color+";}",c+=".chaty-chat-view-"+a.id+" .channel-icon-"+i.channel_type+" .chaty-svg { background-color: "+i.icon_color+";}","Contact_Us"==i.channel_type&&(c+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+i.contact_form_settings.button_bg_color+"; color: "+i.contact_form_settings.button_text_color+";} ",c+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+i.contact_form_settings.title_bg_color+"; } ")}}));var T=function(t,e){(""==t.widget_icon||"chat-image"==t.widget_icon&&L(t.widget_icon_url)||"chat-fa-icon"==t.widget_icon&&L(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" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.8 507.1 54 54" style="enable-background-color:new -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" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496.9 507.1 54 54" style="enable-background-color:new -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" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.1 54 54" style="enable-background-color:new -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" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="-496 507.7 54 54" style="enable-background-color:new -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),B=a.settings.cta_text;"first_click"==a.settings.show_cta&&(v||(B=""));var D=m;"horizontal"==a.settings.icon_view&&(D="left"==u?"right":"left"),L(B)||(B=C(B));var P='<div class="chaty-channel chaty-cta-main chaty-tooltip has-on-hover pos-'+D+' active" data-widget="'+a.id+'" ><span class="on-hover-text">'+B+'</span><div class="chaty-cta-button"><button type="button" class="open-chaty">'+T+'<span class="sr-only">Open chaty</span></button><button type="button" class="open-chaty-channel"><span class="sr-only">chaty button</span></button></div></div>';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(P);M='<div class="chaty-channel chaty-cta-close chaty-tooltip pos-'+m+'" 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(M)}t.each(a.channels,(function(t,e){"Contact_Us"==e.channel_type&&"yes"==e.hide_recaptcha_badge&&(c+=".grecaptcha-badge {visibility: hidden;}")})),!(v=H(a.id,"c-widget"))||"open"==a.settings.default_state&&1!=y||(function(e,a){var c=H(a,"c-widget");c&&W(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=H(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 O=0;"open"!=a.settings.default_state||W(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),O=1),W(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")),W(a.settings.has_custom_css)&&!L(a.settings.custom_css)&&(l+=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"),!v&&W(a.settings.show_close_button)||t("#chaty-widget-"+a.id+" .chaty-widget:not(.has-single)").addClass("chaty-open"),v||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")?W(a.settings.bg_blur_effect)&&(console.log("@323"),t("body").addClass("add-bg-blur-effect")):t("body").removeClass("add-bg-blur-effect"),W(a.settings.bg_blur_effect)&&t("#chaty-widget-"+a.id+" .chaty-widget:not(.chaty-no-close-button)").addClass("has-bg-blur-effect");var N=function(t,e){return t}(a.settings.widget_size,a.settings.custom_widget_size);if(N=parseInt(N),c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a .chaty-custom-icon {display:block; width: "+N+"px; height: "+N+"px; line-height: "+N+"px; font-size: "+parseInt(N/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel button {width: "+N+"px; height: "+N+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg img {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel span.chaty-icon {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel a {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+N+"px; height: "+N+"px; line-height: "+N+"px; display: block; font-size:"+parseInt(N/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: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a .chaty-custom-icon {display:block; width: "+N+"px; height: "+N+"px; line-height: "+N+"px; font-size: "+parseInt(N/2)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel button {width: "+N+"px; height: "+N+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg img {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel span.chaty-icon {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a {width: "+N+"px; height: "+N+"px; }",c+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+N+"px; height: "+N+"px; line-height: "+N+"px; display: block; font-size:"+parseInt(N/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: "+N+"px; font-size:"+parseInt(N/2)+"px; }","vertical"==a.settings.icon_view){c+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+y*(N+8)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(N+8)+"px; }";for(var V=0;V<=y;V++)c+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(V+1)+") {-webkit-transform: translateY(-"+(N+8)*(y-V-O)+"px); transform: translateY(-"+(N+8)*(y-V-O)+"px);}"}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),c+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+y*(N+8)+"px; }",c+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+N+"px; }";for(V=0;V<=y;V++)c+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(V+1)+") {-webkit-transform: translateX("+(N+8)*(y-V-O)+"px); transform: translateX("+(N+8)*(y-V-O)+"px);}",c+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(V+1)+") {-webkit-transform: translateX(-"+(N+8)*(y-V-O)+"px); transform: translateX(-"+(N+8)*(y-V-O)+"px);}"}var Z=a.settings.bottom_spacing,R=a.settings.side_spacing;c+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+Z+"px}","left"==u?(c+="#chaty-widget-"+a.id+" .chaty-widget {left: "+R+"px; right: auto;}",c+=".chaty-outer-forms.pos-left.chaty-form-"+a.id+" {left: "+R+"px}",t(".chaty-form-"+a.id).addClass("pos-left")):(c+="#chaty-widget-"+a.id+" .chaty-widget {right: "+R+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("pos-right"),c+=".chaty-outer-forms.pos-right.chaty-form-"+a.id+" {right: "+R+"px; left:auto;}"),t(".chaty-form-"+a.id).show();var G=N+15+parseInt(Z);c+=".chaty-outer-forms.active.chaty-form-"+a.id+" {-webkit-transform: translateY(-"+G+"px); transform: translateY(-"+G+"px)} ",c+="#chaty-widget-"+a.id+".chaty:not(.form-open) .chaty-widget.chaty-open + .chaty-chat-view {-webkit-transform: translateY(-"+G+"px); transform: translateY(-"+G+"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 F=G+72+N;F>0&&(c+=".chaty-outer-forms.chaty-form-"+a.id+" .chaty-agent-body {max-height: calc(100vh - "+F+"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 Y=G+82+N;Y>0&&(c+=".chaty-outer-forms.chaty-contact-form-box.chaty-form-"+a.id+" .chaty-contact-inputs {max-height: calc(100vh - "+Y+"px); overflow-y: auto; } "),25==Z&&25==R||(t(".chaty-outer-forms.chaty-form-"+a.id).addClass("custom-cht-pos"),t("#chaty-widget-"+a.id).addClass("has-custom-pos"));var X=parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-header").outerHeight())+parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-footer").outerHeight())+parseInt(N)+parseInt(Z)+20;if(c+="#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-body { max-height: calc(100vh - "+X+"px); overflow-y: auto; }",H(a.id,"v-widget")&&(W(a.triggers.exit_intent)||W(a.triggers.has_time_delay)||W(a.triggers.has_display_after_page_scroll)>0)?(W(a.triggers.has_time_delay)&&0==parseInt(a.triggers.time_delay)?(k(a.id),t("#chaty-widget-"+a.id).addClass("active")):W(a.triggers.has_time_delay)&&parseInt(a.triggers.time_delay)>0&&(h=!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))),W(a.triggers.has_display_after_page_scroll)&&0==parseInt(a.triggers.display_after_page_scroll)?(k(a.id),t("#chaty-widget-"+a.id).addClass("active")):W(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))),W(a.triggers.exit_intent)&&(g=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(k(a.id),t("#chaty-widget-"+a.id).addClass("active")),!L(a.settings.font_family)&&"none"!=a.settings.font_family){var J=a.settings.font_family;-1!=t.inArray(J,o)?"System Stack"==J&&(J="-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='+J+'&display=swap">'),t("head").append('<link rel="stylesheet" href="https://fonts.googleapis.com/css?family='+J+'&display=swap">')),c+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+J+"}"}}g&&(s?function(){if(window.history&&window.history.pushState&&g){function e(){g&&""!==location.hash.split("#!/")[1]&&""===window.location.hash&&U()}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),U()):t.attachEvent&&t.attachEvent("on"+e,a)}e(document,"mouseout",(function(t){null==t.toElement&&null==t.relatedTarget&&U()}))}))),""!=c&&(t("#custom-chaty-css").length||t("head").append("<style id='custom-chaty-css'></style>"),t("#custom-chaty-css").append(c)),""!=l&&(t("#custom-advance-chaty-css").length||t("head").append("<style id='custom-advance-chaty-css'></style>"),t("#custom-advance-chaty-css").append(l)),i.length,t(".chaty-sms-channel").length&&t(".chaty-sms-channel").each((function(){var e=t(this).attr("href");e=(e=e.replace(/{title}/g,b())).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")&&(W(a.settings.bg_blur_effect)?(t("body").addClass("add-bg-blur-effect"),console.log("@3233")):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")||W(a.settings.bg_blur_effect)&&(t("body").addClass("add-bg-blur-effect"),console.log("@32334"))}))})),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&&!L(t(".v3_site_key").val())||t(".v2_site_key").length&&!L(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=++m;if(t(".chaty.auto-hide-chaty.hide-after-"+m).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));h&&(a=setInterval((function(){(p++,t(".chaty.delay-time-"+p).length)&&D(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 i=f;f=c;for(var n=i;n<=c;n++)-1==t.inArray(n,y)&&t(".chaty.on-chaty-scroll.page-scroll-"+n).length&&t(".chaty.on-chaty-scroll.page-scroll-"+n).each((function(){var e=t(this).data("id");t(this).removeClass("on-chaty-scroll"),D(e)}));f=c}}}}));window.innerWidth,document.documentElement.clientWidth}}()}function b(){return t("title").length?t("title").text():""}function C(t){return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent}function x(t){if(W(t.is_agent)){if(t.agent_data.length&&(!s&&W(t.is_agent_desktop)||s&&W(t.is_agent_mobile)))return!0}else if((!s&&W(t.is_desktop)||s&&W(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel))return!0;return!1}function k(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(!L(c)){var n=H(a,"c-"+t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel"));if(n&&(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(v(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"),console.log("@32333")),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"))(g=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(g+=m,t("#chaty-widget-"+a).addClass("hide-after-"+g));if("on"==chaty_settings.data_analytics_settings){var h=[],r=t("#chaty-widget-"+a+" .chaty-channel.chaty-default-open").data("channel");if(H(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),h.push(r)),!l&&h.length){var d=t("#chaty-widget-"+a).data("nonce");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:h,userId:a,isMobile:s,widgetNonce:d,action:"update_chaty_channel_views"},type:"post",dataType:"json",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}return}}}var g;(t("#chaty-widget-"+a).addClass("active"),t("#chaty-widget-"+a).hasClass("auto-hide-chaty"))&&((g=parseInt(t("#chaty-widget-"+a).data("time")))>0&&(g+=m,t("#chaty-widget-"+a).addClass("hide-after-"+g)));var y=H(a,"v-widget");if(y){P(a,"v-widget");t("#chaty-widget-"+a).data("user"),h=[];var p=0,f=0,u=t("#chaty-widget-"+a).data("key");if(typeof i[u]!=e){var w=N("activechatyWidgets");null!=w?(w=w.split(","),-1==t.inArray(a,w)&&(w.push(a),O("activechatyWidgets",w=w.join(","),1))):O("activechatyWidgets",w=a,1)}if(t("#chaty-widget-"+a+" .chaty-widget").hasClass("has-single"))p=1,r=t("#chaty-widget-"+a+" .chaty-channel").data("channel"),H(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),h.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"),(n=H(a,"v-"+chatyChannel))&&"undefined"!=typeof chatyChannel&&(P(a,"v-"+chatyChannel),h.push(chatyChannel))})):t("#chaty-widget-"+a+" .chaty-channel-list .chaty-channel").each((function(){r=t(this).data("channel"),H(a,"v-"+r)&&void 0!==r&&(P(a,"v-"+r),h.push(r))})));if(y&&!l){d=t("#chaty-widget-"+a).data("nonce");l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:a,channels:h,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){monitorErrorLog(t,e,a)}})}}}function j(e,a,c){var i="";if(!W(e.is_agent)){q(e.channel_type)&&(e.channel_type=e.channel);o=T(e,B(e),c,a);if("Contact_Us"==e.channel_type)i+=" has-chaty-box chaty-contact-form";else if("Whatsapp"==e.channel_type){if(W(e.is_default_open))H(a,"c-"+e.channel_type)&&(i+=" chaty-default-open")}return"<div class='chaty-channel "+e.channel+"-channel"+i+"' 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 n=0;if(t.each(e.agent_data,(function(t,e){""!=e.value&&(n++,e)})),n>0){var o,l=S(a);return null==l&&(l=-1),function(e,a){var c="",i=S(a);null==i&&(i=-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='"+i+"'>",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+"'>",L(e.header_text)||(c+="<div class='agent-main-header'>"+e.header_text+"</div>");L(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(i,n){if(""!=n.value){var o=n.svg_icon;L(n.agent_image)||(o="<img class='chaty-agent-img' src='"+n.agent_image+"' alt='"+n.agent_title+"' />");var l=function(e,a,c,i,n,o){var l=e.value,h="_blank";if("Whatsapp"==a.channel_type){var r=I(e.value),d="";if(!L(e.pre_set_message)){d=decodeURI(e.pre_set_message);var g=t("title").text();d=(d=L(g)?d.replace(/{title}/g,""):d.replace(/{title}/g,g)).replace(/{url}/g,window.location),d=encodeURIComponent(d)}s?(h="",l="https://wa.me/"+r+"?text="+d):(h="_blank",l=W(e.use_whatsapp_web)?"https://web.whatsapp.com/send?phone="+r+"&text="+d:"https://wa.me/"+r+"?text="+d)}else"WeChat"==a.channel_type?(h="",l="javascript:;"):"Email"==a.channel_type?(h="",l="mailto:"+e.value):"Facebook_Messenger"==a.channel_type?h=s?"":"_blank":"SMS"==a.channel_type?(h="",l="sms:"+e.value):"Telegram"==a.channel_type?(l="https://telegram.me/"+(l=M(e.value,"@")),h="_blank"):"Twitter"==a.channel_type?l="https://twitter.com/"+t.trim(e.value):"Instagram"==a.channel_type?l="https://www.instagram.com/"+t.trim(e.value):"Phone"==a.channel_type?(h="",l="tel:"+t.trim(e.value)):"Skype"==a.channel_type?(h="",l="skype:"+t.trim(e.value)+"?chat"):"Snapchat"==a.channel_type?l="https://www.snapchat.com/add/"+t.trim(e.value):"Vkontakte"==a.channel_type?l="https://vk.me/"+t.trim(e.value):"Linkedin"==a.channel_type?l="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?l="viber://pa?chatURI="+e.value:(l=M(e.value,"+"),isNaN(l)||(l=l.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(l="+"+l),l="viber://chat?number="+l)),h=""):"TikTok"==a.channel_type&&(l="https://www.tiktok.com/@"+(l=M(t.trim(e.value),"@")),h="");return"<a href='"+l+"' target='"+h+"'><span class='chaty-agent-icon'>"+n+"</span><span class='chaty-agent-title'>"+o+"</span></a>"}(n,e,0,0,o,n.agent_title);c+="<div class='chaty-agent agent-info-"+a+"-"+e.channel+" agent-info-"+i+"'>"+l+"</div>"}u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon img { background-color: "+n.agent_bg_color+"; } ",("Instagram"!=e.channel||"#ffffff"!=n.agent_bg_color&&"#fff"!=n.agent_bg_color)&&(u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-agent-icon .color-element { fill: "+n.agent_bg_color+"; } "),u+=".agent-info-"+a+"-"+e.channel+".agent-info-"+i+" .chaty-custom-icon { background-color: "+n.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=T(e,B(e),c,a),("Instagram"!=e.channel||"#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_type+"' class='chaty-channel chaty-agent-button chaty-agent-"+a+"-"+e.channel+" "+e.channel+"-channel"+i+"' id='"+e.channel+"-"+a+"-channel' data-id='"+e.channel_type+"-"+a+"' data-widget='"+a+"' data-channel='"+e.channel+"'>"+o+"</div>"}}}function I(t){return t=(t=(t=(t=M(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function M(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 T(e,a,c,i){var n="";if(W(e.is_agent))e.url="javascript:;",e.target="";else if("Whatsapp"==e.channel_type)if(W(e.has_welcome_message))e.url="javascript:;",e.target="",n+=" has-chaty-box chaty-whatsapp-btn-form",function(e,a){const c=new Date;var i=c.getMinutes()<10?"0"+c.getMinutes():c.getMinutes();const n=(c.getHours()<10?"0"+c.getHours():c.getHours())+":"+i;var o="",l=S(a);null==l&&(l=-1);var h="https://web.whatsapp.com/send",r="";s?h="https://wa.me/"+e.value:(h=W(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='"+l+"'>",o+="<div class='chaty-whatsapp-form'>";var d=L(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'>",L(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'>"+n+"</div>",o+="</div>",o+="</div>");o+="</div>",o+="<div class='chaty-whatsapp-footer'>",o+="<form action='"+h+"' target='"+r+"' class='whatsapp-chaty-form-"+a+" whatsapp-chaty-form "+(W(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 ${W(e.emoji_picker)?"has_emoji":""}'>`,W(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+="<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&&W(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),!L(e.pre_set_message)){var g=e.pre_set_message,y=t("title").text();g=(g=L(y)?g.replace(/{title}/g,""):g.replace(/{title}/g,y)).replace(/{url}/g,window.location),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-input").val(g)}t("#chaty-form-"+a+"-"+e.channel_type).show(),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-input").attr("placeholder",e.input_placeholder),t("#chaty-form-"+a+"-"+e.channel_type+" .chaty-whatsapp-header").css("background-color",e.wp_popup_head_bg_color)}(e,i);else{var o="";if(!L(e.pre_set_message))o=decodeURI(e.pre_set_message),o=(o=L(l=t("title").text())?o.replace(/{title}/g,""):o.replace(/{title}/g,l)).replace(/{url}/g,window.location),o=encodeURIComponent(o);s?(e.target="",e.url="https://wa.me/"+e.value+"?text="+o):(e.target="_blank",W(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)L(e.qr_code_image_url)||(!function(e,a){var c="",i=S(a);null==i&&(i=-1);var n=L(e.wechat_header)?"":e.wechat_header+": ";n+=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='"+i+"'>",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>'+n+'</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>',L(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>",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,i),e.url="javascript:;",e.target="",n+=" has-chaty-box chaty-qr-code-form");else if("Contact_Us"==e.channel_type)!function(e,a){var c="",i=S(a);null==i&&(i=-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='"+i+"'>",c+="<div class='chaty-form'>",c+="<div class='chaty-form-body'>",c+="<div role='button' class='close-chaty-form'><div class='chaty-close-button'></div></div>",c+="<form class='chaty-ajax-contact-form' id='chaty-ajax-contact-form-"+i+"' 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 class='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>",c+="<div class='chaty-contact-inputs'>",""==e.contact_form_settings.contact_form_field_order?t.each(e.contact_fields,(function(t,e){c+="<div class='chaty-contact-input'>";var i=W(e.is_required)?"is-required":"",n="";W(e.is_required)&&(n="<span class='required_indicate'>*</span>"),"textarea"==e.type?(L(e.title)?c+="<label class='sr-only' for='"+e.field+"-"+a+"'>"+e.field+"</label>":c+="<label class='chaty-form-label' for='"+e.field+"-"+a+"'>"+e.title+" "+n+"</label>",c+="<textarea type='"+e.type+"' class='chaty-textarea-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' ></textarea>"):(L(e.title)?c+="<label class='sr-only' for='"+e.field+"-"+a+"'>"+e.field+"</label>":c+="<label class='chaty-form-label' for='"+e.field+"-"+a+"'>"+e.title+" "+n+"</label>",console.log(e.field),c+="<input type='"+e.type+"' class='chaty-input-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' />","email"==e.field&&(c+='<p id="email_suggestion'+a+'" class="email_suggestion"></p>')),c+="</div>"})):t.each(e.contact_form_settings.contact_form_field_order,(function(i,n){t.each(e.contact_fields,(function(t,e){if(e.title==n){c+="<div class='chaty-contact-input'>";var i=W(e.is_required)?"is-required":"",s="";W(e.is_required)&&(s="<span class='required_indicate'>*</span>"),"textarea"==e.type?(L(e.title)?c+="<label class='sr-only' for='"+e.field+"-"+a+"'>"+e.field+"</label>":c+="<label class='chaty-form-label' for='"+e.field+"-"+a+"'>"+e.title+" "+s+"</label>",c+="<textarea type='"+e.type+"' class='chaty-textarea-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' ></textarea>"):(L(e.title)?c+="<label class='sr-only' for='"+e.field+"-"+a+"'>"+e.field+"</label>":c+="<label class='chaty-form-label' for='"+e.field+"-"+a+"'>"+e.title+" "+s+"</label>",c+="<input type='"+e.type+"' class='chaty-input-field "+i+" field-"+e.field+"' placeholder='"+e.placeholder+"' name='"+e.field+"' id='"+e.field+"-"+a+"' />","email"==e.field&&(c+='<p id="email_suggestion'+a+'" class="email_suggestion"></p>')),c+="</div>"}})),t.each(e.contact_custom_fields,(function(e,a){if(a.unique_id==n&&"yes"==a.is_active){var i=W(a.is_required)?"is-required":"",s="";if(W(a.is_required)&&(s="<span class='required_indicate'>*</span>"),c+="<div class='chaty-contact-input'>",c+="<label class='chaty-form-label' for='"+a.field_dropdown+"-"+e+"'>"+a.field_label+" "+s+"</label>",c+="<input type='hidden' name='custom_fields["+e+"][label_"+a.field_dropdown+"]' value='"+a.field_label+"'>",c+="<input type='hidden' name='custom_fields["+e+"][slug]' value='"+a.field_dropdown+"'>","text"==a.field_dropdown||"url"==a.field_dropdown||"date"==a.field_dropdown)c+="<input type='"+a.field_dropdown+"' class='chaty-input-field "+i+" field-"+a.field_dropdown+"' placeholder='"+a.placeholder+"' name='custom_fields["+e+"]["+a.field_dropdown+"]' id='"+a.field_dropdown+"-"+e+"' />";else if("file"==a.field_dropdown)c+="<input type='file' class='chaty-input-field "+i+" field-"+a.field_dropdown+"' name='custom_fields["+e+"]["+a.field_dropdown+"]' id='"+a.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/>";else if("textarea"==a.field_dropdown)c+="<textarea class='chaty-textarea-field "+i+" field-"+a.field_dropdown+"' placeholder='"+a.placeholder+"' name='custom_fields["+e+"]["+a.field_dropdown+"]' id='"+a.field_dropdown+"-"+e+"' ></textarea>";else if("dropdown"==a.field_dropdown)c+="<select name='custom_fields["+e+"]["+a.field_dropdown+"]' class='chaty-input-field "+i+"'>",a.dropdown_placeholder&&(c+="<option value=''>"+a.dropdown_placeholder+"</option>"),t.each(a.dropdown_option,(function(t,e){e&&(c+="<option value='"+e+"'>"+e+"</option>")})),c+="</select>";else if("textblock"==a.field_dropdown){var o=Math.floor(Math.random()*Math.random())+Date.now();c+="<textarea rows='5' name='custom_fields["+e+"]["+a.field_dropdown+"]' class='chaty-text-block chaty-textarea-field "+i+"' id='text_editor_"+o+"'></textarea>"}else"number"==a.field_dropdown&&(c+="<input type='tel' class='chaty-input-field "+i+" field-"+a.field_dropdown+"' placeholder='"+a.placeholder+"' name='custom_fields["+e+"]["+a.field_dropdown+"]' id='"+a.field_dropdown+"-"+e+"' />");c+="</div>"}}))}));W(e.enable_recaptcha)&&(L(e.v2_site_key)||(c+="<div class='chaty-contact-input'>",c+="<div class='front-google-captcha' id='front_recaptcha_"+i+"'></div>",c+="</div>"),L(e.v3_site_key)||(c+="<div class='chaty-contact-input'>",c+="<div class='front-google-captcha' id='front_recaptcha_"+i+"'></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="'+b()+'">';var n=t(".g-recaptcha-response").length?t(".g-recaptcha-response").val():"";c+='<input type="hidden" name="v2token" value="'+n+'">',W(e.enable_recaptcha)&&(L(e.v2_site_key)||(c+="<input type='hidden' id='v2_site_key' class='v2_site_key' value='"+e.v2_site_key+"'>"),L(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),t(".chaty-text-block:not(.editor-loaded)").length&&t(".chaty-text-block:not(.editor-loaded)").each((function(){text_id=t(this).attr("id"),wp.editor.initialize(text_id,{tinymce:{wpautop:!1,toolbar1:"bold italic underline"},quicktags:!1})}))}(e,i),e.url="javascript:;",e.target="",n+=" has-chaty-box chaty-contact-us-form";else if("Email"==e.channel_type){if(!L(e.mail_subject)){var l,h=decodeURI(e.mail_subject);h=(h=L(l=t("title").text())?h.replace(/{title}/g,""):h.replace(/{title}/g,l)).replace(/{url}/g,window.location),h=encodeURIComponent(h),e.url+="?subject="+h}}else"Viber"==e.channel_type?(""!=e.viber_url?e.url="viber://pa?chatURI="+e.value:(e.value=M(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));w="Link"==e.channel||"Custom_Link"==e.channel||"Custom_Link_3"==e.channel||"Custom_Link_4"==e.channel||"Custom_Link_5"==e.channel?L(e.hover_text)?e.channell:e.hover_text:e.channel;var r="";return L(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='"+w+"' class='chaty-tooltip chaty-"+e.channel_type.toLowerCase()+"-channel pos-"+c+n+"' data-form='chaty-form-"+i+"-"+e.channel_type+"' data-hover='"+e.hover_text+"'>"+a+"</a>"}function C(t){return(new DOMParser).parseFromString(t,"text/html").documentElement.textContent}function S(e){var a=null;return i.length&&t.each(i,(function(t,c){c.id==e&&(a=t)})),a}function L(e){return null==e||""==e||""==t.trim(e)}function B(t){return""!=t.custom_image_url&&"null"!=t.custom_image_url?"<span class='chaty-icon channel-icon-"+t.channel_type+"'><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_type+"'><span class='chaty-svg'>"+t.svg_icon+"</span></span>"}function q(e){return""==e||""==t.trim(e)||null==e||"null"==e}function z(t){return"custom"==t.position?t.custom_position:t.position}function U(){g&&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"),D(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 D(e){k(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),h=!1),t(".chaty.on-chaty-exit-intent").length||(g=!1),t(".chaty.on-chaty-scroll").length||(d=!1)}function E(t){for(t=t.toString();t.length<2;)t="0"+t;return t}function W(t){return"1"==t||1==t||1==t||"true"==t||"yes"==t||"on"==t}function A(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 i=new Date;if(i=i.toLocaleString("en-US",{timeZone:"UTC"}),i=new Date(i),-1!=e.indexOf("+")){var n=e.replace("+",""),s=parseInt(n),o=60*parseFloat(n%s);(o=i.getUTCMinutes()+o)>59&&(s+=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()+s,o)}else if(-1!=e.indexOf("-")){n=e.replace("-",""),s=parseInt(n),o=60*parseFloat(n%s);(o=i.getUTCMinutes()-o)<0&&(s-=parseInt(o/60),o%=60),i.setUTCHours(i.getUTCHours()-s,-o)}c=t.getTime()-i.getTime();return new Date(t.getTime()-c)}function Q(){return n="","undefined"!=typeof Storage&&null!=window.sessionStorage.getItem("chaty_user_country_code")?n=window.sessionStorage.getItem("chaty_user_country_code"):V("chaty_user_country_code")&&(n=N("chaty_user_country_code")),n}function P(t,e){var a=N("chatyWidget_"+t),c=[];null!=a&&""!=a&&(c=JSON.parse(a));var i=!1;if(c.length>0)for(var n=0;n<c.length;n++)c[n].k==e&&(i=!0,c[n].v=new Date);i||c.push({k:e,v:new Date}),O("chatyWidget_"+t,a=JSON.stringify(c),"7")}function H(t,e){var a=function(t,e){var a=N("chatyWidget_"+t),c=[];if(null!=a&&""!=a&&(c=JSON.parse(a)),c.length>0)for(var i=0;i<c.length;i++)if(c[i].k==e)return c[i].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 O(t,e,a){var c=new Date;c.setTime(c.getTime()+24*a*60*60*1e3);var i="expires="+c.toUTCString();document.cookie=t+"="+e+"; "+i+"; path=/; SameSite=Lax"}function N(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 V(t){var e=N(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)&&(l=!0),s?t("body").addClass("cht-in-mobile"):t("body").addClass("cht-in-desktop"),"on"==chaty_settings.data_analytics_settings&&"off"!=chaty_settings.data_analytics_settings||(l=!0),"undefined"==typeof chaty_settings||0==chaty_settings.chaty_widgets.length?console.log("Chaty settings doesn't exists"):(i=chaty_settings.chaty_widgets,function(){var e=!1;i.length&&t.each(i,(function(t,a){W(a.triggers.has_countries)&&!L(a.triggers.countries)&&a.triggers.countries.length&&(e=!0)}));e?""!=(n=Q())?_():(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):V("chaty_user_country_code")||O("chaty_user_country_code",e,365),_())}))):_();var a}()),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=H(e,"c-Whatsapp");L(e)&&0!=e||!a||P(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")})),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-close-view-list",(function(){t(this).closest(".chaty").find(".chaty-widget").removeClass("chaty-open"),t("body").removeClass("add-bg-blur-effect")})),t(document).on("submit",".whatsapp-chaty-form",(function(){if(t(this).hasClass("form-google-analytics")){var e="Whatsapp";if(window.hasOwnProperty("gtag")&>ag("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"),i=t(this).data("channel"),n=H(c,"c-"+i);if((!L(c)||0==c)&&n){P(c,"c-"+i);var o=t("#chaty-widget-"+c).data("nonce");l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:c,userId:c,isMobile:s,channel:i,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").removeClass("add-bg-blur-effect")})),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(!L(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(!L(c)){var i=H(a,"c-"+c);i&&P(a,"c-"+c)}H(a,"v-widget")&&k(a)}t(this).hasClass("whatsapp-form-close-btn")&&(i=H(a,"c-Whatsapp"),L(a)&&0!=a||!i||P(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(!L(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");L(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(!L(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()+"<span class='hide-cht-svg-bg'>"+chaty_settings.lang.hide_whatsapp_form+"</span>";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(!L(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(console.log("widgetChannel: "+c),c!==e&&""!=c&&null!=c&&(window.hasOwnProperty("gtag")&>ag("event","chaty_"+c,{eventCategory:"chaty_"+c,event_action:"chaty_"+c,method:"chaty_"+c}),window.hasOwnProperty("ga"))){var i=window.ga.getAll()[0];i&&i.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").html(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")&>ag("event","chaty_whatsapp_redirect",{eventCategory:"chaty_whatsapp_redirect",event_action:"chaty_whatsapp_redirect",method:"chaty_whatsapp_redirect"}),window.hasOwnProperty("ga"))){var i=window.ga.getAll()[0];i&&i.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");if(t("#chaty-form-"+e+"-Whatsapp").length&&t("#chaty-form-"+e+"-Whatsapp").hasClass("active")){var a=H(e,"c-Whatsapp");L(e)&&0!=e||!a||P(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")&&(P(e,"c-widget"),t(this).closest(".chaty-channel").removeClass("active")),v(e)})),t(document).on("click",".chaty-channel",(function(e){var a,c,i=[],n=0,o=t(this).closest(".chaty").data("id");if(void 0!==o&&void 0!==t("#chaty-widget-"+o).data("identifier")){var h=t("#chaty-widget-"+o).data("user");if(v(o),t(this).hasClass("chaty-cta-main")||t(this).hasClass("chaty-cta-close")){if(console.log("@!3123"),console.log(t("#chaty-form-"+o+"-Whatsapp").length),console.log(t("#chaty-form-"+o+"-Whatsapp").length&&t("#chaty-form-"+o+"-Whatsapp").hasClass("active")),t("#chaty-form-"+o+"-Whatsapp").length&&t("#chaty-form-"+o+"-Whatsapp").hasClass("active")&&(a=H(o,"c-Whatsapp"),L(o)&&0!=o||!a||P(o,"c-Whatsapp")),a=H(o,"c-widget"),t("#chaty-widget-"+o).find(".ch-pending-msg").remove(),a&&(P(o,"c-widget"),t(this).hasClass("chaty-cta-main"))){i=[],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=H(o,"v-"+c))&&void 0!==c&&(P(o,"v-"+c),i.push(c))})):t("#chaty-widget-"+o+" .chaty-channel-list").find(".chaty-channel").each((function(){c=t(this).data("channel"),(a=H(o,"v-"+c))&&void 0!==c&&(P(o,"v-"+c),i.push(c))}));var r=t("#chaty-widget-"+o).data("nonce");l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:h,isMobile:s,channels:i,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).hasClass("single")){t("#chaty-widget-"+o).find(".ch-pending-msg").remove(),a=H(o,"c-widget");r=t("#chaty-widget-"+o).data("nonce");a&&(P(o,"c-widget"),n=0,i=[],c=t(this).data("channel"),(a=H(o,"c-"+c))&&(i.push(c),n=1),l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:h,isMobile:s,channels:i,isSingle:n,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-channel")&&(c=t(this).data("channel"),a=H(o,"c-"+c))){P(o,"c-"+c);r=t("#chaty-widget-"+o).data("nonce");l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:o,userId:h,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),i=c[0],n=new FormData(i);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:n,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");L(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}));jQuery(document).on("blur",".chaty-contact-form-box .field-email",(function(e){var a=t(this).closest(".chaty-contact-form-box").data("widget");jQuery(this).mailcheck({suggested:function(t,e){jQuery("#email_suggestion"+a).html("Did you mean <b><i>"+e.full+"</b></i>?")},empty:function(t){jQuery("#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(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()})}))}