((t,e,l)=>{"use strict";let i=!1;const d=t.is_builder_active,n=(t,e,l)=>{let i=t.getAttribute("data-"+e+"-"+l);if(!i&&"desktop"!==e){const d=["mobile","tablet","tablet_landscape","desktop"];for(let n=d.indexOf(e)+1;n<4;++n)if(i=t.getAttribute("data-"+d[n]+"-"+l),i){t.setAttribute("data-"+e+"-"+l,i);break}}return i?.split(",")||[]},o=t=>t.getBoundingClientRect().left+window.pageXOffset-e.documentElement.clientLeft,a=(a,r)=>{const f=e.body,_=f.offsetWidth,u=o(f);if(0===_)return;const c=themify_vars.breakpoints,m=e.documentElement.clientWidth,p=e.createDocumentFragment();let h="desktop";m<=c.mobile?h="mobile":m<=c.tablet[1]?h="tablet":m<=c.tablet_landscape[1]&&(h="tablet_landscape");for(let t=a.length-1;t>-1;--t){if(!r&&!d&&!1===i){if(a[t].hasAttribute("data-fullwidth-done"))continue;a[t].dataset.fullwidthDone=1}let f=a[t].closest(".themify_builder_content");if(null===f||null!==f.closest(".slide-content"))continue;let c,m=o(f)-u,s=_-m-f.offsetWidth,w="";if(d)(f.classList.contains("tb_zooming_50")||f.classList.contains("tb_zooming_75"))&&(m=s=0);else{let e=a[t].dataset.css_id;if(e)e="tb_"+e;else{let l=a[t].className.match(/module_row_(\d+)/gi)?.[0];if(!l)continue;e=l.trim()}c="tb-fulllwidth-"+e,w+=".themify_builder.themify_builder_content>."+e+".module_row{"}if(a[t].classList.contains("fullwidth")){let e=n(a[t],h,"margin"),i="";e[0]?(i=e[0],w+="margin-left:calc("+e[0]+" - "+l.abs(m)+"px);"):w+="margin-left:"+-m+"px;",e[1]?(""!==i&&(i+=" + "),i+=e[1],w+="margin-right:calc("+e[1]+" - "+l.abs(s)+"px);"):w+="margin-right:"+-s+"px;",w+=""!==i?"width:calc("+_+"px - ("+i+"));":"width:"+_+"px;"}else if(w+="margin-left:"+-m+"px;margin-right:"+-s+"px;width:"+_+"px;",m||s){let e=n(a[t],h,"padding"),i="+";m&&(e[0]?(m<0&&(i="-"),w+="padding-left:calc("+e[0]+" "+i+" "+l.abs(m)+"px);"):w+="padding-left:"+l.abs(m)+"px;"),s&&(e[1]?(i=s>0?"+":"-",w+="padding-right:calc("+e[1]+" "+i+" "+l.abs(s)+"px);"):w+="padding-right:"+l.abs(s)+"px;")}if(d){let e=a[t].style;e.paddingRight=e.paddingLeft=e.marginRight=e.marginLeft="",e.cssText+=w}else{w+="}",e.tfId(c)?.remove();let t=e.createElement("style");t.setAttribute("id",c),t.textContent=w,p.appendChild(t)}}d||(e.head.appendChild(p),!0!==r&&t.trigger("tfsmartresize",{w:t.w,h:t.h}))};t.on("builder_load_module_partial",((e,l)=>{let i;if(!0===l){const t=e.classList;if(!t.contains("fullwidth")&&!t.contains("fullwidth_row_container")||e.closest(".tb_overlay_content_lp"))return;i=[e]}else i=t.selectWithParent(".fullwidth.module_row,.fullwidth_row_container.module_row",e);i.length>0&&a(i,!1)})).on("tfsmartresize",(()=>{!1===i&&(i=!0,a(e.querySelectorAll(".fullwidth.module_row,.fullwidth_row_container.module_row")),i=!1)}))})(Themify,document,Math);