1/*! 2 * 3 * smartcta 4 * 5 * @author 6 * @version 7 7 * @link UNLICENSED 8 * @license UNLICENSED 9 * 10 * Copyright (c) 2026 11 * 12 * This software is released under the UNLICENSED License 13 * https://opensource.org/licenses/UNLICENSED 14 * 15 * Compiled with the help of https://wpack.io 16 * A zero setup Webpack Bundler Script for WordPress 17 */ 18(window.wpackiosmartctapublicJsonp=window.wpackiosmartctapublicJsonp||[]).push([[0],[function(t,e,n){n(1),t.exports=n(2)},function(t,e,n){{const t="smartctadist".replace(/[^a-zA-Z0-9_-]/g,"");n.p=window["__wpackIo".concat(t)]}},function(t,e,n){"use strict";n.r(e);const a=plugin_frontend_script.smartcta_options;function c(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";console.log("logEvent",t,e,n),window.dataLayer&&window.dataLayer.push({event:"smartcta",smartcta_type:t,smartcta_action:e,smartcta_details:n})}function o(){var t=document.querySelectorAll(".gfield");function e(t){var e=t.target,n=e.parentElement.offsetParent;e.parentElement.parentElement.classList.contains("ginput_container_password")&&(n=e.parentElement),n.classList.add("smartcta--floating-label")}for(var n=0,a=t.length;n<a;n++){var c=t[n].querySelector("input, textarea");c&&(c.addEventListener("focus",(function(t){e(t)})),c.addEventListener("blur",(function(t){var e=t.target.value,n=t.target.parentElement.offsetParent;""===e||void 0===e?n.classList.remove("smartcta--floating-label"):n.classList.add("smartcta--floating-label")})))}for(var o=document.querySelectorAll(".ginput_container > input, .ginput_container > textarea, .ginput_container_password input"),s=0,r=o.length;s<r;s++){var i=o[s].value,l=o[s].parentElement.parentElement;i&&l.classList.add("smartcta--floating-label")}}if(Object.keys(a).forEach(t=>{t.endsWith("_color")&&document.documentElement.style.setProperty("--smartcta-"+t,a[t])}),setTimeout((function(){o()}),1e3),document.addEventListener("DOMContentLoaded",(function(){const t=document.querySelector(".smartcta"),e=document.querySelector(".smartcta--main__button-main"),n=(document.querySelector(".smartcta--cta-inner"),document.querySelector(".smartcta--main__cta-close")),a=document.querySelector(".smartcta--menu-trigger"),o=document.querySelector(".smartcta--close-all"),s=document.querySelector(".smartcta--menu");if(t.classList.add("js-loaded"),t.querySelectorAll(".hide-onload").forEach(t=>{t.style.display="block",t.classList.remove("hide-onload")}),null===e||e.classList.contains("no-click")||e.classList.contains("direct-link")||e.addEventListener("click",(function(){let e=document.querySelector(".smartcta--main__cta");e.classList.contains("opened")?(u(),c("MainCTA","Close")):(t.querySelectorAll(".opened").forEach(t=>{t.classList.remove("opened")}),e.classList.add("opened"),c("MainCTA","Open"),d())})),null!==e&&e.classList.contains("no-click")&&e.addEventListener("click",(function(){c("MainCTA","Open")})),null!==e&&e.classList.contains("direct-link")&&e.addEventListener("click",(function(){c("MainCTA","DirectLink",e.getAttribute("href"))})),n.addEventListener("click",(function(){c("MainCTA","Close"),document.querySelector(".smartcta--main__cta").classList.remove("opened"),o.classList.add("hidden"),a.classList.remove("hidden"),t.classList.remove("contains-opened")})),null!==a&&a.addEventListener("click",m),null!==o&&o.addEventListener("click",u),document.querySelectorAll(".smartcta--menu-item").forEach((e,n)=>{e.addEventListener("click",(function(){e.classList.contains("has-contents")&&function(e){if(null===document.querySelector('[data-smartcta-id="'+e+'"]')){let t=doc.querySelector('[data-smartcta-id="'+e+'"]');document.querySelector(".smartcta--other-ctas").append(t)}setTimeout((function(){!function(e){let n=document.querySelector('[data-smartcta-id="'+e+'"]');n.classList.contains("opened")?(n.classList.remove("opened"),o.classList.add("hidden"),a.classList.remove("hidden"),t.classList.remove("contains-opened")):(n.classList.add("opened"),m(),d())}(e)}),1),document.querySelectorAll(".smartcta--other__cta-close").forEach(t=>{t.addEventListener("click",l)})}(n),c("SubCTA","Open",e.querySelector(".smartcta--menu-item-content-in span").textContent)}))}),document.querySelectorAll(".smartcta--main__cta a:not(.smartcta--menu-item)").forEach((t,e)=>{t.addEventListener("click",(function(){c("MainCTA","Linkclick",t.getAttribute("aria-label"))}))}),document.querySelectorAll(".smartcta--menu a:not(.smartcta--menu-item)").forEach((t,e)=>{t.addEventListener("click",(function(){c("SubCTA","Linkclick",t.getAttribute("aria-label"))}))}),null!==e&&e.classList.contains("auto-open")){const t="smartcta-auto-timeout";i(t)||"true"===r(t)||setTimeout((function(){i(t)||"true"===r(t)||(!function(t,e){try{sessionStorage.setItem(t,e?"true":"false")}catch(t){}}(t,!0),function(t,e){const n=new Date(Date.now()+864e5),a="https:"===location.protocol?"; Secure":"";document.cookie="".concat(t,"=").concat(e,"; path=/; expires=").concat(n.toUTCString(),"; SameSite=Lax").concat(a)}(t,"true"),document.querySelector(".smartcta--main__cta").classList.add("opened"),d())}),3e3)}function r(t){const e=document.cookie.match("(^|;)\\s*".concat(t,"\\s*=\\s*([^;]+)"));return e?e.pop():""}function i(t){try{return"true"===sessionStorage.getItem(t)}catch(t){return!1}}function l(){document.querySelectorAll(".smartcta--other__cta").forEach(t=>{t.classList.remove("opened")}),o.classList.add("hidden"),a.classList.remove("hidden"),t.classList.remove("contains-opened")}function d(){t.classList.add("contains-opened"),o.classList.remove("hidden"),a.classList.add("hidden")}function u(){t.querySelectorAll(".opened").forEach(t=>{t.classList.contains("smartcta--menu")?c("Menu","Close"):t.classList.contains("smartcta--other__cta"),t.classList.remove("opened")}),o.classList.add("hidden"),a.classList.remove("hidden"),t.classList.remove("contains-opened")}function m(){null!==s&&(s.classList.contains("opened")?(s.classList.remove("opened"),c("Menu","Close")):(s.classList.add("opened"),d(),c("Menu","Open")))}}),!1),document.getElementsByClassName("gform_body").length){var s=!0;$(document).bind("gform_post_render",(function(){o(),s&&(s=!1)}))}function r(t){var e=t.querySelector("#indicator"),n=t.querySelectorAll(".carousel-inner > *"),a=0;for(var c=new IntersectionObserver((function(t,c){var s=t.reduce((function(t,e){return e.intersectionRatio>t.intersectionRatio?e:t}));s.intersectionRatio>0&&(a=o[s.target.getAttribute("id")],function(){e.innerHTML="";for(var t=0;t<n.length;t++){var c=document.createElement("button");c.innerHTML="â¢",c.classList.add(t===a?"active":"inactive"),function(t){c.onclick=function(){n[t].scrollIntoView()}}(t),e.appendChild(c)}}())}),{root:t,threshold:.5}),o={},s=0;s<n.length;s++)o[n[s].getAttribute("id")]=s,c.observe(n[s])}jQuery(document).on("gform_confirmation_loaded",(function(t,e){let n=$("#gf_"+e).parents(".form");if(n.length&&n.parents(".smartcta".length)){n.prevAll().hide();let t=document.querySelector("#gf_"+e).parentElement.parentElement.querySelector(".gform_title").textContent;""===t&&(t="Form has no specified name"),c("Form","Submit",t)}})),document.querySelectorAll(".carousel").forEach((function(t){r(t)}))}],[[0,1]]]); 19//# sourceMappingURL=main-7b010c74.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.