D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
hrfiudwx
/
enterpriseuplift.com
/
wp-content
/
themes
/
themify-ultra
/
js
/
modules
/
Filename :
fullpage.js
back
Copy
((e,t,n,i,o,r,l,s)=>{"use strict";let a,f,c,p,d,_,u,v=!1,h=0,m=0,w=!1,y=!1,b=!1,g=!1,x=!1,z=0,A=[],k="";const T=n.devicePixelRatio>1,I=Object.keys(l.breakpoints).reverse(),K=!t.body.classList.contains("full-section-scrolling-single"),D=~~l.f_s_d,E=t.body.classList.contains("fp-effect-fade"),P=!1===E&&l.fullpage_parallax!==s,U=t=>{if(!u){const t=(n,i)=>{o((()=>{if(n.paused&&n.dataset.visible){let o=n.parentNode;o="VIDEO"===n.tagName?o.tfClass("tf_vd_root")[0]?.shadowRoot.querySelector(".wrap"):o.tfClass("tf_auido_play")[0],o?e.triggerEvent(o,e.click):(i??=0,++i<10&&t(n,i))}}),100)};u=new IntersectionObserver((e=>{for(let n=e.length-1;n>-1;--n){let i=e[n].target.querySelector("video,audio");e[n].isIntersecting?(i.dataset.visible=1,i.readyState<3?i.tfOn("canplay",t,{passive:!0,once:!0}):t(i)):(i.dataset.visible="",i.paused||i.pause())}}))}u.observe(t)},N=(t=e.w)=>{let n=l.breakpoints,i="desktop";return t<=n.mobile?i="mobile":t<=n.tablet[1]?i="tablet":t<=n.tablet_landscape[1]&&(i="tablet_landscape"),i},O=e=>{if(null===e||e===t.body||e===t.documentElement||e.classList.contains("fp-section-container")||e.classList.contains("tf_scrollbar"))return!1;if(e.scrollHeight>e.clientHeight){const t=n.getComputedStyle(e).overflowY;if("auto"===t||"scroll"===t||"overlay"===t)return!0}return O(e.parentNode)},S=(e,t)=>{for(let n=I.indexOf(t),i=I.length;n<i;++n){let t=e.getAttribute("data-"+I[n]+"-pd");if(t)return t=t.split(" "),t[1]??=t[0],t}return!1},R=n=>{if(!0===b){const e=t.tfId("footerwrap");if(e&&!e.parentNode.classList.contains("module_row")){e.classList.add("module_row","fullheight");const n=t.createElement("div");n.className="module_row fullheight",y&&(n.className+=" module_row_slide"),n.appendChild(e),f.appendChild(n)}}const i=f.children,o=N(n),r=[];for(let e=i.length-1;e>-1;--e)if(i[e]){let n=i[e],r=n.classList;if(!r.contains("fp-section-container")){let e,i=S(n,o);if(r.contains("module_row_slide")){let i=t.createElement("div"),r=t.createElement("div"),l=t.createElement("div");while(1){let e=n.previousElementSibling;if(null===e)break;let i=e.classList.contains("module_row_section");if(e.classList.contains("module_row_slide")||i){let n=t.createElement("div"),r=e.tfClass("row_inner")[0],s=S(e,o);if(n.className="fp-section-container tf_w tf_overflow",""!==s[0]&&(r.style.paddingTop=s[0]),""!==s[1]&&(r.style.paddingBottom=s[1]),r.className+=" tf_scrollbar",e.after(n),n.appendChild(e),l.prepend(n),i)break}}i.className="fp-section-container-horizontal tf_w tf_rel tf_overflow",l.className="fp-section-container-inner tf_rel tf_w",r.className="fp-section-container tf_w tf_overflow",e=n.tfClass("row_inner")[0],e&&(e.className+=" tf_scrollbar"),i.appendChild(l),n.after(i),l.appendChild(n),n.after(r),r.appendChild(n),F(l)}else if(!r.contains("fp-section-container-horizontal")){let i=t.createElement("div");e=n.tfClass("row_inner")[0],i.className="fp-section-container tf_w tf_overflow",e!==s&&(e.className+=" tf_scrollbar"),n.after(i),i.appendChild(n)}e!==s&&(""!==i[0]&&(e.style.paddingTop=i[0]),""!==i[1]&&(e.style.paddingBottom=i[1]))}}if(!1===w){for(let e=t.querySelectorAll("[data-lazy]:not([data-tf-not-load])"),n=e.length-1;n>-1;--n)f.contains(e[n])||r.push(e[n]);e.lazyDisable=null,e.lazyLoading(r),e.lazyDisable=!0;for(let e=f.tfClass("wow"),t=e.length-1;t>-1;--t)e[t].hasAttribute("data-tf-animation_delay")||(e[t].dataset.tfAnimationDelay=.3)}m=i.length},X=()=>{const r=i.hash.replace("#","").replace("!/",""),l=n=>{if(n.includes("/")&&(n=n.substring(0,n.indexOf("/"))),n&&"#"!==n){n=CSS.escape(n.replace("#",""));const i=(f.querySelector('[data-anchor="'+n+'"]')||t.tfId(n))?.closest(".fp-section-container");if(i){let t=e.convert(i.parentNode.children).indexOf(i),n=s;const o=i.closest(".fp-section-container-horizontal");return o&&(n=t,t=e.convert(o.parentNode.children).indexOf(o)),q(t,n,!w),!0}}return!1},a=(n,i)=>{if(k!==n)return k=n,H(n),!(i!==s||!n||"#"===n||!l(n))&&(t.body.classList.contains("mobile-menu-visible")&&t.tfId("menu-icon")?.click(),!0);e.trigger("themify_onepage_scrolled")};r&&a(r)||q(c,s,!0),o((()=>{n.tfOn("hashchange",(()=>{!0===w&&!1===g&&(a(i.hash,!0),l(i.hash))}),{passive:!0}),t.body.tfOn("click",(e=>{if(!0===w&&!1===g){const t=e.target.closest("a");if(t){let n=t.getAttribute("href");if("#"!==n&&n?.includes("#"))try{n.includes(i.protocol)||(n=i.protocol+"//"+i.host+i.pathname+n);const t=new URL(n);t.hash&&(0===n.indexOf("#")||t.pathname===i.pathname&&t.hostname===i.hostname)&&(e.preventDefault(),v=!0,a(t.hash),v=!1)}catch(e){}else t.classList.contains("scroll-next-row")&&q("next")}}})),w=!0}),250)},F=n=>{const i=t.createDocumentFragment(),o=t.createElement("ul"),r=t.createElement("div"),l=t.createElement("div"),s=t.createElement("span");s.className="screen-reader-text";for(let e=n.children,i=0;i<e.length;++i){s.textContent=i+1;let e=t.createElement("li"),n=t.createElement("a");n.href="#",n.appendChild(s.cloneNode(!0)),0===i&&(e.className="active"),e.appendChild(n),o.appendChild(e)}s.remove(),o.tfOn(e.click,(t=>{t.preventDefault(),t.stopPropagation();const n=t.target.closest("li");n&&!n.classList.contains("active")&&(v=!0,q(c,e.convert(n.parentNode.children).indexOf(n)),v=!1)})).className="fp-slidesNav",l.tfOn(e.click,(t=>{t.stopPropagation(),e.triggerEvent(o.querySelector(".active")?.nextElementSibling||o.firstElementChild,t.type)}),{passive:!0}).className="fp-controlArrow fp-next",r.tfOn(e.click,(t=>{t.stopPropagation(),e.triggerEvent(o.querySelector(".active")?.previousElementSibling||o.lastElementChild,t.type)}),{passive:!0}).className="fp-controlArrow fp-prev",i.append(r,l,o),n.parentNode.appendChild(i)},C=()=>{if(!1===y&&!t.tfId("fp-nav")){const n=t.createElement("ul"),i=f.children,o=t.createElement("span");o.className="screen-reader-text";for(let e=0;e<m;++e){o.innerText=e+1;let r=t.createElement("li"),l=t.createElement("a"),s=i[e].tfClass("module_row")[0],a=s.dataset.rowTitle,f=t.createElement("div");l.href="#",l.appendChild(o.cloneNode(!0)),e===c&&(r.className="active"),r.appendChild(l),"footerwrap"===a?a="":a||(a=J(s)),a&&(f.className="fp-tooltip",f.innerText=a,r.appendChild(f)),n.appendChild(r)}o.remove(),n.id="fp-nav",n.tfOn(e.click,(t=>{t.preventDefault(),t.stopPropagation();const n=t.target.closest("li");n&&!n.classList.contains("active")&&(v=!0,q(e.convert(n.parentNode.children).indexOf(n)),v=!1)})).className="fp-slidesNav",t.body.appendChild(n)}},L=n=>{let i=n.target,o=i.tagName;if(!1===a&&"INPUT"!==o&&"TEXTAREA"!==o&&!t.activeElement.isContentEditable&&f.contains(i)&&!O(i)&&(!e.isTouch||!i.closest(".themify_builder_slider"))){let o=n.clientY,r=n.clientX,l=y;const s="pointermove",c="pointerup",p="pointercancel",d=5,_=function(e){this.tfOff(s,u,{passive:!0}).tfOff([c,p],_,{passive:!0,once:!0}),f.tfOff(c,_,{passive:!0,once:!0}),o=r=null},u=t=>{if(!1===a){const n=t.touches?.[0].clientY??t.clientY,i=t.touches?.[0].clientX??t.clientX;if(n!==o||!0===l&&i!==r){let t="";!0===l&&(i+d<r?t=!0===e.isRTL?"swipe_prev":"swipe_next":i-d>r&&(t=!0===e.isRTL?"swipe_next":"swipe_prev")),""===t&&(n+d<o?t="next":n-d>o&&(t="prev")),""!==t&&(o=n,r=i,q(t))}}};!1===l&&(l=null!==i.closest(".fp-section-container-horizontal")),t.tfOn(s,u,{passive:!0}).tfOn([c,p],_,{passive:!0,once:!0}),f.tfOn(c,_,{passive:!0,once:!0})}},V=e=>{!1===a&&!1===O(e.target)&&!0===(e=>{_=-e.deltaY;const t=(new Date).getTime(),n=t-z,i=r.abs(_),o=(e,t)=>{let n=0;for(let i=e.slice(r.max(e.length-t,1)),o=i.length-1;o>-1;--o)n+=i[o];return r.ceil(n/t)};return!(!0===x&&i<=18)&&(A.length>149&&A.shift(),A.push(i),n>200&&(A=[]),z=t,o(A,10)>=o(A,70))})(e)&&q(r.max(-1,r.min(1,_))<0?"next":"prev")},Y=(n,i,r)=>{if(!1===a){a=!0;const l=f.children[c],p=!0!==(r=!!r)&&!1===v&&l&&!0===P?l.tfClass("module_row")[0]:null,d=t.tfId("fp-nav"),_=0===c?"tf_fixed_header_disable":"tf_fixed_header_enable";if(p){let e="prev"===i?l.nextElementSibling:l;if(e=e?.tfClass("module_row")[0],e){let t="none",n=function(e){e.target===this&&(this.style.transition=this.style.transform="",this.tfOff("transitionend",n,{passive:!0}))};e.tfOn("transitionend",n,{passive:!0}),"prev"===i?t="transform "+h+"ms ease":o((()=>{e.style.setProperty("transition","transform "+h+"ms ease","important"),e.style.transform=""}),5),e.style.setProperty("transition",t,"important"),e.style.transform="translateY(-62%)"}}if(d)for(let e=d.children,t=e.length-1;t>-1;--t)e[t].classList.toggle("active",t===c);if(!0===r)f.style.transition="none",e.trigger(_),o((()=>{f.style.transition=""}),100),l.classList.add("complete"),l.tfClass("module_row")[0].style.transform="",a=!1,n!==s&&q(c,n,r);else{e.trigger(_);const t=function(e){if(e.target===this||!0===E&&(e.target.parentNode===this||e.target.parentNode.parentNode.parentNode===this)){this.tfOff("transitionend",t,{passive:!0}),l.classList.add("complete");const i=()=>{a=!1,n!==s&&q(c,n,r)};e.elapsedTime<.7?o(i,10+~~(100/e.elapsedTime)):i()}};f.tfOn("transitionend",t,{passive:!0})}!1===y&&f.style.setProperty("transform","translateY(calc(var(--fp_vh) * -"+c+"))"),e.trigger("themify_onepage_afterload",[l])}},j=(t,n,i)=>{if(!1===a){i=!!i,a=!0;const r=t.tfClass("fp-slidesNav")[0].children,l=~~t.dataset.index,s=t.tfClass("fp-section-container-inner")[0],f=s.children[l];if(!0!==i&&!1===v&&f&&!0===P?f.tfClass("module_row")[0]:null){let e="prev"===n?f.nextElementSibling:f;if(e=e?.tfClass("module_row")[0],e){let t="none",i=function(e){e.target===this&&(this.style.transition=this.style.transform="",this.tfOff("transitionend",i,{passive:!0}))};e.tfOn("transitionend",i,{passive:!0}),"prev"===n?t="transform "+h+"ms ease":o((()=>{e.style.setProperty("transition","transform "+h+"ms ease","important"),e.style.transform=""}),5),e.style.setProperty("transition",t,"important"),e.style.transform="translateX(-62%)"}}for(let e=r.length-1;e>-1;--e)r[e].classList.toggle("active",e===l);if(!0===i)s.style.transition="none",o((()=>{s.style.transition=""}),100),f.classList.add("complete"),f.tfClass("module_row")[0].style.transform="",a=!1;else{const e=function(t){if(t.target===this||!0===E&&t.target.parentNode===this){this.tfOff("transitionend",e,{passive:!0}),f.classList.add("complete");const n=()=>{a=!1};t.elapsedTime<.7?o(n,10+~~(100/t.elapsedTime)):n()}};s.tfOn("transitionend",e,{passive:!0})}s.style.transform="translateX("+(e.isRTL?"":"-")+100*l+"%)",e.trigger("themify_onepage_afterload",[f])}},q=(n,i,o)=>{if(!1===a){if(t.body.classList.contains("themify_mp_opened"))return;t.body.scrollTop=0;let r="string"==typeof n&&n.includes("Key"),l=!1;r&&(r=n,n="nextKey"===n||"rightKey"===n?"next":"prev");let d="string"==typeof n&&n.includes("swipe");d&&(d=n,n="swipe_next"===n?"next":"prev");const u="next"!==n&&"prev"!==n,v=c,h=f.children,w=h[v];if(u&&(c=n),!w)return;{let t=parseInt(w.dataset.index)||0,a=!0===y||!!w.classList.contains("fp-section-container-horizontal")&&(u||K||!1!==d);const f=a?w.tfClass("fp-section-container"):null,m=a?f[t]:null;if(!a||!u||f[i]&&w.contains(f[i])||(a=!1,M()),!u&&!r&&!d){const t=(m||w).tfClass("tf_scrollbar")[0],i=t.scrollHeight-t.clientHeight;if(i>0){const o=t.scrollTop;if("prev"===n&&o>0||"next"===n&&o<i-3)return void(e.isTouch||T||(cancelAnimationFrame(p),t.style.scrollBehavior=_>90||_<-90?"":"auto",p=requestAnimationFrame((()=>{t.scrollTop+=-_,t.style.scrollBehavior=""}))))}}if(a){const e=t;if(G(m),u?i!==s&&(t=i):"next"===n?t<f.length-1?++t:l=!0:"prev"===n&&t>0?--t:l=!0,f[t]&&M(t),e!==t||!0===o){w.dataset.index=t;const i=e>t?"prev":"next",r="prev"===i?t-1:t+1;if(j(w,i,o),f[r]&&G(f[r]),!u||n===v)return}else f[t]?.nextElementSibling&&G(f[t].nextElementSibling)}else(i===s||h[c])&&(l=!0)}if(!1===y||!0===l)if("next"===n?v<m-1&&++c:"prev"===n&&v>0&&--c,h[c]&&M(),v!==c||!0===o){if(h[c]?.classList.contains("fp-section-container-horizontal")&&(G(h[c].querySelector(".fp-section-container:not([data-done])")),!u)){const e="next"===n?0:K?h[c].tfClass("fp-section-container").length-1:0;e!==~~h[c].dataset.index&&q(c,e,!0)}a=!1;const e=v>c?"prev":"next",t="prev"===e?c-1:c+1;Y(u?i:s,e,o),h[t]&&G(h[t].classList.contains("fp-section-container-horizontal")?h[t].querySelector(".fp-section-container:not([data-done])"):h[t])}else h[c]?.nextElementSibling&&G(h[c].nextElementSibling)}},M=e=>{const t=f.children[c],n=e===s;let i=t;for(let e=f.querySelectorAll(".fp-section-container-horizontal.active,.fp-section-container.active"),t=e.length-1;t>-1;--t)e[t].classList.remove("complete","active");t.classList.contains("fp-section-container-horizontal")&&(n&&(e=~~t.dataset.index),i=t.tfClass("fp-section-container")[e],n&&i.classList.add("active","complete")),i.classList.add("active"),Q(i),G(i)},B=e=>{const n=e.target.tagName,i=e.code;if(!1===a&&"INPUT"!==n&&"TEXTAREA"!==n&&!t.activeElement.isContentEditable&&i)switch(i){case"ArrowUp":case"PageUp":q("prevKey");break;case"ArrowLeft":q("leftKey");break;case"ArrowRight":q("rightKey");break;case"ArrowDown":case"PageDown":q("nextKey");break}},G=t=>{t&&!t.hasAttribute("data-done")&&(t.dataset.done=1,o((()=>{const n=e.selectWithParent("[data-lazy]",t),i=[];for(let e=n.length-1;e>-1;--e)if(!n[e].hasAttribute("data-tf-not-load")){let t=n[e].tagName;"AUDIO"!==t&&"VIDEO"!==t||!n[e].dataset.autoplay||(n[e].removeAttribute("data-autoplay"),U(n[e].parentNode)),i.push(n[e])}e.lazyScroll(i,!0)}),w?0:500))},H=e=>{const n=t.tfId("main-nav");if(null!==n){const t=n.tfTag("li"),i=e?n.querySelector('a[href="#'+e.replace("#","")+'"]')?.parentNode:null;for(let e=t.length-1;e>-1;--e)i===t[e]?t[e].classList.add("current-menu-item"):t[e].classList.remove("current_page_item","current-menu-item")}},J=(e,t)=>{if(!0===t||!e.hasAttribute("data-hide-anchor")){return(e.dataset.anchor||e.id||"").replace("#","")}return""},Q=e=>{if(e=e?.tfClass("module_row")[0],e){const o=J(e);if(o&&"#"!==o){if(i.hash!=="#"+o){const e=t.tfId(o);e?.removeAttribute("id"),n.location.hash=o,e&&(e.id=o)}}else""!==i.hash&&history.replaceState(null,null,i.pathname),k=""}},W=()=>new Promise((i=>{const o=e.w,r=N(o);d!==r&&(e=>{const t=N(e);for(let e=f.children,n=e.length-1;n>-1;--n)e[n].classList.contains("module_row")&&(e[n].classList.contains("hide-"+t)||0===e[n].offsetWidth&&0===e[n].offsetHeight)&&e[n].remove()})(o),e.on("themify_builder_loaded",(()=>{const l=D>0&&o<=D,p=t.body.classList;if(!0===l&&p.contains("full-section-scrolling"))(()=>{if(g=!0,t.tfOff("keydown",B,{passive:!0}).tfOff("wheel",V,{passive:!0}),f.tfOff("pointerdown",L,{passive:!0}),t.tfId("fp-nav")?.remove(),f.style.transform="",!0===b){const e=t.tfId("footerwrap");if(e){const n=e.parentNode.parentNode;t.body.appendChild(e),n.remove()}}for(let e=f.children,n=e.length-1;n>-1;--n){let i=e[n];if(i.classList.contains("fp-section-container-horizontal")){let e=i.tfClass("fp-section-container-inner")[0].children,n=t.createDocumentFragment();for(let t=0;t<e.length;++t){let i=e[t].tfClass("module_row")[0],o=i.tfClass("row_inner")[0];P&&(i.style.transform=i.style.transition=""),o&&(o.style.paddingBottom=o.style.paddingTop="",o.classList.remove("tf_scrollbar")),n.appendChild(i)}i.after(n)}else{let e=i.tfClass("module_row")[0],t=e.tfClass("row_inner")[0];P&&(e.style.transform=e.style.transition=""),t&&(t.style.paddingBottom=t.style.paddingTop="",t.classList.remove("tf_scrollbar")),i.after(e)}i.remove()}e.lazyDisable=null,e.lazyLoading(),n.tbLocalScript?.scrollHighlight?(delete n.tbLocalScript.scrollHighlight.scroll,n.ThemifyBuilderModuleJs?.initScrollHighlight()):e.trigger("tb_scroll_highlight_enable"),t.body.classList.remove("full-section-scrolling","full-section-scrolling-horizontal","full-section-scrolling-single","fullpage-footer")})();else if(!0!==l&&g||!w)g=!1,CSS.supports("height","100dvh")||t.documentElement.style.setProperty("--fp_vh",e.h+"px"),e.trigger("tb_scroll_highlight_disable"),p.add("full-section-scrolling"),!0===y&&p.add("full-section-scrolling-horizontal"),!1===K&&p.add("full-section-scrolling-single"),!0===b&&p.add("fullpage-footer"),e.lazyDisable=!0,(i=>{if(n.scroll(0,0),a=!1,c=0,R(i),!h){const e=n.getComputedStyle(f);x="l"===e.getPropertyValue("--tf_section_sensitivy"),h=!0===E?n.getComputedStyle(f.tfClass("fp-section-container")[0]).transitionDuration:e.transitionDuration,h=parseFloat(h),h<100&&(h*=1e3)}C(),!1===w&&X(),t.tfOn("keydown",B,{passive:!0}).tfOn("wheel",V,{passive:!0}),e.isTouch&&f.tfOn("pointerdown",L,{passive:!0})})(o);else if(!1===g&&d!==r)for(let e=f.children,t=e.length-1;t>-1;--t){let n=e[t].tfClass("row_inner")[0];if(n!==s){let i=S(e[t].tfClass("module_row")[0],r);""!==i[0]&&(n.style.paddingTop=i[0]),""!==i[1]&&(n.style.paddingBottom=i[1])}}d=r,i()}),!0,e.is_builder_loaded||n.tbLocalScript===s)}));I.push("desktop"),e.on("themify_theme_fullpage_init",(async n=>{y=!!n.is_horizontal,b=!!n.has_footer;const i=t.body.className.match(/page-id-(\d+)/)?.[1];f=i?t.querySelector('.themify_builder[data-postid="'+i+'"]'):(t.tfId("tbp_content")||t.tfId("body"))?.tfClass("themify_builder")[0]||t.querySelector(".themify_builder:not(.not_editable_builder)"),f&&(await Promise.all([e.wow(),W()]),D>0&&e.on("tfsmartresize",(()=>{w&&W()}))),e.trigger("themify_onepage_afterload")}),!0)})(Themify,document,window,location,setTimeout,Math,themifyScript,void 0);