import{_ as u}from"./index-M_JNBppB.js";import{r as f,w as i,j as g,ag as h,B as c,z as m,O as v,D as _}from"./vue-BJk78QHK.js";import"./element-3_pOinej.js";import"./utils-YI6ye1sf.js";import"./threejs-BafxXW5-.js";import"./vxe-Dx3zSILm.js";const w={class:"svg-star-container"},y={version:"1.1",baseProfile:"full",xmlns:"http://www.w3.org/2000/svg"},S=["points","stroke","fill"],V=Object.assign({name:"SVGStar"},{__name:"SVGStar",props:{propValue:{type:String,required:!0,default:""},element:{type:Object,default:()=>({})}},setup(e){const n=e,a=f("");function p(t,o){const d=[[.5,0],[.625,.375],[1,.375],[.75,.625],[.875,1],[.5,.75],[.125,1],[.25,.625],[0,.375],[.375,.375]].map(l=>`${t*l[0]} ${o*l[1]}`);a.value=d.toString()}function s(){const{width:t,height:o}=n.element.style;p(t,o)}return i(()=>n.element.style.width,()=>{s()}),i(()=>n.element.style.height,()=>{s()}),g(()=>{s()}),(t,o)=>{const r=h("v-text");return m(),c("div",w,[(m(),c("svg",y,[_("polygon",{ref:"star",points:a.value,stroke:e.element.style.borderColor,fill:e.element.style.backgroundColor,"stroke-width":"1"},null,8,S)])),v(r,{"prop-value":e.element.propValue,element:e.element},null,8,["prop-value","element"])])}}}),D=u(V,[["__scopeId","data-v-defd8524"]]);export{D as default};
