(()=>{"use strict";var t;(t=jQuery)(function(){var e=window.location.href,a="no",n="no";try{void 0!==navigator.userAgent&&navigator.userAgent.match(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i)&&(a="yes",navigator.userAgent.match(/iPhone/i)&&(n="yes"))}catch(t){}"no"===a&&(a=void 0!==screen.width&&screen.width>1025?"no":"yes");var i,o=void 0!==document.title?document.title:"";function r(e){try{var a=parseInt(e.getAttribute("data-show_effect"));t(e).show(a)}catch(t){e.style.display="block"}!function(e){var a=e.getAttribute("data-an_type"),n=t(e).hasClass("ht_ctc_entry_animation")?1200:120;setTimeout(function(){e.classList.add("ht_ctc_animation",a)},n),t(".ht-ctc-share").hover(function(){t(".ht-ctc-share .ht-ctc-cta-hover").show(220)},function(){t(".ht-ctc-share .ht-ctc-cta-hover").hide(100)})}(e)}function c(t){var a=t.getAttribute("data-share_text"),n="Click to Chat for WhatsApp",i="share: "+a,r=o+", "+e;"yes"===t.getAttribute("data-is_ga_enable")&&("undefined"!=typeof gtag?gtag("event",i,{event_category:n,event_label:r}):"undefined"!=typeof ga&&void 0!==ga.getAll?ga.getAll()[0].send("event",n,i,r):"undefined"!=typeof __gaTracker&&__gaTracker("send","event",n,i,r)),"undefined"!=typeof dataLayer&&dataLayer.push({event:"Click to Chat",event_category:n,event_label:r,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:"share",ID:a,Title:o,URL:e})}"undefined"!=typeof ht_ctc_share_var&&ht_ctc_share_var,(i=document.querySelector(".ht-ctc-share"))&&(function(t){var e=t.getAttribute("data-css");if("yes"===a){if("show"===t.getAttribute("data-display_mobile")){var n=document.querySelector(".ht_ctc_desktop_share");n&&n.remove();var i=t.getAttribute("data-position_mobile");t.style.cssText=i+e,r(t)}}else if("show"===t.getAttribute("data-display_desktop")){var o=document.querySelector(".ht_ctc_mobile_share");o&&o.remove();var c=t.getAttribute("data-position");t.style.cssText=c+e,r(t)}}(i),i.addEventListener("click",function(){var t;(function(t){var e=t.getAttribute("data-share_text"),i=t.getAttribute("data-webandapi"),o="api";"webapi"===i&&(o="yes"===a?"api":"web");var r="https://"+o+".whatsapp.com/send",c="_blank";"yes"===n&&(c="_self"),window.open(r+"?text="+e,c,"noopener")})(t=i),c(t)})),t(document).on("click",".ht-ctc-sc-share",function(){data_link=this.getAttribute("data-ctc-link"),data_link=encodeURI(data_link),window.open(data_link,"_blank","noopener"),c(this)})})})();