File: /home/jairicem/basalehglobal.ng/wp-content/themes/porto/js/appearanimate.min.js
!function(t){window.theme=window.theme||{},void 0===window.theme.animation_support&&(theme.animation_support=!window.jQuery("html").hasClass("no-csstransitions"),theme.getOptions=function(t){if("object"==typeof t)return t;if("string"!=typeof t)return{};try{return JSON.parse(t.replace(/'/g,'"').replace(";",""))}catch(t){return{}}},theme.execPluginFunction=function(t,a){for(var e=Array.prototype.slice.call(arguments,2),n=t.split("."),i=n.pop(),r=0;r<n.length;r++)a=a[n[r]];return a[i].apply(a,e)},theme.mergeOptions=function(t,a){var e={};for(var n in t)e[n]=t[n];for(var n in a)e[n]=a[n];return e},theme.dynIntObsInit=function(a,e,n){var i;i="string"==typeof a?document.querySelectorAll(a):a,Array.prototype.forEach.call(i,(function(a){var i,r=t(a);if(!r.data("observer-init")){var o=theme.getOptions(r.data("plugin-options"));o&&(i=o);var s=theme.mergeOptions(n,i),p={rootMargin:"0px 0px 200px 0px",thresholds:0};s.accY&&(p.rootMargin="0px 0px "+Number(s.accY)+"px 0px");var d=new IntersectionObserver((function(t){for(var a=0;a<t.length;a++){var n=t[a];n.intersectionRatio>0&&(theme.execPluginFunction(e,r,s),d.unobserve(n.target))}}),p);d.observe(a),r.data("observer-init",!0)}}))})}(window.jQuery),function(t,a){"use strict";t=t||{};var e="__animate",n=function(t,a){return this.initialize(t,a)};n.defaults={accX:0,accY:-120,delay:1,duration:1e3},n.prototype={initialize:function(t,a){return t.data(e)||(this.$el=t,this.setData().setOptions(a).build()),this},setData:function(){return this.$el.data(e,!0),this},setOptions:function(t){return this.options=a.extend(!0,{},n.defaults,t,{wrapper:this.$el}),this},build:function(){var e,n,i=this.options.wrapper;if(i.data("appear-animation-svg"))return i.find("[data-appear-animation]").each((function(){var e,n=a(this),i=t.getOptions(n.data("plugin-options"));i&&(e=i),n.themeAnimate(e)})),this;i.addClass("appear-animation");var r=i.get(0);return e=Math.abs(i.data("appear-animation-delay")?i.data("appear-animation-delay"):this.options.delay),n=Math.abs(i.data("appear-animation-duration")?i.data("appear-animation-duration"):this.options.duration),void 0!==i.data("appear-animation")&&i.data("appear-animation").includes("revealDir")?(e>1&&r.style.setProperty("--porto-reveal-animation-delay",e+"ms"),1e3!=n&&r.style.setProperty("--porto-reveal-animation-duration",n+"ms"),i.data("animation-reveal-clr")&&r.style.setProperty("--porto-reveal-clr",i.data("animation-reveal-clr"))):(e>1&&(r.style.animationDelay=e+"ms"),1e3!=n&&(r.style.animationDuration=n+"ms")),i.addClass(i.data("appear-animation")+" appear-animation-visible"),this}},a.extend(t,{Animate:n}),a.fn.themeAnimate=function(n){return this.map((function(){var i=a(this);return i.data(e)?i:new t.Animate(i,n)}))}}.apply(this,[window.theme,jQuery]),function(t,a){t=t||{};var e=function(e,n){a.fn.themeAnimate&&void 0!==n&&a((function(){var e=n.querySelectorAll("svg [data-appear-animation]");e.length&&a(e).closest("svg").attr("data-appear-animation-svg","1");var i=n.querySelectorAll("[data-plugin-animate], [data-appear-animation], [data-appear-animation-svg]");if(i.length){var r=function(){window.innerWidth<768&&(window.removeEventListener("resize",r),i.forEach((function(t){t.classList.add("appear-animation-visible")})))};t.animation_support?(window.addEventListener("resize",r),t.dynIntObsInit(i,"themeAnimate",t.Animate.defaults)):i.forEach((function(t){t.classList.add("appear-animation-visible")}))}}))};e(0,document.body),a(document.body).on("porto_after_async_init",(function(a,n,i){-1!=t.isAsyncInit&&e(0,i)}))}.apply(this,[window.theme,jQuery]);