@ecan-bi/datav 1.5.87 → 1.5.88

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.5.87 */
1
+ /*! @ecan-bi/datav@1.5.88 */
2
2
  (function(wi,Di){typeof exports=="object"&&typeof module<"u"?Di(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("echarts/renderers"),require("echarts/charts"),require("echarts/components"),require("ant-design-vue/es/modal/style"),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"),require("ant-design-vue/es/table/style"),require("ant-design-vue/es/notification/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","echarts/renderers","echarts/charts","echarts/components","ant-design-vue/es/modal/style","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","ant-design-vue/es/table/style","ant-design-vue/es/notification/style","xlsx","big.js"],Di):(wi=typeof globalThis<"u"?globalThis:wi||self,Di(wi["@ecan/bi-datav"]={},wi.Vue,wi["echarts/core"],wi.ResizeDetector,wi.AntDesignVue,null,null,wi.LodashEs,wi.Dayjs,wi.Axios,wi.Mitt,wi["echarts/renderers"],wi["echarts/charts"],wi["echarts/components"],null,null,null,null,wi["ant-design-vue/es/date-picker/locale/zh_CN"],null,null,null,null,wi.Echarts,null,null,wi.Xlsx,wi.big.js))})(this,function(exports,vue,core$1,resizeDetector,antDesignVue,style$1,style$2,lodashEs,dayjs,axios,mitt,renderers,charts,components$1,style$3,style$4,style$5,style$6,locale,style$7,style$8,style$9,style$a,echarts,style$b,style$c,xlsx,big_js){var wi,Di,Bi,Fi;"use strict";function _interopNamespaceDefault(c){const u=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(c){for(const d in c)if(d!=="default"){const f=Object.getOwnPropertyDescriptor(c,d);Object.defineProperty(u,d,f.get?f:{enumerable:!0,get:()=>c[d]})}}return u.default=c,Object.freeze(u)}const echarts__namespace=_interopNamespaceDefault(echarts),METHOD_NAMES=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function usePublicAPI(c,u){function d(h){return(...v)=>{if(c.value||u(),!c.value)throw new Error("ECharts is not initialized yet.");return c.value[h].apply(c.value,v)}}function f(){const h=Object.create(null);return METHOD_NAMES.forEach(v=>{h[v]=d(v)}),h}return f()}function useAutoresize(c,u,d){let f=null;vue.watch([d,c,u],([h,v,p],m,g)=>{h&&v&&p&&(f=core$1.throttle(()=>{v.resize()},100),resizeDetector.addListener(h,f)),g(()=>{f&&h&&resizeDetector.removeListener(h,f)})})}const autoresizeProps={autoresize:Boolean},LOADING_OPTIONS_KEY="ecLoadingOptions";function useLoading(c,u,d){const f=vue.inject(LOADING_OPTIONS_KEY,{}),h=vue.computed(()=>({...vue.unref(f),...d==null?void 0:d.value}));vue.watchEffect(()=>{const v=c.value;v&&(u.value?v.showLoading(h.value):v.hideLoading())})}const loadingProps$1={loading:Boolean,loadingOptions:Object},style="",onRE=/^on[^a-z]/,isOn=c=>onRE.test(c);function omitOn(c){const u={};for(const d in c)isOn(d)||(u[d]=c[d]);return u}const TAG_NAME="x-vue-echarts",THEME_KEY="ecTheme",INIT_OPTIONS_KEY="ecInitOptions",UPDATE_OPTIONS_KEY="ecUpdateOptions",Echarts=vue.defineComponent({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...autoresizeProps,...loadingProps$1},inheritAttrs:!1,setup(c,{attrs:u,listeners:d}){const f=vue.shallowRef(),h=vue.shallowRef(),v=vue.shallowRef(),p=vue.inject(THEME_KEY,null),m=vue.inject(INIT_OPTIONS_KEY,null),g=vue.inject(UPDATE_OPTIONS_KEY,null),{autoresize:y,manualUpdate:b,loading:re,loadingOptions:x}=vue.toRefs(c),vn=vue.computed(()=>v.value||c.option||Object.create(null)),j=vue.computed(()=>c.theme||vue.unref(p)||{}),Pn=vue.computed(()=>c.initOptions||vue.unref(m)||{}),qn=vue.computed(()=>c.updateOptions||vue.unref(g)||{}),Bn=vue.computed(()=>omitOn(u));function w(Wn){if(h.value||!f.value)return;const Yn=h.value=core$1.init(f.value,j.value,Pn.value);c.group&&(Yn.group=c.group);let Jn=d;Jn||(Jn={},Object.keys(u).filter(Qn=>Qn.indexOf("on")===0&&Qn.length>2).forEach(Qn=>{const ar=Qn.charAt(2).toLowerCase()+Qn.slice(3);Jn[ar]=u[Qn]})),Object.keys(Jn).forEach(Qn=>{const ar=Jn[Qn];ar&&(Qn.indexOf("zr:")===0?Yn.getZr().on(Qn.slice(3).toLowerCase(),ar):Yn.on(Qn.toLowerCase(),ar))});function tr(){if(Yn&&!Yn.isDisposed())try{Yn.resize()}catch(Qn){if(Qn.message==="Cannot read property 'get' of undefined")return;throw Qn}}function nr(){Yn.setOption(Wn||vn.value,qn.value)}y.value?vue.nextTick(()=>{tr(),nr()}):nr()}function J(Wn,Yn){c.manualUpdate&&(v.value=Wn),h.value?h.value.setOption(Wn,Yn||{}):w(Wn)}function gn(){h.value&&(h.value.dispose(),h.value=void 0)}let Rn=null;vue.watch(b,Wn=>{typeof Rn=="function"&&(Rn(),Rn=null),Wn||(Rn=vue.watch(()=>c.option,Yn=>{Yn&&(h.value?h.value.setOption(Yn,qn.value):w())},{deep:!0}))},{immediate:!0}),vue.watch([j,Pn],()=>{gn(),w()},{deep:!0}),vue.watchEffect(()=>{c.group&&h.value&&(h.value.group=c.group)});const zn=usePublicAPI(h,w);return useLoading(h,re,x),useAutoresize(h,y,f),vue.onMounted(()=>{c.option&&w()}),vue.onUnmounted(gn),{chart:h,root:f,setOption:J,nonEventAttrs:Bn,...zn}},render(){const c={...this.nonEventAttrs};return c.ref="root",c.class=c.class?["echarts"].concat(c.class):"echarts",vue.h(TAG_NAME,c)}});function bound01(c,u){isOnePointZero(c)&&(c="100%");var d=isPercentage(c);return c=u===360?c:Math.min(u,Math.max(0,parseFloat(c))),d&&(c=parseInt(String(c*u),10)/100),Math.abs(c-u)<1e-6?1:(u===360?c=(c<0?c%u+u:c%u)/parseFloat(String(u)):c=c%u/parseFloat(String(u)),c)}function isOnePointZero(c){return typeof c=="string"&&c.indexOf(".")!==-1&&parseFloat(c)===1}function isPercentage(c){return typeof c=="string"&&c.indexOf("%")!==-1}function boundAlpha(c){return c=parseFloat(c),(isNaN(c)||c<0||c>1)&&(c=1),c}function convertToPercentage(c){return c<=1?"".concat(Number(c)*100,"%"):c}function pad2(c){return c.length===1?"0"+c:String(c)}function rgbToRgb(c,u,d){return{r:bound01(c,255)*255,g:bound01(u,255)*255,b:bound01(d,255)*255}}function hue2rgb(c,u,d){return d<0&&(d+=1),d>1&&(d-=1),d<1/6?c+(u-c)*(6*d):d<1/2?u:d<2/3?c+(u-c)*(2/3-d)*6:c}function hslToRgb(c,u,d){var f,h,v;if(c=bound01(c,360),u=bound01(u,100),d=bound01(d,100),u===0)h=d,v=d,f=d;else{var p=d<.5?d*(1+u):d+u-d*u,m=2*d-p;f=hue2rgb(m,p,c+1/3),h=hue2rgb(m,p,c),v=hue2rgb(m,p,c-1/3)}return{r:f*255,g:h*255,b:v*255}}function rgbToHsv(c,u,d){c=bound01(c,255),u=bound01(u,255),d=bound01(d,255);var f=Math.max(c,u,d),h=Math.min(c,u,d),v=0,p=f,m=f-h,g=f===0?0:m/f;if(f===h)v=0;else{switch(f){case c:v=(u-d)/m+(u<d?6:0);break;case u:v=(d-c)/m+2;break;case d:v=(c-u)/m+4;break}v/=6}return{h:v,s:g,v:p}}function hsvToRgb(c,u,d){c=bound01(c,360)*6,u=bound01(u,100),d=bound01(d,100);var f=Math.floor(c),h=c-f,v=d*(1-u),p=d*(1-h*u),m=d*(1-(1-h)*u),g=f%6,y=[d,p,v,v,m,d][g],b=[m,d,d,p,v,v][g],re=[v,v,m,d,d,p][g];return{r:y*255,g:b*255,b:re*255}}function rgbToHex(c,u,d,f){var h=[pad2(Math.round(c).toString(16)),pad2(Math.round(u).toString(16)),pad2(Math.round(d).toString(16))];return f&&h[0].startsWith(h[0].charAt(1))&&h[1].startsWith(h[1].charAt(1))&&h[2].startsWith(h[2].charAt(1))?h[0].charAt(0)+h[1].charAt(0)+h[2].charAt(0):h.join("")}function convertHexToDecimal(c){return parseIntFromHex(c)/255}function parseIntFromHex(c){return parseInt(c,16)}var names={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 inputToRGB(c){var u={r:0,g:0,b:0},d=1,f=null,h=null,v=null,p=!1,m=!1;return typeof c=="string"&&(c=stringInputToObject(c)),typeof c=="object"&&(isValidCSSUnit(c.r)&&isValidCSSUnit(c.g)&&isValidCSSUnit(c.b)?(u=rgbToRgb(c.r,c.g,c.b),p=!0,m=String(c.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.v)?(f=convertToPercentage(c.s),h=convertToPercentage(c.v),u=hsvToRgb(c.h,f,h),p=!0,m="hsv"):isValidCSSUnit(c.h)&&isValidCSSUnit(c.s)&&isValidCSSUnit(c.l)&&(f=convertToPercentage(c.s),v=convertToPercentage(c.l),u=hslToRgb(c.h,f,v),p=!0,m="hsl"),Object.prototype.hasOwnProperty.call(c,"a")&&(d=c.a)),d=boundAlpha(d),{ok:p,format:c.format||m,r:Math.min(255,Math.max(u.r,0)),g:Math.min(255,Math.max(u.g,0)),b:Math.min(255,Math.max(u.b,0)),a:d}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),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 stringInputToObject(c){if(c=c.trim().toLowerCase(),c.length===0)return!1;var u=!1;if(names[c])c=names[c],u=!0;else if(c==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var d=matchers.rgb.exec(c);return d?{r:d[1],g:d[2],b:d[3]}:(d=matchers.rgba.exec(c),d?{r:d[1],g:d[2],b:d[3],a:d[4]}:(d=matchers.hsl.exec(c),d?{h:d[1],s:d[2],l:d[3]}:(d=matchers.hsla.exec(c),d?{h:d[1],s:d[2],l:d[3],a:d[4]}:(d=matchers.hsv.exec(c),d?{h:d[1],s:d[2],v:d[3]}:(d=matchers.hsva.exec(c),d?{h:d[1],s:d[2],v:d[3],a:d[4]}:(d=matchers.hex8.exec(c),d?{r:parseIntFromHex(d[1]),g:parseIntFromHex(d[2]),b:parseIntFromHex(d[3]),a:convertHexToDecimal(d[4]),format:u?"name":"hex8"}:(d=matchers.hex6.exec(c),d?{r:parseIntFromHex(d[1]),g:parseIntFromHex(d[2]),b:parseIntFromHex(d[3]),format:u?"name":"hex"}:(d=matchers.hex4.exec(c),d?{r:parseIntFromHex(d[1]+d[1]),g:parseIntFromHex(d[2]+d[2]),b:parseIntFromHex(d[3]+d[3]),a:convertHexToDecimal(d[4]+d[4]),format:u?"name":"hex8"}:(d=matchers.hex3.exec(c),d?{r:parseIntFromHex(d[1]+d[1]),g:parseIntFromHex(d[2]+d[2]),b:parseIntFromHex(d[3]+d[3]),format:u?"name":"hex"}:!1)))))))))}function isValidCSSUnit(c){return!!matchers.CSS_UNIT.exec(String(c))}var hueStep=2,saturationStep=.16,saturationStep2=.05,brightnessStep1=.05,brightnessStep2=.15,lightColorCount=5,darkColorCount=4,darkColorMap=[{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 toHsv(c){var u=c.r,d=c.g,f=c.b,h=rgbToHsv(u,d,f);return{h:h.h*360,s:h.s,v:h.v}}function toHex(c){var u=c.r,d=c.g,f=c.b;return"#".concat(rgbToHex(u,d,f,!1))}function mix(c,u,d){var f=d/100,h={r:(u.r-c.r)*f+c.r,g:(u.g-c.g)*f+c.g,b:(u.b-c.b)*f+c.b};return h}function getHue(c,u,d){var f;return Math.round(c.h)>=60&&Math.round(c.h)<=240?f=d?Math.round(c.h)-hueStep*u:Math.round(c.h)+hueStep*u:f=d?Math.round(c.h)+hueStep*u:Math.round(c.h)-hueStep*u,f<0?f+=360:f>=360&&(f-=360),f}function getSaturation(c,u,d){if(c.h===0&&c.s===0)return c.s;var f;return d?f=c.s-saturationStep*u:u===darkColorCount?f=c.s+saturationStep:f=c.s+saturationStep2*u,f>1&&(f=1),d&&u===lightColorCount&&f>.1&&(f=.1),f<.06&&(f=.06),Number(f.toFixed(2))}function getValue(c,u,d){var f;return d?f=c.v+brightnessStep1*u:f=c.v-brightnessStep2*u,f>1&&(f=1),Number(f.toFixed(2))}function generate$1(c){for(var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=[],f=inputToRGB(c),h=lightColorCount;h>0;h-=1){var v=toHsv(f),p=toHex(inputToRGB({h:getHue(v,h,!0),s:getSaturation(v,h,!0),v:getValue(v,h,!0)}));d.push(p)}d.push(toHex(f));for(var m=1;m<=darkColorCount;m+=1){var g=toHsv(f),y=toHex(inputToRGB({h:getHue(g,m),s:getSaturation(g,m),v:getValue(g,m)}));d.push(y)}return u.theme==="dark"?darkColorMap.map(function(b){var re=b.index,x=b.opacity,vn=toHex(mix(inputToRGB(u.backgroundColor||"#141414"),inputToRGB(d[re]),x*100));return vn}):d}var presetPrimaryColors={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"},presetPalettes={},presetDarkPalettes={};Object.keys(presetPrimaryColors).forEach(function(c){presetPalettes[c]=generate$1(presetPrimaryColors[c]),presetPalettes[c].primary=presetPalettes[c][5],presetDarkPalettes[c]=generate$1(presetPrimaryColors[c],{theme:"dark",backgroundColor:"#141414"}),presetDarkPalettes[c].primary=presetDarkPalettes[c][5]});var containers=[],styleElements=[],usage="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function createStyleElement(){var c=document.createElement("style");return c.setAttribute("type","text/css"),c}function insertCss(c,u){if(u=u||{},c===void 0)throw new Error(usage);var d=u.prepend===!0?"prepend":"append",f=u.container!==void 0?u.container:document.querySelector("head"),h=containers.indexOf(f);h===-1&&(h=containers.push(f)-1,styleElements[h]={});var v;return styleElements[h]!==void 0&&styleElements[h][d]!==void 0?v=styleElements[h][d]:(v=styleElements[h][d]=createStyleElement(),d==="prepend"?f.insertBefore(v,f.childNodes[0]):f.appendChild(v)),c.charCodeAt(0)===65279&&(c=c.substr(1,c.length)),v.styleSheet?v.styleSheet.cssText+=c:v.textContent+=c,v}function _objectSpread$e(c){for(var u=1;u<arguments.length;u++){var d=arguments[u]!=null?Object(arguments[u]):{},f=Object.keys(d);typeof Object.getOwnPropertySymbols=="function"&&(f=f.concat(Object.getOwnPropertySymbols(d).filter(function(h){return Object.getOwnPropertyDescriptor(d,h).enumerable}))),f.forEach(function(h){_defineProperty$f(c,h,d[h])})}return c}function _defineProperty$f(c,u,d){return u in c?Object.defineProperty(c,u,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[u]=d,c}function warn(c,u){process.env.NODE_ENV!=="production"&&!c&&console!==void 0&&console.error("Warning: ".concat(u))}function warning(c,u){warn(c,"[@ant-design/icons-vue] ".concat(u))}function isIconDefinition(c){return typeof c=="object"&&typeof c.name=="string"&&typeof c.theme=="string"&&(typeof c.icon=="object"||typeof c.icon=="function")}function generate(c,u,d){return d?vue.h(c.tag,_objectSpread$e({key:u},d,c.attrs),(c.children||[]).map(function(f,h){return generate(f,"".concat(u,"-").concat(c.tag,"-").concat(h))})):vue.h(c.tag,_objectSpread$e({key:u},c.attrs),(c.children||[]).map(function(f,h){return generate(f,"".concat(u,"-").concat(c.tag,"-").concat(h))}))}function getSecondaryColor(c){return generate$1(c)[0]}function normalizeTwoToneColors(c){return c?Array.isArray(c)?c:[c]:[]}var iconStyles=`
3
3
  .anticon {
4
4
  display: inline-block;
@@ -99,8 +99,8 @@ version: 2.9.0
99
99
  `,d+="-----END PUBLIC KEY-----",d},u.hasPublicKeyProperty=function(d){return d=d||{},d.hasOwnProperty("n")&&d.hasOwnProperty("e")},u.hasPrivateKeyProperty=function(d){return d=d||{},d.hasOwnProperty("n")&&d.hasOwnProperty("e")&&d.hasOwnProperty("d")&&d.hasOwnProperty("p")&&d.hasOwnProperty("q")&&d.hasOwnProperty("dmp1")&&d.hasOwnProperty("dmq1")&&d.hasOwnProperty("coeff")},u.prototype.parsePropertiesFrom=function(d){this.n=d.n,this.e=d.e,d.hasOwnProperty("d")&&(this.d=d.d,this.p=d.p,this.q=d.q,this.dmp1=d.dmp1,this.dmq1=d.dmq1,this.coeff=d.coeff)},u}(RSAKey),_a,version$1=typeof process<"u"?(_a=process.env)===null||_a===void 0?void 0:_a.npm_package_version:void 0,JSEncrypt=function(){function c(u){u===void 0&&(u={}),u=u||{},this.default_key_size=u.default_key_size?parseInt(u.default_key_size,10):1024,this.default_public_exponent=u.default_public_exponent||"010001",this.log=u.log||!1,this.key=null}return c.prototype.setKey=function(u){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new JSEncryptRSAKey(u)},c.prototype.setPrivateKey=function(u){this.setKey(u)},c.prototype.setPublicKey=function(u){this.setKey(u)},c.prototype.decrypt=function(u){try{return this.getKey().decrypt(b64tohex(u))}catch{return!1}},c.prototype.encrypt=function(u){try{return hex2b64(this.getKey().encrypt(u))}catch{return!1}},c.prototype.sign=function(u,d,f){try{return hex2b64(this.getKey().sign(u,d,f))}catch{return!1}},c.prototype.verify=function(u,d,f){try{return this.getKey().verify(u,b64tohex(d),f)}catch{return!1}},c.prototype.getKey=function(u){if(!this.key){if(this.key=new JSEncryptRSAKey,u&&{}.toString.call(u)==="[object Function]"){this.key.generateAsync(this.default_key_size,this.default_public_exponent,u);return}this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},c.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},c.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},c.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},c.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},c.version=version$1,c}();const encryptor=new JSEncrypt,aesKey=createAesKey();function createAesKey(){let u=Math.random().toString(36).substr(2);for(;u.length<16;)u+=Math.random().toString(36).substr(2);return u=u.substr(0,16),u}const iv=CryptoJS.enc.Utf8.parse("ABCDEF1234123412");function aesEncrypt(c,u){u=u||aesKey;const d=CryptoJS.enc.Utf8.parse(u);let f="";switch(typeof c){case"string":f=CryptoJS.enc.Utf8.parse(c);break;case"object":f=CryptoJS.enc.Utf8.parse(JSON.stringify(c));break;default:f=CryptoJS.enc.Utf8.parse(c.toString())}return CryptoJS.AES.encrypt(f,d,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding}).toString()}function aesDecrypt(c,u){u=u||aesKey;const d=CryptoJS.enc.Utf8.parse(u),f=CryptoJS.AES.decrypt(c,d,{iv,mode:CryptoJS.mode.CBC,padding:CryptoJS.pad.ZeroPadding});return CryptoJS.enc.Utf8.stringify(f).toString()}function setPublicKey(c){encryptor.setPublicKey(c)}function rsaEncrypt(c){return encryptor.encrypt(c)}function hasEncryptUrl(c=""){c.startsWith("/")||(c="/"+c),c=c.split("?")[0];const d=["/diagram","/dataview"].map(f=>`^(.*?)${f}(/|$)`);for(const f of d)if(new RegExp(f).test(c))return!0;return!1}function EncryptConfigParam(c){const{paramType:u,data:d,params:f,method:h}=c;u==="form"?["get","delete"].includes(h)?c.params=getEncryptParam(f,"string"):c.data=getEncryptParam(d,"string"):["get","delete"].includes(h)?c.params=getEncryptParam(f,"string"):c.data=getEncryptParam(d)}function getEncryptParam(c,u){let d=c||{};if(u==="string"){d="";for(const m in c)if(Object.hasOwnProperty.call(c,m)){const g=c[m];d+=`${m}=${encodeURIComponent(g)}&`}}setPublicKey("MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAMKaTbS1XHH7u/4dhao1n5Lcegpy6AHKX2TjmTP7IDW6N4wznqlL3Tt+U0/Il1TlNp1/EN+tffYYg4dPrrCUDwcCAwEAAQ==");const h=rsaEncrypt(aesKey);return{c:aesEncrypt(d,aesKey),p:h}}window.getEncryptParam=getEncryptParam;function encryptData(c,u){var d;(d=window==null?void 0:window.config)!=null&&d.encryptFlag&&hasEncryptUrl(c.url)&&(c.data instanceof FormData?c.data=getEncryptFileParam(c.data):EncryptConfigParam(c))}function getEncryptFileParam(c){const u=c.entries(),d=new FormData,f={};for(const v of u){const p=v[0],m=v[1];m instanceof Blob?d.append(p,m):f[p]=m}const h=getEncryptParam(f,"json");return typeof h=="object"&&(d.append("c",h.c),d.append("p",h.p)),d}window.xhaesKey=aesKey,window.xhaesDecrypt=aesDecrypt;function decryptData(c,u){var d;if((d=window==null?void 0:window.config)!=null&&d.encryptFlag&&hasEncryptUrl(c.config.url)&&!(c.data instanceof Blob)&&c.data.data!==void 0){const f=aesDecrypt(c.data.data.content,aesKey);c.data=JSON.parse(f)}}const requestErrorTip=window.config.requestErrorTip,request=axios.create({timeout:1e3*180});request.interceptors.request.use(c=>{const{requestParams:u={}}=window.config;return u!=null&&u.pltToken&&(c.headers["Plt-Token"]=u.pltToken),encryptData(c),c},c=>Promise.reject(c)),request.interceptors.response.use(c=>{var u,d,f;return requestErrorTip&&+((u=c==null?void 0:c.data)==null?void 0:u.code)==500&&antDesignVue.message.error({content:((d=c==null?void 0:c.data)==null?void 0:d.msg)||((f=c==null?void 0:c.data)==null?void 0:f.message)||"服务器异常",key:"SERVER_ERROR",duration:2}),decryptData(c),c},c=>{if(decryptData(c==null?void 0:c.response),requestErrorTip)if(c.message.includes("timeout"))antDesignVue.message.error({content:"网络连接超时,请重试!",key:"TIMEOUT",duration:2});else{const{status:u}=(c==null?void 0:c.response)||{};u>=400&&u<500&&antDesignVue.message.error({content:"请求异常",key:"REQUEST_ERROR",duration:2}),u>=500&&antDesignVue.message.error({content:"服务器异常",key:"REQUEST_ERROR",duration:2})}return Promise.reject(c)});const handleFormatter=c=>c.replace(/\\n/g,`
100
100
  `),formatMoney=(c,u=2)=>{const d=parseFloat(c+"");return isNaN(d)?c:d.toFixed(u).replace(/(\d)(?=(\d{3})+\.)/g,"$1,")},formatThousands=c=>{const u=parseFloat(c+"");return isNaN(u)?c:(u+"").replace(/\B(?=(\d{3})+(?!\d))/g,",")},formatPercentage=(c,u=2)=>{const d=c+"";if(d.includes("%"))return c;const f=parseFloat(d);return isNaN(f)?c:`${(f*100).toFixed(u)}%`},formatDecimals=(c,u=2)=>{const d=c+"",f=parseFloat(d);return isNaN(f)?c:f.toFixed(u)},formatCustom=(c,u)=>Fn(u,c),getFixedValueDatas=c=>{const{leftAxisList:u=[],rightAxisList:d=[],queryColumnList:f=[],indicators:h=[]}=c;return[...u,...d,...f,...h].filter(v=>(v==null?void 0:v.calcType)==="COMPONENT").map(v=>({keyName:v.builtInCalcWay,id:v.builtInValueSource}))},canRequestIndicator=(c,u)=>{let d=!0;const f=getFixedValueDatas(c);return f!=null&&f.length&&(d=f.map(h=>u[h.id]).every(h=>h)),d},getLegendFormat=(c,u)=>{var p;const d=c.match(/\{(.+?)\}/g),f=((p=c.split(`
101
101
  `))==null?void 0:p.length)-1;let h="";if(f)for(let m=0;m<f;m++)h+=`
102
- `;let v=c;if(d!=null&&d.length){for(const m of d){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:d,componentList:f,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=d,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:f,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:re=[]}=v,vn=re.find(j=>j.show).label||"";for(const j of g)!y.find(Pn=>+Pn==+j)&&!isNaN(+j)&&y.push(+j);y.sort((j,Pn)=>dayjs(j).isBefore(dayjs(Pn))?-1:1);for(const j of b){const{data:Pn}=j;if(Pn!=null&&Pn.length){const qn=[];for(const Bn of g)if(!Pn.find(w=>+w[vn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(Pn[0]);for(const J in w)J===vn?w[J]=+Bn:w[J]=0;qn.push(w)}j.data.push(...qn),j.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:d,componentList:f,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(d),g=[];if(p&&m){const y=f.find(re=>re.keyName===p.keyName),b=f.find(re=>re.keyName===m.keyName);if(y&&b){const re=v(y.id),x=v(b.id),{classificationList:vn=[]}=h,j=vn.find(Pn=>Pn.show);if(j){let Pn="YYYY-MM";switch(j.name){case"the_year":Pn="YYYY";break;case"the_month":Pn="MM";break;case"the_day":Pn="DD";break;case"the_date":Pn=(j==null?void 0:j.dateFormat)||Pn;break}const qn=getFormatStep(Pn);if(Pn){const Bn=vue.unref(re[p.field]),w=vue.unref(x[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(Pn));J.isBefore(gn);)g.push(J.format(Pn)),J=J.add(1,qn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const d=c.match(/\{(.+?)\}/g);if(d!=null&&d.length){let f=d[0].slice(1,-1).trim();const h=f.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(f=f.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:f,field:v}}}return u}function getFormatStep(c){const u=c.split("-");let d="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":d="year";break;case"MM":d="month";break;case"DD":d="day";break}return d}function handleJumpLink(c,u){var re;const{pageMode:d,targetTemplate:f,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(d,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:f};if((re=c.transParams)!=null&&re.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const j of c.transParams){const Pn=h(String(j.fieldName));vn.push(`${j.keyName}=${Pn}`),x[j.keyName]=Pn}y+=vn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var d,f;let u={};if(c){const h=(((d=window.config)==null?void 0:d.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((f=window.config)==null?void 0:f.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,d){let f="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${d}]}`&&p){f=p;break}}return f}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const d=document.querySelector(u);if(!d)return;d.style.cursor="move",d.style.userSelect="none";const f=d.parentElement,h=200,v=f.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,re=c.clientX,x=c.clientY,vn=parseFloat(f.style.left)||0,j=parseFloat(f.style.top)||0,Pn=-(m+p-h-vn),qn=y-m+vn-h,Bn=-(g-j),w=b-g+j-h,J=Rn=>{Rn.preventDefault();const zn=Rn.clientX-re,Wn=Rn.clientY-x;let Yn=vn+zn,Jn=j+Wn;Yn=Math.max(Pn,Math.min(Yn,qn)),Jn=Math.max(Bn,Math.min(Jn,w)),f.style.left=`${Yn}px`,f.style.top=`${Jn}px`},gn=()=>{d.style.cursor="",d.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:d}=window==null?void 0:window.location;if(d){const f=d.split("/");f!=null&&f.length&&(c=f[f.length-1])}}return c};function loopConditions(c,u,d){const f=[];for(const h of c)h[u]?f.push(...loopConditions(h[u],u,d)):h.filter?f.push({...h.filter,label:h.label}):(!d||h.dataType!=="component"&&!(h.fieldValue.startsWith("${")&&h.fieldValue.endsWith("}")))&&f.push(h);return f}function isThousandWithUnit(c){if(typeof c!="string")return!1;const u=c.trim();return/^(\d{1,3}(,\d{3})*)(\.\d+)?([^\d].*)?$/.test(u)}function isValidDateStr(c){if(!c)return!1;const u=new Date(c);return u instanceof Date&&!isNaN(u.getTime())}function swapArrItem(c,u,d){return u<0||d<0||u>=c.length||d>=c.length||([c[u],c[d]]=[c[d],c[u]]),c}const useRequestData=(c,u,d=()=>{})=>{var ar;const{requestUrl:f,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:re,requestParamsMode:x,customRequestParams:vn,dataSetParam:j,requestType:Pn,dataType:qn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:cr=>{}})||{},Wn=vue.inject(COMMON_OPERATE,{operateAction:(cr,fr)=>{}}),Yn=re||zn;let Jn=hn(f),tr=vue.unref(gn)||b||"";(qn==="request"&&Bn||Pn===1)&&(tr="",Jn=((ar=window.config)==null?void 0:ar.dataSetUrl)||"/api/datav/dataset/data2");const nr=async(cr={},fr={})=>{var or;if(vue.unref(w)==="design")return;if(qn!=="request"&&Qn){clearInterval(Qn);return}if(!Jn||!h||!v)return;let Gn={};for(const sr of p){const{key:dr,value:Xn}=sr;if((Xn==null?void 0:Xn.id)==="PARENT"&&(Xn!=null&&Xn.prop)){const hr=(((or=window.config)==null?void 0:or.record)||{})[Xn.prop];if(hr){const vr=hr[Xn.propKey||"value"];vr&&(["date","range"].some(br=>yn(hr==null?void 0:hr.type,br))?Gn[dr]=vue.unref(vr).format(hr.format||"YYYY-MM-DD"):Gn[dr]=vue.unref(vr))}continue}if(typeof Xn=="object"&&Xn!=null&&Xn.id){let lr={};const{id:hr,prop:vr,propKey:yr,operate:br}=Xn;let pr=!1;try{JSON.parse(hr),pr=!0}catch{pr=!1}hr==="THIS"?lr=Yn(vue.unref(Rn))||{}:lr=Yn(hr)||{};const mr=vue.unref(lr[vr]);let Er=null;if(["date","range"].some(Cr=>yn(lr==null?void 0:lr.type,Cr))){const{value:Cr,type:xr,mode:Ar}=br||{};if(Cr&&xr&&Ar)switch(xr){case"add":Er=vue.unref(mr).add(Cr,Ar);break;case"minus":Er=vue.unref(mr).subtract(Cr,Ar);break}Er==null&&(Er=vue.unref(mr)),Er=Er&&(Er==null?void 0:Er.format((yr==null?void 0:yr.trim())||lr.format))||""}else if(Object.prototype.toString.call(mr)==="[object Object]")yr?Er=mr[yr]:Er=vr?mr[vr]:mr;else if(yn(lr==null?void 0:lr.type,"select")&&vue.unref(mr)&&vr&&Array.isArray(vue.unref(mr)))Er=vue.unref(mr).map(Cr=>Object.prototype.hasOwnProperty.call(Cr,vr)?Cr[vr]:Cr);else if(pr){const Cr=JSON.parse(hr);console.log(Cr,"urlvalue"),Er=Cr.value}else Er=mr;Gn[dr]=Er}else typeof Xn=="object"&&!Xn.id&&Pn===1?(console.log(Xn.propKey,"value.propKey"),Gn[dr]=Xn.propKey):typeof Xn=="string"&&(Gn[dr]=hn(Xn))}if(Pn===1){console.log(Gn,"_params");const sr=Object.entries(Gn);let dr=j;if(!j.param&&Array.isArray(j)){const Xn={};for(const lr of j)Xn[lr.key]=lr.value;dr=Xn}dr.param=dr.param.map((Xn,lr)=>({...Xn,paramKey:sr[lr][0],defaultValue:sr[lr][1]||""})),Gn=dr}if(x==="2"&&vn!=="{}"){const sr=JSON.parse(vn);Zn(sr),sr&&(Gn=sr)}function Zn(sr){const dr={...Gn,...getPageUrlParams(J)};if(Array.isArray(sr))sr.forEach((Xn,lr)=>{if(typeof Xn=="string"){const hr=Xn.match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const vr=hr[0].slice(2,-1);vr&&dr[vr]?sr[lr]=dr[vr]:sr[lr]=""}}else Zn(Xn)});else if(Object.prototype.toString.call(sr)==="[object Object]")for(const Xn in sr)if(typeof sr[Xn]=="string"){const lr=sr[Xn].match(/\${(.+?)\}/g);if(lr!=null&&lr.length){const hr=lr[0].slice(2,-1);hr&&dr[hr]?sr[Xn]=dr[hr]:sr[Xn]=""}}else Zn(sr[Xn])}const Hn=getPageUrlParams(J);for(const sr in Hn)Hn[sr]&&(Hn[sr]=decodeURIComponent(Hn[sr]));if(Gn={...Hn,...cr,...Gn},fr){const{callback:sr,pageParams:dr}=fr;dr&&(Gn={...Gn,...dr}),sr&&sr(Gn)}let Un="";const er=Object.keys(Gn),Kn=er.length-1,ir=er.length;er.forEach((sr,dr)=>{let Xn=Gn[sr];Object.prototype.toString.call(Xn)==="[object Object]"&&(Xn=JSON.stringify(Xn)),dr===0?ir!==1?Un+=`?${sr}=${Xn}&`:Un+=`?${sr}=${Xn}`:dr===Kn?Un+=`${sr}=${Xn}`:Un+=`${sr}=${Xn}&`}),Jn.includes("?")&&(Un=Un.replace("?","&"));function ur(sr){var dr;if(Pn===1)return{Authentication:(dr=window==null?void 0:window.config)==null?void 0:dr.indicatorToken};if(typeof sr=="string"){const Xn=JSON.parse(sr),lr=getPageUrlParams(J);if(Object.prototype.toString.call(Xn)==="[object Object]"){for(const hr in Xn)if(typeof Xn[hr]=="string"){const vr=Xn[hr].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const yr=vr[0].slice(2,-1);yr&&lr[yr]?Xn[hr]=lr[yr]:Xn[hr]=""}}}return Xn}else return sr}try{const sr=["get","head"].includes(h),dr={};let Xn=sr?Jn+Un:Jn;Gn.dataSqlId&&!Xn.includes("dataSqlId")&&(Xn+=`${Xn.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?dr.signal=Gn.signal:window.controller&&(dr.signal=window.controller.signal);const lr=await request({baseURL:tr,url:Xn,method:h,headers:v?ur(v):{},data:sr?{}:Gn,...dr});return d(lr),Wn==null||Wn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(lr==null?void 0:lr.data)||{}}),lr}catch(sr){console.error(sr)}},Qn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(nr,m*1e3);return vue.onUnmounted(()=>{clearInterval(Qn)}),nr},useImagePath=(c,u=!1)=>{var f;if(!c)return c;let d="";return c!=null&&c.includes("://")?d=c:d=((f=window==null?void 0:window.config)==null?void 0:f.uploadPath)+c,u&&(d=`url(${d})`),d},usePageUrl=(c,u)=>{const d=`${BASE_URL}/preview?pageId=${u}`,f=`${BASE_URL}/${u}`;return c==="preview"?d:f},useIndicatorData=(c={},u=()=>{})=>{var re;const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:f}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(x,vn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(x,vn)=>{}}),g=vue.inject("componentList",[]);c.dataType==="indicator"&&f();const y=async(x={})=>{var gn,Rn,zn,Wn,Yn;if(vue.unref(d)==="design")return;const vn=v();h(c.id,!1);const j=En({...c,globalModel:vn,allComponentList:vue.unref(g)},x),{url:Pn,...qn}=j||{},{pathname:Bn,search:w}=window==null?void 0:window.location;let J=p||((gn=window==null?void 0:window.config)==null?void 0:gn.pageId);if(!J&&Bn){const Jn=Bn.split("/");Jn!=null&&Jn.length&&(J=Jn[Jn.length-1])}if(Pn&&qn){let Jn,tr;if(c.type==="ecanIndexPanel"&&(Jn=c.theFlag),["/diagram/formData","/diagram"].includes(Pn)){tr={};const Qn=w.slice(1,w.length).split("&");for(const ar of Qn)if(ar){const cr=ar.split("=");if(cr[0])if(cr[0]==="userInfo")try{tr.token=(zn=(Rn=JSON.parse(decodeURIComponent(cr[1])))==null?void 0:Rn.baseInfo)==null?void 0:zn.hrpToken}catch(fr){console.log(fr)}else tr[cr[0]]=cr[1]}}try{const nr=await request({url:`${INDICATOR_URL}${Pn}`,method:"post",headers:{Authentication:(Wn=window==null?void 0:window.config)==null?void 0:Wn.indicatorToken,operateContext:CONTEXT},data:{...qn,pageId:J,theFlag:Jn,extParam:tr},signal:((Yn=window.controller)==null?void 0:Yn.signal)||""});return x!=null&&x.isTimer&&u(nr),m==null||m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(nr==null?void 0:nr.data)||{}}),c.type==="ecanIndexPanel"&&(m==null||m.operateAction("SAVE_INDEX_PANEL_REQ_PARAMS",qn)),nr}catch(nr){console.error(nr)}}},b=vue.unref(d)!=="design"&&((re=c==null?void 0:c.graphicConfig)==null?void 0:re.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{y({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(b)}),y},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),d=u.length,f={};for(let h=0;h<d;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(f[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...f},window.config={...window.config,...f}},_sfc_main$C=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:d,isCompatible:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const zn={};return(!f.value||!v)&&(zn.width=u.value,zn.height=d.value),{...zn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),re=vue.ref(!1),x=vue.ref();let vn;const j=()=>new Promise(zn=>{vue.nextTick(()=>{u.value&&d.value?(m.value=parseFloat(u.value),g.value=parseFloat(d.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),zn()})}),Pn=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,d],async()=>{c.pageId||(await j(),Pn(),Bn(),window.addEventListener("resize",J),gn()),re.value=!0},{immediate:!0});const qn=vue.ref({});vue.provide("scaleValue",qn);const Bn=()=>{if(f.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Wn=document.body.clientHeight,Yn=m.value||y.value,Jn=g.value||b.value,tr=zn/Yn;let nr=Wn/Jn;(m.value!==1920||g.value!==1080)&&(nr=g.value/m.value*zn/Jn),qn.value={widthScale:tr,heightScale:nr},x.value&&(x.value.style.transform=`scale(${tr}, ${nr})`),h(qn.value)},w=vue.computed(()=>{var Wn;let zn={};return c.customId==="modalContainer"&&((Wn=vue.unref(qn))!=null&&Wn.heightScale)&&(zn.height=100/vue.unref(qn).heightScale+"vh"),zn}),J=lodashEs.debounce(async()=>{await j(),Bn()},100),gn=()=>{const zn=window.MutationObserver;vn=new zn(J),vn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Rn=()=>{vn&&(vn.disconnect(),vn.takeRecords(),vn=null)};return vue.onMounted(()=>{re.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",J),Rn()}),{style:p,container:x,ready:re,scaleValue:qn,containerStyle:w}}}),PageConfig_vue_vue_type_style_index_0_scoped_eced44d2_lang="",_hoisted_1$q=["id"],_hoisted_2$g=["id"];function _sfc_render$H(c,u,d,f,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,style:vue.normalizeStyle(c.containerStyle),ref:"container"},[c.customId!=="modalContainer"&&(c.ready||c.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$g)):vue.createCommentVNode("",!0)],12,_hoisted_1$q)}const PageConfig=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H],["__scopeId","data-v-eced44d2"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$B=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const d=vue.ref(!1),f=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!0),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),re=async({data:zn,indicatorUrl:Wn,indicatorToken:Yn,context:Jn,pageId:tr})=>{var cr,fr;p.value=!0,h.value=!0,d.value=!0;let nr=[];const{graphicConfig:Qn,theFlag:ar}=vue.unref(zn)||{};if(Qn){const{leftAxisList:Gn=[],rightAxisList:Zn=[],indicators:Hn=[]}=Qn,Un=Gn.concat(Zn).concat(Hn);Un!=null&&Un.length&&(nr=Un.map(er=>({calcType:er.calcType||"COLUMN",columnName:er.name,hrpIndexCode:er.indexCode,hrpIndexCodeNum:er.indexCodeNum,label:er.label,show:er.show,formula:er.formula})))}if(nr!=null&&nr.length)try{const Gn=await request({url:`${vue.unref(Wn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Yn,operateContext:Jn},data:{source:"INDICATOR_LIB",pageId:tr,indicatorList:nr,theFlag:ar}}),Zn=((cr=Gn==null?void 0:Gn.data)==null?void 0:cr.data)||[];(fr=Zn[0])!=null&&fr.remark?(v.value=Zn[0].remark,f.value=[]):(v.value=null,f.value=Zn)}catch{}finally{h.value=!1}vue.nextTick(()=>{j(!0),Pn(!0)})},x=()=>document.querySelector("#modalContainer")||document.body,vn=vue.computed(()=>{let zn="ind-detail-modal";return(p.value||vue.unref(g))&&(zn+=" full",vue.unref(g)&&(zn+=" mobile")),vue.unref(y)==="darkBlue"&&(zn+=" darkBlue"),zn}),j=zn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");Wn&&(zn?Wn.addEventListener("dblclick",Bn):Wn.removeEventListener("dblclick",Bn))},Pn=zn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");if(Wn)if(zn)Wn.addEventListener("mousedown",qn);else{const Yn=Wn.parentElement;Yn&&(Yn.style.left="",Yn.style.top=""),Wn.removeEventListener("mousedown",qn)}};function qn(zn){dragModalAction(zn,".ind-detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?Pn(!1):Pn(!0)})},w=()=>{j(!1),Pn(!1)},J=()=>{m.value+=.5},gn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,zn=>{localStorage.setItem("indDetailZoom",String(zn))}),vue.watch(d,zn=>{zn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Wn,Yn;const zn=localStorage.getItem("indDetailZoom");if(zn&&(m.value=+zn),vue.unref(g)){const Jn=document.querySelector("#modalContainer");p.value=!0,(Wn=Jn==null?void 0:Jn.style)==null||Wn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Yn=Jn==null?void 0:Jn.style)==null||Yn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:re}),{visible:d,dataList:f,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:vn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:J,handleZoomOut:gn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_3af47b3e_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$9=c=>(vue.pushScopeId("data-v-3af47b3e"),c=c(),vue.popScopeId(),c),_hoisted_1$p=_withScopeId$9(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$f={class:"zoom-btn"},_hoisted_3$8={key:0,class:"spin-container"},_hoisted_4$6=["innerHTML"],_hoisted_5$5={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$G(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),re=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),vn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=j=>c.visible=j),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$p]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$f,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(re,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$6)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(j,Pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:Pn},[vue.createElementVNode("div",_hoisted_5$5,vue.toDisplayString(j.indexName||"--"),1),c.hasOwn(j,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(j.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(j.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(j.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(j.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-3af47b3e"]]),lineProps={...props$1,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,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,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1,backgroundColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:d,headers:f}=u,h=f["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([d]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={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",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:d=[],pageConfig:f={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const re=m[b],x=[];if(re!=null&&re.length)for(const vn of re){let j=h.find(Pn=>Pn.id===vn);j||(j=d.find(Pn=>Pn.id===vn)),j&&(x.push(j),containerType.includes(j.type)&&x.push(...getComponentByContainer(j.id,u,d)))}for(const vn of x)mn(vn,"scale")?parseFloat(b)>0&&(vn.left=parseFloat(vn.left)+y+"px"):(vn.left=parseFloat(vn.sourceLeft||vn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",vn.top=parseFloat(vn.sourceTop||vn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(vn.id)||g.push(vn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,f)}}for(const y of g){const b=h.findIndex(re=>re.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var g,y,b,re,x;const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],d=document.body.clientWidth,{combinationMap:f={},sourceList:h=[],pageConfig:v={}}=c,p=c.containerMap,m=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(p,h)]);if(handleContainerMap(p,m),(g=Object.keys(p))!=null&&g.length||(y=Object.keys(f))!=null&&y.length){for(const Bn in p){const w=m.find(J=>J.id===Bn);if(w){if(w!=null&&w.isFlowGrid){w.sourceLeft=w.left,w.sourceTop=w.top;continue}mn(w,"parentId")||(w.parentId="",w.sourceLeft=w.left,w.sourceTop=w.top);let J;if(w.type==="ecanBorder"&&((b=p[Bn][0])==null?void 0:b.length)===1&&(J=m.find(gn=>gn.id===p[Bn][0][0]),u.includes(J==null?void 0:J.type)||(J=null)),J){if(w.width=d,w.height=getFormatWh(J.height,v==null?void 0:v.height),J.parentId=Bn,J.width=d-20+"px",J.sourceLeft=J.left,J.sourceTop=J.top,J.left="10px",J.top="0px",J.type==="ecanTable"){const{columns:gn=[]}=J;J.scrollX="max-content";for(const Rn of gn)(re=Rn==null?void 0:Rn.width)!=null&&re.includes("%")&&(Rn.width=parseFloat(Rn.width)/100*d+"px")}}else for(const gn in p[Bn])if(p[Bn][gn])for(const Rn of p[Bn][gn]){const zn=m.find(Wn=>Wn.id===Rn);if(zn&&(zn.parentId=Bn,zn.sourceLeft=zn.left,zn.sourceTop=zn.top,zn.left=parseFloat(zn.left)-parseFloat(w.sourceLeft||w.left)+"px",zn.top=parseFloat(zn.top)-parseFloat(w.sourceTop||w.top)+"px",zn.type==="ecanIndexPanel")){const{componentIds:Wn}=zn;for(const Yn of Wn){const Jn=m.find(tr=>tr.id===Yn);Jn&&(Jn.left=parseFloat(Jn.left)-parseFloat(zn.sourceLeft)+"px",Jn.top=parseFloat(Jn.top)-parseFloat(zn.sourceTop)+"px")}}}}}const vn=Array.from(new Set(m.filter(Bn=>(!mn(Bn,"parentId")||Bn.parentId==="")&&Bn.combinationId).map(Bn=>Bn.combinationId))),j=getCombinationList(vn,{...c,componentList:m,pageConfig:v});j!=null&&j.length&&m.unshift(...j);const Pn=m.filter(Bn=>u.includes(Bn.type)&&!mn(Bn,"parentId")),qn=[];for(const Bn of Pn)if(Bn){const w=Bn.id+"_vir";if(qn.push({id:w,keyName:Bn.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:d,height:getFormatWh(Bn.height,v==null?void 0:v.height),left:Bn.left,top:Bn.top,sourceLeft:Bn.left,sourceTop:Bn.top}),Bn.parentId=w,Bn.sourceLeft=Bn.left,Bn.sourceTop=Bn.top,Bn.left=10,Bn.top=0,Bn.width=d-20+"px",Bn.type==="ecanTable"){const{columns:J=[]}=Bn;Bn.scrollX="max-content";for(const gn of J)(x=gn==null?void 0:gn.width)!=null&&x.includes("%")&&(gn.width=parseFloat(gn.width)/100*d+"px")}}qn!=null&&qn.length&&m.unshift(...qn);for(const Bn of m){if(Bn.parentId===""&&containerType.includes(Bn.type))Bn.sourceWidth=getFormatWh(Bn.width,v==null?void 0:v.width),Bn.height=(d/(Bn.sourceWidth/getFormatWh(Bn.height,v==null?void 0:v.height))).toFixed(2)+"px",Bn.width="100%",Bn.position="relative",Bn.top="auto",Bn.left="auto";else{const w=m.find(J=>J.id===Bn.parentId);if((w==null?void 0:w.parentId)===""){const J=w.sourceWidth||getFormatWh(w.width,v==null?void 0:v.width),gn=d/J;Bn.scale=gn,Bn.top=parseFloat(Bn.top)*gn-getFormatWh(Bn.height,v==null?void 0:v.height)*(1-gn)/2+"px",Bn.left=parseFloat(Bn.left)*gn-getFormatWh(Bn.width,v==null?void 0:v.width)*(1-gn)/2+"px"}}Bn.type==="ecanModal"&&(Bn.parentId="",Bn.fullModal=!0)}return sortList(m)}return m}function handleContainerMap(c,u){const d=lodashEs.cloneDeep(c),f=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(f!=null&&f.length)for(const h of f){const v=d[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,d,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const d=[],f=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(f!=null&&f.length)for(const h of f){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}function getComponentByContainer(c,u,d){const f=[],h=u[c];for(const v in h)for(const p of h[v]){const m=d.find(g=>g.id===p);m&&(f.push(m),containerType.includes(m.type)&&f.push(...getComponentByContainer(m.id,u,d)))}return f}function getCombinationList(c,u,d){const{combinationMap:f={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=f[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:d||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const re of y)re&&(re.parentId=m,re.sourceLeft=re.left,re.sourceTop=re.top,re.left=parseFloat(re.left)-parseFloat(b.left)+"px",re.top=parseFloat(re.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const d=c.filter(f=>f.parentId===""||(f==null?void 0:f.isFlowGrid)).sort((f,h)=>{const v=f.sourceTop?typeof f.sourceTop=="object"?parseFloat(f.sourceTop.value):parseFloat(f.sourceTop):0,p=h.sourceTop?typeof h.sourceTop=="object"?parseFloat(h.sourceTop.value):parseFloat(h.sourceTop):0;return isNaN(v)||isNaN(p)?0:v-p});if(d!=null&&d.length){const f=lodashEs.cloneDeep(d).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<f.length-1;h++)for(let v=0;v<f.length-h-1;v++){let p=!1;if((f[v].sourceTop-f[v+1].sourceTop>40||Math.abs(f[v+1].sourceTop-f[v].sourceTop)<=40&&f[v].sourceLeft>f[v+1].sourceLeft)&&(p=!0),p){const m=f[v];f[v]=f[v+1],f[v+1]=m}}for(const h of f){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...f,...c]}return c}function getCombinateRect(c,u){const d=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],f=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return d&&f&&h&&v?{left:f.left,top:d.top,width:v.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(d.top)+"px"}:null}function getMaxLeftInComponents(c,u){const d=c.map(f=>parseFloat(f.left)+getFormatWh(f.width,u==null?void 0:u.width)).sort((f,h)=>h-f)[0];return d||0}function moveToComponentList(c,u,d){const f=c[d],h=[];if(f)for(const v in f){const p=f[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$A=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$F(c,u,d,f,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F]]),EcanRender=withInstall$1(Render),_sfc_main$z=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const d=vue.ref([]),f=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:re}=vue.inject(GLOBAL_MODEL,{setRequestData:(_r,Cr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,vn=vue.computed(()=>{const _r=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[_r]}}),j=c.fullModal?"1920px":c.width,Pn=c.fullModal?"1080px":c.height,qn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),J=vue.ref(0),gn=vue.ref(),Rn=vue.ref(0),zn=vue.ref({}),Wn=usePickComponentStyle(c),Yn=vue.ref({}),Jn=vue.ref(!1),tr=vue.ref();let nr;const Qn=()=>{gn.value=parseFloat(j)/parseFloat(qn);const _r=parseFloat(Pn)/parseFloat(Bn),Cr=document.body.offsetWidth,xr=document.body.offsetHeight;if(J.value=Cr*vue.unref(gn),Rn.value=xr*_r,w.value=`${vue.unref(gn)*100}%`,zn.value={width:`${vue.unref(J)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Yn.value={...vue.unref(Wn),backgroundImage:useImagePath(c.backgroundImage,!0)},f)Yn.value={...Yn.value,width:"100%",height:"100%"};else{const Ar={...Yn.value,width:j,height:Pn};c.banScale&&vue.unref(p)?(Ar.width="100%",Ar.height="100%"):Ar.transform=`scale(${vue.unref(J)/parseFloat(j)},${vue.unref(Rn)/parseFloat(Pn)})`,Yn.value=Ar}},ar=lodashEs.debounce(()=>{Qn()},100),cr=()=>{const _r=window.MutationObserver;nr=new _r(ar),nr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},fr=()=>{nr&&(nr.disconnect(),nr.takeRecords(),nr=null)},Gn=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Un=()=>{var xr;const{title:_r}=c,Cr=(xr=vue.unref(b))==null?void 0:xr.RECORD;return Cr?hn(_r,{textData:Cr},{useNewline:!1,useSpace:!1}):_r},er=useEmitEvent(c),Kn=_r=>{const{changeIframeStyle:Cr}=window.parent;Cr&&typeof Cr=="function"&&Cr({iframeId:c.parentIframeId||"",action:_r})},ir=()=>{vue.unref(p)&&Kn("open"),f&&(document.documentElement.style.overflow="hidden"),Hn.value=Un(),Gn.value=!0},ur=er("hideModal",()=>{vue.unref(p)&&Kn("close"),u("close"),f&&(document.documentElement.style.overflow="hidden auto",d.value=[]),Gn.value=!1}),or=()=>{ur()},sr=()=>{ur(),y()},{setModalModel:dr,pushUseModalIds:Xn,popUseModalIds:lr}=vue.inject(MODAL_MODEL,{pushUseModalIds:_r=>{},popUseModalIds:()=>{},setModalModel:(_r,Cr)=>{}}),hr=vue.computed(()=>{let _r=c.componentList;const Cr=lodashEs.cloneDeep(c.componentList),xr=m(),Ar=g(),gr={containerMap:xr,combinationMap:Ar};f&&(_r=compatibleMobileList({...gr,componentList:Cr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),_r=handleScrollCombinations({...gr,componentList:_r,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const wr=[];for(const Tr of _r)if(Tr.type==="ecanCirculate"){const Pr=moveToComponentList(xr,vue.unref(Cr),Tr.id);Tr.componentList=Pr,wr.push(...Pr.map(Dr=>Dr.id))}else if(Tr.type==="ecanTable"){const{headerFontSize:Pr,fontSize:Dr,size:Kr,bodyRowHeight:Vr,headRowHeight:Hr}=Tr;if(!Vr||!Hr)if(Tr.size){let Xr=0;switch(Kr){case"default":Xr=16;break;case"middle":Xr=12;break;case"small":Xr=8;break}Vr||(Tr.bodyRowHeight=(Xr*2+parseFloat(Dr)*1.5715).toFixed(0)+"px"),Hr||(Tr.headRowHeight=(Xr*2+parseFloat(Pr)*1.5715).toFixed(0)+"px")}else Vr||(Tr.bodyRowHeight="54px"),Hr||(Tr.headRowHeight="54px")}if(wr!=null&&wr.length)for(const Tr of wr){const Pr=_r.findIndex(Dr=>Dr.id===Tr);Pr!==-1&&_r.splice(Pr,1)}return _r}),vr=()=>{const _r=c.id;let Cr=[];const xr=c.componentList;Array.isArray(xr)&&(Cr=xr.map(Ar=>Ar.id),dr(_r,[...new Set(Cr)]))},yr=vue.ref(!1),br={};for(const _r of c.requestList)br[_r.requestName]=useRequestData(_r);vue.watch(()=>Gn.value,async _r=>{if(_r)Jn.value=!1,Xn(c.id),vr(),await vue.nextTick(()=>{Qn(),window.addEventListener("resize",ar),cr(),Jn.value=!0}),Zn();else{if(re)for(const Cr in br)re(Cr,{});lr(),window.removeEventListener("resize",ar),fr()}});const pr=vue.computed(()=>vue.unref(gn)>=1),mr=vue.computed(()=>{let _r="ecan-modal";return vue.unref(pr)&&(_r+=" ecan-full-width-modal"),vue.unref(p)&&(_r+=" ecan-full-modal"),_r});return useOnEvent(c,{showModal:ir,hideModal:ur}),{modalRef:tr,containStyle:zn,contentStyle:Yn,getContainer:x,modalStyle:vn,modalWith:w,isFullModal:p,style:Wn,visible:Gn,showModal:ir,onOk:or,onCancel:sr,isFullWidth:pr,wrapClassName:mr,ready:Jn,usedComponentList:hr,isMobile:f,readyIds:d,hasOwn:mn,onComponentReady:_r=>{d.value.push(_r)},formatTitle:Hn,requestLoaded:yr}}}),Modal_vue_vue_type_style_index_0_scoped_e8d3acb6_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$E(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.mergeProps({key:1},y,{cpntid:y.id}),null,16,["cpntid"]))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-e8d3acb6"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$y=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const d=vue.ref(!1),{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",er=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),re=vue.ref([]),x=vue.ref(),vn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),j=vue.ref({});let Pn;const qn=vue.ref([]),Bn=vue.computed(()=>{const er=c.xAxisLabelFormatter,Kn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.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 ir;g.value=!0,(ir=x.value)==null||ir.showModal()}},myInfo:{show:c.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(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:vn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:ir=>{var dr;const ur=ir.length;let or="",sr=c.tooltipFormatter;Pn=(dr=ir[0])==null?void 0:dr.data,sr===""&&(sr="{marker} {a} {c}");for(let Xn=0;Xn<ur;Xn++){const{marker:lr,seriesName:hr,name:vr,value:yr,data:br}=ir[Xn]||{};if(Xn===0){let pr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(pr=(+vr).toString()),or+=`${Fn(er,pr)}<br/>`}or+=hn(sr,{textData:{marker:lr,name:vr,value:yr,a:hr,b:vr,c:yr||0,...br}},{useNewline:!0,useSpace:!0}),or+="<br/>"}return or},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(re).map(ir=>{let ur={};return ir&&typeof ir=="object"?ur={...ir}:ur={value:ir},ur}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(ir){return typeof ir=="string"&&ir[0]==="0"&&!isNaN(+ir)&&(ir=(+ir).toString()),Fn(er,ir)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(ir){return Fn(Kn,ir)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(qn).map(ir=>({name:ir.name,icon:c.legendType})),formatter:ir=>getLegendFormat(c.legendFormatter,{name:ir})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:er=>{},setGlobalModel:(er,Kn)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(er=[],Kn=!1)=>{var dr;let ir;if(c.dataFieldConfigType==="key"){const Xn=Kn?c.keyTypeDataFieldNames:null;ir=In(er,Xn)}else if(c.dataFieldConfigType==="value"){const Xn=Kn?c.valueTypeDataFieldNames:null;ir=Vn(er,Xn)}re.value=ir.dimensions,qn.value=ir.dataset;const ur=ir.dataset,or=[],sr=ur.length;for(let Xn=0;Xn<sr;Xn++){const lr={};c.shadowColor&&(lr.shadowColor=c.shadowColor,lr.shadowBlur=c.shadowBlur,lr.shadowOffsetY=c.shadowOffsetY,lr.shadowOffsetX=c.shadowOffsetX);let hr=c.colors[Xn];if(!hr&&c.colors.length){const vr=(Xn+1)%c.colors.length-1;hr=vr>0?c.colors[vr]:c.colors[0]}hr||(hr="#5470C6"),or.push({type:"line",...ur[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:hr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:hr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...lr},...vue.unref(Rn)})}b.value=or,(dr=ir.dataset)!=null&&dr.length?d.value=!1:d.value=!0},Wn=(er=[],Kn,ir=!1)=>{var lr,hr,vr;const or=In(er,ir?Kn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:J},or),(lr=or.dataset)!=null&&lr.length){for(const yr of or.dataset)if((hr=yr.data)!=null&&hr.length)for(const br of yr.data)(br.value===null||br.value===void 0)&&(br.value=0)}re.value=or.dimensions,qn.value=or.dataset;const sr=or.dataset,dr=[],Xn=sr.length;for(let yr=0;yr<Xn;yr++){const br={};c.shadowColor&&(br.shadowColor=c.shadowColor,br.shadowBlur=c.shadowBlur,br.shadowOffsetY=c.shadowOffsetY,br.shadowOffsetX=c.shadowOffsetX);let pr=c.colors[yr];if(!pr&&c.colors.length){const mr=(yr+1)%c.colors.length-1;pr=mr>0?c.colors[mr]:c.colors[0]}pr||(pr="#5470C6"),dr.push({type:"line",...sr[yr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:pr||yr%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:pr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...br},...vue.unref(Rn)})}b.value=dr,(vr=or.dataset)!=null&&vr.length?d.value=!1:d.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([er])=>{(c.dataType==="static"||vue.unref(f)==="design")&&zn(er)},{immediate:!0,deep:!0});const Yn=vue.ref(!1),Jn=useRequestData(c),tr=async()=>{var er,Kn;if(c.dataType==="request")try{Yn.value=!0;const ir=await Jn();zn((Kn=(er=ir==null?void 0:ir.data)==null?void 0:er.data)==null?void 0:Kn.rows,!0)}catch(ir){console.error(ir)}finally{Yn.value=!1}},nr=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Qn=nr("click",er=>{const Kn=J(c.id);gn(c.id,{...Kn,type:c.type,RECORD:c.tooltipShow?Pn:er.data})}),ar=er=>{m.value.chart.containPixel("grid",[er.offsetX,er.offsetY])&&Qn()};c.isForbidClick||(c.tooltipShow?j.value["zr:click"]=ar:j.value.click=Qn);const cr=er=>{var dr;const{columns:Kn=[],rows:ir=[]}=((dr=er==null?void 0:er.data)==null?void 0:dr.data)??{};let ur;Kn.length>0&&(ur={name:Kn[0],types:Kn.slice(1).map(Xn=>({label:Xn,value:Xn}))});const{leftAxisList:or=[]}=c.graphicConfig,sr=or.filter(Xn=>Xn.show).map(Xn=>Xn.label);for(const Xn of ir)if(Xn)for(const lr in Xn)typeof Xn[lr]=="string"&&sr.includes(lr)&&!isNaN(parseFloat(Xn[lr]))&&(Xn[lr]=parseFloat(Xn[lr]));Wn(ir,ur,!0)},fr=useIndicatorData(c,er=>{c.isViewRedrawing&&m.value.clear(),cr(er)}),Gn=async()=>{try{Yn.value=!0;const er=await fr();cr(er)}catch(er){console.error(er)}finally{Yn.value=!1}},Zn=async()=>{switch(c.dataType){case"indicator":await Gn();break;case"request":await tr();break}};useOnEvent(c,{refreshData:Zn,resetRecord:()=>{const er=c.id,Kn=J(er);gn(er,{...Kn,RECORD:""})},click:Qn});const{setRequest:Un}=vue.inject(REQUEST_MODEL,{setRequest:er=>{}});return typeof Un=="function"&&Un({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{option:Bn,style:y,click:Qn,loading:Yn,onClose:w,ecanModal:x,eventObj:j,echartRef:m,emptyData:d}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$D(c,u,d,f,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,d)=>{let f=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*f*u/c.length);return(v=u)=>{let p="";for(;;){let m=d(h),g=h;for(;g--;)if(p+=c[m[g]&f]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,d)=>(d&=63,d<36?u+=d.toString(36):d<62?u+=(d-26).toString(36).toUpperCase():d>62?u+="-":u+="_",u),"");const _sfc_main$x=vue.defineComponent({name:"TrendModal",components:{EcanLine,CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const d=vue.ref(!1),f=vue.ref(),h=vue.ref(),v=vue.ref(!0),p=vue.ref({}),m=vue.ref(!0),g=vue.inject("isMobile",!1),y=async({data:Bn,pageConfig:w,unitText:J})=>{if(Bn){v.value=!0,p.value=w;const{graphicConfig:gn}=Bn,Rn=nanoid(6),zn={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(gn==null?void 0:gn.indicators)||[],controlList:(gn==null?void 0:gn.controlList)||[],variableList:(gn==null?void 0:gn.variableList)||[],variableConditions:(gn==null?void 0:gn.variableConditions)||[]};f.value={...lodashEs.cloneDeep(lineProps),id:Rn,keyName:`折线图_${Rn}`,position:"relative",top:0,left:0,width:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.width)*.57+"px",height:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+J,xAxisLabelRotate:45,yAxisLabelFormatter:J?`{value}${J}`:"{value}",isForbidClick:!0,graphicConfig:zn},d.value=!0,vue.nextTick(()=>{x(!0),vn(!0),vue.unref(h).refreshData()})}},b=()=>document.querySelector("#modalContainer")||document.body,re=vue.computed(()=>{let Bn="trend-modal";return vue.unref(g)?Bn+=" mobile":v.value&&(Bn+=" full"),c.theme==="darkBlue"&&(Bn+=" darkBlue"),Bn});vue.watch(d,Bn=>{Bn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.watch(v,Bn=>{m.value=!1,vue.unref(f).width=Bn?"100%":parseFloat(vue.unref(p).width)*.57+"px",vue.unref(f).height=Bn?"100%":parseFloat(vue.unref(p).height)*.4+"px",vue.nextTick(()=>{m.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})})});const x=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");w&&(Bn?w.addEventListener("dblclick",Pn):w.removeEventListener("dblclick",Pn))},vn=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");if(w)if(Bn)w.addEventListener("mousedown",j);else{const J=w.parentElement;J&&(J.style.left="",J.style.top=""),w.removeEventListener("mousedown",j)}};function j(Bn){dragModalAction(Bn,".trend-modal .ant-modal-header")}const Pn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?vn(!1):vn(!0)})},qn=()=>{x(!1),vn(!1)};return vue.onMounted(()=>{var Bn,w;if(vue.unref(g)){const J=document.querySelector("#modalContainer");v.value=!0,(Bn=J==null?void 0:J.style)==null||Bn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(w=J==null?void 0:J.style)==null||w.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:y}),{visible:d,componentConfig:f,lineRef:h,wrapClassName:re,isMobile:g,isIndFullScreen:v,isRender:m,getContainer:b,toggleFullScreen:Pn,onDetailCancel:qn}}}),TrendModal_vue_vue_type_style_index_0_scoped_a24645dd_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$8=c=>(vue.pushScopeId("data-v-a24645dd"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$8(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1)),_hoisted_2$e={class:"zoom-btn"};function _sfc_render$C(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("ecan-line"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(b,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=re=>c.visible=re),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile||c.isIndFullScreen?"":"70vh",height:c.isMobile||c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$e,[!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.componentConfig&&c.isRender?(vue.openBlock(),vue.createBlock(y,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const TrendModal=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-a24645dd"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(c,u){(function(d,f){c.exports=f(dayjs)})(commonjsGlobal,function(d){function f(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=f(d),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const _imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAABE1JREFUaEPdWk1sTUEUdtmxEREWVMtay0LSxoqIhaBsRBC8IIQgCI1/9S+StuI3EWmIIGLTVtiI6IaQWEhqZeHfgpVI2Mnzfc+ZZzrv3ndn5s57rzXJl/vevffMnG/OOTNnZm40IkDJ5/NjUc0SoAGYD9QDk42qP+P/B+AR8B7ojaLoe9bmI98KROm1kN8gir/C9RPwGvgKfDPqnoD/E4HpQB0wU4hcw/WGLxlnAlCcvbwTyAHPgZdy9emLFgjNAni9DnSBCK1jXZwIQPkjqHkj8ERg9rJ1wzHWmYt7xFWQOGpbkRUBKE5z3wR+AN1AKMVNPelm24CRQKuNNVIJQHm6ykngHvDYtmcyvjcP8suAAyBB10osZQmI8hcgfRB4m1EpV/FpEDhBi5QjkUhAlN+HCi7XQHlFliS2AKeTSMQSqHHPm5ZSllgNEj3mwxICErAP8OLZGvZ8HIljuDnDDOw4AgMSrNUKWNvYaMWLzSDQpAsMIoDeb8fDpcAh21qr/N5xtNcDEtSzUIoEZIZ9inuHgUqN81n5cp7o1F1JJ3AeD8YBd7O2UmH55YxNWIEd/dcCkpgxU9wE/HRUYKq8/65KcsoK9UwAFYEdaHwBcNFDiVMisx9XWxIk7SOn1NuKH3c4NygCHHn6AGaXtkUpMUYEaDkbEr5yul7MXpkrNUbiPszjV9pqLu+ZivB2Gok4GVqNxF1d9zZk6kgghx/rAU5crsWFREjlqWcb0EECHH3G06dctXewRGjl2fQK4A0JcOxn6sA48C3lLME6GbAqVvjf1210/RrxZyEJ0P/bgayTVxIJNhpaedbJJG83CeTxg3lGiBJHQq83RM/r9fWFJsDKk0iEVp5tVZVA2hDr4wHBCaS5UGgSBQLcMeN2SSWCmG7D3EUP4lAkGMR7KjmMKp8nAXMYDUGiOIyek14KOZGZAesyY9vGQnEiy0EiZCqRNNqEJlFMJbiz/BFYZUtd3vNJD0KSuAU9pmRJpxmY9G19QWOTVZokfOaHf+k0exMjke+CRpFgNTbKKyMrEhz5XOSUfMmCRrkRt81dh1N9QePihSTBtlzXARzVugruo5aUYoXhsqhfB30HBi3qhUADrsNhW4W936R26P6fjS3lvAjooby12MKFvB5ocXujPI0Zipu73FYsuo4iUUJA4iGHK4Oae6TVPtgwRzImbVR+jdX2uuZKJLEXuFJDElR+M3DG6YDDIFErS6ie3+51xKSR4Hb7JeAhwN27ahSu0bmJG+s2ZYM4TjvZer+PZ78BHvq5zta2pNUx6ygILA5yzKq3LAcgu3CvF+gPSISKLwJ4vNqpH2CkMY8dhcoJiTVIIgc8A/ipwYu0hhKeN+M+PzWYDXBh1W3T684ulOBWTABJgoshfp3Cjz24vuZE+Aswh18G5WiAExG/ZOF8wzOJDoDHRl5frjhboAyZOaKU+txmkvHuF1GYn9uQbL+v0nq9fwCcDKEjLNL6QQAAAABJRU5ErkJggg==",CustomModal_vue_vue_type_style_index_0_scoped_3a641475_lang="",CustomModal_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$w=vue.defineComponent({name:"LastDetail",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{emit:u,expose:d}){const f=window.screen.height*.6,h=`cutmodal_${nanoid(6)}`,v=vue.ref(!0),p=vue.ref(!1),m=vue.ref(""),g=vue.ref(""),y=vue.ref(""),b=vue.inject("isMobile",!1);vue.computed(()=>INDICATOR_URL);const re=()=>document.querySelector("#modalContainer")||document.body,x=Rn=>{const zn=document.querySelector(`.${h} .ant-modal-header`);if(zn)if(Rn)zn.addEventListener("mousedown",j);else{const Wn=zn.parentElement;Wn&&(Wn.style.left="",Wn.style.top=""),zn.removeEventListener("mousedown",j)}},vn=Rn=>{const zn=document.querySelector(`.${h} .ant-modal-header`);zn&&(Rn?zn.addEventListener("dblclick",Pn):zn.removeEventListener("dblclick",Pn))},j=Rn=>{dragModalAction(Rn,`.${h} .ant-modal-header`)},Pn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?x(!1):x(!0)})},qn=()=>{vn(!1),x(!1),u("close")};async function Bn(Rn){var Jn;p.value=!0,(Jn=window==null?void 0:window.config)!=null&&Jn.indicatorToken;const{record:zn,linkUrl:Wn,title:Yn}=Rn;if(y.value=Yn,Wn){v.value=!0,m.value=Wn;const tr=[],nr=["orgCode","visitId","mpiId"];for(const Qn in zn)nr.includes(Qn)&&tr.push(`${Qn}=${zn[Qn]}`);g.value=tr.join("&")}vue.nextTick(()=>{vn(!0)})}const w=vue.computed(()=>{let Rn=`custom-content-modal ${h}`;return(vue.unref(b)||v.value)&&(Rn+=" full"),c.theme==="darkBlue"&&(Rn+=" darkBlue"),Rn}),J=vue.computed(()=>vue.unref(b)?{padding:"10px 0"}:{height:vue.unref(v)?"":f+48+"px",overflow:"hidden"}),gn=()=>{p.value=!1,qn()};return d({showModal:Bn,visible:p}),{visible:p,wrapClassName:w,detailBodyStyle:J,isMobile:b,urlJsonStr:g,linkUrl:m,isIndFullScreen:v,modalTitle:y,handleClose:gn,getContainer:re,onCancel:qn,toggleFullScreen:Pn}}}),_withScopeId$7=c=>(vue.pushScopeId("data-v-3a641475"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$7(()=>vue.createElementVNode("img",{src:_imports_0,alt:"",width:"100%",height:"100%"},null,-1)),_hoisted_2$d=[_hoisted_1$n],_hoisted_3$7=["src"];function _sfc_render$B(c,u,d,f,h,v){const p=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(p,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=m=>c.visible=m),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,closable:!1,onCancel:c.onCancel},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"custom-close-icon",onClick:u[0]||(u[0]=(...m)=>c.handleClose&&c.handleClose(...m))},_hoisted_2$d),c.linkUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.linkUrl}${c.linkUrl.includes("?")?"&":"?"}${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
- `,8,_hoisted_3$7)):vue.createCommentVNode("",!0)]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const CustomModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-3a641475"]]);/**!
102
+ `;let v=c;if(d!=null&&d.length){for(const m of d){const g=hn(m,{textData:u},{useNewline:!1,useSpace:!1});g&&(v=v.replace(m,g))}return`${h}{text|${v}}`}else return c},setDefaultRangeVal=(c,u)=>{const{props:d,componentList:f,getGlobalModel:h}=c,{graphicConfig:v={},startValue:p,endValue:m}=d,g=getdefCompleteData({graphicConfig:v,startValue:p,endValue:m,componentList:f,getGlobalModel:h}),{dimensions:y,dataset:b}=u,{classificationList:re=[]}=v,vn=re.find(j=>j.show).label||"";for(const j of g)!y.find(Pn=>+Pn==+j)&&!isNaN(+j)&&y.push(+j);y.sort((j,Pn)=>dayjs(j).isBefore(dayjs(Pn))?-1:1);for(const j of b){const{data:Pn}=j;if(Pn!=null&&Pn.length){const qn=[];for(const Bn of g)if(!Pn.find(w=>+w[vn]==+Bn)&&!isNaN(+Bn)){const w=lodashEs.cloneDeep(Pn[0]);for(const J in w)J===vn?w[J]=+Bn:w[J]=0;qn.push(w)}j.data.push(...qn),j.data.sort((Bn,w)=>dayjs(Bn[vn]).isBefore(dayjs(w[vn]))?-1:1)}}};function getdefCompleteData(c){const{startValue:u,endValue:d,componentList:f,graphicConfig:h,getGlobalModel:v}=c,p=getVariableAndField(u),m=getVariableAndField(d),g=[];if(p&&m){const y=f.find(re=>re.keyName===p.keyName),b=f.find(re=>re.keyName===m.keyName);if(y&&b){const re=v(y.id),x=v(b.id),{classificationList:vn=[]}=h,j=vn.find(Pn=>Pn.show);if(j){let Pn="YYYY-MM";switch(j.name){case"the_year":Pn="YYYY";break;case"the_month":Pn="MM";break;case"the_day":Pn="DD";break;case"the_date":Pn=(j==null?void 0:j.dateFormat)||Pn;break}const qn=getFormatStep(Pn);if(Pn){const Bn=vue.unref(re[p.field]),w=vue.unref(x[m.field]);let J=dayjs(Bn);const gn=dayjs(w);for(g.push(gn.format(Pn));J.isBefore(gn);)g.push(J.format(Pn)),J=J.add(1,qn)}}}}return g}function getVariableAndField(c){let u=null;if(c){const d=c.match(/\{(.+?)\}/g);if(d!=null&&d.length){let f=d[0].slice(1,-1).trim();const h=f.match(/\[(.+?)\]/g);let v="";h!=null&&h.length&&(f=f.replace(h[0],""),v=h[0].slice(1,-1).trim()),u={keyName:f,field:v}}}return u}function getFormatStep(c){const u=c.split("-");let d="";if(u!=null&&u.length)switch(u[u.length-1]){case"YYYY":d="year";break;case"MM":d="month";break;case"DD":d="day";break}return d}function handleJumpLink(c,u){var re;const{pageMode:d,targetTemplate:f,getRecordValueByKeyName:h,setTemplateData:v}=u,p=c.linkPage||"",m=usePageUrl(d,p),g=c.href;let y=g||m;y=hn(y);const b=c.target;if(b)if(b==="event")window.parent.postMessage({type:"openPage",url:g},"*");else{const x={pageId:p,componentId:f};if((re=c.transParams)!=null&&re.length){y.includes("?")?y+="&":y+="?";const vn=[];for(const j of c.transParams){const Pn=h(String(j.fieldName));vn.push(`${j.keyName}=${Pn}`),x[j.keyName]=Pn}y+=vn.join("&")}b==="template"?(Object.prototype.hasOwnProperty.call(window,"oldPageId")||(window.oldPageId=""),window.oldPageId&&(window.controller.abort(),window.controller=new AbortController),window.oldPageId=p,v(x)):(b==="blank"&&(y+=`${y.includes("?")?"&":"?"}drillFlag=1`),window.open(y,"_"+b))}}function getPageUrlParams(c){var d,f;let u={};if(c){const h=(((d=window.config)==null?void 0:d.urlParams)||{})[c]||{};for(const v in h)v.includes("{")||(u[v]=h[v])}else u=((f=window.config)==null?void 0:f.requestParams)||{};return u}function getNewValueFromUrlParams(c,u,d){let f="";const{urlParams:h}=window.config;if(c&&h[c])for(const v in h[c]){const p=h[c][v];if(v===`{${u}[${d}]}`&&p){f=p;break}}return f}function getFormatWh(c,u){return typeof c=="number"?c:typeof c=="string"?parseFloat(c):c.suffix==="px"?+c.value:c.suffix==="%"?parseFloat(u)*(c.value/100):0}const hasChinese=c=>/[\u4e00-\u9fa5]/.test(c),dragModalAction=(c,u)=>{const d=document.querySelector(u);if(!d)return;d.style.cursor="move",d.style.userSelect="none";const f=d.parentElement,h=200,v=f.getBoundingClientRect(),{width:p,left:m,top:g}=v,y=window.innerWidth,b=window.innerHeight,re=c.clientX,x=c.clientY,vn=parseFloat(f.style.left)||0,j=parseFloat(f.style.top)||0,Pn=-(m+p-h-vn),qn=y-m+vn-h,Bn=-(g-j),w=b-g+j-h,J=Rn=>{Rn.preventDefault();const zn=Rn.clientX-re,Wn=Rn.clientY-x;let Yn=vn+zn,Jn=j+Wn;Yn=Math.max(Pn,Math.min(Yn,qn)),Jn=Math.max(Bn,Math.min(Jn,w)),f.style.left=`${Yn}px`,f.style.top=`${Jn}px`},gn=()=>{d.style.cursor="",d.style.userSelect="",document.removeEventListener("mousemove",J),document.removeEventListener("mouseup",gn)};document.addEventListener("mousemove",J),document.addEventListener("mouseup",gn)},getPageId=()=>{var u;let c=((u=window==null?void 0:window.config)==null?void 0:u.pageId)||"";if(!c){const{pathname:d}=window==null?void 0:window.location;if(d){const f=d.split("/");f!=null&&f.length&&(c=f[f.length-1])}}return c};function loopConditions(c,u,d){const f=[];for(const h of c)h[u]?f.push(...loopConditions(h[u],u,d)):h.filter?f.push({...h.filter,label:h.label}):(!d||h.dataType!=="component"&&!(h.fieldValue.startsWith("${")&&h.fieldValue.endsWith("}")))&&f.push(h);return f}function isThousandWithUnit(c){if(typeof c!="string")return!1;const u=c.trim();return/^(\d{1,3}(,\d{3})*)(\.\d+)?([^\d].*)?$/.test(u)}function isValidDateStr(c){if(!c)return!1;const u=new Date(c);return u instanceof Date&&!isNaN(u.getTime())}function swapArrItem(c,u,d){return u<0||d<0||u>=c.length||d>=c.length||([c[u],c[d]]=[c[d],c[u]]),c}const useRequestData=(c,u,d=()=>{})=>{var ar;const{requestUrl:f,requestMethod:h,requestHeaders:v,requestParams:p,requestInterval:m,isOpenRequestTimer:g,openCustomRequestData:y,projectRequestUrl:b="",getModel:re,requestParamsMode:x,customRequestParams:vn,dataSetParam:j,requestType:Pn,dataType:qn,dataSetchecked:Bn}=c,{pageMode:w}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"})||{},{pageId:J}=vue.inject("templateOperate",{pageId:""})||{},{contextRequestUrl:gn,touchEventId:Rn}=vue.inject(GLOBAL_CONFIG,{contextRequestUrl:"",touchEventId:""})||{},{getGlobalModel:zn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:cr=>{}})||{},Wn=vue.inject(COMMON_OPERATE,{operateAction:(cr,fr)=>{}}),Yn=re||zn;let Jn=hn(f),tr=vue.unref(gn)||b||"";(qn==="request"&&Bn||Pn===1)&&(tr="",Jn=((ar=window.config)==null?void 0:ar.dataSetUrl)||"/api/datav/dataset/data2");const nr=async(cr={},fr={})=>{var or;if(vue.unref(w)==="design")return;if(qn!=="request"&&Qn){clearInterval(Qn);return}if(!Jn||!h||!v)return;let Gn={};for(const sr of p){const{key:dr,value:Xn}=sr;if((Xn==null?void 0:Xn.id)==="PARENT"&&(Xn!=null&&Xn.prop)){const hr=(((or=window.config)==null?void 0:or.record)||{})[Xn.prop];if(hr){const vr=hr[Xn.propKey||"value"];vr&&(["date","range"].some(br=>yn(hr==null?void 0:hr.type,br))?Gn[dr]=vue.unref(vr).format(hr.format||"YYYY-MM-DD"):Gn[dr]=vue.unref(vr))}continue}if(typeof Xn=="object"&&Xn!=null&&Xn.id){let lr={};const{id:hr,prop:vr,propKey:yr,operate:br}=Xn;let pr=!1;try{JSON.parse(hr),pr=!0}catch{pr=!1}hr==="THIS"?lr=Yn(vue.unref(Rn))||{}:lr=Yn(hr)||{};const mr=vue.unref(lr[vr]);let Er=null;if(["date","range"].some(Cr=>yn(lr==null?void 0:lr.type,Cr))){const{value:Cr,type:xr,mode:Ar}=br||{};if(Cr&&xr&&Ar)switch(xr){case"add":Er=vue.unref(mr).add(Cr,Ar);break;case"minus":Er=vue.unref(mr).subtract(Cr,Ar);break}Er==null&&(Er=vue.unref(mr)),Er=Er&&(Er==null?void 0:Er.format((yr==null?void 0:yr.trim())||lr.format))||""}else if(Object.prototype.toString.call(mr)==="[object Object]")yr?Er=mr[yr]:Er=vr?mr[vr]:mr;else if(yn(lr==null?void 0:lr.type,"select")&&vue.unref(mr)&&vr&&Array.isArray(vue.unref(mr)))Er=vue.unref(mr).map(Cr=>Object.prototype.hasOwnProperty.call(Cr,vr)?Cr[vr]:Cr);else if(pr){const Cr=JSON.parse(hr);console.log(Cr,"urlvalue"),Er=Cr.value}else Er=mr;Gn[dr]=Er}else typeof Xn=="object"&&!Xn.id&&Pn===1?(console.log(Xn.propKey,"value.propKey"),Gn[dr]=Xn.propKey):typeof Xn=="string"&&(Gn[dr]=hn(Xn))}if(Pn===1){console.log(Gn,"_params");const sr=Object.entries(Gn);let dr=j;if(!j.param&&Array.isArray(j)){const Xn={};for(const lr of j)Xn[lr.key]=lr.value;dr=Xn}dr.param=dr.param.map((Xn,lr)=>({...Xn,paramKey:sr[lr][0],defaultValue:sr[lr][1]||""})),Gn=dr}if(x==="2"&&vn!=="{}"){const sr=JSON.parse(vn);Zn(sr),sr&&(Gn=sr)}function Zn(sr){const dr={...Gn,...getPageUrlParams(J)};if(Array.isArray(sr))sr.forEach((Xn,lr)=>{if(typeof Xn=="string"){const hr=Xn.match(/\${(.+?)\}/g);if(hr!=null&&hr.length){const vr=hr[0].slice(2,-1);vr&&dr[vr]?sr[lr]=dr[vr]:sr[lr]=""}}else Zn(Xn)});else if(Object.prototype.toString.call(sr)==="[object Object]")for(const Xn in sr)if(typeof sr[Xn]=="string"){const lr=sr[Xn].match(/\${(.+?)\}/g);if(lr!=null&&lr.length){const hr=lr[0].slice(2,-1);hr&&dr[hr]?sr[Xn]=dr[hr]:sr[Xn]=""}}else Zn(sr[Xn])}const Hn=getPageUrlParams(J);for(const sr in Hn)Hn[sr]&&(Hn[sr]=decodeURIComponent(Hn[sr]));if(Gn={...Hn,...cr,...Gn},fr){const{callback:sr,pageParams:dr}=fr;dr&&(Gn={...Gn,...dr}),sr&&sr(Gn)}let Un="";const er=Object.keys(Gn),Kn=er.length-1,ir=er.length;er.forEach((sr,dr)=>{let Xn=Gn[sr];Object.prototype.toString.call(Xn)==="[object Object]"&&(Xn=JSON.stringify(Xn)),dr===0?ir!==1?Un+=`?${sr}=${Xn}&`:Un+=`?${sr}=${Xn}`:dr===Kn?Un+=`${sr}=${Xn}`:Un+=`${sr}=${Xn}&`}),Jn.includes("?")&&(Un=Un.replace("?","&"));function ur(sr){var dr;if(Pn===1)return{Authentication:(dr=window==null?void 0:window.config)==null?void 0:dr.indicatorToken};if(typeof sr=="string"){const Xn=JSON.parse(sr),lr=getPageUrlParams(J);if(Object.prototype.toString.call(Xn)==="[object Object]"){for(const hr in Xn)if(typeof Xn[hr]=="string"){const vr=Xn[hr].match(/\${(.+?)\}/g);if(vr!=null&&vr.length){const yr=vr[0].slice(2,-1);yr&&lr[yr]?Xn[hr]=lr[yr]:Xn[hr]=""}}}return Xn}else return sr}try{const sr=["get","head"].includes(h),dr={};let Xn=sr?Jn+Un:Jn;Gn.dataSqlId&&!Xn.includes("dataSqlId")&&(Xn+=`${Xn.includes("?")?"&":"?"}dataSqlId=${Gn.dataSqlId}`),Object.prototype.hasOwnProperty.call(Gn,"signal")?dr.signal=Gn.signal:window.controller&&(dr.signal=window.controller.signal);const lr=await request({baseURL:tr,url:Xn,method:h,headers:v?ur(v):{},data:sr?{}:Gn,...dr});return d(lr),Wn==null||Wn.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(lr==null?void 0:lr.data)||{}}),lr}catch(sr){console.error(sr)}},Qn=vue.unref(w)!=="design"&&g&&(y||y===void 0)&&setInterval(nr,m*1e3);return vue.onUnmounted(()=>{clearInterval(Qn)}),nr},useImagePath=(c,u=!1)=>{var f;if(!c)return c;let d="";return c!=null&&c.includes("://")?d=c:d=((f=window==null?void 0:window.config)==null?void 0:f.uploadPath)+c,u&&(d=`url(${d})`),d},usePageUrl=(c,u)=>{const d=`${BASE_URL}/preview?pageId=${u}`,f=`${BASE_URL}/${u}`;return c==="preview"?d:f},useIndicatorData=(c={},u=()=>{})=>{var re;const{pageMode:d}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal"}),{requestToken:f}=vue.inject(GLOBAL_TOKEN,{requestToken:()=>{}}),{setLoadedData:h}=vue.inject(LOADED_DATA,{setLoadedData:(x,vn)=>{}}),{getAllGlobalModel:v}=vue.inject(GLOBAL_MODEL,{getAllGlobalModel:()=>{}}),{pageId:p}=vue.inject("templateOperate",{pageId:""})||{},m=vue.inject(COMMON_OPERATE,{operateAction:(x,vn)=>{}}),g=vue.inject("componentList",[]);c.dataType==="indicator"&&f();const y=async(x={})=>{var gn,Rn,zn,Wn,Yn;if(vue.unref(d)==="design")return;const vn=v();h(c.id,!1);const j=En({...c,globalModel:vn,allComponentList:vue.unref(g)},x),{url:Pn,...qn}=j||{},{pathname:Bn,search:w}=window==null?void 0:window.location;let J=p||((gn=window==null?void 0:window.config)==null?void 0:gn.pageId);if(!J&&Bn){const Jn=Bn.split("/");Jn!=null&&Jn.length&&(J=Jn[Jn.length-1])}if(Pn&&qn){let Jn,tr;if(c.type==="ecanIndexPanel"&&(Jn=c.theFlag),["/diagram/formData","/diagram"].includes(Pn)){tr={};const Qn=w.slice(1,w.length).split("&");for(const ar of Qn)if(ar){const cr=ar.split("=");if(cr[0])if(cr[0]==="userInfo")try{tr.token=(zn=(Rn=JSON.parse(decodeURIComponent(cr[1])))==null?void 0:Rn.baseInfo)==null?void 0:zn.hrpToken}catch(fr){console.log(fr)}else tr[cr[0]]=cr[1]}}try{const nr=await request({url:`${INDICATOR_URL}${Pn}`,method:"post",headers:{Authentication:(Wn=window==null?void 0:window.config)==null?void 0:Wn.indicatorToken,operateContext:CONTEXT},data:{...qn,pageId:J,theFlag:Jn,extParam:tr},signal:((Yn=window.controller)==null?void 0:Yn.signal)||""});return x!=null&&x.isTimer&&u(nr),m==null||m.operateAction("SAVE_COMPONENT_RES_DATA",{id:c.id,data:(nr==null?void 0:nr.data)||{}}),c.type==="ecanIndexPanel"&&(m==null||m.operateAction("SAVE_INDEX_PANEL_REQ_PARAMS",qn)),nr}catch(nr){console.error(nr)}}},b=vue.unref(d)!=="design"&&((re=c==null?void 0:c.graphicConfig)==null?void 0:re.pageMode)!=="design"&&c.isOpenRequestTimer&&c.requestInterval&&setInterval(()=>{y({isTimer:!0})},c.requestInterval*1e3);return vue.onUnmounted(()=>{clearInterval(b)}),y},useHrefParamsToGlobalVariables=()=>{const u=window.location.search.slice(1).split("&"),d=u.length,f={};for(let h=0;h<d;h++){const v=u[h];if(v==null||v==="")continue;const p=v.split("=");if(Array.isArray(p)){const m=p[0];m.includes("{")||(f[m]=p[1])}}window.config.requestParams={...window.config.requestParams,...f},window.config={...window.config,...f}},_sfc_main$C=vue.defineComponent({name:"EcanPageConfig",inheritAttrs:!1,props:{...pageConfigComponentProps,pageId:{type:String,default:""},customId:{type:String,default:"container"},portId:{type:String,default:"norPageConfig"}},setup(c){const{width:u,height:d,isCompatible:f}=vue.inject(GLOBAL_CONFIG,{width:null,height:null,isCompatible:null}),h=vue.inject("setPageHeight",zn=>{}),v=vue.inject("isMobile",!1),p=vue.computed(()=>{const zn={};return(!f.value||!v)&&(zn.width=u.value,zn.height=d.value),{...zn,backgroundColor:c.pageId?"transparent":c.backgroundColor,backgroundImage:useImagePath(c.backgroundImage,!0),backgroundSize:c.backgroundSize}}),m=vue.ref(0),g=vue.ref(0),y=vue.ref(0),b=vue.ref(0),re=vue.ref(!1),x=vue.ref();let vn;const j=()=>new Promise(zn=>{vue.nextTick(()=>{u.value&&d.value?(m.value=parseFloat(u.value),g.value=parseFloat(d.value)):(m.value=x.value.clientWidth,g.value=x.value.clientHeight),(!y.value||!b.value)&&(y.value=window.screen.width,b.value=window.screen.height),zn()})}),Pn=()=>{m.value&&g.value?(x.value.style.width=`${m.value}px`,x.value.style.height=`${g.value}px`):(x.value.style.width=`${y.value}px`,x.value.style.height=`${b.value}px`)};vue.watch([u,d],async()=>{c.pageId||(await j(),Pn(),Bn(),window.addEventListener("resize",J),gn()),re.value=!0},{immediate:!0});const qn=vue.ref({});vue.provide("scaleValue",qn);const Bn=()=>{if(f.value&&v){x.value.style.width="100%",x.value.style.height="auto",h("auto");return}const zn=document.body.clientWidth,Wn=document.body.clientHeight,Yn=m.value||y.value,Jn=g.value||b.value,tr=zn/Yn;let nr=Wn/Jn;(m.value!==1920||g.value!==1080)&&(nr=g.value/m.value*zn/Jn),qn.value={widthScale:tr,heightScale:nr},x.value&&(x.value.style.transform=`scale(${tr}, ${nr})`),h(qn.value)},w=vue.computed(()=>{var Wn;let zn={};return c.customId==="modalContainer"&&((Wn=vue.unref(qn))!=null&&Wn.heightScale)&&(zn.height=100/vue.unref(qn).heightScale+"vh"),zn}),J=lodashEs.debounce(async()=>{await j(),Bn()},100),gn=()=>{const zn=window.MutationObserver;vn=new zn(J),vn.observe(x.value,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},Rn=()=>{vn&&(vn.disconnect(),vn.takeRecords(),vn=null)};return vue.onMounted(()=>{re.value=!1}),vue.onUnmounted(()=>{window.removeEventListener("resize",J),Rn()}),{style:p,container:x,ready:re,scaleValue:qn,containerStyle:w}}}),PageConfig_vue_vue_type_style_index_0_scoped_eced44d2_lang="",_hoisted_1$q=["id"],_hoisted_2$g=["id"];function _sfc_render$H(c,u,d,f,h,v){return vue.openBlock(),vue.createElementBlock("div",{class:"page-config-container",id:c.customId,style:vue.normalizeStyle(c.containerStyle),ref:"container"},[c.customId!=="modalContainer"&&(c.ready||c.pageId)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"page-config",id:c.portId,style:vue.normalizeStyle(c.style)},[vue.renderSlot(c.$slots,"default",{},void 0,!0)],12,_hoisted_2$g)):vue.createCommentVNode("",!0)],12,_hoisted_1$q)}const PageConfig=_export_sfc$1(_sfc_main$C,[["render",_sfc_render$H],["__scopeId","data-v-eced44d2"]]),EcanPageConfig=withInstall$1(PageConfig),providerConfig={contextRequestUrl:"",pageMode:"normal",theme:"light",containerMap:{},combinationMap:{},width:"1920px",height:"1080px",pageFontFamily:"",textColor:"",jumpType:"page",jumpTime:null,jumpPage:"",jumpLink:"",requestList:[],events:[],isCompatible:!0,variableList:[],drillingMode:"pivotTable",pivotTableFontSize:"16px",drillDetailUrl:""},providerConfigComponentProps=transformToComponentProps(providerConfig),_sfc_main$B=vue.defineComponent({name:"IndicatorDetailModal",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1,ZoomInOutlined:ZoomInOutlined$1,ZoomOutOutlined:ZoomOutOutlined$1,RedoOutlined:RedoOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const d=vue.ref(!1),f=vue.ref([]),h=vue.ref(!1),v=vue.ref(),p=vue.ref(!0),m=vue.ref(1),g=vue.inject("isMobile",!1),y=vue.computed(()=>c.theme),b=vue.computed(()=>m.value!==1?{transform:`scale(${m.value})`,transformOrigin:"left top"}:{}),re=async({data:zn,indicatorUrl:Wn,indicatorToken:Yn,context:Jn,pageId:tr})=>{var cr,fr;p.value=!0,h.value=!0,d.value=!0;let nr=[];const{graphicConfig:Qn,theFlag:ar}=vue.unref(zn)||{};if(Qn){const{leftAxisList:Gn=[],rightAxisList:Zn=[],indicators:Hn=[]}=Qn,Un=Gn.concat(Zn).concat(Hn);Un!=null&&Un.length&&(nr=Un.map(er=>({calcType:er.calcType||"COLUMN",columnName:er.name,hrpIndexCode:er.indexCode,hrpIndexCodeNum:er.indexCodeNum,label:er.label,show:er.show,formula:er.formula})))}if(nr!=null&&nr.length)try{const Gn=await request({url:`${vue.unref(Wn)}/diagram/obtainIndicatorInfo`,method:"post",headers:{Authentication:Yn,operateContext:Jn},data:{source:"INDICATOR_LIB",pageId:tr,indicatorList:nr,theFlag:ar}}),Zn=((cr=Gn==null?void 0:Gn.data)==null?void 0:cr.data)||[];(fr=Zn[0])!=null&&fr.remark?(v.value=Zn[0].remark,f.value=[]):(v.value=null,f.value=Zn)}catch{}finally{h.value=!1}vue.nextTick(()=>{j(!0),Pn(!0)})},x=()=>document.querySelector("#modalContainer")||document.body,vn=vue.computed(()=>{let zn="ind-detail-modal";return(p.value||vue.unref(g))&&(zn+=" full",vue.unref(g)&&(zn+=" mobile")),vue.unref(y)==="darkBlue"&&(zn+=" darkBlue"),zn}),j=zn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");Wn&&(zn?Wn.addEventListener("dblclick",Bn):Wn.removeEventListener("dblclick",Bn))},Pn=zn=>{const Wn=document.querySelector(".ind-detail-modal .ant-modal-header");if(Wn)if(zn)Wn.addEventListener("mousedown",qn);else{const Yn=Wn.parentElement;Yn&&(Yn.style.left="",Yn.style.top=""),Wn.removeEventListener("mousedown",qn)}};function qn(zn){dragModalAction(zn,".ind-detail-modal .ant-modal-header")}const Bn=()=>{p.value=!p.value,vue.nextTick(()=>{p.value?Pn(!1):Pn(!0)})},w=()=>{j(!1),Pn(!1)},J=()=>{m.value+=.5},gn=()=>{vue.unref(m)>1&&(m.value-=.5)},Rn=()=>{m.value=1};return vue.watch(m,zn=>{localStorage.setItem("indDetailZoom",String(zn))}),vue.watch(d,zn=>{zn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.onMounted(()=>{var Wn,Yn;const zn=localStorage.getItem("indDetailZoom");if(zn&&(m.value=+zn),vue.unref(g)){const Jn=document.querySelector("#modalContainer");p.value=!0,(Wn=Jn==null?void 0:Jn.style)==null||Wn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(Yn=Jn==null?void 0:Jn.style)==null||Yn.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:re}),{visible:d,dataList:f,isLoading:h,hasOwn:mn,remarkData:v,wrapClassName:vn,isIndFullScreen:p,infoStyle:b,indDetailZoom:m,isMobile:g,getContainer:x,toggleFullScreen:Bn,onDetailCancel:w,handleZoomIn:J,handleZoomOut:gn,handleResetZoom:Rn}}}),IndicatorDetailModal_vue_vue_type_style_index_0_scoped_3af47b3e_lang="",IndicatorDetailModal_vue_vue_type_style_index_1_lang="",_withScopeId$9=c=>(vue.pushScopeId("data-v-3af47b3e"),c=c(),vue.popScopeId(),c),_hoisted_1$p=_withScopeId$9(()=>vue.createElementVNode("div",{class:"modal-title"},"指标详情",-1)),_hoisted_2$f={class:"zoom-btn"},_hoisted_3$8={key:0,class:"spin-container"},_hoisted_4$6=["innerHTML"],_hoisted_5$5={class:"index-name"},_hoisted_6$4={key:0,class:"card-row"},_hoisted_7$4=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"计量单位:",-1)),_hoisted_8$4={class:"content"},_hoisted_9$3={key:1,class:"card-row"},_hoisted_10$3=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"指标定义:",-1)),_hoisted_11$3={class:"content"},_hoisted_12$3={key:2,class:"card-row"},_hoisted_13$3=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"计算方法:",-1)),_hoisted_14$3={class:"content"},_hoisted_15$2={key:3,class:"card-row"},_hoisted_16$1=_withScopeId$9(()=>vue.createElementVNode("div",{class:"label"},"指标说明:",-1)),_hoisted_17$1={class:"content"};function _sfc_render$G(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("redo-outlined"),g=vue.resolveComponent("zoom-out-outlined"),y=vue.resolveComponent("zoom-in-outlined"),b=vue.resolveComponent("switcher-outlined"),re=vue.resolveComponent("border-outlined"),x=vue.resolveComponent("a-spin"),vn=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(vn,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=j=>c.visible=j),width:"55%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isIndFullScreen?"":"70vh",height:c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$p]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$f,[c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(m,{key:0,class:"modal-icon",title:"还原",onClick:c.handleResetZoom},null,8,["onClick"])):vue.createCommentVNode("",!0),c.indDetailZoom>1?(vue.openBlock(),vue.createBlock(g,{key:1,class:"modal-icon",title:"缩小内容",onClick:c.handleZoomOut},null,8,["onClick"])):vue.createCommentVNode("",!0),vue.createVNode(y,{class:"modal-icon",title:"放大内容",onClick:vue.withModifiers(c.handleZoomIn,["stop","prevent"])},null,8,["onClick"]),!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(b,{key:2,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(re,{key:3,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.isLoading?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$8,[vue.createVNode(x,{size:"large"})])):(vue.openBlock(),vue.createElementBlock("div",{key:1,class:"info-container",style:vue.normalizeStyle(c.infoStyle)},[c.remarkData?(vue.openBlock(),vue.createElementBlock("div",{key:0,innerHTML:c.remarkData},null,8,_hoisted_4$6)):c.dataList.length?(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,{key:1},vue.renderList(c.dataList,(j,Pn)=>(vue.openBlock(),vue.createElementBlock("div",{class:"detail-wrap",key:Pn},[vue.createElementVNode("div",_hoisted_5$5,vue.toDisplayString(j.indexName||"--"),1),c.hasOwn(j,"theUnit")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$4,[_hoisted_7$4,vue.createElementVNode("div",_hoisted_8$4,vue.toDisplayString(j.theUnit||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"meaning")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$3,[_hoisted_10$3,vue.createElementVNode("div",_hoisted_11$3,vue.toDisplayString(j.meaning||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theFormula")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_12$3,[_hoisted_13$3,vue.createElementVNode("div",_hoisted_14$3,vue.toDisplayString(j.theFormula||"--"),1)])):vue.createCommentVNode("",!0),c.hasOwn(j,"theExplain")?(vue.openBlock(),vue.createElementBlock("div",_hoisted_15$2,[_hoisted_16$1,vue.createElementVNode("div",_hoisted_17$1,vue.toDisplayString(j.theExplain||"--"),1)])):vue.createCommentVNode("",!0)]))),128)):vue.createCommentVNode("",!0)],4))]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const IndicatorDetailModal=_export_sfc$1(_sfc_main$B,[["render",_sfc_render$G],["__scopeId","data-v-3af47b3e"]]),lineProps={...props$1,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:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",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,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,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,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1,backgroundColor:""},lineComponentProps=transformToComponentProps(lineProps),lineEvents=["click","refreshData","resetRecord"],useDownloadFile=async c=>{var g;const u=await request.post(c,{},{responseType:"blob"}),{data:d,headers:f}=u,h=f["content-disposition"].replace(/\w+;filename=(.*)/,"$1"),v=new Blob([d]),p=document.createElement("a"),m=window.URL.createObjectURL(v);p.href=m,p.download=decodeURI(h),p.style.display="none",document.body.appendChild(p),p.click(),(g=p.parentNode)==null||g.removeChild(p),window.URL.revokeObjectURL(m)},modalProps={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",closeBtnColor:"#333",isShowCloseBtn:!0,events:[],borderRadius:"0",borderWidth:"0px",borderColor:"",boxShadow:"0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05)",allComponentList:[],requestList:[],parentIframeId:"",banScale:!1},modalComponentProps=transformToComponentProps(modalProps),modalEvents=["showModal","hideModal"],containerType=["ecanBorder","ecanTabs","ecanCirculate"];function handleScrollCombinations(c){const{containerMap:u={},sourceList:d=[],pageConfig:f={}}=c,h=lodashEs.cloneDeep(c.componentList),v=h.filter(p=>p.type==="ecanTabs"&&p.isAutoScroll);if(v!=null&&v.length)for(const p of v){const m=u[p.id],g=[];if((!mn(p,"componentList")||!(p!=null&&p.componentList))&&(p.componentList=[]),m){let y=0;for(const b in m){const re=m[b],x=[];if(re!=null&&re.length)for(const vn of re){let j=h.find(Pn=>Pn.id===vn);j||(j=d.find(Pn=>Pn.id===vn)),j&&(x.push(j),containerType.includes(j.type)&&x.push(...getComponentByContainer(j.id,u,d)))}for(const vn of x)mn(vn,"scale")?parseFloat(b)>0&&(vn.left=parseFloat(vn.left)+y+"px"):(vn.left=parseFloat(vn.sourceLeft||vn.left)-parseFloat(p.sourceLeft||p.left)+y+"px",vn.top=parseFloat(vn.sourceTop||vn.top)-parseFloat(p.sourceTop||p.top)+"px"),g.includes(vn.id)||g.push(vn.id);p.componentList.push(...x),y=getMaxLeftInComponents(x,f)}}for(const y of g){const b=h.findIndex(re=>re.id===y);b!==-1&&h.splice(b,1)}}return h}function compatibleMobileList(c){var g,y,b,re,x;const u=["ecanPie","ecanLine","ecanBar","ecanScatter","ecanComboGraph","ecanCustomGraph","ecanRadar","ecanMap","ecanTable"],d=document.body.clientWidth,{combinationMap:f={},sourceList:h=[],pageConfig:v={}}=c,p=c.containerMap,m=lodashEs.cloneDeep([...c.componentList,...getTabsSomeComponentList(p,h)]);if(handleContainerMap(p,m),(g=Object.keys(p))!=null&&g.length||(y=Object.keys(f))!=null&&y.length){for(const Bn in p){const w=m.find(J=>J.id===Bn);if(w){if(w!=null&&w.isFlowGrid){w.sourceLeft=w.left,w.sourceTop=w.top;continue}mn(w,"parentId")||(w.parentId="",w.sourceLeft=w.left,w.sourceTop=w.top);let J;if(w.type==="ecanBorder"&&((b=p[Bn][0])==null?void 0:b.length)===1&&(J=m.find(gn=>gn.id===p[Bn][0][0]),u.includes(J==null?void 0:J.type)||(J=null)),J){if(w.width=d,w.height=getFormatWh(J.height,v==null?void 0:v.height),J.parentId=Bn,J.width=d-20+"px",J.sourceLeft=J.left,J.sourceTop=J.top,J.left="10px",J.top="0px",J.type==="ecanTable"){const{columns:gn=[]}=J;J.scrollX="max-content";for(const Rn of gn)(re=Rn==null?void 0:Rn.width)!=null&&re.includes("%")&&(Rn.width=parseFloat(Rn.width)/100*d+"px")}}else for(const gn in p[Bn])if(p[Bn][gn])for(const Rn of p[Bn][gn]){const zn=m.find(Wn=>Wn.id===Rn);if(zn&&(zn.parentId=Bn,zn.sourceLeft=zn.left,zn.sourceTop=zn.top,zn.left=parseFloat(zn.left)-parseFloat(w.sourceLeft||w.left)+"px",zn.top=parseFloat(zn.top)-parseFloat(w.sourceTop||w.top)+"px",zn.type==="ecanIndexPanel")){const{componentIds:Wn}=zn;for(const Yn of Wn){const Jn=m.find(tr=>tr.id===Yn);Jn&&(Jn.left=parseFloat(Jn.left)-parseFloat(zn.sourceLeft)+"px",Jn.top=parseFloat(Jn.top)-parseFloat(zn.sourceTop)+"px")}}}}}const vn=Array.from(new Set(m.filter(Bn=>(!mn(Bn,"parentId")||Bn.parentId==="")&&Bn.combinationId).map(Bn=>Bn.combinationId))),j=getCombinationList(vn,{...c,componentList:m,pageConfig:v});j!=null&&j.length&&m.unshift(...j);const Pn=m.filter(Bn=>u.includes(Bn.type)&&!mn(Bn,"parentId")),qn=[];for(const Bn of Pn)if(Bn){const w=Bn.id+"_vir";if(qn.push({id:w,keyName:Bn.keyName+"_vir",parentId:"",type:"ecanBorder",borderRadius:"",borderWidth:null,width:d,height:getFormatWh(Bn.height,v==null?void 0:v.height),left:Bn.left,top:Bn.top,sourceLeft:Bn.left,sourceTop:Bn.top}),Bn.parentId=w,Bn.sourceLeft=Bn.left,Bn.sourceTop=Bn.top,Bn.left=10,Bn.top=0,Bn.width=d-20+"px",Bn.type==="ecanTable"){const{columns:J=[]}=Bn;Bn.scrollX="max-content";for(const gn of J)(x=gn==null?void 0:gn.width)!=null&&x.includes("%")&&(gn.width=parseFloat(gn.width)/100*d+"px")}}qn!=null&&qn.length&&m.unshift(...qn);for(const Bn of m){if(Bn.parentId===""&&containerType.includes(Bn.type))Bn.sourceWidth=getFormatWh(Bn.width,v==null?void 0:v.width),Bn.height=(d/(Bn.sourceWidth/getFormatWh(Bn.height,v==null?void 0:v.height))).toFixed(2)+"px",Bn.width="100%",Bn.position="relative",Bn.top="auto",Bn.left="auto";else{const w=m.find(J=>J.id===Bn.parentId);if((w==null?void 0:w.parentId)===""){const J=w.sourceWidth||getFormatWh(w.width,v==null?void 0:v.width),gn=d/J;Bn.scale=gn,Bn.top=parseFloat(Bn.top)*gn-getFormatWh(Bn.height,v==null?void 0:v.height)*(1-gn)/2+"px",Bn.left=parseFloat(Bn.left)*gn-getFormatWh(Bn.width,v==null?void 0:v.width)*(1-gn)/2+"px"}}Bn.type==="ecanModal"&&(Bn.parentId="",Bn.fullModal=!0)}return sortList(m)}return m}function handleContainerMap(c,u){const d=lodashEs.cloneDeep(c),f=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(f!=null&&f.length)for(const h of f){const v=d[h.id];for(const p in v)for(const m of v[p]){const g=u.find(y=>y.id===m);if(g&&containerType.includes(g.type)){const y=getComponentByContainer(g.id,d,u);for(const b of y)c[h.id][p].push(b.id),containerType.includes(b.type)&&delete c[b.id];delete c[g.id]}}}}function getTabsSomeComponentList(c,u){const d=[],f=u.filter(h=>h.type==="ecanTabs"&&h.isAutoScroll);if(f!=null&&f.length)for(const h of f){const v=c[h.id];for(const p in v)if(parseFloat(p)>0)for(const m of v[p]){const g=u.find(y=>y.id===m);g&&(d.push(g),containerType.includes(g.type)&&d.push(...getComponentByContainer(g.id,c,u)))}}return d}function getComponentByContainer(c,u,d){const f=[],h=u[c];for(const v in h)for(const p of h[v]){const m=d.find(g=>g.id===p);m&&(f.push(m),containerType.includes(m.type)&&f.push(...getComponentByContainer(m.id,u,d)))}return f}function getCombinationList(c,u,d){const{combinationMap:f={},componentList:h=[],pageConfig:v={}}=u,p=[];for(const m of c){const g=f[m];if(g!=null&&g.length){const y=h.filter(b=>g.includes(b.id));if(y!=null&&y.length){const b=getCombinateRect(y,v);if(b){p.push({...b,id:m,keyName:m,parentId:d||"",type:"ecanBorder",borderRadius:"",borderWidth:null,sourceLeft:b.left,sourceTop:b.top});for(const re of y)re&&(re.parentId=m,re.sourceLeft=re.left,re.sourceTop=re.top,re.left=parseFloat(re.left)-parseFloat(b.left)+"px",re.top=parseFloat(re.top)-parseFloat(b.top)+"px")}}}}return p}function sortList(c){const d=c.filter(f=>f.parentId===""||(f==null?void 0:f.isFlowGrid)).sort((f,h)=>{const v=f.sourceTop?typeof f.sourceTop=="object"?parseFloat(f.sourceTop.value):parseFloat(f.sourceTop):0,p=h.sourceTop?typeof h.sourceTop=="object"?parseFloat(h.sourceTop.value):parseFloat(h.sourceTop):0;return isNaN(v)||isNaN(p)?0:v-p});if(d!=null&&d.length){const f=lodashEs.cloneDeep(d).map(h=>({...h,sourceTop:parseFloat(h.sourceTop),sourceLeft:parseFloat(h.sourceLeft)}));for(let h=0;h<f.length-1;h++)for(let v=0;v<f.length-h-1;v++){let p=!1;if((f[v].sourceTop-f[v+1].sourceTop>40||Math.abs(f[v+1].sourceTop-f[v].sourceTop)<=40&&f[v].sourceLeft>f[v+1].sourceLeft)&&(p=!0),p){const m=f[v];f[v]=f[v+1],f[v+1]=m}}for(const h of f){const v=c.findIndex(p=>p.id===h.id);v!==-1&&c.splice(v,1)}return[...f,...c]}return c}function getCombinateRect(c,u){const d=c.sort((p,m)=>parseFloat(p.top)-parseFloat(m.top))[0],f=c.sort((p,m)=>parseFloat(p.left)-parseFloat(m.left))[0],h=c.map(p=>({...p,computedTop:parseFloat(p.top)+getFormatWh(p.height,u==null?void 0:u.height)})).sort((p,m)=>m.computedTop-p.computedTop)[0],v=c.map(p=>({...p,computedLeft:parseFloat(p.left)+getFormatWh(p.width,u==null?void 0:u.width)})).sort((p,m)=>m.computedLeft-p.computedLeft)[0];return d&&f&&h&&v?{left:f.left,top:d.top,width:v.computedLeft-parseFloat(f.left)+"px",height:h.computedTop-parseFloat(d.top)+"px"}:null}function getMaxLeftInComponents(c,u){const d=c.map(f=>parseFloat(f.left)+getFormatWh(f.width,u==null?void 0:u.width)).sort((f,h)=>h-f)[0];return d||0}function moveToComponentList(c,u,d){const f=c[d],h=[];if(f)for(const v in f){const p=f[v];for(const m of p){const g=u.find(y=>y.id===m);g&&(h.push(g),containerType.includes(g.type)&&h.push(...getComponentByContainer(g.id,c,u)))}}return h}const _sfc_main$A=vue.defineComponent({name:"Render",props:{component:{type:Object,default:()=>{}}},setup(c,{emit:u}){u("ready",c.component.id)}});function _sfc_render$F(c,u,d,f,h,v){return c.component.parentId?(vue.openBlock(),vue.createBlock(vue.Teleport,{key:0,to:"#container_"+c.component.parentId},[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.mergeProps({style:{scale:c.component.scale}},c.component),null,16,["style"]))],8,["to"])):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(c.component.type),vue.normalizeProps(vue.mergeProps({key:1},c.component)),null,16))}const Render=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$F]]),EcanRender=withInstall$1(Render),_sfc_main$z=vue.defineComponent({name:"EcanModal",components:{AModal:antDesignVue.Modal,CloseOutlined:CloseOutlined$1,Render:EcanRender},props:{...modalComponentProps},setup(c,{emit:u}){const d=vue.ref([]),f=vue.inject("isMobile",!1),{width:h,height:v}=vue.inject(GLOBAL_CONFIG,{width:null,height:null}),p=vue.computed(()=>c.fullModal),m=vue.inject("getContainerMap",()=>{}),g=vue.inject("getCombinationMap",()=>{}),{clearInteractiveData:y,interactiveData:b,setRequestData:re}=vue.inject(GLOBAL_MODEL,{setRequestData:(_r,Cr)=>{},clearInteractiveData:()=>{},interactiveData:null}),x=()=>document.getElementById("ProviderConfig")||document.body,vn=vue.computed(()=>{const _r=c.position;return{verticalAlign:{default:"",top:"top",center:"middle",bottom:"bottom"}[_r]}}),j=c.fullModal?"1920px":c.width,Pn=c.fullModal?"1080px":c.height,qn=c.originalWidth,Bn=c.originalHeight,w=vue.ref("80%"),J=vue.ref(0),gn=vue.ref(),Rn=vue.ref(0),zn=vue.ref({}),Wn=usePickComponentStyle(c),Yn=vue.ref({}),Jn=vue.ref(!1),tr=vue.ref();let nr;const Qn=()=>{gn.value=parseFloat(j)/parseFloat(qn);const _r=parseFloat(Pn)/parseFloat(Bn),Cr=document.body.offsetWidth,xr=document.body.offsetHeight;if(J.value=Cr*vue.unref(gn),Rn.value=xr*_r,w.value=`${vue.unref(gn)*100}%`,zn.value={width:`${vue.unref(J)}px`,height:`${vue.unref(Rn)}px`,border:`${c.borderWidth} solid ${c.borderColor}`,borderRadius:c.borderRadius+"px",boxShadow:c.boxShadow},Yn.value={...vue.unref(Wn),backgroundImage:useImagePath(c.backgroundImage,!0)},f)Yn.value={...Yn.value,width:"100%",height:"100%"};else{const Ar={...Yn.value,width:j,height:Pn};c.banScale&&vue.unref(p)?(Ar.width="100%",Ar.height="100%"):Ar.transform=`scale(${vue.unref(J)/parseFloat(j)},${vue.unref(Rn)/parseFloat(Pn)})`,Yn.value=Ar}},ar=lodashEs.debounce(()=>{Qn()},100),cr=()=>{const _r=window.MutationObserver;nr=new _r(ar),nr.observe(document.body,{attributes:!0,attributeFilter:["style"],attributeOldValue:!0})},fr=()=>{nr&&(nr.disconnect(),nr.takeRecords(),nr=null)},Gn=vue.ref(!1),{touchRequest:Zn}=vue.inject(REQUEST_MODEL,{touchRequest:()=>{}}),Hn=vue.ref(""),Un=()=>{var xr;const{title:_r}=c,Cr=(xr=vue.unref(b))==null?void 0:xr.RECORD;return Cr?hn(_r,{textData:Cr},{useNewline:!1,useSpace:!1}):_r},er=useEmitEvent(c),Kn=_r=>{const{changeIframeStyle:Cr}=window.parent;Cr&&typeof Cr=="function"&&Cr({iframeId:c.parentIframeId||"",action:_r})},ir=()=>{vue.unref(p)&&Kn("open"),f&&(document.documentElement.style.overflow="hidden"),Hn.value=Un(),Gn.value=!0},ur=er("hideModal",()=>{vue.unref(p)&&Kn("close"),u("close"),f&&(document.documentElement.style.overflow="hidden auto",d.value=[]),Gn.value=!1}),or=()=>{ur()},sr=()=>{ur(),y()},{setModalModel:dr,pushUseModalIds:Xn,popUseModalIds:lr}=vue.inject(MODAL_MODEL,{pushUseModalIds:_r=>{},popUseModalIds:()=>{},setModalModel:(_r,Cr)=>{}}),hr=vue.computed(()=>{let _r=c.componentList;const Cr=lodashEs.cloneDeep(c.componentList),xr=m(),Ar=g(),gr={containerMap:xr,combinationMap:Ar};f&&(_r=compatibleMobileList({...gr,componentList:Cr,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}})),_r=handleScrollCombinations({...gr,componentList:_r,sourceList:c.allComponentList,pageConfig:{width:vue.unref(h),height:vue.unref(v)}});const wr=[];for(const Tr of _r)if(Tr.type==="ecanCirculate"){const Pr=moveToComponentList(xr,vue.unref(Cr),Tr.id);Tr.componentList=Pr,wr.push(...Pr.map(Dr=>Dr.id))}else if(Tr.type==="ecanTable"){const{headerFontSize:Pr,fontSize:Dr,size:Kr,bodyRowHeight:Vr,headRowHeight:Hr}=Tr;if(!Vr||!Hr)if(Tr.size){let Xr=0;switch(Kr){case"default":Xr=16;break;case"middle":Xr=12;break;case"small":Xr=8;break}Vr||(Tr.bodyRowHeight=(Xr*2+parseFloat(Dr)*1.5715).toFixed(0)+"px"),Hr||(Tr.headRowHeight=(Xr*2+parseFloat(Pr)*1.5715).toFixed(0)+"px")}else Vr||(Tr.bodyRowHeight="54px"),Hr||(Tr.headRowHeight="54px")}if(wr!=null&&wr.length)for(const Tr of wr){const Pr=_r.findIndex(Dr=>Dr.id===Tr);Pr!==-1&&_r.splice(Pr,1)}return _r}),vr=()=>{const _r=c.id;let Cr=[];const xr=c.componentList;Array.isArray(xr)&&(Cr=xr.map(Ar=>Ar.id),dr(_r,[...new Set(Cr)]))},yr=vue.ref(!1),br={};for(const _r of c.requestList)br[_r.requestName]=useRequestData(_r);vue.watch(()=>Gn.value,async _r=>{if(_r)Jn.value=!1,Xn(c.id),vr(),await vue.nextTick(()=>{Qn(),window.addEventListener("resize",ar),cr(),Jn.value=!0}),Zn();else{if(re)for(const Cr in br)re(Cr,{});lr(),window.removeEventListener("resize",ar),fr()}});const pr=vue.computed(()=>vue.unref(gn)>=1),mr=vue.computed(()=>{let _r="ecan-modal";return vue.unref(pr)&&(_r+=" ecan-full-width-modal"),vue.unref(p)&&(_r+=" ecan-full-modal"),_r});return useOnEvent(c,{showModal:ir,hideModal:ur}),{modalRef:tr,containStyle:zn,contentStyle:Yn,getContainer:x,modalStyle:vn,modalWith:w,isFullModal:p,style:Wn,visible:Gn,showModal:ir,onOk:or,onCancel:sr,isFullWidth:pr,wrapClassName:mr,ready:Jn,usedComponentList:hr,isMobile:f,readyIds:d,hasOwn:mn,onComponentReady:_r=>{d.value.push(_r)},formatTitle:Hn,requestLoaded:yr}}}),Modal_vue_vue_type_style_index_0_scoped_e8d3acb6_lang="",Modal_vue_vue_type_style_index_1_lang="";function _sfc_render$E(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("render"),g=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(g,{getContainer:c.getContainer,wrapClassName:c.wrapClassName,centered:"",visible:c.visible,footer:null,width:c.isFullModal||c.isFullWidth?"100%":c.modalWith,destroyOnClose:c.destroyOnClose,style:vue.normalizeStyle(c.modalStyle),closable:!1,onOk:c.onOk,onCancel:c.onCancel,ref:"modalRef",id:"container_"+c.id},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"contain",ref:"containRef",style:vue.normalizeStyle(c.containStyle)},[c.ready?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"content",style:vue.normalizeStyle(c.contentStyle)},[vue.createElementVNode("div",{class:"header-bar",style:vue.normalizeStyle({backgroundColor:c.backgroundColor,padding:"20px 30px",height:c.isMobile?"62px":""})},[c.formatTitle?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"ant-modal-title",style:vue.normalizeStyle({fontSize:c.titleFontSize,color:c.titleColor})},vue.toDisplayString(c.formatTitle),5)):vue.createCommentVNode("",!0),c.isShowCloseBtn?(vue.openBlock(),vue.createBlock(p,{key:1,class:"close-icon",style:vue.normalizeStyle({color:c.closeBtnColor}),onClick:c.onCancel},null,8,["style","onClick"])):vue.createCommentVNode("",!0)],4),c.usedComponentList.length?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(c.isMobile?"mobile-wrap":"")},[(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(c.usedComponentList,(y,b)=>(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:y.id+b},[c.isMobile?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[c.hasOwn(y,"parentId")&&(c.readyIds.includes(y.parentId)||y.parentId==="")?(vue.openBlock(),vue.createBlock(m,{key:0,component:y,onReady:c.onComponentReady},null,8,["component","onReady"])):vue.createCommentVNode("",!0)],64)):(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(y.type),vue.mergeProps({key:1},y,{cpntid:y.id}),null,16,["cpntid"]))],64))),128))],2)):vue.renderSlot(c.$slots,"default",{key:1},void 0,!0)],4)):vue.createCommentVNode("",!0)],4)]),_:3},8,["getContainer","wrapClassName","visible","width","destroyOnClose","style","onOk","onCancel","id"])}const Modal=_export_sfc$1(_sfc_main$z,[["render",_sfc_render$E],["__scopeId","data-v-e8d3acb6"]]),EcanModal=withInstall$1(Modal);core$1.use([renderers.CanvasRenderer,charts.LineChart,components$1.ToolboxComponent,components$1.TitleComponent,components$1.LegendComponent,components$1.MarkLineComponent]);const _sfc_main$y=vue.defineComponent({name:"EcanLine",props:{...lineComponentProps},components:{Spin,Echarts,EcanModal},setup(c,{expose:u}){const d=vue.ref(!1),{pageMode:f,fontFamily:h}=vue.inject(GLOBAL_CONFIG,{pageMode:"normal",fontFamily:""}),v=vue.inject("showIndDetail",er=>{}),p=vue.inject("usedComponentList",[]),m=vue.ref(),g=vue.ref(!1),y=usePickComponentStyle(c),b=vue.ref([]),re=vue.ref([]),x=vue.ref(),vn=vue.computed(()=>g.value?ZOOM_FONT_SIZE:12),j=vue.ref({});let Pn;const qn=vue.ref([]),Bn=vue.computed(()=>{const er=c.xAxisLabelFormatter,Kn=c.yAxisLabelFormatter;return{textStyle:{fontFamily:vue.unref(h)},toolbox:{show:c.toolboxShow,left:c.toolboxLeft,top:c.toolboxTop,itemSize:c.toolboxItemSize,itemGap:c.toolboxItemGap,orient:c.toolboxOrient,feature:{myDownload:{show:c.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(){useDownloadFile(c.toolboxDownloadUrl)}},myDataZoom:{show:g.value?!1:c.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 ir;g.value=!0,(ir=x.value)==null||ir.showModal()}},myInfo:{show:c.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(){v(c)}}}},title:{text:c.titleText,subText:c.titleSubtext,textStyle:{fontSize:c.titleFontSize,fontWeight:c.fontWeight,color:c.titleColor},left:c.textAlign},grid:{top:c.gridTop,bottom:c.gridBottom,left:c.gridLeft,right:c.gridRight,containLabel:c.gridContainLabel},color:c.colors,tooltip:{trigger:"axis",textStyle:{fontSize:vn.value,color:c.tooltipTextStyleColor},show:c.tooltipShow,formatter:ir=>{var dr;const ur=ir.length;let or="",sr=c.tooltipFormatter;Pn=(dr=ir[0])==null?void 0:dr.data,sr===""&&(sr="{marker} {a} {c}");for(let Xn=0;Xn<ur;Xn++){const{marker:lr,seriesName:hr,name:vr,value:yr,data:br}=ir[Xn]||{};if(Xn===0){let pr=vr;typeof vr=="string"&&vr[0]==="0"&&!isNaN(+vr)&&(pr=(+vr).toString()),or+=`${Fn(er,pr)}<br/>`}or+=hn(sr,{textData:{marker:lr,name:vr,value:yr,a:hr,b:vr,c:yr||0,...br}},{useNewline:!0,useSpace:!0}),or+="<br/>"}return or},position:c.tooltipPosition||void 0},xAxis:{type:"category",boundaryGap:c.isBoundaryGap,data:vue.unref(re).map(ir=>{let ur={};return ir&&typeof ir=="object"?ur={...ir}:ur={value:ir},ur}),minInterval:c.xAxisMinInterval,splitLine:{show:c.xAxisSplitLineShow,lineStyle:{color:c.xAxisSplitLineStyleColor},interval:c.xAxisSplitLineInterval},splitArea:{show:c.xAxisSplitAreaShow},axisLabel:{show:c.xAxisLabelShow,color:c.xAxisLabelColor,interval:c.xAxisLabelInterval||0,rotate:c.xAxisLabelRotate,width:c.xAxisLabelWidth,overflow:c.xAxisLabelOverflow,fontSize:c.xAxisLabelFontSize,formatter(ir){return typeof ir=="string"&&ir[0]==="0"&&!isNaN(+ir)&&(ir=(+ir).toString()),Fn(er,ir)}},axisLine:{show:c.xAxisLineShow,lineStyle:{color:c.xAxisLineStyleColor}},axisTick:{show:c.xAxisTickShow},name:c.xAxisName,nameTextStyle:{fontSize:c.xAxisLabelFontSize,color:c.xAxisLabelColor,align:"left"},max:c.xAxisMaxValue||null},yAxis:{type:"value",minInterval:c.yAxisMinInterval,splitLine:{show:c.yAxisSplitLineShow,lineStyle:{color:c.yAxisSplitLineStyleColor,type:c.yAxisSplitLineType}},splitArea:{show:c.yAxisSplitAreaShow},axisLabel:{show:c.yAxisLabelShow,fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,formatter(ir){return Fn(Kn,ir)}},axisLine:{show:c.yAxisLineAlwaysDisplay,lineStyle:{color:c.yAxisLineStyleColor}},name:c.yAxisName,nameTextStyle:{fontSize:c.yAxisLabelFontSize,color:c.yAxisLabelColor,align:"right"},max:c.yAxisMaxValue||null},legend:{type:c.legendScroll?"scroll":"plain",width:c.legendWidth,height:c.legendHeight,show:c.legendShow,orient:c.legendOrient,top:c.legendTop,left:c.legendLeft,textStyle:{lineHeight:(g.value?ZOOM_FONT_SIZE:parseFloat(c.legendFontSize))+8,rich:{text:{width:c.legendTextWidth,color:c.legendTextStyleColor,fontSize:g.value?ZOOM_FONT_SIZE:c.legendFontSize}}},itemHeight:c.legendItemHeight,itemWidth:c.legendItemWidth,itemGap:c.legendItemGap,data:vue.unref(qn).map(ir=>({name:ir.name,icon:c.legendType})),formatter:ir=>getLegendFormat(c.legendFormatter,{name:ir})},series:vue.unref(b)}}),w=()=>{g.value=!1},{getGlobalModel:J,setGlobalModel:gn}=vue.inject(GLOBAL_MODEL,{getGlobalModel:er=>{},setGlobalModel:(er,Kn)=>{}}),Rn=vue.computed(()=>c.isShowMarkLine?{markLine:{data:[{type:c.markLineType}]}}:{}),zn=(er=[],Kn=!1)=>{var dr;let ir;if(c.dataFieldConfigType==="key"){const Xn=Kn?c.keyTypeDataFieldNames:null;ir=In(er,Xn)}else if(c.dataFieldConfigType==="value"){const Xn=Kn?c.valueTypeDataFieldNames:null;ir=Vn(er,Xn)}re.value=ir.dimensions,qn.value=ir.dataset;const ur=ir.dataset,or=[],sr=ur.length;for(let Xn=0;Xn<sr;Xn++){const lr={};c.shadowColor&&(lr.shadowColor=c.shadowColor,lr.shadowBlur=c.shadowBlur,lr.shadowOffsetY=c.shadowOffsetY,lr.shadowOffsetX=c.shadowOffsetX);let hr=c.colors[Xn];if(!hr&&c.colors.length){const vr=(Xn+1)%c.colors.length-1;hr=vr>0?c.colors[vr]:c.colors[0]}hr||(hr="#5470C6"),or.push({type:"line",...ur[Xn],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:hr},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:hr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...lr},...vue.unref(Rn)})}b.value=or,(dr=ir.dataset)!=null&&dr.length?d.value=!1:d.value=!0},Wn=(er=[],Kn,ir=!1)=>{var lr,hr,vr;const or=In(er,ir?Kn:null,!0);if(c.defaultRangeValue&&setDefaultRangeVal({props:c,componentList:vue.unref(p),getGlobalModel:J},or),(lr=or.dataset)!=null&&lr.length){for(const yr of or.dataset)if((hr=yr.data)!=null&&hr.length)for(const br of yr.data)(br.value===null||br.value===void 0)&&(br.value=0)}re.value=or.dimensions,qn.value=or.dataset;const sr=or.dataset,dr=[],Xn=sr.length;for(let yr=0;yr<Xn;yr++){const br={};c.shadowColor&&(br.shadowColor=c.shadowColor,br.shadowBlur=c.shadowBlur,br.shadowOffsetY=c.shadowOffsetY,br.shadowOffsetX=c.shadowOffsetX);let pr=c.colors[yr];if(!pr&&c.colors.length){const mr=(yr+1)%c.colors.length-1;pr=mr>0?c.colors[mr]:c.colors[0]}pr||(pr="#5470C6"),dr.push({type:"line",...sr[yr],symbolSize:c.symbolSize,smooth:c.smooth,areaStyle:{color:c.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:pr||yr%(c.colors.length||1)},{offset:1,color:c.areaGradientColor||"transparent"}],global:!1}:pr,opacity:c.areaStyleOpacity},lineStyle:{width:c.lineStyleWidth,...br},...vue.unref(Rn)})}b.value=dr,(vr=or.dataset)!=null&&vr.length?d.value=!1:d.value=!0};vue.watch(()=>[c.data,c.symbolSize,c.smooth,c.lineStyleWidth,c.areaStyleOpacity,c.areaGradientShow,c.areaGradientColor,c.shadowColor,c.shadowBlur,c.shadowOffsetY,c.shadowOffsetX,c.legendFontSize,c.isShowMarkLine,c.markLineType,c.legendFormatter,c.legendWidth,c.legendHeight,c.legendTextWidth,c.legendScroll],([er])=>{(c.dataType==="static"||vue.unref(f)==="design")&&zn(er)},{immediate:!0,deep:!0});const Yn=vue.ref(!1),Jn=useRequestData(c),tr=async()=>{var er,Kn;if(c.dataType==="request")try{Yn.value=!0;const ir=await Jn();zn((Kn=(er=ir==null?void 0:ir.data)==null?void 0:er.data)==null?void 0:Kn.rows,!0)}catch(ir){console.error(ir)}finally{Yn.value=!1}},nr=useEmitEvent(c);gn(c.id,{type:c.type,RECORD:""});const Qn=nr("click",er=>{const Kn=J(c.id);gn(c.id,{...Kn,type:c.type,RECORD:c.tooltipShow?Pn:er.data})}),ar=er=>{m.value.chart.containPixel("grid",[er.offsetX,er.offsetY])&&Qn()};c.isForbidClick||(c.tooltipShow?j.value["zr:click"]=ar:j.value.click=Qn);const cr=er=>{var dr;const{columns:Kn=[],rows:ir=[]}=((dr=er==null?void 0:er.data)==null?void 0:dr.data)??{};let ur;Kn.length>0&&(ur={name:Kn[0],types:Kn.slice(1).map(Xn=>({label:Xn,value:Xn}))});const{leftAxisList:or=[]}=c.graphicConfig,sr=or.filter(Xn=>Xn.show).map(Xn=>Xn.label);for(const Xn of ir)if(Xn)for(const lr in Xn)typeof Xn[lr]=="string"&&sr.includes(lr)&&!isNaN(parseFloat(Xn[lr]))&&(Xn[lr]=parseFloat(Xn[lr]));Wn(ir,ur,!0)},fr=useIndicatorData(c,er=>{c.isViewRedrawing&&m.value.clear(),cr(er)}),Gn=async()=>{try{Yn.value=!0;const er=await fr();cr(er)}catch(er){console.error(er)}finally{Yn.value=!1}},Zn=async()=>{switch(c.dataType){case"indicator":await Gn();break;case"request":await tr();break}};useOnEvent(c,{refreshData:Zn,resetRecord:()=>{const er=c.id,Kn=J(er);gn(er,{...Kn,RECORD:""})},click:Qn});const{setRequest:Un}=vue.inject(REQUEST_MODEL,{setRequest:er=>{}});return typeof Un=="function"&&Un({id:c.id,requestFn:Zn,sortNum:c.requestSort}),u({refreshData:Zn}),{option:Bn,style:y,click:Qn,loading:Yn,onClose:w,ecanModal:x,eventObj:j,echartRef:m,emptyData:d}}}),Line_vue_vue_type_style_index_0_lang="",Line_vue_vue_type_style_index_1_scoped_fadf491b_lang="";function _sfc_render$D(c,u,d,f,h,v){const p=vue.resolveComponent("echarts"),m=vue.resolveComponent("spin"),g=vue.resolveComponent("ecan-modal");return vue.openBlock(),vue.createElementBlock("div",{style:vue.normalizeStyle(c.style)},[vue.createVNode(m,{spinning:c.loading},{default:vue.withCtx(()=>[c.noDataTip&&c.emptyData?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:"empty-wrap",style:vue.normalizeStyle({color:c.tipTextColor,fontSize:c.tipTextFontSize})},[vue.createElementVNode("span",null,vue.toDisplayString(c.tipText),1)],4)):(vue.openBlock(),vue.createBlock(p,vue.mergeProps({key:1,ref:"echartRef",option:c.option,autoresize:""},vue.toHandlers(c.eventObj)),null,16,["option"]))]),_:1},8,["spinning"]),vue.createVNode(g,{width:"1920px",height:"1080px",ref:"ecanModal",onClose:c.onClose},{default:vue.withCtx(()=>[vue.createVNode(m,{class:"spin-wrap",spinning:c.loading},{default:vue.withCtx(()=>[vue.createVNode(p,{option:c.option,"update-options":{notMerge:!0},autoresize:""},null,8,["option"])]),_:1},8,["spinning"])]),_:1},8,["onClose"])],4)}const Line=_export_sfc$1(_sfc_main$y,[["render",_sfc_render$D],["__scopeId","data-v-fadf491b"]]),EcanLine=withInstall$1(Line);let random=c=>crypto.getRandomValues(new Uint8Array(c)),customRandom=(c,u,d)=>{let f=(2<<Math.log(c.length-1)/Math.LN2)-1,h=-~(1.6*f*u/c.length);return(v=u)=>{let p="";for(;;){let m=d(h),g=h;for(;g--;)if(p+=c[m[g]&f]||"",p.length===v)return p}}},customAlphabet=(c,u=21)=>customRandom(c,u,random),nanoid=(c=21)=>crypto.getRandomValues(new Uint8Array(c)).reduce((u,d)=>(d&=63,d<36?u+=d.toString(36):d<62?u+=(d-26).toString(36).toUpperCase():d>62?u+="-":u+="_",u),"");const _sfc_main$x=vue.defineComponent({name:"TrendModal",components:{EcanLine,CloseOutlined:CloseOutlined$1,BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{expose:u}){const d=vue.ref(!1),f=vue.ref(),h=vue.ref(),v=vue.ref(!0),p=vue.ref({}),m=vue.ref(!0),g=vue.inject("isMobile",!1),y=async({data:Bn,pageConfig:w,unitText:J})=>{if(Bn){v.value=!0,p.value=w;const{graphicConfig:gn}=Bn,Rn=nanoid(6),zn={source:"INDICATOR_LIB",dataSourceId:"",idxLibMode:"",classificationList:[{id:"3f5bda70a08a442085857adb7fc547de",indexCode:null,indexCodeNum:null,title:"日期",name:"the_date",label:"日期",typeGuid:"the_date",genericType:"DATE",hrpIndexComplexid:"the_date",scope:"BUILT_IN_DIM",fromTable:"hrp_index_complex",parentId:"3f5bda70a08a442085857adb7fc547de",show:!0,edit:!1,dataTo:"0",dateFormat:"YYYY-MM",dataSetParams:{}}],leftAxisList:(gn==null?void 0:gn.indicators)||[],controlList:(gn==null?void 0:gn.controlList)||[],variableList:(gn==null?void 0:gn.variableList)||[],variableConditions:(gn==null?void 0:gn.variableConditions)||[]};f.value={...lodashEs.cloneDeep(lineProps),id:Rn,keyName:`折线图_${Rn}`,position:"relative",top:0,left:0,width:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.width)*.57+"px",height:vue.unref(g)||vue.unref(v)?"100%":parseFloat(w.height)*.4+"px",dataType:"indicator",tooltipFormatter:"{marker} {a} {c}"+J,xAxisLabelRotate:45,yAxisLabelFormatter:J?`{value}${J}`:"{value}",isForbidClick:!0,graphicConfig:zn},d.value=!0,vue.nextTick(()=>{x(!0),vn(!0),vue.unref(h).refreshData()})}},b=()=>document.querySelector("#modalContainer")||document.body,re=vue.computed(()=>{let Bn="trend-modal";return vue.unref(g)?Bn+=" mobile":v.value&&(Bn+=" full"),c.theme==="darkBlue"&&(Bn+=" darkBlue"),Bn});vue.watch(d,Bn=>{Bn?document.documentElement.style.overflow="hidden":document.documentElement.style.overflow="hidden auto"}),vue.watch(v,Bn=>{m.value=!1,vue.unref(f).width=Bn?"100%":parseFloat(vue.unref(p).width)*.57+"px",vue.unref(f).height=Bn?"100%":parseFloat(vue.unref(p).height)*.4+"px",vue.nextTick(()=>{m.value=!0,vue.nextTick(()=>{vue.unref(h).refreshData()})})});const x=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");w&&(Bn?w.addEventListener("dblclick",Pn):w.removeEventListener("dblclick",Pn))},vn=Bn=>{const w=document.querySelector(".trend-modal .ant-modal-header");if(w)if(Bn)w.addEventListener("mousedown",j);else{const J=w.parentElement;J&&(J.style.left="",J.style.top=""),w.removeEventListener("mousedown",j)}};function j(Bn){dragModalAction(Bn,".trend-modal .ant-modal-header")}const Pn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?vn(!1):vn(!0)})},qn=()=>{x(!1),vn(!1)};return vue.onMounted(()=>{var Bn,w;if(vue.unref(g)){const J=document.querySelector("#modalContainer");v.value=!0,(Bn=J==null?void 0:J.style)==null||Bn.setProperty("--window-screen-width",document.body.clientWidth+"px"),(w=J==null?void 0:J.style)==null||w.setProperty("--window-screen-height",document.body.clientHeight+"px")}}),u({showModal:y}),{visible:d,componentConfig:f,lineRef:h,wrapClassName:re,isMobile:g,isIndFullScreen:v,isRender:m,getContainer:b,toggleFullScreen:Pn,onDetailCancel:qn}}}),TrendModal_vue_vue_type_style_index_0_scoped_a24645dd_lang="",TrendModal_vue_vue_type_style_index_1_lang="",_withScopeId$8=c=>(vue.pushScopeId("data-v-a24645dd"),c=c(),vue.popScopeId(),c),_hoisted_1$o=_withScopeId$8(()=>vue.createElementVNode("div",{class:"modal-title"},"趋势图",-1)),_hoisted_2$e={class:"zoom-btn"};function _sfc_render$C(c,u,d,f,h,v){const p=vue.resolveComponent("close-outlined"),m=vue.resolveComponent("switcher-outlined"),g=vue.resolveComponent("border-outlined"),y=vue.resolveComponent("ecan-line"),b=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(b,{visible:c.visible,"onUpdate:visible":u[0]||(u[0]=re=>c.visible=re),width:"60%",getContainer:c.getContainer,footer:null,destroyOnClose:!0,bodyStyle:{maxHeight:c.isMobile||c.isIndFullScreen?"":"70vh",height:c.isMobile||c.isIndFullScreen?"100vh":"",overflow:"auto",padding:"20px 24px 24px"},"wrap-class-name":c.wrapClassName,onCancel:c.onDetailCancel},{title:vue.withCtx(()=>[_hoisted_1$o]),closeIcon:vue.withCtx(()=>[vue.createVNode(p,{class:vue.normalizeClass(["close-icon",c.theme])},null,8,["class"])]),default:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_2$e,[!c.isMobile&&c.isIndFullScreen?(vue.openBlock(),vue.createBlock(m,{key:0,class:vue.normalizeClass(["modal-icon",c.theme]),title:"取消全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"])):c.isMobile?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createBlock(g,{key:1,class:vue.normalizeClass(["modal-icon",c.theme]),title:"全屏",onClick:c.toggleFullScreen},null,8,["class","onClick"]))]),c.componentConfig&&c.isRender?(vue.openBlock(),vue.createBlock(y,vue.mergeProps({key:0},c.componentConfig,{ref:"lineRef"}),null,16)):vue.createCommentVNode("",!0)]),_:1},8,["visible","getContainer","bodyStyle","wrap-class-name","onCancel"])}const TrendModal=_export_sfc$1(_sfc_main$x,[["render",_sfc_render$C],["__scopeId","data-v-a24645dd"]]),pivotTableProps={...props$1,name:"透视表",keyName:"透视表",width:"800px",height:"400px",type:"ecanPivotTable",graphicConfig:{},dataType:"indicator",data:[],dimensionList:[],indicatorList:[],styleConfig:{borderColor:"#E3E3E3",headerBgColor:"#ECF1F5",headerColor:"#000000",bodyBgColor:"#FFFFFF",bodyColor:"#000000",indicatorsHeaderBgColor:"#ECF1F5",indicatorsHeaderColor:"#000000",indicatorsBodyBgColor:"#FFFFFF",indicatorsBodyColor:"#000000",aggregateBgColor:"#ECF1F5",aggregateColor:"#000000",sortNotActiveColor:"#CCCCCC",sortActiveColor:"#416EFF",dropDownMenuBgColor:"#FFFFFF",dropDownMenuColor:"#141414",dropDownMenuHightLightColor:"#2E68CF"},configMode:"halfMode"},pivotTableComponentProps=transformToComponentProps(pivotTableProps),pivotTableEvents=["refreshData"];var zhCn={exports:{}};(function(c,u){(function(d,f){c.exports=f(dayjs)})(commonjsGlobal,function(d){function f(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var h=f(d),v={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(p,m){return m==="W"?p+"周":p+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(p,m){var g=100*p+m;return g<600?"凌晨":g<900?"早上":g<1100?"上午":g<1300?"中午":g<1800?"下午":"晚上"}};return h.default.locale(v,null,!0),v})})(zhCn);const _imports_0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAABHNCSVQICAgIfAhkiAAABE1JREFUaEPdWk1sTUEUdtmxEREWVMtay0LSxoqIhaBsRBC8IIQgCI1/9S+StuI3EWmIIGLTVtiI6IaQWEhqZeHfgpVI2Mnzfc+ZZzrv3ndn5s57rzXJl/vevffMnG/OOTNnZm40IkDJ5/NjUc0SoAGYD9QDk42qP+P/B+AR8B7ojaLoe9bmI98KROm1kN8gir/C9RPwGvgKfDPqnoD/E4HpQB0wU4hcw/WGLxlnAlCcvbwTyAHPgZdy9emLFgjNAni9DnSBCK1jXZwIQPkjqHkj8ERg9rJ1wzHWmYt7xFWQOGpbkRUBKE5z3wR+AN1AKMVNPelm24CRQKuNNVIJQHm6ykngHvDYtmcyvjcP8suAAyBB10osZQmI8hcgfRB4m1EpV/FpEDhBi5QjkUhAlN+HCi7XQHlFliS2AKeTSMQSqHHPm5ZSllgNEj3mwxICErAP8OLZGvZ8HIljuDnDDOw4AgMSrNUKWNvYaMWLzSDQpAsMIoDeb8fDpcAh21qr/N5xtNcDEtSzUIoEZIZ9inuHgUqN81n5cp7o1F1JJ3AeD8YBd7O2UmH55YxNWIEd/dcCkpgxU9wE/HRUYKq8/65KcsoK9UwAFYEdaHwBcNFDiVMisx9XWxIk7SOn1NuKH3c4NygCHHn6AGaXtkUpMUYEaDkbEr5yul7MXpkrNUbiPszjV9pqLu+ZivB2Gok4GVqNxF1d9zZk6kgghx/rAU5crsWFREjlqWcb0EECHH3G06dctXewRGjl2fQK4A0JcOxn6sA48C3lLME6GbAqVvjf1210/RrxZyEJ0P/bgayTVxIJNhpaedbJJG83CeTxg3lGiBJHQq83RM/r9fWFJsDKk0iEVp5tVZVA2hDr4wHBCaS5UGgSBQLcMeN2SSWCmG7D3EUP4lAkGMR7KjmMKp8nAXMYDUGiOIyek14KOZGZAesyY9vGQnEiy0EiZCqRNNqEJlFMJbiz/BFYZUtd3vNJD0KSuAU9pmRJpxmY9G19QWOTVZokfOaHf+k0exMjke+CRpFgNTbKKyMrEhz5XOSUfMmCRrkRt81dh1N9QePihSTBtlzXARzVugruo5aUYoXhsqhfB30HBi3qhUADrsNhW4W936R26P6fjS3lvAjooby12MKFvB5ocXujPI0Zipu73FYsuo4iUUJA4iGHK4Oae6TVPtgwRzImbVR+jdX2uuZKJLEXuFJDElR+M3DG6YDDIFErS6ie3+51xKSR4Hb7JeAhwN27ahSu0bmJG+s2ZYM4TjvZer+PZ78BHvq5zta2pNUx6ygILA5yzKq3LAcgu3CvF+gPSISKLwJ4vNqpH2CkMY8dhcoJiTVIIgc8A/ipwYu0hhKeN+M+PzWYDXBh1W3T684ulOBWTABJgoshfp3Cjz24vuZE+Aswh18G5WiAExG/ZOF8wzOJDoDHRl5frjhboAyZOaKU+txmkvHuF1GYn9uQbL+v0nq9fwCcDKEjLNL6QQAAAABJRU5ErkJggg==",CustomModal_vue_vue_type_style_index_0_scoped_f23e75be_lang="",CustomModal_vue_vue_type_style_index_1_lang="";dayjs.locale("zh-cn");const _sfc_main$w=vue.defineComponent({name:"LastDetail",components:{BorderOutlined:BorderOutlined$1,SwitcherOutlined:SwitcherOutlined$1,CloseOutlined:CloseOutlined$1},props:{theme:{type:String,default:"light"}},setup(c,{emit:u,expose:d}){const f=window.screen.height*.6,h=`cutmodal_${nanoid(6)}`,v=vue.ref(!0),p=vue.ref(!1),m=vue.ref(""),g=vue.ref(""),y=vue.ref(""),b=vue.inject("isMobile",!1);vue.computed(()=>INDICATOR_URL);const re=()=>document.querySelector("#modalContainer")||document.body,x=Rn=>{const zn=document.querySelector(`.${h} .ant-modal-header`);if(zn)if(Rn)zn.addEventListener("mousedown",j);else{const Wn=zn.parentElement;Wn&&(Wn.style.left="",Wn.style.top=""),zn.removeEventListener("mousedown",j)}},vn=Rn=>{const zn=document.querySelector(`.${h} .ant-modal-header`);zn&&(Rn?zn.addEventListener("dblclick",Pn):zn.removeEventListener("dblclick",Pn))},j=Rn=>{dragModalAction(Rn,`.${h} .ant-modal-header`)},Pn=()=>{v.value=!v.value,vue.nextTick(()=>{v.value?x(!1):x(!0)})},qn=()=>{vn(!1),x(!1),u("close")};async function Bn(Rn){var Jn;p.value=!0,(Jn=window==null?void 0:window.config)!=null&&Jn.indicatorToken;const{record:zn,linkUrl:Wn,title:Yn}=Rn;if(y.value=Yn,Wn){v.value=!0,m.value=Wn;const tr=[],nr=["orgCode","visitId","mpiId"];for(const Qn in zn)nr.includes(Qn)&&tr.push(`${Qn}=${zn[Qn]}`);g.value=tr.join("&")}vue.nextTick(()=>{vn(!0)})}const w=vue.computed(()=>{let Rn=`custom-content-modal ${h}`;return(vue.unref(b)||v.value)&&(Rn+=" full"),c.theme==="darkBlue"&&(Rn+=" darkBlue"),Rn}),J=vue.computed(()=>vue.unref(b)?{padding:"10px 0"}:{height:vue.unref(v)?"":f+48+"px",overflow:"hidden"}),gn=()=>{p.value=!1,qn()};return d({showModal:Bn,visible:p}),{visible:p,wrapClassName:w,detailBodyStyle:J,isMobile:b,urlJsonStr:g,linkUrl:m,isIndFullScreen:v,modalTitle:y,handleClose:gn,getContainer:re,onCancel:qn,toggleFullScreen:Pn}}}),_withScopeId$7=c=>(vue.pushScopeId("data-v-f23e75be"),c=c(),vue.popScopeId(),c),_hoisted_1$n=_withScopeId$7(()=>vue.createElementVNode("img",{src:_imports_0,alt:"",width:"48",height:"48"},null,-1)),_hoisted_2$d=[_hoisted_1$n],_hoisted_3$7=["src"];function _sfc_render$B(c,u,d,f,h,v){const p=vue.resolveComponent("a-modal");return vue.openBlock(),vue.createBlock(p,{wrapClassName:c.wrapClassName,visible:c.visible,"onUpdate:visible":u[1]||(u[1]=m=>c.visible=m),width:"60%",destroyOnClose:!0,footer:null,bodyStyle:c.detailBodyStyle,getContainer:c.getContainer,closable:!1,onCancel:c.onCancel},{default:vue.withCtx(()=>[vue.createElementVNode("div",{class:"custom-close-icon",onClick:u[0]||(u[0]=(...m)=>c.handleClose&&c.handleClose(...m))},_hoisted_2$d),c.linkUrl&&c.urlJsonStr?(vue.openBlock(),vue.createElementBlock("iframe",{key:0,src:`${c.linkUrl}${c.linkUrl.includes("?")?"&":"?"}${c.urlJsonStr}`,frameborder:"0",width:"100%",height:"100%"},`\r
103
+ `,8,_hoisted_3$7)):vue.createCommentVNode("",!0)]),_:1},8,["wrapClassName","visible","bodyStyle","getContainer","onCancel"])}const CustomModal=_export_sfc$1(_sfc_main$w,[["render",_sfc_render$B],["__scopeId","data-v-f23e75be"]]);/**!
104
104
  * Sortable 1.10.2
105
105
  * @author RubaXa <trash@rubaxa.org>
106
106
  * @author owenm <owen23355@gmail.com>