OwlCyberSecurity - MANAGER
Edit File: 85.js
"use strict";(self.webpackChunkrishiExports=self.webpackChunkrishiExports||[]).push([[85],{5225:e=>{e.exports=function(){if("undefined"==typeof window||"undefined"==typeof navigator)return function(){return 0};if(!navigator.userAgent.match(/iphone|ipod|ipad/i)&&!function(){var 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}}()},5085:(e,t,n)=>{n.r(t),n.d(t,{mount:()=>w,rel:()=>y});var r=n(4124),i=n(5225),o=n.n(i);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function l(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?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===a(t)?t:String(t)}var p=function(e,t){return t*(100*(1-e))},d=function(e){var t=e.el,n=void 0===t?null:t,r=e.speed,i=void 0===r?null:r,a=e.fitInsideContainer,l=void 0===a?null:a,s=e.isVisible,u=void 0!==s&&s,c=e.shouldSetHeightToIncrease,f=void 0===c||c,d=e.parallaxBehavior,h=void 0===d?"desktop:tablet:mobile":d;if(i=i<=-5?-5:i>=5?5:i,l&&f){var v=0;v=i>0?p(.5,i):p(o()()/(l.clientHeight+o()()),i)-p(.5,i),v=2*Math.abs(v),n.parentNode.style.height=u?"calc(100% + ".concat(v,"px)"):"100%"}var g=b(l||n),m=g.top,y=g.height;return{parallaxBehavior:h,shouldSetHeightToIncrease:f,fitInsideContainer:l,el:n,top:pageYOffset+m,height:y,speed:i,isVisible:u}};function h(e){var t=e.getBoundingClientRect();return t.bottom>-450&&t.top-450<(o()()||document.documentElement.clientHeight)}function b(e){if(!e)return null;var t=e.getBoundingClientRect(),n=t.top,r=t.left,i=t.right,o=t.width,a=t.height,l=window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((function(e){return parseFloat(e)}));if(6!=l.length)return e.getBoundingClientRect();var s=l,u=s[0]*s[3]-s[1]*s[2];return{width:o/s[0],height:a/s[3],left:(r*s[3]-n*s[2]+s[2]*s[5]-s[4]*s[3])/u,right:(i*s[3]-n*s[2]+s[2]*s[5]-s[4]*s[3])/u,top:(-r*s[1]+n*s[0]+s[4]*s[1]-s[0]*s[5])/u}}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function g(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 m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=new(function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.blocks=[],this.oldPosY=!1,this.intersectionObserver=new IntersectionObserver((function(e){e.map((function(e){var n=e.target,i=e.isIntersecting;e.intersectionRatio,t.blocks.filter((function(e){var t=e.fitInsideContainer,r=e.el;return r.closest("svg")?r.closest("svg")===n:t===n||r===n})).map((function(e){e.isVisible=i&&e.parallaxBehavior.indexOf((0,r.C)({withTablet:!0}))>-1,t.blocks=t.blocks.map((function(t){return t.el===e.el?e:t})),e.isVisible||e.el.removeAttribute("style")}))}))}),{rootMargin:"450px"}),window.addEventListener("resize",(function(){t.oldPosY=!1,t.blocks=t.blocks.map((function(e){return d(s(s({},e),{},{isVisible:h(e.fitInsideContainer?e.fitInsideContainer:e.el)&&e.parallaxBehavior.indexOf((0,r.C)({withTablet:!0}))>-1}))})),t.animate()})),this.update(),this.animate()}var t,n;return t=e,(n=[{key:"removeEl",value:function(e){var t=e.el;t.removeAttribute("style"),this.blocks=this.blocks.filter((function(e){return e.el!==t}))}},{key:"addEl",value:function(e){var t=e.el,n=e.speed,i=e.fitInsideContainer,o=void 0===i?null:i,a=e.shouldSetHeightToIncrease,l=void 0===a||a,s=e.parallaxBehavior,u=void 0===s?"desktop:tablet:mobile":s;o?this.intersectionObserver.observe(o):this.intersectionObserver.observe(t.closest("svg")?t.closest("svg"):t),this.blocks.push(d({el:t,speed:n,fitInsideContainer:o,isVisible:h(o||t)&&u.indexOf((0,r.C)({withTablet:!0}))>-1,shouldSetHeightToIncrease:l,parallaxBehavior:u}))}},{key:"update",value:function(){this.oldPosY||0===this.oldPosY||this.animate(),this.setPosition()&&this.animate(),requestAnimationFrame(this.update.bind(this))}},{key:"setPosition",value:function(){if(0===this.blocks.length)return!1;var e=this.oldPosY;return this.oldPosY=pageYOffset,e!=pageYOffset}},{key:"animate",value:function(){this.blocks.map((function(e){if(e.isVisible){var t=(pageYOffset-e.top+o()())/(e.height+o()()),n=b(e.fitInsideContainer?e.fitInsideContainer:e.el),r=n.top,i=n.height;i||(i=(e.fitInsideContainer?e.fitInsideContainer:e.el).getBoundingClientRect().height);var a=1-(r+(e.el.dataset.percentage&&0===parseInt(e.el.dataset.percentage,10)?0:i/2))/o()(),l=p(e.fitInsideContainer?t:a,e.speed)-p(e.el.dataset.percentage?parseInt(e.el.dataset.percentage,10):.5,e.speed);e.el.style.transform="translate3d(0, ".concat(l,"px, 0)")}else e.el.removeAttribute("style")}))}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}()),w=function(e){e.ctHasParallax&&e.querySelector("figure .rt-image-container > img")&&y.removeEl({el:e.querySelector("figure .rt-image-container > img")}),!e.matches("[data-parallax]")||e.dataset.parallax?(e.ctHasParallax=!0,e.querySelector("figure .rt-image-container > img")?setTimeout((function(){y.addEl(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({el:e.querySelector("figure .rt-image-container > img"),speed:-5,fitInsideContainer:e},e.dataset.parallax?{parallaxBehavior:e.dataset.parallax}:{}))}),0):y.addEl({el:e,speed:+e.dataset.parallax,shouldSetHeightToIncrease:!1})):e.removeAttribute("data-parallax")}}}]);