HEX
Server: Apache
System: Linux b5.s-host.com.ua 4.18.0-305.10.2.el7.x86_64 #1 SMP Fri Jul 23 21:00:55 UTC 2021 x86_64
User: unelbhzm (1470)
PHP: 8.0.18
Disabled: NONE
Upload Files
File: /sites/nuofama.com/wp-content/themes/blocksy/static/bundle/735.95ccfca9efbfca5f5f36.js
"use strict";(globalThis.blocksyJsonP=globalThis.blocksyJsonP||[]).push([[735],{67:function(e){e.exports=function(){if("undefined"==typeof window||"undefined"==typeof navigator)return function(){return 0};if(!navigator.userAgent.match(/iphone|ipod|ipad/i)&&!function(){const e=window.navigator.userAgent;if(e.indexOf("iPad")>-1)return!0;if(e.indexOf("Macintosh")>-1)try{return document.createEvent("TouchEvent"),!0}catch(e){}return!1}())return function(){return window.innerHeight};var e,t=Math.abs(window.orientation),n={w:0,h:0};return(e=document.createElement("div")).style.position="fixed",e.style.height="100vh",e.style.width=0,e.style.top=0,document.documentElement.appendChild(e),n.w=90===t?e.offsetHeight:window.innerWidth,n.h=90===t?window.innerWidth:e.offsetHeight,document.documentElement.removeChild(e),e=null,function(){return 90!==Math.abs(window.orientation)?n.h:n.w}}()},735:function(e,t,n){n.r(t),n.d(t,{mount:function(){return g},rel:function(){return b}});var i=n(130),r=n(67),o=n.n(r);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const c=function(e,t){return t*(100*(1-e))},u=function(e){let{el:t=null,speed:n=null,fitInsideContainer:i=null,isVisible:r=!1,shouldSetHeightToIncrease:a=!0,parallaxBehavior:s="desktop:tablet:mobile"}=e;if(n=n<=-5?-5:n>=5?5:n,i&&a){let e=0;e=n>0?c(.5,n):c(o()()/(i.clientHeight+o()()),n)-c(.5,n),e=2*Math.abs(e),t.parentNode.style.height=r?`calc(100% + ${e}px)`:"100%"}let{top:l,height:u}=f(i||t);return{parallaxBehavior:s,shouldSetHeightToIncrease:a,fitInsideContainer:i,el:t,top:pageYOffset+l,height:u,speed:n,isVisible:r}};function d(e){var t=e.getBoundingClientRect();return t.bottom>-450&&t.top-450<(o()()||document.documentElement.clientHeight)}function f(e){if(!e)return null;let{top:t,left:n,right:i,width:r,height:o}=e.getBoundingClientRect(),a=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((function(e){return parseFloat(e)}));if(6!=a.length)return e.getBoundingClientRect();var s=a;let l=s[0]*s[3]-s[1]*s[2];return{width:r/s[0],height:o/s[3],left:(n*s[3]-t*s[2]+s[2]*s[5]-s[4]*s[3])/l,right:(i*s[3]-t*s[2]+s[2]*s[5]-s[4]*s[3])/l,top:(-n*s[1]+t*s[0]+s[4]*s[1]-s[0]*s[5])/l}}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(248);let b=new class{constructor(){var e=this;this.blocks=[],this.oldPosY=!1,this.intersectionObserver=new IntersectionObserver((function(t){t.map((function(t){let{target:n,isIntersecting:r,intersectionRatio:o}=t;e.blocks.filter((function(e){let{fitInsideContainer:t,el:i}=e;return i.closest("svg")?i.closest("svg")===n:t===n||i===n})).map((function(t){t.isVisible=r&&t.parallaxBehavior.indexOf((0,i.C)({withTablet:!0}))>-1,e.blocks=e.blocks.map((function(e){return e.el===t.el?t:e})),t.isVisible||t.el.removeAttribute("style")}))}))}),{rootMargin:"450px"}),window.addEventListener("resize",(function(){e.oldPosY=!1,e.blocks=e.blocks.map((function(e){return u(s(s({},e),{},{isVisible:d(e.fitInsideContainer?e.fitInsideContainer:e.el)&&e.parallaxBehavior.indexOf((0,i.C)({withTablet:!0}))>-1}))})),e.animate()})),this.update(),this.animate()}removeEl(e){let{el:t}=e;t.removeAttribute("style"),this.blocks=this.blocks.filter((function(e){let{el:n}=e;return n!==t}))}addEl(e){let{el:t,speed:n,fitInsideContainer:r=null,shouldSetHeightToIncrease:o=!0,parallaxBehavior:a="desktop:tablet:mobile"}=e;r?this.intersectionObserver.observe(r):this.intersectionObserver.observe(t.closest("svg")?t.closest("svg"):t),this.blocks.push(u({el:t,speed:n,fitInsideContainer:r,isVisible:d(r||t)&&a.indexOf((0,i.C)({withTablet:!0}))>-1,shouldSetHeightToIncrease:o,parallaxBehavior:a}))}update(){this.oldPosY||0===this.oldPosY||this.animate(),this.setPosition()&&this.animate(),requestAnimationFrame(this.update.bind(this))}setPosition(){if(0===this.blocks.length)return!1;let e=this.oldPosY;return this.oldPosY=pageYOffset,e!=pageYOffset}animate(){this.blocks.map((function(e){if(!e.isVisible)return void e.el.removeAttribute("style");var t=(pageYOffset-e.top+o()())/(e.height+o()());let{top:n,height:i}=f(e.fitInsideContainer?e.fitInsideContainer:e.el);i||(i=(e.fitInsideContainer?e.fitInsideContainer:e.el).getBoundingClientRect().height);const r=1-(n+(e.el.dataset.percentage&&0===parseInt(e.el.dataset.percentage,10)?0:i/2))/o()();var a=c(e.fitInsideContainer?t:r,e.speed)-c(e.el.dataset.percentage?parseInt(e.el.dataset.percentage,10):.5,e.speed);e.el.style.transform=`translate3d(0, ${a}px, 0)`}))}};const g=function(e){e.ctHasParallax&&e.querySelector("figure .ct-image-container > img")||(!e.matches("[data-parallax]")||e.dataset.parallax?(e.ctHasParallax=!0,e.querySelector("figure .ct-image-container > img")?setTimeout((function(){b.addEl(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({el:e.querySelector("figure .ct-image-container > img"),speed:-5,fitInsideContainer:e},e.dataset.parallax?{parallaxBehavior:e.dataset.parallax}:{}))}),0):b.addEl({el:e,speed:+e.dataset.parallax,shouldSetHeightToIncrease:!1})):e.removeAttribute("data-parallax"))}}}]);
//# sourceMappingURL=735.95ccfca9efbfca5f5f36.js.map