1import{a3 as q,h as r,x as g,o as v,i as S,j as h,a0 as y,a4 as M,q as O,D as c,S as j,$ as P}from"./BNlnY7xE.js";import{M as b}from"./tlKTSioD.js";import{a as k}from"./_H0sH05u.js";const x=["data-progress"],R={__name:"MagicScrollMotion",props:{sequence:{type:Array,required:!0},sequenceOptions:{type:Object,required:!1},progress:{type:Number,required:!1}},setup(t){const a=O(void 0),u=j("el"),i=P(b,c(()=>0)),n=c(()=>t.progress??i.value??0),l={duration:1,delay:0},m=q(t.sequenceOptions,l);function s(){const e=M(u);if(!t.sequence||!t.sequence.length||!e)return;const o=t.sequence.map(d=>{const[p=[],f={}]=d;return[e,p,f]});a.value=k(o,m),a.value.pause(),a.value.time=n.value}return r(n,e=>{!e&&e!==0||!a.value||(a.value.time=e)}),r(()=>t.sequence,()=>{s()},{deep:!0}),g(()=>{s()}),v(()=>{a.value?.cancel(),a.value=void 0}),(e,o)=>(S(),h("div",{ref:"el",class:"magic-scroll-motion","data-progress":n.value},[y(e.$slots,"default")],8,x))}};export{R 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.