1function Column_Options(id){this.id=id,this.element=document.getElementById(this.id),this.dndSection=this.element.closest(".dnd-section"),this.rowFluid=this.dndSection.children[0],this.dndColumn=this.element.closest(".dnd-column"),this.dndRow=this.dndColumn.querySelectorAll(".dnd-row"),this.dndColumnWrapper,this.debounce=function(func,wait){let timeout;return function(){clearTimeout(timeout),timeout=setTimeout(()=>func.apply(this,arguments),wait)}},this.init()}Column_Options.prototype.init=function(){this.handlerStructure(),this.handlerWidth(),this.handlerColumn(),this.handlerSpacing(),this.handlerAnimation(),this.handlerFilter(),this.handlerOther(),requestAnimationFrame(()=>{document.dispatchEvent(new CustomEvent("contentUpdated"))})},Column_Options.prototype.handlerStructure=function(){const highlightTheme=this.element.dataset.highlightTheme.trim(),theme=this.element.dataset.theme.trim(),columnStyle=this.element.dataset.style,newWrapper=document.createElement("div");if(newWrapper.className="dnd-column__wrapper",!this.dndColumn.querySelector(".dnd-column__wrapper")){for(;this.dndColumn.firstChild;)newWrapper.appendChild(this.dndColumn.firstChild);this.dndColumn.appendChild(newWrapper)}if(this.dndColumnWrapper=this.dndColumn.querySelector(".dnd-column__wrapper"),this.dndColumnWrapper.style.cssText="display: flex; flex-direction: column",this.dndColumn.classList.add(`column__${this.id}`,`dnd-column--${columnStyle}`),this.dndSection.classList.add("dnd-section--custom"),this.dndColumn.setAttribute("theme",theme.trim()),window.hsInEditor&&highlightTheme.length>0){const highlightThemeClasses=highlightTheme.trim().split(/\s+/);this.dndColumnWrapper.classList.add(...highlightThemeClasses)}this.dndRow.forEach(function(row){row.style.flexShrink=0}),window.hsInEditor||(this.element.closest(".dnd-module").style.display="none")},Column_Options.prototype.handlerWidth=function(){const width=this.element.dataset.width,alignmentHorizontal=this.element.dataset.alignmentHorizontal,setWidth=()=>{this.dndColumn.style.width=window.innerWidth>=768?`${width}% `:"100%"};if("true"===this.element.dataset.enableSetWidth){setWidth();const handlerResize=this.debounce(setWidth,200);window.addEventListener("resize",handlerResize),this.rowFluid.style.cssText=`flex-wrap: wrap; justify-content: ${alignmentHorizontal}`}},Column_Options.prototype.handlerColumn=function(){const equalHeight=this.element.dataset.equalHeight,moduleAlignmentVertical=this.element.dataset.moduleAlignmentVertical;"true"==equalHeight&&this.dndColumnWrapper.classList.add("dnd-column__wrapper--equal-height"),moduleAlignmentVertical&&(this.dndColumnWrapper.style.cssText=`display: flex; flex-direction: column; height: 100%; justify-content: ${moduleAlignmentVertical} !important`)},Column_Options.prototype.handlerSpacing=function(){const{paddingDesktopTop:paddingDesktopTop,paddingDesktopBottom:paddingDesktopBottom,paddingDesktopLeft:paddingDesktopLeft,paddingDesktopRight:paddingDesktopRight,paddingMobileTop:paddingMobileTop,paddingMobileBottom:paddingMobileBottom,paddingMobileLeft:paddingMobileLeft,paddingMobileRight:paddingMobileRight,marginBottom:marginBottom,marginMobileBottom:marginMobileBottom}=this.element.dataset;this.dndColumnWrapper.classList.add(`pt-${paddingDesktopTop}`,`pb-${paddingDesktopBottom}`,`pl-${paddingDesktopLeft}`,`pr-${paddingDesktopRight}`,`pt-sm-${paddingMobileTop}`,`pb-sm-${paddingMobileBottom}`,`pl-sm-${paddingMobileLeft}`,`pr-sm-${paddingMobileRight}`),this.dndColumn.classList.add(`mb-${marginBottom}`,`mb-sm-${marginMobileBottom}`)},Column_Options.prototype.handlerAnimation=function(){const{animation:animation,animationOffset:animationOffset,animationDelay:animationDelay,animationDuration:animationDuration,animationMirror:animationMirror,animationOnce:animationOnce,animationEasing:animationEasing}=this.element.dataset;animation&&!window.hsInEditor&&this.dndColumnWrapper.setAttribute("data-aos",animation);const attributes={"data-aos-offset":animationOffset,"data-aos-delay":animationDelay,"data-aos-duration":animationDuration,"data-aos-mirror":animationMirror,"data-aos-easing":animationEasing};for(const[attr,value]of Object.entries(attributes))value&&this.dndColumnWrapper.setAttribute(attr,value);"true"===animationOnce?this.dndColumnWrapper.setAttribute("data-aos-once","true"):"false"===animationOnce&&"true"===animationMirror&&this.dndColumnWrapper.setAttribute("data-aos-once","false")},Column_Options.prototype.handlerOther=function(){"true"==this.element.dataset.enableHoverColumn&&this.dndColumn.classList.add("dnd-column--can-hover")},Column_Options.prototype.handlerFilter=function(){const enableFilter=this.element.dataset.enableFilter,referenceFilterId=this.element.dataset.referenceFilterId,filterTagValues=this.element.dataset.f
1ilterTagValues,publishDate=this.element.dataset.publishDate,sort=this.element.dataset.sort;"true"==enableFilter&&(this.dndColumnWrapper.classList.add("column-filter"),this.dndColumnWrapper.setAttribute("data-reference-filter-id",referenceFilterId),this.dndColumnWrapper.setAttribute("data-filter",JSON.stringify(filterTagValues).replace(/"/g,'"').replace(/\\\"/g,'"').slice(1,-1)),publishDate&&(this.dndColumnWrapper.setAttribute("data-publish-date",publishDate),this.dndColumnWrapper.setAttribute("data-sort",JSON.stringify(sort).replace(/"/g,'"').replace(/\\\"/g,'"').slice(1,-1))))},window.Column_Options=Column_Options; 2//# sourceURL=https://143733739.fs1.hubspotusercontent-eu1.net/hubfs/143733739/hub_generated/template_assets/1/87746099414/1791354264291/template_column_option.js
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.