function launch_chaty(t){(void 0==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,_=0,f="",u=0,v="",m=0;function $(a){if(e!=t("#chaty-widget-"+a).data("animation")&&"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 w(){var e=!1;i.length&&t.each(i,function(t,a){O(a.triggers.has_countries)&&!I(a.triggers.countries)&&a.triggers.countries.length&&(e=!0)}),e?""!=(n=G())?b():t.get("https://www.cloudflare.com/cdn-cgi/trace",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),b())}):b()}function b(){i.length&&(t("body").append(' '),t.each(i,function(e,a){var c,l="",y="",p=0,_={},f=(c=a,!O(c.triggers.has_countries)||!!I(c.triggers.countries)||!c.triggers.countries.length||"-"==(n=G())||-1!=t.inArray(n,c.triggers.countries));if(f=(f=f&&function t(e){if(e.triggers.has_date_scheduling_rules){var a=e.triggers.date_scheduling_rules.start_date_time,c=e.triggers.date_scheduling_rules.end_date_time,i=new Date,n=(i=Z(i,e.triggers.time_diff)).getFullYear()+"-"+V(i.getMonth()+1)+"-"+V(i.getDate())+" "+V(i.getHours())+":"+V(i.getMinutes())+":"+V(i.getSeconds());return""==c&&!!(a<=n)||""==a&&!!(c>=n)||""!=a&&""!=c&&!!(a<=n)&&!!(c>=n)}return!0}(a))&&function t(e){var a=!0;if(O(e.triggers.has_day_hours_scheduling_rules)&&e.triggers.day_hours_scheduling_rules.length>0){var c=e.triggers.day_hours_scheduling_rules;if(c.length>0){a=!1;for(var i=new Date,n=(i=Z(i,e.triggers.day_time_diff)).getHours(),s=i.getMinutes(),o=i.getDay(),l=0;l=0&&c[l].days<=6?c[l].days==o&&(d=1):7==c[l].days?o>=0&&o<=4&&(d=1):8==c[l].days?o>=1&&o<=5&&(d=1):9==c[l].days&&(6==o||0==o)&&(d=1),1==d&&(n>c[l].start_hours&&n=c[l].start_min&&(h=1):n>c[l].start_hours&&n==c[l].end_hours?s<=c[l].end_min&&(h=1):n==c[l].start_hours&&n==c[l].end_hours&&s>=c[l].start_min&&s<=c[l].end_min&&(h=1),1==h&&s>=c[l].start_min&&s<=c[l].end_min&&(r=1)),1==h&&1==d&&(a=1),1==a&&(l=c.length+1)}}}return a}(a),t.each(a.channels,function(t,e){k(e)&&(p++,_=e)}),"open"==a.settings.default_state&&1==p&&(a.settings.default_state="click",i[e].settings.default_state="click"),f&&p>0&&!t("#chaty-widget-"+a.id).length){var u,v=U(a.settings);v="right"==v?"right":"left";var m=(u=a,"vertical"!=u.settings.icon_view?"top":"right"==U(u.settings)?"left":"right");if("chat-view"==a.settings.cta_type){var $,w,b,M,T,B,L,z="";t("body").append(z),w=($=a).id,null==(b=q(w))&&(b=-1),M=$.settings.cta_body,T=$.settings.cta_head,B=t("title").text(),I(B)?(M=M.replace(/{title}/g,""),T=T.replace(/{title}/g,"")):(M=M.replace(/{title}/g,B),T=T.replace(/{title}/g,B)),M=M.replace(/{url}/g,""+window.location.href+""),T=T.replace(/{url}/g,""+window.location.href+""),L="",L+="",t("#chaty-widget-"+w).append(L)}else{var z="";t("body").append(z)}O(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=N(a.id,"c-widget");if(t("#chaty-widget-"+a.id).addClass(a.settings.show_cta),1==p&&"chat-view"!=a.settings.cta_type){"vertical"!=a.settings.icon_view&&(m="right"!=v?"right":"left");var A=S(_,a.id,m);t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(A),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 P=a.settings.cta_text;I(P)||(P=x(P)),"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-"+m),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel").append(""+P+"").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append(""+P+"").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").attr("data-text",P)):t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a").append(""+P+"").removeClass("active").addClass("has-on-hover")),"all_time"==a.settings.show_cta&&(t("#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-tooltip").append(""+P+"").addClass("active").addClass("has-on-hover"),t("#chaty-widget-"+a.id+" .chaty-i-trigger.single-channel .chaty-channel a").attr("data-text",P));var D=_;("Instagram"!=D.channel_type||"#ffffff"!=D.icon_color&&"#fff"!=D.icon_color)&&(l+="#chaty-widget-"+a.id+" ."+D.channel_type+"-channel .color-element{ fill: "+D.icon_color+"; color: "+D.icon_color+";}",l+="#chaty-widget-"+a.id+" .channel-icon-"+D.channel_type+" .color-element{ fill: "+D.icon_color+"; color: "+D.icon_color+";}"),l+="#chaty-widget-"+a.id+" ."+D.channel_type+"-channel .chaty-custom-icon { background-color: "+D.icon_color+"; }",l+="#chaty-widget-"+a.id+" ."+D.channel_type+"-channel .chaty-svg { background-color: "+D.icon_color+";}",l+="#chaty-widget-"+a.id+" .channel-icon-"+D.channel_type+" .chaty-svg { background-color: "+D.icon_color+";}","Contact_Us"==D.channel_type&&(l+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+D.contact_form_settings.button_bg_color+"; color: "+D.contact_form_settings.button_text_color+";} ",l+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+D.contact_form_settings.title_bg_color+"; } ");var F='
';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(F)}else{t.each(a.channels,function(e,c){if(k(c)){if(E(c.channel_type)&&(c.channel_type=c.channel),"chat-view"==a.settings.cta_type){var i=S(c,a.id,"top");t(".chaty-chat-view-"+a.id+" .chaty-view-channels").append(i)}else{var i=S(c,a.id,m);t("#chaty-widget-"+a.id+" .chaty-channel-list").append(i)}("Instagram"!=c.channel_type||"#ffffff"!=c.icon_color&&"#fff"!=c.icon_color)&&(l+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}",l+="#chaty-widget-"+a.id+" .channel-icon-"+c.channel_type+" .color-element{ fill: "+c.icon_color+"; color: "+c.icon_color+";}"),l+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .chaty-custom-icon { background-color: "+c.icon_color+"; }",l+="#chaty-widget-"+a.id+" ."+c.channel_type+"-channel .chaty-svg { background-color: "+c.icon_color+";}",l+="#chaty-widget-"+a.id+" .channel-icon-"+c.channel_type+" .chaty-svg { background-color: "+c.icon_color+";}",l+=".chaty-chat-view-"+a.id+" ."+c.channel_type+"-channel .chaty-custom-icon { background-color: "+c.icon_color+"; }",l+=".chaty-chat-view-"+a.id+" ."+c.channel_type+"-channel .chaty-svg { background-color: "+c.icon_color+";}",l+=".chaty-chat-view-"+a.id+" .channel-icon-"+c.channel_type+" .chaty-svg { background-color: "+c.icon_color+";}","Contact_Us"==c.channel_type&&(l+=".chaty-contact-form-box #chaty-submit-button-"+a.id+" {background-color: "+c.contact_form_settings.button_bg_color+"; color: "+c.contact_form_settings.button_text_color+";} ",l+="#chaty-form-"+a.id+"-Contact_Us .chaty-contact-form-title {background-color: "+c.contact_form_settings.title_bg_color+"; } ")}});var R,Y,X=(R=a.settings,Y=a.id,(""==R.widget_icon?R.widget_icon="chat-base":"chat-image"==R.widget_icon&&I(R.widget_icon_url)?R.widget_icon="chat-base":"chat-fa-icon"==R.widget_icon&&I(R.widget_fa_icon)&&(R.widget_icon="chat-base"),"chat-image"==R.widget_icon)?"Chaty Widget":"chat-fa-icon"==R.widget_icon?"":''+function t(e,a,c,i){switch(e){case"chat-smile":return'';case"chat-bubble":return'';case"chat-db":return'';default:return''}}(R.widget_icon,R.widget_color,R.widget_icon_color,Y)+""),P=a.settings.cta_text;"first_click"!=a.settings.show_cta||W||(P="");var J=m;"horizontal"==a.settings.icon_view&&(J="left"==v?"right":"left"),I(P)||(P=x(P));var Q='
'+P+'
';t("#chaty-widget-"+a.id+" .chaty-i-trigger").html(Q);var F='
';t("#chaty-widget-"+a.id+" .chaty-i-trigger").append(F)}t.each(a.channels,function(t,e){"Contact_Us"==e.channel_type&&"yes"==e.hide_recaptcha_badge&&(l+=".grecaptcha-badge {visibility: hidden;}")});var K,tt,te,ta,W=N(a.id,"c-widget");W&&("open"!=a.settings.default_state||1==p)&&(K=a.settings,N(tt=a.id,"c-widget")&&O(K.is_pending_mesg_enabled)&&parseInt(K.pending_mesg_count)>0&&(t("#chaty-widget-"+tt+" .chaty-widget").hasClass("has-single")?"sheen"==K.attention_effect||"spin"==K.attention_effect||"pulse"==K.attention_effect?t("#chaty-widget-"+tt+" .chaty-i-trigger .chaty-channel").append(""+K.pending_mesg_count+""):t("#chaty-widget-"+tt+" .chaty-i-trigger .chaty-channel .chaty-svg").append(""+K.pending_mesg_count+""):"jump"==K.attention_effect||"waggle"==K.attention_effect||"blink"==K.attention_effect||"pulse-icon"==K.attention_effect||"floating"==K.attention_effect?t("#chaty-widget-"+tt+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").append(""+K.pending_mesg_count+""):t("#chaty-widget-"+tt+" .chaty-i-trigger .chaty-cta-main").append(""+K.pending_mesg_count+"")),te=a.settings,N(ta=a.id,"c-widget")&&"none"!=te.attention_effect&&""!=te.attention_effect&&(t("#chaty-widget-"+ta).attr("data-animation",te.attention_effect),t("#chaty-widget-"+ta+" .chaty-widget").hasClass("has-single")?t("#chaty-widget-"+ta+" .chaty-i-trigger .chaty-channel .chaty-svg").addClass("chaty-animation-"+te.attention_effect):t("#chaty-widget-"+ta+" .chaty-i-trigger .chaty-cta-main .chaty-cta-button").addClass("chaty-animation-"+te.attention_effect)));var tc,ti,tn=0;"open"!=a.settings.default_state||O(a.settings.show_close_button)||(t("#chaty-widget-"+a.id+" .chaty-widget").addClass("chaty-no-close-button").addClass("chaty-open"),tn=1),O(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")),O(a.settings.has_custom_css)&&!I(a.settings.custom_css)&&(y+=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||!O(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")?O(a.settings.bg_blur_effect)&&(console.log("@323"),t("body").addClass("add-bg-blur-effect")):t("body").removeClass("add-bg-blur-effect"),O(a.settings.bg_blur_effect)&&t("#chaty-widget-"+a.id+" .chaty-widget:not(.chaty-no-close-button)").addClass("has-bg-blur-effect");var ts=(tc=a.settings.widget_size,ti=a.settings.custom_widget_size,tc);if(ts=parseInt(ts),l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel > a .chaty-custom-icon {display:block; width: "+ts+"px; height: "+ts+"px; line-height: "+ts+"px; font-size: "+parseInt(ts/2)+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel button {width: "+ts+"px; height: "+ts+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg img {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel span.chaty-icon {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel a {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+ts+"px; height: "+ts+"px; line-height: "+ts+"px; display: block; font-size:"+parseInt(ts/2)+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button {background-color: "+a.settings.widget_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-cta-button button {background-color: "+a.settings.widget_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel > a .chaty-custom-icon {display:block; width: "+ts+"px; height: "+ts+"px; line-height: "+ts+"px; font-size: "+parseInt(ts/2)+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel button {width: "+ts+"px; height: "+ts+"px; margin: 0; padding:0; outline: none; border-radius: 50%;}",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg img {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel span.chaty-icon {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel a {width: "+ts+"px; height: "+ts+"px; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg .chaty-custom-channel-icon {width: "+ts+"px; height: "+ts+"px; line-height: "+ts+"px; display: block; font-size:"+parseInt(ts/2)+"px; }",l+="#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+"; }",l+="#chaty-widget-"+a.id+" .chaty-i-trigger .chaty-channel .chaty-svg .widget-fa-icon {line-height: "+ts+"px; font-size:"+parseInt(ts/2)+"px; }","vertical"==a.settings.icon_view){l+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+p*(ts+8)+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+(ts+8)+"px; }";for(var to=0;to<=p;to++)l+="#chaty-widget-"+a.id+" .chaty-open .chaty-channel-list .chaty-channel:nth-child("+(to+1)+") {-webkit-transform: translateY(-"+(ts+8)*(p-to-tn)+"px); transform: translateY(-"+(ts+8)*(p-to-tn)+"px);}"}else{t("#chaty-widget-"+a.id+" .chaty-widget").addClass("hor-mode"),l+="#chaty-widget-"+a.id+" .chaty-channel-list {width: "+p*(ts+8)+"px; }",l+="#chaty-widget-"+a.id+" .chaty-channel-list {height: "+ts+"px; }";for(var to=0;to<=p;to++)l+="#chaty-widget-"+a.id+" .chaty-widget.left-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(to+1)+") {-webkit-transform: translateX("+(ts+8)*(p-to-tn)+"px); transform: translateX("+(ts+8)*(p-to-tn)+"px);}",l+="#chaty-widget-"+a.id+" .chaty-widget.right-position.hor-mode.chaty-open .chaty-channel-list .chaty-channel:nth-child("+(to+1)+") {-webkit-transform: translateX(-"+(ts+8)*(p-to-tn)+"px); transform: translateX(-"+(ts+8)*(p-to-tn)+"px);}"}var tl=a.settings.bottom_spacing,th=a.settings.side_spacing;l+="#chaty-widget-"+a.id+" .chaty-widget {bottom: "+tl+"px}","left"==v?(l+="#chaty-widget-"+a.id+" .chaty-widget {left: "+th+"px; right: auto;}",l+=".chaty-outer-forms.pos-left.chaty-form-"+a.id+" {left: "+th+"px}",t(".chaty-form-"+a.id).addClass("pos-left")):(l+="#chaty-widget-"+a.id+" .chaty-widget {right: "+th+"px; left:auto;}",t(".chaty-form-"+a.id).addClass("pos-right"),l+=".chaty-outer-forms.pos-right.chaty-form-"+a.id+" {right: "+th+"px; left:auto;}"),t(".chaty-form-"+a.id).show();var tr=ts+15+parseInt(tl);l+=".chaty-outer-forms.active.chaty-form-"+a.id+" {-webkit-transform: translateY(-"+tr+"px); transform: translateY(-"+tr+"px)} ",l+="#chaty-widget-"+a.id+".chaty:not(.form-open) .chaty-widget.chaty-open + .chaty-chat-view {-webkit-transform: translateY(-"+tr+"px); transform: translateY(-"+tr+"px)} ",l+="#chaty-widget-"+a.id+" .chaty-tooltip:after {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top:before {border-top-color: "+a.settings.cta_bg_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left:before {border-left-color: "+a.settings.cta_bg_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right:before {border-right-color: "+a.settings.cta_bg_color+";}",l+="#chaty-widget-"+a.id+" .on-hover-text {background-color: "+a.settings.cta_bg_color+"; color: "+a.settings.cta_text_color+"}",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-top .on-hover-text:before {border-top-color: "+a.settings.cta_bg_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-left .on-hover-text:before {border-left-color: "+a.settings.cta_bg_color+"; }",l+="#chaty-widget-"+a.id+" .chaty-tooltip.pos-right .on-hover-text:before {border-right-color: "+a.settings.cta_bg_color+";}";var td=tr+72+ts;td>0&&(l+=".chaty-outer-forms.chaty-form-"+a.id+" .chaty-agent-body {max-height: calc(100vh - "+td+"px); overflow-y: auto; } "),l+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header {background-color: "+a.settings.cta_head_bg_color+";}",l+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header {color: "+a.settings.cta_head_text_color+";}",l+="#chaty-form-"+a.id+"-chaty-chat-view .chaty-view-header svg {fill : "+a.settings.cta_head_text_color+";}";var tg=tr+82+ts;tg>0&&(l+=".chaty-outer-forms.chaty-contact-form-box.chaty-form-"+a.id+" .chaty-contact-inputs {max-height: calc(100vh - "+tg+"px); overflow-y: auto; } "),(25!=tl||25!=th)&&(t(".chaty-outer-forms.chaty-form-"+a.id).addClass("custom-cht-pos"),t("#chaty-widget-"+a.id).addClass("has-custom-pos"));var ty=parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-header").outerHeight())+parseInt(t("#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-footer").outerHeight())+parseInt(ts)+parseInt(tl)+20;if(l+="#chaty-form-"+a.id+"-Whatsapp .chaty-whatsapp-body { max-height: calc(100vh - "+ty+"px); overflow-y: auto; }",N(a.id,"v-widget")&&(O(a.triggers.exit_intent)||O(a.triggers.has_time_delay)||O(a.triggers.has_display_after_page_scroll)>0)?(O(a.triggers.has_time_delay)&&0==parseInt(a.triggers.time_delay)?(j(a.id),t("#chaty-widget-"+a.id).addClass("active")):O(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))),O(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")):O(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))),O(a.triggers.exit_intent)&&(g=!0,t("#chaty-widget-"+a.id).addClass("on-chaty-exit-intent"))):(j(a.id),t("#chaty-widget-"+a.id).addClass("active")),!I(a.settings.font_family)&&"none"!=a.settings.font_family){var tp=a.settings.font_family;-1!=t.inArray(tp,o)?"System Stack"==tp&&(tp="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"):(t("head").append(''),t("head").append('')),l+="#chaty-widget-"+a.id+", #chaty-widget-"+a.id+" .chaty-tooltip:after {font-family: "+tp+"}"}}g&&(s?function e(){if(window.history&&window.history.pushState&&g){function a(){g&&""!==location.hash.split("#!/")[1]&&""===window.location.hash&&H()}var c=100;window.history.state&&window.history.state.page&&(c=window.history.state.page),window.history.pushState({page:c+1},""),window.history.pushState({page:c+2},""),window.onpopstate=function(){a()},window.history.onpopstate=function(){a()},window.addEventListener("popstate",function(){a()}),document.addEventListener("backbutton",function(){a()}),window.addEventListener("backbutton",function(){a()}),t(window).on("popstate",function(){a()})}}():t(document).mouseleave(function(t){var e,a,c="mouseout";e=document,a=function(t){null==t.toElement&&null==t.relatedTarget&&H()},e.addEventListener?(e.addEventListener(c,a,!1),H()):e.attachEvent&&e.attachEvent("on"+c,a)})),""!=l&&(t("#custom-chaty-css").length||t("head").append(""),t("#custom-chaty-css").append(l)),""!=y&&(t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(y)),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,C())).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")&&(O(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")&&O(a.settings.bg_blur_effect)&&(t("body").addClass("add-bg-blur-effect"),console.log("@32334"))})}),t("#custom-advance-chaty-css").length||t("head").append(""),t("#custom-advance-chaty-css").append(f),(t(".v3_site_key").length&&!I(t(".v3_site_key").val())||t(".v2_site_key").length&&!I(t(".v2_site_key").val()))&&function t(){if(jQuery(".v2_site_key").length&&""!=jQuery(".v2_site_key").val()){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="https://www.google.com/recaptcha/api.js?onload=onloadChatyCallback&render=explicit&hl=en",(document.getElementsByTagName("head")[0]||document.getElementsByTagName("body")[0]).appendChild(e)}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")}),t(".chaty.auto-hide-chaty").length&&(c=setInterval(function(){var e=++u;if(t(".chaty.auto-hide-chaty.hide-after-"+u).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(){if(t(".chaty.delay-time-"+ ++p).length){var e=t(".chaty.delay-time-"+p).data("id");D(e)}},1e3)),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(_<=c){var i=_;_=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)});_=c}}}}),window.innerWidth,document.documentElement.clientWidth)}function C(){return t("title").length?t("title").text():""}function x(t){return new DOMParser().parseFromString(t,"text/html").documentElement.textContent}function k(t){if(O(t.is_agent)){if(t.agent_data.length&&(!s&&O(t.is_agent_desktop)||s&&O(t.is_agent_mobile)))return!0}else if((!s&&O(t.is_desktop)||s&&O(t.is_mobile))&&(""!=t.value||"Contact_Us"==t.channel))return!0;return!1}function j(e){if(t("#chaty-widget-"+e+" .chaty-channel.chaty-default-open").length){var a=t("#chaty-widget-"+e+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").data("form");if(!I(a)){var c=N(e,"c-"+t("#chaty-widget-"+e+" .chaty-channel.chaty-default-open").data("channel"));if(c&&(t("#"+a).addClass("is-active"),t("#"+a).length)){var n=t("#chaty-widget-"+e+" .chaty-channel.chaty-default-open a.chaty-whatsapp-btn-form").html()+""+chaty_settings.lang.hide_whatsapp_form+"";if($(e),t("#chaty-widget-"+e).find(".ch-pending-msg").remove(),t("#chaty-widget-"+e+" .chaty-widget").removeClass("chaty-open"),t("#chaty-widget-"+e).addClass("form-open"),t("#"+a).addClass("active"),t("#chaty-widget-"+e+" .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-"+e+" .open-chaty-channel").html(n),t("#chaty-widget-"+e).addClass("active"),t("#chaty-widget-"+e).addClass("active"),t("#chaty-widget-"+e).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+e).data("time"));o>0&&(o+=u,t("#chaty-widget-"+e).addClass("hide-after-"+o))}if("on"==chaty_settings.data_analytics_settings){var h=[],r=t("#chaty-widget-"+e+" .chaty-channel.chaty-default-open").data("channel"),d=N(e,"v-"+r);if(d&&void 0!==r&&(F(e,"v-"+r),h.push(r)),!l&&h.length){var g=t("#chaty-widget-"+e).data("nonce");t.ajax({url:chaty_settings.ajax_url,data:{widgetId:e,channels:h,userId:e,isMobile:s,widgetNonce:g,action:"update_chaty_channel_views"},type:"post",dataType:"json",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}return}}}if(t("#chaty-widget-"+e).addClass("active"),t("#chaty-widget-"+e).hasClass("auto-hide-chaty")){var o=parseInt(t("#chaty-widget-"+e).data("time"));o>0&&(o+=u,t("#chaty-widget-"+e).addClass("hide-after-"+o))}var y=N(e,"v-widget");if(y){F(e,"v-widget"),t("#chaty-widget-"+e).data("user");var r,h=[],p=0,_=0;i[t("#chaty-widget-"+e).data("key")];var f=Y("activechatyWidgets");if(null!=f?(f=f.split(","),-1==t.inArray(e,f)&&(f.push(e),R("activechatyWidgets",f=f.join(","),1))):(f=e,R("activechatyWidgets",f,1)),t("#chaty-widget-"+e+" .chaty-widget").hasClass("has-single")){p=1,r=t("#chaty-widget-"+e+" .chaty-channel").data("channel");var d=N(e,"v-"+r);d&&void 0!==r&&(F(e,"v-"+r),h.push(r))}else t("#chaty-widget-"+e+" .chaty-widget").hasClass("chaty-open")&&(_=1,t("#chaty-widget-"+e).hasClass("chaty-has-chat-view")?t(".chaty-chat-view.chaty-chat-view-"+e+" .chaty-view-channels").find(".chaty-channel").each(function(){chatyChannel=t(this).data("channel"),(c=N(e,"v-"+chatyChannel))&&"undefined"!=typeof chatyChannel&&(F(e,"v-"+chatyChannel),h.push(chatyChannel))}):t("#chaty-widget-"+e+" .chaty-channel-list .chaty-channel").each(function(){r=t(this).data("channel"),N(e,"v-"+r)&&void 0!==r&&(F(e,"v-"+r),h.push(r))}));if(y&&!l){var g=t("#chaty-widget-"+e).data("nonce");l||t.ajax({url:chaty_settings.ajax_url,data:{widgetId:e,channels:h,userId:e,isMobile:s,isOpen:_,isSingle:p,widgetNonce:g,action:"update_chaty_widget_views"},type:"post",dataType:"json",success:function(t){},error:function(t,e,a){monitorErrorLog(t,e,a)}})}}}function M(e){var a=t("#chaty-widget-"+e).data("user");chatySaasCheckCookie("triggeredFor"+a)||R("triggeredFor"+a,e,2)}function T(t,e){return t}function S(e,a,c){var i="";if(O(e.is_agent)){if(e.agent_data.length){var n=0,o=[];if(t.each(e.agent_data,function(t,e){""!=e.value&&(n++,o=e)}),n>0){var l,h,r,d,g,y,p=q(a);return null==p&&(p=-1),r=e,d=a,g="",null==(y=q(d))&&(y=-1),g+="",f+=".chaty-agent-header.agent-info-"+d+"-"+r.channel+" { background-color: "+r.header_bg_color+"; color: "+r.header_text_color+" } ",f+=".agent-info-"+d+"-"+r.channel+" .chaty-close-agent-list svg { fill: "+r.header_text_color+" } ",t("body").append(g),l=A(e,a),h=W(e,l,c,a),("Instagram"!=e.channel||"#ffffff"!=e.icon_color&&"#fff"!=e.icon_color)&&(f+=".chaty-agent-"+a+"-"+e.channel+" .color-element {fill: "+e.icon_color+"; color: "+e.icon_color+";}"),f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-custom-icon { background-color: "+e.icon_color+";}",f+=".chaty-agent-"+a+"-"+e.channel+" .chaty-svg-img { background-color: "+e.icon_color+";}","
"+h+"
"}}}else{E(e.channel_type)&&(e.channel_type=e.channel);var l=A(e,a),h=W(e,l,c,a);return"Contact_Us"==e.channel_type?i+=" has-chaty-box chaty-contact-form":"Whatsapp"==e.channel_type&&O(e.is_default_open)&&N(a,"c-"+e.channel_type)&&(i+=" chaty-default-open"),"
"+h+"
"}}function B(e,a,c,i,n){var o=a.value,l="_blank";if("Whatsapp"==e.channel_type){var h=L(a.value);s?(l="",o="https://wa.me/"+h):(l="_blank",o="https://web.whatsapp.com/send?phone="+h)}else"WeChat"==e.channel_type?(l="",o="javascript:;"):"Email"==e.channel_type?(l="",o="mailto:"+a.value):"Facebook_Messenger"==e.channel_type?l=s?"":"_blank":"SMS"==e.channel_type?(l="",o="sms:"+a.value):"Telegram"==e.channel_type?(o="https://telegram.me/"+(o=z(a.value,"@")),l="_blank"):"Twitter"==e.channel_type?o="https://twitter.com/"+t.trim(a.value):"Phone"==e.channel_type?(l="",o="tel:"+t.trim(a.value)):"Skype"==e.channel_type?(l="",o="skype:"+t.trim(a.value)+"?chat"):"Snapchat"==e.channel_type?o="https://www.snapchat.com/add/"+t.trim(a.value):"Vkontakte"==e.channel_type?o="https://vk.me/"+t.trim(a.value):"Linkedin"==e.channel_type?o="personal"==a.link_type?"https://www.linkedin.com/in/"+t.trim(a.value):"https://www.linkedin.com/company/"+t.trim(a.value):"Viber"==e.channel_type?(""!=a.viber_url?o="viber://pa?chatURI="+a.value:isNaN(o=z(a.value,"+"))||(o=o.replace("+",""),navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(o="+"+o),o="viber://chat?number="+o),l=""):"TikTok"==e.channel_type&&(o="https://www.tiktok.com/@"+(o=z(t.trim(a.value),"@")),l="");return""+i+""}function L(t){return t=(t=(t=(t=z(t,"+")).replace(/ /g,"")).replace(/-/g,"")).replace(/_/g,"")}function z(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 W(e,a,c,i){var n,o,l,h,r,d,g,y,p,_,f="";if(O(e.is_agent))e.url="javascript:;",e.target="";else if("Whatsapp"==e.channel_type){if(O(e.has_welcome_message))e.url="javascript:;",e.target="",f+=" has-chaty-box chaty-whatsapp-btn-form",function e(a,c){let i=new Date;var n=10>i.getMinutes()?"0"+i.getMinutes():i.getMinutes(),o=10>i.getHours()?"0"+i.getHours():i.getHours(),l="",h=q(c);null==h&&(h=-1);var r="https://web.whatsapp.com/send",d="";s?r="https://wa.me/"+a.value:(r=O(a.is_use_web_version)?"https://web.whatsapp.com/send":"https://wa.me/"+a.value,d="_blank"),l+="