PageSourceSearch

https://victoriyaclub.com/_nuxt/C7svql5P.js

js victoriyaclub.com collected 2026-09-26 08:32:44 UTC 2,604 bytes, 1 lines download raw bytes

1import{a as e,l as t}from"./w9vazzya.js";import{n as a,aO as n,ai as o,ae as r,al as l,s as i,ab as s,a9 as d,ar as u}from"./DHW7zE2j.js";const p={__name:"DCLottie",props:{src:{type:String,required:!0},keyData:{type:String,required:!0},width:{type:[String,Number],default:null},height:{type:[String,Number],default:null},autoplay:{type:Boolean,default:!1},loop:{type:[Boolean,Number],default:!0},speed:{type:Number,default:1},renderer:{type:String,default:"canvas",validator:e=>["svg","canvas","html"].includes(e)},lazy:{type:Boolean,default:!1},rootMargin:{type:String,default:"50px"},class:{type:String,default:""},isPlayWhenHover:{type:Boolean,default:!1}},emits:["ready","complete","loopComplete","enterFrame","segmentStart","dataReady","dataFailed","error"],setup(p,{expose:c,emit:y}){const f=p,m=y,g=u(null);let v=null,h=null,S=!1,b=!1;const w=a(()=>{const e={};return f.width&&(e.width="number"==typeof f.width?`${f.width}px`:f.width),f.height&&(e.height="number"==typeof f.height?`${f.height}px`:f.height),e}),E=a(()=>["inline-block",f.class]);async function L(){if(!b&&!S&&g.value&&f.src){b=!0;try{if(await e.request(f.keyData,f.src),!g.value)return;v=t.loadAnimation({container:g.value,renderer:f.renderer,loop:f.loop,autoplay:f.autoplay,animationData:e.getData(f.keyData),speed:f.speed}),v.addEventListener("complete",()=>{m("complete")}),v.addEventListener("loopComplete",()=>{m("loopComplete")}),v.addEventListener("enterFrame",()=>{m("enterFrame")}),v.addEventListener("segmentStart",()=>{m("segmentStart")}),v.addEventListener("dataReady",()=>{m("dataReady")}),v.addEventListener("dataFailed",()=>{m("dataFailed")}),S=!0,m("ready",v)}catch(a){m("error",a)}finally{b=!1}}}function D(){!f.lazy||!("IntersectionObserver"in window)||!g.value||(h=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(L(),h&&h.unobserve(g.value))})},{rootMargin:f.rootMargin,threshold:.01}),h.observe(g.value))}function F(){v&&v.play()}function k(){v&&v.stop()}function x(){h&&(h.disconnect(),h=null),v&&(v.destroy(),v=null),S=!1,b=!1}c({play:F,pause:function(){v&&v.pause()},stop:k,setSpeed:function(e){v&&v.setSpeed(e)},goToAndPlay:function(e,t=!1){v&&v.goToAndPlay(e,t)},goToAndStop:function(e,t=!1){v&&v.goToAndStop(e,t)},getSpeed:function(){return v?v.getSpeed():1},animationInstance:a(()=>v)}),n(()=>f.src,()=>{x(),S=!1,f.lazy?D():L()}),o(()=>{f.lazy?D():L()}),r(()=>{x()});const A=()=>{f.isPlayWhenHover&&F()},M=()=>{f.isPlayWhenHover&&k()};return(e,t)=>(l(),i("div",{ref_key:"containerRef",ref:g,class:d(E.value),style:s(w.value),onMouseenter:A,onMouseleave:M},null,38))}};export{p 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.