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