import{ax as $,r as S,c as l,j as z,w as B,X as K,B as f,z as v,D as t,W as p,aB as j,G as o,P as s,M as D,a7 as L,H as O,L as k}from"./vue-BJk78QHK.js";import{r as _}from"./request-CEvu378m.js";import{_ as W}from"./index-M_JNBppB.js";import"./element-3_pOinej.js";import"./utils-YI6ye1sf.js";import"./threejs-BafxXW5-.js";import"./vxe-Dx3zSILm.js";const Z={width:"244",height:"264",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},G={d:"M134 86C136 86 80 85 77 208",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},I={d:"M136 86C138 86 212 88 204 208",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},X={d:"M136 84C138 84 195 84 206 116",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},E={d:"M134 84C136 84 81 82 58 123",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},H={d:"M132 86C134 86 120 68 93 67",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},N={d:"M134 86C136 86 132 78 134 74C136 69 150 52 150 52",fill:"none",stroke:"url(#linear)","stroke-opacity":"1","marker-end":"url(#arrow)"},U={d:"M134 85C136 85 146 65 183 65",fill:"none","fill-opacity":"0",stroke:"url(#linear)","marker-end":"url(#arrow)"},Y=Object.assign({name:"StaffMix"},{__name:"StaffMix",props:{propValue:{type:Object,default:()=>({})},request:{type:Object,default:()=>({})},element:{type:Object,default:()=>({})}},setup(w){const e=w,c=$(),n=S(null),a=l(()=>e.propValue.data),m=l(()=>e.element.style.width/432),h=l(()=>e.element.style.height/400),x=l(()=>e.propValue.textColor),b=l(()=>e.propValue.textColor2),C=l(()=>e.propValue.fontZise),M=l(()=>e.propValue.fontZise2),q=l(()=>e.propValue.title);return z(()=>{var y,r;e.request&&(n.value=_(e.request,e.propValue,"data")),((r=(y=e.request)==null?void 0:y.global)==null?void 0:r.length)>0&&B(()=>c.state.globalKey,()=>{e.request.global.forEach(d=>{const i=c.state.globalKey.findIndex(u=>u.globalKey===d);if(i>-1){const u=[c.state.globalKey[i].globalKey,c.state.globalKey[i].globalValue],g=e.request.data.findIndex(V=>V[0]===u[0]);g>-1?e.request.data[g][1]=u[1]:e.request.data.push(u)}}),n.value&&n.value(),n.value=_(e.request,e.propValue,"data")},{deep:!0})}),K(()=>{e.request&&n.value&&n.value()}),(y,r)=>(v(),f("div",null,[t("div",{class:"person",style:p({transform:`scale(${m.value},${h.value})`})},r[0]||(r[0]=[t("div",{class:"pers person1"},null,-1),t("div",{class:"pers person2"},null,-1),t("div",{class:"pers person3"},null,-1)]),4),t("div",{class:"svgs",style:p({transform:`scale(${m.value},${h.value})`})},[(v(),f("svg",Z,[r[1]||(r[1]=j('<defs data-v-37c6587c><linearGradient id="linear" x1="0%" y1="0%" x2="0%" y2="100%" data-v-37c6587c><stop offset="0%" style="stop-color:#0a6aff;stop-opacity:0.47;" data-v-37c6587c></stop><stop offset="40%" style="stop-color:#5cffff;stop-opacity:1;" data-v-37c6587c></stop><stop offset="100%" style="stop-color:#0a6aff;stop-opacity:1;" data-v-37c6587c></stop></linearGradient><marker id="arrow" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" markerUnits="strokeWidth" data-v-37c6587c><path d="M0,0 L0,6 L9,3 z" fill="rgb(11,108,255)" data-v-37c6587c></path></marker></defs>',1)),o(t("path",G,null,512),[[s,a.value.length>=1]]),o(t("path",I,null,512),[[s,a.value.length>=7]]),o(t("path",X,null,512),[[s,a.value.length>=6]]),o(t("path",E,null,512),[[s,a.value.length>=2]]),o(t("path",H,null,512),[[s,a.value.length>=3]]),o(t("path",N,null,512),[[s,a.value.length>=4]]),o(t("path",U,null,512),[[s,a.value.length>=5]])]))],4),t("div",{class:"svgs",style:p({transform:`scale(${m.value},${h.value})`})},[(v(!0),f(D,null,L(a.value,(d,i)=>(v(),f("div",{key:i,class:O(["text",`per${i+1}`])},[t("span",{style:p({color:x.value,"font-size":`${C.value}px!important`})},k(d.name),5),t("span",{style:p({color:b.value,"font-size":`${M.value}px!important`})},k(d.number)+k(q.value),5)],2))),128))],4)]))}}),ee=W(Y,[["__scopeId","data-v-37c6587c"]]);export{ee as default};
