ace-component-lib 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -791,7 +791,7 @@ cursor: move;
791
791
  }
792
792
  .__STYLED__ .loading-tip {
793
793
  font-size: 15px;
794
- `("loading");e.defineComponent({name:"Loading",setup(t,{slots:r}){return()=>e.createVNode(FN,null,{default:()=>{var n;return[e.createVNode("svg",{width:"50px",height:"50px"},[e.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),e.createVNode("div",{class:"loading-tip"},[(n=r.default)==null?void 0:n.call(r)])]}})}});const jN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(hk),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),PN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(yk),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),UN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(wk),{color:e.unref(n),ref_key:"customRef",ref:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.config.customize.title),1)]),_:1},8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),WN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Lk),{color:e.unref(n),scanDuration:a.config.customize.scanDuration,haloDuration:a.config.customize.haloDuration,ref_key:"customRef",ref:o},null,8,["color","scanDuration","haloDuration"]))}})},Symbol.toStringTag,{value:"Module"})),GN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Yk),{color:e.unref(n),duration:a.config.customize.duration,reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),HN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(eN),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),YN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(sN),{color:e.unref(n),duration:a.config.customize.duration,reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),XN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(gN),{color:e.unref(n),duration:a.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","duration"]))}})},Symbol.toStringTag,{value:"Module"})),qN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(vN),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),JN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(ON),{color:e.unref(n),reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),KN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(LN),{color:e.unref(n),reverse:a.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),ZN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(PE),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),QN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(GE),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),e$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s,d;return e.openBlock(),e.createBlock(e.unref(sV),{color:e.unref(n),title:(l=r.config)==null?void 0:l.customize.title,titleWidth:(s=r.config)==null?void 0:s.customize.titleWidth,backgroundColor:(d=r.config)==null?void 0:d.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","title","titleWidth","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),t$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(dV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),r$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(pV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),n$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(gV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),o$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(_V),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),a$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s;return e.openBlock(),e.createBlock(e.unref(TV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),i$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s;return e.openBlock(),e.createBlock(e.unref(UV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),l$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(HV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),s$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(qV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),c$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s,d;return e.openBlock(),e.createBlock(e.unref(ik),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,duration:(d=r.config)==null?void 0:d.customize.duration,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse","duration"])}}})},Symbol.toStringTag,{value:"Module"})),d$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(ck),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),f$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to bottom, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:r.config.customize.width+"px","background-image":e.unref(n)}),class:"h-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),u$=["src"],p$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t;return(n,o)=>(e.openBlock(),e.createElementBlock("iframe",{src:r.config.customize.url,class:"w-full h-full border-0"},null,8,u$))}})},Symbol.toStringTag,{value:"Module"})),h$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const{proxy:r}=e.getCurrentInstance(),{resetUrl:n}=r.$globalUtils,o=t;return(a,i)=>(e.openBlock(),e.createBlock(e.unref(v.ElImage),{class:"w-full h-full",src:e.unref(n)(o.config.customize.url),fit:o.config.customize.fit},null,8,["src","fit"]))}})},Symbol.toStringTag,{value:"Module"})),m$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(n),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(r.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),g$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to ${r.config.customize.colorPosition}, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full",style:e.normalizeStyle({"background-image":e.unref(n),borderRadius:r.config.customize.borderRadius+"px"})},null,4))}})},Symbol.toStringTag,{value:"Module"})),y$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(n),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(r.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),b$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.ref(),o=()=>{n.value=on().format("YYYY-MM-DD HH:mm:ss")},a=setInterval(()=>{o()},1e3);o(),e.onBeforeUnmount(()=>{a&&clearInterval(a)});const i=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(l,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(i),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(e.unref(n)),5))}})},Symbol.toStringTag,{value:"Module"})),_$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to right, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:r.config.customize.height+"px","background-image":e.unref(n)}),class:"w-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),Yh={};for(let t=0;t<=4;t+=1){let r=null;if(t==0&&(r=Object.assign({"../decoration/decoration1/index.vue":jN,"../decoration/decoration10/index.vue":PN,"../decoration/decoration11/index.vue":UN,"../decoration/decoration12/index.vue":WN,"../decoration/decoration2/index.vue":GN,"../decoration/decoration3/index.vue":HN,"../decoration/decoration4/index.vue":YN,"../decoration/decoration5/index.vue":XN,"../decoration/decoration6/index.vue":qN,"../decoration/decoration8/index.vue":JN,"../decoration/decoration9/index.vue":KN})),t==1&&(r=Object.assign({"../border/border1/index.vue":ZN,"../border/border10/index.vue":QN,"../border/border11/index.vue":e$,"../border/border12/index.vue":t$,"../border/border13/index.vue":r$,"../border/border2/index.vue":n$,"../border/border3/index.vue":o$,"../border/border4/index.vue":a$,"../border/border5/index.vue":i$,"../border/border6/index.vue":l$,"../border/border7/index.vue":s$,"../border/border8/index.vue":c$,"../border/border9/index.vue":d$})),t==2&&(r=Object.assign({"../basic/horizontal-line/index.vue":f$,"../basic/iframe/index.vue":p$,"../basic/img/index.vue":h$,"../basic/number/index.vue":m$,"../basic/square/index.vue":g$,"../basic/text/index.vue":y$,"../basic/time/index.vue":b$,"../basic/vertical-line/index.vue":_$})),r)for(const[n,o]of Object.entries(r)){const a=n.split("/")[2];Yh[a]=o.default}}function Ps(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesItem:n,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function ni(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:r,customSeriesData:t,seriesItem:n,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Us(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{a.dataset.dimensions=[a.dataShow.x,a.dataShow.y],t.value[a.dataShow.y]||(t.value[a.dataShow.y]=JSON.parse(JSON.stringify(n))),window.customSeriesData=t.value,a.series=[t.value[a.dataShow.y]],i&&i()})},n={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:r,customSeriesData:t,seriesItem:n,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function Ws(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(i,l)=>{i.series=[],setTimeout(()=>{const s=i.dataShow.y.filter(d=>!i.dataShow.hide.includes(d));i.dataset.dimensions=[i.dataShow.x,...s],i.dataShow.y.forEach((d,c)=>{if(t.value[d])return;const f=i.dataShow.y.length==c+1&&i.dataShow.y.length>0;t.value[d]=JSON.parse(JSON.stringify(f?n:o))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(d=>{d.label.formatter=c=>{const f=i.custom,u=c.data[c.seriesName];if((f==null?void 0:f.toFixed)!=="")try{return Number(u).toFixed(f.toFixed)}catch{return u}return u}}),i.series=s.map((d,c)=>t.value[d]),l&&l()})},n={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},o={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesLineItem:n,seriesBarItem:o,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Gs(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesItem:n,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Hs(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(d=>!a.dataShow.hide.includes(d));a.dataset.dimensions=l,e.unref(t).type||(t.value=JSON.parse(JSON.stringify(n))),window.customSeriesData=t.value,a.radar.indicator=a.dataset.source.map(d=>({name:d[a.dataShow.x]}));const s=[];a.dataset.dimensions.forEach(d=>{s.push({name:d,value:a.dataset.source.map(c=>c[d])})}),a.series=[{...t.value,data:s}],e.unref(t).label.formatter=d=>{const c=a.custom,f=d.value;if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f},i&&i()})},n={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:r,customSeriesData:t,seriesItem:n,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function Xh(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{typeof a.dataShow.y=="string"&&a.dataShow.y&&(a.dataShow.y=[a.dataShow.y]);const l=a.dataShow.y.filter(s=>{var d;return!(((d=a.dataShow)==null?void 0:d.hide)??[]).includes(s)});a.dataset.dimensions=l,a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),a.customSeriesData=t.value,window.customSeriesData=t.value,i&&i()})},n={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:r,seriesItem:n,customSeriesData:t,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function oi(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=l,a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),a.customSeriesData=t.value,window.customSeriesData=t.value,i&&i()})},n={prefix:"",suffix:"",toFixed:0,color:null};return{init:r,customSeriesData:t,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const w$=t=>{if(process.env.NODE_ENV==="development"){const r="http://192.168.70.09:30010/".split(":")[1].split("."),n=r[r.length-1],o=`http://192.168.70.${Number(n)}:9000`;return t=t.replace("http://172.17.95.13:9000",o),t=t.replace("http://172.29.26.123:9000",o),t=t.replace("http://192.168.0.22:9000",o),t}return t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t=t.replace(/http:\/\/172\.29\.26\.123:9000/g,""),t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t},br=t=>JSON.parse(t,(r,n)=>n&&typeof n=="string"&&n.indexOf("FUNCTION_FLAG")>-1?new Function(`return ${n.toString().replace("FUNCTION_FLAG","")}`)():n),Or=t=>JSON.stringify(t,(r,n)=>typeof n=="function"?"FUNCTION_FLAG"+n:n);function mt(){const{proxy:t}=e.getCurrentInstance(),r=e.ref({}),n=e.ref(""),o=e.ref(null),a=async(c,f,u)=>await new Promise(async p=>{var _,w;const h=Re(),m=JSON.parse(JSON.stringify(((_=e.unref(o))==null?void 0:_.params)??((w=h.getChartData)==null?void 0:w.params))),y=JSON.parse((m==null?void 0:m.groupArgsJson)??"[]"),g=JSON.parse((m==null?void 0:m.aggArgsJson)??"[]");if(f){const C=y.find(S=>S.comment==f);C&&(m.groupArgsJson=JSON.stringify([C]))}if(["2"].includes(c)&&u){const C=g.find(S=>S.showLabel==u);C&&(m.aggArgsJson=JSON.stringify([C]))}const b=await t.$baseHttp.post("/api/ace-data-center/model-indicators/debug",m);p(b.data.records)}),i=async(c,f,u)=>await new Promise(async p=>{let h=f;const m=Re();if(c){const y=await t.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${c}`);if(!y)return;u=br(y.data.echartsConfig),h=y.data.echartsType}n.value=h,setTimeout(async()=>{var y,g,b,_,w,C,S,x,E,V,$,B,R,T,k,O,N,D,I,z,M,j,F,G,H,X,J,U,W,Q,re,ne,Y,Z,ye,ie,ce,oe,_e,Ce,ue,Ee;switch(h){case"1":{const{lineConfig:be,customSeriesData:Ve,init:Ne}=ni();Ve.value=((y=e.unref(u))==null?void 0:y.customSeriesData)??{},r.value=u??br(Or(be)),delete r.value.legend.icon,e.unref(r).dataShow.x=((g=u==null?void 0:u.dataShow)==null?void 0:g.x)??((_=(b=m.getChartData)==null?void 0:b.x[0])==null?void 0:_.comment),e.unref(r).dataShow.y=(((w=e.unref(o))==null?void 0:w.y)??((C=m.getChartData)==null?void 0:C.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"2":{const{pieConfig:be,customSeriesData:Ve,init:Ne}=Us();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((S=u==null?void 0:u.dataShow)==null?void 0:S.x)??((E=(x=m.getChartData)==null?void 0:x.x[0])==null?void 0:E.comment),e.unref(r).dataShow.y=((V=u==null?void 0:u.dataShow)==null?void 0:V.y)??((B=($=m.getChartData)==null?void 0:$.y[0])==null?void 0:B.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x,e.unref(r).dataShow.y),Ne(e.unref(r))}break;case"3":{const{barConfig:be,customSeriesData:Ve,init:Ne}=Ps();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((R=u==null?void 0:u.dataShow)==null?void 0:R.x)??((k=(T=m.getChartData)==null?void 0:T.x[0])==null?void 0:k.comment),e.unref(r).dataShow.y=(((O=e.unref(o))==null?void 0:O.y)??((N=m.getChartData)==null?void 0:N.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"4":{const{radarConfig:be,customSeriesData:Ve,init:Ne}=Hs();Ve.value=((D=e.unref(u))==null?void 0:D.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((I=u==null?void 0:u.dataShow)==null?void 0:I.x)??((M=(z=m.getChartData)==null?void 0:z.x[0])==null?void 0:M.comment),e.unref(r).dataShow.y=(((j=e.unref(o))==null?void 0:j.y)??((F=m.getChartData)==null?void 0:F.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"5":{const{barsLinesConfig:be,customSeriesData:Ve,init:Ne}=Ws();Ve.value=((G=e.unref(u))==null?void 0:G.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((H=u==null?void 0:u.dataShow)==null?void 0:H.x)??((J=(X=m.getChartData)==null?void 0:X.x[0])==null?void 0:J.comment),e.unref(r).dataShow.y=(((U=e.unref(o))==null?void 0:U.y)??((W=m.getChartData)==null?void 0:W.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"6":{const{scatterCfg:be,customSeriesData:Ve,init:Ne}=Gs();Ve.value=((Q=e.unref(u))==null?void 0:Q.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((re=u==null?void 0:u.dataShow)==null?void 0:re.x)??((Y=(ne=m.getChartData)==null?void 0:ne.x[0])==null?void 0:Y.comment),e.unref(r).dataShow.y=(((Z=e.unref(o))==null?void 0:Z.y)??((ye=m.getChartData)==null?void 0:ye.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"7":{const{numberConfig:be,customSeriesData:Ve,init:Ne}=Xh();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.y=(((ie=e.unref(o))==null?void 0:ie.y)??((ce=m.getChartData)==null?void 0:ce.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h),Ne(e.unref(r))}break;case"8":{const{customSeriesData:be,tableConfig:Ve,init:Ne}=oi();r.value=u??br(Or(Ve)),be.value=((oe=e.unref(u))==null?void 0:oe.customSeriesData)??{},e.unref(r).dataShow.y=[...(((_e=e.unref(o))==null?void 0:_e.x)??((Ce=m.getChartData)==null?void 0:Ce.x)).map(we=>we.comment),...(((ue=e.unref(o))==null?void 0:ue.y)??((Ee=m.getChartData)==null?void 0:Ee.y)).map(we=>we.showLabel)],e.unref(r).dataset.source=await a(h),Ne(e.unref(r))}break}if(window.echartCustomOps=e.toRaw(e.unref(r)),e.unref(r).tooltip){const be=e.unref(r).custom;be&&(r.value.tooltip.valueFormatter=Ve=>`${be.prefix??""}${Number(Ve).toFixed(be.toFixed)}${be.suffix??""}`)}e.unref(r).dataset.temp_source=JSON.parse(JSON.stringify(r.value.dataset.source)),p(r.value)},100)});return{option:r,chartDataParams:o,chartType:n,setChartData:a,formatChart:i,getModelIndicatorsData:async(c,f,u)=>{await new Promise(async p=>{var C;const h=Re(),{dynamicSearchFormat:m,dynamicSearchParams:y}=t.$globalHooks.useDynamicSearch();let g;g=await t.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${c}`);const b=JSON.parse(g.data.sortArgsJson??"{}"),_=Object.keys(e.unref(b)).map(S=>({field:S,type:b[S]=="ascending"?"asc":"desc"}));h.setChartData({x:JSON.parse(g.data.groupArgsJson),y:JSON.parse(g.data.aggArgsJson),params:{aggArgsJson:g.data.aggArgsJson,groupArgsJson:g.data.groupArgsJson,sortArgsJson:JSON.stringify(_),params:y(m(JSON.parse(u??((C=e.unref(g))==null?void 0:C.formConfJson)??"[]"))),pageSize:g.data.pageSize,modelIndicatorsId:g.data.id,modelId:g.data.modelId}});const w=g.data.echarts.find(S=>S.type==f);await i(w==null?void 0:w.code),p(w==null?void 0:w.code)})},changeChartSeries:()=>{var c,f,u,p,h,m,y;switch(e.unref(n)){case"1":{const{customSeriesData:g,init:b}=ni();g.value=((c=e.unref(r))==null?void 0:c.customSeriesData)??{},b(e.unref(r))}break;case"2":{const{customSeriesData:g,init:b}=Us();g.value=((f=e.unref(r))==null?void 0:f.customSeriesData)??{},b(e.unref(r))}break;case"3":{const{customSeriesData:g,init:b}=Ps();g.value=((u=e.unref(r))==null?void 0:u.customSeriesData)??{},b(e.unref(r))}break;case"4":{const{customSeriesData:g,init:b}=Hs();g.value=((p=e.unref(r))==null?void 0:p.customSeriesData)??{},b(e.unref(r))}break;case"5":{const{customSeriesData:g,init:b}=Ws();g.value=((h=e.unref(r))==null?void 0:h.customSeriesData)??{},b(e.unref(r))}break;case"6":{const{customSeriesData:g,init:b}=Gs();g.value=((m=e.unref(r))==null?void 0:m.customSeriesData)??{},b(e.unref(r))}break;case"7":{const{init:g}=Xh();g(e.unref(r))}break;case"8":{const{customSeriesData:g,init:b}=oi();g.value=((y=e.unref(r))==null?void 0:y.customSeriesData)??{},b(e.unref(r))}break}},setSingleValue:c=>{const f=e.unref(r),u=e.unref(r).customSeriesData[c]??{};return((u==null?void 0:u.prefix)??"")+f.dataset.source.reduce((p,h)=>p+(h[c]?Number(h[c]):0),0).toFixed(u.toFixed??0)+(u.suffix??"")}}}const C$={key:1,class:"flex w-full h-full items-center justify-center"},S$=e.defineComponent({__name:"render",props:{config:{default:()=>({})}},setup(t){const r=t,{proxy:n}=e.getCurrentInstance(),o=Re(),{dynamicSearchFormat:a,dynamicSearchParams:i}=n.$globalHooks.useDynamicSearch(),{option:l,formatChart:s,chartDataParams:d}=mt();if(r.config.chartId&&r.config.indicatorsId){const{indicatorsId:f,chartType:u}=r.config;n.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${f}`).then(async p=>{const h=JSON.parse(p.data.sortArgsJson??"{}"),m=Object.keys(e.unref(h)).map(y=>({field:y,type:h[y]=="ascending"?"asc":"desc"}));d.value={x:JSON.parse(p.data.groupArgsJson),y:JSON.parse(p.data.aggArgsJson),params:{aggArgsJson:p.data.aggArgsJson,groupArgsJson:p.data.groupArgsJson,sortArgsJson:JSON.stringify(m),modelIndicatorsId:f,params:i(a(JSON.parse(p.data.formConfJson??"[]"))),pageSize:p.data.pageSize,modelId:p.data.modelId}},o.tempChartData[r.config.id]={params:d.value,customize:r.config.customize},o.setChartData(d.value),s("",u,{...r.config.customize,id:r.config.id})})}const c=e.computed(()=>Yh[r.config.type]);return(f,u)=>{var m,y;const p=e.resolveComponent("AppCustomChart"),h=e.resolveComponent("AppLoading");return r.config.chartId?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[((y=(m=e.unref(l))==null?void 0:m.dataset)==null?void 0:y.source.length)>0?(e.openBlock(),e.createBlock(p,{key:0,option:r.config.customize,chartType:r.config.chartType,maxHeight:r.config.h-10+"px"},null,8,["option","chartType","maxHeight"])):(e.openBlock(),e.createElementBlock("div",C$,[e.createVNode(h,{size:"80"})]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(c)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{key:0,ref:"componentRef",config:r.config},null,8,["config"])):e.createCommentVNode("",!0)],64))}}}),Rz="",qh=Be(S$,[["__scopeId","data-v-f33952d3"]]),x$=t=>(e.pushScopeId("data-v-30e076ea"),t=t(),e.popScopeId(),t),v$=["id","onDblclick","onMousedown","onClick"],E$={key:0,class:"absolute -right-2 -top-2 w-8 h-8 bg-blue-500 flex items-center justify-center rounded-full"},V$=[x$(()=>e.createElementVNode("i",{class:"ri-lock-line text-base text-white"},null,-1))],k$={key:1,class:"tool absolute left-full whitespace-nowrap text-xs ml-4"},N$=["onClick"],$$={key:1,class:"absolute w-full h-full"},D$=e.defineComponent({__name:"main",setup(t){e.useCssVars(N=>({"2a2debb1":e.unref(u)}));const{proxy:r}=e.getCurrentInstance(),{chartJsonFormat:n}=r.$globalUtils,o=Re(),{stageWidth:a,stageHeight:i}=o.getStage,l=document.body,s=e.ref(null),d=fb("Shift"),c=e.computed(()=>o.targetsWidget.length===1?na(o.targetsWidget[0]):null),f=[{label:"置于顶层",clickFunc:N=>{N.z=o.getWidgetList.length,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,I)=>{D.z=o.getWidgetList.length-1-I}),o.sortWidgetList()}},{label:"置于底层",clickFunc:N=>{N.z=1,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,I)=>{D.z=o.getWidgetList.length-I}),o.sortWidgetList()}}],u=e.computed(()=>.8/o.getScale),p=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),h=(N,D)=>{if(Array.isArray(N)){if(N.length===0){o.setTargetWidget([]);return}o.setTargetWidget(N.filter(z=>z.className.indexOf("locked")==-1).map(z=>na(z)));return}const I=na(N);!I||o.targetsWidget.includes(I)||N.locked||(d.value===!0?o.setTargetWidget([...o.getTargetWidget.filter(z=>z.className.indexOf("locked")==-1),I]):o.setTargetWidget([I]),e.nextTick(()=>{D&&e.nextTick(()=>{var z;return(z=e.unref(s))==null?void 0:z.dragStart(D)})}))},m=N=>{const D=B(e.unref(c));D!=null&&D.locked&&N.stopDrag(),console.log("开始拖拽",N)},y=N=>{console.log("拖拽中",N),N.target.style.transform=N.transform;const[D,I]=N.translate;o.setSketchRuleLine([D],[I]);const z=B(e.unref(c));z&&(z.x=Math.floor(N.translate[0]),z.y=Math.floor(N.translate[1]))},g=N=>{console.log("拖拽结束",N),o.clearSketchRuleLine()},b=N=>{console.log("开始组拖拽",N)},_=N=>{console.log("组拖拽中",N),N.events.forEach(D=>{D.target.style.transform=D.transform})},w=N=>{console.log("组拖拽完毕",N),N.events.forEach(D=>{const I=B(D.target);!I||!D.lastEvent||(I.x=Math.floor(D.lastEvent.translate[0]),I.y=Math.floor(D.lastEvent.translate[1]))}),o.clearSketchRuleLine()},C=N=>{console.log("开始组修改大小",N)},S=N=>{console.log("组修改大小中",N),N.events.forEach(D=>{D.target.style.transform=D.drag.transform,D.target.style.width=`${D.width}px`,D.target.style.height=`${D.height}px`;const I=B(D.target);I&&(I.x=Math.floor(D.drag.translate[0]),I.y=Math.floor(D.drag.translate[1]),I.w=D.drag.width,I.h=D.drag.height)})},x=N=>{console.log("修改大小结束",N),o.clearSketchRuleLine()},E=N=>{const D=B(e.unref(c));D!=null&&D.locked&&N.stopDrag(),console.log("开始改变大小",N)},V=N=>{console.log("改变中",N),N.target.style.transform=N.drag.transform,N.target.style.width=`${N.width}px`,N.target.style.height=`${N.height}px`;const D=B(N.target);if(!D)return;D.x=Math.floor(N.drag.translate[0]),D.y=Math.floor(N.drag.translate[1]),D.w=N.drag.width,D.h=N.drag.height;const[I,z]=N.drag.translate;o.setSketchRuleLine([I],[z])};function $(N){console.log("改变结束",N),o.clearSketchRuleLine()}r.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),o.setWidgetList([]),o.setTargetWidget([]),o.clearSketchRuleLine()}),r.$baseEventBus.on("update-rect",()=>{var N,D;console.log("更新画布"),(N=s.value)==null||N.updateTarget(),(D=s.value)==null||D.updateRect()}),r.$baseEventBus.on("change-align",N=>{e.nextTick(()=>{var z;if(console.log("修改居中方式"),!o.targetsWidget.length)return;const D=s.value.getRect(),I=s.value.getMoveables();if(I.length<=1){const M={};N=="left"&&(M.x=0),N=="right"&&(M.x=a-D.width),N=="top"&&(M.y=0),N=="bottom"&&(M.y=i-D.height),N=="middle"&&(M.y=i/2-D.height/2),N=="center"&&(M.x=a/2-D.width/2),I[0].request("draggable",M,!0);const j=B(I[0].props.target);if(!j)return;Object.keys(M).forEach(F=>{j[F]=M[F]})}else switch(N){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const M=Math.max.apply(Math,D.children.map(F=>F.top+F.height)),j=Math.max.apply(Math,D.children.map(F=>F.left+F.width));I.forEach((F,G)=>{const H={};N=="left"&&(H.x=D.left),N=="right"&&(H.x=j-D.children[G].width),N=="top"&&(H.y=D.top),N=="bottom"&&(H.y=M-D.children[G].height),N=="middle"&&(H.y=D.top+D.height/2-D.children[G].height/2),N=="center"&&(H.x=D.left+D.width/2-D.children[G].width/2),F.request("draggable",H,!0);const X=B(F.props.target);X&&Object.keys(H).forEach(J=>{X[J]=H[J]})}),o.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const M=N=="verticalAround"?"top":"left",j=N=="verticalAround"?"height":"width";let F=D[M];const G=(D[j]-D.children.reduce((H,X)=>H+X[j],0))/(I.length-1);I.sort((H,X)=>H.state[M]-X.state[M]),I.forEach(H=>{const X=H.getRect(),J={};M=="top"&&(J.y=F),M=="left"&&(J.x=F),H.request("draggable",J,!0);const U=B(H.props.target);U&&(Object.keys(J).forEach(W=>{U[W]=J[W]}),F+=X[j]+G)}),o.clearSketchRuleLine()}break}(z=s.value)==null||z.updateRect()})});const B=N=>o.getWidgetList.find(D=>D.id==(N==null?void 0:N.id)),R=N=>{N.preventDefault(),N.stopPropagation();const D=N.dataTransfer.getData("dragComponent");if(D){let I=JSON.parse(D);I.chartId&&(I.customize=n(I.customize)),console.log(I);const{w:z,h:M}=I;let j=N.offsetX-z/2,F=N.offsetY-M/2;j<=0?j=0:j+z>=a&&(j=a-z),F<=0?F=0:F+M>=i&&(F=i-M),o.setWidgetList([{...I,x:j,y:F,z:o.getWidgetList.length+1},...o.getWidgetList])}},T=e.ref([]),k=()=>{const N=(I,z)=>{const M=cb(I,j=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(j.preventDefault(),j.stopPropagation(),z(j))},{eventName:"keydown"});T.value.push(M)},D=I=>navigator.userAgent.toLowerCase().includes("macintosh")?I.metaKey:I.ctrlKey;N(["Backspace","Delete"],I=>{console.log("删除触发",I),o.targetsWidget.length&&o.delWidgetItem(o.getTargetWidget.map(z=>z.id))}),N(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],I=>{if(!o.targetsWidget.length)return;console.log("触发移动",I);let z=0,M=0;I.key=="ArrowLeft"&&(z=-2),I.key=="ArrowRight"&&(z=2),I.key=="ArrowUp"&&(M=-2),I.key=="ArrowDown"&&(M=2),I.shiftKey&&(z*=10,M*=10),e.nextTick(()=>{s.value.getMoveables().forEach(F=>{const G=B(F.props.target);!G||G.locked||(G.x+z<0?G.x=0:G.x+z>a-G.w?G.x=a-G.w:G.x+=z,G.y+M<0?G.y=0:G.y+M>i-G.h?G.y=i-G.h:G.y+=M)}),e.nextTick(()=>{var F;return(F=s.value)==null?void 0:F.updateRect()})})}),N(["c"],I=>{console.log("复制",I),D(I)&&o.getTargetWidget.length&&o.copyWidgetItem(o.getTargetWidget.map(z=>z.id))}),N(["v"],I=>{console.log("粘贴",I),D(I)&&o.getPasteWidget.length&&o.pasteWidgetItem()})},O=e.ref(null);return e.nextTick(()=>{k(),O.value=new uS({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),e.unref(O).on("dragStart",N=>{o.setRightPannel(!1),console.log("开始全选拖拽",N)}),e.unref(O).on("dragEnd",N=>{console.log("全选拖拽结束",N)}),e.unref(O).on("select",N=>{console.log("选中结果",N),N.added.forEach(D=>{D.className.indexOf("loccked")||D.classList.add("selected")}),N.removed.forEach(D=>{D.classList.remove("selected")}),h(N.selected)}),e.unref(O).on("selectEnd",N=>{console.log("选中结束",N),h(N.selected)})}),e.onBeforeUnmount(()=>{T.value.forEach(N=>N()),e.unref(O)&&e.unref(O).destroy()}),(N,D)=>(e.openBlock(),e.createBlock(Fb,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full relative",onDrop:D[1]||(D[1]=I=>R(I)),onDragover:D[2]||(D[2]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).getWidgetList,I=>{var z,M;return e.openBlock(),e.createElementBlock("div",{key:I.id,class:e.normalizeClass(["absolute",{"drag-item":!0,locked:I.locked,selected:e.unref(o).widgetHoverIds.includes(I.id),active:((z=e.unref(c))==null?void 0:z.id)==I.id}]),id:I.id,style:e.normalizeStyle(e.unref(rd)(I)),onDblclick:e.withModifiers(j=>I.locked=!I.locked,["stop"]),onMousedown:j=>h(I,j),onClick:e.withModifiers(j=>h(I,j),["stop"])},[e.unref(o).createLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[I.locked?(e.openBlock(),e.createElementBlock("div",E$,V$)):e.createCommentVNode("",!0),((M=e.unref(c))==null?void 0:M.id)==I.id&&!I.locked?(e.openBlock(),e.createElementBlock("div",k$,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,j=>e.createElementVNode("div",{key:I.label,onClick:e.withModifiers(F=>j.clickFunc(I),["stop"]),onDblclick:D[0]||(D[0]=e.withModifiers(()=>{},["prevent","stop"])),class:"h-6 bg-color-primary text-white w-16 flex items-center justify-center rounded-sm cursor-pointer mb-2"},e.toDisplayString(j.label),41,N$)),64))])):e.createCommentVNode("",!0)],64)),I.type=="iframe"?(e.openBlock(),e.createElementBlock("div",$$)):e.createCommentVNode("",!0),e.createVNode(qh,{config:I},null,8,["config"])],46,v$)}),128)),e.createVNode(e.unref(KC),{rootContainer:e.unref(l),ref_key:"moveableRef",ref:s,origin:!1,stopPropagation:!0,target:e.unref(o).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:p(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:m,onDrag:y,onDragEnd:g,onResizeStart:E,onResize:V,onResizeEnd:$,onDragGroupStart:b,onDragGroup:_,onDragGroupEnd:w,onResizeGroupStart:C,onResizeGroup:S,onResizeGroupEnd:x},null,8,["rootContainer","target","elementGuidelines"])],32)]),_:1}))}}),Az="",B$=Be(D$,[["__scopeId","data-v-30e076ea"]]),xt=e.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:r}){const n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=e.ref(n.modelValue=="transparent"?"":n.modelValue),l=r;return e.watch(i,s=>{l("update:modelValue",s||"transparent")}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.showInput?(e.openBlock(),e.createBlock(e.unref(v.ElInput),{key:0,value:e.unref(i),class:"mr-1",style:{width:"80%"}},null,8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElColorPicker),{modelValue:e.unref(i),"onUpdate:modelValue":d[0]||(d[0]=c=>e.isRef(i)?i.value=c:null),predefine:e.unref(a),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),T$={class:"flex h-10 items-center p-2"},O$=e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"},null,-1),Qt=e.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",T$,[O$,e.createTextVNode(" "+e.toDisplayString(r.title),1)]),e.renderSlot(r.$slots,"default")],64))}}),Jh=t=>(e.pushScopeId("data-v-4ead6d2f"),t=t(),e.popScopeId(),t),I$=["src"],z$={key:1,class:"pt-4 pb-4"},R$=[Jh(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Jh(()=>e.createElementVNode("i",{class:"ri-image-add-line text-6xl"},null,-1))],M$=e.defineComponent({__name:"stageSetting",setup(t){const r=Re(),{proxy:n}=e.getCurrentInstance(),{resetUrl:o}=n.$globalUtils,a=async i=>{const l=new FormData;l.append("file",i.file);const s=await n.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",l,{headers:{"Content-Type":"multipart/form-data",loading:!0}});s&&(r.widgetConfg.config.backgroundImage=s.data.link)};return(i,l)=>(e.openBlock(),e.createBlock(e.unref(v.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"整体布局"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"尺寸"},{default:e.withCtx(()=>[e.createTextVNode("1920 * 1080")]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景图"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElUpload),{drag:"",limit:1,"http-request":a,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(r).widgetConfg.config.backgroundImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"max-h-40 object-contain",src:e.unref(o)(e.unref(r).widgetConfg.config.backgroundImage)},null,8,I$),e.createElementVNode("i",{class:"ri-close-circle-line absolute right-4 top-4 text-xl",onClick:l[0]||(l[0]=e.withModifiers(s=>e.unref(r).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(e.openBlock(),e.createElementBlock("div",z$,R$))]),_:1})]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).widgetConfg.config.backgroundColor,"onUpdate:modelValue":l[1]||(l[1]=s=>e.unref(r).widgetConfg.config.backgroundColor=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),jz="",A$=Be(M$,[["__scopeId","data-v-4ead6d2f"]]),er=e.defineComponent({__name:"decorationSetting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"主颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.decorationColor1,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.decorationColor1=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"副颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.decorationColor2,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.decorationColor2=a)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(r).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:0,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(r).customize.reverse,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.reverse=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:1,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.duration,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.duration=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)}}),ve=e.defineComponent({__name:"setting",setup(t){const{proxy:r}=e.getCurrentInstance(),n=e.inject("widgetConfig");return(o,a)=>e.unref(n)?(e.openBlock(),e.createBlock(e.unref(v.ElForm),{key:0,"label-position":"left",size:"small","label-width":"100px",class:"design-form"},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).name,"onUpdate:modelValue":a[0]||(a[0]=i=>e.unref(n).name=i)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(Qt,{title:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).w,"onUpdate:modelValue":a[1]||(a[1]=i=>e.unref(n).w=i),onBlur:a[2]||(a[2]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).h,"onUpdate:modelValue":a[3]||(a[3]=i=>e.unref(n).h=i),onBlur:a[4]||(a[4]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"x轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).x,"onUpdate:modelValue":a[5]||(a[5]=i=>e.unref(n).x=i),onBlur:a[6]||(a[6]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"y轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).y,"onUpdate:modelValue":a[7]||(a[7]=i=>e.unref(n).y=i),onBlur:a[8]||(a[8]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)}}),L$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),F$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),j$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),P$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),U$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),W$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),G$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),H$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Y$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),X$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),q$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),zt=e.defineComponent({__name:"borderSetting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"基础"},{default:e.withCtx(()=>[Object.keys(e.unref(r).customize).includes("title")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:0,label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(r).customize.title,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.title=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("titleWidth")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:1,label:"标题宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.titleWidth,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.titleWidth=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElFormItem),{label:"边框主颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.borderMainColor,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.borderMainColor=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"边框副颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.borderSecondaryColor,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.borderSecondaryColor=a)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(r).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:2,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(r).customize.reverse,"onUpdate:modelValue":o[4]||(o[4]=a=>e.unref(r).customize.reverse=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:3,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.duration,"onUpdate:modelValue":o[5]||(o[5]=a=>e.unref(r).customize.duration=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElFormItem),{label:"背景"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.backgroundColor,"onUpdate:modelValue":o[6]||(o[6]=a=>e.unref(r).customize.backgroundColor=a)},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),J$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),K$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Z$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Q$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),e2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),t2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),r2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),n2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),o2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),a2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),i2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),l2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),s2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),c2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>{const a=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-input-number");return e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(a,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(r).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(r).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(r).customize.width,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(r).customize.width=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),d2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"地址配置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(r).customize.url,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.url=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Kh=t=>(e.pushScopeId("data-v-7c820cff"),t=t(),e.popScopeId(),t),f2={class:"p-3"},u2=["src"],p2={key:1,class:"pt-4 pb-4"},h2=[Kh(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Kh(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],m2=e.defineComponent({__name:"setting",setup(t){const r=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:n}=e.getCurrentInstance(),{resetUrl:o}=n.$globalUtils,a=e.inject("widgetConfig"),i=async l=>{const s=new FormData;s.append("file",l.file);const d=await n.$baseHttp("/api/ace-api/blade-resource/oss/endpoint/put-file",s,{headers:{"Content-Type":"multipart/form-data",loading:!0}});d&&(a.value.customize.url=d.data.link)};return(l,s)=>e.unref(a)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"图片配置"},{default:e.withCtx(()=>[e.createElementVNode("div",f2,[e.createVNode(e.unref(v.ElUpload),{drag:"",limit:1,"http-request":i,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(a).customize.url?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-h-40",src:e.unref(o)(e.unref(a).customize.url)},null,8,u2)):(e.openBlock(),e.createElementBlock("div",p2,h2))]),_:1})]),e.createVNode(e.unref(v.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(a).customize.url,"onUpdate:modelValue":s[0]||(s[0]=d=>e.unref(a).customize.url=d)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"展示方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(a).customize.fit,"onUpdate:modelValue":s[1]||(s[1]=d=>e.unref(a).customize.fit=d)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,d=>e.createVNode(e.unref(v.ElOption),{key:d.value,label:d.label,value:d.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),gR="",g2=Object.freeze(Object.defineProperty({__proto__:null,default:Be(m2,[["__scopeId","data-v-7c820cff"]])},Symbol.toStringTag,{value:"Module"})),y2=e.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),Ys=e.defineComponent({__name:"text",setup(t){const r=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],n=e.inject("widgetConfig");return(o,a)=>e.unref(n)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.title,"onUpdate:modelValue":a[0]||(a[0]=i=>e.unref(n).customize.title=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.fontSize,"onUpdate:modelValue":a[1]||(a[1]=i=>e.unref(n).customize.fontSize=i)},{suffix:e.withCtx(()=>[e.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字权重"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.fontWeight,"onUpdate:modelValue":a[2]||(a[2]=i=>e.unref(n).customize.fontWeight=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字间距"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).customize.letterSpacing,"onUpdate:modelValue":a[3]||(a[3]=i=>e.unref(n).customize.letterSpacing=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字对齐方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(n).customize.textAlign,"onUpdate:modelValue":a[4]||(a[4]=i=>e.unref(n).customize.textAlign=i)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>e.createVNode(e.unref(v.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadioGroup),{modelValue:e.unref(n).customize.colorPosition,"onUpdate:modelValue":a[5]||(a[5]=i=>e.unref(n).customize.colorPosition=i)},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadio),{value:"top",label:"top"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(v.ElRadio),{value:"left",label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字渐变颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(n).customize.startColor,"onUpdate:modelValue":a[6]||(a[6]=i=>e.unref(n).customize.startColor=i),showInput:!1},null,8,["modelValue"]),y2,e.createVNode(xt,{modelValue:e.unref(n).customize.endColor,"onUpdate:modelValue":a[7]||(a[7]=i=>e.unref(n).customize.endColor=i),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),b2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),_2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadioGroup),{modelValue:e.unref(r).customize.colorPosition,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.colorPosition=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadio),{value:"bottom",label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(v.ElRadio),{value:"right",label:"right"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"边角宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.borderRadius,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.borderRadius=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.gradientColor0=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.gradientColor1=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),w2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),C2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),S2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>{const a=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-input-number");return e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(a,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(r).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(r).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(r).customize.height,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(r).customize.height=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),sr={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},x2={class:"flex w-full flex-col justify-start"},v2={key:0,class:"w-16 font-bold flex items-center"},E2=e.createElementVNode("span",{class:"bg-color-primary mr-2 w-1 h-4"},null,-1),V2={class:"flex-1 flex-wrap flex"},k2=e.createElementVNode("div",{class:"h-4"},null,-1),fe=e.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",x2,[r.name?(e.openBlock(),e.createElementBlock("div",v2,[E2,e.createTextVNode(" "+e.toDisplayString(r.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",V2,[e.renderSlot(r.$slots,"default")])]),k2],64))}}),N2={class:"w-1/2 pr-2 mt-2"},$2={class:"text-xs mb-2"},P=e.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",N2,[e.createElementVNode("div",$2,e.toDisplayString(r.name),1),e.renderSlot(r.$slots,"default")]))}}),D2=e.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(t){const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor,a=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return e.watch(()=>r.option.custom,i=>{window.echartCustomOps.custom=i,r.option.tooltip&&(r.option.tooltip.valueFormatter=l=>{const s=window.echartCustomOps.custom;return`${s.prefix??""}${Number(l).toFixed(s.toFixed)}${s.suffix??""}`}),r.option.yAxis&&(r.option.yAxis.axisLabel.formatter=`${i.prefix??""}{value}${i.suffix??""}`)},{deep:!0}),e.watch(()=>r.option.showScroll,i=>{if(i)r.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const l=r.option.series;r.option.series=[],r.option.direction="",setTimeout(()=>{delete r.option.dataZoom,r.option.series=l})}}),e.watch(()=>r.option.direction,i=>{r.option.dataZoom.forEach((l,s)=>{i=="vertical"?l.yAxisIndex=[0]:delete l.yAxisIndex})}),(i,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.option.grid?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:0,title:"容器"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"左侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.left,"onUpdate:modelValue":l[0]||(l[0]=s=>i.option.grid.left=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"右侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.right,"onUpdate:modelValue":l[1]||(l[1]=s=>i.option.grid.right=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"上侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.top,"onUpdate:modelValue":l[2]||(l[2]=s=>i.option.grid.top=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"下侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.bottom,"onUpdate:modelValue":l[3]||(l[3]=s=>i.option.grid.bottom=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"自适应"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.grid.containLabel,"onUpdate:modelValue":l[4]||(l[4]=s=>i.option.grid.containLabel=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),[1,3,5].includes(i.type)?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:1,title:"滚动条"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.showScroll,"onUpdate:modelValue":l[5]||(l[5]=s=>i.option.showScroll=s)},null,8,["modelValue"])]),_:1})]),_:1}),i.option.showScroll?(e.openBlock(),e.createBlock(fe,{key:0,name:"参数"},{default:e.withCtx(()=>[e.createVNode(P,{name:"滚动条方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.direction,"onUpdate:modelValue":l[6]||(l[6]=s=>i.option.direction=s),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,s=>e.createVNode(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"范围结束值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.dataZoom[0].endValue,"onUpdate:modelValue":l[7]||(l[7]=s=>i.option.dataZoom[0].endValue=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"拖拽宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].handleSize,"onUpdate:modelValue":l[8]||(l[8]=s=>i.option.dataZoom[0].handleSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].width,"onUpdate:modelValue":l[9]||(l[9]=s=>i.option.dataZoom[0].width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].height,"onUpdate:modelValue":l[10]||(l[10]=s=>i.option.dataZoom[0].height=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"上"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].top,"onUpdate:modelValue":l[11]||(l[11]=s=>i.option.dataZoom[0].top=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"右"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].right,"onUpdate:modelValue":l[12]||(l[12]=s=>i.option.dataZoom[0].right=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"下"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].bottom,"onUpdate:modelValue":l[13]||(l[13]=s=>i.option.dataZoom[0].bottom=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"左"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].left,"onUpdate:modelValue":l[14]||(l[14]=s=>i.option.dataZoom[0].left=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":l[15]||(l[15]=s=>i.option.dataZoom[0].backgroundColor=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"选中范围颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].fillerColor,"onUpdate:modelValue":l[16]||(l[16]=s=>i.option.dataZoom[0].fillerColor=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].borderColor,"onUpdate:modelValue":l[17]||(l[17]=s=>i.option.dataZoom[0].borderColor=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),i.option.legend?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:2,title:"图例"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.legend.show,"onUpdate:modelValue":l[18]||(l[18]=s=>i.option.legend.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.legend.textStyle.color,"onUpdate:modelValue":l[19]||(l[19]=s=>i.option.legend.textStyle.color=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.textStyle.fontSize,"onUpdate:modelValue":l[20]||(l[20]=s=>i.option.legend.textStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"x轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.x,"onUpdate:modelValue":l[21]||(l[21]=s=>i.option.legend.x=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lengendX,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"y轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.y,"onUpdate:modelValue":l[22]||(l[22]=s=>i.option.legend.y=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lengendY,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.orient,"onUpdate:modelValue":l[23]||(l[23]=s=>i.option.legend.orient=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).orient,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.option.legend.icon?(e.openBlock(),e.createBlock(P,{key:0,name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.icon,"onUpdate:modelValue":l[24]||(l[24]=s=>i.option.legend.icon=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).shape,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(P,{name:"宽"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.itemWidth,"onUpdate:modelValue":l[25]||(l[25]=s=>i.option.legend.itemWidth=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"高"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.itemHeight,"onUpdate:modelValue":l[26]||(l[26]=s=>i.option.legend.itemHeight=s),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.xAxis?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:3,title:"x轴"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.show,"onUpdate:modelValue":l[27]||(l[27]=s=>i.option.xAxis.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.type,"onUpdate:modelValue":l[28]||(l[28]=s=>i.option.xAxis.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).category,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.xAxis.min,"onUpdate:modelValue":l[29]||(l[29]=s=>i.option.xAxis.min=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.xAxis.max,"onUpdate:modelValue":l[30]||(l[30]=s=>i.option.xAxis.max=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.position,"onUpdate:modelValue":l[31]||(l[31]=s=>i.option.xAxis.position=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).xposition,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.inverse,"onUpdate:modelValue":l[32]||(l[32]=s=>i.option.xAxis.inverse=s)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":l[33]||(l[33]=s=>i.option.xAxis.axisLabel.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.interval,"onUpdate:modelValue":l[34]||(l[34]=s=>i.option.xAxis.axisLabel.interval=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":l[35]||(l[35]=s=>i.option.xAxis.axisLabel.rotate=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.axisLabel.color,"onUpdate:modelValue":l[36]||(l[36]=s=>i.option.xAxis.axisLabel.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(P,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.xAxis.name,"onUpdate:modelValue":l[37]||(l[37]=s=>i.option.xAxis.name=s),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[38]||(l[38]=s=>i.option.xAxis.nameTextStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":l[39]||(l[39]=s=>i.option.xAxis.nameTextStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.splitLine.show,"onUpdate:modelValue":l[40]||(l[40]=s=>i.option.xAxis.splitLine.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[41]||(l[41]=s=>i.option.xAxis.splitLine.lineStyle.width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[42]||(l[42]=s=>i.option.xAxis.splitLine.lineStyle.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lineStyle,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[43]||(l[43]=s=>i.option.xAxis.splitLine.lineStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.yAxis?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:4,title:"y轴"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.show,"onUpdate:modelValue":l[44]||(l[44]=s=>i.option.yAxis.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.type,"onUpdate:modelValue":l[45]||(l[45]=s=>i.option.yAxis.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).category,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.yAxis.min,"onUpdate:modelValue":l[46]||(l[46]=s=>i.option.yAxis.min=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.yAxis.max,"onUpdate:modelValue":l[47]||(l[47]=s=>i.option.yAxis.max=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.position,"onUpdate:modelValue":l[48]||(l[48]=s=>i.option.yAxis.position=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).yposition,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.inverse,"onUpdate:modelValue":l[49]||(l[49]=s=>i.option.yAxis.inverse=s)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":l[50]||(l[50]=s=>i.option.yAxis.axisLabel.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.interval,"onUpdate:modelValue":l[51]||(l[51]=s=>i.option.yAxis.axisLabel.interval=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":l[52]||(l[52]=s=>i.option.yAxis.axisLabel.rotate=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.axisLabel.color,"onUpdate:modelValue":l[53]||(l[53]=s=>i.option.yAxis.axisLabel.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(P,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.yAxis.name,"onUpdate:modelValue":l[54]||(l[54]=s=>i.option.yAxis.name=s),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[55]||(l[55]=s=>i.option.yAxis.nameTextStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":l[56]||(l[56]=s=>i.option.yAxis.nameTextStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.splitLine.show,"onUpdate:modelValue":l[57]||(l[57]=s=>i.option.yAxis.splitLine.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[58]||(l[58]=s=>i.option.yAxis.splitLine.lineStyle.width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[59]||(l[59]=s=>i.option.yAxis.splitLine.lineStyle.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lineStyle,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[60]||(l[60]=s=>i.option.yAxis.splitLine.lineStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.custom&&![2].includes(i.type)?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:5,title:"显示"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.custom.prefix,"onUpdate:modelValue":l[61]||(l[61]=s=>i.option.custom.prefix=s),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.custom.suffix,"onUpdate:modelValue":l[62]||(l[62]=s=>i.option.custom.suffix=s),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:i.option.custom.toFixed,"onUpdate:modelValue":l[63]||(l[63]=s=>i.option.custom.toFixed=s),size:"small"},null,8,["modelValue"])]),_:1}),i.type==7?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.custom.fontSize,"onUpdate:modelValue":l[64]||(l[64]=s=>i.option.custom.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.custom.color,"onUpdate:modelValue":l[65]||(l[65]=s=>i.option.custom.color=s)},null,8,["predefine","modelValue"])]),_:1})],64)):e.createCommentVNode("",!0)]),_:1})]),_:1})):e.createCommentVNode("",!0)],64))}}),xR="",An=Be(D2,[["__scopeId","data-v-c167b28d"]]),B2={id:"sortable"},T2={class:"ml-2"},O2={class:"flex-1 flex justify-end"},I2=["onClick"],z2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),Zh=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:l}=mt(),{seriesItem:s,init:d,customSeriesData:c}=Ps(),f=e.ref(null),u=e.ref(JSON.parse(JSON.stringify(Object.values(c.value)[0]??s)));e.nextTick(()=>{f.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:m,oldIndex:y}){const g=n.option.dataShow.y,b=g.splice(y,1)[0];g.splice(m,0,b);const _=n.option.series.splice(y,1)[0];n.option.series.splice(m,0,_)}})}),e.onBeforeUnmount(()=>{var m;e.unref(f)&&((m=e.unref(f))==null||m.destroy())}),e.watch(u,()=>p(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{d(n.option,()=>{p()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await l(n.type,n.option.dataShow.x)});const p=()=>{const m=u.value,y=g=>{g.barWidth=m.barWidth,g.stack=m.stack,g.label.show=m.label.show,g.label.color=m.label.color,g.label.position=m.label.position,g.label.fontSize=m.label.fontSize,g.label.rotate=m.label.rotate,g.itemStyle.borderRadius=[m.borderRadiusNumber,m.borderRadiusNumber,0,0]};n.option.series.forEach(g=>{y(g)}),Object.keys(c.value).forEach(g=>{y(e.unref(c)[g])}),window.customSeriesData=c.value},h=m=>{const{hide:y}=n.option.dataShow;y.includes(m)?y.splice(y.findIndex(g=>g==m),1):y.push(m)};return(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:m.option,type:3},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).barWidth,"onUpdate:modelValue":y[0]||(y[0]=g=>e.unref(u).barWidth=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"堆栈"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).stack,"onUpdate:modelValue":y[1]||(y[1]=g=>e.unref(u).stack=g)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(u).borderRadiusNumber,"onUpdate:modelValue":y[2]||(y[2]=g=>e.unref(u).borderRadiusNumber=g),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":y[3]||(y[3]=g=>e.unref(u).label.show=g)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":y[4]||(y[4]=g=>e.unref(u).label.position=g),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,g=>e.createVNode(e.unref(v.ElOption),{key:g.value,label:g.label,value:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).label.rotate,"onUpdate:modelValue":y[5]||(y[5]=g=>e.unref(u).label.rotate=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":y[6]||(y[6]=g=>e.unref(u).label.fontSize=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).label.color,"onUpdate:modelValue":y[7]||(y[7]=g=>e.unref(u).label.color=g)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:m.option.dataShow.x,"onUpdate:modelValue":y[8]||(y[8]=g=>m.option.dataShow.x=g),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,g=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:g.comment,label:g.comment,value:g.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.option.dataShow.y,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"sort-item w-full"},[e.unref(c)[g]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(c)[g].itemStyle.color,"onUpdate:modelValue":_=>e.unref(c)[g].itemStyle.color=_},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(c)[g].itemStyle.color)+" ",1),e.createElementVNode("span",T2,e.toDisplayString(g),1),e.createElementVNode("div",O2,[e.createElementVNode("i",{onClick:_=>h(g),class:e.normalizeClass([m.option.dataShow.hide.includes(g)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,I2),z2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),R2={id:"sortable"},M2={class:"ml-2"},A2={class:"flex-1 flex justify-end"},L2=["onClick"],F2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),Qh=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=ni(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:y,oldIndex:g}){const b=n.option.dataShow.y,_=b.splice(g,1)[0];b.splice(y,0,_);const w=n.option.series.splice(g,1)[0];n.option.series.splice(y,0,w)}})}),e.onBeforeUnmount(()=>{var y;e.unref(u)&&((y=e.unref(u))==null||y.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const h=()=>{const y=JSON.parse(JSON.stringify(p.value)),g=b=>{Object.keys(y).forEach(_=>{_=="lineStyle"?Object.keys(b[_]).forEach(w=>{w!="color"&&(b[_][w]=y[_][w])}):b[_]=y[_]})};n.option.series.forEach(b=>{g(b)}),Object.keys(f.value).forEach(b=>{g(e.unref(f)[b])}),window.customSeriesData=f.value},m=y=>{const{hide:g}=n.option.dataShow;g.includes(y)?g.splice(g.findIndex(b=>b==y),1):g.push(y)};return(y,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:y.option,type:1},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).lineStyle.width,"onUpdate:modelValue":g[0]||(g[0]=b=>e.unref(p).lineStyle.width=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).lineStyle.type,"onUpdate:modelValue":g[1]||(g[1]=b=>e.unref(p).lineStyle.type=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,b=>e.createVNode(e.unref(v.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":g[2]||(g[2]=b=>e.unref(p).symbolSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).smooth,"onUpdate:modelValue":g[3]||(g[3]=b=>e.unref(p).smooth=b)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":g[4]||(g[4]=b=>e.unref(p).label.show=b)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":g[5]||(g[5]=b=>e.unref(p).label.position=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,b=>e.createVNode(e.unref(v.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":g[6]||(g[6]=b=>e.unref(p).label.rotate=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":g[7]||(g[7]=b=>e.unref(p).label.fontSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":g[8]||(g[8]=b=>e.unref(p).label.color=b)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:y.option.dataShow.x,"onUpdate:modelValue":g[9]||(g[9]=b=>y.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.option.dataShow.y,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,size:"small",predefine:e.unref(a),modelValue:e.unref(f)[b].lineStyle.color,"onUpdate:modelValue":w=>e.unref(f)[b].lineStyle.color=w},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",M2,e.toDisplayString(b),1),e.createElementVNode("div",A2,[e.createElementVNode("i",{onClick:w=>m(b),class:e.normalizeClass([y.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,L2),F2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),em=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],l=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Us(),u=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.watch(u,()=>p(),{deep:!0}),e.watch(()=>n.option.dataShow,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x),c(n.option,()=>{p()})},{deep:!0,immediate:n.immediate});const p=()=>{const h=u.value,m=y=>{Object.keys(h).forEach(g=>{y[g]=h[g]})};n.option.series.forEach(y=>{m(y)}),Object.keys(f.value).forEach(y=>{m(e.unref(f)[y])}),window.customSeriesData=f.value};return(h,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:h.option,type:2},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"饼图配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(P,{name:"半径1"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).radius[0],"onUpdate:modelValue":m[0]||(m[0]=y=>e.unref(u).radius[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"半径2"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).radius[1],"onUpdate:modelValue":m[1]||(m[1]=y=>e.unref(u).radius[1]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"距离1"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).center[0],"onUpdate:modelValue":m[2]||(m[2]=y=>e.unref(u).center[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"距离2"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).center[1],"onUpdate:modelValue":m[3]||(m[3]=y=>e.unref(u).center[1]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"南丁格尔图"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).roseType,"onUpdate:modelValue":m[4]||(m[4]=y=>e.unref(u).roseType=y)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":m[5]||(m[5]=y=>e.unref(u).label.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"引导线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).labelLine.show,"onUpdate:modelValue":m[6]||(m[6]=y=>e.unref(u).labelLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"展示类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.formatter,"onUpdate:modelValue":m[7]||(m[7]=y=>e.unref(u).label.formatter=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createVNode(e.unref(v.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":m[8]||(m[8]=y=>e.unref(u).label.position=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,y=>e.createVNode(e.unref(v.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{predefine:e.unref(a),modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":m[9]||(m[9]=y=>e.unref(u).label.fontSize=y),size:"small"},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).label.color,"onUpdate:modelValue":m[10]||(m[10]=y=>e.unref(u).label.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderRadius,"onUpdate:modelValue":m[11]||(m[11]=y=>e.unref(u).itemStyle.borderRadius=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderWidth,"onUpdate:modelValue":m[12]||(m[12]=y=>e.unref(u).itemStyle.borderWidth=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).itemStyle.borderColor,"onUpdate:modelValue":m[13]||(m[13]=y=>e.unref(u).itemStyle.borderColor=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:h.option.dataShow.x,"onUpdate:modelValue":m[14]||(m[14]=y=>h.option.dataShow.x=y),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,y=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:y.comment,label:y.comment,value:y.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:h.option.dataShow.y,"onUpdate:modelValue":m[15]||(m[15]=y=>h.option.dataShow.y=y),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.y,y=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:y.showLabel,label:y.showLabel,value:y.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),j2={id:"sortable"},P2={class:"ml-2"},U2={class:"flex-1 flex justify-end items-center"},W2={class:"cursor-pointer mr-2 text-xs"},G2=["onClick"],H2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),tm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:s}=mt(),{seriesLineItem:d,seriesBarItem:c,init:f,customSeriesData:u}=Ws(),p=e.ref(null),h=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(_=>_.type=="bar")??c))),m=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(_=>_.type=="line")??d)));e.nextTick(()=>{p.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:_,oldIndex:w}){const C=n.option.dataShow.y,S=C.splice(w,1)[0];C.splice(_,0,S);const x=n.option.series.splice(w,1)[0];n.option.series.splice(_,0,x)}})}),e.onBeforeUnmount(()=>{var _;e.unref(p)&&((_=e.unref(p))==null||_.destroy())}),e.watch([h,m],()=>g(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{f(n.option,()=>{g()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const y=(_,w)=>{var S,x,E,V;if(e.unref(u)[w].type!=_){const $=JSON.parse(JSON.stringify({..._=="line"?m.value:h.value})),B=((x=(S=e.unref(u)[w])==null?void 0:S.lineStyle)==null?void 0:x.color)??((V=(E=e.unref(u)[w])==null?void 0:E.itemStyle)==null?void 0:V.color);$[$!=null&&$.lineStyle?"lineStyle":"itemStyle"].color=B,u.value[w]=$,f(n.option,()=>{})}},g=()=>{const _=h.value,w=m.value,C=S=>{const x=JSON.parse(JSON.stringify(S.type=="bar"?_:w));Object.keys(x).forEach(E=>{["lineStyle","itemStyle"].includes(E)?Object.keys(S[E]).forEach(V=>{V=="borderRadius"?S[E][V]=[_.borderRadiusNumber,_.borderRadiusNumber,0,0]:V!="color"&&(S[E][V]=x[E][V])}):S[E]=x[E]})};n.option.series.forEach(S=>{C(S)}),Object.keys(u.value).forEach(S=>{C(e.unref(u)[S])}),window.customSeriesData=u.value},b=_=>{const{hide:w}=n.option.dataShow;w.includes(_)?w.splice(w.findIndex(C=>C==_),1):w.push(_)};return(_,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:_.option,type:5},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).barWidth,"onUpdate:modelValue":w[0]||(w[0]=C=>e.unref(h).barWidth=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(h).borderRadiusNumber,"onUpdate:modelValue":w[1]||(w[1]=C=>e.unref(h).borderRadiusNumber=C),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(h).label.show,"onUpdate:modelValue":w[2]||(w[2]=C=>e.unref(h).label.show=C)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(h).label.position,"onUpdate:modelValue":w[3]||(w[3]=C=>e.unref(h).label.position=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).label.rotate,"onUpdate:modelValue":w[4]||(w[4]=C=>e.unref(h).label.rotate=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).label.fontSize,"onUpdate:modelValue":w[5]||(w[5]=C=>e.unref(h).label.fontSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(h).label.color,"onUpdate:modelValue":w[6]||(w[6]=C=>e.unref(h).label.color=C)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).lineStyle.width,"onUpdate:modelValue":w[7]||(w[7]=C=>e.unref(m).lineStyle.width=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(m).lineStyle.type,"onUpdate:modelValue":w[8]||(w[8]=C=>e.unref(m).lineStyle.type=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).symbolSize,"onUpdate:modelValue":w[9]||(w[9]=C=>e.unref(m).symbolSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(m).smooth,"onUpdate:modelValue":w[10]||(w[10]=C=>e.unref(m).smooth=C)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(m).label.show,"onUpdate:modelValue":w[11]||(w[11]=C=>e.unref(m).label.show=C)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(m).label.position,"onUpdate:modelValue":w[12]||(w[12]=C=>e.unref(m).label.position=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).label.rotate,"onUpdate:modelValue":w[13]||(w[13]=C=>e.unref(m).label.rotate=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).label.fontSize,"onUpdate:modelValue":w[14]||(w[14]=C=>e.unref(m).label.fontSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(m).label.color,"onUpdate:modelValue":w[15]||(w[15]=C=>e.unref(m).label.color=C)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:_.option.dataShow.x,"onUpdate:modelValue":w[16]||(w[16]=C=>_.option.dataShow.x=C),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,C=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:C.comment,label:C.comment,value:C.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",j2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.option.dataShow.y,(C,S)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"sort-item w-full"},[e.unref(u)[C]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u)[C].type=="bar"?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(u)[C].itemStyle.color,"onUpdate:modelValue":x=>e.unref(u)[C].itemStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:1,predefine:e.unref(a),size:"small",modelValue:e.unref(u)[C].lineStyle.color,"onUpdate:modelValue":x=>e.unref(u)[C].lineStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):e.createCommentVNode("",!0),e.createElementVNode("span",P2,e.toDisplayString(C),1),e.createElementVNode("div",U2,[e.unref(u)[C]?(e.openBlock(),e.createBlock(e.unref(v.ElDropdown),{key:0,onCommand:x=>y(x,C)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownItem),{command:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状")]),_:1}),e.createVNode(e.unref(v.ElDropdownItem),{command:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",W2,e.toDisplayString(e.unref(u)[C].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:x=>b(C),class:e.normalizeClass([_.option.dataShow.hide.includes(C)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,G2),H2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Y2={id:"sortable"},X2={class:"ml-2"},q2={class:"flex-1 flex justify-end items-center"},J2={class:"cursor-pointer mr-2 text-xs"},K2=["onClick"],Z2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),rm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],l=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Gs(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:b}){const _=n.option.dataShow.y,w=_.splice(b,1)[0];_.splice(g,0,w);const C=n.option.series.splice(b,1)[0];n.option.series.splice(g,0,C)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const h=()=>{const g=JSON.parse(JSON.stringify(p.value)),b=_=>{Object.keys(g).forEach(w=>{w!="type"&&(["itemStyle"].includes(w)||(_[w]=g[w]))})};n.option.series.forEach(_=>{b(_)}),Object.keys(f.value).forEach(_=>{b(e.unref(f)[_])}),window.customSeriesData=f.value},m=(g,b)=>{const _=e.unref(f)[b];_.type!=g&&(_.type=g,c(n.option,()=>{}))},y=g=>{const{hide:b}=n.option.dataShow;b.includes(g)?b.splice(b.findIndex(_=>_==g),1):b.push(g)};return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:g.option,type:6},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"散点图配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":b[0]||(b[0]=_=>e.unref(p).symbolSize=_),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标域"},{default:e.withCtx(()=>[e.createVNode(P,{name:"粗细(0不显示)"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).markArea.itemStyle.borderWidth,"onUpdate:modelValue":b[1]||(b[1]=_=>e.unref(p).markArea.itemStyle.borderWidth=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).markArea.itemStyle.borderType,"onUpdate:modelValue":b[2]||(b[2]=_=>e.unref(p).markArea.itemStyle.borderType=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,_=>e.createVNode(e.unref(v.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":b[3]||(b[3]=_=>e.unref(p).label.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":b[4]||(b[4]=_=>e.unref(p).label.position=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,_=>e.createVNode(e.unref(v.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":b[5]||(b[5]=_=>e.unref(p).label.rotate=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":b[6]||(b[6]=_=>e.unref(p).label.fontSize=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":b[7]||(b[7]=_=>e.unref(p).label.color=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":b[8]||(b[8]=_=>g.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(_,w)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"sort-item w-full"},[e.unref(f)[_]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(f)[_].itemStyle.color,"onUpdate:modelValue":C=>e.unref(f)[_].itemStyle.color=C},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",X2,e.toDisplayString(_),1),e.createElementVNode("div",q2,[e.unref(f)[_]?(e.openBlock(),e.createBlock(e.unref(v.ElDropdown),{key:0,onCommand:C=>m(C,_)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownItem),{command:"scatter"},{default:e.withCtx(()=>[e.createTextVNode("普通")]),_:1}),e.createVNode(e.unref(v.ElDropdownItem),{command:"effectScatter"},{default:e.withCtx(()=>[e.createTextVNode("特效")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",J2,e.toDisplayString(e.unref(f)[_].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:C=>y(_),class:e.normalizeClass([g.option.dataShow.hide.includes(_)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,K2),Z2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Q2={id:"sortable"},eD={class:"flex-1 flex justify-end items-center"},tD=["onClick"],rD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),nm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){var y;const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Hs(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify((y=e.unref(f))!=null&&y.type?f.value:d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:b}){const _=n.option.dataShow.y,w=_.splice(b,1)[0];_.splice(g,0,w);const C=n.option.series.splice(b,1)[0];n.option.series.splice(g,0,C)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch([()=>n.option.dataShow.y,()=>n.option.dataShow.hide],()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x),c(n.option,()=>{h()})});const h=()=>{const g=p.value;Object.keys(n.option.series[0]).forEach(b=>{["areaStyle","label"].includes(b)&&(n.option.series[0][b]=g[b])}),f.value={...n.option.series[0],data:[]},window.customSeriesData=f.value},m=g=>{const{hide:b}=n.option.dataShow;b.includes(g)?b.splice(b.findIndex(_=>_==g),1):b.push(g)};return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:g.option,type:4},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"雷达图配置"},{default:e.withCtx(()=>{var _;return[e.createVNode(fe,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(P,{name:"背景"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.splitArea.show,"onUpdate:modelValue":b[0]||(b[0]=w=>g.option.radar.splitArea.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.splitLine.show,"onUpdate:modelValue":b[1]||(b[1]=w=>g.option.radar.splitLine.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.radar.shape,"onUpdate:modelValue":b[2]||(b[2]=w=>g.option.radar.shape=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,w=>e.createVNode(e.unref(v.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"坐标轴"},{default:e.withCtx(()=>[e.createVNode(P,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisLine.show,"onUpdate:modelValue":b[3]||(b[3]=w=>g.option.radar.axisLine.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"刻度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisTick.show,"onUpdate:modelValue":b[4]||(b[4]=w=>g.option.radar.axisTick.show=w)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"范围"},{default:e.withCtx(()=>[e.createVNode(P,{name:"最小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.radius[0],"onUpdate:modelValue":b[5]||(b[5]=w=>g.option.radar.radius[0]=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.radius[1],"onUpdate:modelValue":b[6]||(b[6]=w=>g.option.radar.radius[1]=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"偏移"},{default:e.withCtx(()=>[e.createVNode(P,{name:"x"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.center[0],"onUpdate:modelValue":b[7]||(b[7]=w=>g.option.radar.center[0]=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"y"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.center[1],"onUpdate:modelValue":b[8]||(b[8]=w=>g.option.radar.center[1]=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"指示器"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisName.show,"onUpdate:modelValue":b[9]||(b[9]=w=>g.option.radar.axisName.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:g.option.radar.axisName.fontSize,"onUpdate:modelValue":b[10]||(b[10]=w=>g.option.radar.axisName.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:g.option.radar.axisName.color,"onUpdate:modelValue":b[11]||(b[11]=w=>g.option.radar.axisName.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":b[12]||(b[12]=w=>e.unref(p).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":b[13]||(b[13]=w=>e.unref(p).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,w=>e.createVNode(e.unref(v.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":b[14]||(b[14]=w=>e.unref(p).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":b[15]||(b[15]=w=>e.unref(p).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":b[16]||(b[16]=w=>e.unref(p).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(_=e.unref(p))!=null&&_.type?(e.openBlock(),e.createBlock(fe,{key:0,name:"系列"},{default:e.withCtx(()=>[e.createVNode(P,{name:"背景透明度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).areaStyle.opacity,"onUpdate:modelValue":b[17]||(b[17]=w=>e.unref(p).areaStyle.opacity=w),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":b[18]||(b[18]=_=>g.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Q2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(_,w)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"sort-item w-full"},[e.createElementVNode("span",null,e.toDisplayString(_),1),e.createElementVNode("div",eD,[e.createElementVNode("i",{onClick:C=>m(_),class:e.normalizeClass([g.option.dataShow.hide.includes(_)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,tD),rD])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),nD={id:"sortable"},oD={class:"ml-2"},aD={class:"flex-1 flex justify-end items-center"},iD=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),lD=["onClick"],sD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),om=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Re();const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor;mt();const{init:a,tableConfig:i,customSeriesData:l}=oi(),s=e.ref(null),d=e.ref(JSON.parse(JSON.stringify(i)));e.nextTick(()=>{s.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const h=r.option.dataShow.y,m=h.splice(p,1)[0];h.splice(u,0,m);const y=r.option.series.splice(p,1)[0];r.option.series.splice(u,0,y)}})}),e.onBeforeUnmount(()=>{var u;e.unref(s)&&((u=e.unref(s))==null||u.destroy())}),e.watch(d,()=>c(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{a(r.option)},{deep:!0,immediate:r.immediate});const c=()=>{},f=u=>{const{hide:p=[]}=r.option.dataShow;p.includes(u)?p.splice(p.findIndex(h=>h==u),1):p.push(u),r.option.dataShow.hide=p};return(u,p)=>{const h=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(P,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",nD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(m,y)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"sort-item w-full"},[e.unref(l)[m]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].bgColor,"onUpdate:modelValue":g=>e.unref(l)[m].bgColor=g},null,8,["predefine","modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].color,"onUpdate:modelValue":g=>e.unref(l)[m].color=g},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0),e.createElementVNode("span",oD,e.toDisplayString(m),1),e.createElementVNode("div",aD,[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(v.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[iD]),default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(l)[m].prefix,"onUpdate:modelValue":g=>e.unref(l)[m].prefix=g,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(l)[m].suffix,"onUpdate:modelValue":g=>e.unref(l)[m].suffix=g,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(l)[m].toFixed,"onUpdate:modelValue":g=>e.unref(l)[m].toFixed=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(l)[m].fontSize,"onUpdate:modelValue":g=>e.unref(l)[m].fontSize=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:g=>f(m),class:e.normalizeClass([(u.option.dataShow.hide??[]).includes(m)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,lD),sD])]))),128))])]),_:1})]),_:1})]),_:1})}}}),cD={id:"sortable"},dD={class:"ml-2"},fD={class:"flex-1 flex justify-end items-center"},uD=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),pD=["onClick"],hD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),am=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Re();const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor;mt();const{init:a,tableConfig:i,customSeriesData:l}=oi(),s=e.ref(null),d=e.ref(JSON.parse(JSON.stringify(i)));e.nextTick(()=>{s.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const h=r.option.dataShow.y,m=h.splice(p,1)[0];h.splice(u,0,m);const y=r.option.series.splice(p,1)[0];r.option.series.splice(u,0,y)}})}),e.onBeforeUnmount(()=>{var u;e.unref(s)&&((u=e.unref(s))==null||u.destroy())}),e.watch(d,()=>c(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{a(r.option)},{deep:!0,immediate:r.immediate});const c=()=>{},f=u=>{const{hide:p}=r.option.dataShow;p.includes(u)?p.splice(p.findIndex(h=>h==u),1):p.push(u)};return(u,p)=>(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(P,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",cD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(h,m)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"sort-item w-full"},[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].color,"onUpdate:modelValue":y=>e.unref(l)[h].color=y},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",dD,e.toDisplayString(h),1),e.createElementVNode("div",fD,[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(v.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[uD]),default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(l)[h].prefix,"onUpdate:modelValue":y=>e.unref(l)[h].prefix=y,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(l)[h].suffix,"onUpdate:modelValue":y=>e.unref(l)[h].suffix=y,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(l)[h].toFixed,"onUpdate:modelValue":y=>e.unref(l)[h].toFixed=y,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:y=>f(h),class:e.normalizeClass([u.option.dataShow.hide.includes(h)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,pD),hD])]))),128))])]),_:1})]),_:1})]),_:1}))}}),Gt={};for(let t=0;t<=3;t+=1){let r=null;if(t==0&&(r=Object.assign({"../decoration/decoration1/setting.vue":L$,"../decoration/decoration10/setting.vue":F$,"../decoration/decoration11/setting.vue":j$,"../decoration/decoration12/setting.vue":P$,"../decoration/decoration2/setting.vue":U$,"../decoration/decoration3/setting.vue":W$,"../decoration/decoration4/setting.vue":G$,"../decoration/decoration5/setting.vue":H$,"../decoration/decoration6/setting.vue":Y$,"../decoration/decoration8/setting.vue":X$,"../decoration/decoration9/setting.vue":q$})),t==1&&(r=Object.assign({"../border/border1/setting.vue":J$,"../border/border10/setting.vue":K$,"../border/border11/setting.vue":Z$,"../border/border12/setting.vue":Q$,"../border/border13/setting.vue":e2,"../border/border2/setting.vue":t2,"../border/border3/setting.vue":r2,"../border/border4/setting.vue":n2,"../border/border5/setting.vue":o2,"../border/border6/setting.vue":a2,"../border/border7/setting.vue":i2,"../border/border8/setting.vue":l2,"../border/border9/setting.vue":s2})),t==2&&(r=Object.assign({"../basic/horizontal-line/setting.vue":c2,"../basic/iframe/setting.vue":d2,"../basic/img/setting.vue":g2,"../basic/number/setting.vue":b2,"../basic/square/setting.vue":_2,"../basic/text/setting.vue":w2,"../basic/time/setting.vue":C2,"../basic/vertical-line/setting.vue":S2})),t==3&&(Gt[3]=Zh,Gt[2]=em,Gt[1]=Qh,Gt[4]=nm,Gt[5]=tm,Gt[6]=rm,Gt[7]=om,Gt[8]=am),r)for(const[n,o]of Object.entries(r)){const a=n.split("/")[2];Gt[a]=o.default}}const im=t=>(e.pushScopeId("data-v-19259c54"),t=t(),e.popScopeId(),t),mD=im(()=>e.createElementVNode("div",{class:"flex h-10 items-center p-2"},[e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"}),e.createTextVNode(" 大屏设置 ")],-1)),gD=im(()=>e.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),yD={class:"p-2"},bD=e.defineComponent({__name:"rightPannel",setup(t){const r=Re(),n=e.ref({});e.provide("widgetConfig",n);const o=e.ref(""),a=e.computed(()=>r.targetsWidget.length===1?r.getWidgetList.find(l=>{var s;return l.id==((s=r.targetsWidget[0])==null?void 0:s.id)}):null);e.watch(a,l=>{i()});const i=()=>{if(!e.unref(a)){n.value={};return}const l=r.getWidgetList.find(s=>s.id==e.unref(a).id);e.unref(a).chartType&&(window.customSeriesData=l.customize.customSeriesData,r.setChartData(r.tempChartData[l.id].params)),n.value=l,o.value=""};return i(),(l,s)=>(e.openBlock(),e.createBlock(e.unref(v.ElScrollbar),{height:"100%"},{default:e.withCtx(()=>{var d,c;return[mD,gD,(d=e.unref(n))!=null&&d.chartType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(ve),e.createElementVNode("div",yD,[e.createVNode(e.unref(v.ElCollapse),{accordion:"",modelValue:e.unref(o),"onUpdate:modelValue":s[0]||(s[0]=f=>e.isRef(o)?o.value=f:null)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gt)[e.unref(n).chartType]),{key:e.unref(n).id,immediate:"",option:e.unref(n).customize,type:e.unref(n).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):e.unref(Gt)[(c=e.unref(n))==null?void 0:c.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gt)[e.unref(n).type]),{key:e.unref(n).id})):(e.openBlock(),e.createBlock(A$,{key:2}))]}),_:1}))}}),vR="",_D=Be(bD,[["__scopeId","data-v-19259c54"]]),wD={class:"ace-big-screen flex overflow-hidden flex-col"},CD={class:"h-10 top-pannel"},SD={class:"flex-1 flex relative"},xD={class:"left-pannel"},vD={class:"flex-1 p-2 overflow-hidden",id:"design-container"},ED={class:"relative w-full h-full"},VD={key:0,class:"right-pannel w-80"},kD=e.defineComponent({__name:"design",emits:["preview","save"],setup(t,{expose:r,emit:n}){const o=n,{proxy:a}=e.getCurrentInstance(),{chartJsonFormat:i}=a.$globalUtils,l=Re(),s=e.ref(!1),d=e.ref(""),c=e.ref("");return e.watch(s,u=>{u?document.getElementsByTagName("html")[0].className=l.theme:document.getElementsByTagName("html")[0].className=""}),r({init:async(u="")=>{if(c.value=u,d.value="大屏管理",l.widgetConfg={config:{},list:[]},l.clearSketchRuleLine(),l.setRightPannel(!1),u){const p=await a.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:u},headers:{loading:!0}});d.value=p.data.title,l.widgetConfg=i(p.data.config)}s.value=!0}}),(u,p)=>{const h=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(s),"onUpdate:modelValue":p[4]||(p[4]=m=>e.isRef(s)?s.value=m:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",wD,[e.createElementVNode("div",CD,[e.createVNode(qg,{title:e.unref(d),"onUpdate:title":p[0]||(p[0]=m=>e.isRef(d)?d.value=m:null),id:e.unref(c),onPreview:p[1]||(p[1]=m=>o("preview",m)),onSave:p[2]||(p[2]=()=>o("save")),onBack:p[3]||(p[3]=()=>s.value=!1)},null,8,["title","id"])]),e.createElementVNode("div",SD,[e.createElementVNode("div",xD,[e.createVNode(tb)]),e.createElementVNode("div",vD,[e.createElementVNode("div",ED,[e.createVNode(B$)])]),e.unref(l).getRightPannel?(e.openBlock(),e.createElementBlock("div",VD,[e.createVNode(_D)])):e.createCommentVNode("",!0)])])]),_:1},8,["modelValue"])}}}),ER="",Oo=t=>(e.pushScopeId("data-v-f6c5b693"),t=t(),e.popScopeId(),t),ND={key:1,class:"flex flex-wrap items-center justify-between"},$D={class:"item-container"},DD={class:"item-image"},BD=["src"],TD=["onClick"],OD=[Oo(()=>e.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1))],ID={class:"flex items-center justify-between item-footer"},zD={class:"flex"},RD=["onClick"],MD=Oo(()=>e.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),AD=["onClick"],LD=Oo(()=>e.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),FD=Oo(()=>e.createElementVNode("div",{class:"item"},null,-1)),jD=Oo(()=>e.createElementVNode("div",{class:"item"},null,-1)),PD=e.defineComponent({__name:"index",emits:["preview"],setup(t,{emit:r}){const n=r,{proxy:o}=e.getCurrentInstance(),{resetUrl:a}=o.$globalUtils,i=e.ref(null),l=e.ref(null),s=e.reactive([{name:"新增",key:"ADD",type:"primary"}]),d=e.reactive([{name:"名称",type:Rr.Text,fieldName:"title",value:""}]),c=async f=>{const{type:u,row:p}=f;switch(u){case"PREVIEW":n("preview","list",(p==null?void 0:p.id)??"");break;case"ADD":case"EDIT":e.unref(l).init((p==null?void 0:p.id)??"");break;case"DEL":o.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await o.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:p.id},headers:{loading:!0}})&&(o.$message({type:"success",message:"删除成功",plain:!0}),e.unref(i).getData())}});break}};return(f,u)=>{const p=e.resolveComponent("AppEmpty"),h=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(h,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${e.unref(o).$baseGetCurrentProjectId}`,tableData:[],searchForm:e.unref(d),searchBtns:e.unref(s),listType:"custom",onBtnClick:c,ref_key:"appListRef",ref:i},{"list-slot":e.withCtx(({list:m,loading:y})=>[e.createVNode(e.unref(v.ElSkeleton),{loading:y,animated:""},{default:e.withCtx(()=>[m.length==0?(e.openBlock(),e.createBlock(p,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",ND,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"item"},[e.createElementVNode("div",$D,[e.createElementVNode("div",DD,[e.createElementVNode("img",{src:e.unref(a)(g.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,BD),e.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:_=>c({type:"PREVIEW",row:g,index:b})},OD,8,TD)]),e.createElementVNode("div",ID,[e.createElementVNode("div",null,e.toDisplayString(g.title),1),e.createElementVNode("div",zD,[e.createElementVNode("span",{onClick:_=>c({type:"EDIT",row:g,index:b}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[MD,e.createTextVNode(" 编辑大屏 ")],8,RD),e.createElementVNode("span",{onClick:_=>c({type:"DEL",row:g,index:b}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[LD,e.createTextVNode(" 删除 ")],8,AD)])])])]))),128)),FD,jD]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(kD,{ref_key:"designRef",ref:l,onSave:u[0]||(u[0]=m=>e.unref(i).getData()),onPreview:u[1]||(u[1]=m=>n("preview","content",m))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),kR="",UD=Be(PD,[["__scopeId","data-v-f6c5b693"]]);let Xs=null,Io="",qs="",Js="",Ks=null,lm=null,vt=1,Ln=!1;const sm={isAutofitRunnig:!1,init(t={},r=!0){r&&console.log("autofit.js is running");const{dw:n=1920,dh:o=1080,el:a=typeof t=="string"?t:"body",resize:i=!0,ignore:l=[],transition:s="none",delay:d=0,limit:c=.1}=t;Xs=a;let f=document.querySelector(a);if(!f){console.error(`autofit: '${a}' is not exist`);return}const u=document.createElement("style"),p=document.createElement("style");u.lang="text/css",p.lang="text/css",u.id="autofit-style",p.id="ignoreStyle",u.innerHTML="body {overflow: hidden;}";const h=document.querySelector("body");h.appendChild(u),h.appendChild(p),f.style.height=`${o}px`,f.style.width=`${n}px`,f.style.transformOrigin="0 0",f.style.overflow="hidden",Zs(n,o,f,l,c),Ks=()=>{clearTimeout(lm),d!=0?lm=setTimeout(()=>{Zs(n,o,f,l,c),Ln&&cm(Io,Js,qs)},d):(Zs(n,o,f,l,c),Ln&&cm(Io,Js,qs))},i&&window.addEventListener("resize",Ks),this.isAutofitRunnig=!0,setTimeout(()=>{f.style.transition=`${s}s`})},off(t="body"){try{Ln=!1,window.removeEventListener("resize",Ks),document.querySelector("#autofit-style").remove();const r=document.querySelector("#ignoreStyle");r&&r.remove(),document.querySelector(Xs||t).style="",Ln&&WD()}catch(r){console.error("autofit: Failed to remove normally",r),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function cm(t,r=!0,n=1){sm.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!t&&console.error(`autofit.js:bad selector: ${t}`),Io=t,qs=n,Js=r;const o=document.querySelectorAll(t);if(o.length==0){console.error("autofit.js:elRectification found no element");return}for(let a of o){let i=vt==1?1:vt*n;Ln||(a.originalWidth=a.clientWidth,a.originalHeight=a.clientHeight),r?(a.style.width=`${a.originalWidth*i}px`,a.style.height=`${a.originalHeight*i}px`):(a.style.width=`${100*i}%`,a.style.height=`${100*i}%`),a.style.transform=`scale(${1/vt})`,a.style.transformOrigin="0 0"}Ln=!0}function WD(){if(Io)for(let t of document.querySelectorAll(Io))t.style.width="",t.style.height="",t.style.transform=""}function Zs(t,r,n,o,a){let i=document.documentElement.clientHeight,l=document.documentElement.clientWidth;vt=l/i<t/r?l/t:i/r,vt=Math.abs(1-vt)>a?vt.toFixed(2):1;let s=Math.round(i/vt),d=Math.round(l/vt);n.style.height=`${s}px`,n.style.width=`${d}px`,n.style.transform=`scale(${vt})`;const c=document.querySelector("#ignoreStyle");c.innerHTML="";for(let f of o){let u=f.el||f.dom;if(typeof f=="string"&&(u=f),!u){console.error(`autofit: bad selector: ${u}`);continue}let p=f.scale?f.scale:1/vt,h=p!=vt?f.fontSize:"autofit",m=p!=vt?f.width:"autofit",y=p!=vt?f.height:"autofit";new RegExp(`${u}( |{)`,"gm").test(c.innerHTML)||(c.innerHTML+=`
794
+ `("loading");e.defineComponent({name:"Loading",setup(t,{slots:r}){return()=>e.createVNode(FN,null,{default:()=>{var n;return[e.createVNode("svg",{width:"50px",height:"50px"},[e.createVNode("circle",{cx:"25",cy:"25",r:"20",fill:"transparent","stroke-width":"3","stroke-dasharray":"31.415, 31.415",stroke:"#02bcfe","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"0, 25 25;360, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#02bcfe;#3be6cb;#02bcfe",dur:"3s",repeatCount:"indefinite"},null)]),e.createVNode("circle",{cx:"25",cy:"25",r:"10",fill:"transparent","stroke-width":"3","stroke-dasharray":"15.7, 15.7",stroke:"#3be6cb","stroke-linecap":"round"},[e.createVNode("animateTransform",{attributeName:"transform",type:"rotate",values:"360, 25 25;0, 25 25",dur:"1.5s",repeatCount:"indefinite"},null),e.createVNode("animate",{attributeName:"stroke",values:"#3be6cb;#02bcfe;#3be6cb",dur:"3s",repeatCount:"indefinite"},null)])]),e.createVNode("div",{class:"loading-tip"},[(n=r.default)==null?void 0:n.call(r)])]}})}});const jN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(hk),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),PN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(yk),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),UN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(wk),{color:e.unref(n),ref_key:"customRef",ref:o},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.config.customize.title),1)]),_:1},8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),WN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Lk),{color:e.unref(n),scanDuration:a.config.customize.scanDuration,haloDuration:a.config.customize.haloDuration,ref_key:"customRef",ref:o},null,8,["color","scanDuration","haloDuration"]))}})},Symbol.toStringTag,{value:"Module"})),GN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(Yk),{color:e.unref(n),duration:a.config.customize.duration,reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),HN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(eN),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),YN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(sN),{color:e.unref(n),duration:a.config.customize.duration,reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","duration","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),XN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(gN),{color:e.unref(n),duration:a.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","duration"]))}})},Symbol.toStringTag,{value:"Module"})),qN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(vN),{color:e.unref(n),ref_key:"customRef",ref:o},null,8,["color"]))}})},Symbol.toStringTag,{value:"Module"})),JN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(ON),{color:e.unref(n),reverse:a.config.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),KN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.decorationColor1||(i=r.config.customize)!=null&&i.decorationColor2?[r.config.customize.decorationColor1,r.config.customize.decorationColor2]:[]}),{customRef:o}=je(r.config);return(a,i)=>(e.openBlock(),e.createBlock(e.unref(LN),{color:e.unref(n),reverse:a.config.customize.duration,ref_key:"customRef",ref:o},null,8,["color","reverse"]))}})},Symbol.toStringTag,{value:"Module"})),ZN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(PE),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),QN=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(GE),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),e$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s,d;return e.openBlock(),e.createBlock(e.unref(sV),{color:e.unref(n),title:(l=r.config)==null?void 0:l.customize.title,titleWidth:(s=r.config)==null?void 0:s.customize.titleWidth,backgroundColor:(d=r.config)==null?void 0:d.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","title","titleWidth","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),t$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(dV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),r$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(pV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),n$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(gV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),o$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(_V),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),a$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s;return e.openBlock(),e.createBlock(e.unref(TV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),i$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s;return e.openBlock(),e.createBlock(e.unref(UV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse"])}}})},Symbol.toStringTag,{value:"Module"})),l$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(HV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),s$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(qV),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),c$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l,s,d;return e.openBlock(),e.createBlock(e.unref(ik),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,reverse:(s=r.config)==null?void 0:s.customize.reverse,duration:(d=r.config)==null?void 0:d.customize.duration,ref_key:"customRef",ref:o},null,8,["color","backgroundColor","reverse","duration"])}}})},Symbol.toStringTag,{value:"Module"})),d$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{var a,i;return(a=r.config.customize)!=null&&a.borderMainColor||(i=r.config.customize)!=null&&i.borderSecondaryColor?[r.config.customize.borderMainColor,r.config.customize.borderSecondaryColor]:[]}),{customRef:o}=je(r.config);return(a,i)=>{var l;return e.openBlock(),e.createBlock(e.unref(ck),{color:e.unref(n),backgroundColor:(l=r.config)==null?void 0:l.customize.backgroundColor,ref_key:"customRef",ref:o},null,8,["color","backgroundColor"])}}})},Symbol.toStringTag,{value:"Module"})),f$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to bottom, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:r.config.customize.width+"px","background-image":e.unref(n)}),class:"h-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),u$=["src"],p$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t;return(n,o)=>(e.openBlock(),e.createElementBlock("iframe",{src:r.config.customize.url,class:"w-full h-full border-0"},null,8,u$))}})},Symbol.toStringTag,{value:"Module"})),h$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const{proxy:r}=e.getCurrentInstance(),{resetUrl:n}=r.$globalUtils,o=t;return(a,i)=>(e.openBlock(),e.createBlock(e.unref(v.ElImage),{class:"w-full h-full",src:e.unref(n)(o.config.customize.url),fit:o.config.customize.fit},null,8,["src","fit"]))}})},Symbol.toStringTag,{value:"Module"})),m$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(n),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(r.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),g$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to ${r.config.customize.colorPosition}, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{class:"w-full h-full",style:e.normalizeStyle({"background-image":e.unref(n),borderRadius:r.config.customize.borderRadius+"px"})},null,4))}})},Symbol.toStringTag,{value:"Module"})),y$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(n),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(r.config.customize.title),5))}})},Symbol.toStringTag,{value:"Module"})),b$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.ref(),o=()=>{n.value=on().format("YYYY-MM-DD HH:mm:ss")},a=setInterval(()=>{o()},1e3);o(),e.onBeforeUnmount(()=>{a&&clearInterval(a)});const i=e.computed(()=>`-webkit-linear-gradient(${r.config.customize.colorPosition}, ${r.config.customize.startColor}, ${r.config.customize.endColor}`);return(l,s)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({...r.config.customize,fontSize:r.config.customize.fontSize+"px",letterSpacing:r.config.customize.letterSpacing+"px",backgroundImage:e.unref(i),"-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"})},e.toDisplayString(e.unref(n)),5))}})},Symbol.toStringTag,{value:"Module"})),_$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"index",props:{config:{default:()=>({customize:{}})}},setup(t){const r=t,n=e.computed(()=>{const o=r.config.customize.gradientColor0,a=r.config.customize.gradientColor1;return`linear-gradient(to right, ${o||a} , ${a||o})`});return(o,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:r.config.customize.height+"px","background-image":e.unref(n)}),class:"w-full"},null,4))}})},Symbol.toStringTag,{value:"Module"})),Yh={};for(let t=0;t<=4;t+=1){let r=null;if(t==0&&(r=Object.assign({"../decoration/decoration1/index.vue":jN,"../decoration/decoration10/index.vue":PN,"../decoration/decoration11/index.vue":UN,"../decoration/decoration12/index.vue":WN,"../decoration/decoration2/index.vue":GN,"../decoration/decoration3/index.vue":HN,"../decoration/decoration4/index.vue":YN,"../decoration/decoration5/index.vue":XN,"../decoration/decoration6/index.vue":qN,"../decoration/decoration8/index.vue":JN,"../decoration/decoration9/index.vue":KN})),t==1&&(r=Object.assign({"../border/border1/index.vue":ZN,"../border/border10/index.vue":QN,"../border/border11/index.vue":e$,"../border/border12/index.vue":t$,"../border/border13/index.vue":r$,"../border/border2/index.vue":n$,"../border/border3/index.vue":o$,"../border/border4/index.vue":a$,"../border/border5/index.vue":i$,"../border/border6/index.vue":l$,"../border/border7/index.vue":s$,"../border/border8/index.vue":c$,"../border/border9/index.vue":d$})),t==2&&(r=Object.assign({"../basic/horizontal-line/index.vue":f$,"../basic/iframe/index.vue":p$,"../basic/img/index.vue":h$,"../basic/number/index.vue":m$,"../basic/square/index.vue":g$,"../basic/text/index.vue":y$,"../basic/time/index.vue":b$,"../basic/vertical-line/index.vue":_$})),r)for(const[n,o]of Object.entries(r)){const a=n.split("/")[2];Yh[a]=o.default}}function Ps(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesItem:n,barConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function ni(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,position:"top",color:"#000000",fontSize:10,rotate:0}};return{init:r,customSeriesData:t,seriesItem:n,lineConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Us(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{a.dataset.dimensions=[a.dataShow.x,a.dataShow.y],t.value[a.dataShow.y]||(t.value[a.dataShow.y]=JSON.parse(JSON.stringify(n))),window.customSeriesData=t.value,a.series=[t.value[a.dataShow.y]],i&&i()})},n={type:"pie",radius:["40%","65%"],center:["50%","50%"],roseType:!1,avoidLabelOverlap:!1,itemStyle:{show:!0,borderRadius:10,borderColor:"#fff",borderWidth:2},emphasis:{labelLine:{show:!0}},labelLine:{show:!0},label:{show:!0,color:"#000000",fontSize:10,position:"center",formatter:"{b}"}};return{init:r,customSeriesData:t,seriesItem:n,pieConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"item"},dataShow:{x:"",y:""},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},dataset:{},series:[]}}}function Ws(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(i,l)=>{i.series=[],setTimeout(()=>{const s=i.dataShow.y.filter(d=>!i.dataShow.hide.includes(d));i.dataset.dimensions=[i.dataShow.x,...s],i.dataShow.y.forEach((d,c)=>{if(t.value[d])return;const f=i.dataShow.y.length==c+1&&i.dataShow.y.length>0;t.value[d]=JSON.parse(JSON.stringify(f?n:o))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(d=>{d.label.formatter=c=>{const f=i.custom,u=c.data[c.seriesName];if((f==null?void 0:f.toFixed)!=="")try{return Number(u).toFixed(f.toFixed)}catch{return u}return u}}),i.series=s.map((d,c)=>t.value[d]),l&&l()})},n={type:"line",symbolSize:5,smooth:!0,lineStyle:{type:"solid",width:3,color:null},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}},o={type:"bar",barWidth:15,stack:!1,borderRadiusNumber:4,itemStyle:{color:null,borderRadius:[4,4,0,0]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesLineItem:n,seriesBarItem:o,barsLinesConfig:{tooltip:{show:!0,confine:!0,valueFormatter:i=>i,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Gs(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=[a.dataShow.x,...l],a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),window.customSeriesData=t.value,Object.values(e.unref(t)).forEach(s=>{s.label.formatter=d=>{const c=a.custom,f=d.data[d.seriesName];if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f}}),a.series=l.map((s,d)=>t.value[s]),i&&i()})},n={type:"scatter",emphasis:{focus:"series"},symbolSize:12,itemStyle:{color:null},markArea:{silent:!0,itemStyle:{color:"transparent",borderWidth:1,borderType:"dashed"},data:[[{xAxis:"min",yAxis:"min"},{xAxis:"max",yAxis:"max"}]]},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10}};return{init:r,customSeriesData:t,seriesItem:n,scatterCfg:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a,trigger:"axis",axisPointer:{show:!0,type:"shadow"}},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},xAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"bottom",type:"category"},yAxis:{show:!0,axisLabel:{fontSize:12,interval:0,rotate:0},nameTextStyle:{fontSize:12},splitLine:{lineStyle:{width:1,type:"solid"}},position:"left",type:"value"},dataset:{},series:[]}}}function Hs(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(d=>!a.dataShow.hide.includes(d));a.dataset.dimensions=l,e.unref(t).type||(t.value=JSON.parse(JSON.stringify(n))),window.customSeriesData=t.value,a.radar.indicator=a.dataset.source.map(d=>({name:d[a.dataShow.x]}));const s=[];a.dataset.dimensions.forEach(d=>{s.push({name:d,value:a.dataset.source.map(c=>c[d])})}),a.series=[{...t.value,data:s}],e.unref(t).label.formatter=d=>{const c=a.custom,f=d.value;if((c==null?void 0:c.toFixed)!=="")try{return Number(f).toFixed(c.toFixed)}catch{return f}return f},i&&i()})},n={type:"radar",areaStyle:{opacity:.1},label:{show:!0,rotate:0,position:"top",color:"#000000",fontSize:10},data:[]};return{init:r,customSeriesData:t,seriesItem:n,radarConfig:{tooltip:{show:!0,confine:!0,valueFormatter:a=>a},custom:{prefix:"",suffix:"",toFixed:0},dataShow:{x:[],y:[],hide:[]},grid:{left:"3%",right:"3%",bottom:"3%",top:"10%",containLabel:!0},legend:{show:!0,textStyle:{fontSize:12},x:"center",y:"top",orient:"horizontal",icon:"roundRect",itemWidth:20,itemHeight:10},radar:{shape:"polygon",radius:["0%","60%"],center:["50%","55%"],splitArea:{show:!0},splitLine:{show:!0},axisName:{show:!0,color:"#000",fontSize:12},axisLine:{show:!0},axisTick:{show:!0},indicator:[]},dataset:{},series:[]}}}function Xh(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{typeof a.dataShow.y=="string"&&a.dataShow.y&&(a.dataShow.y=[a.dataShow.y]);const l=a.dataShow.y.filter(s=>{var d;return!(((d=a.dataShow)==null?void 0:d.hide)??[]).includes(s)});a.dataset.dimensions=l,a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),a.customSeriesData=t.value,window.customSeriesData=t.value,i&&i()})},n={prefix:"",suffix:"",toFixed:0,color:null,fontSize:14,bgColor:null};return{init:r,seriesItem:n,customSeriesData:t,numberConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}function oi(){const t=e.ref((window==null?void 0:window.customSeriesData)??{}),r=(a,i)=>{a.series=[],setTimeout(()=>{const l=a.dataShow.y.filter(s=>!a.dataShow.hide.includes(s));a.dataset.dimensions=l,a.dataShow.y.forEach(s=>{t.value[s]||(t.value[s]=JSON.parse(JSON.stringify(n)))}),a.customSeriesData=t.value,window.customSeriesData=t.value,i&&i()})},n={prefix:"",suffix:"",toFixed:0,color:null};return{init:r,customSeriesData:t,tableConfig:{dataShow:{x:"",y:[],hide:[]},dataset:{}}}}const w$=t=>{if(process.env.NODE_ENV==="development"){const r="http://192.168.70.09:30010/".split(":")[1].split("."),n=r[r.length-1],o=`http://192.168.70.${Number(n)}:9000`;return t=t.replace("http://172.17.95.13:9000",o),t=t.replace("http://172.29.26.123:9000",o),t=t.replace("http://192.168.0.22:9000",o),t}return t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t=t.replace(/http:\/\/172\.29\.26\.123:9000/g,""),t=t.replace(/http:\/\/172\.17\.95\.13:9000/g,""),t},br=t=>JSON.parse(t,(r,n)=>n&&typeof n=="string"&&n.indexOf("FUNCTION_FLAG")>-1?new Function(`return ${n.toString().replace("FUNCTION_FLAG","")}`)():n),Or=t=>JSON.stringify(t,(r,n)=>typeof n=="function"?"FUNCTION_FLAG"+n:n);function mt(){const{proxy:t}=e.getCurrentInstance(),r=e.ref({}),n=e.ref(""),o=e.ref(null),a=async(c,f,u)=>await new Promise(async p=>{var _,w;const h=Re(),m=JSON.parse(JSON.stringify(((_=e.unref(o))==null?void 0:_.params)??((w=h.getChartData)==null?void 0:w.params))),y=JSON.parse((m==null?void 0:m.groupArgsJson)??"[]"),g=JSON.parse((m==null?void 0:m.aggArgsJson)??"[]");if(f){const C=y.find(S=>S.comment==f);C&&(m.groupArgsJson=JSON.stringify([C]))}if(["2"].includes(c)&&u){const C=g.find(S=>S.showLabel==u);C&&(m.aggArgsJson=JSON.stringify([C]))}const b=await t.$baseHttp.post("/api/ace-data-center/model-indicators/debug",m);p(b.data.records)}),i=async(c,f,u)=>await new Promise(async p=>{let h=f;const m=Re();if(c){const y=await t.$baseHttp.get(`/api/ace-data-center/model-indicators-echarts/detail?id=${c}`);if(!y)return;u=br(y.data.echartsConfig),h=y.data.echartsType}n.value=h,setTimeout(async()=>{var y,g,b,_,w,C,S,x,E,V,$,B,R,T,k,O,N,D,I,z,M,j,F,G,H,X,J,U,W,Q,re,ne,Y,Z,ye,ie,ce,oe,_e,Ce,ue,Ee;switch(h){case"1":{const{lineConfig:be,customSeriesData:Ve,init:Ne}=ni();Ve.value=((y=e.unref(u))==null?void 0:y.customSeriesData)??{},r.value=u??br(Or(be)),delete r.value.legend.icon,e.unref(r).dataShow.x=((g=u==null?void 0:u.dataShow)==null?void 0:g.x)??((_=(b=m.getChartData)==null?void 0:b.x[0])==null?void 0:_.comment),e.unref(r).dataShow.y=(((w=e.unref(o))==null?void 0:w.y)??((C=m.getChartData)==null?void 0:C.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"2":{const{pieConfig:be,customSeriesData:Ve,init:Ne}=Us();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((S=u==null?void 0:u.dataShow)==null?void 0:S.x)??((E=(x=m.getChartData)==null?void 0:x.x[0])==null?void 0:E.comment),e.unref(r).dataShow.y=((V=u==null?void 0:u.dataShow)==null?void 0:V.y)??((B=($=m.getChartData)==null?void 0:$.y[0])==null?void 0:B.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x,e.unref(r).dataShow.y),Ne(e.unref(r))}break;case"3":{const{barConfig:be,customSeriesData:Ve,init:Ne}=Ps();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((R=u==null?void 0:u.dataShow)==null?void 0:R.x)??((k=(T=m.getChartData)==null?void 0:T.x[0])==null?void 0:k.comment),e.unref(r).dataShow.y=(((O=e.unref(o))==null?void 0:O.y)??((N=m.getChartData)==null?void 0:N.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"4":{const{radarConfig:be,customSeriesData:Ve,init:Ne}=Hs();Ve.value=((D=e.unref(u))==null?void 0:D.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((I=u==null?void 0:u.dataShow)==null?void 0:I.x)??((M=(z=m.getChartData)==null?void 0:z.x[0])==null?void 0:M.comment),e.unref(r).dataShow.y=(((j=e.unref(o))==null?void 0:j.y)??((F=m.getChartData)==null?void 0:F.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"5":{const{barsLinesConfig:be,customSeriesData:Ve,init:Ne}=Ws();Ve.value=((G=e.unref(u))==null?void 0:G.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((H=u==null?void 0:u.dataShow)==null?void 0:H.x)??((J=(X=m.getChartData)==null?void 0:X.x[0])==null?void 0:J.comment),e.unref(r).dataShow.y=(((U=e.unref(o))==null?void 0:U.y)??((W=m.getChartData)==null?void 0:W.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"6":{const{scatterCfg:be,customSeriesData:Ve,init:Ne}=Gs();Ve.value=((Q=e.unref(u))==null?void 0:Q.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.x=((re=u==null?void 0:u.dataShow)==null?void 0:re.x)??((Y=(ne=m.getChartData)==null?void 0:ne.x[0])==null?void 0:Y.comment),e.unref(r).dataShow.y=(((Z=e.unref(o))==null?void 0:Z.y)??((ye=m.getChartData)==null?void 0:ye.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h,e.unref(r).dataShow.x),Ne(e.unref(r))}break;case"7":{const{numberConfig:be,customSeriesData:Ve,init:Ne}=Xh();Ve.value=(u==null?void 0:u.customSeriesData)??{},r.value=u??br(Or(be)),e.unref(r).dataShow.y=(((ie=e.unref(o))==null?void 0:ie.y)??((ce=m.getChartData)==null?void 0:ce.y)).map(we=>we.showLabel),e.unref(r).dataset.source=await a(h),Ne(e.unref(r))}break;case"8":{const{customSeriesData:be,tableConfig:Ve,init:Ne}=oi();r.value=u??br(Or(Ve)),be.value=((oe=e.unref(u))==null?void 0:oe.customSeriesData)??{},e.unref(r).dataShow.y=[...(((_e=e.unref(o))==null?void 0:_e.x)??((Ce=m.getChartData)==null?void 0:Ce.x)).map(we=>we.comment),...(((ue=e.unref(o))==null?void 0:ue.y)??((Ee=m.getChartData)==null?void 0:Ee.y)).map(we=>we.showLabel)],e.unref(r).dataset.source=await a(h),Ne(e.unref(r))}break}if(window.echartCustomOps=e.toRaw(e.unref(r)),e.unref(r).tooltip){const be=e.unref(r).custom;be&&(r.value.tooltip.valueFormatter=Ve=>`${be.prefix??""}${Number(Ve).toFixed(be.toFixed)}${be.suffix??""}`)}e.unref(r).dataset.temp_source=JSON.parse(JSON.stringify(r.value.dataset.source)),p(r.value)},100)});return{option:r,chartDataParams:o,chartType:n,setChartData:a,formatChart:i,getModelIndicatorsData:async(c,f,u)=>{await new Promise(async p=>{var C;const h=Re(),{dynamicSearchFormat:m,dynamicSearchParams:y}=t.$globalHooks.useDynamicSearch();let g;g=await t.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${c}`);const b=JSON.parse(g.data.sortArgsJson??"{}"),_=Object.keys(e.unref(b)).map(S=>({field:S,type:b[S]=="ascending"?"asc":"desc"}));h.setChartData({x:JSON.parse(g.data.groupArgsJson),y:JSON.parse(g.data.aggArgsJson),params:{aggArgsJson:g.data.aggArgsJson,groupArgsJson:g.data.groupArgsJson,sortArgsJson:JSON.stringify(_),params:y(m(JSON.parse(u??((C=e.unref(g))==null?void 0:C.formConfJson)??"[]"))),pageSize:g.data.pageSize,modelIndicatorsId:g.data.id,modelId:g.data.modelId}});const w=g.data.echarts.find(S=>S.type==f);await i(w==null?void 0:w.code),p(w==null?void 0:w.code)})},changeChartSeries:()=>{var c,f,u,p,h,m,y;switch(e.unref(n)){case"1":{const{customSeriesData:g,init:b}=ni();g.value=((c=e.unref(r))==null?void 0:c.customSeriesData)??{},b(e.unref(r))}break;case"2":{const{customSeriesData:g,init:b}=Us();g.value=((f=e.unref(r))==null?void 0:f.customSeriesData)??{},b(e.unref(r))}break;case"3":{const{customSeriesData:g,init:b}=Ps();g.value=((u=e.unref(r))==null?void 0:u.customSeriesData)??{},b(e.unref(r))}break;case"4":{const{customSeriesData:g,init:b}=Hs();g.value=((p=e.unref(r))==null?void 0:p.customSeriesData)??{},b(e.unref(r))}break;case"5":{const{customSeriesData:g,init:b}=Ws();g.value=((h=e.unref(r))==null?void 0:h.customSeriesData)??{},b(e.unref(r))}break;case"6":{const{customSeriesData:g,init:b}=Gs();g.value=((m=e.unref(r))==null?void 0:m.customSeriesData)??{},b(e.unref(r))}break;case"7":{const{init:g}=Xh();g(e.unref(r))}break;case"8":{const{customSeriesData:g,init:b}=oi();g.value=((y=e.unref(r))==null?void 0:y.customSeriesData)??{},b(e.unref(r))}break}},setSingleValue:c=>{const f=e.unref(r),u=e.unref(r).customSeriesData[c]??{};return((u==null?void 0:u.prefix)??"")+f.dataset.source.reduce((p,h)=>p+(h[c]?Number(h[c]):0),0).toFixed(u.toFixed??0)+(u.suffix??"")}}}const C$={key:1,class:"flex w-full h-full items-center justify-center"},S$=e.defineComponent({__name:"render",props:{config:{default:()=>({})}},setup(t){const r=t,{proxy:n}=e.getCurrentInstance(),o=Re(),{dynamicSearchFormat:a,dynamicSearchParams:i}=n.$globalHooks.useDynamicSearch(),{option:l,formatChart:s,chartDataParams:d}=mt();if(r.config.chartId&&r.config.indicatorsId){const{indicatorsId:f,chartType:u}=r.config;n.$baseHttp.get(`/api/ace-data-center/model-indicators/detail?id=${f}`).then(async p=>{const h=JSON.parse(p.data.sortArgsJson??"{}"),m=Object.keys(e.unref(h)).map(y=>({field:y,type:h[y]=="ascending"?"asc":"desc"}));d.value={x:JSON.parse(p.data.groupArgsJson),y:JSON.parse(p.data.aggArgsJson),params:{aggArgsJson:p.data.aggArgsJson,groupArgsJson:p.data.groupArgsJson,sortArgsJson:JSON.stringify(m),modelIndicatorsId:f,params:i(a(JSON.parse(p.data.formConfJson??"[]"))),pageSize:p.data.pageSize,modelId:p.data.modelId}},o.tempChartData[r.config.id]={params:d.value,customize:r.config.customize},o.setChartData(d.value),s("",u,{...r.config.customize,id:r.config.id})})}const c=e.computed(()=>Yh[r.config.type]);return(f,u)=>{var m,y;const p=e.resolveComponent("AppCustomChart"),h=e.resolveComponent("AppLoading");return r.config.chartId?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[((y=(m=e.unref(l))==null?void 0:m.dataset)==null?void 0:y.source.length)>0?(e.openBlock(),e.createBlock(p,{key:0,option:r.config.customize,chartType:r.config.chartType,maxHeight:r.config.h-10+"px"},null,8,["option","chartType","maxHeight"])):(e.openBlock(),e.createElementBlock("div",C$,[e.createVNode(h,{size:"80"})]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.unref(c)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(c)),{key:0,ref:"componentRef",config:r.config},null,8,["config"])):e.createCommentVNode("",!0)],64))}}}),Rz="",qh=Be(S$,[["__scopeId","data-v-f33952d3"]]),x$=t=>(e.pushScopeId("data-v-30e076ea"),t=t(),e.popScopeId(),t),v$=["id","onDblclick","onMousedown","onClick"],E$={key:0,class:"absolute -right-2 -top-2 w-8 h-8 bg-blue-500 flex items-center justify-center rounded-full"},V$=[x$(()=>e.createElementVNode("i",{class:"ri-lock-line text-base text-white"},null,-1))],k$={key:1,class:"tool absolute left-full whitespace-nowrap text-xs ml-4"},N$=["onClick"],$$={key:1,class:"absolute w-full h-full"},D$=e.defineComponent({__name:"main",setup(t){e.useCssVars(N=>({"2a2debb1":e.unref(u)}));const{proxy:r}=e.getCurrentInstance(),{chartJsonFormat:n}=r.$globalUtils,o=Re(),{stageWidth:a,stageHeight:i}=o.getStage,l=document.body,s=e.ref(null),d=fb("Shift"),c=e.computed(()=>o.targetsWidget.length===1?na(o.targetsWidget[0]):null),f=[{label:"置于顶层",clickFunc:N=>{N.z=o.getWidgetList.length,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,I)=>{D.z=o.getWidgetList.length-1-I}),o.sortWidgetList()}},{label:"置于底层",clickFunc:N=>{N.z=1,o.widgetConfg.list.filter(D=>D.id!=N.id).forEach((D,I)=>{D.z=o.getWidgetList.length-I}),o.sortWidgetList()}}],u=e.computed(()=>.8/o.getScale),p=()=>Array.prototype.slice.call(document.querySelectorAll(".drag-item"),0),h=(N,D)=>{if(Array.isArray(N)){if(N.length===0){o.setTargetWidget([]);return}o.setTargetWidget(N.filter(z=>z.className.indexOf("locked")==-1).map(z=>na(z)));return}const I=na(N);!I||o.targetsWidget.includes(I)||N.locked||(d.value===!0?o.setTargetWidget([...o.getTargetWidget.filter(z=>z.className.indexOf("locked")==-1),I]):o.setTargetWidget([I]),e.nextTick(()=>{D&&e.nextTick(()=>{var z;return(z=e.unref(s))==null?void 0:z.dragStart(D)})}))},m=N=>{const D=B(e.unref(c));D!=null&&D.locked&&N.stopDrag(),console.log("开始拖拽",N)},y=N=>{console.log("拖拽中",N),N.target.style.transform=N.transform;const[D,I]=N.translate;o.setSketchRuleLine([D],[I]);const z=B(e.unref(c));z&&(z.x=Math.floor(N.translate[0]),z.y=Math.floor(N.translate[1]))},g=N=>{console.log("拖拽结束",N),o.clearSketchRuleLine()},b=N=>{console.log("开始组拖拽",N)},_=N=>{console.log("组拖拽中",N),N.events.forEach(D=>{D.target.style.transform=D.transform})},w=N=>{console.log("组拖拽完毕",N),N.events.forEach(D=>{const I=B(D.target);!I||!D.lastEvent||(I.x=Math.floor(D.lastEvent.translate[0]),I.y=Math.floor(D.lastEvent.translate[1]))}),o.clearSketchRuleLine()},C=N=>{console.log("开始组修改大小",N)},S=N=>{console.log("组修改大小中",N),N.events.forEach(D=>{D.target.style.transform=D.drag.transform,D.target.style.width=`${D.width}px`,D.target.style.height=`${D.height}px`;const I=B(D.target);I&&(I.x=Math.floor(D.drag.translate[0]),I.y=Math.floor(D.drag.translate[1]),I.w=D.drag.width,I.h=D.drag.height)})},x=N=>{console.log("修改大小结束",N),o.clearSketchRuleLine()},E=N=>{const D=B(e.unref(c));D!=null&&D.locked&&N.stopDrag(),console.log("开始改变大小",N)},V=N=>{console.log("改变中",N),N.target.style.transform=N.drag.transform,N.target.style.width=`${N.width}px`,N.target.style.height=`${N.height}px`;const D=B(N.target);if(!D)return;D.x=Math.floor(N.drag.translate[0]),D.y=Math.floor(N.drag.translate[1]),D.w=N.drag.width,D.h=N.drag.height;const[I,z]=N.drag.translate;o.setSketchRuleLine([I],[z])};function $(N){console.log("改变结束",N),o.clearSketchRuleLine()}r.$baseEventBus.on("clear-stage",()=>{console.log("清空画布"),o.setWidgetList([]),o.setTargetWidget([]),o.clearSketchRuleLine()}),r.$baseEventBus.on("update-rect",()=>{var N,D;console.log("更新画布"),(N=s.value)==null||N.updateTarget(),(D=s.value)==null||D.updateRect()}),r.$baseEventBus.on("change-align",N=>{e.nextTick(()=>{var z;if(console.log("修改居中方式"),!o.targetsWidget.length)return;const D=s.value.getRect(),I=s.value.getMoveables();if(I.length<=1){const M={};N=="left"&&(M.x=0),N=="right"&&(M.x=a-D.width),N=="top"&&(M.y=0),N=="bottom"&&(M.y=i-D.height),N=="middle"&&(M.y=i/2-D.height/2),N=="center"&&(M.x=a/2-D.width/2),I[0].request("draggable",M,!0);const j=B(I[0].props.target);if(!j)return;Object.keys(M).forEach(F=>{j[F]=M[F]})}else switch(N){case"left":case"right":case"top":case"bottom":case"middle":case"center":{const M=Math.max.apply(Math,D.children.map(F=>F.top+F.height)),j=Math.max.apply(Math,D.children.map(F=>F.left+F.width));I.forEach((F,G)=>{const H={};N=="left"&&(H.x=D.left),N=="right"&&(H.x=j-D.children[G].width),N=="top"&&(H.y=D.top),N=="bottom"&&(H.y=M-D.children[G].height),N=="middle"&&(H.y=D.top+D.height/2-D.children[G].height/2),N=="center"&&(H.x=D.left+D.width/2-D.children[G].width/2),F.request("draggable",H,!0);const X=B(F.props.target);X&&Object.keys(H).forEach(J=>{X[J]=H[J]})}),o.clearSketchRuleLine()}break;case"verticalAround":case"levelAround":{const M=N=="verticalAround"?"top":"left",j=N=="verticalAround"?"height":"width";let F=D[M];const G=(D[j]-D.children.reduce((H,X)=>H+X[j],0))/(I.length-1);I.sort((H,X)=>H.state[M]-X.state[M]),I.forEach(H=>{const X=H.getRect(),J={};M=="top"&&(J.y=F),M=="left"&&(J.x=F),H.request("draggable",J,!0);const U=B(H.props.target);U&&(Object.keys(J).forEach(W=>{U[W]=J[W]}),F+=X[j]+G)}),o.clearSketchRuleLine()}break}(z=s.value)==null||z.updateRect()})});const B=N=>o.getWidgetList.find(D=>D.id==(N==null?void 0:N.id)),R=N=>{N.preventDefault(),N.stopPropagation();const D=N.dataTransfer.getData("dragComponent");if(D){let I=JSON.parse(D);I.chartId&&(I.customize=n(I.customize)),console.log(I);const{w:z,h:M}=I;let j=N.offsetX-z/2,F=N.offsetY-M/2;j<=0?j=0:j+z>=a&&(j=a-z),F<=0?F=0:F+M>=i&&(F=i-M),o.setWidgetList([{...I,x:j,y:F,z:o.getWidgetList.length+1},...o.getWidgetList])}},T=e.ref([]),k=()=>{const N=(I,z)=>{const M=cb(I,j=>{document.activeElement&&["INPUT"].includes(document.activeElement.tagName)||(j.preventDefault(),j.stopPropagation(),z(j))},{eventName:"keydown"});T.value.push(M)},D=I=>navigator.userAgent.toLowerCase().includes("macintosh")?I.metaKey:I.ctrlKey;N(["Backspace","Delete"],I=>{console.log("删除触发",I),o.targetsWidget.length&&o.delWidgetItem(o.getTargetWidget.map(z=>z.id))}),N(["ArrowLeft","ArrowRight","ArrowDown","ArrowUp"],I=>{if(!o.targetsWidget.length)return;console.log("触发移动",I);let z=0,M=0;I.key=="ArrowLeft"&&(z=-2),I.key=="ArrowRight"&&(z=2),I.key=="ArrowUp"&&(M=-2),I.key=="ArrowDown"&&(M=2),I.shiftKey&&(z*=10,M*=10),e.nextTick(()=>{s.value.getMoveables().forEach(F=>{const G=B(F.props.target);!G||G.locked||(G.x+z<0?G.x=0:G.x+z>a-G.w?G.x=a-G.w:G.x+=z,G.y+M<0?G.y=0:G.y+M>i-G.h?G.y=i-G.h:G.y+=M)}),e.nextTick(()=>{var F;return(F=s.value)==null?void 0:F.updateRect()})})}),N(["c"],I=>{console.log("复制",I),D(I)&&o.getTargetWidget.length&&o.copyWidgetItem(o.getTargetWidget.map(z=>z.id))}),N(["v"],I=>{console.log("粘贴",I),D(I)&&o.getPasteWidget.length&&o.pasteWidgetItem()})},O=e.ref(null);return e.nextTick(()=>{k(),O.value=new uS({rootContainer:null,dragContainer:".render",selectableTargets:[".drag-item"],selectByClick:!0,selectFromInside:!0,continueSelect:!1,preventDefault:!0,toggleContinueSelect:null,keyContainer:window,hitRate:0}),e.unref(O).on("dragStart",N=>{o.setRightPannel(!1),console.log("开始全选拖拽",N)}),e.unref(O).on("dragEnd",N=>{console.log("全选拖拽结束",N)}),e.unref(O).on("select",N=>{console.log("选中结果",N),N.added.forEach(D=>{D.className.indexOf("loccked")||D.classList.add("selected")}),N.removed.forEach(D=>{D.classList.remove("selected")}),h(N.selected)}),e.unref(O).on("selectEnd",N=>{console.log("选中结束",N),h(N.selected)})}),e.onBeforeUnmount(()=>{T.value.forEach(N=>N()),e.unref(O)&&e.unref(O).destroy()}),(N,D)=>(e.openBlock(),e.createBlock(Fb,null,{default:e.withCtx(()=>[e.createElementVNode("div",{class:"w-full h-full relative",onDrop:D[1]||(D[1]=I=>R(I)),onDragover:D[2]||(D[2]=e.withModifiers(()=>{},["prevent"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(o).getWidgetList,I=>{var z,M;return e.openBlock(),e.createElementBlock("div",{key:I.id,class:e.normalizeClass(["absolute",{"drag-item":!0,locked:I.locked,selected:e.unref(o).widgetHoverIds.includes(I.id),active:((z=e.unref(c))==null?void 0:z.id)==I.id}]),id:I.id,style:e.normalizeStyle(e.unref(rd)(I)),onDblclick:e.withModifiers(j=>I.locked=!I.locked,["stop"]),onMousedown:j=>h(I,j),onClick:e.withModifiers(j=>h(I,j),["stop"])},[e.unref(o).createLoading?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[I.locked?(e.openBlock(),e.createElementBlock("div",E$,V$)):e.createCommentVNode("",!0),((M=e.unref(c))==null?void 0:M.id)==I.id&&!I.locked?(e.openBlock(),e.createElementBlock("div",k$,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(f,j=>e.createElementVNode("div",{key:I.label,onClick:e.withModifiers(F=>j.clickFunc(I),["stop"]),onDblclick:D[0]||(D[0]=e.withModifiers(()=>{},["prevent","stop"])),class:"h-6 bg-color-primary text-white w-16 flex items-center justify-center rounded-sm cursor-pointer mb-2"},e.toDisplayString(j.label),41,N$)),64))])):e.createCommentVNode("",!0)],64)),I.type=="iframe"?(e.openBlock(),e.createElementBlock("div",$$)):e.createCommentVNode("",!0),e.createVNode(qh,{config:I},null,8,["config"])],46,v$)}),128)),e.createVNode(e.unref(KC),{rootContainer:e.unref(l),ref_key:"moveableRef",ref:s,origin:!1,stopPropagation:!0,target:e.unref(o).targetsWidget,draggable:!0,resizable:!0,scalable:!1,snappable:!0,maxSnapElementGuidelineDistance:100,maxSnapElementGapDistance:100,isDisplayInnerSnapDigit:!0,snapDirections:!0,elementSnapDirections:!0,elementGuidelines:p(),bounds:{left:0,top:0,bottom:0,right:0,position:"css"},onDragStart:m,onDrag:y,onDragEnd:g,onResizeStart:E,onResize:V,onResizeEnd:$,onDragGroupStart:b,onDragGroup:_,onDragGroupEnd:w,onResizeGroupStart:C,onResizeGroup:S,onResizeGroupEnd:x},null,8,["rootContainer","target","elementGuidelines"])],32)]),_:1}))}}),Az="",B$=Be(D$,[["__scopeId","data-v-30e076ea"]]),xt=e.defineComponent({__name:"colorPicker",props:{modelValue:{default:""},showInput:{type:Boolean,default:!0}},emits:["update:modelValue"],setup(t,{emit:r}){const n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=e.ref(n.modelValue=="transparent"?"":n.modelValue),l=r;return e.watch(i,s=>{l("update:modelValue",s||"transparent")}),(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.showInput?(e.openBlock(),e.createBlock(e.unref(v.ElInput),{key:0,value:e.unref(i),class:"mr-1",style:{width:"80%"}},null,8,["value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElColorPicker),{modelValue:e.unref(i),"onUpdate:modelValue":d[0]||(d[0]=c=>e.isRef(i)?i.value=c:null),predefine:e.unref(a),"show-alpha":""},null,8,["modelValue","predefine"])],64))}}),T$={class:"flex h-10 items-center p-2"},O$=e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"},null,-1),Qt=e.defineComponent({__name:"group",props:{title:{default:"标题"}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",T$,[O$,e.createTextVNode(" "+e.toDisplayString(r.title),1)]),e.renderSlot(r.$slots,"default")],64))}}),Jh=t=>(e.pushScopeId("data-v-4ead6d2f"),t=t(),e.popScopeId(),t),I$=["src"],z$={key:1,class:"pt-4 pb-4"},R$=[Jh(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Jh(()=>e.createElementVNode("i",{class:"ri-image-add-line text-6xl"},null,-1))],M$=e.defineComponent({__name:"stageSetting",setup(t){const r=Re(),{proxy:n}=e.getCurrentInstance(),{resetUrl:o}=n.$globalUtils,a=async i=>{const l=new FormData;l.append("file",i.file);const s=await n.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",l,{headers:{"Content-Type":"multipart/form-data",loading:!0}});s&&(r.widgetConfg.config.backgroundImage=s.data.link)};return(i,l)=>(e.openBlock(),e.createBlock(e.unref(v.ElForm),{"label-position":"left",size:"small","label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"整体布局"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"尺寸"},{default:e.withCtx(()=>[e.createTextVNode("1920 * 1080")]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景图"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElUpload),{drag:"",limit:1,"http-request":a,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(r).widgetConfg.config.backgroundImage?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("img",{class:"max-h-40 object-contain",src:e.unref(o)(e.unref(r).widgetConfg.config.backgroundImage)},null,8,I$),e.createElementVNode("i",{class:"ri-close-circle-line absolute right-4 top-4 text-xl",onClick:l[0]||(l[0]=e.withModifiers(s=>e.unref(r).widgetConfg.config.backgroundImage=null,["stop"]))})],64)):(e.openBlock(),e.createElementBlock("div",z$,R$))]),_:1})]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).widgetConfg.config.backgroundColor,"onUpdate:modelValue":l[1]||(l[1]=s=>e.unref(r).widgetConfg.config.backgroundColor=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}))}}),jz="",A$=Be(M$,[["__scopeId","data-v-4ead6d2f"]]),er=e.defineComponent({__name:"decorationSetting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"主颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.decorationColor1,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.decorationColor1=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"副颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.decorationColor2,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.decorationColor2=a)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(r).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:0,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(r).customize.reverse,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.reverse=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:1,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.duration,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.duration=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0)}}),ve=e.defineComponent({__name:"setting",setup(t){const{proxy:r}=e.getCurrentInstance(),n=e.inject("widgetConfig");return(o,a)=>e.unref(n)?(e.openBlock(),e.createBlock(e.unref(v.ElForm),{key:0,"label-position":"left",size:"small","label-width":"100px",class:"design-form"},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).name,"onUpdate:modelValue":a[0]||(a[0]=i=>e.unref(n).name=i)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(Qt,{title:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).w,"onUpdate:modelValue":a[1]||(a[1]=i=>e.unref(n).w=i),onBlur:a[2]||(a[2]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).h,"onUpdate:modelValue":a[3]||(a[3]=i=>e.unref(n).h=i),onBlur:a[4]||(a[4]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"x轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).x,"onUpdate:modelValue":a[5]||(a[5]=i=>e.unref(n).x=i),onBlur:a[6]||(a[6]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"y轴坐标"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).y,"onUpdate:modelValue":a[7]||(a[7]=i=>e.unref(n).y=i),onBlur:a[8]||(a[8]=i=>e.unref(r).$baseEventBus.emit("update-rect"))},null,8,["modelValue"])]),_:1})]),_:1}),e.renderSlot(o.$slots,"default")]),_:3})):e.createCommentVNode("",!0)}}),L$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),F$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),j$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),P$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),U$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),W$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),G$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),H$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Y$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),X$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),q$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(er)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),zt=e.defineComponent({__name:"borderSetting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"基础"},{default:e.withCtx(()=>[Object.keys(e.unref(r).customize).includes("title")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:0,label:"标题"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(r).customize.title,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.title=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("titleWidth")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:1,label:"标题宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.titleWidth,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.titleWidth=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElFormItem),{label:"边框主颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.borderMainColor,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.borderMainColor=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"边框副颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.borderSecondaryColor,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.borderSecondaryColor=a)},null,8,["modelValue"])]),_:1}),Object.keys(e.unref(r).customize).includes("reverse")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:2,label:"是否反转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(r).customize.reverse,"onUpdate:modelValue":o[4]||(o[4]=a=>e.unref(r).customize.reverse=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),Object.keys(e.unref(r).customize).includes("duration")?(e.openBlock(),e.createBlock(e.unref(v.ElFormItem),{key:3,label:"动画时长"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.duration,"onUpdate:modelValue":o[5]||(o[5]=a=>e.unref(r).customize.duration=a)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(v.ElFormItem),{label:"背景"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.backgroundColor,"onUpdate:modelValue":o[6]||(o[6]=a=>e.unref(r).customize.backgroundColor=a)},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),J$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),K$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Z$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),Q$=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),e2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),t2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),r2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),n2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),o2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),a2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),i2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),l2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),s2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(zt)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),c2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>{const a=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-input-number");return e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(a,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(r).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(r).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(r).customize.width,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(r).customize.width=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),d2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"地址配置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(r).customize.url,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.url=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),Kh=t=>(e.pushScopeId("data-v-ba7d8f9c"),t=t(),e.popScopeId(),t),f2={class:"p-3"},u2=["src"],p2={key:1,class:"pt-4 pb-4"},h2=[Kh(()=>e.createElementVNode("p",{class:"mb-5"},"拖拽文件上传图片",-1)),Kh(()=>e.createElementVNode("i",{class:"text-6xl ri-image-add-line"},null,-1))],m2=e.defineComponent({__name:"setting",setup(t){const r=[{label:"压缩",value:"fill"},{label:"填充",value:"cover"},{label:"自适应",value:"contain"},{label:"原始大小",value:"none"},{label:"展示最小",value:"scale-down"}],{proxy:n}=e.getCurrentInstance(),{resetUrl:o}=n.$globalUtils,a=e.inject("widgetConfig"),i=async l=>{const s=new FormData;s.append("file",l.file);const d=await n.$baseHttp.post("/api/ace-api/blade-resource/oss/endpoint/put-file",s,{headers:{"Content-Type":"multipart/form-data",loading:!0}});d&&(a.value.customize.url=d.data.link)};return(l,s)=>e.unref(a)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"图片配置"},{default:e.withCtx(()=>[e.createElementVNode("div",f2,[e.createVNode(e.unref(v.ElUpload),{drag:"",limit:1,"http-request":i,"show-file-list":!1,accept:"image/*"},{default:e.withCtx(()=>[e.unref(a).customize.url?(e.openBlock(),e.createElementBlock("img",{key:0,class:"max-h-40",src:e.unref(o)(e.unref(a).customize.url)},null,8,u2)):(e.openBlock(),e.createElementBlock("div",p2,h2))]),_:1})]),e.createVNode(e.unref(v.ElFormItem),{label:"地址"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(a).customize.url,"onUpdate:modelValue":s[0]||(s[0]=d=>e.unref(a).customize.url=d)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"展示方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(a).customize.fit,"onUpdate:modelValue":s[1]||(s[1]=d=>e.unref(a).customize.fit=d)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,d=>e.createVNode(e.unref(v.ElOption),{key:d.value,label:d.label,value:d.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),gR="",g2=Object.freeze(Object.defineProperty({__proto__:null,default:Be(m2,[["__scopeId","data-v-ba7d8f9c"]])},Symbol.toStringTag,{value:"Module"})),y2=e.createElementVNode("i",{class:"ri-arrow-right-fill ml-2 mr-2"},null,-1),Ys=e.defineComponent({__name:"text",setup(t){const r=[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],n=e.inject("widgetConfig");return(o,a)=>e.unref(n)?(e.openBlock(),e.createBlock(Qt,{key:0,title:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"文本"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.title,"onUpdate:modelValue":a[0]||(a[0]=i=>e.unref(n).customize.title=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.fontSize,"onUpdate:modelValue":a[1]||(a[1]=i=>e.unref(n).customize.fontSize=i)},{suffix:e.withCtx(()=>[e.createTextVNode("px")]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字权重"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(n).customize.fontWeight,"onUpdate:modelValue":a[2]||(a[2]=i=>e.unref(n).customize.fontWeight=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字间距"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(n).customize.letterSpacing,"onUpdate:modelValue":a[3]||(a[3]=i=>e.unref(n).customize.letterSpacing=i)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字对齐方式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(n).customize.textAlign,"onUpdate:modelValue":a[4]||(a[4]=i=>e.unref(n).customize.textAlign=i)},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,i=>e.createVNode(e.unref(v.ElOption),{key:i.value,label:i.label,value:i.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadioGroup),{modelValue:e.unref(n).customize.colorPosition,"onUpdate:modelValue":a[5]||(a[5]=i=>e.unref(n).customize.colorPosition=i)},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadio),{value:"top",label:"top"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(v.ElRadio),{value:"left",label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"文字渐变颜色"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(n).customize.startColor,"onUpdate:modelValue":a[6]||(a[6]=i=>e.unref(n).customize.startColor=i),showInput:!1},null,8,["modelValue"]),y2,e.createVNode(xt,{modelValue:e.unref(n).customize.endColor,"onUpdate:modelValue":a[7]||(a[7]=i=>e.unref(n).customize.endColor=i),showInput:!1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)}}),b2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),_2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElFormItem),{label:"渐变方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadioGroup),{modelValue:e.unref(r).customize.colorPosition,"onUpdate:modelValue":o[0]||(o[0]=a=>e.unref(r).customize.colorPosition=a)},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElRadio),{value:"bottom",label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("上下")]),_:1}),e.createVNode(e.unref(v.ElRadio),{value:"right",label:"right"},{default:e.withCtx(()=>[e.createTextVNode("左右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"边角宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(r).customize.borderRadius,"onUpdate:modelValue":o[1]||(o[1]=a=>e.unref(r).customize.borderRadius=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[2]||(o[2]=a=>e.unref(r).customize.gradientColor0=a)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(v.ElFormItem),{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[3]||(o[3]=a=>e.unref(r).customize.gradientColor1=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}})},Symbol.toStringTag,{value:"Module"})),w2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),C2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){return e.inject("widgetConfig"),(r,n)=>(e.openBlock(),e.createBlock(ve,null,{default:e.withCtx(()=>[e.createVNode(Ys)]),_:1}))}})},Symbol.toStringTag,{value:"Module"})),S2=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"setting",setup(t){const r=e.inject("widgetConfig");return(n,o)=>{const a=e.resolveComponent("el-form-item"),i=e.resolveComponent("el-input-number");return e.unref(r)?(e.openBlock(),e.createBlock(ve,{key:0},{default:e.withCtx(()=>[e.createVNode(Qt,{title:"基础"},{default:e.withCtx(()=>[e.createVNode(a,{label:"背景色一"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor0,"onUpdate:modelValue":o[0]||(o[0]=l=>e.unref(r).customize.gradientColor0=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"背景色二"},{default:e.withCtx(()=>[e.createVNode(xt,{modelValue:e.unref(r).customize.gradientColor1,"onUpdate:modelValue":o[1]||(o[1]=l=>e.unref(r).customize.gradientColor1=l)},null,8,["modelValue"])]),_:1}),e.createVNode(a,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:e.unref(r).customize.height,"onUpdate:modelValue":o[2]||(o[2]=l=>e.unref(r).customize.height=l)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0)}}})},Symbol.toStringTag,{value:"Module"})),sr={lengendX:[{label:"靠左",value:"left"},{label:"居中",value:"center"},{label:"靠右",value:"right"}],lengendY:[{label:"靠上",value:"top"},{label:"居中",value:"center"},{label:"靠下",value:"bottom"}],orient:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}],shape:[{label:"圆形",value:"circle"},{label:"方形",value:"rect"},{label:"圆角方形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"钢笔形",value:"pin"},{label:"箭头形",value:"arrow"}],xposition:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"}],yposition:[{label:"左侧",value:"left"},{label:"右侧",value:"right"}],lineStyle:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],category:[{label:"数据轴",value:"value"},{label:"类目轴",value:"category"}]},x2={class:"flex w-full flex-col justify-start"},v2={key:0,class:"w-16 font-bold flex items-center"},E2=e.createElementVNode("span",{class:"bg-color-primary mr-2 w-1 h-4"},null,-1),V2={class:"flex-1 flex-wrap flex"},k2=e.createElementVNode("div",{class:"h-4"},null,-1),fe=e.defineComponent({__name:"setting-item-box",props:{name:{default:""}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",x2,[r.name?(e.openBlock(),e.createElementBlock("div",v2,[E2,e.createTextVNode(" "+e.toDisplayString(r.name),1)])):e.createCommentVNode("",!0),e.createElementVNode("div",V2,[e.renderSlot(r.$slots,"default")])]),k2],64))}}),N2={class:"w-1/2 pr-2 mt-2"},$2={class:"text-xs mb-2"},P=e.defineComponent({__name:"setting-item",props:{name:{default:""}},setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("div",N2,[e.createElementVNode("div",$2,e.toDisplayString(r.name),1),e.renderSlot(r.$slots,"default")]))}}),D2=e.defineComponent({__name:"setting-common",props:{option:{default:{}},type:{default:0}},setup(t){const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor,a=[{label:"横向",value:"horizontal"},{label:"纵向",value:"vertical"}];return e.watch(()=>r.option.custom,i=>{window.echartCustomOps.custom=i,r.option.tooltip&&(r.option.tooltip.valueFormatter=l=>{const s=window.echartCustomOps.custom;return`${s.prefix??""}${Number(l).toFixed(s.toFixed)}${s.suffix??""}`}),r.option.yAxis&&(r.option.yAxis.axisLabel.formatter=`${i.prefix??""}{value}${i.suffix??""}`)},{deep:!0}),e.watch(()=>r.option.showScroll,i=>{if(i)r.option.dataZoom=[{type:"slider",backgroundColor:"#eef8fd",fillerColor:"#14b1f8",borderColor:"#eef8fd",startValue:0,endValue:5,filterMode:"",showDetail:!1,width:"90%",height:10,handleSize:30,left:"5%",bottom:15},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseWheel:!0,moveOnMouseMove:!0}];else{const l=r.option.series;r.option.series=[],r.option.direction="",setTimeout(()=>{delete r.option.dataZoom,r.option.series=l})}}),e.watch(()=>r.option.direction,i=>{r.option.dataZoom.forEach((l,s)=>{i=="vertical"?l.yAxisIndex=[0]:delete l.yAxisIndex})}),(i,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.option.grid?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:0,title:"容器"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"左侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.left,"onUpdate:modelValue":l[0]||(l[0]=s=>i.option.grid.left=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"右侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.right,"onUpdate:modelValue":l[1]||(l[1]=s=>i.option.grid.right=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"上侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.top,"onUpdate:modelValue":l[2]||(l[2]=s=>i.option.grid.top=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"下侧距离"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.grid.bottom,"onUpdate:modelValue":l[3]||(l[3]=s=>i.option.grid.bottom=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"自适应"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.grid.containLabel,"onUpdate:modelValue":l[4]||(l[4]=s=>i.option.grid.containLabel=s)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),[1,3,5].includes(i.type)?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:1,title:"滚动条"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.showScroll,"onUpdate:modelValue":l[5]||(l[5]=s=>i.option.showScroll=s)},null,8,["modelValue"])]),_:1})]),_:1}),i.option.showScroll?(e.openBlock(),e.createBlock(fe,{key:0,name:"参数"},{default:e.withCtx(()=>[e.createVNode(P,{name:"滚动条方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.direction,"onUpdate:modelValue":l[6]||(l[6]=s=>i.option.direction=s),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,s=>e.createVNode(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"范围结束值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.dataZoom[0].endValue,"onUpdate:modelValue":l[7]||(l[7]=s=>i.option.dataZoom[0].endValue=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"拖拽宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].handleSize,"onUpdate:modelValue":l[8]||(l[8]=s=>i.option.dataZoom[0].handleSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].width,"onUpdate:modelValue":l[9]||(l[9]=s=>i.option.dataZoom[0].width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].height,"onUpdate:modelValue":l[10]||(l[10]=s=>i.option.dataZoom[0].height=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"上"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].top,"onUpdate:modelValue":l[11]||(l[11]=s=>i.option.dataZoom[0].top=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"右"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].right,"onUpdate:modelValue":l[12]||(l[12]=s=>i.option.dataZoom[0].right=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"下"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].bottom,"onUpdate:modelValue":l[13]||(l[13]=s=>i.option.dataZoom[0].bottom=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"左"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.dataZoom[0].left,"onUpdate:modelValue":l[14]||(l[14]=s=>i.option.dataZoom[0].left=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].backgroundColor,"onUpdate:modelValue":l[15]||(l[15]=s=>i.option.dataZoom[0].backgroundColor=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"选中范围颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].fillerColor,"onUpdate:modelValue":l[16]||(l[16]=s=>i.option.dataZoom[0].fillerColor=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"边框颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.dataZoom[0].borderColor,"onUpdate:modelValue":l[17]||(l[17]=s=>i.option.dataZoom[0].borderColor=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),i.option.legend?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:2,title:"图例"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.legend.show,"onUpdate:modelValue":l[18]||(l[18]=s=>i.option.legend.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"字体颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.legend.textStyle.color,"onUpdate:modelValue":l[19]||(l[19]=s=>i.option.legend.textStyle.color=s)},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.textStyle.fontSize,"onUpdate:modelValue":l[20]||(l[20]=s=>i.option.legend.textStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"x轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.x,"onUpdate:modelValue":l[21]||(l[21]=s=>i.option.legend.x=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lengendX,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"y轴"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.y,"onUpdate:modelValue":l[22]||(l[22]=s=>i.option.legend.y=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lengendY,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"方向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.orient,"onUpdate:modelValue":l[23]||(l[23]=s=>i.option.legend.orient=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).orient,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),i.option.legend.icon?(e.openBlock(),e.createBlock(P,{key:0,name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.legend.icon,"onUpdate:modelValue":l[24]||(l[24]=s=>i.option.legend.icon=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).shape,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(P,{name:"宽"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.itemWidth,"onUpdate:modelValue":l[25]||(l[25]=s=>i.option.legend.itemWidth=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"高"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.legend.itemHeight,"onUpdate:modelValue":l[26]||(l[26]=s=>i.option.legend.itemHeight=s),size:"small"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.xAxis?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:3,title:"x轴"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.show,"onUpdate:modelValue":l[27]||(l[27]=s=>i.option.xAxis.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.type,"onUpdate:modelValue":l[28]||(l[28]=s=>i.option.xAxis.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).category,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.xAxis.min,"onUpdate:modelValue":l[29]||(l[29]=s=>i.option.xAxis.min=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.xAxis.max,"onUpdate:modelValue":l[30]||(l[30]=s=>i.option.xAxis.max=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.position,"onUpdate:modelValue":l[31]||(l[31]=s=>i.option.xAxis.position=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).xposition,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.inverse,"onUpdate:modelValue":l[32]||(l[32]=s=>i.option.xAxis.inverse=s)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.fontSize,"onUpdate:modelValue":l[33]||(l[33]=s=>i.option.xAxis.axisLabel.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.interval,"onUpdate:modelValue":l[34]||(l[34]=s=>i.option.xAxis.axisLabel.interval=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.axisLabel.rotate,"onUpdate:modelValue":l[35]||(l[35]=s=>i.option.xAxis.axisLabel.rotate=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.axisLabel.color,"onUpdate:modelValue":l[36]||(l[36]=s=>i.option.xAxis.axisLabel.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(P,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.xAxis.name,"onUpdate:modelValue":l[37]||(l[37]=s=>i.option.xAxis.name=s),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[38]||(l[38]=s=>i.option.xAxis.nameTextStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.nameTextStyle.color,"onUpdate:modelValue":l[39]||(l[39]=s=>i.option.xAxis.nameTextStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.xAxis.splitLine.show,"onUpdate:modelValue":l[40]||(l[40]=s=>i.option.xAxis.splitLine.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.xAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[41]||(l[41]=s=>i.option.xAxis.splitLine.lineStyle.width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.xAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[42]||(l[42]=s=>i.option.xAxis.splitLine.lineStyle.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lineStyle,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.xAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[43]||(l[43]=s=>i.option.xAxis.splitLine.lineStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.yAxis?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:4,title:"y轴"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.show,"onUpdate:modelValue":l[44]||(l[44]=s=>i.option.yAxis.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.type,"onUpdate:modelValue":l[45]||(l[45]=s=>i.option.yAxis.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).category,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最小值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.yAxis.min,"onUpdate:modelValue":l[46]||(l[46]=s=>i.option.yAxis.min=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMin",value:"dataMin"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大值"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{"allow-create":"",filterable:"",clearable:"",modelValue:i.option.yAxis.max,"onUpdate:modelValue":l[47]||(l[47]=s=>i.option.yAxis.max=s),size:"small","value-on-clear":null},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElOption),{label:"dataMax",value:"dataMax"})]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.position,"onUpdate:modelValue":l[48]||(l[48]=s=>i.option.yAxis.position=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).yposition,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"反向"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.inverse,"onUpdate:modelValue":l[49]||(l[49]=s=>i.option.yAxis.inverse=s)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.fontSize,"onUpdate:modelValue":l[50]||(l[50]=s=>i.option.yAxis.axisLabel.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"间隔"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.interval,"onUpdate:modelValue":l[51]||(l[51]=s=>i.option.yAxis.axisLabel.interval=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.axisLabel.rotate,"onUpdate:modelValue":l[52]||(l[52]=s=>i.option.yAxis.axisLabel.rotate=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.axisLabel.color,"onUpdate:modelValue":l[53]||(l[53]=s=>i.option.yAxis.axisLabel.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"单位"},{default:e.withCtx(()=>[e.createVNode(P,{name:"名称"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.yAxis.name,"onUpdate:modelValue":l[54]||(l[54]=s=>i.option.yAxis.name=s),size:"small",placeholder:"请输入单位"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.nameTextStyle.fontSize,"onUpdate:modelValue":l[55]||(l[55]=s=>i.option.yAxis.nameTextStyle.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.nameTextStyle.color,"onUpdate:modelValue":l[56]||(l[56]=s=>i.option.yAxis.nameTextStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(P,{name:"显示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:i.option.yAxis.splitLine.show,"onUpdate:modelValue":l[57]||(l[57]=s=>i.option.yAxis.splitLine.show=s)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"粗细"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.yAxis.splitLine.lineStyle.width,"onUpdate:modelValue":l[58]||(l[58]=s=>i.option.yAxis.splitLine.lineStyle.width=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:i.option.yAxis.splitLine.lineStyle.type,"onUpdate:modelValue":l[59]||(l[59]=s=>i.option.yAxis.splitLine.lineStyle.type=s),size:"small"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(sr).lineStyle,s=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:s.value,label:s.label,value:s.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.yAxis.splitLine.lineStyle.color,"onUpdate:modelValue":l[60]||(l[60]=s=>i.option.yAxis.splitLine.lineStyle.color=s)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1})):e.createCommentVNode("",!0),i.option.custom&&![2].includes(i.type)?(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{key:5,title:"显示"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.custom.prefix,"onUpdate:modelValue":l[61]||(l[61]=s=>i.option.custom.prefix=s),size:"small",placeholder:"前缀"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:i.option.custom.suffix,"onUpdate:modelValue":l[62]||(l[62]=s=>i.option.custom.suffix=s),size:"small",placeholder:"后缀"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:i.option.custom.toFixed,"onUpdate:modelValue":l[63]||(l[63]=s=>i.option.custom.toFixed=s),size:"small"},null,8,["modelValue"])]),_:1}),i.type==7?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:i.option.custom.fontSize,"onUpdate:modelValue":l[64]||(l[64]=s=>i.option.custom.fontSize=s),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),modelValue:i.option.custom.color,"onUpdate:modelValue":l[65]||(l[65]=s=>i.option.custom.color=s)},null,8,["predefine","modelValue"])]),_:1})],64)):e.createCommentVNode("",!0)]),_:1})]),_:1})):e.createCommentVNode("",!0)],64))}}),xR="",An=Be(D2,[["__scopeId","data-v-c167b28d"]]),B2={id:"sortable"},T2={class:"ml-2"},O2={class:"flex-1 flex justify-end"},I2=["onClick"],z2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),Zh=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:l}=mt(),{seriesItem:s,init:d,customSeriesData:c}=Ps(),f=e.ref(null),u=e.ref(JSON.parse(JSON.stringify(Object.values(c.value)[0]??s)));e.nextTick(()=>{f.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:m,oldIndex:y}){const g=n.option.dataShow.y,b=g.splice(y,1)[0];g.splice(m,0,b);const _=n.option.series.splice(y,1)[0];n.option.series.splice(m,0,_)}})}),e.onBeforeUnmount(()=>{var m;e.unref(f)&&((m=e.unref(f))==null||m.destroy())}),e.watch(u,()=>p(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{d(n.option,()=>{p()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await l(n.type,n.option.dataShow.x)});const p=()=>{const m=u.value,y=g=>{g.barWidth=m.barWidth,g.stack=m.stack,g.label.show=m.label.show,g.label.color=m.label.color,g.label.position=m.label.position,g.label.fontSize=m.label.fontSize,g.label.rotate=m.label.rotate,g.itemStyle.borderRadius=[m.borderRadiusNumber,m.borderRadiusNumber,0,0]};n.option.series.forEach(g=>{y(g)}),Object.keys(c.value).forEach(g=>{y(e.unref(c)[g])}),window.customSeriesData=c.value},h=m=>{const{hide:y}=n.option.dataShow;y.includes(m)?y.splice(y.findIndex(g=>g==m),1):y.push(m)};return(m,y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:m.option,type:3},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).barWidth,"onUpdate:modelValue":y[0]||(y[0]=g=>e.unref(u).barWidth=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"堆栈"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).stack,"onUpdate:modelValue":y[1]||(y[1]=g=>e.unref(u).stack=g)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(u).borderRadiusNumber,"onUpdate:modelValue":y[2]||(y[2]=g=>e.unref(u).borderRadiusNumber=g),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":y[3]||(y[3]=g=>e.unref(u).label.show=g)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":y[4]||(y[4]=g=>e.unref(u).label.position=g),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,g=>e.createVNode(e.unref(v.ElOption),{key:g.value,label:g.label,value:g.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).label.rotate,"onUpdate:modelValue":y[5]||(y[5]=g=>e.unref(u).label.rotate=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":y[6]||(y[6]=g=>e.unref(u).label.fontSize=g),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).label.color,"onUpdate:modelValue":y[7]||(y[7]=g=>e.unref(u).label.color=g)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:m.option.dataShow.x,"onUpdate:modelValue":y[8]||(y[8]=g=>m.option.dataShow.x=g),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,g=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:g.comment,label:g.comment,value:g.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",B2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.option.dataShow.y,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"sort-item w-full"},[e.unref(c)[g]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(c)[g].itemStyle.color,"onUpdate:modelValue":_=>e.unref(c)[g].itemStyle.color=_},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(e.unref(c)[g].itemStyle.color)+" ",1),e.createElementVNode("span",T2,e.toDisplayString(g),1),e.createElementVNode("div",O2,[e.createElementVNode("i",{onClick:_=>h(g),class:e.normalizeClass([m.option.dataShow.hide.includes(g)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,I2),z2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),R2={id:"sortable"},M2={class:"ml-2"},A2={class:"flex-1 flex justify-end"},L2=["onClick"],F2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),Qh=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=ni(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:y,oldIndex:g}){const b=n.option.dataShow.y,_=b.splice(g,1)[0];b.splice(y,0,_);const w=n.option.series.splice(g,1)[0];n.option.series.splice(y,0,w)}})}),e.onBeforeUnmount(()=>{var y;e.unref(u)&&((y=e.unref(u))==null||y.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const h=()=>{const y=JSON.parse(JSON.stringify(p.value)),g=b=>{Object.keys(y).forEach(_=>{_=="lineStyle"?Object.keys(b[_]).forEach(w=>{w!="color"&&(b[_][w]=y[_][w])}):b[_]=y[_]})};n.option.series.forEach(b=>{g(b)}),Object.keys(f.value).forEach(b=>{g(e.unref(f)[b])}),window.customSeriesData=f.value},m=y=>{const{hide:g}=n.option.dataShow;g.includes(y)?g.splice(g.findIndex(b=>b==y),1):g.push(y)};return(y,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:y.option,type:1},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).lineStyle.width,"onUpdate:modelValue":g[0]||(g[0]=b=>e.unref(p).lineStyle.width=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).lineStyle.type,"onUpdate:modelValue":g[1]||(g[1]=b=>e.unref(p).lineStyle.type=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,b=>e.createVNode(e.unref(v.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":g[2]||(g[2]=b=>e.unref(p).symbolSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).smooth,"onUpdate:modelValue":g[3]||(g[3]=b=>e.unref(p).smooth=b)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":g[4]||(g[4]=b=>e.unref(p).label.show=b)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":g[5]||(g[5]=b=>e.unref(p).label.position=b),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,b=>e.createVNode(e.unref(v.ElOption),{key:b.value,label:b.label,value:b.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":g[6]||(g[6]=b=>e.unref(p).label.rotate=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":g[7]||(g[7]=b=>e.unref(p).label.fontSize=b),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":g[8]||(g[8]=b=>e.unref(p).label.color=b)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:y.option.dataShow.x,"onUpdate:modelValue":g[9]||(g[9]=b=>y.option.dataShow.x=b),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,b=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:b.comment,label:b.comment,value:b.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",R2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.option.dataShow.y,(b,_)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"sort-item w-full"},[e.unref(f)[b]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,size:"small",predefine:e.unref(a),modelValue:e.unref(f)[b].lineStyle.color,"onUpdate:modelValue":w=>e.unref(f)[b].lineStyle.color=w},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",M2,e.toDisplayString(b),1),e.createElementVNode("div",A2,[e.createElementVNode("i",{onClick:w=>m(b),class:e.normalizeClass([y.option.dataShow.hide.includes(b)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,L2),F2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),em=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"外侧",value:"outside"},{label:"内部",value:"inside"},{label:"中心",value:"center"}],l=[{label:"数据名",value:"{b}"},{label:"百分比",value:"{d}"},{label:"列名:百分比",value:"{b}:{d}%"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Us(),u=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.watch(u,()=>p(),{deep:!0}),e.watch(()=>n.option.dataShow,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x),c(n.option,()=>{p()})},{deep:!0,immediate:n.immediate});const p=()=>{const h=u.value,m=y=>{Object.keys(h).forEach(g=>{y[g]=h[g]})};n.option.series.forEach(y=>{m(y)}),Object.keys(f.value).forEach(y=>{m(e.unref(f)[y])}),window.customSeriesData=f.value};return(h,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:h.option,type:2},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"饼图配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(P,{name:"半径1"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).radius[0],"onUpdate:modelValue":m[0]||(m[0]=y=>e.unref(u).radius[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"半径2"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).radius[1],"onUpdate:modelValue":m[1]||(m[1]=y=>e.unref(u).radius[1]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"距离1"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).center[0],"onUpdate:modelValue":m[2]||(m[2]=y=>e.unref(u).center[0]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"距离2"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(u).center[1],"onUpdate:modelValue":m[3]||(m[3]=y=>e.unref(u).center[1]=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"南丁格尔图"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).roseType,"onUpdate:modelValue":m[4]||(m[4]=y=>e.unref(u).roseType=y)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).label.show,"onUpdate:modelValue":m[5]||(m[5]=y=>e.unref(u).label.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"引导线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(u).labelLine.show,"onUpdate:modelValue":m[6]||(m[6]=y=>e.unref(u).labelLine.show=y)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"展示类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.formatter,"onUpdate:modelValue":m[7]||(m[7]=y=>e.unref(u).label.formatter=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,y=>e.createVNode(e.unref(v.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(u).label.position,"onUpdate:modelValue":m[8]||(m[8]=y=>e.unref(u).label.position=y),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,y=>e.createVNode(e.unref(v.ElOption),{key:y.value,label:y.label,value:y.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{predefine:e.unref(a),modelValue:e.unref(u).label.fontSize,"onUpdate:modelValue":m[9]||(m[9]=y=>e.unref(u).label.fontSize=y),size:"small"},null,8,["predefine","modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).label.color,"onUpdate:modelValue":m[10]||(m[10]=y=>e.unref(u).label.color=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderRadius,"onUpdate:modelValue":m[11]||(m[11]=y=>e.unref(u).itemStyle.borderRadius=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(u).itemStyle.borderWidth,"onUpdate:modelValue":m[12]||(m[12]=y=>e.unref(u).itemStyle.borderWidth=y),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(u).itemStyle.borderColor,"onUpdate:modelValue":m[13]||(m[13]=y=>e.unref(u).itemStyle.borderColor=y)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"维度",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:h.option.dataShow.x,"onUpdate:modelValue":m[14]||(m[14]=y=>h.option.dataShow.x=y),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,y=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:y.comment,label:y.comment,value:y.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"统计",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:h.option.dataShow.y,"onUpdate:modelValue":m[15]||(m[15]=y=>h.option.dataShow.y=y),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.y,y=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:y.showLabel,label:y.showLabel,value:y.showLabel},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1})],64))}}),j2={id:"sortable"},P2={class:"ml-2"},U2={class:"flex-1 flex justify-end items-center"},W2={class:"cursor-pointer mr-2 text-xs"},G2=["onClick"],H2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),tm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],{setChartData:s}=mt(),{seriesLineItem:d,seriesBarItem:c,init:f,customSeriesData:u}=Ws(),p=e.ref(null),h=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(_=>_.type=="bar")??c))),m=e.ref(JSON.parse(JSON.stringify(Object.values(u.value).find(_=>_.type=="line")??d)));e.nextTick(()=>{p.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:_,oldIndex:w}){const C=n.option.dataShow.y,S=C.splice(w,1)[0];C.splice(_,0,S);const x=n.option.series.splice(w,1)[0];n.option.series.splice(_,0,x)}})}),e.onBeforeUnmount(()=>{var _;e.unref(p)&&((_=e.unref(p))==null||_.destroy())}),e.watch([h,m],()=>g(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{f(n.option,()=>{g()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const y=(_,w)=>{var S,x,E,V;if(e.unref(u)[w].type!=_){const $=JSON.parse(JSON.stringify({..._=="line"?m.value:h.value})),B=((x=(S=e.unref(u)[w])==null?void 0:S.lineStyle)==null?void 0:x.color)??((V=(E=e.unref(u)[w])==null?void 0:E.itemStyle)==null?void 0:V.color);$[$!=null&&$.lineStyle?"lineStyle":"itemStyle"].color=B,u.value[w]=$,f(n.option,()=>{})}},g=()=>{const _=h.value,w=m.value,C=S=>{const x=JSON.parse(JSON.stringify(S.type=="bar"?_:w));Object.keys(x).forEach(E=>{["lineStyle","itemStyle"].includes(E)?Object.keys(S[E]).forEach(V=>{V=="borderRadius"?S[E][V]=[_.borderRadiusNumber,_.borderRadiusNumber,0,0]:V!="color"&&(S[E][V]=x[E][V])}):S[E]=x[E]})};n.option.series.forEach(S=>{C(S)}),Object.keys(u.value).forEach(S=>{C(e.unref(u)[S])}),window.customSeriesData=u.value},b=_=>{const{hide:w}=n.option.dataShow;w.includes(_)?w.splice(w.findIndex(C=>C==_),1):w.push(_)};return(_,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:_.option,type:5},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"柱状配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).barWidth,"onUpdate:modelValue":w[0]||(w[0]=C=>e.unref(h).barWidth=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"圆角"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(h).borderRadiusNumber,"onUpdate:modelValue":w[1]||(w[1]=C=>e.unref(h).borderRadiusNumber=C),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(h).label.show,"onUpdate:modelValue":w[2]||(w[2]=C=>e.unref(h).label.show=C)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(h).label.position,"onUpdate:modelValue":w[3]||(w[3]=C=>e.unref(h).label.position=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).label.rotate,"onUpdate:modelValue":w[4]||(w[4]=C=>e.unref(h).label.rotate=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(h).label.fontSize,"onUpdate:modelValue":w[5]||(w[5]=C=>e.unref(h).label.fontSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(h).label.color,"onUpdate:modelValue":w[6]||(w[6]=C=>e.unref(h).label.color=C)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"折线配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"线条"},{default:e.withCtx(()=>[e.createVNode(P,{name:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).lineStyle.width,"onUpdate:modelValue":w[7]||(w[7]=C=>e.unref(m).lineStyle.width=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"类型"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(m).lineStyle.type,"onUpdate:modelValue":w[8]||(w[8]=C=>e.unref(m).lineStyle.type=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"实心点"},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).symbolSize,"onUpdate:modelValue":w[9]||(w[9]=C=>e.unref(m).symbolSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"平滑"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(m).smooth,"onUpdate:modelValue":w[10]||(w[10]=C=>e.unref(m).smooth=C)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(m).label.show,"onUpdate:modelValue":w[11]||(w[11]=C=>e.unref(m).label.show=C)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(m).label.position,"onUpdate:modelValue":w[12]||(w[12]=C=>e.unref(m).label.position=C),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,C=>e.createVNode(e.unref(v.ElOption),{key:C.value,label:C.label,value:C.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).label.rotate,"onUpdate:modelValue":w[13]||(w[13]=C=>e.unref(m).label.rotate=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(m).label.fontSize,"onUpdate:modelValue":w[14]||(w[14]=C=>e.unref(m).label.fontSize=C),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(m).label.color,"onUpdate:modelValue":w[15]||(w[15]=C=>e.unref(m).label.color=C)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:_.option.dataShow.x,"onUpdate:modelValue":w[16]||(w[16]=C=>_.option.dataShow.x=C),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,C=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:C.comment,label:C.comment,value:C.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",j2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(_.option.dataShow.y,(C,S)=>(e.openBlock(),e.createElementBlock("div",{key:C,class:"sort-item w-full"},[e.unref(u)[C]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.unref(u)[C].type=="bar"?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(u)[C].itemStyle.color,"onUpdate:modelValue":x=>e.unref(u)[C].itemStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"])):(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:1,predefine:e.unref(a),size:"small",modelValue:e.unref(u)[C].lineStyle.color,"onUpdate:modelValue":x=>e.unref(u)[C].lineStyle.color=x},null,8,["predefine","modelValue","onUpdate:modelValue"]))],64)):e.createCommentVNode("",!0),e.createElementVNode("span",P2,e.toDisplayString(C),1),e.createElementVNode("div",U2,[e.unref(u)[C]?(e.openBlock(),e.createBlock(e.unref(v.ElDropdown),{key:0,onCommand:x=>y(x,C)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownItem),{command:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状")]),_:1}),e.createVNode(e.unref(v.ElDropdownItem),{command:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",W2,e.toDisplayString(e.unref(u)[C].type=="bar"?"柱状":"折线"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:x=>b(C),class:e.normalizeClass([_.option.dataShow.hide.includes(C)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,G2),H2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Y2={id:"sortable"},X2={class:"ml-2"},q2={class:"flex-1 flex justify-end items-center"},J2={class:"cursor-pointer mr-2 text-xs"},K2=["onClick"],Z2=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),rm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}],l=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Gs(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify(Object.values(f.value)[0]??d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:b}){const _=n.option.dataShow.y,w=_.splice(b,1)[0];_.splice(g,0,w);const C=n.option.series.splice(b,1)[0];n.option.series.splice(g,0,C)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch(()=>n.option.dataShow,()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x)});const h=()=>{const g=JSON.parse(JSON.stringify(p.value)),b=_=>{Object.keys(g).forEach(w=>{w!="type"&&(["itemStyle"].includes(w)||(_[w]=g[w]))})};n.option.series.forEach(_=>{b(_)}),Object.keys(f.value).forEach(_=>{b(e.unref(f)[_])}),window.customSeriesData=f.value},m=(g,b)=>{const _=e.unref(f)[b];_.type!=g&&(_.type=g,c(n.option,()=>{}))},y=g=>{const{hide:b}=n.option.dataShow;b.includes(g)?b.splice(b.findIndex(_=>_==g),1):b.push(g)};return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:g.option,type:6},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"散点图配置"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).symbolSize,"onUpdate:modelValue":b[0]||(b[0]=_=>e.unref(p).symbolSize=_),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标域"},{default:e.withCtx(()=>[e.createVNode(P,{name:"粗细(0不显示)"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).markArea.itemStyle.borderWidth,"onUpdate:modelValue":b[1]||(b[1]=_=>e.unref(p).markArea.itemStyle.borderWidth=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).markArea.itemStyle.borderType,"onUpdate:modelValue":b[2]||(b[2]=_=>e.unref(p).markArea.itemStyle.borderType=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,_=>e.createVNode(e.unref(v.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":b[3]||(b[3]=_=>e.unref(p).label.show=_)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":b[4]||(b[4]=_=>e.unref(p).label.position=_),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,_=>e.createVNode(e.unref(v.ElOption),{key:_.value,label:_.label,value:_.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":b[5]||(b[5]=_=>e.unref(p).label.rotate=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":b[6]||(b[6]=_=>e.unref(p).label.fontSize=_),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":b[7]||(b[7]=_=>e.unref(p).label.color=_)},null,8,["predefine","modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":b[8]||(b[8]=_=>g.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Y2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(_,w)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"sort-item w-full"},[e.unref(f)[_]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(a),size:"small",modelValue:e.unref(f)[_].itemStyle.color,"onUpdate:modelValue":C=>e.unref(f)[_].itemStyle.color=C},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",X2,e.toDisplayString(_),1),e.createElementVNode("div",q2,[e.unref(f)[_]?(e.openBlock(),e.createBlock(e.unref(v.ElDropdown),{key:0,onCommand:C=>m(C,_)},{dropdown:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownMenu),null,{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElDropdownItem),{command:"scatter"},{default:e.withCtx(()=>[e.createTextVNode("普通")]),_:1}),e.createVNode(e.unref(v.ElDropdownItem),{command:"effectScatter"},{default:e.withCtx(()=>[e.createTextVNode("特效")]),_:1})]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",J2,e.toDisplayString(e.unref(f)[_].type=="scatter"?"普通":"特效"),1)]),_:2},1032,["onCommand"])):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:C=>y(_),class:e.normalizeClass([g.option.dataShow.hide.includes(_)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,K2),Z2])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),Q2={id:"sortable"},eD={class:"flex-1 flex justify-end items-center"},tD=["onClick"],rD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),nm=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){var y;const r=Re(),n=t,{proxy:o}=e.getCurrentInstance(),a=o.$globalPreColor,i=[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"}],l=[{label:"多边形",value:"polygon"},{label:"圆形",value:"circle"}],{setChartData:s}=mt(),{seriesItem:d,init:c,customSeriesData:f}=Hs(),u=e.ref(null),p=e.ref(JSON.parse(JSON.stringify((y=e.unref(f))!=null&&y.type?f.value:d)));e.nextTick(()=>{u.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:g,oldIndex:b}){const _=n.option.dataShow.y,w=_.splice(b,1)[0];_.splice(g,0,w);const C=n.option.series.splice(b,1)[0];n.option.series.splice(g,0,C)}})}),e.onBeforeUnmount(()=>{var g;e.unref(u)&&((g=e.unref(u))==null||g.destroy())}),e.watch(p,()=>h(),{deep:!0}),e.watch([()=>n.option.dataShow.y,()=>n.option.dataShow.hide],()=>{c(n.option,()=>{h()})},{deep:!0,immediate:n.immediate}),e.watch(()=>n.option.dataShow.x,async()=>{n.option.dataset.source=await s(n.type,n.option.dataShow.x),c(n.option,()=>{h()})});const h=()=>{const g=p.value;Object.keys(n.option.series[0]).forEach(b=>{["areaStyle","label"].includes(b)&&(n.option.series[0][b]=g[b])}),f.value={...n.option.series[0],data:[]},window.customSeriesData=f.value},m=g=>{const{hide:b}=n.option.dataShow;b.includes(g)?b.splice(b.findIndex(_=>_==g),1):b.push(g)};return(g,b)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(An,{option:g.option,type:4},null,8,["option"]),e.createVNode(e.unref(v.ElCollapseItem),{title:"雷达图配置"},{default:e.withCtx(()=>{var _;return[e.createVNode(fe,{name:"样式"},{default:e.withCtx(()=>[e.createVNode(P,{name:"背景"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.splitArea.show,"onUpdate:modelValue":b[0]||(b[0]=w=>g.option.radar.splitArea.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"分割线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.splitLine.show,"onUpdate:modelValue":b[1]||(b[1]=w=>g.option.radar.splitLine.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.radar.shape,"onUpdate:modelValue":b[2]||(b[2]=w=>g.option.radar.shape=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,w=>e.createVNode(e.unref(v.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"坐标轴"},{default:e.withCtx(()=>[e.createVNode(P,{name:"轴线"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisLine.show,"onUpdate:modelValue":b[3]||(b[3]=w=>g.option.radar.axisLine.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"刻度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisTick.show,"onUpdate:modelValue":b[4]||(b[4]=w=>g.option.radar.axisTick.show=w)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"范围"},{default:e.withCtx(()=>[e.createVNode(P,{name:"最小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.radius[0],"onUpdate:modelValue":b[5]||(b[5]=w=>g.option.radar.radius[0]=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"最大"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.radius[1],"onUpdate:modelValue":b[6]||(b[6]=w=>g.option.radar.radius[1]=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"偏移"},{default:e.withCtx(()=>[e.createVNode(P,{name:"x"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.center[0],"onUpdate:modelValue":b[7]||(b[7]=w=>g.option.radar.center[0]=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"y"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:g.option.radar.center[1],"onUpdate:modelValue":b[8]||(b[8]=w=>g.option.radar.center[1]=w),size:"small"},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"指示器"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:g.option.radar.axisName.show,"onUpdate:modelValue":b[9]||(b[9]=w=>g.option.radar.axisName.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:g.option.radar.axisName.fontSize,"onUpdate:modelValue":b[10]||(b[10]=w=>g.option.radar.axisName.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:g.option.radar.axisName.color,"onUpdate:modelValue":b[11]||(b[11]=w=>g.option.radar.axisName.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),e.createVNode(fe,{name:"标签"},{default:e.withCtx(()=>[e.createVNode(P,{name:"展示"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSwitch),{modelValue:e.unref(p).label.show,"onUpdate:modelValue":b[12]||(b[12]=w=>e.unref(p).label.show=w)},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:e.unref(p).label.position,"onUpdate:modelValue":b[13]||(b[13]=w=>e.unref(p).label.position=w),size:"small"},{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(i,w=>e.createVNode(e.unref(v.ElOption),{key:w.value,label:w.label,value:w.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"旋转"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.rotate,"onUpdate:modelValue":b[14]||(b[14]=w=>e.unref(p).label.rotate=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).label.fontSize,"onUpdate:modelValue":b[15]||(b[15]=w=>e.unref(p).label.fontSize=w),size:"small"},null,8,["modelValue"])]),_:1}),e.createVNode(P,{name:"颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(a),modelValue:e.unref(p).label.color,"onUpdate:modelValue":b[16]||(b[16]=w=>e.unref(p).label.color=w)},null,8,["predefine","modelValue"])]),_:1})]),_:1}),(_=e.unref(p))!=null&&_.type?(e.openBlock(),e.createBlock(fe,{key:0,name:"系列"},{default:e.withCtx(()=>[e.createVNode(P,{name:"背景透明度"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(p).areaStyle.opacity,"onUpdate:modelValue":b[17]||(b[17]=w=>e.unref(p).areaStyle.opacity=w),min:0,max:1,size:"small",step:.1},null,8,["modelValue"])]),_:1})]),_:1})):e.createCommentVNode("",!0)]}),_:1}),e.createVNode(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"X轴",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElSelect),{modelValue:g.option.dataShow.x,"onUpdate:modelValue":b[18]||(b[18]=_=>g.option.dataShow.x=_),size:"small",style:{width:"100%"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r).getChartData.x,_=>(e.openBlock(),e.createBlock(e.unref(v.ElOption),{key:_.comment,label:_.comment,value:_.comment},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e.createVNode(P,{name:"Y轴",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",Q2,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.option.dataShow.y,(_,w)=>(e.openBlock(),e.createElementBlock("div",{key:_,class:"sort-item w-full"},[e.createElementVNode("span",null,e.toDisplayString(_),1),e.createElementVNode("div",eD,[e.createElementVNode("i",{onClick:C=>m(_),class:e.normalizeClass([g.option.dataShow.hide.includes(_)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,tD),rD])]))),128))])]),_:1})]),_:1})]),_:1})],64))}}),nD={id:"sortable"},oD={class:"ml-2"},aD={class:"flex-1 flex justify-end items-center"},iD=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),lD=["onClick"],sD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),om=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Re();const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor;mt();const{init:a,tableConfig:i,customSeriesData:l}=oi(),s=e.ref(null),d=e.ref(JSON.parse(JSON.stringify(i)));e.nextTick(()=>{s.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const h=r.option.dataShow.y,m=h.splice(p,1)[0];h.splice(u,0,m);const y=r.option.series.splice(p,1)[0];r.option.series.splice(u,0,y)}})}),e.onBeforeUnmount(()=>{var u;e.unref(s)&&((u=e.unref(s))==null||u.destroy())}),e.watch(d,()=>c(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{a(r.option)},{deep:!0,immediate:r.immediate});const c=()=>{},f=u=>{const{hide:p=[]}=r.option.dataShow;p.includes(u)?p.splice(p.findIndex(h=>h==u),1):p.push(u),r.option.dataShow.hide=p};return(u,p)=>{const h=e.resolveComponent("el-input");return e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(P,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",nD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(m,y)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"sort-item w-full"},[e.unref(l)[m]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].bgColor,"onUpdate:modelValue":g=>e.unref(l)[m].bgColor=g},null,8,["predefine","modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(v.ElColorPicker),{predefine:e.unref(o),size:"small",modelValue:e.unref(l)[m].color,"onUpdate:modelValue":g=>e.unref(l)[m].color=g},null,8,["predefine","modelValue","onUpdate:modelValue"])],64)):e.createCommentVNode("",!0),e.createElementVNode("span",oD,e.toDisplayString(m),1),e.createElementVNode("div",aD,[e.unref(l)[m]?(e.openBlock(),e.createBlock(e.unref(v.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[iD]),default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(l)[m].prefix,"onUpdate:modelValue":g=>e.unref(l)[m].prefix=g,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:e.unref(l)[m].suffix,"onUpdate:modelValue":g=>e.unref(l)[m].suffix=g,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(l)[m].toFixed,"onUpdate:modelValue":g=>e.unref(l)[m].toFixed=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"字体大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{modelValue:e.unref(l)[m].fontSize,"onUpdate:modelValue":g=>e.unref(l)[m].fontSize=g,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:g=>f(m),class:e.normalizeClass([(u.option.dataShow.hide??[]).includes(m)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,lD),sD])]))),128))])]),_:1})]),_:1})]),_:1})}}}),cD={id:"sortable"},dD={class:"ml-2"},fD={class:"flex-1 flex justify-end items-center"},uD=e.createElementVNode("i",{class:"ri-more-line mr-2 cursor-pointer"},null,-1),pD=["onClick"],hD=e.createElementVNode("i",{class:"ri-draggable sortable-handle cursor-move"},null,-1),am=e.defineComponent({__name:"config",props:{option:{default:{}},type:{default:""},immediate:{type:Boolean,default:!1}},setup(t){Re();const r=t,{proxy:n}=e.getCurrentInstance(),o=n.$globalPreColor;mt();const{init:a,tableConfig:i,customSeriesData:l}=oi(),s=e.ref(null),d=e.ref(JSON.parse(JSON.stringify(i)));e.nextTick(()=>{s.value=new le(document.getElementById("sortable"),{handle:".sortable-handle",onEnd({newIndex:u,oldIndex:p}){const h=r.option.dataShow.y,m=h.splice(p,1)[0];h.splice(u,0,m);const y=r.option.series.splice(p,1)[0];r.option.series.splice(u,0,y)}})}),e.onBeforeUnmount(()=>{var u;e.unref(s)&&((u=e.unref(s))==null||u.destroy())}),e.watch(d,()=>c(),{deep:!0}),e.watch(()=>r.option.dataShow,()=>{a(r.option)},{deep:!0,immediate:r.immediate});const c=()=>{},f=u=>{const{hide:p}=r.option.dataShow;p.includes(u)?p.splice(p.findIndex(h=>h==u),1):p.push(u)};return(u,p)=>(e.openBlock(),e.createBlock(e.unref(v.ElCollapseItem),{title:"数据",name:"data"},{default:e.withCtx(()=>[e.createVNode(fe,{name:"列名"},{default:e.withCtx(()=>[e.createVNode(P,{name:"",style:{width:"100%","margin-top":"10px"}},{default:e.withCtx(()=>[e.createElementVNode("div",cD,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.option.dataShow.y,(h,m)=>(e.openBlock(),e.createElementBlock("div",{key:h,class:"sort-item w-full"},[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(v.ElColorPicker),{key:0,predefine:e.unref(o),size:"small",modelValue:e.unref(l)[h].color,"onUpdate:modelValue":y=>e.unref(l)[h].color=y},null,8,["predefine","modelValue","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("span",dD,e.toDisplayString(h),1),e.createElementVNode("div",fD,[e.unref(l)[h]?(e.openBlock(),e.createBlock(e.unref(v.ElPopover),{key:0,width:400,trigger:"hover"},{reference:e.withCtx(()=>[uD]),default:e.withCtx(()=>[e.createVNode(fe,{name:""},{default:e.withCtx(()=>[e.createVNode(P,{name:"前缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(l)[h].prefix,"onUpdate:modelValue":y=>e.unref(l)[h].prefix=y,size:"small",placeholder:"前缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"后缀"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInput),{modelValue:e.unref(l)[h].suffix,"onUpdate:modelValue":y=>e.unref(l)[h].suffix=y,size:"small",placeholder:"后缀"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024),e.createVNode(P,{name:"保留小数"},{default:e.withCtx(()=>[e.createVNode(e.unref(v.ElInputNumber),{min:0,modelValue:e.unref(l)[h].toFixed,"onUpdate:modelValue":y=>e.unref(l)[h].toFixed=y,size:"small"},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024)]),_:2},1024)):e.createCommentVNode("",!0),e.createElementVNode("i",{onClick:y=>f(h),class:e.normalizeClass([u.option.dataShow.hide.includes(h)?"ri-eye-off-line":"ri-eye-line","mr-2 cursor-pointer"])},null,10,pD),hD])]))),128))])]),_:1})]),_:1})]),_:1}))}}),Gt={};for(let t=0;t<=3;t+=1){let r=null;if(t==0&&(r=Object.assign({"../decoration/decoration1/setting.vue":L$,"../decoration/decoration10/setting.vue":F$,"../decoration/decoration11/setting.vue":j$,"../decoration/decoration12/setting.vue":P$,"../decoration/decoration2/setting.vue":U$,"../decoration/decoration3/setting.vue":W$,"../decoration/decoration4/setting.vue":G$,"../decoration/decoration5/setting.vue":H$,"../decoration/decoration6/setting.vue":Y$,"../decoration/decoration8/setting.vue":X$,"../decoration/decoration9/setting.vue":q$})),t==1&&(r=Object.assign({"../border/border1/setting.vue":J$,"../border/border10/setting.vue":K$,"../border/border11/setting.vue":Z$,"../border/border12/setting.vue":Q$,"../border/border13/setting.vue":e2,"../border/border2/setting.vue":t2,"../border/border3/setting.vue":r2,"../border/border4/setting.vue":n2,"../border/border5/setting.vue":o2,"../border/border6/setting.vue":a2,"../border/border7/setting.vue":i2,"../border/border8/setting.vue":l2,"../border/border9/setting.vue":s2})),t==2&&(r=Object.assign({"../basic/horizontal-line/setting.vue":c2,"../basic/iframe/setting.vue":d2,"../basic/img/setting.vue":g2,"../basic/number/setting.vue":b2,"../basic/square/setting.vue":_2,"../basic/text/setting.vue":w2,"../basic/time/setting.vue":C2,"../basic/vertical-line/setting.vue":S2})),t==3&&(Gt[3]=Zh,Gt[2]=em,Gt[1]=Qh,Gt[4]=nm,Gt[5]=tm,Gt[6]=rm,Gt[7]=om,Gt[8]=am),r)for(const[n,o]of Object.entries(r)){const a=n.split("/")[2];Gt[a]=o.default}}const im=t=>(e.pushScopeId("data-v-19259c54"),t=t(),e.popScopeId(),t),mD=im(()=>e.createElementVNode("div",{class:"flex h-10 items-center p-2"},[e.createElementVNode("span",{class:"w-1 h-4 bg-color-primary mr-2"}),e.createTextVNode(" 大屏设置 ")],-1)),gD=im(()=>e.createElementVNode("div",{class:"h-px mb-2",style:{"background-color":"var(--el-border-color-light)"}},null,-1)),yD={class:"p-2"},bD=e.defineComponent({__name:"rightPannel",setup(t){const r=Re(),n=e.ref({});e.provide("widgetConfig",n);const o=e.ref(""),a=e.computed(()=>r.targetsWidget.length===1?r.getWidgetList.find(l=>{var s;return l.id==((s=r.targetsWidget[0])==null?void 0:s.id)}):null);e.watch(a,l=>{i()});const i=()=>{if(!e.unref(a)){n.value={};return}const l=r.getWidgetList.find(s=>s.id==e.unref(a).id);e.unref(a).chartType&&(window.customSeriesData=l.customize.customSeriesData,r.setChartData(r.tempChartData[l.id].params)),n.value=l,o.value=""};return i(),(l,s)=>(e.openBlock(),e.createBlock(e.unref(v.ElScrollbar),{height:"100%"},{default:e.withCtx(()=>{var d,c;return[mD,gD,(d=e.unref(n))!=null&&d.chartType?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(ve),e.createElementVNode("div",yD,[e.createVNode(e.unref(v.ElCollapse),{accordion:"",modelValue:e.unref(o),"onUpdate:modelValue":s[0]||(s[0]=f=>e.isRef(o)?o.value=f:null)},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gt)[e.unref(n).chartType]),{key:e.unref(n).id,immediate:"",option:e.unref(n).customize,type:e.unref(n).chartType},null,8,["option","type"]))]),_:1},8,["modelValue"])])],64)):e.unref(Gt)[(c=e.unref(n))==null?void 0:c.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(Gt)[e.unref(n).type]),{key:e.unref(n).id})):(e.openBlock(),e.createBlock(A$,{key:2}))]}),_:1}))}}),vR="",_D=Be(bD,[["__scopeId","data-v-19259c54"]]),wD={class:"ace-big-screen flex overflow-hidden flex-col"},CD={class:"h-10 top-pannel"},SD={class:"flex-1 flex relative"},xD={class:"left-pannel"},vD={class:"flex-1 p-2 overflow-hidden",id:"design-container"},ED={class:"relative w-full h-full"},VD={key:0,class:"right-pannel w-80"},kD=e.defineComponent({__name:"design",emits:["preview","save"],setup(t,{expose:r,emit:n}){const o=n,{proxy:a}=e.getCurrentInstance(),{chartJsonFormat:i}=a.$globalUtils,l=Re(),s=e.ref(!1),d=e.ref(""),c=e.ref("");return e.watch(s,u=>{u?document.getElementsByTagName("html")[0].className=l.theme:document.getElementsByTagName("html")[0].className=""}),r({init:async(u="")=>{if(c.value=u,d.value="大屏管理",l.widgetConfg={config:{},list:[]},l.clearSketchRuleLine(),l.setRightPannel(!1),u){const p=await a.$baseHttp.get("/api/ace-data-center/screen/detail",{params:{id:u},headers:{loading:!0}});d.value=p.data.title,l.widgetConfg=i(p.data.config)}s.value=!0}}),(u,p)=>{const h=e.resolveComponent("AppDrawer");return e.openBlock(),e.createBlock(h,{modelValue:e.unref(s),"onUpdate:modelValue":p[4]||(p[4]=m=>e.isRef(s)?s.value=m:null),title:"大屏设计",size:"100%",withHeader:!1,modalClass:"ace-modal-drawer",customClass:"ace-big-design-dialog"},{default:e.withCtx(()=>[e.createElementVNode("div",wD,[e.createElementVNode("div",CD,[e.createVNode(qg,{title:e.unref(d),"onUpdate:title":p[0]||(p[0]=m=>e.isRef(d)?d.value=m:null),id:e.unref(c),onPreview:p[1]||(p[1]=m=>o("preview",m)),onSave:p[2]||(p[2]=()=>o("save")),onBack:p[3]||(p[3]=()=>s.value=!1)},null,8,["title","id"])]),e.createElementVNode("div",SD,[e.createElementVNode("div",xD,[e.createVNode(tb)]),e.createElementVNode("div",vD,[e.createElementVNode("div",ED,[e.createVNode(B$)])]),e.unref(l).getRightPannel?(e.openBlock(),e.createElementBlock("div",VD,[e.createVNode(_D)])):e.createCommentVNode("",!0)])])]),_:1},8,["modelValue"])}}}),ER="",Oo=t=>(e.pushScopeId("data-v-f6c5b693"),t=t(),e.popScopeId(),t),ND={key:1,class:"flex flex-wrap items-center justify-between"},$D={class:"item-container"},DD={class:"item-image"},BD=["src"],TD=["onClick"],OD=[Oo(()=>e.createElementVNode("span",{class:"text-base text-white cursor-pointer"},"预览大屏",-1))],ID={class:"flex items-center justify-between item-footer"},zD={class:"flex"},RD=["onClick"],MD=Oo(()=>e.createElementVNode("i",{class:"mr-1 ri-edit-line"},null,-1)),AD=["onClick"],LD=Oo(()=>e.createElementVNode("i",{class:"mr-1 ri-delete-bin-line"},null,-1)),FD=Oo(()=>e.createElementVNode("div",{class:"item"},null,-1)),jD=Oo(()=>e.createElementVNode("div",{class:"item"},null,-1)),PD=e.defineComponent({__name:"index",emits:["preview"],setup(t,{emit:r}){const n=r,{proxy:o}=e.getCurrentInstance(),{resetUrl:a}=o.$globalUtils,i=e.ref(null),l=e.ref(null),s=e.reactive([{name:"新增",key:"ADD",type:"primary"}]),d=e.reactive([{name:"名称",type:Rr.Text,fieldName:"title",value:""}]),c=async f=>{const{type:u,row:p}=f;switch(u){case"PREVIEW":n("preview","list",(p==null?void 0:p.id)??"");break;case"ADD":case"EDIT":e.unref(l).init((p==null?void 0:p.id)??"");break;case"DEL":o.$baseConfirm({content:"是否确定删除",callConfirm:async()=>{await o.$baseHttp.post("/api/ace-data-center/screen/remove",{},{params:{ids:p.id},headers:{loading:!0}})&&(o.$message({type:"success",message:"删除成功",plain:!0}),e.unref(i).getData())}});break}};return(f,u)=>{const p=e.resolveComponent("AppEmpty"),h=e.resolveComponent("AppList");return e.openBlock(),e.createBlock(h,{url:`/api/ace-data-center/screen/list?descs=create_time&projectId=${e.unref(o).$baseGetCurrentProjectId}`,tableData:[],searchForm:e.unref(d),searchBtns:e.unref(s),listType:"custom",onBtnClick:c,ref_key:"appListRef",ref:i},{"list-slot":e.withCtx(({list:m,loading:y})=>[e.createVNode(e.unref(v.ElSkeleton),{loading:y,animated:""},{default:e.withCtx(()=>[m.length==0?(e.openBlock(),e.createBlock(p,{key:0,description:"暂无数据"})):(e.openBlock(),e.createElementBlock("div",ND,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(g,b)=>(e.openBlock(),e.createElementBlock("div",{key:b,class:"item"},[e.createElementVNode("div",$D,[e.createElementVNode("div",DD,[e.createElementVNode("img",{src:e.unref(a)(g.imageUrl??"")||"https://fuss10.elemecdn.com/d/e6/c4d93a3805b3ce3f323f7974e6f78jpeg.jpeg"},null,8,BD),e.createElementVNode("div",{class:"flex items-center justify-center item-popup",onClick:_=>c({type:"PREVIEW",row:g,index:b})},OD,8,TD)]),e.createElementVNode("div",ID,[e.createElementVNode("div",null,e.toDisplayString(g.title),1),e.createElementVNode("div",zD,[e.createElementVNode("span",{onClick:_=>c({type:"EDIT",row:g,index:b}),class:"flex items-center text-xs text-gray-600 cursor-pointer"},[MD,e.createTextVNode(" 编辑大屏 ")],8,RD),e.createElementVNode("span",{onClick:_=>c({type:"DEL",row:g,index:b}),class:"flex items-center ml-2 text-xs cursor-pointer text-color-danger"},[LD,e.createTextVNode(" 删除 ")],8,AD)])])])]))),128)),FD,jD]))]),_:2},1032,["loading"])]),default:e.withCtx(()=>[e.createVNode(kD,{ref_key:"designRef",ref:l,onSave:u[0]||(u[0]=m=>e.unref(i).getData()),onPreview:u[1]||(u[1]=m=>n("preview","content",m))},null,512)]),_:1},8,["url","searchForm","searchBtns"])}}}),kR="",UD=Be(PD,[["__scopeId","data-v-f6c5b693"]]);let Xs=null,Io="",qs="",Js="",Ks=null,lm=null,vt=1,Ln=!1;const sm={isAutofitRunnig:!1,init(t={},r=!0){r&&console.log("autofit.js is running");const{dw:n=1920,dh:o=1080,el:a=typeof t=="string"?t:"body",resize:i=!0,ignore:l=[],transition:s="none",delay:d=0,limit:c=.1}=t;Xs=a;let f=document.querySelector(a);if(!f){console.error(`autofit: '${a}' is not exist`);return}const u=document.createElement("style"),p=document.createElement("style");u.lang="text/css",p.lang="text/css",u.id="autofit-style",p.id="ignoreStyle",u.innerHTML="body {overflow: hidden;}";const h=document.querySelector("body");h.appendChild(u),h.appendChild(p),f.style.height=`${o}px`,f.style.width=`${n}px`,f.style.transformOrigin="0 0",f.style.overflow="hidden",Zs(n,o,f,l,c),Ks=()=>{clearTimeout(lm),d!=0?lm=setTimeout(()=>{Zs(n,o,f,l,c),Ln&&cm(Io,Js,qs)},d):(Zs(n,o,f,l,c),Ln&&cm(Io,Js,qs))},i&&window.addEventListener("resize",Ks),this.isAutofitRunnig=!0,setTimeout(()=>{f.style.transition=`${s}s`})},off(t="body"){try{Ln=!1,window.removeEventListener("resize",Ks),document.querySelector("#autofit-style").remove();const r=document.querySelector("#ignoreStyle");r&&r.remove(),document.querySelector(Xs||t).style="",Ln&&WD()}catch(r){console.error("autofit: Failed to remove normally",r),this.isAutofitRunnig=!1}this.isAutofitRunnig&&console.log("autofit.js is off")}};function cm(t,r=!0,n=1){sm.isAutofitRunnig||console.error("autofit.js:autofit has not been initialized yet"),!t&&console.error(`autofit.js:bad selector: ${t}`),Io=t,qs=n,Js=r;const o=document.querySelectorAll(t);if(o.length==0){console.error("autofit.js:elRectification found no element");return}for(let a of o){let i=vt==1?1:vt*n;Ln||(a.originalWidth=a.clientWidth,a.originalHeight=a.clientHeight),r?(a.style.width=`${a.originalWidth*i}px`,a.style.height=`${a.originalHeight*i}px`):(a.style.width=`${100*i}%`,a.style.height=`${100*i}%`),a.style.transform=`scale(${1/vt})`,a.style.transformOrigin="0 0"}Ln=!0}function WD(){if(Io)for(let t of document.querySelectorAll(Io))t.style.width="",t.style.height="",t.style.transform=""}function Zs(t,r,n,o,a){let i=document.documentElement.clientHeight,l=document.documentElement.clientWidth;vt=l/i<t/r?l/t:i/r,vt=Math.abs(1-vt)>a?vt.toFixed(2):1;let s=Math.round(i/vt),d=Math.round(l/vt);n.style.height=`${s}px`,n.style.width=`${d}px`,n.style.transform=`scale(${vt})`;const c=document.querySelector("#ignoreStyle");c.innerHTML="";for(let f of o){let u=f.el||f.dom;if(typeof f=="string"&&(u=f),!u){console.error(`autofit: bad selector: ${u}`);continue}let p=f.scale?f.scale:1/vt,h=p!=vt?f.fontSize:"autofit",m=p!=vt?f.width:"autofit",y=p!=vt?f.height:"autofit";new RegExp(`${u}( |{)`,"gm").test(c.innerHTML)||(c.innerHTML+=`
795
795
  ${u} {
796
796
  transform: scale(${p})!important;
797
797
  transform-origin: 0 0;