@ecan-bi/datav 1.2.14 → 1.2.15

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.
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @ecan-bi/datav@1.2.14 */
1
+ /*! @ecan-bi/datav@1.2.15 */
2
2
  (function(P,a){typeof exports=="object"&&typeof module<"u"?a(exports,require("vue"),require("echarts/core"),require("resize-detector"),require("ant-design-vue"),require("ant-design-vue/es/spin/style"),require("ant-design-vue/es/skeleton/style"),require("lodash-es"),require("dayjs"),require("axios"),require("mitt"),require("ant-design-vue/es/progress/style"),require("ant-design-vue/es/input/style"),require("ant-design-vue/es/date-picker/style"),require("ant-design-vue/es/date-picker/locale/zh_CN"),require("ant-design-vue/es/button/style"),require("ant-design-vue/es/checkbox/style"),require("ant-design-vue/es/select/style"),require("ant-design-vue/es/tree-select/style"),require("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),require("echarts"),require("ant-design-vue/es/table/style"),require("xlsx"),require("big.js")):typeof define=="function"&&define.amd?define(["exports","vue","echarts/core","resize-detector","ant-design-vue","ant-design-vue/es/spin/style","ant-design-vue/es/skeleton/style","lodash-es","dayjs","axios","mitt","ant-design-vue/es/progress/style","ant-design-vue/es/input/style","ant-design-vue/es/date-picker/style","ant-design-vue/es/date-picker/locale/zh_CN","ant-design-vue/es/button/style","ant-design-vue/es/checkbox/style","ant-design-vue/es/select/style","ant-design-vue/es/tree-select/style","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","echarts","ant-design-vue/es/table/style","xlsx","big.js"],a):(P=typeof globalThis<"u"?globalThis:P||self,a(P["@ecan/bi-datav"]={},P.Vue,P["echarts/core"],P.ResizeDetector,P.AntDesignVue,null,null,P.LodashEs,P.Dayjs,P.Axios,P.Mitt,null,null,null,P["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,P["echarts/renderers"],P["echarts/charts"],P["echarts/components"],null,P.Echarts,null,P.Xlsx,P.big.js))})(this,function(P,a,qe,or,ae,Of,Nf,He,Le,rr,Ha,Pf,zf,Mf,ar,Ff,Vf,qf,Hf,it,Ue,xe,$f,$a,jf,St,ja){var Ba,Da,Ra,Ia;"use strict";function Ua(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Wa=Ua($a),Ga=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function Za(e,n){function t(r){return(...i)=>{if(e.value||n(),!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,i)}}function o(){const r=Object.create(null);return Ga.forEach(i=>{r[i]=t(i)}),r}return o()}function Ka(e,n,t){let o=null;a.watch([t,e,n],([r,i,l],s,f)=>{r&&i&&l&&(o=qe.throttle(()=>{i.resize()},100),or.addListener(r,o)),f(()=>{o&&r&&or.removeListener(r,o)})})}const Ya={autoresize:Boolean},Xa="ecLoadingOptions";function Ja(e,n,t){const o=a.inject(Xa,{}),r=a.computed(()=>({...a.unref(o),...t==null?void 0:t.value}));a.watchEffect(()=>{const i=e.value;i&&(n.value?i.showLoading(r.value):i.hideLoading())})}const Qa={loading:Boolean,loadingOptions:Object},Uf="",ei=/^on[^a-z]/,ti=e=>ei.test(e);function ni(e){const n={};for(const t in e)ti(t)||(n[t]=e[t]);return n}const oi="x-vue-echarts",ri="ecTheme",ai="ecInitOptions",ii="ecUpdateOptions",Qe=a.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Ya,...Qa},inheritAttrs:!1,setup(e,{attrs:n,listeners:t}){const o=a.shallowRef(),r=a.shallowRef(),i=a.shallowRef(),l=a.inject(ri,null),s=a.inject(ai,null),f=a.inject(ii,null),{autoresize:c,manualUpdate:d,loading:p,loadingOptions:h}=a.toRefs(e),x=a.computed(()=>i.value||e.option||Object.create(null)),u=a.computed(()=>e.theme||a.unref(l)||{}),m=a.computed(()=>e.initOptions||a.unref(s)||{}),v=a.computed(()=>e.updateOptions||a.unref(f)||{}),C=a.computed(()=>ni(n));function g(w){if(r.value||!o.value)return;const _=r.value=qe.init(o.value,u.value,m.value);e.group&&(_.group=e.group);let D=t;D||(D={},Object.keys(n).filter(R=>R.indexOf("on")===0&&R.length>2).forEach(R=>{const A=R.charAt(2).toLowerCase()+R.slice(3);D[A]=n[R]})),Object.keys(D).forEach(R=>{const A=D[R];A&&(R.indexOf("zr:")===0?_.getZr().on(R.slice(3).toLowerCase(),A):_.on(R.toLowerCase(),A))});function k(){if(_&&!_.isDisposed())try{_.resize()}catch(R){if(R.message==="Cannot read property 'get' of undefined")return;throw R}}function T(){_.setOption(w||x.value,v.value)}c.value?a.nextTick(()=>{k(),T()}):T()}function S(w,_){e.manualUpdate&&(i.value=w),r.value?r.value.setOption(w,_||{}):g(w)}function b(){r.value&&(r.value.dispose(),r.value=void 0)}let E=null;a.watch(d,w=>{typeof E=="function"&&(E(),E=null),w||(E=a.watch(()=>e.option,_=>{_&&(r.value?r.value.setOption(_,v.value):g())},{deep:!0}))},{immediate:!0}),a.watch([u,m],()=>{b(),g()},{deep:!0}),a.watchEffect(()=>{e.group&&r.value&&(r.value.group=e.group)});const y=Za(r,g);return Ja(r,p,h),Ka(r,c,o),a.onMounted(()=>{e.option&&g()}),a.onUnmounted(b),{chart:r,root:o,setOption:S,nonEventAttrs:C,...y}},render(){const e={...this.nonEventAttrs};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",a.h(oi,e)}});function Oe(e,n){si(e)&&(e="100%");var t=li(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function si(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function li(e){return typeof e=="string"&&e.indexOf("%")!==-1}function ci(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Nt(e){return e<=1?"".concat(Number(e)*100,"%"):e}function en(e){return e.length===1?"0"+e:String(e)}function fi(e,n,t){return{r:Oe(e,255)*255,g:Oe(n,255)*255,b:Oe(t,255)*255}}function tn(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function di(e,n,t){var o,r,i;if(e=Oe(e,360),n=Oe(n,100),t=Oe(t,100),n===0)r=t,i=t,o=t;else{var l=t<.5?t*(1+n):t+n-t*n,s=2*t-l;o=tn(s,l,e+1/3),r=tn(s,l,e),i=tn(s,l,e-1/3)}return{r:o*255,g:r*255,b:i*255}}function ui(e,n,t){e=Oe(e,255),n=Oe(n,255),t=Oe(t,255);var o=Math.max(e,n,t),r=Math.min(e,n,t),i=0,l=o,s=o-r,f=o===0?0:s/o;if(o===r)i=0;else{switch(o){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:f,v:l}}function hi(e,n,t){e=Oe(e,360)*6,n=Oe(n,100),t=Oe(t,100);var o=Math.floor(e),r=e-o,i=t*(1-n),l=t*(1-r*n),s=t*(1-(1-r)*n),f=o%6,c=[t,l,i,i,s,t][f],d=[s,t,t,l,i,i][f],p=[i,i,s,t,t,l][f];return{r:c*255,g:d*255,b:p*255}}function xi(e,n,t,o){var r=[en(Math.round(e).toString(16)),en(Math.round(n).toString(16)),en(Math.round(t).toString(16))];return o&&r[0].startsWith(r[0].charAt(1))&&r[1].startsWith(r[1].charAt(1))&&r[2].startsWith(r[2].charAt(1))?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function ir(e){return De(e)/255}function De(e){return parseInt(e,16)}var sr={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Ct(e){var n={r:0,g:0,b:0},t=1,o=null,r=null,i=null,l=!1,s=!1;return typeof e=="string"&&(e=pi(e)),typeof e=="object"&&($e(e.r)&&$e(e.g)&&$e(e.b)?(n=fi(e.r,e.g,e.b),l=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):$e(e.h)&&$e(e.s)&&$e(e.v)?(o=Nt(e.s),r=Nt(e.v),n=hi(e.h,o,r),l=!0,s="hsv"):$e(e.h)&&$e(e.s)&&$e(e.l)&&(o=Nt(e.s),i=Nt(e.l),n=di(e.h,o,i),l=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=ci(t),{ok:l,format:e.format||s,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var mi="[-\\+]?\\d+%?",gi="[-\\+]?\\d*\\.\\d+%?",We="(?:".concat(gi,")|(?:").concat(mi,")"),nn="[\\s|\\(]+(".concat(We,")[,|\\s]+(").concat(We,")[,|\\s]+(").concat(We,")\\s*\\)?"),on="[\\s|\\(]+(".concat(We,")[,|\\s]+(").concat(We,")[,|\\s]+(").concat(We,")[,|\\s]+(").concat(We,")\\s*\\)?"),ze={CSS_UNIT:new RegExp(We),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+on),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function pi(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(sr[e])e=sr[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=ze.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=ze.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ze.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=ze.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ze.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=ze.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ze.hex8.exec(e),t?{r:De(t[1]),g:De(t[2]),b:De(t[3]),a:ir(t[4]),format:n?"name":"hex8"}:(t=ze.hex6.exec(e),t?{r:De(t[1]),g:De(t[2]),b:De(t[3]),format:n?"name":"hex"}:(t=ze.hex4.exec(e),t?{r:De(t[1]+t[1]),g:De(t[2]+t[2]),b:De(t[3]+t[3]),a:ir(t[4]+t[4]),format:n?"name":"hex8"}:(t=ze.hex3.exec(e),t?{r:De(t[1]+t[1]),g:De(t[2]+t[2]),b:De(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function $e(e){return!!ze.CSS_UNIT.exec(String(e))}var Pt=2,lr=.16,yi=.05,vi=.05,bi=.15,cr=5,fr=4,Si=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function dr(e){var n=e.r,t=e.g,o=e.b,r=ui(n,t,o);return{h:r.h*360,s:r.s,v:r.v}}function zt(e){var n=e.r,t=e.g,o=e.b;return"#".concat(xi(n,t,o,!1))}function Ci(e,n,t){var o=t/100,r={r:(n.r-e.r)*o+e.r,g:(n.g-e.g)*o+e.g,b:(n.b-e.b)*o+e.b};return r}function ur(e,n,t){var o;return Math.round(e.h)>=60&&Math.round(e.h)<=240?o=t?Math.round(e.h)-Pt*n:Math.round(e.h)+Pt*n:o=t?Math.round(e.h)+Pt*n:Math.round(e.h)-Pt*n,o<0?o+=360:o>=360&&(o-=360),o}function hr(e,n,t){if(e.h===0&&e.s===0)return e.s;var o;return t?o=e.s-lr*n:n===fr?o=e.s+lr:o=e.s+yi*n,o>1&&(o=1),t&&n===cr&&o>.1&&(o=.1),o<.06&&(o=.06),Number(o.toFixed(2))}function xr(e,n,t){var o;return t?o=e.v+vi*n:o=e.v-bi*n,o>1&&(o=1),Number(o.toFixed(2))}function rn(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],o=Ct(e),r=cr;r>0;r-=1){var i=dr(o),l=zt(Ct({h:ur(i,r,!0),s:hr(i,r,!0),v:xr(i,r,!0)}));t.push(l)}t.push(zt(o));for(var s=1;s<=fr;s+=1){var f=dr(o),c=zt(Ct({h:ur(f,s),s:hr(f,s),v:xr(f,s)}));t.push(c)}return n.theme==="dark"?Si.map(function(d){var p=d.index,h=d.opacity,x=zt(Ci(Ct(n.backgroundColor||"#141414"),Ct(t[p]),h*100));return x}):t}var an={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},sn={},ln={};Object.keys(an).forEach(function(e){sn[e]=rn(an[e]),sn[e].primary=sn[e][5],ln[e]=rn(an[e],{theme:"dark",backgroundColor:"#141414"}),ln[e].primary=ln[e][5]});var mr=[],wt=[],wi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function ki(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function _i(e,n){if(n=n||{},e===void 0)throw new Error(wi);var t=n.prepend===!0?"prepend":"append",o=n.container!==void 0?n.container:document.querySelector("head"),r=mr.indexOf(o);r===-1&&(r=mr.push(o)-1,wt[r]={});var i;return wt[r]!==void 0&&wt[r][t]!==void 0?i=wt[r][t]:(i=wt[r][t]=ki(),t==="prepend"?o.insertBefore(i,o.childNodes[0]):o.appendChild(i)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),i.styleSheet?i.styleSheet.cssText+=e:i.textContent+=e,i}function gr(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},o=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),o.forEach(function(r){Ei(e,r,t[r])})}return e}function Ei(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ai(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function Ti(e,n){Ai(e,"[@ant-design/icons-vue] ".concat(n))}function pr(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function cn(e,n,t){return t?a.h(e.tag,gr({key:n},t,e.attrs),(e.children||[]).map(function(o,r){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))})):a.h(e.tag,gr({key:n},e.attrs),(e.children||[]).map(function(o,r){return cn(o,"".concat(n,"-").concat(e.tag,"-").concat(r))}))}function yr(e){return rn(e)[0]}function vr(e){return e?Array.isArray(e)?e:[e]:[]}var Bi=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -94,5 +94,5 @@ version: 2.9.0
94
94
  `,t+="-----END RSA PRIVATE KEY-----",t},n.prototype.getPublicKey=function(){var t=`-----BEGIN PUBLIC KEY-----
95
95
  `;return t+=n.wordwrap(this.getPublicBaseKeyB64())+`
96
96
  `,t+="-----END PUBLIC KEY-----",t},n.hasPublicKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")},n.hasPrivateKeyProperty=function(t){return t=t||{},t.hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},n.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},n}(rl),ro,cl=typeof process<"u"?(ro=process.env)===null||ro===void 0?void 0:ro.npm_package_version:void 0,fl=function(){function e(n){n===void 0&&(n={}),n=n||{},this.default_key_size=n.default_key_size?parseInt(n.default_key_size,10):1024,this.default_public_exponent=n.default_public_exponent||"010001",this.log=n.log||!1,this.key=null}return e.prototype.setKey=function(n){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new T0(n)},e.prototype.setPrivateKey=function(n){this.setKey(n)},e.prototype.setPublicKey=function(n){this.setKey(n)},e.prototype.decrypt=function(n){try{return this.getKey().decrypt(v0(n))}catch{return!1}},e.prototype.encrypt=function(n){try{return Ht(this.getKey().encrypt(n))}catch{return!1}},e.prototype.sign=function(n,t,o){try{return Ht(this.getKey().sign(n,t,o))}catch{return!1}},e.prototype.verify=function(n,t,o){try{return this.getKey().verify(n,v0(t),o)}catch{return!1}},e.prototype.getKey=function(n){if(!this.key){if(this.key=new T0,n&&{}.toString.call(n)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,n);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},e.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},e.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},e.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},e.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},e.version=cl,e}();const B0=new fl,pt=dl();function dl(){let n=Math.random().toString(36).substr(2);for(;n.length<16;)n+=Math.random().toString(36).substr(2);return n=n.substr(0,16),n}const D0=Re.enc.Utf8.parse("ABCDEF1234123412");function ul(e,n){n=n||pt;const t=Re.enc.Utf8.parse(n);let o="";switch(typeof e){case"string":o=Re.enc.Utf8.parse(e);break;case"object":o=Re.enc.Utf8.parse(JSON.stringify(e));break;default:o=Re.enc.Utf8.parse(e.toString())}return Re.AES.encrypt(o,t,{iv:D0,mode:Re.mode.CBC,padding:Re.pad.ZeroPadding}).toString()}function R0(e,n){n=n||pt;const t=Re.enc.Utf8.parse(n),o=Re.AES.decrypt(e,t,{iv:D0,mode:Re.mode.CBC,padding:Re.pad.ZeroPadding});return Re.enc.Utf8.stringify(o).toString()}function hl(e){B0.setPublicKey(e)}function xl(e){return B0.encrypt(e)}function I0(e=""){e.startsWith("/")||(e="/"+e),e=e.split("?")[0];const t=["/diagram","/dataview"].map(o=>`^(.*?)${o}(/|$)`);for(const o of t)if(new RegExp(o).test(e))return!0;return!1}function ml(e){const{paramType:n,data:t,params:o,method:r}=e;n==="form"?["get","delete"].includes(r)?e.params=yt(o,"string"):e.data=yt(t,"string"):["get","delete"].includes(r)?e.params=yt(o,"string"):e.data=yt(t)}function yt(e,n){let t=e||{};if(n==="string"){t="";for(const s in e)if(Object.hasOwnProperty.call(e,s)){const f=e[s];t+=`${s}=${encodeURIComponent(f)}&`}}hl("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const r=xl(pt);return{c:ul(t,pt),p:r}}window.getEncryptParam=yt;function gl(e,n){var t;(t=window==null?void 0:window.config)!=null&&t.encryptFlag&&I0(e.url)&&(e.data instanceof FormData?e.data=pl(e.data):ml(e))}function pl(e){const n=e.entries(),t=new FormData,o={};for(const i of n){const l=i[0],s=i[1];s instanceof Blob?t.append(l,s):o[l]=s}const r=yt(o,"json");return typeof r=="object"&&(t.append("c",r.c),t.append("p",r.p)),t}window.xhaesKey=pt,window.xhaesDecrypt=R0;function L0(e,n){var t;if((t=window==null?void 0:window.config)!=null&&t.encryptFlag&&I0(e.config.url)&&!(e.data instanceof Blob)&&e.data.data!==void 0){const o=R0(e.data.data.content,pt);e.data=JSON.parse(o)}}const O0=window.config.requestErrorTip,Ye=rr.create({timeout:1e3*180});Ye.interceptors.request.use(e=>(gl(e),e),e=>Promise.reject(e)),Ye.interceptors.response.use(e=>{var n,t,o;return O0&&+((n=e==null?void 0:e.data)==null?void 0:n.code)==500&&ae.message.error({content:((t=e==null?void 0:e.data)==null?void 0:t.msg)||((o=e==null?void 0:e.data)==null?void 0:o.message)||"服务器异常",key:"SERVER_ERROR"}),L0(e),e},e=>{if(L0(e==null?void 0:e.response),O0)if(e.message.includes("timeout"))ae.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT"});else{const{status:n}=(e==null?void 0:e.response)||{};n>=400&&n<500&&ae.message.error({content:"请求异常",key:"REQUEST_ERROR"}),n>=500&&ae.message.error({content:"服务器异常",key:"REQUEST_ERROR"})}return Promise.reject(e)});const yl=e=>e.replace(/\\n/g,`
97
- `),ao=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},vl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Yt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Xt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Jt=(e,n)=>{const t={dayjs:Le,...n};let o="";const r=[];for(const s in t)o+=`${s},`,r.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return l},ye=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=d.match(p);for(let x=0;x<h.length;x++){const u=h[x],m=l[u];m!=null&&(d=d.replace(u,m))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Jt(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Pe=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Ae,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(Se,{getGlobalModel:u=>{}}),p=ye(t),h=async(u={})=>{if(!p||!o||!r)return;let m={};i.forEach(b=>{const{key:E,value:y}=b;if(typeof y=="object"&&y!=null&&y.id){let w={};const{id:_,prop:D,propKey:k,operate:T}=y;_==="THIS"?w=d(a.unref(c))||{}:w=d(_)||{};const R=a.unref(w[D]);let A=null;if(["date","range"].some(q=>Xt(w==null?void 0:w.type,q))){const{value:q,type:$,mode:z}=T||{};if(q&&$&&z)switch($){case"add":A=a.unref(R).add(q,z);break;case"minus":A=a.unref(R).subtract(q,z);break}A==null&&(A=a.unref(R)),A=(A==null?void 0:A.format((k==null?void 0:k.trim())||w.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?k?A=R[k]:A=D?R[D]:R:Xt(w==null?void 0:w.type,"select")&&a.unref(R)&&D&&Array.isArray(a.unref(R))?A=a.unref(R).map(q=>Object.prototype.hasOwnProperty.call(q,D)?q[D]:q):A=R;m[E]=A}else typeof y=="string"&&(m[E]=ye(y))}),m={...window.config.requestParams,...u,...m};let v="";const C=Object.keys(m),g=C.length-1,S=C.length;C.forEach((b,E)=>{let y=m[b];Object.prototype.toString.call(y)==="[object Object]"&&(y=JSON.stringify(y)),E===0?S!==1?v+=`?${b}=${y}&`:v+=`?${b}=${y}`:E===g?v+=`${b}=${y}`:v+=`${b}=${y}&`});try{const b=["get","head"].includes(o);let E=b?p+v:p;m.dataSqlId&&!E.includes("dataSqlId")&&(E+=`${E.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`);const y=await Ye({baseURL:a.unref(f)||"",url:E,method:o,headers:r,data:b?{}:m});return n(y),y}catch(b){console.error(b)}},x=s&&setInterval(h,l*1e3);return a.onUnmounted(()=>{clearInterval(x)}),h},vt=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const r=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let h=0;h<s;h++){const x=o[h],{label:u,value:m}=x,v={...e[0],value:e[0][m]};r.add(u),d.push(v)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],h=p[t];r.add(h);for(let x=0;x<s;x++){const u=o[x],{label:m,value:v}=u,C={...p,value:p[v]};if(i.has(m)){const g=i.get(m);g.push(C),i.set(m,g)}else i.set(m,[C])}}const f=Array.from(r),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},nt=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},N0=(e,n)=>{const t=`${Ir}/preview?pageId=${n}`,o=`${Ir}/${n}`;return e==="preview"?t:o},ot=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const l=t[i];if(l==null||l==="")break;let s=(r=l.slice(1,-1))==null?void 0:r.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Jt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},Bt=(e={})=>{const{requestToken:n}=a.inject(Tr,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:h="COLUMN",builtInFormula:x,builtInValueSource:u,builtInCalcWay:m,formula:v,conditions:C}=l;return{label:s,columnName:f,location:c,show:d,calcType:h,hrpIndexCode:p,aggregate:"SUM",builtInFormula:x,builtInValueSource:u,builtInCalcWay:m,formula:v,conditions:C}},{getGlobalModel:r}=a.inject(Se,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:h,conditionLabel:x,conditionKey:u,conditionValueType:m}=p,v={rule:"NONE",label:x,fieldName:u,fieldValue:"2020-02",dateFormat:"YYYY-MM",valueType:m},C=r(h)||{};if(console.log("model",C),Xt(C.type,"date")){const{value:g,format:S}=C||{};v.fieldValue=(c=a.unref(g))==null?void 0:c.format(S),v.dateFormat=S}f.push(v)}return f};return async()=>{var R;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:h,classificationList:x=[],seriesList:u=[],leftAxisList:m=[],rightAxisList:v=[],queryColumnList:C=[],indicators:g=[],controlList:S=[],dataSourceId:b,idxLibMode:E,preview:y=!1}=l||{};p==null&&(Xt(s,"table")?p="1":p="2");let w;if(Array.isArray(x)&&x.length>0){const A=x.length;for(let H=0;H<A;H++){const q=x[H]||{},{label:$="",name:z="",show:L=!1,sort:O,customGroup:V,conditions:B}=q;if(L||A===1){w={label:$,columnName:z,show:L,sort:O,customGroup:V,conditions:B};break}}}let _;if(Array.isArray(u)&&u.length>0){const A=u.length;for(let H=0;H<A;H++){const q=u[H]||{},{label:$="",name:z="",show:L=!1,sort:O,customGroup:V,conditions:B}=q;if(L||A===1){_={label:$,columnName:z,show:L,sort:O,customGroup:V,conditions:B};break}}}const D=[];C==null||C.forEach(A=>{D.push(t(A))});const k=[];if(m==null||m.forEach(A=>{A.location="LEFT",k.push(o(A))}),v==null||v.forEach(A=>{A.location="RIGHT",k.push(o(A))}),g==null||g.forEach(A=>{A.location="LEFT",k.push(o(A))}),p==="1"&&D.length===0)return;if(p==="2"&&k.length===0)return;const T=i(S);try{return await Ye.post(`${Rr}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:h,classification:w,series:_,indicatorList:k,queryColumns:D,pageFlag:!0,sqlConditions:T,dataSourceId:b,idxLibMode:E,preview:y},{headers:{Authentication:(R=window==null?void 0:window.config)==null?void 0:R.indicatorToken,operateContext:Dr}})}catch(A){console.error(A)}}},bl=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Sl=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...mn},setup(e){const n=a.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:nt(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),t=a.ref(0),o=a.ref(0),r=a.ref(0),i=a.ref(0),l=a.ref(!1),s=a.ref();let f;const c=()=>new Promise(m=>{a.nextTick(()=>{e.width&&e.height?(t.value=parseFloat(e.width),o.value=parseFloat(e.height)):(t.value=s.value.clientWidth,o.value=s.value.clientHeight),(!r.value||!i.value)&&(r.value=window.screen.width,i.value=window.screen.height),m()})}),d=()=>{t.value&&o.value?(s.value.style.width=`${t.value}px`,s.value.style.height=`${o.value}px`):(s.value.style.width=`${r.value}px`,s.value.style.height=`${i.value}px`)},p=()=>{const m=document.body.clientWidth,v=document.body.clientHeight,C=t.value||r.value,g=o.value||i.value,S=m/C,b=v/g;s.value&&(s.value.style.transform=`scale(${S}, ${b})`)},h=He.debounce(async()=>{await c(),p()},100),x=()=>{const m=window.MutationObserver;f=new m(h),f.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},u=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return a.onMounted(async()=>{l.value=!1,await c(),d(),p(),window.addEventListener("resize",h),x(),l.value=!0}),a.onUnmounted(()=>{window.removeEventListener("resize",h),u()}),{style:n,container:s,ready:l}}}),Kf="",Cl={id:"container",ref:"container"};function wl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Cl,[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"page-config",style:a.normalizeStyle(e.style)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)):a.createCommentVNode("",!0)],512)}const P0=le(se(Sl,[["render",wl],["__scopeId","data-v-242d350e"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},so=ce(io),kl=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){bl();const t=a.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{o()}),a.onMounted(()=>{o()});const r=a.computed(()=>ye(e.contextRequestUrl)),i=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),s=a.ref("");a.provide(Ae,{contextRequestUrl:r,pageMode:i,theme:l,touchEventId:s});const f=new Map;console.log("globalModel",f);const c=$=>f.get($),d=($,z)=>{f.set($,z)};a.provide(Se,{getGlobalModel:c,setGlobalModel:d});const p=[],h=()=>{p.pop()},x=$=>{p.push($)},u=new Map,m=$=>u.get($),v=($,z)=>{u.set($,z)};a.provide(Br,{popUseModalIds:h,pushUseModalIds:x,getModalModel:m,setModalModel:v});const C=Ha(),g=new Set,S=($,z)=>{g.add($),C.on($,L=>typeof z[L]=="function"&&z[L]()),a.onBeforeUnmount(()=>{b($)})},b=$=>{g.delete($),C.off($)},E=($,z)=>{if($==="PAGE"){const L=p.length;let O=[];if(L===0)O=[...g];else{const V=p[L-1];O=[...m(V)]}O.forEach(V=>{C.emit(V,z)})}else C.emit($,z)};a.provide(gn,{onEvent:S,offEvent:b,emitEvent:E});const y=a.ref(0),w=()=>{y.value=a.unref(y)+1};a.provide(Tr,{requestToken:w});const _=new Map,D=new Map,k=({requestFn:$=()=>{},sortNum:z=0,id:L=""})=>{if(_.has(z)){const O=_.get(z);O==null||O.push($)}else _.set(z,[$]);D.set(L,$)},T=$=>new Promise((z,L)=>{const O=$.map(V=>V());Promise.all(O).then(V=>{z(V)}).catch(V=>{L(V)})}),R=async()=>{var L;const $=await rr.get(`${Rr}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:Dr,Authentication:""}}),{token:z}=((L=$.data)==null?void 0:L.data)||{};window.config.indicatorToken=z},A=$=>new Promise(async(z,L)=>{if($){if(typeof $=="string"){const O=D.get($);if(typeof O=="function"){const V=Ye.interceptors.response.use(B=>(z(B),B),B=>(L(B),Promise.reject(B)));O(),Ye.interceptors.response.eject(V)}}}else{const O=Array.from(_);O.sort((B,I)=>I[0]-B[0]);const V=O.length;try{e.pageMode!=="design"&&a.unref(y)>0&&await R();for(let B=0;B<V;B++){const I=O[B][1];await T(I)}}catch(B){console.error(B)}finally{_.clear(),z(null)}}});a.provide(Te,{setRequest:k,touchRequest:A});const H=()=>{C.emit(Et)};a.provide(Et,{emitRefreshPage:H});const q=$=>{C.on(Et,()=>$()),a.onMounted(()=>{C.off(Et)})};return a.onBeforeUnmount(()=>{_==null||_.clear(),D==null||D.clear()}),n({touchRequest:A,getGlobalModel:c,onRefreshPage:q}),{providerConfig:t}}}),_l={id:"ProviderConfig",ref:"providerConfig"};function El(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",_l,[a.renderSlot(e.$slots,"default")],512)}const z0=le(se(kl,[["render",El]])),lo={...he,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},co=ce(lo),M0=["refreshData","click","valueChange"],Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Tl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Bl=a.defineComponent({name:"EcanText",components:{Skeleton:Ft},props:{...co},setup(e){const n=de(e),t=a.ref({});a.watch(()=>[e.data,e.dataType],([x,u])=>{u==="static"&&(t.value=x)},{immediate:!0});const o=a.computed(()=>{var v;const x=a.unref(t);let u=e.text;u=u==null?void 0:u.replace(/\n|\\n/g,"<br/>"),u=u==null?void 0:u.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=u.match(/\{(.+?)\}/g);if(m==null||m.length===0)return u;for(let C=0;C<m.length;C++){const g=m[C],S=(v=g==null?void 0:g.slice(1,g.length-1))==null?void 0:v.trim();let b=S;const E=S.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let w=0;w<E.length;w++){const _=E[w],D=x[_];D&&(b=S.replace(_,D))}if(/\(.*\)/g.test(b)){const w=Jt(b);w!=null&&(b=w)}let y=b;if(y===S&&(y=e.variableDefaultValue),y!=null){const w=e.format;w==="percentage"?(y=+y,isNaN(y)?u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):y>=0?(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Al}"/>${y}%</span>`)):(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Tl}"/>${Math.abs(+y)}%</span>`))):e.format==="percent"?(y=+y,isNaN(y)||(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}%</span>`))):e.format==="money"?(y=+y,isNaN(y)||(y=ao(y),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):w==="thousands"?(y=+y,isNaN(y)||(y=vl(y),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`)}}return`<span>${u}</span>`}),{pageMode:r}=a.inject(Ae,{pageMode:"normal"}),i=Pe(e),l=a.ref(!1),s=async()=>{var x;try{l.value=!0;const u=await i();t.value=((x=u==null?void 0:u.data)==null?void 0:x.data)||{}}catch(u){console.error(u)}finally{l.value=!1}},f=()=>{e.dataType!=="static"&&s()};be(e,{refreshData:f});const{setRequest:c}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});c({id:e.id,requestFn:f,sortNum:e.requestSort}),be(e,{refreshData:f});const d=pe(e),p=d("click",()=>{if(!e.linkPage&&!e.href)return;const x=e.linkPage||"",u=N0(a.unref(r),x),m=e.href;let v=m||u;v=ye(v);const C=e.target;C&&(C!=="event"?window.open(v,"_"+C):window.parent.postMessage({type:"openPage",url:m},"*"))}),h=d("valueChange",()=>{});return a.watch(()=>o.value,(x,u)=>{x!==u&&h()}),{style:n,myText:o,loading:l,click:p}}}),Jf="",Dl=["innerHTML"];function Rl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"ecan-text",style:a.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Dl))}const F0=le(se(Bl,[["render",Rl],["__scopeId","data-v-e3658bca"]])),Il=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),e1="",Ll={class:"red"};function Ol(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Ll,a.toDisplayString(e.text),1)}const V0=le(se(Il,[["render",Ol],["__scopeId","data-v-4dd9c03e"]])),fo={...he,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},uo=ce(fo),q0=["timeChange"],Nl=a.defineComponent({name:"EcanTimeDisplay",props:{...uo},setup(e){const n=de(e),t=()=>{const{format:c,operate:d}=e;let p=Le();if(d){const{type:h,value:x,mode:u}=d;switch(h){case"add":p=p.add(x,u);break;case"minus":p=p.subtract(x,u)}}return p.format(c)},o=a.ref();a.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),a.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},s=pe(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const h={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*h[p]),r=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),n1="";function Pl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"time-display",style:a.normalizeStyle(e.style)},a.toDisplayString(e.time),5)}const H0=le(se(Nl,[["render",Pl],["__scopeId","data-v-b628fca2"]])),ho={...he,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},xo=ce(ho),$0=["refreshData","click"],zl=a.defineComponent({name:"EcanList",components:{Skeleton:Ft},props:{...xo},setup(e){const n=a.ref(e.data),t=de(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(x,u)=>u==null||u===""?x:{money:ao,percentage:Yt,contrast:Yt}[u](x)||"",i=(x,u)=>{const m=parseFloat(x+"");if(u!=="contrast")return"";switch(!0){case m>=0:return"goUp";case m<0:return"goDown"}},l=Pe(e),s=a.ref(!1),f=async()=>{var x;if(e.dataType==="request")try{s.value=!0;const u=await l();n.value=((x=u==null?void 0:u.data)==null?void 0:x.data.rows)||[]}catch(u){console.error(u)}finally{s.value=!1}},c=()=>{f()},p=pe(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:h}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});return h({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),r1="",a1="",Ml=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),Fl={key:0,class:"title"},Vl={key:0,class:"ranking"},ql={key:1,class:"ecan-list-content"},Hl={key:0,class:"ranking"},$l=Ml(()=>a.createElementVNode("div",{class:"icon"},null,-1)),jl={class:"sort"},Ul={key:2,class:"empty"};function Wl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(l,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",Fl,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,s=>(a.openBlock(),a.createElementBlock("div",{class:"title-inner",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(a.openBlock(),a.createElementBlock("div",Vl)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"column",key:f.key||c,style:a.normalizeStyle({color:f.titleColor,...e.columnStyle})},a.toDisplayString(f.title),5))),128))],4))),128))])):a.createCommentVNode("",!0),e.dataSource.length>0?(a.openBlock(),a.createElementBlock("div",ql,[e.useTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title-placeholder",style:a.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dataSource.slice(0,e.sliceCount),(s,f)=>(a.openBlock(),a.createElementBlock("div",{class:"item",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",Hl,[$l,a.createElementVNode("div",jl," Top "+a.toDisplayString(f+1),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,c=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["column",e.contrastClass(s[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",Ul," 暂无数据 "))]),_:1},8,["loading"])],4)}const j0=le(se(zl,[["render",Wl],["__scopeId","data-v-7aa27677"]])),mo={...he,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},go=ce(mo),U0=["refreshData","click"],Gl=a.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Ft},props:{...go},setup(e){const{pageMode:n}=a.inject(Ae,{pageMode:"normal"}),t=de(e),o=a.computed(()=>{const u=e.width;return parseFloat(u)}),r=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(n)==="design")&&(r.value=e.data)},{immediate:!0,deep:!0});const i=a.computed(()=>{const u=a.unref(r),m=+e.variableDefaultValue;if(u==null)return isNaN(m)?0:m;const v=e.text.match(/\{.+\}/g)||[];let C;const g=new Set(Object.keys(u));for(let S=0;S<v.length;S++){const b=v[S],E=b.slice(1,b.length-1);if(g.has(E)){C=u[E];break}}return typeof C=="number"?C=C*100:typeof C=="string"&&!isNaN(+C)?C=+C*100:isNaN(m)?C=0:C=m*100,e.decimalFormat&&(C=+C.toFixed(2)),C}),l=a.computed(()=>{var g;let u=e.text;if(u==="")return a.unref(i);const m=e.variableDefaultValue,v=a.unref(r),C=u.match(/\{.+\}/g)||[];for(let S=0;S<C.length;S++){const b=C[S];let E=b.slice(1,b.length-1);const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=b.match(y);for(let D=0;D<(w==null?void 0:w.length);D++){const k=(g=w[D])==null?void 0:g.trim();v[k]!=null&&(E=E.replace(k,v[k]))}let _=E;try{/\(.*\)/g.test(E)&&(_=Jt(E))}catch(D){console.error(D)}typeof+_=="number"&&!isNaN(+_)?(_=+_*100,e.decimalFormat&&(_=_.toFixed(2))):_=m,u=u.replace(b,_+"")}return u}),s=Pe(e),f=a.ref(!1),c=async()=>{var u;if(e.dataType==="request")try{f.value=!0;const m=await s();r.value=((u=m==null?void 0:m.data)==null?void 0:u.data)||{}}catch(m){console.error(m)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const h=pe(e)("click",()=>{}),{setRequest:x}=a.inject(Te,{setRequest:({id:u,sortNum:m,requestFn:v})=>{}});return x({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:t,myWidth:o,text:l,myValue:i,loading:f,click:h}}}),s1="";function Zl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton"),s=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const W0=le(se(Gl,[["render",Zl],["__scopeId","data-v-00244f8a"]])),po={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},yo=ce(po),G0=["inputChange","inputBlur"],Kl=a.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...yo},setup(e){const n=de(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(Se,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},l=pe(e),s=He.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),c1="";function Yl(e,n,t,o,r,i){const l=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Z0=le(se(Kl,[["render",Yl]])),vo={...he,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},bo=ce(vo),K0=["dateChange"],Xl=a.defineComponent({name:"EcanDatePicker",props:{...bo},components:{ADatePicker:ae.DatePicker},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Le(ye(f)):c&&(p=Le()),d&&p){const{type:h,value:x,mode:u}=d;switch(h){case"add":p=p.add(x,u);break;case"minus":p=p.subtract(x,u)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:r}=a.inject(Se,{setGlobalModel:(f,c)=>{}});r(e.id,{type:e.type,format:e.format,value:o});const l=pe(e)("dateChange",()=>{}),s=()=>{a.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ar,change:s}}}),d1="";function Jl(e,n,t,o,r,i){const l=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Y0=le(se(Xl,[["render",Jl]])),So={...he,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},Co=ce(So),X0=["dateChange"],Ql=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref([null,null]);a.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([v,C,g,S,b,E])=>{let y=null,w=null;if(g&&(y=Le().subtract(S,b),w=Le()),v&&(y=Le(ye(v))),C&&(w=Le(ye(C))),E){const{type:_,value:D,mode:k}=E;switch(_){case"add":y=y&&y.add(D,k),w=w&&w.add(D,k);break;case"minus":y=y&&y.subtract(D,k),w=w&&w.subtract(D,k)}}o.value=[y,w]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1];const l=v=>{Array.isArray(v)?(r=v[0],i=v[1]):(r=null,i=null)},s=v=>{let C=!1,{limitStartTime:g,limitEndTime:S}=e;const b={startTime:`${r||""}`,endTime:`${i||""}`};return g=ye(g,{codeData:b}),S=ye(S,{codeData:b}),g&&S?C=!(Le(g)<v&&v<Le(S)):g?C=Le(g)>v:S&&(C=Le(S)<v),C},{setGlobalModel:f}=a.inject(Se,{setGlobalModel:(v,C)=>{}}),c=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),d=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=pe(e);let h=!1;const x=p("dateChange",()=>{}),u=v=>{const C=a.unref(o),g=C&&C[0]&&C[1];v===!1&&h===!0&&g&&(x(),h=!1)},m=()=>{h=!0};return be(e,{dateChange:x}),{style:n,getPopupContainer:t,locale:ar,dateChange:x,myValue:o,disabledDate:s,calendarChange:l,openChange:u,change:m}}}),h1="",x1="";function ec(e,n,t,o,r,i){const l=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const J0=le(se(Ql,[["render",ec],["__scopeId","data-v-ddb2a0fe"]])),wo={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},ko=ce(wo),Q0=["click"],tc=a.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{...ko},setup(e){const n=de(e),o=pe(e)("click",()=>{const s=a.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),r=a.computed(()=>ye(e.text)),i=a.computed(()=>ye(e.href)||null),l=a.computed(()=>{const s=e.target;if(!(s==="event"||a.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:o,myText:r,myHref:i,myTarget:l}}}),g1="";function nc(e,n,t,o,r,i){const l=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const ea=le(se(tc,[["render",nc]])),_o={...he,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Eo=ce(_o),ta=["checkboxChange"],oc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=de(e),t=a.ref([]),o=a.ref([]),r=h=>{const x=e.value;let u=[];h.forEach(m=>{m.checked&&u.push(m.value)}),typeof x=="string"&&x!==""?u=u.concat(x.split(",")):Array.isArray(x)&&(u=u.concat(x)),t.value=h,o.value=u};a.watch(()=>[e.data,e.value],([h])=>{r(h)},{immediate:!0,deep:!0});const i=Pe(e),l=async()=>{var u,m;if(e.dataType!=="request")return;const h=await i(),x=((m=(u=h==null?void 0:h.data)==null?void 0:u.data)==null?void 0:m.rows)||[];r(x)},{getGlobalModel:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:h=>{},setGlobalModel:(h,x)=>{}});f(e.id,{type:e.type,value:o});const d=pe(e)("checkboxChange",()=>{const h=s(e.id);f(e.id,{...h,RECORD:o})}),{setRequest:p}=a.inject(Te,{setRequest:({id:h,sortNum:x,requestFn:u})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),y1="";function rc(e,n,t,o,r,i){const l=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const na=le(se(oc,[["render",rc]])),Ao={...he,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},To=ce(Ao),oa=["selectChange","refreshData"],ac=a.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...To},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=Pe(e),r=a.ref(e.data||[]),i=a.ref();a.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:v,selectFirstOption:C,value:g}=e;v==="multiple"||v==="tags"||v==="combobox"?g?i.value=g.split(","):C&&(i.value=[a.unref(r)[0]]):g?i.value=g:C&&(i.value=a.unref(r)[0])},{immediate:!0});const l=e.dataFieldNames,s=(v,C)=>{const g=l.label,S=l.value;let b;const E=C[g],y=C[S];return E!=null?b=E:y!=null&&(b=y),(b==null?void 0:b.toLowerCase().indexOf(v==null?void 0:v.toLowerCase()))>=0},f=v=>{const{label:C,value:g,options:S}=e.dataFieldNames;if(S&&Array.isArray(v))if(v.some(b=>S in b)){const b={},E=[];v.forEach(y=>{b[y[S]]||(b[y[S]]=[]),b[y[S]].push({[C]:y[C],[g]:y[g]})});for(const y in b)E.push({[C]:y,[S]:b[y]});return E}else return v;else if(!S)return v},c=a.ref(!1),d=async()=>{var v,C;if(e.dataType==="request"){c.value=!0;try{const g=await o();if(r.value=f(((C=(v=g==null?void 0:g.data)==null?void 0:v.data)==null?void 0:C.rows)||[]),e.selectFirstOption){let S=a.unref(r)[0];if(l.options){const b=S[l.options];b&&b.length&&(S=b[0])}i.value=S[l.value]}}catch(g){console.error(g)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:h}=a.inject(Se,{getGlobalModel:v=>{},setGlobalModel:(v,C)=>{}});h(e.id,{type:e.type,value:i});const u=pe(e)("selectChange",()=>{const v=e.id,C=p(v);h(v,{...C,RECORD:i})});be(e,{selectChange:u,refreshData:d});const{setRequest:m}=a.inject(Te,{setRequest:({id:v,sortNum:C,requestFn:g})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:u,options:r,filterOption:s,loading:c}}}),b1="",S1="";function ic(e,n,t,o,r,i){const l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-select",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const ra=le(se(ac,[["render",ic],["__scopeId","data-v-7c425ecc"]])),Bo={...he,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Do=ce(Bo),aa=["selectChange","refreshData"],sc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Do},setup(e){const n=de(e),t=a.ref(e.data),o=(x,u)=>{const m=e.dataFieldNames,v=m.label,C=m.value;let g;const S=u[v],b=u[C];return S!=null?g=S:b!=null&&(g=b),(g==null?void 0:g.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:x,value:u,selectFirstOption:m}=e;x?u?r.value=u.split(","):m&&(r.value=[a.unref(t)[0]]):u?r.value=u:m&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),l=Pe(e),s=async()=>{var x,u;if(e.dataType==="request"){i.value=!0;try{const m=await l();t.value=((u=(x=m==null?void 0:m.data)==null?void 0:x.data)==null?void 0:u.rows)||[];const v=a.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(m){console.error(m)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:x=>{},setGlobalModel:(x,u)=>{}});c(e.id,{type:e.type,value:r});const p=pe(e)("selectChange",()=>{const x=e.id,u=f(x);c(x,{...u,RECORD:r})});be(e,{selectChange:p,refreshData:s});const{setRequest:h}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});return h({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:p}}},w1="",k1="";function lc(e,n,t,o,r,i){const l=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const ia=le(se(sc,[["render",lc],["__scopeId","data-v-37236421"]])),Ro={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Io=ce(Ro),sa=["click","refreshData","resetRecord"],Dt=async e=>{var f;const n=await Ye.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(r),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Lo={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Oo=ce(Lo),la=["showModal"],cc=a.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:es},props:{...Oo},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=a.computed(()=>{const O=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[O]}}),r=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=a.ref("80%"),c=a.ref(0),d=a.ref(),p=a.ref(0),h=a.ref({}),x=de(e),u=a.ref({}),m=a.ref(!1),v=a.ref();let C;const g=()=>{d.value=parseFloat(r)/parseFloat(l);const O=parseFloat(i)/parseFloat(s),V=document.body.offsetWidth,B=document.body.offsetHeight;c.value=V*a.unref(d),p.value=B*O,f.value=`${a.unref(d)*100}%`,h.value={width:`${a.unref(c)}px`,height:`${a.unref(p)}px`},u.value={...a.unref(x),backgroundImage:nt(e.backgroundImage,!0),transform:`scale(${a.unref(c)/parseFloat(r)},${a.unref(p)/parseFloat(i)})`,width:r,height:i}},S=He.debounce(()=>{g()},100),b=()=>{const O=window.MutationObserver;C=new O(S),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},E=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},y=a.ref(!1),{touchRequest:w}=a.inject(Te,{touchRequest:()=>{}}),_=()=>{y.value=!0},D=()=>{n("close"),y.value=!1},k=()=>{D()},T=()=>{D()},{setModalModel:R,pushUseModalIds:A,popUseModalIds:H}=a.inject(Br,{pushUseModalIds:O=>{},popUseModalIds:()=>{},setModalModel:(O,V)=>{}}),q=()=>{const O=e.id;let V=[];const B=e.componentList;Array.isArray(B)&&(V=B.map(I=>I.id),R(O,[...new Set(V)]))};a.watch(()=>y.value,async O=>{O?(m.value=!1,A(e.id),q(),await a.nextTick(()=>{g(),window.addEventListener("resize",S),b(),m.value=!0}),w()):(H(),window.removeEventListener("resize",S),E())});const $=a.computed(()=>a.unref(d)>=1),z=a.computed(()=>e.fullModal),L=a.computed(()=>{let O="ecan-modal";return a.unref($)&&(O+=" ecan-full-width-modal"),a.unref(z)&&(O+=" ecan-full-modal"),O});return be(e,{showModal:_}),{modalRef:v,containStyle:h,contentStyle:u,getContainer:t,modalStyle:o,modalWith:f,isFullModal:z,style:x,visible:y,showModal:_,onOk:k,onCancel:T,isFullWidth:$,wrapClassName:L,ready:m}}}),E1="",A1="",fc={key:0};function dc(e,n,t,o,r,i){const l=a.resolveComponent("close-outlined"),s=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:a.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"contain",ref:"containRef",style:a.normalizeStyle(e.containStyle)},[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"content",style:a.normalizeStyle(e.contentStyle)},[a.createElementVNode("div",{class:"header-bar",style:a.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.title),5)):a.createCommentVNode("",!0),a.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(a.openBlock(),a.createElementBlock("div",fc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.componentList,(f,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.type),a.mergeProps({key:f.id+c},f),null,16))),128))])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):a.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const rt=le(se(cc,[["render",dc],["__scopeId","data-v-4234f235"]]));qe.use([it.CanvasRenderer,Ue.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const uc=a.defineComponent({name:"EcanPie",props:{...Io},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(!1),o=de(e),r=a.ref([]),i=a.ref(),l=a.computed(()=>{let{data:w=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const _=e.isUseLabelColors,D=e.colors;w=w.map((k,T)=>({label:_?{color:D[T]}:{},...k}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;t.value=!0,(_=i.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:_=>{const{marker:D,seriesName:k,name:T,value:R,percent:A,data:H}=_||{};return ye(e.tooltipFormatter,{textData:{marker:D,name:T,value:R,percent:A,a:k,b:T,c:R,d:A,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ct:e.labelFontSize}},color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?ct:e.labelFontSize,position:e.labelPosition,formatter:yl(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:d}=a.inject(Ae,{pageMode:"normal"}),p=(w=[],_)=>{const{dataset:D}=At(w,_);r.value=D},h=(w=[],_)=>{const D=At(w,_);r.value=D.dataset};a.watch(()=>e.data,w=>{(e.dataType==="static"||a.unref(d)==="design")&&p(w)},{immediate:!0,deep:!0});const x=a.ref(!1),u=Pe(e),m=async()=>{var w,_;if(e.dataType==="request")try{x.value=!0;const D=await u();p((_=(w=D==null?void 0:D.data)==null?void 0:w.data)==null?void 0:_.rows,e.valueTypeDataFieldNames)}catch(D){console.error(D)}finally{x.value=!1}},C=pe(e)("click",w=>{const _=f(e.id);c(e.id,{..._,RECORD:w==null?void 0:w.data})}),g=Bt(e),S=async()=>{var w;try{x.value=!0;const _=await g(),{data:D}=_.data||{};if(D){const{columns:k=[],rows:T=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let R=[];if(k.length>0){const A=k[0],H=k[1];R=T.map(q=>({name:q[A],value:q[H]}))}h(R)}}catch(_){console.error(_)}finally{x.value=!1}},b=()=>{switch(e.dataType){case"indicator":S();break;case"request":m();break}};be(e,{resetRecord:()=>{const w=e.id,_=f(w);c(w,{..._,RECORD:""})},refreshData:b,click:C}),n({refreshData:b});const{setRequest:y}=a.inject(Te,{setRequest:w=>{}});return typeof y=="function"&&y({id:e.id,requestFn:b,sortNum:e.requestSort}),{option:l,style:o,click:C,onClose:s,loading:x,ecanModal:i}}}),B1="";function hc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ca=le(se(uc,[["render",hc]])),No={...he,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Po=ce(No),fa=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const xc=a.defineComponent({name:"EcanLine",props:{...Po},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=de(e),i=a.ref([]),l=a.ref([]),s=a.ref(),f=a.computed(()=>o.value?ct:12),c=a.ref({});let d;const p=a.computed(()=>{const A=e.xAxisLabelFormatter,H=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var q;o.value=!0,(q=s.value)==null||q.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:q=>{var O;const $=q.length;let z="",L=e.tooltipFormatter;d=(O=q[0])==null?void 0:O.data,L===""&&(L="{marker} {a} {c}");for(let V=0;V<$;V++){const{marker:B,seriesName:I,name:M,value:N,data:Y}=q[V]||{};V===0&&(z+=`${M}<br/>`),z+=ye(L,{textData:{marker:B,name:M,value:N,a:I,b:M,c:N,...Y}},{useNewline:!0,useSpace:!0}),z+="<br/>"}return z}},xAxis:{type:"category",data:a.unref(l).map(q=>{let $={};return q&&typeof q=="object"?$={...q,textStyle:{fontSize:f.value}}:$={value:q,textStyle:{fontSize:f.value}},$}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(q){return ot(A,q)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:f.value,color:e.yAxisLabelColor,formatter(q){return ot(H,q)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value}},series:a.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:x,setGlobalModel:u}=a.inject(Se,{getGlobalModel:A=>{},setGlobalModel:(A,H)=>{}}),{pageMode:m}=a.inject(Ae,{pageMode:"normal"}),v=(A=[],H=!1)=>{let q;if(e.dataFieldConfigType==="key"){const O=H?e.keyTypeDataFieldNames:null;q=vt(A,O)}else if(e.dataFieldConfigType==="value"){const O=H?e.valueTypeDataFieldNames:null;q=At(A,O)}l.value=q.dimensions;const $=q.dataset,z=[],L=$.length;for(let O=0;O<L;O++)z.push({type:"line",...$[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=z},C=(A=[],H,q=!1)=>{const z=vt(A,q?H:null);l.value=z.dimensions;const L=z.dataset,O=[],V=L.length;for(let B=0;B<V;B++)O.push({type:"line",...L[B],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=O};a.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([A])=>{(e.dataType==="static"||a.unref(m)==="design")&&v(A)},{immediate:!0,deep:!0});const g=a.ref(!1),S=Pe(e),b=async()=>{var A,H;if(e.dataType==="request")try{g.value=!0;const q=await S();v((H=(A=q==null?void 0:q.data)==null?void 0:A.data)==null?void 0:H.rows,!0)}catch(q){console.error(q)}finally{g.value=!1}},y=pe(e)("click",A=>{const H=x(e.id);u(e.id,{...H,RECORD:e.tooltipShow?d:A.data})}),w=A=>{t.value.chart.containPixel("grid",[A.offsetX,A.offsetY])&&y()};e.tooltipShow?c.value["zr:click"]=w:c.value.click=y;const _=Bt(e),D=async()=>{var A;try{g.value=!0;const H=await _(),{columns:q=[],rows:$=[]}=((A=H==null?void 0:H.data)==null?void 0:A.data)??{};let z;q.length>0&&(z={name:q[0],types:q.slice(1).map(L=>({label:L,value:L}))}),C($,z,!0)}catch(H){console.error(H)}finally{g.value=!1}},k=()=>{switch(e.dataType){case"indicator":D();break;case"request":b();break}};be(e,{refreshData:k,resetRecord:()=>{const A=e.id,H=x(A);u(A,{...H,RECORD:""})},click:y});const{setRequest:R}=a.inject(Te,{setRequest:A=>{}});return typeof R=="function"&&R({id:e.id,requestFn:k,sortNum:e.requestSort}),n({refreshData:k}),{option:p,style:r,click:y,loading:g,onClose:h,ecanModal:s,eventObj:c,echartRef:t}}}),R1="";function mc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const da=le(se(xc,[["render",mc]])),zo={...he,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Mo=ce(zo),ua=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const gc=a.defineComponent({name:"EcanBar",props:{...Mo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=de(e),f=a.ref([]),c=a.ref(),d=a.computed(()=>o.value?ct:12),p=a.computed(()=>{const L=a.unref(f),O=L.length,V=[];for(let B=0;B<O;B++){const I={...L[B],type:"bar",barWidth:e.barWidth};e.isStack&&(I.stack="stack"),I.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},V.push(I)}return V}),h=a.ref([]),x=a.ref(!1),u=a.computed(()=>{const L=e.yAxisLabelFormatter,O=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const V=t.value.chart.getOption(),{xAxis:B}=V||{};B&&B.length&&(l.value=B[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var V;o.value=!0,(V=c.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{const B=V.length;let I="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");for(let N=0;N<B;N++){const{marker:Y,seriesName:Z,name:Q,value:W,data:ke}=V[N]||{};N===0&&(I+=`${Q}<br/>`),I+=ye(M,{textData:{marker:Y,name:Q,value:W,a:Z,b:Q,c:W,...ke}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:d.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(S),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(V){return ot(O,V)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(h):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(V){return ot(L,V)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(p)}}),{pageMode:m}=a.inject(Ae,{pageMode:"normal"}),v=()=>{o.value=!1},C=(L=[],O=!1)=>{let V={};if(e.dataFieldConfigType==="key"){const B=O?e.keyTypeDataFieldNames:null;V=vt(L,B)}else if(e.dataFieldConfigType==="value"){const B=O?e.valueTypeDataFieldNames:null;V=At(L,B)}f.value=V.dataset,h.value=V.dimensions},g=(L=[],O,V=!1)=>{const I=vt(L,V?O:null);f.value=I.dataset,h.value=I.dimensions},S=a.computed(()=>a.unref(h).map(L=>{let O={};return L&&typeof L=="object"?O={...L,textStyle:{fontSize:d.value}}:O={value:L,textStyle:{fontSize:d.value}},O}));a.watch(()=>e.data,L=>{(e.dataType==="static"||a.unref(m)==="design")&&C(L)},{immediate:!0,deep:!0});const b=Pe(e),E=async()=>{var L,O;try{x.value=!0;const V=await b();C((O=(L=V==null?void 0:V.data)==null?void 0:L.data)==null?void 0:O.rows,!0)}catch(V){console.error(V)}finally{x.value=!1}},y=Bt(e),w=async()=>{var L;try{x.value=!0;const O=await y(),{columns:V=[],rows:B=[]}=((L=O==null?void 0:O.data)==null?void 0:L.data)??{};let I;V.length>0&&(I={name:V[0],types:V.slice(1).map(M=>({label:M,value:M}))}),g(B,I,!0)}catch(O){console.error(O)}finally{x.value=!1}},_=()=>{switch(e.dataType){case"indicator":w();break;case"request":E();break}},D=(L,O)=>!!a.unref(l)[O.value].value.includes(L),k=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let O=0;O<7;O++)await T(L,O)},T=(L,O)=>new Promise(V=>{setTimeout(()=>{const{series:B,color:I,xAxis:M}=L,N=t.value.chart,{splitArea:Y={}}=M[0]||{};B.forEach((Z,Q)=>{const W=Z.data;let ke="";O%2?ke=I[Q]+"a8":ke=I[Q],W[i.value].itemStyle={color:ke}}),O%2?(Y.show=!0,Y.areaStyle.color=a.unref(l).map((Z,Q)=>Q===i.value?"#ff003b26":"")):Y.show=!1,N.setOption({series:B,xAxis:M}),V()},200)});n({refreshData:_});const R=pe(e),{getGlobalModel:A,setGlobalModel:H}=a.inject(Se,{getGlobalModel:L=>{},setGlobalModel:(L,O)=>{}}),q=R("click",L=>{const O=A(e.id);H(e.id,{...O,RECORD:L.data})}),{setRequest:$}=a.inject(Te,{setRequest:L=>{}});return typeof $=="function"&&$({id:e.id,requestFn:_,sortNum:e.requestSort}),be(e,{refreshData:_,click:q,resetRecord:()=>{const L=e.id,O=A(L);H(L,{...O,RECORD:""})}}),{option:u,style:s,refreshData:_,click:q,loading:x,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:k,onFilterOption:D,locationVisible:r,locationValue:i,locationNames:l}}}),L1="",O1="",pc=e=>(a.pushScopeId("data-v-39560f07"),e=e(),a.popScopeId(),e),yc={class:"location-wrap"},vc=pc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function bc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",yc,[vc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ha=le(se(gc,[["render",bc],["__scopeId","data-v-39560f07"]])),Fo={...he,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Vo=ce(Fo),xa=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Sc=a.defineComponent({name:"EcanScatter",props:{...Vo},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e){const n=a.ref(!1),t=de(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?ct:12),l=a.computed(()=>{const b=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var y;n.value=!0,(y=r.value)==null||y.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(y){return ot(b,y)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(y){return ot(E,y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(y){var R;const{marker:w,seriesName:_}=y,D=((R=y==null?void 0:y.data)==null?void 0:R.record)??{},{name:k,value:T}=D;return ye(e.tooltipFormatter,{textData:{marker:w,seriesName:_,a:_,b:k,c:T,...D}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),{pageMode:c}=a.inject(Ae,{pageMode:"normal"}),d=(b=[],E)=>{const{name:y="name",value:w="value"}=E||{};o.value=b.map(_=>({value:[_[y],_[w]],record:_}))};a.watch(()=>e.data,b=>{(e.dataType==="static"||a.unref(c)==="design")&&d(b)},{immediate:!0,deep:!0});const p=a.ref(!1),h=Pe(e),x=async()=>{var b,E;if(e.dataType==="request"){p.value=!0;try{const y=await h();d((E=(b=y==null?void 0:y.data)==null?void 0:b.data)==null?void 0:E.rows,e.dataFieldNames)}catch(y){console.error(y)}finally{p.value=!1}}},u=()=>{n.value=!1},v=pe(e)("click",b=>{const E=e.id,y=s(E);f(E,{...y,RECORD:b==null?void 0:b.data})});be(e,{refreshData:()=>{x()},click:v,resetRecord:()=>{const b=e.id,E=s(b);f(b,{...E,RECORD:""})}});const{setRequest:S}=a.inject(Te,{setRequest:b=>{}});return typeof S=="function"&&S({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:l,style:t,click:v,loading:p,onClose:u,ecanModal:r}}}),P1="";function Cc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ma=le(se(Sc,[["render",Cc]])),qo={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},Ho=ce(qo),wc=a.defineComponent({name:"EcanCustomGraph",props:{...Ho},components:{Echarts:Qe},setup(e){const n=de(e),t=a.ref();return a.watch(()=>e.optionCode,o=>{try{const r=eval;t.value=r(o)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:Wa}}});function kc(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const ga=le(se(wc,[["render",kc]])),$o={...he,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},jo=ce($o),pa=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,Ue.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const _c=a.defineComponent({name:"EcanComboGraph",props:{...jo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=de(e),f=a.ref([]),c=a.ref([]),d=a.ref(),p=a.computed(()=>o.value?ct:12),h=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const z=t.value.chart.getOption(),{xAxis:L}=z||{};L&&L.length&&(l.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var z;o.value=!0,(z=d.value)==null||z.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:z=>{const L=z.length;let O="",V=e.tooltipFormatter;V===""&&(V="{marker} {a} {c}");const B=e.seriesTypes;for(let I=0;I<L;I++){const M=B[I],{tooltipFormatter:N}=M||{},{marker:Y,seriesName:Z,name:Q,value:W,data:ke}=z[I]||{};I===0&&(O+=`${Q}<br/>`),O+=ye(N||V,{textData:{marker:Y,name:Q,value:W,seriesName:Z,a:Z,b:Q,c:W,...ke}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(z=>{let L={};return z&&typeof z=="object"?L={...z,textStyle:{fontSize:p.value}}:L={value:z,textStyle:{fontSize:p.value}},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(C),series:a.unref(f)})),{pageMode:x}=a.inject(Ae,{pageMode:"normal"}),u=()=>{o.value=!1},m=(z=[],L=!1)=>{let O;if(e.dataFieldConfigType==="key"){const N=L?e.keyTypeDataFieldNames:null;O=vt(z,N)}else if(e.dataFieldConfigType==="value"){const N=L?e.valueTypeDataFieldNames:null;O=At(z,N)}c.value=O.dimensions;const V=O.dataset,B=[],I=V.length,M=e.seriesTypes;for(let N=0;N<I;N++){const Y=M[N],{type:Z,axisIndex:Q}=Y||{};let W={type:Z,yAxisIndex:Q,...V[N]};Z==="line"&&(W={...W,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),Z==="bar"&&(W={...W,barWidth:e.barWidth}),B.push(W)}f.value=B},v=(z=[],L,O=!1)=>{const B=vt(z,O?L:null);c.value=B.dimensions;const I=B.dataset,M=[],N=I.length,Y=e.seriesTypes;for(let Z=0;Z<N;Z++){const Q=Y[Z];M.push({type:Q==null?void 0:Q.type,yAxisIndex:Q==null?void 0:Q.axisIndex,...I[Z]})}f.value=M};a.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([z])=>{(e.dataType==="static"||a.unref(x)==="design")&&m(z)},{immediate:!0,deep:!0});const C=a.computed(()=>{const z=e.yAxis;return z==null?void 0:z.map(L=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:p.value,color:e.yAxisLabelColor,formatter(O){return ot(L.axisLabelFormatter,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),g=a.ref(!1),S=Pe(e),b=async()=>{var z,L;if(e.dataType==="request")try{g.value=!0;const O=await S();m((L=(z=O==null?void 0:O.data)==null?void 0:z.data)==null?void 0:L.rows,!0)}catch(O){console.error(O)}finally{g.value=!1}},E=Bt(e),y=async()=>{var z;try{g.value=!0;const L=await E(),{columns:O=[],rows:V=[]}=((z=L==null?void 0:L.data)==null?void 0:z.data)??{};let B;O.length>0&&(B={name:O[0],types:O.slice(1).map(I=>({label:I,value:I}))}),v(V,B,!0)}catch(L){console.error(L)}finally{g.value=!1}},w=()=>{switch(e.dataType){case"indicator":y();break;case"request":b();break}},_=(z,L)=>!!a.unref(l)[L.value].value.includes(z),D=async()=>{r.value=!1;const z=t.value.chart.getOption();for(let L=0;L<7;L++)await k(z,L)},k=(z,L)=>new Promise(O=>{setTimeout(()=>{const{series:V,color:B,xAxis:I}=z,M=t.value.chart,{splitArea:N={}}=I[0]||{};V.forEach((Y,Z)=>{const Q=Y.data;let W="";L%2?W=B[Z]+"a8":W=B[Z],Q[i.value].itemStyle={color:W}}),L%2?(N.show=!0,N.areaStyle.color=a.unref(l).map((Y,Z)=>Z===i.value?"#ff003b26":"")):N.show=!1,M.setOption({series:V,xAxis:I}),O()},200)});n({refreshData:w});const T=pe(e),{getGlobalModel:R,setGlobalModel:A}=a.inject(Se,{getGlobalModel:z=>{},setGlobalModel:(z,L)=>{}}),H=T("click",z=>{const L=R(e.id);A(e.id,{...L,RECORD:z==null?void 0:z.data})}),{setRequest:q}=a.inject(Te,{setRequest:z=>{}});return typeof q=="function"&&q({id:e.id,requestFn:w,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const z=e.id,L=R(z);A(z,{...L,RECORD:""})},refreshData:w,click:H}),{style:s,option:h,click:H,loading:g,onClose:u,ecanModal:d,echartRef:t,handleLocationOk:D,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:l}}}),F1="",V1="",Ec=e=>(a.pushScopeId("data-v-40e976bd"),e=e(),a.popScopeId(),e),Ac={class:"location-wrap"},Tc=Ec(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Bc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",Ac,[Tc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ya=le(se(_c,[["render",Bc],["__scopeId","data-v-40e976bd"]])),Uo={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Wo=ce(Uo),va=["click"],Dc=a.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=de(e,["background"]),{theme:t}=a.inject(Ae,{theme:"light"}),o=a.computed(()=>({width:"100%",height:"100%"})),i=pe(e)("click",()=>{}),l=a.ref([]);a.watch(()=>e.data,f=>{l.value=f},{immediate:!0,deep:!0}),be(e,{click:i});const{setGlobalModel:s}=a.inject(Se,{setGlobalModel:(f,c)=>{}});return s(e.id,{type:e.type,value:l}),{style:n,click:i,borderStyle:o,theme:t}}}),Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",H1="",Ve=e=>(a.pushScopeId("data-v-1550b11b"),e=e(),a.popScopeId(),e),Lc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Oc=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Nc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Pc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),zc={class:"title-item-wrapper"},Mc={class:"title-item"},Fc=Ve(()=>a.createElementVNode("img",{class:"title-decoration-left",src:Rc},null,-1)),Vc={class:"title"},qc=Ve(()=>a.createElementVNode("img",{class:"title-decoration-right",src:Ic},null,-1)),Hc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),$c=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),jc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Uc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Wc={key:2,class:"left-title"},Gc={class:"title"};function Zc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[e.mode==="no-title"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"no-title",style:a.normalizeStyle(e.borderStyle)},[e.useBorderModify?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[Lc,Oc,Nc,Pc],64)):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0),e.mode==="top-title"?(a.openBlock(),a.createElementBlock("div",{key:1,class:"top-title",style:a.normalizeStyle(e.borderStyle)},[a.createElementVNode("div",zc,[a.createElementVNode("div",Mc,[Fc,a.createElementVNode("div",Vc,a.toDisplayString(e.title),1),qc])]),Hc,$c,jc,Uc],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",Wc,[a.createElementVNode("div",Gc,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],4)}const ba=le(se(Dc,[["render",Zc],["__scopeId","data-v-1550b11b"]])),Go={...he,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zo=ce(Go),Sa=["tabChange"],Kc=a.defineComponent({name:"EcanTabs",props:{...Zo},setup(e){const n=de(e),t=a.ref(0);a.watch(()=>e.activeKey,x=>{t.value=x},{immediate:!0});const{pageMode:o}=a.inject(Ae,{pageMode:"normal"});let r=null;const i=()=>{const x=Array.isArray(a.unref(l))?a.unref(l).length-1:0;e.autoSwitch&&x>0&&(r=setInterval(()=>{const u=a.unref(t)+1;u<=x?t.value=u:t.value=0,s.value=a.unref(l)[a.unref(t)],p()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const l=a.ref([]),s=a.ref({});a.watch(()=>e.data,x=>{l.value=x,s.value=Array.isArray(x)&&x.length>0?x[0]:{}},{immediate:!0,deep:!0});const f=x=>t.value===x,c=pe(e),{setGlobalModel:d}=a.inject(Se,{setGlobalModel:(x,u)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=a.inject(Et,{emitRefreshPage:()=>{}}),h=c("tabChange",(x,u)=>{u!==a.unref(t)&&(s.value=x,t.value=u,p())});return be(e,{tabChange:h}),{style:n,activeKey:t,isActive:f,tabChange:h,myData:l,useImagePath:nt}}}),j1="",Yc=["onClick"];function Xc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style)},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(l,s)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:s,onClick:a.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(l.title),5)],12,Yc))),128))],4)],4)}const Ca=le(se(Kc,[["render",Xc],["__scopeId","data-v-a2045b93"]])),Ko={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yo=ce(Ko),Jc=a.defineComponent({name:"EcanImage",props:{...Yo},setup(e){const n=de(e),t=a.computed(()=>nt(e.imgUrl)),{pageMode:o}=a.inject(Ae,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=N0(a.unref(o),i),s=e.href;let f=s||l;f=ye(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),W1="",Qc=["src"];function ef(e,n,t,o,r,i){return e.myImgUrl!==""?(a.openBlock(),a.createElementBlock("img",{key:0,style:a.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,12,Qc)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const wa=le(se(Jc,[["render",ef],["__scopeId","data-v-ef7a7bee"]])),Xo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Jo=ce(Xo),tf=a.defineComponent({name:"EcanIframe",props:{...Jo},setup(e){const n=de(e),{contextRequestUrl:t}=a.inject(Ae,{contextRequestUrl:""}),o=a.computed(()=>{let r=ye(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${ds||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),Z1="",nf=["src"];function of(e,n,t,o,r,i){return e.myLink?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:e.myLink,style:a.normalizeStyle(e.style)},null,12,nf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const ka=le(se(tf,[["render",of],["__scopeId","data-v-19bc100c"]])),Qo={...he,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{}},er=ce(Qo),_a=["click","refreshData","resetRecord","exportTableData"],rf=a.defineComponent({name:"EcanTable",components:{Skeleton:Ft,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...er},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=de(e),i=a.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=a.computed(()=>e.scrollX),s=a.computed(()=>parseFloat(e.height)-a.unref(i)),f=a.ref([]),c=a.ref([]),d=a.ref([]),p=a.ref([]),h=a.ref(0),x=a.ref(1),u=a.ref(e.paginationPageSize||10),m=a.reactive([]),v=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let X=0;X<U;X++){const G=j[X];X<K?G.fixed="left":G.fixed=!1;const{cellAlign:re="center",cellColor:te,dataIndex:ie,title:fe,tableFilter:ue,headerCellAlign:Fe,headerCellColor:ve}=G;ue&&(m.push(ie),G.filterOptionsInputValue="",G.filterCheckboxGroupValue=[],G.customFilterDropdown=!0,G.onFilter=(Ee,It)=>It[ie].toString().toLowerCase().includes(Ee.toLowerCase())),G.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:ve,borderBottomColor:e.borderColor}}),G.customCell=(Ee,It)=>({style:{textAlign:re,color:te,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(V)===It&&e.clickHighlight},onClick:H("click",()=>{const Lt=e.id,Qt=q(Lt);Ee={dataIndex:ie,title:fe,...Ee},$(Lt,{...Qt,RECORD:Ee})})}),Array.isArray(G.children)&&v(G.children)}}},C=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(j),j);a.watch(u,()=>{x.value=1,I(!1)}),a.watch(t,j=>{o.value=!!j}),a.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=C(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const g=a.ref({}),S=j=>{if(Array.isArray(j)){const U=j.length,K=m,X=K.length,G={};for(let te=0;te<U;te++){const ie=j[te];for(let fe=0;fe<X;fe++){const ue=K[fe];if(G[ue])G[ue].add(ie[ue]);else{const Fe=new Set;Fe.add(ie[ue]),G[ue]=Fe}}}const re={};for(const te in G)if(Object.prototype.hasOwnProperty.call(G,te)){const ie=G[te],fe=Array.from(ie);re[te]=fe.map(ue=>({label:ue,value:ue}))}g.value=re}};a.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=a.unref(f),U=a.unref(c);if(S(U),e.isReverse){const{columns:K,dataSource:X}=b(He.cloneDeep(j),He.cloneDeep(U));d.value=K,p.value=X}else d.value=j,p.value=U},{immediate:!0});const b=(j,U)=>{const K=j[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let re=0;re<U.length;re++){const te=U[re],ie="col"+(re+1);X.push({title:te[K.dataIndex],dataIndex:ie,key:ie,align:"center"})}const G=[];for(let re=1;re<j.length;re++){const te=j[re],ie={col0:te.title};for(let fe=0;fe<U.length;fe++){const ue=U[fe];ie[`col${fe+1}`]=ue[te.dataIndex]}G.push(ie)}return{columns:X,dataSource:G}},E=a.ref(""),y=Pe(e),w=a.ref(!1),_=async(j=!0,U={})=>{var K;try{j&&(w.value=!0),a.unref(E)&&(U.orderCondition=a.unref(E)),e.paginationShow&&(U={pageNum:a.unref(x),pageSize:a.unref(u)||"10",layer:"1",...U});const X=await y(U),{rows:G=[],total:re=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};h.value=re,Array.isArray(G)&&(c.value=G)}catch(X){console.error(X)}finally{w.value=!1}},D=({current:j},U,K)=>{if(x.value=j,K&&Object.keys(K).length>0){const{field:X,order:G}=K,te={ascend:"asc",descend:"desc"}[G];X!=null&&te!=null&&(E.value=X+" "+te,x.value=1)}I(!1)},k=a.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:a.unref(h),current:a.unref(x),pageSize:a.unref(u)||"10",showSizeChanger:!1}}),T=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Yt,contrast:Yt,boolean:T}[U](j)||"",A=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},H=pe(e),{getGlobalModel:q,setGlobalModel:$}=a.inject(Se,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),z=(j=[],U=[])=>{const K=j.map(X=>({title:X,dataIndex:X,key:X}));f.value=C(K),c.value=U},L=Bt(e),O=async()=>{var j,U,K,X;try{w.value=!0;const G=await L();z((U=(j=G==null?void 0:G.data)==null?void 0:j.data)==null?void 0:U.columns,(X=(K=G==null?void 0:G.data)==null?void 0:K.data)==null?void 0:X.rows)}catch(G){console.error(G)}finally{w.value=!1}},V=a.ref(-1),B=(j,U)=>({onClick:H("rowClick",()=>{const K=e.id,X=q(K);$(K,{...X,RECORD:j}),V.value=U})}),I=(j=!0)=>{switch(e.dataType){case"request":_(j);break;case"indicator":O();break}},M=()=>{const j=e.id,U=q(j);$(j,{...U,RECORD:""})},N=a.computed(()=>{const j=a.unref(d),U=[];let K=0;for(let G=0;G<j.length;G++){const re=j[G],{isCalcTotal:te}=re;e.isUseSeq&&G===0?U.push({...re,total:"小计"}):te?(U.push({...re,index:G,total:0}),K++):U.push({...re})}if(K===0)return[];const X=a.unref(p);for(let G=0;G<U.length;G++){const re=U[G];let te=0;const{isCalcTotal:ie,dataIndex:fe}=re;if(ie===!0){for(let ue=0;ue<X.length;ue++){const ve=+X[ue][fe];isNaN(ve)||(te=new ja.Big(te).add(ve).toNumber())}re.total=te}}return U}),{setRequest:Y}=a.inject(Te,{setRequest:j=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:I,sortNum:e.requestSort}),n({refreshData:I});const Z=(j="",U)=>ye(j,U),Q=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},W=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},ke=(j,U)=>{j(U.filterCheckboxGroupValue)},Xe=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Rt=()=>{},at=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=a.unref(g)[U];const X=a.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(G=>typeof G.label=="string"?G.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},Be=async()=>{var ue,Fe;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const ve={layer:"1"};a.unref(E)&&(ve.orderCondition=a.unref(E));const Ee=await y(ve);U=((Fe=(ue=Ee==null?void 0:Ee.data)==null?void 0:ue.data)==null?void 0:Fe.rows)||{}}const K=a.unref(d),X=[],G=[];K==null||K.forEach(ve=>{X.push(ve.dataIndex),G.push(ve.title)});const re=U.map(ve=>He.pick(ve,X)),te=St.utils.book_new(),ie=St.utils.aoa_to_sheet([G]),fe=St.utils.sheet_add_json(ie,re,{skipHeader:!0,origin:"A2"});St.utils.book_append_sheet(te,fe,"sheet"),St.writeFile(te,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},_e=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};return be(e,{resetRecord:M,refreshData:I,exportTableData:Be}),{x:l,y:s,style:r,customRow:B,pagination:k,formatFn:R,contrastClass:A,tableChange:D,summaryList:N,loading:w,onTouchHrefEvent:W,handleHref:Z,handleHrefTarget:Q,useRowIndex:V,tableColumns:d,tableDataSource:p,useFilterOptions:at,useSetSelectedKeys:ke,onResetFilter:Xe,onSearchFilterOptions:Rt,exportTableData:Be,handleProgressText:_e,pageSizeVisible:o,pageSize:u,tableRef:t}}}),Y1="",X1="",af=["id"],sf={key:0,class:"table-tool"},lf=a.createTextVNode("导出数据"),cf=a.createTextVNode(" 搜索 "),ff=a.createTextVNode(" 重置 "),df={key:0},uf={key:1,class:"action-list"},hf=["href","target","onClick"],xf={key:2,class:"progress-cell"},mf={class:"ant-pagination-options-quick-jumper"},gf=a.createTextVNode(" 条 / 页 ");function pf(e,n,t,o,r,i){const l=a.resolveComponent("a-button"),s=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),d=a.resolveComponent("a-table-summary-row"),p=a.resolveComponent("a-table-summary"),h=a.resolveComponent("a-table"),x=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(x,{loading:e.loading},{default:a.withCtx(()=>{var u;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",sf,[a.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[lf]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(h,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:m,selectedKeys:v,setSelectedKeys:C,confirm:g,clearFilters:S})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(s,{value:m.filterOptionsInputValue,"onUpdate:value":b=>m.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:m.filterCheckboxGroupValue,"onUpdate:value":b=>m.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(m),onChange:b=>e.useSetSelectedKeys(C,m)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>g()},{default:a.withCtx(()=>[cf]),_:2},1032,["onClick"]),a.createVNode(l,{size:"small",style:{width:"90px"},onClick:a.withModifiers(b=>e.onResetFilter(S,m),["stop"])},{default:a.withCtx(()=>[ff]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:m,index:v,text:C,record:g})=>[m.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",df,a.toDisplayString(v+1),1)):m.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",uf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(S,b)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:b},[a.createElementVNode("a",{href:e.handleHref(S.href,g),target:e.handleHrefTarget(S.target),style:a.normalizeStyle({color:S.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:E=>e.onTouchHrefEvent(S.target,e.handleHref(S.href,g))},a.toDisplayString(S.title),13,hf)]))),128))])):m.format==="progress"?(a.openBlock(),a.createElementBlock("div",xf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:m.progressColor||"#1890ff",height:m.progressWidth||"18px",width:`${e.handleProgressText(C,m.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:e.handleProgressText(C)<100?m.progressTextColor||"#333":m.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(C,m.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass([e.contrastClass(C,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(m.format!=null?e.formatFn(C,m.format):C),7))]),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(p,{key:0},{default:a.withCtx(()=>[a.createVNode(d,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(m,v)=>(a.openBlock(),a.createBlock(c,{key:v,index:v,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:m.cellAlign||"center",color:m.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(m.total,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(m.total,m.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"]),(u=e.tableDataSource)!=null&&u.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",mf,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=m=>e.pageSize=m)},null,512),[[a.vModelText,e.pageSize]]),gf])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,af)}const Ea=le(se(rf,[["render",pf],["__scopeId","data-v-9ef3260d"]])),tr={...he,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nr=ce(tr);qe.use([it.CanvasRenderer,Ue.MapChart,Ue.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const yf=a.defineComponent({name:"EcanMap",components:{Echarts:Qe},props:{...nr},setup(e){const n=de(e,["backgroundImage"]),t=a.ref(),o=a.computed(()=>nt(e.geoBackgroundImage)),r=a.computed(()=>nt(e.backgroundImage)),i=a.computed(()=>e.geoBackgroundImage?{image:a.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=a.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+nt(d):"circle"}),s=a.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:a.unref(r)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:a.unref(i),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:a.unref(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=a.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const h=await Ye(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);qe.registerMap("map",(h==null?void 0:h.data)||{})}f.value=!0};return a.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),Q1="",vf=["src"];function bf(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{class:"ecan-map",style:a.normalizeStyle(e.style)},[e.isLoadedData?(a.openBlock(),a.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,vf),[[a.vShow,!1]])],4)}const Aa=le(se(yf,[["render",bf],["__scopeId","data-v-1fb5cdee"]])),Ta=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ha,EcanBorder:ba,EcanButton:ea,EcanCheckbox:na,EcanComboGraph:ya,EcanCustomGraph:ga,EcanDatePicker:Y0,EcanIframe:ka,EcanImage:wa,EcanInput:Z0,EcanLine:da,EcanList:j0,EcanMap:Aa,EcanModal:rt,EcanPageConfig:P0,EcanPie:ca,EcanProportion:W0,EcanProviderConfig:z0,EcanRangePicker:J0,EcanScatter:ma,EcanScrollText:V0,EcanSelect:ra,EcanTable:Ea,EcanTabs:Ca,EcanText:F0,EcanTimeDisplay:H0,EcanTreeSelect:ia,barComponentProps:Mo,barEvents:ua,barProps:zo,borderComponentProps:Wo,borderEvents:va,borderProps:Uo,buttonComponentProps:ko,buttonEvents:Q0,buttonProps:wo,checkboxComponentProps:Eo,checkboxEvents:ta,checkboxProps:_o,comboGraphComponentProps:jo,comboGraphEvents:pa,comboGraphProps:$o,customGraphComponentProps:Ho,customGraphProps:qo,datePickerComponentProps:bo,datePickerEvents:K0,datePickerProps:vo,iframeComponentProps:Jo,iframeProps:Xo,imageComponentProps:Yo,imageProps:Ko,inputComponentProps:yo,inputEvents:G0,inputProps:po,lineComponentProps:Po,lineEvents:fa,lineProps:No,listComponentProps:xo,listEvents:$0,listProps:ho,mapComponentProps:nr,mapProps:tr,modalComponentProps:Oo,modalEvents:la,modalProps:Lo,pageConfig:xn,pageConfigComponentProps:mn,pieComponentProps:Io,pieEvents:sa,pieProps:Ro,proportionComponentProps:go,proportionEvents:U0,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:X0,rangePickerProps:So,scatterComponentProps:Vo,scatterEvents:xa,scatterProps:Fo,selectComponentProps:To,selectEvents:oa,selectProps:Ao,tableComponentProps:er,tableEvents:_a,tableProps:Qo,tabsComponentProps:Zo,tabsEvents:Sa,tabsProps:Go,textComponentProps:co,textEvents:M0,textProps:lo,timeDisplayComponentProps:uo,timeDisplayEvents:q0,timeDisplayProps:fo,treeSelectComponentProps:Do,treeSelectEvents:aa,treeSelectProps:Bo},Symbol.toStringTag,{value:"Module"})),Sf={install:e=>{Object.keys(Ta).forEach(n=>{const t=Ta[n];t.install&&e.use(t)})}};P.EcanBar=ha,P.EcanBorder=ba,P.EcanButton=ea,P.EcanCheckbox=na,P.EcanComboGraph=ya,P.EcanCustomGraph=ga,P.EcanDatePicker=Y0,P.EcanIframe=ka,P.EcanImage=wa,P.EcanInput=Z0,P.EcanLine=da,P.EcanList=j0,P.EcanMap=Aa,P.EcanModal=rt,P.EcanPageConfig=P0,P.EcanPie=ca,P.EcanProportion=W0,P.EcanProviderConfig=z0,P.EcanRangePicker=J0,P.EcanScatter=ma,P.EcanScrollText=V0,P.EcanSelect=ra,P.EcanTable=Ea,P.EcanTabs=Ca,P.EcanText=F0,P.EcanTimeDisplay=H0,P.EcanTreeSelect=ia,P.barComponentProps=Mo,P.barEvents=ua,P.barProps=zo,P.borderComponentProps=Wo,P.borderEvents=va,P.borderProps=Uo,P.buttonComponentProps=ko,P.buttonEvents=Q0,P.buttonProps=wo,P.checkboxComponentProps=Eo,P.checkboxEvents=ta,P.checkboxProps=_o,P.comboGraphComponentProps=jo,P.comboGraphEvents=pa,P.comboGraphProps=$o,P.customGraphComponentProps=Ho,P.customGraphProps=qo,P.datePickerComponentProps=bo,P.datePickerEvents=K0,P.datePickerProps=vo,P.default=Sf,P.iframeComponentProps=Jo,P.iframeProps=Xo,P.imageComponentProps=Yo,P.imageProps=Ko,P.inputComponentProps=yo,P.inputEvents=G0,P.inputProps=po,P.lineComponentProps=Po,P.lineEvents=fa,P.lineProps=No,P.listComponentProps=xo,P.listEvents=$0,P.listProps=ho,P.mapComponentProps=nr,P.mapProps=tr,P.modalComponentProps=Oo,P.modalEvents=la,P.modalProps=Lo,P.pageConfig=xn,P.pageConfigComponentProps=mn,P.pieComponentProps=Io,P.pieEvents=sa,P.pieProps=Ro,P.proportionComponentProps=go,P.proportionEvents=U0,P.proportionProps=mo,P.providerConfig=io,P.providerConfigComponentProps=so,P.rangePickerComponentProps=Co,P.rangePickerEvents=X0,P.rangePickerProps=So,P.scatterComponentProps=Vo,P.scatterEvents=xa,P.scatterProps=Fo,P.selectComponentProps=To,P.selectEvents=oa,P.selectProps=Ao,P.tableComponentProps=er,P.tableEvents=_a,P.tableProps=Qo,P.tabsComponentProps=Zo,P.tabsEvents=Sa,P.tabsProps=Go,P.textComponentProps=co,P.textEvents=M0,P.textProps=lo,P.timeDisplayComponentProps=uo,P.timeDisplayEvents=q0,P.timeDisplayProps=fo,P.treeSelectComponentProps=Do,P.treeSelectEvents=aa,P.treeSelectProps=Bo,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
97
+ `),ao=(e,n=2)=>{const t=parseFloat(e+"");return isNaN(t)?e:t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},vl=e=>{const n=parseFloat(e+"");return isNaN(n)?e:(n+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},Yt=(e,n=2)=>{const t=e+"";if(t.includes("%"))return e;const o=parseFloat(t);return isNaN(o)?e:`${(o*100).toFixed(n)}%`},Xt=(e,n)=>typeof e=="string"&&typeof n=="string"?e.toLocaleLowerCase().includes(n.toLocaleLowerCase()):!1,Jt=(e,n)=>{const t={dayjs:Le,...n};let o="";const r=[];for(const s in t)o+=`${s},`,r.push(t[s]);o=o.replace(/,$/,"");const i=`function (${o}){return ${e}}`;let l;try{l=Function(`"use strict";return (${i})`)()(...r)}catch{return e}return l},ye=(e="",{textData:n,codeData:t}={},{useNewline:o=!1,useSpace:r=!1}={})=>{const l={...window.config||{},...n},s=e.match(/\{(.+?)\}/g);if(s==null||s.length===0)return e;for(let f=0;f<s.length;f++){const c=s[f];let d=c.slice(1,-1).trim();const p=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,h=d.match(p);for(let x=0;x<h.length;x++){const u=h[x],m=l[u];m!=null&&(d=d.replace(u,m))}(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(d=Jt(d,t)),e=e.replace(c,d)}return o&&(e=e==null?void 0:e.replace(/\n|\\n/g,"<br/>")),r&&(e=e==null?void 0:e.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),e},Pe=(e,n=()=>{})=>{const{requestUrl:t,requestMethod:o,requestHeaders:r,requestParams:i,requestInterval:l,isOpenRequestTimer:s}=e,{contextRequestUrl:f,touchEventId:c}=a.inject(Ae,{contextRequestUrl:"",touchEventId:""}),{getGlobalModel:d}=a.inject(Se,{getGlobalModel:u=>{}}),p=ye(t),h=async(u={})=>{if(!p||!o||!r)return;let m={};i.forEach(b=>{const{key:E,value:y}=b;if(typeof y=="object"&&y!=null&&y.id){let w={};const{id:_,prop:D,propKey:k,operate:T}=y;_==="THIS"?w=d(a.unref(c))||{}:w=d(_)||{};const R=a.unref(w[D]);let A=null;if(["date","range"].some(q=>Xt(w==null?void 0:w.type,q))){const{value:q,type:$,mode:z}=T||{};if(q&&$&&z)switch($){case"add":A=a.unref(R).add(q,z);break;case"minus":A=a.unref(R).subtract(q,z);break}A==null&&(A=a.unref(R)),A=(A==null?void 0:A.format((k==null?void 0:k.trim())||w.format))||""}else Object.prototype.toString.call(R)==="[object Object]"?k?A=R[k]:A=D?R[D]:R:Xt(w==null?void 0:w.type,"select")&&a.unref(R)&&D&&Array.isArray(a.unref(R))?A=a.unref(R).map(q=>Object.prototype.hasOwnProperty.call(q,D)?q[D]:q):A=R;m[E]=A}else typeof y=="string"&&(m[E]=ye(y))}),m={...window.config.requestParams,...u,...m};let v="";const C=Object.keys(m),g=C.length-1,S=C.length;C.forEach((b,E)=>{let y=m[b];Object.prototype.toString.call(y)==="[object Object]"&&(y=JSON.stringify(y)),E===0?S!==1?v+=`?${b}=${y}&`:v+=`?${b}=${y}`:E===g?v+=`${b}=${y}`:v+=`${b}=${y}&`});try{const b=["get","head"].includes(o);let E=b?p+v:p;m.dataSqlId&&!E.includes("dataSqlId")&&(E+=`${E.includes("?")?"&":"?"}dataSqlId=${m.dataSqlId}`);const y=await Ye({baseURL:a.unref(f)||"",url:E,method:o,headers:r,data:b?{}:m});return n(y),y}catch(b){console.error(b)}},x=s&&setInterval(h,l*1e3);return a.onUnmounted(()=>{clearInterval(x)}),h},vt=(e=[],n)=>{let{name:t="name",types:o=[]}=n||{};t=(t==null?void 0:t.trim())||t;const r=new Set,i=new Map,l=e.length,s=o.length;if(l===1){const d=[];for(let h=0;h<s;h++){const x=o[h],{label:u,value:m}=x,v={...e[0],value:e[0][m]};r.add(u),d.push(v)}const p=e[0][t]||"";i.set(p,d)}else for(let d=0;d<l;d++){const p=e[d],h=p[t];r.add(h);for(let x=0;x<s;x++){const u=o[x],{label:m,value:v}=u,C={...p,value:p[v]};if(i.has(m)){const g=i.get(m);g.push(C),i.set(m,g)}else i.set(m,[C])}}const f=Array.from(r),c=[];for(const[d,p]of i)c.push({name:d,data:p});return{dimensions:f,dataset:c}},nt=(e,n=!1)=>{var o;if(!e)return e;let t="";return e!=null&&e.includes("://")?t=e:t=((o=window==null?void 0:window.config)==null?void 0:o.uploadPath)+e,n&&(t=`url(${t})`),t},N0=(e,n)=>{const t=`${Ir}/preview?pageId=${n}`,o=`${Ir}/${n}`;return e==="preview"?t:o},ot=(e,n)=>{var r;if(e==null)return n;const t=e.match(/\{.*\}/g);if(t==null||t.length===0)return n;const o=t.length;for(let i=0;i<o;i++){const l=t[i];if(l==null||l==="")break;let s=(r=l.slice(1,-1))==null?void 0:r.trim();s=s==null?void 0:s.replace(/value/g,n);try{let f=s;(/\(.*\)/g.test(s)||/[+/\\*]/g.test(s))&&(f=Jt(s)),e=e.replace(l,f)}catch{e=e.replace(l,s)}}return e},Bt=(e={})=>{const{requestToken:n}=a.inject(Tr,{requestToken:()=>{}});e.dataType==="indicator"&&n();const t=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p}=l;return{label:s,columnName:f,location:c,show:d,calcType:"COLUMN",hrpIndexCode:p}},o=(l={})=>{const{label:s,name:f,location:c,show:d,indexCode:p,calcType:h="COLUMN",builtInFormula:x,builtInValueSource:u,builtInCalcWay:m,formula:v,conditions:C}=l;return{label:s,columnName:f,location:c,show:d,calcType:h,hrpIndexCode:p,aggregate:"SUM",builtInFormula:x,builtInValueSource:u,builtInCalcWay:m,formula:v,conditions:C}},{getGlobalModel:r}=a.inject(Se,{getGlobalModel:l=>{}}),i=(l=[])=>{var c;const s=l.length;console.log("controlList",l);const f=[];for(let d=0;d<s;d++){const p=l[d],{id:h,conditionLabel:x,conditionKey:u,conditionValueType:m}=p,v={rule:"NONE",label:x,fieldName:u,fieldValue:"",valueType:m},C=r(h)||{};console.log("model",C);const{value:g,format:S="YYYY-MM-DD"}=C||{};Xt(C.type,"date")?(v.fieldValue=(c=a.unref(g))==null?void 0:c.format(S),v.dateFormat=S):v.fieldValue=a.unref(g),f.push(v)}return f};return async()=>{var R;const{graphicConfig:l,type:s}=e;let{source:f,dataViewId:c,plugin:d="1",layer:p,chartType:h,classificationList:x=[],seriesList:u=[],leftAxisList:m=[],rightAxisList:v=[],queryColumnList:C=[],indicators:g=[],controlList:S=[],dataSourceId:b,idxLibMode:E,preview:y=!1}=l||{};p==null&&(Xt(s,"table")?p="1":p="2");let w;if(Array.isArray(x)&&x.length>0){const A=x.length;for(let H=0;H<A;H++){const q=x[H]||{},{label:$="",name:z="",show:L=!1,sort:O,customGroup:V,conditions:B}=q;if(L||A===1){w={label:$,columnName:z,show:L,sort:O,customGroup:V,conditions:B};break}}}let _;if(Array.isArray(u)&&u.length>0){const A=u.length;for(let H=0;H<A;H++){const q=u[H]||{},{label:$="",name:z="",show:L=!1,sort:O,customGroup:V,conditions:B}=q;if(L||A===1){_={label:$,columnName:z,show:L,sort:O,customGroup:V,conditions:B};break}}}const D=[];C==null||C.forEach(A=>{D.push(t(A))});const k=[];if(m==null||m.forEach(A=>{A.location="LEFT",k.push(o(A))}),v==null||v.forEach(A=>{A.location="RIGHT",k.push(o(A))}),g==null||g.forEach(A=>{A.location="LEFT",k.push(o(A))}),p==="1"&&D.length===0)return;if(p==="2"&&k.length===0)return;let T=[];(l==null?void 0:l.pageMode)==="design"?T=l.sqlConditions??[]:T=i(S);try{return await Ye.post(`${Rr}/diagram`,{source:f,dataViewId:c,plugin:d,layer:p,chartType:h,classification:w,series:_,indicatorList:k,queryColumns:D,pageFlag:!0,sqlConditions:T,dataSourceId:b,idxLibMode:E,preview:y},{headers:{Authentication:(R=window==null?void 0:window.config)==null?void 0:R.indicatorToken,operateContext:Dr}})}catch(A){console.error(A)}}},bl=()=>{const n=window.location.search.slice(1).split("&"),t=n.length,o={};for(let r=0;r<t;r++){const i=n[r];if(i==null||i==="")continue;const l=i.split("=");if(Array.isArray(l)){const s=l[0];o[s]=l[1]}}window.config.requestParams={...window.config.requestParams,...o},window.config={...window.config,...o}},Sl=a.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...mn},setup(e){const n=a.computed(()=>({width:e.width,height:e.height,backgroundColor:e.backgroundColor,backgroundImage:nt(e.backgroundImage,!0),backgroundSize:e.backgroundSize})),t=a.ref(0),o=a.ref(0),r=a.ref(0),i=a.ref(0),l=a.ref(!1),s=a.ref();let f;const c=()=>new Promise(m=>{a.nextTick(()=>{e.width&&e.height?(t.value=parseFloat(e.width),o.value=parseFloat(e.height)):(t.value=s.value.clientWidth,o.value=s.value.clientHeight),(!r.value||!i.value)&&(r.value=window.screen.width,i.value=window.screen.height),m()})}),d=()=>{t.value&&o.value?(s.value.style.width=`${t.value}px`,s.value.style.height=`${o.value}px`):(s.value.style.width=`${r.value}px`,s.value.style.height=`${i.value}px`)},p=()=>{const m=document.body.clientWidth,v=document.body.clientHeight,C=t.value||r.value,g=o.value||i.value,S=m/C,b=v/g;s.value&&(s.value.style.transform=`scale(${S}, ${b})`)},h=He.debounce(async()=>{await c(),p()},100),x=()=>{const m=window.MutationObserver;f=new m(h),f.observe(s.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},u=()=>{f&&(f.disconnect(),f.takeRecords(),f=null)};return a.onMounted(async()=>{l.value=!1,await c(),d(),p(),window.addEventListener("resize",h),x(),l.value=!0}),a.onUnmounted(()=>{window.removeEventListener("resize",h),u()}),{style:n,container:s,ready:l}}}),Kf="",Cl={id:"container",ref:"container"};function wl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Cl,[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"page-config",style:a.normalizeStyle(e.style)},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4)):a.createCommentVNode("",!0)],512)}const P0=le(se(Sl,[["render",wl],["__scopeId","data-v-242d350e"]])),io={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{}},so=ce(io),kl=a.defineComponent({name:"EcanProviderConfig",inheritAttrs:!1,props:{...so},setup(e,{expose:n}){bl();const t=a.ref(),o=()=>{t.value.setAttribute("datav-theme",e.theme)};a.watch(()=>e.theme,()=>{o()}),a.onMounted(()=>{o()});const r=a.computed(()=>ye(e.contextRequestUrl)),i=a.computed(()=>e.pageMode),l=a.computed(()=>e.theme),s=a.ref("");a.provide(Ae,{contextRequestUrl:r,pageMode:i,theme:l,touchEventId:s});const f=new Map;console.log("globalModel",f);const c=$=>f.get($),d=($,z)=>{f.set($,z)};a.provide(Se,{getGlobalModel:c,setGlobalModel:d});const p=[],h=()=>{p.pop()},x=$=>{p.push($)},u=new Map,m=$=>u.get($),v=($,z)=>{u.set($,z)};a.provide(Br,{popUseModalIds:h,pushUseModalIds:x,getModalModel:m,setModalModel:v});const C=Ha(),g=new Set,S=($,z)=>{g.add($),C.on($,L=>typeof z[L]=="function"&&z[L]()),a.onBeforeUnmount(()=>{b($)})},b=$=>{g.delete($),C.off($)},E=($,z)=>{if($==="PAGE"){const L=p.length;let O=[];if(L===0)O=[...g];else{const V=p[L-1];O=[...m(V)]}O.forEach(V=>{C.emit(V,z)})}else C.emit($,z)};a.provide(gn,{onEvent:S,offEvent:b,emitEvent:E});const y=a.ref(0),w=()=>{y.value=a.unref(y)+1};a.provide(Tr,{requestToken:w});const _=new Map,D=new Map,k=({requestFn:$=()=>{},sortNum:z=0,id:L=""})=>{if(_.has(z)){const O=_.get(z);O==null||O.push($)}else _.set(z,[$]);D.set(L,$)},T=$=>new Promise((z,L)=>{const O=$.map(V=>V());Promise.all(O).then(V=>{z(V)}).catch(V=>{L(V)})}),R=async()=>{var L;const $=await rr.get(`${Rr}/user/anonymous?username=admin&businessOfficeId=350421`,{headers:{systemCode:"F72FC50A3D97372514A6AC33333D28FD",current_context:Dr,Authentication:""}}),{token:z}=((L=$.data)==null?void 0:L.data)||{};window.config.indicatorToken=z},A=$=>new Promise(async(z,L)=>{if($){if(typeof $=="string"){const O=D.get($);if(typeof O=="function"){const V=Ye.interceptors.response.use(B=>(z(B),B),B=>(L(B),Promise.reject(B)));O(),Ye.interceptors.response.eject(V)}}}else{const O=Array.from(_);O.sort((B,I)=>I[0]-B[0]);const V=O.length;try{e.pageMode!=="design"&&a.unref(y)>0&&await R();for(let B=0;B<V;B++){const I=O[B][1];await T(I)}}catch(B){console.error(B)}finally{_.clear(),z(null)}}});a.provide(Te,{setRequest:k,touchRequest:A});const H=()=>{C.emit(Et)};a.provide(Et,{emitRefreshPage:H});const q=$=>{C.on(Et,()=>$()),a.onMounted(()=>{C.off(Et)})};return a.onBeforeUnmount(()=>{_==null||_.clear(),D==null||D.clear()}),n({touchRequest:A,getGlobalModel:c,onRefreshPage:q}),{providerConfig:t}}}),_l={id:"ProviderConfig",ref:"providerConfig"};function El(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",_l,[a.renderSlot(e.$slots,"default")],512)}const z0=le(se(kl,[["render",El]])),lo={...he,name:"文本",keyName:"文本",type:"ecanText",width:"100px",height:"40px",text:"文字",lineHeight:1,color:"#333",variableColor:"#f00",fontSize:"14px",fontFamily:"",fontWeight:400,textShadow:"",justifyContent:"center",alignItems:"center",variableFontSize:"14px",variableDefaultValue:"0",format:"",target:"self",href:"",linkPage:"",data:{}},co=ce(lo),M0=["refreshData","click","valueChange"],Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=",Tl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDUgNzkuMTYzNDk5LCAyMDE4LzA4LzEzLTE2OjQwOjIyICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOSAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDIyLTA3LTIyVDA5OjM1OjE5KzA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAyMi0wNy0yMlQwOTozNTozNyswODowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MzZkZTc4NjEtZDc4Zi00MjRmLWEzYzktNWU5NDI5MGNkY2YxIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDozNmRlNzg2MS1kNzhmLTQyNGYtYTNjOS01ZTk0MjkwY2RjZjEiIHN0RXZ0OndoZW49IjIwMjItMDctMjJUMDk6MzU6MTkrMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE5IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6VDI+BAAABUUlEQVRIia3WPyhGURgG8B8pi0xisStKMioZLQaLiaQMBoxiVBImCwaLf6MssloUk8Gmb7GgJFKSUvIZ7qe+bvd89+A+03uf989z3nPPPe+tK5fLqtF3tSESzRjFAJ4vemams4IaYqulCq9gEo34QGco+LcCg9hHaxW3jpsiBIZxmMp5kXQTRH1k8S4cZCxoE6//FaiXbEtThm87JjkPI+jN4E9xW4TAQoA/isjNFehCT8B3VoTAUID/xHURAn0B/g5fRQh0B/j7mOJkf2gTaKvY7YG8FsxXPe/hIVbgCTs5C+vAasU+xlooMGuLTrCVI/CDR0zVCgi9gzmUIgQmBbYmT+AdY5LjGMKWpNuaqHWKLrEY8JUkXeYi75iu4DzFfUi6ey9C4AvjeKviliTdRSHmsrvBbMU+lzNg0oidaLvox7LIK+IHdem/iqIROzL/jG+NrT1BRsXKNQAAAABJRU5ErkJggg==",Bl=a.defineComponent({name:"EcanText",components:{Skeleton:Ft},props:{...co},setup(e){const n=de(e),t=a.ref({});a.watch(()=>[e.data,e.dataType],([x,u])=>{u==="static"&&(t.value=x)},{immediate:!0});const o=a.computed(()=>{var v;const x=a.unref(t);let u=e.text;u=u==null?void 0:u.replace(/\n|\\n/g,"<br/>"),u=u==null?void 0:u.replace(/\s(?!\{) | (?!\})\s/g,"&nbsp;");const m=u.match(/\{(.+?)\}/g);if(m==null||m.length===0)return u;for(let C=0;C<m.length;C++){const g=m[C],S=(v=g==null?void 0:g.slice(1,g.length-1))==null?void 0:v.trim();let b=S;const E=S.match(/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g);for(let w=0;w<E.length;w++){const _=E[w],D=x[_];D&&(b=S.replace(_,D))}if(/\(.*\)/g.test(b)){const w=Jt(b);w!=null&&(b=w)}let y=b;if(y===S&&(y=e.variableDefaultValue),y!=null){const w=e.format;w==="percentage"?(y=+y,isNaN(y)?u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">0%</span>`):y>=0?(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color:#ED6643;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Al}"/>${y}%</span>`)):(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color: #6ACB97;font-size:${e.variableFontSize}"><img style="width: ${e.variableFontSize}" src="${Tl}"/>${Math.abs(+y)}%</span>`))):e.format==="percent"?(y=+y,isNaN(y)||(y=(y*100).toFixed(2),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}%</span>`))):e.format==="money"?(y=+y,isNaN(y)||(y=ao(y),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):w==="thousands"?(y=+y,isNaN(y)||(y=vl(y),u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`))):u=u.replace(g,`<span style="color:${e.variableColor};font-size:${e.variableFontSize}">${y}</span>`)}}return`<span>${u}</span>`}),{pageMode:r}=a.inject(Ae,{pageMode:"normal"}),i=Pe(e),l=a.ref(!1),s=async()=>{var x;try{l.value=!0;const u=await i();t.value=((x=u==null?void 0:u.data)==null?void 0:x.data)||{}}catch(u){console.error(u)}finally{l.value=!1}},f=()=>{e.dataType!=="static"&&s()};be(e,{refreshData:f});const{setRequest:c}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});c({id:e.id,requestFn:f,sortNum:e.requestSort}),be(e,{refreshData:f});const d=pe(e),p=d("click",()=>{if(!e.linkPage&&!e.href)return;const x=e.linkPage||"",u=N0(a.unref(r),x),m=e.href;let v=m||u;v=ye(v);const C=e.target;C&&(C!=="event"?window.open(v,"_"+C):window.parent.postMessage({type:"openPage",url:m},"*"))}),h=d("valueChange",()=>{});return a.watch(()=>o.value,(x,u)=>{x!==u&&h()}),{style:n,myText:o,loading:l,click:p}}}),Jf="",Dl=["innerHTML"];function Rl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return e.loading?(a.openBlock(),a.createElementBlock("div",{key:0,class:"skeleton-wrapper",style:a.normalizeStyle(e.style)},[a.createVNode(l,{loading:e.loading},null,8,["loading"])],4)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"ecan-text",style:a.normalizeStyle(e.style),innerHTML:e.myText,onClick:n[0]||(n[0]=(...s)=>e.click&&e.click(...s))},null,12,Dl))}const F0=le(se(Bl,[["render",Rl],["__scopeId","data-v-e3658bca"]])),Il=a.defineComponent({name:"EcanScrollText",setup(){return{text:a.ref("基础文本")}}}),e1="",Ll={class:"red"};function Ol(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",Ll,a.toDisplayString(e.text),1)}const V0=le(se(Il,[["render",Ol],["__scopeId","data-v-4dd9c03e"]])),fo={...he,name:"时间展示",keyName:"时间展示",type:"ecanTimeDisplay",format:"YYYY-MM-DD dddd HH:mm:ss",fontSize:"16px",color:"#333",width:"240px",height:"40px",fontFamily:"",fontWeight:400,textShadow:"",alignItems:"center",justifyContent:"center",operate:null,updateInterval:{value:1,mode:"second"}},uo=ce(fo),q0=["timeChange"],Nl=a.defineComponent({name:"EcanTimeDisplay",props:{...uo},setup(e){const n=de(e),t=()=>{const{format:c,operate:d}=e;let p=Le();if(d){const{type:h,value:x,mode:u}=d;switch(h){case"add":p=p.add(x,u);break;case"minus":p=p.subtract(x,u)}}return p.format(c)},o=a.ref();a.watch(()=>[e.operate,e.format],()=>{o.value=t()},{immediate:!0,deep:!0}),a.watch(()=>e.updateInterval,()=>{f()},{deep:!0});let r=null;const i=()=>{clearInterval(r),r=null},s=pe(e)("timeChange",()=>{}),f=()=>{r&&i();let c=1e3;const{value:d,mode:p}=e.updateInterval||{};d&&(c=c*d);const h={second:1,minute:60,hour:60*60,day:24*60*60};p&&(c=c*h[p]),r=setInterval(()=>{o.value=t(),s()},c)};return be(e,{timeChange:s}),a.onMounted(()=>{f()}),a.onUnmounted(()=>{i()}),{style:n,time:o}}}),n1="";function Pl(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"time-display",style:a.normalizeStyle(e.style)},a.toDisplayString(e.time),5)}const H0=le(se(Nl,[["render",Pl],["__scopeId","data-v-b628fca2"]])),ho={...he,type:"ecanList",name:"列表",keyName:"列表",width:"330px",height:"80px",backgroundColor:"#0d215e",itemColSpan:"10px",itemRowSpan:"10px",useRanking:!0,useTitle:!1,sliceCount:6,columnCount:1,itemHeight:"32px",data:[{name:"a",age:12},{name:"b",age:14}],columns:[{key:"name"},{key:"age"}]},xo=ce(ho),$0=["refreshData","click"],zl=a.defineComponent({name:"EcanList",components:{Skeleton:Ft},props:{...xo},setup(e){const n=a.ref(e.data),t=de(e,["backgroundColor"]),o=a.computed(()=>e.useRanking?{textAlign:"center"}:{textAlign:"left"}),r=(x,u)=>u==null||u===""?x:{money:ao,percentage:Yt,contrast:Yt}[u](x)||"",i=(x,u)=>{const m=parseFloat(x+"");if(u!=="contrast")return"";switch(!0){case m>=0:return"goUp";case m<0:return"goDown"}},l=Pe(e),s=a.ref(!1),f=async()=>{var x;if(e.dataType==="request")try{s.value=!0;const u=await l();n.value=((x=u==null?void 0:u.data)==null?void 0:x.data.rows)||[]}catch(u){console.error(u)}finally{s.value=!1}},c=()=>{f()},p=pe(e)("click",()=>{});be(e,{refreshData:c});const{setRequest:h}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});return h({id:e.id,requestFn:f,sortNum:e.requestSort}),{style:t,formatFn:r,columnStyle:o,contrastClass:i,dataSource:n,loading:s,click:p}}}),r1="",a1="",Ml=e=>(a.pushScopeId("data-v-7aa27677"),e=e(),a.popScopeId(),e),Fl={key:0,class:"title"},Vl={key:0,class:"ranking"},ql={key:1,class:"ecan-list-content"},Hl={key:0,class:"ranking"},$l=Ml(()=>a.createElementVNode("div",{class:"icon"},null,-1)),jl={class:"sort"},Ul={key:2,class:"empty"};function Wl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-list",style:a.normalizeStyle(e.style)},[a.createVNode(l,{loading:e.loading},{default:a.withCtx(()=>[e.useTitle?(a.openBlock(),a.createElementBlock("div",Fl,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columnCount,s=>(a.openBlock(),a.createElementBlock("div",{class:"title-inner",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1}/ ${e.columnCount})`,marginRight:s%e.columnCount!==0?e.itemColSpan:""}),key:s},[e.useRanking?(a.openBlock(),a.createElementBlock("div",Vl)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,(f,c)=>(a.openBlock(),a.createElementBlock("div",{class:"column",key:f.key||c,style:a.normalizeStyle({color:f.titleColor,...e.columnStyle})},a.toDisplayString(f.title),5))),128))],4))),128))])):a.createCommentVNode("",!0),e.dataSource.length>0?(a.openBlock(),a.createElementBlock("div",ql,[e.useTitle?(a.openBlock(),a.createElementBlock("div",{key:0,class:"title-placeholder",style:a.normalizeStyle({marginBottom:e.itemRowSpan})},null,4)):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.dataSource.slice(0,e.sliceCount),(s,f)=>(a.openBlock(),a.createElementBlock("div",{class:"item",style:a.normalizeStyle({backgroundColor:e.backgroundColor,height:e.itemHeight,width:`calc(100% / ${e.columnCount} - ${e.itemColSpan} * ${e.columnCount-1} / ${e.columnCount})`,marginRight:(f+1)%e.columnCount!==0?e.itemColSpan:"",marginBottom:e.itemRowSpan}),key:s.id||f,onClick:n[0]||(n[0]=(...c)=>e.click&&e.click(...c))},[e.useRanking?(a.openBlock(),a.createElementBlock("div",Hl,[$l,a.createElementVNode("div",jl," Top "+a.toDisplayString(f+1),1)])):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.columns,c=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["column",e.contrastClass(s[c.key],c.format)]),key:c.key,style:a.normalizeStyle({fontSize:c.fontSize,color:e.contrastClass(s[c.key],c.format)===""?c.color:"",fontWeight:c.fontWeight,...e.columnStyle})},a.toDisplayString((c.format!=null||c.format!=="")&&e.formatFn(s[c.key],c.format)),7))),128))],4))),128))])):(a.openBlock(),a.createElementBlock("div",Ul," 暂无数据 "))]),_:1},8,["loading"])],4)}const j0=le(se(zl,[["render",Wl],["__scopeId","data-v-7aa27677"]])),mo={...he,name:"占比图",keyName:"占比图",type:"ecanProportion",strokeType:"circle",width:"200px",height:"200px",strokeColor:"#4091f7",strokeLinecap:"round",trailColor:"#f5f5f5",data:{percent:.3},text:"{percent}%",fontSize:"26px",color:"#4091f7",strokeWidth:6,fontWeight:400,strokeTextWidth:"100%",lineHeight:"26px",decimalFormat:!0,variableDefaultValue:"0"},go=ce(mo),U0=["refreshData","click"],Gl=a.defineComponent({name:"EcanProportion",components:{AProgress:ae.Progress,Skeleton:Ft},props:{...go},setup(e){const{pageMode:n}=a.inject(Ae,{pageMode:"normal"}),t=de(e),o=a.computed(()=>{const u=e.width;return parseFloat(u)}),r=a.ref({});a.watch(()=>e.data,()=>{(e.dataType==="static"||a.unref(n)==="design")&&(r.value=e.data)},{immediate:!0,deep:!0});const i=a.computed(()=>{const u=a.unref(r),m=+e.variableDefaultValue;if(u==null)return isNaN(m)?0:m;const v=e.text.match(/\{.+\}/g)||[];let C;const g=new Set(Object.keys(u));for(let S=0;S<v.length;S++){const b=v[S],E=b.slice(1,b.length-1);if(g.has(E)){C=u[E];break}}return typeof C=="number"?C=C*100:typeof C=="string"&&!isNaN(+C)?C=+C*100:isNaN(m)?C=0:C=m*100,e.decimalFormat&&(C=+C.toFixed(2)),C}),l=a.computed(()=>{var g;let u=e.text;if(u==="")return a.unref(i);const m=e.variableDefaultValue,v=a.unref(r),C=u.match(/\{.+\}/g)||[];for(let S=0;S<C.length;S++){const b=C[S];let E=b.slice(1,b.length-1);const y=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,w=b.match(y);for(let D=0;D<(w==null?void 0:w.length);D++){const k=(g=w[D])==null?void 0:g.trim();v[k]!=null&&(E=E.replace(k,v[k]))}let _=E;try{/\(.*\)/g.test(E)&&(_=Jt(E))}catch(D){console.error(D)}typeof+_=="number"&&!isNaN(+_)?(_=+_*100,e.decimalFormat&&(_=_.toFixed(2))):_=m,u=u.replace(b,_+"")}return u}),s=Pe(e),f=a.ref(!1),c=async()=>{var u;if(e.dataType==="request")try{f.value=!0;const m=await s();r.value=((u=m==null?void 0:m.data)==null?void 0:u.data)||{}}catch(m){console.error(m)}finally{f.value=!1}};be(e,{refreshData:()=>{c()}});const h=pe(e)("click",()=>{}),{setRequest:x}=a.inject(Te,{setRequest:({id:u,sortNum:m,requestFn:v})=>{}});return x({id:e.id,requestFn:c,sortNum:e.requestSort}),{style:t,myWidth:o,text:l,myValue:i,loading:f,click:h}}}),s1="";function Zl(e,n,t,o,r,i){const l=a.resolveComponent("skeleton"),s=a.resolveComponent("a-progress");return a.openBlock(),a.createElementBlock("div",{class:"ecan-proportion",style:a.normalizeStyle(e.style)},[a.createVNode(s,{class:"progress",percent:e.myValue,width:e.myWidth,type:e.strokeType,strokeColor:e.strokeColor,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,strokeWidth:e.strokeWidth,gapDegree:e.strokeType==="dashboard"?75:0,onClick:e.click},{format:a.withCtx(()=>[e.loading?(a.openBlock(),a.createBlock(l,{key:0,loading:e.loading},null,8,["loading"])):(a.openBlock(),a.createElementBlock("div",{key:1,class:"format",style:a.normalizeStyle({width:e.strokeTextWidth,fontSize:e.fontSize,color:e.color,fontWeight:e.fontWeight,lineHeight:e.lineHeight})},a.toDisplayString(e.text),5))]),_:1},8,["percent","width","type","strokeColor","strokeLinecap","trailColor","strokeWidth","gapDegree","onClick"])],4)}const W0=le(se(Gl,[["render",Zl],["__scopeId","data-v-00244f8a"]])),po={...he,width:"200px",id:"",left:"0px",top:"0px",name:"输入框",keyName:"输入框",rotate:"",type:"ecanInput",value:"",placeholder:"请输入文字"},yo=ce(po),G0=["inputChange","inputBlur"],Kl=a.defineComponent({name:"EcanInput",components:{AInput:ae.Input},props:{...yo},setup(e){const n=de(e),t=a.ref("");a.watch(()=>e.value,c=>{t.value=c},{immediate:!0});const{getGlobalModel:o,setGlobalModel:r}=a.inject(Se,{getGlobalModel:c=>{},setGlobalModel:(c,d)=>{}});r(e.id,{type:e.type,value:t});const i=()=>{const c=o(e.id);r(e.id,{...c,RECORD:t})},l=pe(e),s=He.debounce(l("inputChange",()=>{i()}),300),f=l("inputBlur",()=>{});return{style:n,myValue:t,inputBlur:f,inputChange:s}}}),c1="";function Yl(e,n,t,o,r,i){const l=a.resolveComponent("a-input");return a.openBlock(),a.createElementBlock("div",{class:"ecan-input",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"input",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,onChange:e.inputChange,onBlur:e.inputBlur},null,8,["value","placeholder","onChange","onBlur"])],4)}const Z0=le(se(Kl,[["render",Yl]])),vo={...he,height:"33px",width:"130px",id:"",left:"0px",top:"0px",name:"日期选择器",keyName:"日期选择器",rotate:"",type:"ecanDatePicker",value:"",picker:"date",format:"YYYY-MM-DD",showTime:!1,useCurrentTime:!0,operate:null},bo=ce(vo),K0=["dateChange"],Xl=a.defineComponent({name:"EcanDatePicker",props:{...bo},components:{ADatePicker:ae.DatePicker},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref(null);a.watch(()=>[e.value,e.useCurrentTime,e.operate],([f,c,d])=>{let p=null;if(f?p=Le(ye(f)):c&&(p=Le()),d&&p){const{type:h,value:x,mode:u}=d;switch(h){case"add":p=p.add(x,u);break;case"minus":p=p.subtract(x,u)}}o.value=p},{deep:!0,immediate:!0});const{setGlobalModel:r}=a.inject(Se,{setGlobalModel:(f,c)=>{}});r(e.id,{type:e.type,format:e.format,value:o});const l=pe(e)("dateChange",()=>{}),s=()=>{a.unref(o)&&l()};return be(e,{dateChange:l}),{style:n,getPopupContainer:t,myValue:o,locale:ar,change:s}}}),d1="";function Jl(e,n,t,o,r,i){const l=a.resolveComponent("a-date-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-date-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"date-picker",dropdownClassName:"ecan-date-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,showTime:e.showTime,locale:e.locale,onChange:e.change,getPopupContainer:e.getPopupContainer},null,8,["value","format","picker","showTime","locale","onChange","getPopupContainer"])],4)}const Y0=le(se(Xl,[["render",Jl]])),So={...he,name:"日期范围选择器",keyName:"日期范围选择器",type:"ecanRangePicker",width:"250px",height:"35px",picker:"date",format:"YYYY-MM-DD",startTime:"",endTime:"",useCurrentTime:!0,interval:1,intervalUnit:"year",operate:null,limitStartTime:"",limitEndTime:""},Co=ce(So),X0=["dateChange"],Ql=a.defineComponent({name:"EcanRangePicker",components:{ARangePicker:ae.RangePicker},props:{...Co},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=a.ref([null,null]);a.watch(()=>[e.startTime,e.endTime,e.useCurrentTime,e.interval,e.intervalUnit,e.operate],([v,C,g,S,b,E])=>{let y=null,w=null;if(g&&(y=Le().subtract(S,b),w=Le()),v&&(y=Le(ye(v))),C&&(w=Le(ye(C))),E){const{type:_,value:D,mode:k}=E;switch(_){case"add":y=y&&y.add(D,k),w=w&&w.add(D,k);break;case"minus":y=y&&y.subtract(D,k),w=w&&w.subtract(D,k)}}o.value=[y,w]},{immediate:!0});let r=a.unref(o)[0],i=a.unref(o)[1];const l=v=>{Array.isArray(v)?(r=v[0],i=v[1]):(r=null,i=null)},s=v=>{let C=!1,{limitStartTime:g,limitEndTime:S}=e;const b={startTime:`${r||""}`,endTime:`${i||""}`};return g=ye(g,{codeData:b}),S=ye(S,{codeData:b}),g&&S?C=!(Le(g)<v&&v<Le(S)):g?C=Le(g)>v:S&&(C=Le(S)<v),C},{setGlobalModel:f}=a.inject(Se,{setGlobalModel:(v,C)=>{}}),c=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[0]:null),d=a.computed(()=>Array.isArray(a.unref(o))?a.unref(o)[1]:null);f(e.id,{type:e.type,format:e.format,startTime:c,endTime:d});const p=pe(e);let h=!1;const x=p("dateChange",()=>{}),u=v=>{const C=a.unref(o),g=C&&C[0]&&C[1];v===!1&&h===!0&&g&&(x(),h=!1)},m=()=>{h=!0};return be(e,{dateChange:x}),{style:n,getPopupContainer:t,locale:ar,dateChange:x,myValue:o,disabledDate:s,calendarChange:l,openChange:u,change:m}}}),h1="",x1="";function ec(e,n,t,o,r,i){const l=a.resolveComponent("a-range-picker");return a.openBlock(),a.createElementBlock("div",{class:"ecan-range-picker",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"range-picker",dropdownClassName:"ecan-range-picker-dropdown",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),format:e.format,picker:e.picker,locale:e.locale,getPopupContainer:e.getPopupContainer,"disabled-date":e.disabledDate,onChange:e.change,onCalendarChange:e.calendarChange,onOpenChange:e.openChange},null,8,["value","format","picker","locale","getPopupContainer","disabled-date","onChange","onCalendarChange","onOpenChange"])],4)}const J0=le(se(Ql,[["render",ec],["__scopeId","data-v-ddb2a0fe"]])),wo={...he,width:"200px",name:"按钮",keyName:"按钮",type:"ecanButton",text:"按钮",mode:"default",danger:!1,shape:"default",href:"",target:"self",fontSize:"14px",fontWeight:400},ko=ce(wo),Q0=["click"],tc=a.defineComponent({name:"EcanButton",components:{AButton:ae.Button},props:{...ko},setup(e){const n=de(e),o=pe(e)("click",()=>{const s=a.unref(i);s&&e.target==="event"&&window.parent.postMessage({type:"openPage",url:s},"*")}),r=a.computed(()=>ye(e.text)),i=a.computed(()=>ye(e.href)||null),l=a.computed(()=>{const s=e.target;if(!(s==="event"||a.unref(i)==null))return{self:"_self",blank:"_blank"}[s]});return{style:n,click:o,myText:r,myHref:i,myTarget:l}}}),g1="";function nc(e,n,t,o,r,i){const l=a.resolveComponent("a-button");return a.openBlock(),a.createElementBlock("div",{class:"ecan-button",style:a.normalizeStyle(e.style)},[a.createVNode(l,{block:"",onClick:e.click,type:e.mode,danger:e.danger,shape:e.shape,href:e.myHref,target:e.myTarget},{default:a.withCtx(()=>[a.createElementVNode("span",{style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(e.myText),5)]),_:1},8,["onClick","type","danger","shape","href","target"])],4)}const ea=le(se(tc,[["render",nc]])),_o={...he,width:"240px",id:"",left:"0px",top:"0px",name:"复选框",keyName:"复选框",rotate:"",type:"ecanCheckbox",value:[],data:[{label:"选项一",value:"1",checked:!0},{label:"选项二",value:"2",checked:!0},{label:"选项三",value:"3"}]},Eo=ce(_o),ta=["checkboxChange"],oc=a.defineComponent({name:"EcanCheckbox",components:{ACheckboxGroup:ae.CheckboxGroup},props:{...Eo},setup(e){const n=de(e),t=a.ref([]),o=a.ref([]),r=h=>{const x=e.value;let u=[];h.forEach(m=>{m.checked&&u.push(m.value)}),typeof x=="string"&&x!==""?u=u.concat(x.split(",")):Array.isArray(x)&&(u=u.concat(x)),t.value=h,o.value=u};a.watch(()=>[e.data,e.value],([h])=>{r(h)},{immediate:!0,deep:!0});const i=Pe(e),l=async()=>{var u,m;if(e.dataType!=="request")return;const h=await i(),x=((m=(u=h==null?void 0:h.data)==null?void 0:u.data)==null?void 0:m.rows)||[];r(x)},{getGlobalModel:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:h=>{},setGlobalModel:(h,x)=>{}});f(e.id,{type:e.type,value:o});const d=pe(e)("checkboxChange",()=>{const h=s(e.id);f(e.id,{...h,RECORD:o})}),{setRequest:p}=a.inject(Te,{setRequest:({id:h,sortNum:x,requestFn:u})=>{}});return p({id:e.id,requestFn:l,sortNum:e.requestSort}),{myOption:t,style:n,myValue:o,checkboxChange:d}}}),y1="";function rc(e,n,t,o,r,i){const l=a.resolveComponent("a-checkbox-group");return a.openBlock(),a.createElementBlock("div",{class:"ecan-checkbox",style:a.normalizeStyle(e.style)},[a.createVNode(l,{options:e.myOption,value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),onChange:e.checkboxChange},null,8,["options","value","onChange"])],4)}const na=le(se(oc,[["render",rc]])),Ao={...he,name:"下拉框选择器",keyName:"下拉框选择器",width:"120px",height:"33px",type:"ecanSelect",mode:void 0,data:[{label:"选项一",value:"1"},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:void 0,dataFieldNames:{label:"label",value:"value",options:""},maxTagCount:3,autoClearSearchValue:!0,placeholder:"请选择",selectFirstOption:!1},To=ce(Ao),oa=["selectChange","refreshData"],ac=a.defineComponent({name:"EcanSelect",components:{ASelect:ae.Select},props:{...To},setup(e){const n=de(e),t=()=>document.getElementById("ProviderConfig")||document.body,o=Pe(e),r=a.ref(e.data||[]),i=a.ref();a.watch(()=>[e.value,e.mode,e.selectFirstOption],()=>{const{mode:v,selectFirstOption:C,value:g}=e;v==="multiple"||v==="tags"||v==="combobox"?g?i.value=g.split(","):C&&(i.value=[a.unref(r)[0]]):g?i.value=g:C&&(i.value=a.unref(r)[0])},{immediate:!0});const l=e.dataFieldNames,s=(v,C)=>{const g=l.label,S=l.value;let b;const E=C[g],y=C[S];return E!=null?b=E:y!=null&&(b=y),(b==null?void 0:b.toLowerCase().indexOf(v==null?void 0:v.toLowerCase()))>=0},f=v=>{const{label:C,value:g,options:S}=e.dataFieldNames;if(S&&Array.isArray(v))if(v.some(b=>S in b)){const b={},E=[];v.forEach(y=>{b[y[S]]||(b[y[S]]=[]),b[y[S]].push({[C]:y[C],[g]:y[g]})});for(const y in b)E.push({[C]:y,[S]:b[y]});return E}else return v;else if(!S)return v},c=a.ref(!1),d=async()=>{var v,C;if(e.dataType==="request"){c.value=!0;try{const g=await o();if(r.value=f(((C=(v=g==null?void 0:g.data)==null?void 0:v.data)==null?void 0:C.rows)||[]),e.selectFirstOption){let S=a.unref(r)[0];if(l.options){const b=S[l.options];b&&b.length&&(S=b[0])}i.value=S[l.value]}}catch(g){console.error(g)}finally{c.value=!1}}},{getGlobalModel:p,setGlobalModel:h}=a.inject(Se,{getGlobalModel:v=>{},setGlobalModel:(v,C)=>{}});h(e.id,{type:e.type,value:i});const u=pe(e)("selectChange",()=>{const v=e.id,C=p(v);h(v,{...C,RECORD:i})});be(e,{selectChange:u,refreshData:d});const{setRequest:m}=a.inject(Te,{setRequest:({id:v,sortNum:C,requestFn:g})=>{}});return m({id:e.id,requestFn:d,sortNum:e.requestSort}),{style:n,getPopupContainer:t,myValue:i,selectChange:u,options:r,filterOption:s,loading:c}}}),b1="",S1="";function ic(e,n,t,o,r,i){const l=a.resolveComponent("a-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-select",style:a.normalizeStyle(e.style)},[a.createVNode(l,{class:"select",value:e.myValue,"onUpdate:value":n[0]||(n[0]=s=>e.myValue=s),placeholder:e.placeholder,showSearch:"",allowClear:"",options:e.options,mode:e.mode,getPopupContainer:e.getPopupContainer,fieldNames:e.dataFieldNames,maxTagCount:e.maxTagCount,filterOption:e.filterOption,loading:e.loading,autoClearSearchValue:e.autoClearSearchValue,onChange:e.selectChange},null,8,["value","placeholder","options","mode","getPopupContainer","fieldNames","maxTagCount","filterOption","loading","autoClearSearchValue","onChange"])],4)}const ra=le(se(ac,[["render",ic],["__scopeId","data-v-7c425ecc"]])),Bo={...he,name:"树形下拉框选择器",keyName:"树形下拉框选择器",width:"120px",height:"33px",type:"ecanTreeSelect",multiple:!1,data:[{label:"选项一",value:"1",children:[{label:"子选项一",value:"1-1"},{label:"子选项二",value:"1-2"}]},{label:"选项二",value:"2"},{label:"选项三",value:"3"}],value:"",dataFieldNames:{label:"label",value:"value",children:"children"},maxTagCount:3,placeholder:"请选择",treeCheckable:!1,treeCheckStrictly:!1,selectFirstOption:!1},Do=ce(Bo),aa=["selectChange","refreshData"],sc={name:"EcanTreeSelect",components:{ATreeSelect:ae.TreeSelect},props:{...Do},setup(e){const n=de(e),t=a.ref(e.data),o=(x,u)=>{const m=e.dataFieldNames,v=m.label,C=m.value;let g;const S=u[v],b=u[C];return S!=null?g=S:b!=null&&(g=b),(g==null?void 0:g.toLowerCase().indexOf(x==null?void 0:x.toLowerCase()))>=0},r=a.ref();a.watch(()=>[e.multiple,e.value,e.treeCheckable,e.selectFirstOption],()=>{const{multiple:x,value:u,selectFirstOption:m}=e;x?u?r.value=u.split(","):m&&(r.value=[a.unref(t)[0]]):u?r.value=u:m&&(r.value=a.unref(t)[0])},{immediate:!0});const i=a.ref(!1),l=Pe(e),s=async()=>{var x,u;if(e.dataType==="request"){i.value=!0;try{const m=await l();t.value=((u=(x=m==null?void 0:m.data)==null?void 0:x.data)==null?void 0:u.rows)||[];const v=a.unref(t)[0];e.value===""&&v!=null&&(r.value=v[e.dataFieldNames.value])}catch(m){console.error(m)}finally{i.value=!1}}},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:x=>{},setGlobalModel:(x,u)=>{}});c(e.id,{type:e.type,value:r});const p=pe(e)("selectChange",()=>{const x=e.id,u=f(x);c(x,{...u,RECORD:r})});be(e,{selectChange:p,refreshData:s});const{setRequest:h}=a.inject(Te,{setRequest:({id:x,sortNum:u,requestFn:m})=>{}});return h({id:e.id,requestFn:s,sortNum:e.reque}),{style:n,treeData:t,filterTreeNode:o,myValue:r,loading:i,selectChange:p}}},w1="",k1="";function lc(e,n,t,o,r,i){const l=a.resolveComponent("a-tree-select");return a.openBlock(),a.createElementBlock("div",{class:"ecan-tree-select",style:a.normalizeStyle(o.style)},[a.createVNode(l,{class:"tree-select",value:o.myValue,"onUpdate:value":n[0]||(n[0]=s=>o.myValue=s),allowClear:"",showSearch:"",loading:o.loading,fieldNames:e.dataFieldNames,treeData:o.treeData,maxTagCount:e.maxTagCount,multiple:e.multiple,treeCheckable:e.treeCheckable,filterTreeNode:o.filterTreeNode,placeholder:e.placeholder,onChange:o.selectChange},null,8,["value","loading","fieldNames","treeData","maxTagCount","multiple","treeCheckable","filterTreeNode","placeholder","onChange"])],4)}const ia=le(se(sc,[["render",lc],["__scopeId","data-v-37236421"]])),Ro={...he,id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Io=ce(Ro),sa=["click","refreshData","resetRecord"],Dt=async e=>{var f;const n=await Ye.post(e,{},{responseType:"blob"}),{data:t,headers:o}=n,r=o["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),i=new Blob([t]),l=document.createElement("a"),s=window.URL.createObjectURL(i);l.href=s,l.download=decodeURI(r),l.style.display="none",document.body.appendChild(l),l.click(),(f=l.parentNode)==null||f.removeChild(l),window.URL.revokeObjectURL(s)},Lo={id:"",type:"ecanModal",title:"",titleFontSize:"14px",titleColor:"",width:"1000px",height:"800px",originalWidth:"1920px",originalHeight:"1080px",backgroundColor:"#fff",backgroundImage:"",backgroundSize:"100% 100%",keyName:"弹窗",componentList:[],fullModal:!1,destroyOnClose:!0,position:"default"},Oo=ce(Lo),la=["showModal"],cc=a.defineComponent({name:"EcanModal",components:{AModal:ae.Modal,CloseOutlined:es},props:{...Oo},setup(e,{emit:n}){const t=()=>document.getElementById("ProviderConfig")||document.body,o=a.computed(()=>{const O=e.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[O]}}),r=e.fullModal?"1920px":e.width,i=e.fullModal?"1080px":e.height,l=e.originalWidth,s=e.originalHeight,f=a.ref("80%"),c=a.ref(0),d=a.ref(),p=a.ref(0),h=a.ref({}),x=de(e),u=a.ref({}),m=a.ref(!1),v=a.ref();let C;const g=()=>{d.value=parseFloat(r)/parseFloat(l);const O=parseFloat(i)/parseFloat(s),V=document.body.offsetWidth,B=document.body.offsetHeight;c.value=V*a.unref(d),p.value=B*O,f.value=`${a.unref(d)*100}%`,h.value={width:`${a.unref(c)}px`,height:`${a.unref(p)}px`},u.value={...a.unref(x),backgroundImage:nt(e.backgroundImage,!0),transform:`scale(${a.unref(c)/parseFloat(r)},${a.unref(p)/parseFloat(i)})`,width:r,height:i}},S=He.debounce(()=>{g()},100),b=()=>{const O=window.MutationObserver;C=new O(S),C.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},E=()=>{C&&(C.disconnect(),C.takeRecords(),C=null)},y=a.ref(!1),{touchRequest:w}=a.inject(Te,{touchRequest:()=>{}}),_=()=>{y.value=!0},D=()=>{n("close"),y.value=!1},k=()=>{D()},T=()=>{D()},{setModalModel:R,pushUseModalIds:A,popUseModalIds:H}=a.inject(Br,{pushUseModalIds:O=>{},popUseModalIds:()=>{},setModalModel:(O,V)=>{}}),q=()=>{const O=e.id;let V=[];const B=e.componentList;Array.isArray(B)&&(V=B.map(I=>I.id),R(O,[...new Set(V)]))};a.watch(()=>y.value,async O=>{O?(m.value=!1,A(e.id),q(),await a.nextTick(()=>{g(),window.addEventListener("resize",S),b(),m.value=!0}),w()):(H(),window.removeEventListener("resize",S),E())});const $=a.computed(()=>a.unref(d)>=1),z=a.computed(()=>e.fullModal),L=a.computed(()=>{let O="ecan-modal";return a.unref($)&&(O+=" ecan-full-width-modal"),a.unref(z)&&(O+=" ecan-full-modal"),O});return be(e,{showModal:_}),{modalRef:v,containStyle:h,contentStyle:u,getContainer:t,modalStyle:o,modalWith:f,isFullModal:z,style:x,visible:y,showModal:_,onOk:k,onCancel:T,isFullWidth:$,wrapClassName:L,ready:m}}}),E1="",A1="",fc={key:0};function dc(e,n,t,o,r,i){const l=a.resolveComponent("close-outlined"),s=a.resolveComponent("a-modal");return a.openBlock(),a.createBlock(s,{getContainer:e.getContainer,wrapClassName:e.wrapClassName,centered:"",visible:e.visible,footer:null,width:e.isFullModal||e.isFullWidth?"100%":e.modalWith,destroyOnClose:e.destroyOnClose,style:a.normalizeStyle(e.modalStyle),closable:!1,onOk:e.onOk,onCancel:e.onCancel,ref:"modalRef"},{default:a.withCtx(()=>[a.createElementVNode("div",{class:"contain",ref:"containRef",style:a.normalizeStyle(e.containStyle)},[e.ready?(a.openBlock(),a.createElementBlock("div",{key:0,class:"content",style:a.normalizeStyle(e.contentStyle)},[a.createElementVNode("div",{class:"header-bar",style:a.normalizeStyle({backgroundColor:e.backgroundColor,padding:"20px 30px"})},[e.title?(a.openBlock(),a.createElementBlock("div",{key:0,class:"ant-modal-title",style:a.normalizeStyle({fontSize:e.titleFontSize,color:e.titleColor})},a.toDisplayString(e.title),5)):a.createCommentVNode("",!0),a.createVNode(l,{class:"close-icon",onClick:e.onCancel},null,8,["onClick"])],4),e.componentList.length?(a.openBlock(),a.createElementBlock("div",fc,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.componentList,(f,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(f.type),a.mergeProps({key:f.id+c},f),null,16))),128))])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)],4)):a.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel"])}const rt=le(se(cc,[["render",dc],["__scopeId","data-v-4234f235"]]));qe.use([it.CanvasRenderer,Ue.PieChart,xe.TitleComponent,xe.ToolboxComponent,xe.TooltipComponent,xe.LegendComponent]);const uc=a.defineComponent({name:"EcanPie",props:{...Io},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(!1),o=de(e),r=a.ref([]),i=a.ref(),l=a.computed(()=>{let{data:w=[]}=a.unref(r)[0]||{};if(Array.isArray(e.colors)){const _=e.isUseLabelColors,D=e.colors;w=w.map((k,T)=>({label:_?{color:D[T]}:{},...k}))}return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:t.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var _;t.value=!0,(_=i.value)==null||_.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter:_=>{const{marker:D,seriesName:k,name:T,value:R,percent:A,data:H}=_||{};return ye(e.tooltipFormatter,{textData:{marker:D,name:T,value:R,percent:A,a:k,b:T,c:R,d:A,...H}},{useNewline:!0,useSpace:!0})},textStyle:{color:e.tooltipTextStyleColor}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:t.value?ct:e.labelFontSize}},color:e.colors,series:[{data:w,type:"pie",radius:[e.innerRadius,e.outerRadius],center:[e.centerLeft,e.centerTop],roseType:e.roseType,avoidLabelOverlap:!1,minAngle:e.minAngle,label:{show:e.labelPosition!=="center"&&e.labelShow,color:e.labelColor,fontSize:t.value?ct:e.labelFontSize,position:e.labelPosition,formatter:yl(e.labelFormatter)},labelLine:{show:e.labelLineShow,length:e.labelLineLength,length2:e.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]}}),s=()=>{t.value=!1},{getGlobalModel:f,setGlobalModel:c}=a.inject(Se,{getGlobalModel:w=>{},setGlobalModel:(w,_)=>{}}),{pageMode:d}=a.inject(Ae,{pageMode:"normal"}),p=(w=[],_)=>{const{dataset:D}=At(w,_);r.value=D},h=(w=[],_)=>{const D=At(w,_);r.value=D.dataset};a.watch(()=>e.data,w=>{(e.dataType==="static"||a.unref(d)==="design")&&p(w)},{immediate:!0,deep:!0});const x=a.ref(!1),u=Pe(e),m=async()=>{var w,_;if(e.dataType==="request")try{x.value=!0;const D=await u();p((_=(w=D==null?void 0:D.data)==null?void 0:w.data)==null?void 0:_.rows,e.valueTypeDataFieldNames)}catch(D){console.error(D)}finally{x.value=!1}},C=pe(e)("click",w=>{const _=f(e.id);c(e.id,{..._,RECORD:w==null?void 0:w.data})}),g=Bt(e),S=async()=>{var w;try{x.value=!0;const _=await g(),{data:D}=_.data||{};if(D){const{columns:k=[],rows:T=[]}=((w=_==null?void 0:_.data)==null?void 0:w.data)??{};let R=[];if(k.length>0){const A=k[0],H=k[1];R=T.map(q=>({name:q[A],value:q[H]}))}h(R)}}catch(_){console.error(_)}finally{x.value=!1}},b=()=>{switch(e.dataType){case"indicator":S();break;case"request":m();break}};be(e,{resetRecord:()=>{const w=e.id,_=f(w);c(w,{..._,RECORD:""})},refreshData:b,click:C}),n({refreshData:b});const{setRequest:y}=a.inject(Te,{setRequest:w=>{}});return typeof y=="function"&&y({id:e.id,requestFn:b,sortNum:e.requestSort}),{option:l,style:o,click:C,onClose:s,loading:x,ecanModal:i}}}),B1="";function hc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ca=le(se(uc,[["render",hc]])),No={...he,id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0},Po=ce(No),fa=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.LineChart,xe.ToolboxComponent,xe.TitleComponent,xe.LegendComponent]);const xc=a.defineComponent({name:"EcanLine",props:{...Po},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=de(e),i=a.ref([]),l=a.ref([]),s=a.ref(),f=a.computed(()=>o.value?ct:12),c=a.ref({});let d;const p=a.computed(()=>{const A=e.xAxisLabelFormatter,H=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var q;o.value=!0,(q=s.value)==null||q.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subText:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",textStyle:{fontSize:f.value},show:e.tooltipShow,formatter:q=>{var O;const $=q.length;let z="",L=e.tooltipFormatter;d=(O=q[0])==null?void 0:O.data,L===""&&(L="{marker} {a} {c}");for(let V=0;V<$;V++){const{marker:B,seriesName:I,name:M,value:N,data:Y}=q[V]||{};V===0&&(z+=`${M}<br/>`),z+=ye(L,{textData:{marker:B,name:M,value:N,a:I,b:M,c:N,...Y}},{useNewline:!0,useSpace:!0}),z+="<br/>"}return z}},xAxis:{type:"category",data:a.unref(l).map(q=>{let $={};return q&&typeof q=="object"?$={...q,textStyle:{fontSize:f.value}}:$={value:q,textStyle:{fontSize:f.value}},$}),minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(q){return ot(A,q)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:f.value,color:e.yAxisLabelColor,formatter(q){return ot(H,q)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:f.value}},series:a.unref(i)}}),h=()=>{o.value=!1},{getGlobalModel:x,setGlobalModel:u}=a.inject(Se,{getGlobalModel:A=>{},setGlobalModel:(A,H)=>{}}),{pageMode:m}=a.inject(Ae,{pageMode:"normal"}),v=(A=[],H=!1)=>{let q;if(e.dataFieldConfigType==="key"){const O=H?e.keyTypeDataFieldNames:null;q=vt(A,O)}else if(e.dataFieldConfigType==="value"){const O=H?e.valueTypeDataFieldNames:null;q=At(A,O)}l.value=q.dimensions;const $=q.dataset,z=[],L=$.length;for(let O=0;O<L;O++)z.push({type:"line",...$[O],symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}});i.value=z},C=(A=[],H,q=!1)=>{const z=vt(A,q?H:null);l.value=z.dimensions;const L=z.dataset,O=[],V=L.length;for(let B=0;B<V;B++)O.push({type:"line",...L[B],symbolSize:e.symbolSize,smooth:e.smooth,lineStyle:{width:e.lineStyleWidth}});i.value=O};a.watch(()=>[e.data,e.symbolSize,e.smooth,e.lineStyleWidth,e.areaStyleOpacity],([A])=>{(e.dataType==="static"||a.unref(m)==="design")&&v(A)},{immediate:!0,deep:!0});const g=a.ref(!1),S=Pe(e),b=async()=>{var A,H;if(e.dataType==="request")try{g.value=!0;const q=await S();v((H=(A=q==null?void 0:q.data)==null?void 0:A.data)==null?void 0:H.rows,!0)}catch(q){console.error(q)}finally{g.value=!1}},y=pe(e)("click",A=>{const H=x(e.id);u(e.id,{...H,RECORD:e.tooltipShow?d:A.data})}),w=A=>{t.value.chart.containPixel("grid",[A.offsetX,A.offsetY])&&y()};e.tooltipShow?c.value["zr:click"]=w:c.value.click=y;const _=Bt(e),D=async()=>{var A;try{g.value=!0;const H=await _(),{columns:q=[],rows:$=[]}=((A=H==null?void 0:H.data)==null?void 0:A.data)??{};let z;q.length>0&&(z={name:q[0],types:q.slice(1).map(L=>({label:L,value:L}))}),C($,z,!0)}catch(H){console.error(H)}finally{g.value=!1}},k=()=>{switch(e.dataType){case"indicator":D();break;case"request":b();break}};be(e,{refreshData:k,resetRecord:()=>{const A=e.id,H=x(A);u(A,{...H,RECORD:""})},click:y});const{setRequest:R}=a.inject(Te,{setRequest:A=>{}});return typeof R=="function"&&R({id:e.id,requestFn:k,sortNum:e.requestSort}),n({refreshData:k}),{option:p,style:r,click:y,loading:g,onClose:h,ecanModal:s,eventObj:c,echartRef:t}}}),R1="";function mc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,a.mergeProps({ref:"echartRef",option:e.option,autoresize:""},a.toHandlers(e.eventObj)),null,16,["option"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const da=le(se(xc,[["render",mc]])),zo={...he,id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",top:"",left:"",rotate:"",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0},Mo=ce(zo),ua=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const gc=a.defineComponent({name:"EcanBar",props:{...Mo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=de(e),f=a.ref([]),c=a.ref(),d=a.computed(()=>o.value?ct:12),p=a.computed(()=>{const L=a.unref(f),O=L.length,V=[];for(let B=0;B<O;B++){const I={...L[B],type:"bar",barWidth:e.barWidth};e.isStack&&(I.stack="stack"),I.label={show:e.labelShow,fontSize:e.labelFontSize,position:e.labelPosition,color:e.labelColor},V.push(I)}return V}),h=a.ref([]),x=a.ref(!1),u=a.computed(()=>{const L=e.yAxisLabelFormatter,O=e.xAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const V=t.value.chart.getOption(),{xAxis:B}=V||{};B&&B.length&&(l.value=B[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var V;o.value=!0,(V=c.value)==null||V.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,tooltip:{trigger:"axis",show:e.tooltipShow,formatter:V=>{const B=V.length;let I="",M=e.tooltipFormatter;M===""&&(M="{marker} {a} {c}");for(let N=0;N<B;N++){const{marker:Y,seriesName:Z,name:Q,value:W,data:ke}=V[N]||{};N===0&&(I+=`${Q}<br/>`),I+=ye(M,{textData:{marker:Y,name:Q,value:W,a:Z,b:Q,c:W,...ke}},{useNewline:!0,useSpace:!0}),I+="<br/>"}return I},textStyle:{color:e.tooltipTextStyleColor,fontSize:d.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:d.value}},xAxis:{type:e.isUseHorizontalAxis?"value":"category",data:e.isUseHorizontalAxis?null:a.unref(S),inverse:e.isUseHorizontalAxis?e.xAxisInverse:e.axisInverse,minInterval:e.xAxisMinInterval,splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(V){return ot(O,V)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{type:e.isUseHorizontalAxis?"category":"value",data:e.isUseHorizontalAxis?a.unref(h):null,inverse:e.isUseHorizontalAxis?e.axisInverse:e.yAxisInverse,minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:d.value,color:e.yAxisLabelColor,rotate:e.yAxisLabelRotate,width:e.yAxisLabelWidth,overflow:e.yAxisLabelOverflow,formatter(V){return ot(L,V)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},series:a.unref(p)}}),{pageMode:m}=a.inject(Ae,{pageMode:"normal"}),v=()=>{o.value=!1},C=(L=[],O=!1)=>{let V={};if(e.dataFieldConfigType==="key"){const B=O?e.keyTypeDataFieldNames:null;V=vt(L,B)}else if(e.dataFieldConfigType==="value"){const B=O?e.valueTypeDataFieldNames:null;V=At(L,B)}f.value=V.dataset,h.value=V.dimensions},g=(L=[],O,V=!1)=>{const I=vt(L,V?O:null);f.value=I.dataset,h.value=I.dimensions},S=a.computed(()=>a.unref(h).map(L=>{let O={};return L&&typeof L=="object"?O={...L,textStyle:{fontSize:d.value}}:O={value:L,textStyle:{fontSize:d.value}},O}));a.watch(()=>e.data,L=>{(e.dataType==="static"||a.unref(m)==="design")&&C(L)},{immediate:!0,deep:!0});const b=Pe(e),E=async()=>{var L,O;try{x.value=!0;const V=await b();C((O=(L=V==null?void 0:V.data)==null?void 0:L.data)==null?void 0:O.rows,!0)}catch(V){console.error(V)}finally{x.value=!1}},y=Bt(e),w=async()=>{var L;try{x.value=!0;const O=await y(),{columns:V=[],rows:B=[]}=((L=O==null?void 0:O.data)==null?void 0:L.data)??{};let I;V.length>0&&(I={name:V[0],types:V.slice(1).map(M=>({label:M,value:M}))}),g(B,I,!0)}catch(O){console.error(O)}finally{x.value=!1}},_=()=>{switch(e.dataType){case"indicator":w();break;case"request":E();break}},D=(L,O)=>!!a.unref(l)[O.value].value.includes(L),k=async()=>{r.value=!1;const L=t.value.chart.getOption();for(let O=0;O<7;O++)await T(L,O)},T=(L,O)=>new Promise(V=>{setTimeout(()=>{const{series:B,color:I,xAxis:M}=L,N=t.value.chart,{splitArea:Y={}}=M[0]||{};B.forEach((Z,Q)=>{const W=Z.data;let ke="";O%2?ke=I[Q]+"a8":ke=I[Q],W[i.value].itemStyle={color:ke}}),O%2?(Y.show=!0,Y.areaStyle.color=a.unref(l).map((Z,Q)=>Q===i.value?"#ff003b26":"")):Y.show=!1,N.setOption({series:B,xAxis:M}),V()},200)});n({refreshData:_});const R=pe(e),{getGlobalModel:A,setGlobalModel:H}=a.inject(Se,{getGlobalModel:L=>{},setGlobalModel:(L,O)=>{}}),q=R("click",L=>{const O=A(e.id);H(e.id,{...O,RECORD:L.data})}),{setRequest:$}=a.inject(Te,{setRequest:L=>{}});return typeof $=="function"&&$({id:e.id,requestFn:_,sortNum:e.requestSort}),be(e,{refreshData:_,click:q,resetRecord:()=>{const L=e.id,O=A(L);H(L,{...O,RECORD:""})}}),{option:u,style:s,refreshData:_,click:q,loading:x,onClose:v,ecanModal:c,echartRef:t,handleLocationOk:k,onFilterOption:D,locationVisible:r,locationValue:i,locationNames:l}}}),L1="",O1="",pc=e=>(a.pushScopeId("data-v-39560f07"),e=e(),a.popScopeId(),e),yc={class:"location-wrap"},vc=pc(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function bc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{class:"ecan-bar",style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",yc,[vc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ha=le(se(gc,[["render",bc],["__scopeId","data-v-39560f07"]])),Fo={...he,id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",top:"",left:"",rotate:"",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息"},Vo=ce(Fo),xa=["click","refreshData","resetRecord"];qe.use([it.CanvasRenderer,Ue.ScatterChart,xe.ToolboxComponent,xe.TitleComponent,xe.TooltipComponent,xe.LegendComponent]);const Sc=a.defineComponent({name:"EcanScatter",props:{...Vo},components:{Spin:_t,Echarts:Qe,EcanModal:rt},setup(e){const n=a.ref(!1),t=de(e),o=a.ref([]),r=a.ref(),i=a.computed(()=>n.value?ct:12),l=a.computed(()=>{const b=e.xAxisLabelFormatter,E=e.yAxisLabelFormatter;return{toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:n.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var y;n.value=!0,(y=r.value)==null||y.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,xAxis:{splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow,formatter(y){return ot(b,y)}},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:{splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:i.value,color:e.yAxisLabelColor,formatter(y){return ot(E,y)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}},tooltip:{show:e.tooltipShow,trigger:e.tooltipTrigger,formatter(y){var R;const{marker:w,seriesName:_}=y,D=((R=y==null?void 0:y.data)==null?void 0:R.record)??{},{name:k,value:T}=D;return ye(e.tooltipFormatter,{textData:{marker:w,seriesName:_,a:_,b:k,c:T,...D}})},axisPointer:{type:"cross"},textStyle:{fontSize:i.value}},legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{fontSize:i.value}},series:[{data:a.unref(o),type:"scatter",symbolSize:e.symbolSize}]}}),{getGlobalModel:s,setGlobalModel:f}=a.inject(Se,{getGlobalModel:b=>{},setGlobalModel:(b,E)=>{}}),{pageMode:c}=a.inject(Ae,{pageMode:"normal"}),d=(b=[],E)=>{const{name:y="name",value:w="value"}=E||{};o.value=b.map(_=>({value:[_[y],_[w]],record:_}))};a.watch(()=>e.data,b=>{(e.dataType==="static"||a.unref(c)==="design")&&d(b)},{immediate:!0,deep:!0});const p=a.ref(!1),h=Pe(e),x=async()=>{var b,E;if(e.dataType==="request"){p.value=!0;try{const y=await h();d((E=(b=y==null?void 0:y.data)==null?void 0:b.data)==null?void 0:E.rows,e.dataFieldNames)}catch(y){console.error(y)}finally{p.value=!1}}},u=()=>{n.value=!1},v=pe(e)("click",b=>{const E=e.id,y=s(E);f(E,{...y,RECORD:b==null?void 0:b.data})});be(e,{refreshData:()=>{x()},click:v,resetRecord:()=>{const b=e.id,E=s(b);f(b,{...E,RECORD:""})}});const{setRequest:S}=a.inject(Te,{setRequest:b=>{}});return typeof S=="function"&&S({id:e.id,requestFn:x,sortNum:e.requestSort}),{option:l,style:t,click:v,loading:p,onClose:u,ecanModal:r}}}),P1="";function Cc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const ma=le(se(Sc,[["render",Cc]])),qo={...he,id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",option:{},optionCode:""},Ho=ce(qo),wc=a.defineComponent({name:"EcanCustomGraph",props:{...Ho},components:{Echarts:Qe},setup(e){const n=de(e),t=a.ref();return a.watch(()=>e.optionCode,o=>{try{const r=eval;t.value=r(o)}catch(r){console.error(r)}},{immediate:!0}),{style:n,myOption:t,echarts:Wa}}});function kc(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(l,{option:e.myOption,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])],4)}const ga=le(se(wc,[["render",kc]])),$o={...he,id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"},jo=ce($o),pa=["refreshData","click","resetRecord"];qe.use([it.CanvasRenderer,Ue.BarChart,Ue.LineChart,xe.TitleComponent,xe.LegendComponent,xe.DatasetComponent,xe.ToolboxComponent]);const _c=a.defineComponent({name:"EcanComboGraph",props:{...jo},components:{Spin:_t,Echarts:Qe,EcanModal:rt,AModal:ae.Modal},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=a.ref(!1),i=a.ref(null),l=a.ref([]),s=de(e),f=a.ref([]),c=a.ref([]),d=a.ref(),p=a.computed(()=>o.value?ct:12),h=a.computed(()=>({title:{text:e.titleText,subtext:e.titleSubtext,left:"center"},toolbox:{show:e.toolboxShow,left:e.toolboxLeft,top:e.toolboxTop,itemSize:e.toolboxItemSize,itemGap:e.toolboxItemGap,feature:{myLocation:{show:o.value?!1:e.toolboxLocation,title:"快速定位",icon:"path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z",onclick(){r.value=!0;const z=t.value.chart.getOption(),{xAxis:L}=z||{};L&&L.length&&(l.value=L[0].data)}},myDownload:{show:e.toolboxDownloadShow,title:"数据下载",icon:"path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z",onclick(){Dt(e.toolboxDownloadUrl)}},myDataZoom:{show:o.value?!1:e.toolboxDataZoomShow,title:"放大",icon:"path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z",onclick(){var z;o.value=!0,(z=d.value)==null||z.showModal()}},myInfo:{show:e.toolboxInfoShow,title:"说明信息",icon:"path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z",onclick(){ae.Modal.info({title:"说明信息",content:e.toolboxInfoText})}}}},grid:{top:e.gridTop,bottom:e.gridBottom,left:e.gridLeft,right:e.gridRight,containLabel:e.gridContainLabel},color:e.colors,legend:{show:e.legendShow,orient:e.legendOrient,top:e.legendTop,left:e.legendLeft,textStyle:{color:e.legendTextStyleColor,fontSize:p.value}},tooltip:{trigger:"axis",show:e.tooltipShow,formatter:z=>{const L=z.length;let O="",V=e.tooltipFormatter;V===""&&(V="{marker} {a} {c}");const B=e.seriesTypes;for(let I=0;I<L;I++){const M=B[I],{tooltipFormatter:N}=M||{},{marker:Y,seriesName:Z,name:Q,value:W,data:ke}=z[I]||{};I===0&&(O+=`${Q}<br/>`),O+=ye(N||V,{textData:{marker:Y,name:Q,value:W,seriesName:Z,a:Z,b:Q,c:W,...ke}},{useNewline:!0,useSpace:!0}),O+="<br/>"}return O},textStyle:{color:e.tooltipTextStyleColor,fontSize:p.value}},xAxis:{minInterval:e.xAxisMinInterval,type:"category",data:a.unref(c).map(z=>{let L={};return z&&typeof z=="object"?L={...z,textStyle:{fontSize:p.value}}:L={value:z,textStyle:{fontSize:p.value}},L}),splitLine:{show:e.xAxisSplitLineShow,lineStyle:{color:e.xAxisSplitLineStyleColor}},axisLabel:{color:e.xAxisLabelColor,interval:e.xAxisLabelInterval||0,rotate:e.xAxisLabelRotate,width:e.xAxisLabelWidth,overflow:e.xAxisLabelOverflow},axisLine:{lineStyle:{color:e.xAxisLineStyleColor}},axisTick:{show:e.xAxisTickShow}},yAxis:a.unref(C),series:a.unref(f)})),{pageMode:x}=a.inject(Ae,{pageMode:"normal"}),u=()=>{o.value=!1},m=(z=[],L=!1)=>{let O;if(e.dataFieldConfigType==="key"){const N=L?e.keyTypeDataFieldNames:null;O=vt(z,N)}else if(e.dataFieldConfigType==="value"){const N=L?e.valueTypeDataFieldNames:null;O=At(z,N)}c.value=O.dimensions;const V=O.dataset,B=[],I=V.length,M=e.seriesTypes;for(let N=0;N<I;N++){const Y=M[N],{type:Z,axisIndex:Q}=Y||{};let W={type:Z,yAxisIndex:Q,...V[N]};Z==="line"&&(W={...W,symbolSize:e.symbolSize,smooth:e.smooth,areaStyle:{opacity:e.areaStyleOpacity},lineStyle:{width:e.lineStyleWidth}}),Z==="bar"&&(W={...W,barWidth:e.barWidth}),B.push(W)}f.value=B},v=(z=[],L,O=!1)=>{const B=vt(z,O?L:null);c.value=B.dimensions;const I=B.dataset,M=[],N=I.length,Y=e.seriesTypes;for(let Z=0;Z<N;Z++){const Q=Y[Z];M.push({type:Q==null?void 0:Q.type,yAxisIndex:Q==null?void 0:Q.axisIndex,...I[Z]})}f.value=M};a.watch(()=>[e.data,e.seriesTypes,e.symbolSize,e.smooth,e.areaStyleOpacity,e.lineStyleWidth,e.barWidth],([z])=>{(e.dataType==="static"||a.unref(x)==="design")&&m(z)},{immediate:!0,deep:!0});const C=a.computed(()=>{const z=e.yAxis;return z==null?void 0:z.map(L=>({type:"value",minInterval:e.yAxisMinInterval,splitLine:{show:e.yAxisSplitLineShow,lineStyle:{color:e.yAxisSplitLineStyleColor}},axisLabel:{fontSize:p.value,color:e.yAxisLabelColor,formatter(O){return ot(L.axisLabelFormatter,O)}},axisLine:{show:e.yAxisLineAlwaysDisplay,lineStyle:{color:e.yAxisLineStyleColor}}}))}),g=a.ref(!1),S=Pe(e),b=async()=>{var z,L;if(e.dataType==="request")try{g.value=!0;const O=await S();m((L=(z=O==null?void 0:O.data)==null?void 0:z.data)==null?void 0:L.rows,!0)}catch(O){console.error(O)}finally{g.value=!1}},E=Bt(e),y=async()=>{var z;try{g.value=!0;const L=await E(),{columns:O=[],rows:V=[]}=((z=L==null?void 0:L.data)==null?void 0:z.data)??{};let B;O.length>0&&(B={name:O[0],types:O.slice(1).map(I=>({label:I,value:I}))}),v(V,B,!0)}catch(L){console.error(L)}finally{g.value=!1}},w=()=>{switch(e.dataType){case"indicator":y();break;case"request":b();break}},_=(z,L)=>!!a.unref(l)[L.value].value.includes(z),D=async()=>{r.value=!1;const z=t.value.chart.getOption();for(let L=0;L<7;L++)await k(z,L)},k=(z,L)=>new Promise(O=>{setTimeout(()=>{const{series:V,color:B,xAxis:I}=z,M=t.value.chart,{splitArea:N={}}=I[0]||{};V.forEach((Y,Z)=>{const Q=Y.data;let W="";L%2?W=B[Z]+"a8":W=B[Z],Q[i.value].itemStyle={color:W}}),L%2?(N.show=!0,N.areaStyle.color=a.unref(l).map((Y,Z)=>Z===i.value?"#ff003b26":"")):N.show=!1,M.setOption({series:V,xAxis:I}),O()},200)});n({refreshData:w});const T=pe(e),{getGlobalModel:R,setGlobalModel:A}=a.inject(Se,{getGlobalModel:z=>{},setGlobalModel:(z,L)=>{}}),H=T("click",z=>{const L=R(e.id);A(e.id,{...L,RECORD:z==null?void 0:z.data})}),{setRequest:q}=a.inject(Te,{setRequest:z=>{}});return typeof q=="function"&&q({id:e.id,requestFn:w,sortNum:e.requestSort}),be(e,{resetRecord:()=>{const z=e.id,L=R(z);A(z,{...L,RECORD:""})},refreshData:w,click:H}),{style:s,option:h,click:H,loading:g,onClose:u,ecanModal:d,echartRef:t,handleLocationOk:D,onFilterOption:_,locationVisible:r,locationValue:i,locationNames:l}}}),F1="",V1="",Ec=e=>(a.pushScopeId("data-v-40e976bd"),e=e(),a.popScopeId(),e),Ac={class:"location-wrap"},Tc=Ec(()=>a.createElementVNode("div",{class:"location-text"},"选择分类:",-1));function Bc(e,n,t,o,r,i){const l=a.resolveComponent("echarts"),s=a.resolveComponent("spin"),f=a.resolveComponent("ecan-modal"),c=a.resolveComponent("a-select-option"),d=a.resolveComponent("a-select"),p=a.resolveComponent("a-modal");return a.openBlock(),a.createElementBlock("div",{style:a.normalizeStyle(e.style)},[a.createVNode(s,{spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{ref:"echartRef",option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"]),a.createVNode(f,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:e.onClose},{default:a.withCtx(()=>[a.createVNode(s,{class:"spin-wrap",spinning:e.loading},{default:a.withCtx(()=>[a.createVNode(l,{option:e.option,"update-options":{notMerge:!0},autoresize:"",onClick:e.click},null,8,["option","onClick"])]),_:1},8,["spinning"])]),_:1},8,["onClose"]),a.createVNode(p,{visible:e.locationVisible,"onUpdate:visible":n[1]||(n[1]=h=>e.locationVisible=h),title:"快速定位",onOk:e.handleLocationOk},{default:a.withCtx(()=>[a.createElementVNode("div",Ac,[Tc,a.createVNode(d,{value:e.locationValue,"onUpdate:value":n[0]||(n[0]=h=>e.locationValue=h),style:{width:"100%"},placeholder:"请选择","show-search":"","filter-option":e.onFilterOption},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.locationNames,(h,x)=>(a.openBlock(),a.createBlock(c,{key:x,value:x},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(h.value),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","filter-option"])])]),_:1},8,["visible","onOk"])],4)}const ya=le(se(_c,[["render",Bc],["__scopeId","data-v-40e976bd"]])),Uo={...he,name:"边框",keyName:"边框",type:"ecanBorder",width:"300px",height:"300px",zIndex:0,fontSize:"16px",fontFamily:"",fontWeight:700,title:"标题",mode:"no-title",borderColor:"#eee",borderRadius:"5px",borderStyle:"solid",borderWidth:"2px",backgroundColor:"#ffffff",useBorderModify:!1,textShadow:"",data:{}},Wo=ce(Uo),va=["click"],Dc=a.defineComponent({name:"EcanBorder",props:{...Wo},setup(e){const n=de(e,["background"]),{theme:t}=a.inject(Ae,{theme:"light"}),o=a.computed(()=>({width:"100%",height:"100%"})),i=pe(e)("click",()=>{}),l=a.ref([]);a.watch(()=>e.data,f=>{l.value=f},{immediate:!0,deep:!0}),be(e,{click:i});const{setGlobalModel:s}=a.inject(Se,{setGlobalModel:(f,c)=>{}});return s(e.id,{type:e.type,value:l}),{style:n,click:i,borderStyle:o,theme:t}}}),Rc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAZlBMVEUAAABBltJCldJCldFEk89BltJCltFBldI/lMBKndtmb9pCltNDldFAkclAldNBldJBltM/lM5AltNCldJBldJBlNJBltVBldJBlNJBlNI/lNNBldJBldNAldJBldJBldJBldNBldIiNK7WAAAAInRSTlMAM4BNGmaz5gQGbiAPCV1WQxUpOCY9EmxQSC2jdoacqZK8uPo7tAAAAZ9JREFUSMe90NmOwjAMheGka0J3SulCy/L+Lzk4I+HYhckEKs7dr1x8kQVM5YJMZ7SLiXVHOw817Z72cSns3BmziY7EnGRGjDqUpKt4pEZQKruvyaJt85YmBUebKLJVNUlpq6oOQ1tVVRzbqu6DwFb1NUlsVd3SNL0UDM0jqkaSqoeQqjKmahtQNUzuC1AtU1sF9KHmnmrtrSK6idqBWqE6GFVxFdGvqDGoJ01Qt7rfTEV0e7V6qSK6VjNPtTaqoOq8Ugnqr7aeav+rAuqrTh+qZw3o1urAVcFVQD3U6ZnaYY9MLZk6G5WhDaDFI9UeUPyE7gCNsAdAD9gxoBJ7ARRPUVwALXdu8/h/s3xmjtwUu0/M0M/UJzBjAei3TUTdpmKmcpkBmOHKBNTPzJi59zYJys3DO2aL78YcmNkLgrrM9m9TucwzmoBy08xlju+bgL42G4c5OcxqZSLqbwqXOVNTGXMWFD0ak6KN1ZKaojYmbribndW9MXELNQEFFUyiNqQlmEQ1JqpgErUifUUTUVEIupx1wzpjvWfdsh4FQX8ANe4nnpsb9NEAAAAASUVORK5CYII=",Ic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHQAAAAcCAMAAACH42siAAAAaVBMVEUAAABElM9BltJCldJCldFBltJBldJCltFNmrNCmNNFldNAldJBldNBldRBldNBldNBldJCoNFBldJBltNBldJBldJAldJAltJBldJBldJBldNAlNFAldJBlNJAldJBldNBldJBldJBldLfIVowAAAAI3RSTlMAGjJNgGbmswMSCScgDTs/ZAVRK0eYj2s3r3AWveHEhXjeXb5rzlgAAAFqSURBVEjH1dbJVsJAEIXhHjJ05tlEooK8/0NKsbDrFjmHiBD0Lvqcf9PfthRM7xvoZMQuLHZaOejGYLtcdEItzI9oaLg5xIHj5hgcG262oXXcrGzJ23Umg5717C7NKBrAjOMDM8YgCI5ghmEPprUTmMZkrBOtdbJgfpZovho0gwzNOkfTam9k5jSGkKlTMOezWT3VLH5qlg8wQzSbO5jJ28l8Z+YLmZMwuz9lupvNXpjlFTMTZv7vzFSatTDtGnNeYdpNzZTMSJhx5f84m8Y3mSEzJzTVolko3J7Qve+a0J3vntDWffdEaMUQQo1vTWjuuyA0UWvUUarqzuqLUMPt1MD3uKTaTdRwvdrdorpFtfZtH6eyK2F3RS23U3uhlr9VB1TdE1V2h7Vr1O4mdbdera6o+Wq1Vqi2rEktFapGoZopVLVCtVCXag19IBPUiiWpBrojE1QNXZAp1/TYbhKdKVwuWotORKfn9wu/DSc/X9T6qgAAAABJRU5ErkJggg==",H1="",Ve=e=>(a.pushScopeId("data-v-1550b11b"),e=e(),a.popScopeId(),e),Lc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),Oc=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),Nc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Pc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),zc={class:"title-item-wrapper"},Mc={class:"title-item"},Fc=Ve(()=>a.createElementVNode("img",{class:"title-decoration-left",src:Rc},null,-1)),Vc={class:"title"},qc=Ve(()=>a.createElementVNode("img",{class:"title-decoration-right",src:Ic},null,-1)),Hc=Ve(()=>a.createElementVNode("div",{class:"top-left border-item"},null,-1)),$c=Ve(()=>a.createElementVNode("div",{class:"top-right border-item"},null,-1)),jc=Ve(()=>a.createElementVNode("div",{class:"bottom-left border-item"},null,-1)),Uc=Ve(()=>a.createElementVNode("div",{class:"bottom-right border-item"},null,-1)),Wc={key:2,class:"left-title"},Gc={class:"title"};function Zc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-border",style:a.normalizeStyle(e.style),onClick:n[0]||(n[0]=(...l)=>e.click&&e.click(...l))},[e.mode==="no-title"?(a.openBlock(),a.createElementBlock("div",{key:0,class:"no-title",style:a.normalizeStyle(e.borderStyle)},[e.useBorderModify?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[Lc,Oc,Nc,Pc],64)):a.createCommentVNode("",!0)],4)):a.createCommentVNode("",!0),e.mode==="top-title"?(a.openBlock(),a.createElementBlock("div",{key:1,class:"top-title",style:a.normalizeStyle(e.borderStyle)},[a.createElementVNode("div",zc,[a.createElementVNode("div",Mc,[Fc,a.createElementVNode("div",Vc,a.toDisplayString(e.title),1),qc])]),Hc,$c,jc,Uc],4)):a.createCommentVNode("",!0),e.mode==="left-title"?(a.openBlock(),a.createElementBlock("div",Wc,[a.createElementVNode("div",Gc,[a.createElementVNode("span",null,a.toDisplayString(e.title),1)])])):a.createCommentVNode("",!0)],4)}const ba=le(se(Dc,[["render",Zc],["__scopeId","data-v-1550b11b"]])),Go={...he,tabHorizontalPadding:"0px",type:"ecanTabs",name:"标签页",keyName:"标签页",width:"500px",height:"400px",tabFontSize:"14px",backgroundColor:"#ffffff",activeTabColor:"#1890ff",tabBackgroundImage:"",activeTabBackgroundImage:"",tabColor:"#333",tabBarGutter:"24px",tabFontWeight:400,value:"",activeKey:0,autoSwitch:!1,autoSwitchInterval:5,contains:[],tabFlexDirection:"row",data:[{title:"标签1"},{title:"标签2"},{title:"标签3"}],tabAlignItems:"flex-start",tabJustifyContent:"flex-start"},Zo=ce(Go),Sa=["tabChange"],Kc=a.defineComponent({name:"EcanTabs",props:{...Zo},setup(e){const n=de(e),t=a.ref(0);a.watch(()=>e.activeKey,x=>{t.value=x},{immediate:!0});const{pageMode:o}=a.inject(Ae,{pageMode:"normal"});let r=null;const i=()=>{const x=Array.isArray(a.unref(l))?a.unref(l).length-1:0;e.autoSwitch&&x>0&&(r=setInterval(()=>{const u=a.unref(t)+1;u<=x?t.value=u:t.value=0,s.value=a.unref(l)[a.unref(t)],p()},e.autoSwitchInterval*1e3))};a.onMounted(()=>{a.unref(o)!=="design"&&i()}),a.onBeforeUnmount(()=>{clearInterval(r)});const l=a.ref([]),s=a.ref({});a.watch(()=>e.data,x=>{l.value=x,s.value=Array.isArray(x)&&x.length>0?x[0]:{}},{immediate:!0,deep:!0});const f=x=>t.value===x,c=pe(e),{setGlobalModel:d}=a.inject(Se,{setGlobalModel:(x,u)=>{}});d(e.id,{value:s,activeKey:t});const{emitRefreshPage:p}=a.inject(Et,{emitRefreshPage:()=>{}}),h=c("tabChange",(x,u)=>{u!==a.unref(t)&&(s.value=x,t.value=u,p())});return be(e,{tabChange:h}),{style:n,activeKey:t,isActive:f,tabChange:h,myData:l,useImagePath:nt}}}),j1="",Yc=["onClick"];function Xc(e,n,t,o,r,i){return a.openBlock(),a.createElementBlock("div",{class:"ecan-tabs",style:a.normalizeStyle(e.style)},[a.createElementVNode("div",{class:"tabs-header",style:a.normalizeStyle({fontSize:e.tabFontSize,alignItems:e.tabAlignItems,justifyContent:e.tabJustifyContent,flexDirection:e.tabFlexDirection})},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.myData,(l,s)=>(a.openBlock(),a.createElementBlock("div",{class:"tab",style:a.normalizeStyle({padding:`5px ${e.tabHorizontalPadding}`,color:e.isActive(s)?e.activeTabColor:e.tabColor,backgroundImage:e.isActive(s)?e.useImagePath(e.activeTabBackgroundImage,!0):e.useImagePath(e.tabBackgroundImage,!0),marginRight:e.tabFlexDirection==="row"?e.tabBarGutter:null,marginBottom:e.tabFlexDirection==="column"?e.tabBarGutter:null,fontWeight:e.tabFontWeight}),key:s,onClick:a.withModifiers(f=>e.tabChange(l,s),["prevent","stop"])},[a.createElementVNode("div",{class:"tab-inner",style:a.normalizeStyle({borderBottom:!e.activeTabBackgroundImage&&!e.tabBackgroundImage?`1px solid ${e.isActive(s)?e.activeTabColor:"transparent"}`:""})},a.toDisplayString(l.title),5)],12,Yc))),128))],4)],4)}const Ca=le(se(Kc,[["render",Xc],["__scopeId","data-v-a2045b93"]])),Ko={...he,name:"图片",keyName:"图片",type:"ecanImage",width:"300px",height:"300px",imgUrl:"",target:"self",href:"",linkPage:""},Yo=ce(Ko),Jc=a.defineComponent({name:"EcanImage",props:{...Yo},setup(e){const n=de(e),t=a.computed(()=>nt(e.imgUrl)),{pageMode:o}=a.inject(Ae,{pageMode:"normal"});return{style:n,myImgUrl:t,onClick:()=>{if(!e.linkPage&&!e.href)return;const i=e.linkPage||"",l=N0(a.unref(o),i),s=e.href;let f=s||l;f=ye(f);const c=e.target;c&&(c!=="event"?window.open(f,"_"+c):window.parent.postMessage({type:"openPage",url:s},"*"))}}}}),W1="",Qc=["src"];function ef(e,n,t,o,r,i){return e.myImgUrl!==""?(a.openBlock(),a.createElementBlock("img",{key:0,style:a.normalizeStyle(e.style),src:e.myImgUrl,onClick:n[0]||(n[0]=(...l)=>e.onClick&&e.onClick(...l))},null,12,Qc)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"image-placeholder",style:a.normalizeStyle(e.style)}," 请上传图片 ",4))}const wa=le(se(Jc,[["render",ef],["__scopeId","data-v-ef7a7bee"]])),Xo={...he,name:"网页",keyName:"网页",type:"ecanIframe",width:"300px",height:"300px",link:"",linkType:"web"},Jo=ce(Xo),tf=a.defineComponent({name:"EcanIframe",props:{...Jo},setup(e){const n=de(e),{contextRequestUrl:t}=a.inject(Ae,{contextRequestUrl:""}),o=a.computed(()=>{let r=ye(e.link);if(e.linkType==="erd"&&r!=null){let i=a.unref(t);i[i.length-1]==="/"?i+="erdReport":i+="/erdReport",r=`${ds||i}?_t=0&uid=${r}`}return r});return{style:n,myLink:o}}}),Z1="",nf=["src"];function of(e,n,t,o,r,i){return e.myLink?(a.openBlock(),a.createElementBlock("iframe",{key:0,src:e.myLink,style:a.normalizeStyle(e.style)},null,12,nf)):(a.openBlock(),a.createElementBlock("div",{key:1,class:"iframe-placeholder",style:a.normalizeStyle(e.style)}," 请填写网页链接 ",4))}const ka=le(se(tf,[["render",of],["__scopeId","data-v-19bc100c"]])),Qo={...he,zIndex:2,name:"表格",keyName:"表格",type:"ecanTable",width:"400px",height:"240px",bordered:!1,headerFontSize:"14px",fontSize:"14px",isUseSeq:!1,size:"default",headerFontWeight:400,isUseExport:!1,fontWeight:400,columnsFixedNum:0,scrollX:0,paginationShow:!0,isReverse:!1,simple:!1,pageSizeShow:!1,cellBackgroundColor:"",borderColor:"",paginationPosition:"bottomRight",paginationPageSize:10,isUseAction:!1,clickHighlight:!1,filterDropdownHeight:"200px",actionList:[{title:"",href:"",target:"",color:""}],actionColumnWidth:100,columns:[{title:"姓名",dataIndex:"name"},{title:"年龄",dataIndex:"age"},{title:"住址",dataIndex:"address"}],data:[{name:"小明",age:32,address:"福州软件园"},{name:"小红",age:25,address:"福州软件园"}],graphicConfig:{}},er=ce(Qo),_a=["click","refreshData","resetRecord","exportTableData"],rf=a.defineComponent({name:"EcanTable",components:{Skeleton:Ft,AButton:ae.Button,AInput:ae.Input,ACheckboxGroup:ae.CheckboxGroup,ATable:ae.Table,ATableSummary:ae.TableSummary,ATableSummaryRow:ae.TableSummaryRow,ATableSummaryCell:ae.TableSummaryCell},props:{...er},setup(e,{expose:n}){const t=a.ref(),o=a.ref(!1),r=de(e),i=a.computed(()=>{if(e.paginationShow)switch(e.size){case"small":return 90;case"middle":return 100;default:return 120}else switch(e.size){case"small":return 40;case"middle":return 47;default:return 55}}),l=a.computed(()=>e.scrollX),s=a.computed(()=>parseFloat(e.height)-a.unref(i)),f=a.ref([]),c=a.ref([]),d=a.ref([]),p=a.ref([]),h=a.ref(0),x=a.ref(1),u=a.ref(e.paginationPageSize||10),m=a.reactive([]),v=(j=[])=>{if(Array.isArray(j)&&j.length>0){const U=j.length,K=e.columnsFixedNum;for(let X=0;X<U;X++){const G=j[X];X<K?G.fixed="left":G.fixed=!1;const{cellAlign:re="center",cellColor:te,dataIndex:ie,title:fe,tableFilter:ue,headerCellAlign:Fe,headerCellColor:ve}=G;ue&&(m.push(ie),G.filterOptionsInputValue="",G.filterCheckboxGroupValue=[],G.customFilterDropdown=!0,G.onFilter=(Ee,It)=>It[ie].toString().toLowerCase().includes(Ee.toLowerCase())),G.customHeaderCell=()=>({style:{display:"table-cell",verticalAlign:"middle",fontSize:e.headerFontSize,fontWeight:e.headerFontWeight,textAlign:Fe||"center",color:ve,borderBottomColor:e.borderColor}}),G.customCell=(Ee,It)=>({style:{textAlign:re,color:te,backgroundColor:e.cellBackgroundColor,borderBottomColor:e.borderColor},class:{highlight:a.unref(V)===It&&e.clickHighlight},onClick:H("click",()=>{const Lt=e.id,Qt=q(Lt);Ee={dataIndex:ie,title:fe,...Ee},$(Lt,{...Qt,RECORD:Ee})})}),Array.isArray(G.children)&&v(G.children)}}},C=(j=[])=>(e.isUseSeq&&j.unshift({title:"序号",dataIndex:"SEQ",align:"center"}),e.isUseAction&&j.push({title:"操作",dataIndex:"ACTION",width:e.actionColumnWidth}),v(j),j);a.watch(u,()=>{x.value=1,I(!1)}),a.watch(t,j=>{o.value=!!j}),a.watch(()=>[e.columns,e.isUseSeq,e.isUseAction,e.columnsFixedNum,e.actionColumnWidth,e.cellBackgroundColor,e.borderColor],()=>{f.value=C(He.cloneDeep(e.columns))},{immediate:!0,deep:!0}),a.watch(()=>[e.data,e.dataType],([j,U])=>{U==="static"&&(c.value=j)},{immediate:!0});const g=a.ref({}),S=j=>{if(Array.isArray(j)){const U=j.length,K=m,X=K.length,G={};for(let te=0;te<U;te++){const ie=j[te];for(let fe=0;fe<X;fe++){const ue=K[fe];if(G[ue])G[ue].add(ie[ue]);else{const Fe=new Set;Fe.add(ie[ue]),G[ue]=Fe}}}const re={};for(const te in G)if(Object.prototype.hasOwnProperty.call(G,te)){const ie=G[te],fe=Array.from(ie);re[te]=fe.map(ue=>({label:ue,value:ue}))}g.value=re}};a.watch(()=>[e.isReverse,f.value,c.value],()=>{const j=a.unref(f),U=a.unref(c);if(S(U),e.isReverse){const{columns:K,dataSource:X}=b(He.cloneDeep(j),He.cloneDeep(U));d.value=K,p.value=X}else d.value=j,p.value=U},{immediate:!0});const b=(j,U)=>{const K=j[0],X=[{title:K.title,dataIndex:"col0",key:"col0",align:"center"}];for(let re=0;re<U.length;re++){const te=U[re],ie="col"+(re+1);X.push({title:te[K.dataIndex],dataIndex:ie,key:ie,align:"center"})}const G=[];for(let re=1;re<j.length;re++){const te=j[re],ie={col0:te.title};for(let fe=0;fe<U.length;fe++){const ue=U[fe];ie[`col${fe+1}`]=ue[te.dataIndex]}G.push(ie)}return{columns:X,dataSource:G}},E=a.ref(""),y=Pe(e),w=a.ref(!1),_=async(j=!0,U={})=>{var K;try{j&&(w.value=!0),a.unref(E)&&(U.orderCondition=a.unref(E)),e.paginationShow&&(U={pageNum:a.unref(x),pageSize:a.unref(u)||"10",layer:"1",...U});const X=await y(U),{rows:G=[],total:re=0}=((K=X==null?void 0:X.data)==null?void 0:K.data)||{};h.value=re,Array.isArray(G)&&(c.value=G)}catch(X){console.error(X)}finally{w.value=!1}},D=({current:j},U,K)=>{if(x.value=j,K&&Object.keys(K).length>0){const{field:X,order:G}=K,te={ascend:"asc",descend:"desc"}[G];X!=null&&te!=null&&(E.value=X+" "+te,x.value=1)}I(!1)},k=a.computed(()=>{const j=e.simple,U=[e.paginationPosition];return e.paginationShow&&{simple:j,position:U,total:a.unref(h),current:a.unref(x),pageSize:a.unref(u)||"10",showSizeChanger:!1}}),T=j=>+j==1?"是":+j==0?"否":j,R=(j,U)=>U==null||U===""?j:{money:ao,percentage:Yt,contrast:Yt,boolean:T}[U](j)||"",A=(j,U)=>{const K=parseFloat(j+"");if(U!=="contrast")return"";switch(!0){case K>=0:return"goUp";case K<0:return"goDown"}},H=pe(e),{getGlobalModel:q,setGlobalModel:$}=a.inject(Se,{getGlobalModel:j=>{},setGlobalModel:(j,U)=>{}}),z=(j=[],U=[])=>{const K=j.map(X=>({title:X,dataIndex:X,key:X}));f.value=C(K),c.value=U},L=Bt(e),O=async()=>{var j,U,K,X;try{w.value=!0;const G=await L();z((U=(j=G==null?void 0:G.data)==null?void 0:j.data)==null?void 0:U.columns,(X=(K=G==null?void 0:G.data)==null?void 0:K.data)==null?void 0:X.rows)}catch(G){console.error(G)}finally{w.value=!1}},V=a.ref(-1),B=(j,U)=>({onClick:H("rowClick",()=>{const K=e.id,X=q(K);$(K,{...X,RECORD:j}),V.value=U})}),I=(j=!0)=>{switch(e.dataType){case"request":_(j);break;case"indicator":O();break}},M=()=>{const j=e.id,U=q(j);$(j,{...U,RECORD:""})},N=a.computed(()=>{const j=a.unref(d),U=[];let K=0;for(let G=0;G<j.length;G++){const re=j[G],{isCalcTotal:te}=re;e.isUseSeq&&G===0?U.push({...re,total:"小计"}):te?(U.push({...re,index:G,total:0}),K++):U.push({...re})}if(K===0)return[];const X=a.unref(p);for(let G=0;G<U.length;G++){const re=U[G];let te=0;const{isCalcTotal:ie,dataIndex:fe}=re;if(ie===!0){for(let ue=0;ue<X.length;ue++){const ve=+X[ue][fe];isNaN(ve)||(te=new ja.Big(te).add(ve).toNumber())}re.total=te}}return U}),{setRequest:Y}=a.inject(Te,{setRequest:j=>{}});typeof Y=="function"&&Y({id:e.id,requestFn:I,sortNum:e.requestSort}),n({refreshData:I});const Z=(j="",U)=>ye(j,U),Q=j=>{if(j!=="event")return{self:"_self",blank:"_blank"}[j]},W=(j,U="")=>{j==="event"&&window.parent.postMessage({type:"openPage",url:U},"*")},ke=(j,U)=>{j(U.filterCheckboxGroupValue)},Xe=(j,U)=>{j({confirm:!0}),U.filterOptionsInputValue="",U.filterCheckboxGroupValue=[]},Rt=()=>{},at=j=>{const U=j.dataIndex;if(typeof U=="string"){let K=a.unref(g)[U];const X=a.unref(j.filterOptionsInputValue).trim();return Array.isArray(K)?(K=K.filter(G=>typeof G.label=="string"?G.label.toLowerCase().includes(X.toLowerCase()):!0),K):[]}return[]},Be=async()=>{var ue,Fe;const j="EXPORT_KEY";ae.message.loading({key:j,content:"正在导出...",duration:0});let U=[];if(e.dataType==="static")U=e.data;else if(e.dataType==="request"){const ve={layer:"1"};a.unref(E)&&(ve.orderCondition=a.unref(E));const Ee=await y(ve);U=((Fe=(ue=Ee==null?void 0:Ee.data)==null?void 0:ue.data)==null?void 0:Fe.rows)||{}}const K=a.unref(d),X=[],G=[];K==null||K.forEach(ve=>{X.push(ve.dataIndex),G.push(ve.title)});const re=U.map(ve=>He.pick(ve,X)),te=St.utils.book_new(),ie=St.utils.aoa_to_sheet([G]),fe=St.utils.sheet_add_json(ie,re,{skipHeader:!0,origin:"A2"});St.utils.book_append_sheet(te,fe,"sheet"),St.writeFile(te,"表格数据.xlsx"),ae.message.success({key:j,content:"导出成功"})},_e=(j,U=2)=>{const K=+j*100;return isNaN(K)||K<=0?0:K>=100?100:K.toFixed(U)};return be(e,{resetRecord:M,refreshData:I,exportTableData:Be}),{x:l,y:s,style:r,customRow:B,pagination:k,formatFn:R,contrastClass:A,tableChange:D,summaryList:N,loading:w,onTouchHrefEvent:W,handleHref:Z,handleHrefTarget:Q,useRowIndex:V,tableColumns:d,tableDataSource:p,useFilterOptions:at,useSetSelectedKeys:ke,onResetFilter:Xe,onSearchFilterOptions:Rt,exportTableData:Be,handleProgressText:_e,pageSizeVisible:o,pageSize:u,tableRef:t}}}),Y1="",X1="",af=["id"],sf={key:0,class:"table-tool"},lf=a.createTextVNode("导出数据"),cf=a.createTextVNode(" 搜索 "),ff=a.createTextVNode(" 重置 "),df={key:0},uf={key:1,class:"action-list"},hf=["href","target","onClick"],xf={key:2,class:"progress-cell"},mf={class:"ant-pagination-options-quick-jumper"},gf=a.createTextVNode(" 条 / 页 ");function pf(e,n,t,o,r,i){const l=a.resolveComponent("a-button"),s=a.resolveComponent("a-input"),f=a.resolveComponent("a-checkbox-group"),c=a.resolveComponent("a-table-summary-cell"),d=a.resolveComponent("a-table-summary-row"),p=a.resolveComponent("a-table-summary"),h=a.resolveComponent("a-table"),x=a.resolveComponent("skeleton");return a.openBlock(),a.createElementBlock("div",{class:"ecan-table",id:"ecanTable-"+e.id,style:a.normalizeStyle(e.style)},[a.createVNode(x,{loading:e.loading},{default:a.withCtx(()=>{var u;return[e.isUseExport?(a.openBlock(),a.createElementBlock("div",sf,[a.createVNode(l,{class:"export-button",onClick:e.exportTableData},{default:a.withCtx(()=>[lf]),_:1},8,["onClick"])])):a.createCommentVNode("",!0),a.createVNode(h,{ref:"tableRef",class:"table",style:{height:"100%"},columns:e.tableColumns,"data-source":e.tableDataSource,bordered:e.bordered,size:e.size,customRow:e.customRow,scroll:{x:e.x,y:e.y},pagination:e.pagination,onChange:e.tableChange},{customFilterDropdown:a.withCtx(({column:m,selectedKeys:v,setSelectedKeys:C,confirm:g,clearFilters:S})=>[a.createElementVNode("div",{class:"ecan-table-filter",style:a.normalizeStyle({height:e.filterDropdownHeight})},[a.createVNode(s,{value:m.filterOptionsInputValue,"onUpdate:value":b=>m.filterOptionsInputValue=b,placeholder:"请输入关键字",class:"filter-input",onChange:e.onSearchFilterOptions},null,8,["value","onUpdate:value","onChange"]),a.createVNode(f,{value:m.filterCheckboxGroupValue,"onUpdate:value":b=>m.filterCheckboxGroupValue=b,class:"filter-checkbox",options:e.useFilterOptions(m),onChange:b=>e.useSetSelectedKeys(C,m)},null,8,["value","onUpdate:value","options","onChange"]),a.createElementVNode("div",null,[a.createVNode(l,{type:"primary",size:"small",style:{width:"90px","margin-right":"8px"},onClick:()=>g()},{default:a.withCtx(()=>[cf]),_:2},1032,["onClick"]),a.createVNode(l,{size:"small",style:{width:"90px"},onClick:a.withModifiers(b=>e.onResetFilter(S,m),["stop"])},{default:a.withCtx(()=>[ff]),_:2},1032,["onClick"])])],4)]),bodyCell:a.withCtx(({column:m,index:v,text:C,record:g})=>[m.dataIndex==="SEQ"?(a.openBlock(),a.createElementBlock("span",df,a.toDisplayString(v+1),1)):m.dataIndex==="ACTION"?(a.openBlock(),a.createElementBlock("div",uf,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.actionList,(S,b)=>(a.openBlock(),a.createElementBlock("div",{class:"action",key:b},[a.createElementVNode("a",{href:e.handleHref(S.href,g),target:e.handleHrefTarget(S.target),style:a.normalizeStyle({color:S.color,fontSize:e.fontSize,fontWeight:e.fontWeight}),onClick:E=>e.onTouchHrefEvent(S.target,e.handleHref(S.href,g))},a.toDisplayString(S.title),13,hf)]))),128))])):m.format==="progress"?(a.openBlock(),a.createElementBlock("div",xf,[a.createElementVNode("div",{class:"progress",style:a.normalizeStyle({background:m.progressColor||"#1890ff",height:m.progressWidth||"18px",width:`${e.handleProgressText(C,m.progressTextDecimalPlaces)}%`})},null,4),a.createElementVNode("div",{class:"progress-text",style:a.normalizeStyle({color:e.handleProgressText(C)<100?m.progressTextColor||"#333":m.progressFinishedTextColor||"#fff"})},a.toDisplayString(e.handleProgressText(C,m.progressTextDecimalPlaces))+"% ",5)])):(a.openBlock(),a.createElementBlock("div",{key:3,class:a.normalizeClass([e.contrastClass(C,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString(m.format!=null?e.formatFn(C,m.format):C),7))]),summary:a.withCtx(()=>[e.summaryList.length>0?(a.openBlock(),a.createBlock(p,{key:0},{default:a.withCtx(()=>[a.createVNode(d,null,{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.summaryList,(m,v)=>(a.openBlock(),a.createBlock(c,{key:v,index:v,style:a.normalizeStyle({backgroundColor:e.cellBackgroundColor,textAlign:m.cellAlign||"center",color:m.cellColor,borderBottomColor:e.borderColor})},{default:a.withCtx(()=>[a.createElementVNode("div",{class:a.normalizeClass([e.contrastClass(m.total,m.format)]),style:a.normalizeStyle({fontSize:e.fontSize,fontWeight:e.fontWeight})},a.toDisplayString((m.format!=null||m.format!=="")&&e.formatFn(m.total,m.format)),7)]),_:2},1032,["index","style"]))),128))]),_:1})]),_:1})):a.createCommentVNode("",!0)]),_:1},8,["columns","data-source","bordered","size","customRow","scroll","pagination","onChange"]),(u=e.tableDataSource)!=null&&u.length&&!e.simple&&e.pageSizeShow&&e.pageSizeVisible?(a.openBlock(),a.createBlock(a.Teleport,{key:1,to:"#ecanTable-"+e.id+" .ant-pagination"},[a.createElementVNode("div",mf,[a.withDirectives(a.createElementVNode("input",{type:"text","onUpdate:modelValue":n[0]||(n[0]=m=>e.pageSize=m)},null,512),[[a.vModelText,e.pageSize]]),gf])],8,["to"])):a.createCommentVNode("",!0)]}),_:1},8,["loading"])],12,af)}const Ea=le(se(rf,[["render",pf],["__scopeId","data-v-9ef3260d"]])),tr={...he,mapJson:null,data:[],name:"地图",keyName:"地图",type:"ecanMap",width:"400px",height:"400px",backgroundImage:"",backgroundImageRepeat:"no-repeat",geoBackgroundImage:"",geoBackgroundImageRepeat:"no-repeat",symbolImage:"",symbolWidth:10,symbolHeight:10,itemStyleColor:"#11BFDA",labelFontSize:14,labelShow:!0,geoLabelShow:!0,geoLabelColor:"#000",geoZoom:1,geoRoam:!1,geoCenter:"",geoLabelFontSize:12,labelColor:"",labelFormatter:"{b}",geoItemStyleAreaColor:"#eee",geoItemStyleBorderColor:"#000",geoItemStyleBorderWidth:1,geoItemStyleShadowColor:"",geoItemStyleShadowOffsetX:0,geoItemStyleShadowOffsetY:0,geoItemStyleShadowBlur:0,geoEmphasisDisabled:!1,geoEmphasisLabelColor:"#fff",geoEmphasisItemStyleAreaColor:"#f00",geoEmphasisItemStyleBorderColor:"#000",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{b}"},nr=ce(tr);qe.use([it.CanvasRenderer,Ue.MapChart,Ue.ScatterChart,xe.VisualMapComponent,xe.TooltipComponent,xe.GraphicComponent]);const yf=a.defineComponent({name:"EcanMap",components:{Echarts:Qe},props:{...nr},setup(e){const n=de(e,["backgroundImage"]),t=a.ref(),o=a.computed(()=>nt(e.geoBackgroundImage)),r=a.computed(()=>nt(e.backgroundImage)),i=a.computed(()=>e.geoBackgroundImage?{image:a.unref(t),repeat:e.geoBackgroundImageRepeat}:e.geoItemStyleAreaColor),l=a.computed(()=>{const d=e.symbolImage;return e.symbolImage?"image://"+nt(d):"circle"}),s=a.computed(()=>{const d=e.geoCenter;let p;return typeof d=="string"&&d!==""&&(p=d.split(",")),{tooltip:{show:!0},graphic:[{type:"image",style:{width:parseFloat(e.width),height:parseFloat(e.height),image:a.unref(r)},top:"center"}],geo:{zoom:e.geoZoom,roam:e.geoRoam,center:p,map:"map",tooltip:{show:!1},label:{show:e.geoLabelShow,color:e.geoLabelColor,fontSize:e.geoLabelFontSize},itemStyle:{areaColor:a.unref(i),borderColor:e.geoItemStyleBorderColor,borderWidth:e.geoItemStyleBorderWidth,shadowColor:e.geoItemStyleShadowColor,shadowBlur:e.geoItemStyleShadowBlur,shadowOffsetX:e.geoItemStyleShadowOffsetX,shadowOffsetY:e.geoItemStyleShadowOffsetY},emphasis:{disabled:e.geoEmphasisDisabled,label:{color:e.geoEmphasisLabelColor},itemStyle:{areaColor:e.geoEmphasisItemStyleAreaColor,borderColor:e.geoEmphasisItemStyleBorderColor}}},series:[{type:"scatter",coordinateSystem:"geo",itemStyle:{color:e.itemStyleColor},symbol:a.unref(l),symbolSize:[e.symbolWidth,e.symbolHeight],label:{show:e.labelShow,fontSize:e.labelFontSize,formatter:e.labelFormatter,color:e.labelColor},tooltip:{show:e.tooltipShow,formatter:e.tooltipFormatter,textStyle:{color:e.tooltipTextStyleColor}},data:e.data}]}}),f=a.ref(!1),c=async()=>{var p;const d=e.mapJson;if(d!=null&&d.path){const h=await Ye(((p=window==null?void 0:window.config)==null?void 0:p.uploadPath)+d.path);qe.registerMap("map",(h==null?void 0:h.data)||{})}f.value=!0};return a.watch(()=>e.mapJson,()=>{c()},{immediate:!0,deep:!0}),{option:s,style:n,isLoadedData:f,geoBackgroundImageRef:t,myGeoBackgroundImage:o}}}),Q1="",vf=["src"];function bf(e,n,t,o,r,i){const l=a.resolveComponent("echarts");return a.openBlock(),a.createElementBlock("div",{class:"ecan-map",style:a.normalizeStyle(e.style)},[e.isLoadedData?(a.openBlock(),a.createBlock(l,{key:0,option:e.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])):a.createCommentVNode("",!0),a.withDirectives(a.createElementVNode("img",{ref:"geoBackgroundImageRef",src:e.myGeoBackgroundImage},null,8,vf),[[a.vShow,!1]])],4)}const Aa=le(se(yf,[["render",bf],["__scopeId","data-v-1fb5cdee"]])),Ta=Object.freeze(Object.defineProperty({__proto__:null,EcanBar:ha,EcanBorder:ba,EcanButton:ea,EcanCheckbox:na,EcanComboGraph:ya,EcanCustomGraph:ga,EcanDatePicker:Y0,EcanIframe:ka,EcanImage:wa,EcanInput:Z0,EcanLine:da,EcanList:j0,EcanMap:Aa,EcanModal:rt,EcanPageConfig:P0,EcanPie:ca,EcanProportion:W0,EcanProviderConfig:z0,EcanRangePicker:J0,EcanScatter:ma,EcanScrollText:V0,EcanSelect:ra,EcanTable:Ea,EcanTabs:Ca,EcanText:F0,EcanTimeDisplay:H0,EcanTreeSelect:ia,barComponentProps:Mo,barEvents:ua,barProps:zo,borderComponentProps:Wo,borderEvents:va,borderProps:Uo,buttonComponentProps:ko,buttonEvents:Q0,buttonProps:wo,checkboxComponentProps:Eo,checkboxEvents:ta,checkboxProps:_o,comboGraphComponentProps:jo,comboGraphEvents:pa,comboGraphProps:$o,customGraphComponentProps:Ho,customGraphProps:qo,datePickerComponentProps:bo,datePickerEvents:K0,datePickerProps:vo,iframeComponentProps:Jo,iframeProps:Xo,imageComponentProps:Yo,imageProps:Ko,inputComponentProps:yo,inputEvents:G0,inputProps:po,lineComponentProps:Po,lineEvents:fa,lineProps:No,listComponentProps:xo,listEvents:$0,listProps:ho,mapComponentProps:nr,mapProps:tr,modalComponentProps:Oo,modalEvents:la,modalProps:Lo,pageConfig:xn,pageConfigComponentProps:mn,pieComponentProps:Io,pieEvents:sa,pieProps:Ro,proportionComponentProps:go,proportionEvents:U0,proportionProps:mo,providerConfig:io,providerConfigComponentProps:so,rangePickerComponentProps:Co,rangePickerEvents:X0,rangePickerProps:So,scatterComponentProps:Vo,scatterEvents:xa,scatterProps:Fo,selectComponentProps:To,selectEvents:oa,selectProps:Ao,tableComponentProps:er,tableEvents:_a,tableProps:Qo,tabsComponentProps:Zo,tabsEvents:Sa,tabsProps:Go,textComponentProps:co,textEvents:M0,textProps:lo,timeDisplayComponentProps:uo,timeDisplayEvents:q0,timeDisplayProps:fo,treeSelectComponentProps:Do,treeSelectEvents:aa,treeSelectProps:Bo},Symbol.toStringTag,{value:"Module"})),Sf={install:e=>{Object.keys(Ta).forEach(n=>{const t=Ta[n];t.install&&e.use(t)})}};P.EcanBar=ha,P.EcanBorder=ba,P.EcanButton=ea,P.EcanCheckbox=na,P.EcanComboGraph=ya,P.EcanCustomGraph=ga,P.EcanDatePicker=Y0,P.EcanIframe=ka,P.EcanImage=wa,P.EcanInput=Z0,P.EcanLine=da,P.EcanList=j0,P.EcanMap=Aa,P.EcanModal=rt,P.EcanPageConfig=P0,P.EcanPie=ca,P.EcanProportion=W0,P.EcanProviderConfig=z0,P.EcanRangePicker=J0,P.EcanScatter=ma,P.EcanScrollText=V0,P.EcanSelect=ra,P.EcanTable=Ea,P.EcanTabs=Ca,P.EcanText=F0,P.EcanTimeDisplay=H0,P.EcanTreeSelect=ia,P.barComponentProps=Mo,P.barEvents=ua,P.barProps=zo,P.borderComponentProps=Wo,P.borderEvents=va,P.borderProps=Uo,P.buttonComponentProps=ko,P.buttonEvents=Q0,P.buttonProps=wo,P.checkboxComponentProps=Eo,P.checkboxEvents=ta,P.checkboxProps=_o,P.comboGraphComponentProps=jo,P.comboGraphEvents=pa,P.comboGraphProps=$o,P.customGraphComponentProps=Ho,P.customGraphProps=qo,P.datePickerComponentProps=bo,P.datePickerEvents=K0,P.datePickerProps=vo,P.default=Sf,P.iframeComponentProps=Jo,P.iframeProps=Xo,P.imageComponentProps=Yo,P.imageProps=Ko,P.inputComponentProps=yo,P.inputEvents=G0,P.inputProps=po,P.lineComponentProps=Po,P.lineEvents=fa,P.lineProps=No,P.listComponentProps=xo,P.listEvents=$0,P.listProps=ho,P.mapComponentProps=nr,P.mapProps=tr,P.modalComponentProps=Oo,P.modalEvents=la,P.modalProps=Lo,P.pageConfig=xn,P.pageConfigComponentProps=mn,P.pieComponentProps=Io,P.pieEvents=sa,P.pieProps=Ro,P.proportionComponentProps=go,P.proportionEvents=U0,P.proportionProps=mo,P.providerConfig=io,P.providerConfigComponentProps=so,P.rangePickerComponentProps=Co,P.rangePickerEvents=X0,P.rangePickerProps=So,P.scatterComponentProps=Vo,P.scatterEvents=xa,P.scatterProps=Fo,P.selectComponentProps=To,P.selectEvents=oa,P.selectProps=Ao,P.tableComponentProps=er,P.tableEvents=_a,P.tableProps=Qo,P.tabsComponentProps=Zo,P.tabsEvents=Sa,P.tabsProps=Go,P.textComponentProps=co,P.textEvents=M0,P.textProps=lo,P.timeDisplayComponentProps=uo,P.timeDisplayEvents=q0,P.timeDisplayProps=fo,P.treeSelectComponentProps=Do,P.treeSelectEvents=aa,P.treeSelectProps=Bo,Object.defineProperties(P,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
98
98
  //# sourceMappingURL=index.umd.js.map