1/*! 2* WP Grid Builder Beaver Builder Add-on 3* 4* @package WP Grid Builder - Beaver Builder 5* @author Loïc Blascos 6* @link https://www.wpgridbuilder.com 7* @copyright 2019-2026 Loïc Blascos 8* 9*/ 10(()=>{var e={365:()=>{[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("after")||Object.defineProperty(e,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(){const e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){const i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))})),this.parentNode.insertBefore(t,this.nextSibling)}})}))},823:()=>{[Element.prototype,Document.prototype,DocumentFragment.prototype].forEach((function(e){e.hasOwnProperty("append")||Object.defineProperty(e,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(){const e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){const i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))})),this.appendChild(t)}})}))},120:()=>{[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("before")||Object.defineProperty(e,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(){const e=Array.prototype.slice.call(arguments),t=document.createDocumentFragment();e.forEach((function(e){const i=e instanceof Node;t.appendChild(i?e:document.createTextNode(String(e)))})),this.parentNode.insertBefore(t,this)}})}))},440:()=>{Element.prototype.closest||(Element.prototype.closest=function(e){let t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null})},983:function(e,t,i){var s;s=void 0!==i.g?i.g:this,e.exports=function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(0==arguments.length)throw new TypeError("`CSS.escape` requires an argument.");for(var t,i=String(e),s=i.length,o=-1,n="",r=i.charCodeAt(0);++o<s;)0!=(t=i.charCodeAt(o))?n+=t>=1&&t<=31||127==t||0==o&&t>=48&&t<=57||1==o&&t>=48&&t<=57&&45==r?"\\"+t.toString(16)+" ":0==o&&1==s&&45==t||!(t>=128||45==t||95==t||t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122)?"\\"+i.charAt(o):i.charAt(o):n+="�";return n};return e.CSS||(e.CSS={}),e.CSS.escape=t,t}(s)},822:()=>{Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector)},19:()=>{window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var i=0;i<this.length;i++)e.call(t,this[i],i,this)})},919:()=>{[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this)}})}))}},t={};function i(s){var o=t[s];if(void 0!==o)return o.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),(()=>{"use strict";i(365),i(120),i(823),i(919),i(822),i(440),i(19),i(983);class e{constructor(e){this.grid=e.element.querySelector(".fl-post-grid, .fl-post-gallery, .fl-post-feed, .fl-post-grid-empty"),this.grid&&(this.initInstance(e),this.initEmptyGrid(),e.facets.on("fetch",this),e.facets.on("fetched",this),e.facets.on("appended",this),e.element.addEventListener("click",this.paginate.bind(this,e),!0))}initInstance(e){this.instance=Object.create(FLBuilderPostGrid.prototype),this.instance.settings=e.options,this.instance.nodeClass=".fl-node-"+e.id.replace("bb-module-",""),this.instance.matchHeight=this.instance.settings.matchHeight,"columns"===this.instance.settings.layout?(this.instance.wrapperClass=this.instance.nodeClass+" .fl-post-grid",this.instance.postClass=this.instance.nodeClass+" .fl-post-column"):(this.instance.wrapperClass=this.instance.nodeClass+" .fl-post-"+this.instance.settings.layout,this.instance.postClass=this.instance.wrapperClass+"-post")}initEmptyGrid(){this.instance._hasPosts()||(this.grid.setAttribute("itemscope","itemscope"),this.grid.setAttribute("itemtype","https://schema.org/Blog"),this.grid.className=this.instance.wrapperClass.replace(this.instance.nodeClass,"").replace(/\./g,"").trim(),this.instance._initLayout(),this.instance._initInfiniteScroll())}paginate(e,t){t.target.closest(".page-numbers")&&t.target.href&&(t.preventDefault(),t.stopPropagation(),this.paged=(t.target.href||"").match(/\/(\d+)/),this.paged=this.paged&&this.paged[1]||1,this.paged&&e.facets.refresh(),this.scrollToTop())}scrollToTop(){const e=this.grid&&this.grid.parentElement,t=this.grid?e.getBoundingClientRect().top+window.pageYOffset-120:0;e&&(e.tabIndex=-1,e.focus({preventScroll:!0}),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:t,behavior:"smooth"}):document.documentElement.scrollTop=t)}fetch(e){this.paged&&(e.paged=this.paged)}fetched(e){if(!e.posts)return;const t=document.createRange().createContextualFragment(e.posts).querySelector(".fl-builder
10-pagination");this.grid.parentElement.querySelector(".fl-builder-pagination")?.remove(),t&&this.grid.parentElement.append(t),this.paged=!1}appended(e){switch(this.instance.settings.layout){case"grid":this.layoutGrid(e);break;case"gallery":case"columns":window.jQuery&&jQuery(window).trigger("resize")}e.forEach((e=>e.style.visibility="visible"))}layoutGrid(e){const t=window.Masonry&&Masonry.data(this.grid);t&&(t.appended(e),t.reloadItems(),imagesLoaded(this.grid,(()=>{this.instance&&this.instance._gridLayoutMatchHeight(),t.layout()})))}}class t{constructor(e){window.jQuery&&(this.instance=e,this.carousel=e.element.querySelector(".fl-post-carousel-wrapper, .fl-post-slider-wrapper"),e.facets.on("appended",this),e.facets.on("fetched",this))}appended(){this.carousel=this.instance.element.querySelector(".fl-post-carousel-wrapper, .fl-post-slider-wrapper");const e=this.carousel&&jQuery(this.carousel).data("bxSlider"),t="post-carousel"===this.instance.options.module?"FLBuilderPostCarousel":"FLBuilderPostSlider";e&&e.reloadSlider(),!e&&window[t]&&new window[t]({...this.instance.options,id:this.instance.id.replace("bb-module-",""),onSlideBefore:()=>{this.instance.element.querySelector(".fl-post-carousel-navigation a, .fl-post-slider-navigation a")?.classList.add("disabled"),this.instance.element.querySelector(".bx-controls .bx-pager-link")?.classList.add("disabled")},onSlideAfter:()=>{this.instance.element.querySelector(".fl-post-carousel-navigation a, .fl-post-slider-navigation a")?.classList.remove("disabled"),this.instance.element.querySelector(".bx-controls .bx-pager-link")?.classList.remove("disabled")}})}fetched(e){if(!e.posts)return;const t=document.createRange().createContextualFragment(e.posts).querySelector(".fl-post-slider-post, .fl-post-carousel-post");this.instance.options.itemSelector=t&&this.carousel?.parentElement?".fl-post-carousel-post, .fl-post-slider-post":".fl-module-content"}}class s{constructor(e){this.instance=e,this.grid=e.element.querySelector(".woopack-products, .woopack-grid-empty"),this.ppcg=window[`woopack_${e.id.replace("bb-module-","")}`],e.facets.on("refresh",this),e.facets.on("fetch",this),e.facets.on("fetched",this),e.facets.on("appended",this),e.element.addEventListener("click",this.paginate.bind(this,e),!0)}paginate(e,t){t.target.closest(".page-numbers")&&t.target.href&&(t.preventDefault(),t.stopPropagation(),this.paged=(t.target.href||"").match(/\/(\d+)/),this.paged=this.paged&&this.paged[1]||1,this.paged&&e.facets.refresh(),this.scrollToTop())}scrollToTop(){const e=this.grid&&this.grid.parentElement,t=e?e.getBoundingClientRect().top+window.pageYOffset-120:0;e&&(e.tabIndex=-1,e.focus({preventScroll:!0}),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:t,behavior:"smooth"}):document.documentElement.scrollTop=t)}fetch(e){this.paged&&(e.paged=this.paged)}refresh(){this.sizer=this.grid&&this.grid.querySelector(".woopack-grid-sizer")}fetched(e){if(!e.posts)return;const t=document.createRange().createContextualFragment(e.posts),i=this.instance.element.querySelector(".woopack-grid-empty"),s=t.querySelector(".woopack-product-grid"),o=t.querySelector(".fl-builder-pagination");this.grid&&this.grid.closest(".fl-module-content").querySelector(".fl-builder-pagination")?.remove(),o&&this.grid&&this.grid.closest(".fl-module-content").append(o),this.paged=!1,this.instance.options.itemSelector=!i&&s?".woopack-products > *, .woopack-grid-empty":".fl-module-content"}appended(e){".fl-module-content"===this.instance.options.itemSelector&&this.ppcg._hasPosts()&&(this.grid=this.instance.element.querySelector(".woopack-products, .woopack-grid-empty"),this.ppcg._initInfiniteScroll(),this.ppcg._gridLayout(),this.ppcg._reLayout()),this.layoutGrid(e)}layoutGrid(e){const t=window.Isotope&&this.grid&&Isotope.data(this.grid);this.sizer&&this.grid.querySelectorAll(".woopack-grid-sizer")[0]?.remove(),this.sizer&&this.grid.appendChild(this.sizer),t&&(t.appended(e),t.reloadItems(),imagesLoaded(this.grid,(()=>{const e=t.options.transitionDuration;t.options.transitionDuration=0,this.ppcg&&this.ppcg._gridLayoutMatchHeight(),this.ppcg&&this.ppcg._initSlider(),t.arrange(),t.layout(),t.options.transitionDuration=e})))}}class o{constructor(e){this.instance=e,this.grid=e.element.querySelector(".pp-content-posts-inner, .pp-content-post-grid, .pp-content-grid-empty"),this.ppcg=window[`ppcg_${e.id.replace("bb-module-","")}`],e.facets.on("refresh",this),e.facets.on("fetch",this),e.facets.on("fetched",this),e.facets.on("appended",this),e.element.addEventListener("click",this.paginate.bind(this,e),!0)}setPPCG(){this.ppcg||(this.ppcg=window[`ppcg_${this.instance.id.replace("bb-module-","")}`])}paginate(e,t){t.target.closest(".page-numbers")&&t.target.href&&(t.preventDefault(),t.stopPropagation(),this.paged=(t.target.href||"").match(/\/(\d+)/),this.paged=this.paged&&this.paged[1]||1,this.paged&&e.facets.refresh(),this.scrollToTop())}scrollToTop(){const e=this.grid&&this.grid.parentElement,t=e?e.getBoundingClientRect().top+window.pageYOffset-120:0;e&&(e.tabIndex=-1,e.focus({preventScroll:!0}),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:t,behavior:"smooth"}):document.documentElement.scrollTop=t)}fetch(e){this.paged&&(e.paged=this.paged)}refresh(){this.sizer=this.grid&&this.grid.querySelector(".pp-grid-space")}fetched(e){if(!e.posts)return;const t=document.createRange().createContextualFragment(e.posts),i=this.instance.element.querySelector(".pp-content-grid-empty"),s=t.querySelector(".pp-content-post"),o=t.querySelector(".fl-builder
10-pagination");this.grid&&this.grid.parentElement.querySelector(".fl-builder-pagination")?.remove(),o&&this.grid&&this.grid.parentElement.append(o),this.paged=!1,this.instance.options.itemSelector=!i&&s?".pp-content-post-grid > *, .pp-content-posts-inner > *":".fl-module-content"}appended(e){switch(this.setPPCG(),".fl-module-content"===this.instance.options.itemSelector&&this.ppcg._hasPosts()&&(this.grid=this.instance.element.querySelector(".pp-content-posts-inner, .pp-content-post-grid, .pp-content-grid-empty"),this.ppcg._initLayout()),this.ppcg.settings.layout){case"grid":this.layoutGrid(e);break;case"carousel":this.layoutCarousel(e)}}layoutGrid(e){const t=window.Isotope&&this.grid&&Isotope.data(this.grid);this.sizer&&this.grid.querySelectorAll(".pp-grid-space")[0]?.remove(),this.sizer&&this.grid.appendChild(this.sizer),t&&(t.appended(e),t.reloadItems(),imagesLoaded(this.grid,(()=>{const e=t.options.transitionDuration;t.options.transitionDuration=0,this.setPPCG(),this.ppcg&&this.ppcg._gridLayoutMatchHeight(),t.arrange(),t.layout(),t.options.transitionDuration=e})))}layoutCarousel(){this.setPPCG(),this.grid&&jQuery(this.grid)?.owlCarousel("destroy"),this.ppcg&&this.ppcg._carouselLayout()}}function n(i){if(i.options&&i.options.module&&i.options.isTemplate&&"Beaver_Builder"===i.options.isTemplate)switch(i.options.module){case"post-grid":new e(i);break;case"post-slider":case"post-carousel":new t(i);break;case"pp-content-grid":new o(i);break;case"product-grid":new s(i)}}function r(){if(WP_Grid_Builder.instances&&Object.keys(WP_Grid_Builder.instances).length)for(const e in WP_Grid_Builder.instances)n(WP_Grid_Builder.instances[e]);else WP_Grid_Builder.on("init",n)}window.WP_Grid_Builder?r():window.addEventListener("wpgb.loaded",(()=>r()))})()})();
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.