'use strict';(function(d,e,m){let g=e.documentElement.clientHeight,h=e.body.clientHeight,k=!1,f=null,l=d.h;const n=function(a){a&&(g=e.documentElement.clientHeight,h=e.body.clientHeight,l=a.h)},q=function(){null===f&&(f=e.getElementsByClassName("builder-zooming"));f[0]?p(f):(m.removeEventListener("scroll",q,{passive:!0,capture:!0}),d.off("tfsmartresize",n),f=null,k=!1)},p=function(a){for(let c=a.length-1;-1<c;--c){var b;if(b=a[c]&&!a[c].classList.contains("active-zooming")){b=a[c];const r=b.getBoundingClientRect();
b=r.top+b.clientHeight>=(l||g||h)/2&&r.bottom-b.clientHeight<=(l||g||h)/3}b&&a[c].classList.add("active-zooming")}};d.LoadCss(ThemifyBuilderModuleJs.cssUrl+"bgzoom.css");d.on("tb_bgzoom_init",function(a){a instanceof jQuery&&(a=a.get());p(a);!1===k&&(k=!0,m.addEventListener("scroll",q,{passive:!0,capture:!0}),d.on("tfsmartresize",n))})})(Themify,document,window);
