PageSourceSearch

https://www.velux.it/dist/velux-marketing/client/assets/vue3-lottie.es-a37e0f1c.js

js velux.it collected 2026-10-02 11:37:20 UTC 6,823 bytes, 1 lines download raw bytes

1import{L as g}from"./lottie-web-b8223fd3.js";import{a0 as S,k as h,f as O,w,D as A,E as D,a8 as P,r as _}from"./vendor-a0789617.js";import"./axios-bb6ee5b8.js";import"./lodash-86ed0c75.js";/*! @license Third-party license notices: /dist/velux-marketing/client/THIRD_PARTY_NOTICES.txt */(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".lottie-animation-container{width:var(--lottie-animation-container-width);height:var(--lottie-animation-container-height);background-color:var(--lottie-animation-container-background-color);overflow:hidden;margin:var(--lottie-animation-margin)}.lottie-animation-container svg{transform:scale(var(--lottie-animation-scale))}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();var j=Object.defineProperty,b=Object.defineProperties,E=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,L=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable,c=(t,n,r)=>n in t?j(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,H=(t,n)=>{for(var r in n||(n={}))L.call(n,r)&&c(t,r,n[r]);if(d)for(var r of d(n))C.call(n,r)&&c(t,r,n[r]);return t},k=(t,n)=>b(t,E(n)),m=function t(n,r){if(n===r)return!0;if(n&&r&&typeof n=="object"&&typeof r=="object"){if(n.constructor!==r.constructor)return!1;var o,e,l;if(Array.isArray(n)){if(o=n.length,o!=r.length)return!1;for(e=o;e--!==0;)if(!t(n[e],r[e]))return!1;return!0}if(n instanceof Map&&r instanceof Map){if(n.size!==r.size)return!1;for(e of n.entries())if(!r.has(e[0]))return!1;for(e of n.entries())if(!t(e[1],r.get(e[0])))return!1;return!0}if(n instanceof Set&&r instanceof Set){if(n.size!==r.size)return!1;for(e of n.entries())if(!r.has(e[0]))return!1;return!0}if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(r)){if(o=n.length,o!=r.length)return!1;for(e=o;e--!==0;)if(n[e]!==r[e])return!1;return!0}if(n.constructor===RegExp)return n.source===r.source&&n.flags===r.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===r.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===r.toString();if(l=Object.keys(n),o=l.length,o!==Object.keys(r).length)return!1;for(e=o;e--!==0;)if(!Object.prototype.hasOwnProperty.call(r,l[e]))return!1;for(e=o;e--!==0;){var u=l[e];if(!t(n[u],r[u]))return!1}return!0}return n!==n&&r!==r};function f(t){var n,r,o;if(Array.isArray(t)){for(r=Array(n=t.length);n--;)r[n]=(o=t[n])&&typeof o=="object"?f(o):o;return r}if(Object.prototype.toString.call(t)==="[object Object]"){r={};for(n in t)n==="__proto__"?Object.defineProperty(r,n,{value:f(t[n]),configurable:!0,enumerable:!0,writable:!0}):r[n]=(o=t[n])&&typeof o=="object"?f(o):o;return r}return t}var B=(t,n)=>{const r=t.__vccOpts||t;for(const[o,e]of n)r[o]=e;return r};const N=S({props:{animationData:{type:Object,default:()=>({})},animationLink:{type:String,default:""},loop:{type:[Boolean,Number],default:!0},autoPlay:{type:Boolean,default:!0},width:{type:[Number,String],default:"100%"},height:{type:[Number,String],default:"100%"},speed:{type:Number,default:1},delay:{type:Number,default:0},direction:{type:String,default:"forward"},pauseOnHover:{type:Boolean,default:!1},playOnHover:{type:Boolean,default:!1},backgroundColor:{type:String,default:"transparent"},pauseAnimation:{type:Boolean,default:!1},noMargin:{type:Boolean,default:!1},scale:{type:Number,default:1},renderer:{type:String,default:"svg"},rendererSettings:{type:Object,default:()=>({})},assetsPath:{type:String,default:""}},emits:{onComplete:null,onLoopComplete:null,onEnterFrame:null,onSegmentStart:null,onAnimationLoaded:null},setup(t,{emit:n}){const r=_();let o,e=null,l=1;h(async()=>{if(r.value){if(t.animationLink!="")try{o=await(await fetch(t.animationLink)).json()}catch(a){console.error(a);return}else if(m(t.animationData,{})===!1)o=f(t.animationData);else throw new Error("You must provide either animationLink or animationData");u()}});const u=()=>{if(!r.value||!o)return;e?.destroy(),e=null;let a=t.autoPlay,i=t.loop;t.playOnHover&&(a=!1),typeof i=="number"&&i>0&&(i=i-1),t.delay>0&&(a=!1);const s={container:r.value,renderer:t.renderer,loop:i,autoplay:a,animationData:o,assetsPath:t.assetsPath};m(t.rendererSettings,{})===!1&&(s.rendererSettings=t.rendererSettings),t.scale!==1&&(s.rendererSettings=k(H({},s.rendererSettings),{viewBoxOnly:!0})),e=g.loadAnimation(s),setTimeout(()=>{a=t.autoPlay,t.playOnHover?e?.pause():a?e?.play():e?.pause(),n("onAnimationLoaded")},t.delay),e.setSpeed(t.speed),t.direction==="reverse"&&e.setDirection(-1),t.direction==="normal"&&e.setDirection(1),(t.pauseAnimation||t.playOnHover)&&e.pause(),e.addEventListener("loopComplete",()=>{t.direction==="alternate"&&(e?.stop(),l=l===-1?1:-1,e?.setDirection(l),e?.play()),n("onLoopComplete")}
1),e.addEventListener("complete",()=>{n("onComplete")}),e.addEventListener("enterFrame",()=>{n("onEnterFrame")}),e.addEventListener("segmentStart",()=>{n("onSegmentStart")})},y=O(()=>{let a=t.width,i=t.height;return typeof t.width=="number"&&(a=`${t.width}px`),typeof t.height=="number"&&(i=`${t.height}px`),{"--lottie-animation-container-width":a,"--lottie-animation-container-height":i,"--lottie-animation-container-background-color":t.backgroundColor,"--lottie-animation-margin":t.noMargin?"0":"0 auto","--lottie-animation-scale":t.scale!=1?t.scale:""}}),p=()=>{e&&t.pauseOnHover&&e.pause(),e&&t.playOnHover&&e.play()},v=()=>{e&&t.pauseOnHover&&e.play(),e&&t.playOnHover&&e.pause()};return w(()=>t.pauseAnimation,()=>{if((t.pauseOnHover||t.playOnHover)&&t.pauseAnimation){console.error("If you are using pauseAnimation prop for Vue3-Lottie, please remove the props pauseOnHover and playOnHover");return}e&&(t.pauseAnimation?e.pause():e.play())}),{lottieAnimationContainer:r,hoverEnded:v,hoverStarted:p,getCurrentStyle:y,play:()=>{e&&e.play()},pause:()=>{e&&e.pause()},stop:()=>{e&&e.stop()},destroy:()=>{e&&e.destroy()},setSpeed:(a=1)=>{if(a<=0)throw new Error("Speed must be greater than 0");e&&e.setSpeed(a)},setDirection:a=>{e&&(a==="forward"?e.setDirection(1):a==="reverse"&&e.setDirection(-1))},goToAndStop:(a,i=!0)=>{e&&e.goToAndStop(a,i)},goToAndPlay:(a,i=!0)=>{e&&e.goToAndPlay(a,i)},playSegments:(a,i=!1)=>{e&&e.playSegments(a,i)},setSubFrame:(a=!0)=>{e&&e.setSubframe(a)},getDuration:(a=!0)=>{if(e)return e.getDuration(a)},updateDocumentData:(a,i=0)=>{e&&e.renderer.elements[i].updateDocumentData(a)}}}});function T(t,n,r,o,e,l){return A(),D("div",{ref:"lottieAnimationContainer",class:"lottie-animation-container",style:P(t.getCurrentStyle),onMouseenter:n[0]||(n[0]=(...u)=>t.hoverStarted&&t.hoverStarted(...u)),onMouseleave:n[1]||(n[1]=(...u)=>t.hoverEnded&&t.hoverEnded(...u))},null,36)}var V=B(N,[["render",T]]),Z={install(t,n){var r;const o=(r=n?.name)!=null?r:"Vue3Lottie";t.component(o,V)}};export{V as Vue3Lottie,Z as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.