((t,e,i,o,n)=>{"use strict";t.correctColumnPaddings=()=>new Promise((a=>{if(!t.isVisual)return void a();const r=t.Builder.get().el.tfClass("module_column"),l=t.Builder.get().id,p=ThemifyStyles;if(r.length>0){const s=["padding_top","padding_bottom","padding_left","padding_right","margin-bottom","margin-top"],d=t.breakpointsReverse,m=d.length,b={},f=(t,e,i)=>{const n={};for(let a=s.length-1;a>-1;--a){let r=s[a],l=t[r];""===l||l===o||(""+l).includes(",")||"%"!==p.getStyleVal(r+"_unit",e,i)||(n[r]=l)}return n};for(let e=r.length-1;e>-1;--e){let i=r[e].dataset.cid,n=t.Registry.get(i);if(n){let t=n.get("styling");if(t!==o){for(let e=m-1;e>-1;--e){let o=d[e],n="desktop"===o?t:t["breakpoint_"+o];if(n){let e=f(n,t,o);Object.keys(e).length>0&&(b[o]??={},b[o][i]=e)}}for(let t=m-2;t>-1;--t){let e=d[t];if(b[e]?.[i]===o)for(let n=t+1;n<m;++n)if(b[d[n]]?.[i]!==o){b[e]??={},b[e][i]={...b[d[n]][i]};break}}}}}if(0===Object.keys(b).length)return void a();let _=n("iframe",{src:"about:blank",class:"tb_iframe",id:"tb_regenerate_css_iframe"});_.style.setProperty("position","fixed","important"),_.style.setProperty("top","-100000000px","important"),_.style.setProperty("left","-100000000px","important"),_.style.setProperty("visibility","hidden","important"),_.style.setProperty("min-width","auto","important"),_.style.setProperty("max-height","none","important"),_.style.setProperty("min-height","auto","important"),_.style.setProperty("contain","none","important"),_.style.setProperty("width","100%","important"),_.style.setProperty("height","100%","important"),_.style.setProperty("opacity","0","important"),e.document.body.appendChild(_);let u=_.contentWindow.document,c=i.documentElement.cloneNode(!0);const h=c.querySelectorAll("script"),g=t.breakpointsReverse;for(let t=h.length-1;t>-1;--t)h[t].remove();u.open(),u.write("<!DOCTYPE html>"+c.outerHTML);for(let t=g.length-1;t>-1;--t){let e=p.styleName+g[t],i=p.getSheet(g[t]).cssRules,o=p.getSheet(g[t],!0).cssRules,n=_.contentWindow.document.querySelector("#"+e).sheet,a=_.contentWindow.document.querySelector("#"+e+"_global").sheet;for(let t=0,e=o.length;t<e;++t)a.insertRule(o[t].cssText);for(let t=0,e=i.length;t<e;++t)n.insertRule(i[t].cssText)}c=null,_.contentWindow.document.body.appendChild(n("style","","html,body,body *,div,a{transition:none!important;animation:none!important;pointer-events:none!important}")),_.tfOn("load",(function(){u=null;const i=e.innerWidth+5,n=this.contentWindow.document.body.classList,r=g.length;n.add("tb_start_animate");for(let e=r-1;e>-1;--e){let a=g[e];if(b[a]!==o){let e="max-width",r="desktop"===a?null:1*t.Utils.getBPWidth(a),s=p.getSheet(a);(!r||r>=i)&&(e="min-width",r||(r=t.Utils.getBPWidth("tablet_landscape")+1,r<i&&(r="")),r===i&&--r),n.remove("builder-breakpoint-mobile","builder-breakpoint-tablet","builder-breakpoint-tablet_landscape"),"desktop"!==a?n.add("tb_responsive_mode","builder-breakpoint-"+a):n.remove("tb_responsive_mode"),this.style.setProperty("max-width","none","important"),this.style.setProperty("min-width","auto","important"),r&&this.style.setProperty(e,r+"px","important");for(let e in b[a]){let i=t.Registry.get(e),n=p.getBaseSelector(i.type,l,e),r=_.contentWindow.document.querySelector(n),d=i.get("styling"),m=t.Utils.findCssRule(s.cssRules,n),f=getComputedStyle(r).getPropertyValue("position");if("absolute"===f||"fixed"===f)continue;r.style.setProperty("padding","0","important");let u=r.parentNode.getBoundingClientRect().width,c=r.getBoundingClientRect().width;for(let t in b[a][e]){let i=b[a][e][t],l=t.replace("_","-"),p=100*parseFloat(parseFloat(i)/100*u/c);if(p=""+parseFloat(parseFloat(p.toFixed(2))),"desktop"===a){if(d[t]?.toString().includes(","))continue;d[t]??="",d[t]+=","+p}else{if(d["breakpoint_"+a]?.[t]?.toString().includes(","))continue;d["breakpoint_"+a]??={},d["breakpoint_"+a][t]??="",d["breakpoint_"+a][t]+=","+p}if("p"!==t[0])!1!==m&&s.cssRules[m]!==o?s.cssRules[m].style.setProperty(l,p+"%"):s.insertRule(n+"{"+l+":"+p+"%}",s.cssRules.length);else{r.style.padding="";let t=!1!==m&&s.cssRules[m]!==o,i=!0===t?s.cssRules[m].style.getPropertyValue("padding"):_.contentWindow.getComputedStyle(r).getPropertyValue("padding");r.style.setProperty("padding","0","important"),i&&b[a][e].padding_top!==o&&!i.includes(" ")&&(p=b[a][e].padding_top,p=100*parseFloat(parseFloat(p)/100*u/c),p=""+parseFloat(parseFloat(p.toFixed(2))),l="padding"),!0===t?s.cssRules[m].style.setProperty(l,p+"%"):s.insertRule(n+"{"+l+":"+p+"%}",s.cssRules.length)}}i.set("styling",d)}}}this.remove(),_=null,a()}),{passive:!0,once:!0}),u.close()}else a()}))})(tb_app,window.top,document,void 0,tb_createElement);