Your IP : 216.73.216.30


Current Path : /home/eolienneia/www/templates/yootheme/vendor/assets/uikit/dist/js/components/
Upload File :
Current File : /home/eolienneia/www/templates/yootheme/vendor/assets/uikit/dist/js/components/parallax.min.js

/*! UIkit 3.11.2-dev.4c11be04b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */(function(a,s){typeof exports=="object"&&typeof module<"u"?module.exports=s(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],s):(a=typeof globalThis<"u"?globalThis:a||self,a.UIkitParallax=s(a.UIkit.util))})(this,function(a){"use strict";var s={props:{media:Boolean},data:{media:!1},computed:{matchMedia:function(){var n=E(this.media);return!n||window.matchMedia(n).matches}}};function E(n){if(a.isString(n)){if(n[0]==="@"){var t="breakpoint-"+n.substr(1);n=a.toFloat(a.getCssVar(t))}else if(isNaN(n))return n}return n&&!isNaN(n)?"(min-width: "+n+"px)":!1}a.memoize(function(n){return new a.Promise(function(t,r){if(!n){r();return}a.startsWith(n,"data:")?t(decodeURIComponent(n.split(",")[1])):a.ajax(n).then(function(e){return t(e.response)},function(){return r("SVG not found.")})})});function R(n){return Math.ceil(Math.max.apply(Math,[0].concat(a.$$("[stroke]",n).map(function(t){try{return t.getTotalLength()}catch{return 0}}))))}var v={x,y:x,rotate:x,scale:x,color:F,backgroundColor:F,borderColor:F,blur:c,hue:c,fopacity:c,grayscale:c,invert:c,saturate:c,sepia:c,opacity:H,stroke:L,bgx:P,bgy:P},l=Object.keys,p={mixins:[s],props:N(l(v),"list"),data:N(l(v),void 0),computed:{props:function(n,t){return l(v).reduce(function(r,e){return a.isUndefined(n[e])||(r[e]=v[e](e,t,n[e].slice())),r},{})}},events:{bgimageload:function(){this.$emit()}},methods:{reset:function(){var n=this;a.each(this.getCss(0),function(t,r){return a.css(n.$el,r,"")})},getCss:function(n){var t=this;return l(this.props).reduce(function(r,e){return t.props[e](r,n),r},{transform:"",filter:""})}}};function x(n,t,r){var e=C(r)||{x:"px",y:"px",rotate:"deg"}[n]||"";return(n==="x"||n==="y")&&(n="translate"+a.ucfirst(n)),r=r.map(a.toFloat),r.length===1&&r.unshift(n==="scale"?1:0),function(o,i){var f=g(r,i);a.startsWith(n,"translate")&&(f=a.toFloat(f).toFixed(e==="px"?0:6)),o.transform+=" "+n+"("+f+e+")"}}function F(n,t,r){return r.length===1&&r.unshift(w(t,n,"")),r=r.map(function(e){return q(t,e)}),function(e,o){var i=D(r,o),f=i[0],m=i[1],y=i[2],d=f.map(function(h,u){return h+=y*(m[u]-h),u===3?a.toFloat(h):parseInt(h,10)}).join(",");e[n]="rgba("+d+")"}}function q(n,t){return w(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(a.toFloat)}function c(n,t,r){r.length===1&&r.unshift(0);var e=C(r)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,r=r.map(a.toFloat),function(o,i){var f=g(r,i);o.filter+=" "+n+"("+(f+e)+")"}}function H(n,t,r){return r.length===1&&r.unshift(w(t,n,"")),r=r.map(a.toFloat),function(e,o){e[n]=g(r,o)}}function L(n,t,r){r.length===1&&r.unshift(0);var e=C(r);if(r=r.map(a.toFloat),!r.some(function(i){return i}))return a.noop;var o=R(t);return a.css(t,"strokeDasharray",o),e==="%"&&(r=r.map(function(i){return i*o/100})),r=r.reverse(),function(i,f){i.strokeDashoffset=g(r,f)}}function P(n,t,r){r.length===1&&r.unshift(0),n=n.substr(-1);var e=n==="y"?"height":"width";r=r.map(function(i){return a.toPx(i,e,t)}),a.css(t,"background-position-"+n,"");var o=a.css(t,"backgroundPosition").split(" ")[n==="x"?0:1];return w(t,"backgroundSize","")==="cover"?G(n,t,r,o,e):S(n,r,o)}function G(n,t,r,e,o){var i=_(t);if(!i.width)return a.noop;var f=Math.min.apply(Math,r),m=Math.max.apply(Math,r),y=r.indexOf(f)<r.indexOf(m),d=m-f,h=(y?-d:0)-(y?f:m),u={width:t.offsetWidth,height:t.offsetHeight},T=a.Dimensions.cover(i,u),M=T[o]-u[o];if(M<d)u[o]=T[o]+d-M;else if(M>d){var V=u[o]/a.toPx(e,o,t,!0);V&&(h-=(M-d)/V)}var B=a.Dimensions.cover(i,u),J=S(n,r,h+"px");return function(I,K){J(I,K),I.backgroundSize=B.width+"px "+B.height+"px",I.backgroundRepeat="no-repeat"}}function S(n,t,r){return function(e,o){e["background-position-"+n]="calc("+r+" + "+g(t,o)+"px)"}}var b={};function _(n){var t=a.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(b[t])return b[t];var r=new Image;return t&&(r.src=t,r.naturalWidth||(r.onload=function(){b[t]=$(r),a.trigger(n,"bgimageload")})),b[t]=$(r)}function $(n){return{width:n.naturalWidth,height:n.naturalHeight}}function D(n,t){var r=n.length-1,e=Math.min(Math.floor(r*t),r-1);return n.slice(e,e+2).concat(t===1?1:t%(1/r)*r)}function g(n,t){var r=D(n,t),e=r[0],o=r[1],i=r[2];return a.isNumber(e)?e+Math.abs(e-o)*i*(e<o?1:-1):+o}function C(n,t){return n.reduce(function(r,e){return r||a.isString(e)&&e.replace(/[\d-]/g,"").trim()},"")||t}function w(n,t,r){var e=n.style[t],o=a.css(a.css(n,t,r),t);return n.style[t]=e,o}function N(n,t){return n.reduce(function(r,e){return r[e]=t,r},{})}var O={mixins:[p],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:function(n,t){var r=n.target;return z(r&&a.query(r,t)||t)},start:function(n){var t=n.start;return j(t,this.target)},end:function(n){var t=n.end,r=n.viewport;return j(t||(r=(1-r)*100)&&r+"vh+"+r+"%",this.target)}},update:{read:function(n,t){var r=n.percent;if(t.has("scroll")||(r=!1),!!this.matchMedia){var e=r;return r=A(a.scrolledOver(this.target,this.start,this.end),this.easing),{percent:r,style:e===r?!1:this.getCss(r)}}},write:function(n){var t=n.style;if(!this.matchMedia){this.reset();return}t&&a.css(this.$el,t)},events:["scroll","resize"]}},W=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g;function j(n,t){var r,e=0;for(n=n.toString().replace(/\s/g,""),W.lastIndex=0;(r=W.exec(n))!==null;)e+=a.toPx(r[0],"height",t,!0);return e}function A(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,-t+1)}function z(n){return n?"offsetTop"in n?n:z(a.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",O),O});