1var WPFormsTheme=window.WPFormsTheme||{};WPFormsTheme.Main=WPFormsTheme.Main||function(n,a,s){"use strict";var o={init:function(){s("body").removeClass("no-js"),s(n).ready(o.ready)},ready:function(){o.bindEvents(),o.footerExpandableSubmenu(),o.hasURLHash(),o.initSliders(),o.initWpfLightbox(),o.initCounterUp(),o.initDiscountCheck(),o.initHacks(),o.initVideoPlayerListener(),o.maybeAutoPlayEmbedVideos(),o.tooltipsPosition(),o.maybeClearCartBumpCookie(),o.scrollMarginHeadingOM(),o.createTemplatesFilterDropdown(),o.responsiveTable(),o.featureRefererLink(),o.initLanguageSwitcherWidget()},footerExpandableSubmenu:function(){s(n).on("click",".footer-widgets .menu-item-has-children > a",function(e){e.preventDefault(),s(this).parent().toggleClass("active"),s(this).siblings("ul.sub-menu").slideToggle(200)})},bindEvents:function(){s(n).on("click touch","#navigation-toggle",function(e){e.preventDefault(),s(this).attr("aria-expanded","true"!==s(this).attr("aria-expanded"))}),s(".wpf-mega-menu > .menu-item-has-children > a").on("click",function(e){var t=s(this).next();"none"!==t.css("pointer-events")&&(e.preventDefault(),t.trigger("click"))}),s(n).on("click",".accordion-title",function(e){e.preventDefault(),o.accordionToggle(s(this))}),s(n).on("click",'a[href="#faqs"], a[href="#resources"]',function(e){e.preventDefault();var t,i,e=s(this).closest(".faq-resources-section");e.length&&(t="#resources"===s(this).attr("href"),i=e.find('.wp-block-wpforms-site-blocks-faq-accordion, [data-tab="faqs"]'),e=e.find('.faq-resources-panel[data-tab="resources"]'),i.toggle(!t),e.toggle(t),t)&&((i=e.find(".resources-slider")).length&&!i.data("lightslider-initialized")&&(i.lightSlider({item:1,slideMargin:0,pager:!0,controls:!1,adaptiveHeight:!0,enableDrag:!1}),i.data("lightslider-initialized",!0)),s(a).resize())}),s(n).on("click",'a[href="#pricing-table-comparison"]',function(e){e.preventDefault(),o.scrollToPricingTableComparison()}),s(".block-read-more").find('a[href="#read-more"]').on("click",function(e){e.preventDefault(),this.expand=!this.expand;e=s(this).data("labels");s(this).text(this.expand?e?.close??"Read Less":e?.open??"Read More"),s(this).closest(".block-read-more").find(".collapsed, .expanded").toggleClass("collapsed expanded")}),s(n).on("click",".wp-block-wpforms-site-blocks-demo-promo-section .wp-block-button.is-style-link-with-photos .wp-block-button__link",function(e){o.revealSupportChat()&&e.preventDefault()}),s(a).on("hashchange",o.hasURLHash),s(n).on("click",":not(.widget-wrap) .form-template-disabled .wpforms-submit",function(e){s(this).closest(".widget-wrap").length||e.preventDefault()}),s(n).on("click",".footer-widgets .widget-title",function(e){s(this).next().parent().toggleClass("open")})},hasURLHash:function(){"#pricing-table-comparison"===a.location.hash&&o.scrollToPricingTableComparison(),"#ask-a-question"===a.location.hash&&o.revealSupportChat()},scrollToPricingTableComparison:function(){s(".hidden-initial").show();var e=s(".block-pricing-table-comparison");0===e.length&&(e=s(".wp-block-wpforms-site-blocks-pricing-table-comparison-section")),s("html, body").animate({scrollTop:e.offset().top})},revealSupportChat(){var e=s('[data-supportassist][data-mode="embedded"]').first();return!!e.length&&(e.parents().addBack().filter(function(){return"none"===this.style.display}).show(),!!e.is(":visible"))&&(s("html, body").animate({scrollTop:e.offset().top-100}),!0)},accordionToggle:function(e){var e=s(e),t=e.closest("dt").next("dd"),i=e.closest(".accordion").find("dd");if(t.hasClass("active"))return i.slideUp(300).removeClass("active"),e.closest("dt").removeClass("expanded"),!1;e.closest("dt").addClass("expanded"),i.slideUp(300).removeClass("active"),t.addClass("active").slideDown(300)},beforeInitSliders:function(){s(".slider-clone").on("wpfBeforeSliderInit",function(e,t){var i=t.clone();i.removeClass(["slider","slider-clone"]),i.removeAttr("data-options"),i.insertAfter(t)})},initSliders:function(){const n=s(".slider");n.length&&(o.beforeInitSliders(),n.each(function(){var e=s(this),t={item:1,loop:!1,controls:!0,enableDrag:!1,adaptiveHeight:!0,onSliderLoad:function(e){s(e).removeClass("cS-hidden")}},i=(e.trigger("wpfBeforeSliderInit",[e]),s(this).data("options"));if(i){var i=s.extend({},t,i);if(i.gridMatchHeight){const o=i.onSliderLoad;i.onSliderLoad=function(e){o(e);e=s(e).find(".lslide").length;n.css("grid-template-columns",`repeat(${e},1fr)`)}}e.lightSlider(i),i.arrowOutside&&(i=e.closest(".lSSlideOuter")).before(i.find(".lSAction"))}else e.lightSlider(t)}))},maybeAutoPlayEmbedVideos:function(){const t=s(".single-post iframe");var e=a.location.hash.substring(1);e&&"1"===new URLSearchParams(e).get("announcement-video")&&0<t.length&&s(n.documentElement).add(n.body).animate({scrollTop:t.offset().top-100},1e3,function(){var e=t.attr("src");e&&(e=`${e}${e.includes("?")?"&":"?"}autoplay=1&mute=1`,t.attr("allow","autoplay;"),t.attr("src",e))})},initWpfLightbox(){let i;s(n).on("click",".video-pop, .iframe-pop, .iframe-pop-small, .image-pop",function(e){e.preventDefault(),i&&clearTimeout(i),i=setTimeout(()=>{try{var e=o.getWpfLightBoxType(this),t=wpfLightBox(this,e);this.classList.contains("iframe-pop-small")&&t.dialog.classList.add("wpf-lightbox-small"),this.classList.contains("wpf-lightbox-height-auto")&&t.dialog.classList.add("wpf-lightbox-height-auto"),i=null}catch(e){wpformsMain.devMode&&console.error("Error initializing wpf-lightbox:",e)}},300)})},getWpfLightBoxType(e){return e.classList.contains("video-pop")?"video":e.classList.contains("iframe-pop")||e.classList.contains("iframe-pop-small")?"iframe":e.classList.contains("image-pop")?"image":html},initCounterUp:function(){if(!s(".countup").length)return!1;var e=Number(s(".countup").text().replace(/\D/g,""))+o.getRandomNumber(0,20);
1s(".countup").text(e.toLocaleString()),setTimeout(o.initCounterUp,o.getRandomNumber(600,2e3))},initDiscountCheck:function(){wpformsMain.discount&&o.setCookie("wpforms_discount",wpformsMain.discount,30)},initHacks:function(){s(".is-style-overflowing").each(function(){var e=s(this).children(".inner-content");1<e.length||0===e.children().length||(e.clone().appendTo(this),e.clone().appendTo(this),s(this).addClass("is-append"))}),s(".entry-content p a").each(function(){s(this).has("img").length&&s(this).css("border-bottom","none")}),0===s(".widget_categories .current-cat").length&&s(".widget_categories .cat-item-all").addClass("current-cat"),s(".clone-after-pagination").each(function(){var e=s(".archive-pagination");e.length&&e.append(s(this).clone())})},getRandomNumber:function(e,t){return Math.floor(Math.random()*t)+e},setCookie:function(e,t,i){var o=new Date;o.setTime(o.getTime()+864e5*i),n.cookie=e+"="+t+";path=/;expires="+o.toGMTString()},getCookie:function(e){for(var t=n.cookie.split(";"),i=0;i<t.length;i++){var o=t[i].split("=");if(e===o[0].trim())return decodeURIComponent(o[1])}return null},debounce:function(o,n,a){var s;return function(){var e=this,t=arguments,i=a&&!s;clearTimeout(s),s=setTimeout(function(){s=null,a||o.apply(e,t)},n),i&&o.apply(e,t)}},initVideoPlayerListener:function(){s("#video__hero").click(function(e){var t=s(".video__holder").data("embed_code");player=new YT.Player("video_hero_player",{videoId:t,enablejsapi:1,playerVars:{showinfo:0,controls:0,rel:0},events:{onReady:function(e){e.target.playVideo()},onStateChange:function(e){e.data===YT.PlayerState.ENDED&&s("#player").replaceWith('<div id="video_hero_player" class="video__holder"></div>')}}})})},tooltipsPosition:function(){s("span.tooltip").each(function(e){s(this).css("left",s(this).siblings("span.feature").css("width"))})},maybeClearCartBumpCookie:function(){0==s("#edd_checkout_wrap").length&&(n.cookie="cart_bump=; path=/; max-age=0;")},scrollMarginHeadingOM:function(){n.addEventListener("om.Campaign.afterShow",function(e){e.detail.Campaign.type&&e.detail.Campaign.data.id&&"floating"===e.detail.Campaign.type&&(e=e.detail.Campaign.data.id,e=s("#om-"+e).height(),s(".single-wpforms_doc .site-main h3, .single-wpforms_doc .site-main h4, .tax-wpforms_doc_category .site-main h3, .tax-wpforms_doc_category .site-main h4, .single-post .post.type-post h3 > span, .single-post .post.type-post h4 > span, .single-post .post.type-post h3, .single-post .post.type-post h4, .single-wpforms_dev_doc .wpforms_dev_doc.type-wpforms_dev_doc h2").css("scroll-margin-top",e+20))})},createTemplatesFilterDropdown:function(){var e=s(".template-filter-wrap");if(e.length){var t=e.children("div");const n=s("<select>");let o=!1;t.each(function(){var e=s(this),t=e.children("a"),i=t.attr("href"),t=t.contents().filter(function(){return 3===this.nodeType}).text().trim(),i=s("<option>").attr("value",i).text(t);e.find("a").hasClass("selected-sub-cat")&&(i.attr("selected","selected"),o=!0),!o&&e.hasClass("selected")&&i.attr("selected","selected"),n.append(i),e.hasClass("sub-cat")&&i.text("â "+i.text())}),e.append(n),n.change(function(){var e=s(this).val();a.location.href=e})}},responsiveTable:function(){s(".wp-block-table.is-style-responsive > table").each(function(){var e=s(this),t=e.find("thead");e.find("tbody tr").each(function(){s(this).find("td").each(function(e){s(this).attr("data-label",t.find("th").eq(e).text())})})})},featureRefererLink:function(){s("body").hasClass("single-features")&&void 0!==wpformsMain.postId&&s('.site-inner a[href*="/pricing"]').each(function(){var e=(e=s(this).attr("href"))+(-1!==e.indexOf("?")?"&":"?")+"source=features&source_id="+wpformsMain.postId;s(this).attr("href",e)})},initLanguageSwitcherWidget:function(){var e,t=s(".column-1 .widget_social"),i=s(".site-footer:not(.basic) + universally-switcher, .site-footer:not(.basic) + .country-selector.weglot-dropdown");i.length&&t.length&&(i=i.detach(),(e=s('<section class="widget widget_text"><div class="widget-wrap"></div></section>')).find(".widget-wrap").append(i),t.before(e))}};return o}(document,window,jQuery),WPFormsTheme.Main.init();
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.