(()=>{var t;(t=jQuery)((function(){var e,a=window.location.href,o=void 0!==screen.width&&screen.width>1024?"no":"yes",n=void 0!==document.title?document.title:"";function i(e){try{var a=parseInt(e.getAttribute("data-show_effect"));t(e).show(a)}catch(t){e.style.display="block"}var o=e.getAttribute("data-an_type"),n=t(e).hasClass("ht_ctc_entry_animation")?1200:120;setTimeout((function(){e.classList.add("ht_ctc_animation",o)}),n),t(".ht-ctc-group").hover((function(){t(".ht-ctc-group .ht-ctc-cta-hover").show(220)}),(function(){t(".ht-ctc-group .ht-ctc-cta-hover").hide(100)}))}function c(t){var e=t.getAttribute("data-group_id"),o="Click to Chat for WhatsApp",i="group: "+e,c=n+", "+a;"yes"==t.getAttribute("data-is_ga_enable")&&("undefined"!=typeof gtag?gtag("event",i,{event_category:o,event_label:c}):"undefined"!=typeof ga&&void 0!==ga.getAll?ga.getAll()[0].send("event",o,i,c):"undefined"!=typeof __gaTracker&&__gaTracker("send","event",o,i,c)),"undefined"!=typeof dataLayer&&dataLayer.push({event:"Click to Chat",event_category:o,event_label:c,event_action:i}),"yes"==t.getAttribute("data-ga_ads")&&"undefined"!=typeof gtag_report_conversion&&gtag_report_conversion(),"yes"==t.getAttribute("data-is_fb_pixel")&&"undefined"!=typeof fbq&&fbq("trackCustom","Click to Chat by HoliThemes",{Category:"Click to Chat for WhatsApp",return_type:"group",ID:e,Title:n,URL:a})}(e=document.querySelector(".ht-ctc-group"))&&(function(t){if("yes"==o){if("show"==t.getAttribute("data-display_mobile")){(n=document.querySelector(".ht_ctc_desktop_group"))&&n.remove();var e=t.getAttribute("data-css"),a=t.getAttribute("data-position_mobile");t.style.cssText=a+e,i(t)}}else if("show"==t.getAttribute("data-display_desktop")){var n;(n=document.querySelector(".ht_ctc_mobile_group"))&&n.remove(),e=t.getAttribute("data-css");var c=t.getAttribute("data-position");t.style.cssText=c+e,i(t)}}(e),e.addEventListener("click",(function(){var t=e.getAttribute("data-group_id");window.open("https://chat.whatsapp.com/"+t,"_blank","noopener"),c(e)}))),t(document).on("click",".ht-ctc-sc-group",(function(){data_link=this.getAttribute("data-ctc-link"),data_link=encodeURI(data_link),window.open(data_link,"_blank","noopener"),c(this)}))}))})();