https://www.vitaminwell.com/wp-content/plugins/dc-blocks/build/blo…/view.js?ver=6b0b5fadec58b49c0026
1(()=>{"use strict";var t={7662:()=>{const t=({element:e})=>({element:e,msnry:null,init(){this.setupElement(),this.setupEvents(),this.setupMasonry()},setupElement(){const t=Math.random().toString(36).substring(2,11);this.element.setAttribute("data-masonry-id",t)},setupEvents(){const e=this.element.querySelector(".wp-block-post-template");e&&e.addEventListener("dc-blocks-query-pagination-load-more-content-added",(()=>{this.handleAddedItems()})),this.element.querySelector(".wp-block-query")&&document.addEventListener("dc-blocks-query-filter-content-replaced",(e=>{const o=JSON.parse(e.detail),s=o?.queryId;if(s){const e=document.querySelector('.wp-block-query[data-wp-router-region="'+s+'"]')?.closest(".dc-blocks-masonry");e&&t({element:e}).init()}}))},setupMasonry(){const t=this.getMasonrySelector(),e=document.querySelector(t);if(!e)return;const o=window.getComputedStyle(e).rowGap;let s=window.getComputedStyle(e).colGap;s||(s=o),e.style.setProperty("--masonry-row-gap",o),e.style.setProperty("--masonry-col-gap",s);let n=window.getComputedStyle(e).getPropertyValue("--masonry-transition-duration").trim();n||(n="0.8s");let r=window.getComputedStyle(e).getPropertyValue("--masonry-transition-hidden-style-transform").trim();r||(r="translateY(100px)");let l=window.getComputedStyle(e).getPropertyValue("--masonry-transition-hidden-style-opacity").trim();l||(l="0");let i=window.getComputedStyle(e).getPropertyValue("--masonry-transition-visible-style-transform").trim();i||(i="translateY(0px)");let a=window.getComputedStyle(e).getPropertyValue("--masonry-transition-visible-style-opacity").trim();a||(a="1");let c=10;o?c=o:s&&(c=s),c=parseInt(c,10),this.createGridSizer(e),this.msnry=new Masonry(t,{columnWidth:".grid-sizer",itemSelector:this.getItemSelector(),gutter:c,initLayout:!1,transitionDuration:n,hiddenStyle:{transform:r,opacity:l},visibleStyle:{transform:i,opacity:a}}),this.msnry.on("layoutComplete",this.handleLayoutComplete.bind(this)),this.msnry.layout()},getMasonrySelector(){return this.element.classList.contains("wp-block-dc-blocks-masonry-query")?'[data-masonry-id="'+this.element.getAttribute("data-masonry-id")+'"] .wp-block-post-template':this.element.classList.contains("wp-block-dc-blocks-masonry-gallery")?'[data-masonry-id="'+this.element.getAttribute("data-masonry-id")+'"] .wp-block-gallery':'[data-masonry-id="'+this.element.getAttribute("data-masonry-id")+'"]'},createGridSizer(t){let e;this.element.classList.contains("wp-block-dc-blocks-masonry-query")?e=document.createElement("li"):this.element.classList.contains("wp-block-dc-blocks-masonry-gallery")&&(e=document.createElement("figure")),e.classList.add("grid-sizer"),t.appendChild(e)},getItemSelector(){return this.element.classList.contains("wp-block-dc-blocks-masonry-query")?"li":this.element.classList.contains("wp-block-dc-blocks-masonry-gallery")?"figure.wp-block-image":"div"},handleLayoutComplete(){const t=this.getMasonrySelector(),e=document.querySelector(t);if(!e)return;const o=e.querySelectorAll(this.getItemSelector()+":not(.masonry-item-layouted)");o.length&&o.forEach((t=>{t.classList.add("masonry-item-layouted")}))},handleAddedItems(){const t=this.getMasonrySelector(),e=document.querySelector(t);if(!e)return;const o=e.querySelectorAll(this.getItemSelector()+":not(.masonry-item-layouted)");o.length&&this.msnry.appended(o)}});document.addEventListener("DOMContentLoaded",(()=>{const e=[],o=document.querySelectorAll(".dc-blocks-masonry");if(o.length)for(const s of o){const o=t({element:s});o.init(),e.push(o)}}))}},e={};!function o(s){var n=e[s];if(void 0!==n)return n.exports;var r=e[s]={exports:{}};return t[s](r,r.exports,o),r.exports}(7662)})();
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.