import{t as i}from"./debounce-Xd493GvO.js";import{ar as d}from"./echarts-DB130vfq.js";import{s as h,r as u,c,w as p,j as v,n as w,X as _,S as y,B as g,z as j}from"./vue-BJk78QHK.js";const b=Object.assign({name:"AnimationText"},{__name:"AnimationText",props:{propValue:{type:Object,default:()=>({})},request:{type:Object,default:()=>({})},element:{type:Object,default:()=>({})}},setup(f){const n=f,e=h(null),s=u(null);u(null);const o=c(()=>n.propValue),m=c(()=>{const t=n.element.style.width,r=n.element.style.height;return{width:t,height:r}});function l(){e.value&&e.value.setOption(o.value,!0)}function a(){e.value&&e.value.resize()}return p(m,i(t=>{a()},500),{deep:!0}),p(o,i(t=>{l()},500),{deep:!0}),v(()=>{e.value=d(s.value,"vintage"),w(()=>{l()}),window.addEventListener("resize",a)}),_(()=>{}),y(()=>{window.removeEventListener("resize",a),e.value&&(e.value.clear(),e.value.dispose(),e.value=null)}),(t,r)=>(j(),g("div",{ref_key:"chartRef",ref:s,style:{width:"100%",height:"100%"}},null,512))}});export{b as default};
