(()=>{"use strict";var t;(t=jQuery)(function(){var e=window.location.href,a="no",n="no";try{const t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i;void 0!==navigator.userAgent&&navigator.userAgent.match(t)&&(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})}(i=document.querySelector(".ht-ctc-share"))&&(function(t){const 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="api";"webapi"===t.getAttribute("data-webandapi")&&(i="yes"===a?"api":"web");var o="https://"+i+".whatsapp.com/send",r="_blank";"yes"===n&&(r="_self"),window.open(o+"?text="+e,r,"noopener")})(t=i),c(t)})),t(document).on("click",".ht-ctc-sc-share",function(){var t=this.getAttribute("data-ctc-link");t=encodeURI(t),window.open(t,"_blank","noopener"),c(this)})})})();