@ecan-bi/indicator-library 1.0.95 → 1.0.96

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,5 +1,5 @@
1
- /*! @ecan-bi/indicator-library@1.0.95 */
2
- (function(be,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("vuedraggable"),require("dayjs"),require("ant-design-vue/es/popover/style"),require("ant-design-vue/es/dropdown/style"),require("ant-design-vue/es/table/style"),require("monaco-editor"),require("ant-design-vue/es/collapse/style"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","vuedraggable","dayjs","ant-design-vue/es/popover/style","ant-design-vue/es/dropdown/style","ant-design-vue/es/table/style","monaco-editor","ant-design-vue/es/collapse/style","echarts"],e):(be=typeof globalThis<"u"?globalThis:be||self,e(be["@ecan-bi/indicator-library"]={},be.Vue,be.LodashEs,be.AntDesignVue,be.Draggable,be.Dayjs,null,null,null,be.MonacoEditor,null,be.Echarts))})(this,function(be,e,ee,j,Lt,ye,hy,by,yy,Jr,gy,Zr){var Qr;"use strict";function ei(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const ti=ei(Zr),da=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Be="$request",_e=((Qr=window==null?void 0:window.config)==null?void 0:Qr.indicatorURL)||"",Le="INDICATOR_TOKEN",pa="DATA_LIST",Ie="SELECTED_COMPONENT",Ce="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",ua="SHOW_STYLE_CONFIG",fa="REFRESH_DATA",wo="CHARTS_OPTIONS",ma="TABLE_OPTIONS",oi=18,Ko="UPDATE_CHARTS_OPTIONS",Xo="UPDATE_TABLE_OPTIONS",Xt="SOURCE_TYPE",ko="CHANGE_CONDITION",ha="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",xo="UPDATE_USED_COMPONENT",ba="MAP_ATTRIBUTE_PROPS",ya="PAGE_CONFIG",Qo="IS_PIVOT_TABLE",ga="IS_IFRAME_MODE",Jo={bar:{name:"柱状图",type:"bar",width:"400px",height:"400px",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,stackColumns:[],labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,colorsType:"默认"},line:{name:"折线图",type:"line",width:"400px",height:"400px",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",legendCustomPosition:!1,legendTextStyleColor:"#333",legendTextStyleFontSize:"12px",legendTextItemGap:10,legendTopPadding:10,legendBottomPadding:10,legendLeftPadding:10,legendRightPadding:10,titleText:"",titleSubtext:"",symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisName:"",xAxisType:"category",xAxisShow:!0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisName:"",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,yAxisLabelFormatter:"{value}",yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLineShow:!0,yAxisSplitAreaShow:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,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,xAxisMaxValue:null,yAxisMaxValue:null},pie:{name:"饼图",type:"pie",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",backgroundColor:"",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",labelWidth:100,labelOverflow:"none",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",graphicConfig:{},legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},customGraph:{name:"自定义图表",type:"customGraph",width:"400px",height:"400px",option:{},optionCode:""},comboGraph:{name:"组合图表",type:"comboGraph",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"}},ni={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},ai=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Lt},setup(){var T;const t=e.inject(Be),o=e.unref(e.inject(Le)),n=e.inject(Ce),a=e.inject(Ae),l=e.computed(()=>{var w;return((w=e.unref(n))==null?void 0:w.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),d=(T=window==null?void 0:window.config)==null?void 0:T.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),c=async()=>{var _,S;const w=l.value;r.value=!0;try{const{data:N}=await t.post(`${_e}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,N.success&&((_=s.value)==null||_.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([N.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],_)=>{const S=[];return w.forEach(N=>{S.push({id:N.id,pId:_??N.parentId,value:N.id,title:N.name,isLeaf:N.leaf||!1,nature:N.nature,selectable:N.leaf||!1})}),S},u=async(w,_)=>{var I;let S=0;if(w){const{value:F}=w.dataRef;S=F}const{data:N}=await t.post(`${_e}/dataview/treetable`,{pageFlag:!0,pageId:d,parentId:S},{headers:{Authentication:o,operateContext:"ygt"}});N.success&&(s.value=(I=e.unref(s))==null?void 0:I.concat(p(N.data)),_&&e.unref(l)&&await c())},f=w=>{h(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:y}=e.inject(pa,{setDataList:w=>w}),b=e.ref(!1),m=e.ref([]),h=async w=>{if(w){m.value=[],b.value=!0;try{const _=await t.post(`${_e}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:d,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:N={}}=_.data;if(b.value=!1,S){const{rows:I=[]}=N;I==null||I.forEach(F=>{var R;const A=((R=F==null?void 0:F.dataViewColumns)==null?void 0:R.map(v=>({...v,show:!0})))||[];m.value=[...e.unref(m),...A]}),y(e.unref(m))}}catch{b.value=!1}}},C=w=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[w],g=(w,_)=>{const S=_[w.oldIndex];if(S){const N={...S,label:S.name,name:S.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(N))}};return e.onMounted(async()=>{await u(void 0,!0),h(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:m,dataViewLoading:b,onDataViewIdChange:f,mapGenericType:C,onDragStart:g}}}),Sy="",ae=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},li={class:"data-view-list"},ri={class:"columns"},ii={class:"column-item"},si={class:"column-item-name"};function ci(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),d=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",li,[e.createVNode(d,{"wrapper-class-name":"tree-spin",spinning:t.treeSelectLoading,tip:"视图加载中..."},{default:e.withCtx(()=>[e.createVNode(s,{value:t.dataViewId,style:{width:"100%"},placeholder:"请选择视图","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeSelectData,"load-data":t.handleLoadData,"tree-data-simple-mode":"",onChange:t.onDataViewIdChange},null,8,["value","tree-data","load-data","onChange"])]),_:1},8,["spinning"]),e.createElementVNode("div",ri,[e.createVNode(d,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=c=>t.dataViewList=c),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=c=>t.onDragStart(c,t.dataViewList))},{item:e.withCtx(({element:c})=>[e.createElementVNode("div",ii,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(c.genericType))+"】 ",1),e.createElementVNode("span",si,e.toDisplayString(c.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const di=ae(ai,[["render",ci],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){pi(t)&&(t="100%");var n=ui(t);return t=o===360?t:Math.min(o,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*o),10)/100),Math.abs(t-o)<1e-6?1:(o===360?t=(t<0?t%o+o:t%o)/parseFloat(String(o)):t=t%o/parseFloat(String(o)),t)}function pi(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function ui(t){return typeof t=="string"&&t.indexOf("%")!==-1}function fi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function _o(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Zo(t){return t.length===1?"0"+t:String(t)}function mi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function en(t,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(o-t)*(6*n):n<1/2?o:n<2/3?t+(o-t)*(2/3-n)*6:t}function hi(t,o,n){var a,l,r;if(t=De(t,360),o=De(o,100),n=De(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,d=2*n-s;a=en(d,s,t+1/3),l=en(d,s,t),r=en(d,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function bi(t,o,n){t=De(t,255),o=De(o,255),n=De(n,255);var a=Math.max(t,o,n),l=Math.min(t,o,n),r=0,s=a,d=a-l,i=a===0?0:d/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/d+(o<n?6:0);break;case o:r=(n-t)/d+2;break;case n:r=(t-o)/d+4;break}r/=6}return{h:r,s:i,v:s}}function yi(t,o,n){t=De(t,360)*6,o=De(o,100),n=De(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),d=n*(1-(1-l)*o),i=a%6,c=[n,s,r,r,d,n][i],p=[d,n,n,s,r,r][i],u=[r,r,d,n,n,s][i];return{r:c*255,g:p*255,b:u*255}}function gi(t,o,n,a){var l=[Zo(Math.round(t).toString(16)),Zo(Math.round(o).toString(16)),Zo(Math.round(n).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function Ca(t){return Ve(t)/255}function Ve(t){return parseInt(t,16)}var wa={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 Qt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,d=!1;return typeof t=="string"&&(t=ki(t)),typeof t=="object"&&(ot(t.r)&&ot(t.g)&&ot(t.b)?(o=mi(t.r,t.g,t.b),s=!0,d=String(t.r).substr(-1)==="%"?"prgb":"rgb"):ot(t.h)&&ot(t.s)&&ot(t.v)?(a=_o(t.s),l=_o(t.v),o=yi(t.h,a,l),s=!0,d="hsv"):ot(t.h)&&ot(t.s)&&ot(t.l)&&(a=_o(t.s),r=_o(t.l),o=hi(t.h,a,r),s=!0,d="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=fi(n),{ok:s,format:t.format||d,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var Ci="[-\\+]?\\d+%?",wi="[-\\+]?\\d*\\.\\d+%?",st="(?:".concat(wi,")|(?:").concat(Ci,")"),tn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),on="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+tn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+tn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+tn),hsva:new RegExp("hsva"+on),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function ki(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(wa[t])t=wa[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ge.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ge.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ge.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Ge.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ge.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Ge.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ge.hex8.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),a:Ca(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Ve(n[1]),g:Ve(n[2]),b:Ve(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),a:Ca(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Ve(n[1]+n[1]),g:Ve(n[2]+n[2]),b:Ve(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function ot(t){return!!Ge.CSS_UNIT.exec(String(t))}var So=2,ka=.16,xi=.05,_i=.05,Si=.15,xa=5,_a=4,Ti=[{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 Sa(t){var o=t.r,n=t.g,a=t.b,l=bi(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function To(t){var o=t.r,n=t.g,a=t.b;return"#".concat(gi(o,n,a,!1))}function Ni(t,o,n){var a=n/100,l={r:(o.r-t.r)*a+t.r,g:(o.g-t.g)*a+t.g,b:(o.b-t.b)*a+t.b};return l}function Ta(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-So*o:Math.round(t.h)+So*o:a=n?Math.round(t.h)+So*o:Math.round(t.h)-So*o,a<0?a+=360:a>=360&&(a-=360),a}function Na(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-ka*o:o===_a?a=t.s+ka:a=t.s+xi*o,a>1&&(a=1),n&&o===xa&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Aa(t,o,n){var a;return n?a=t.v+_i*o:a=t.v-Si*o,a>1&&(a=1),Number(a.toFixed(2))}function nn(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Qt(t),l=xa;l>0;l-=1){var r=Sa(a),s=To(Qt({h:Ta(r,l,!0),s:Na(r,l,!0),v:Aa(r,l,!0)}));n.push(s)}n.push(To(a));for(var d=1;d<=_a;d+=1){var i=Sa(a),c=To(Qt({h:Ta(i,d),s:Na(i,d),v:Aa(i,d)}));n.push(c)}return o.theme==="dark"?Ti.map(function(p){var u=p.index,f=p.opacity,y=To(Ni(Qt(o.backgroundColor||"#141414"),Qt(n[u]),f*100));return y}):n}var an={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ln={},rn={};Object.keys(an).forEach(function(t){ln[t]=nn(an[t]),ln[t].primary=ln[t][5],rn[t]=nn(an[t],{theme:"dark",backgroundColor:"#141414"}),rn[t].primary=rn[t][5]});var Oa=[],Jt=[],Ai="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Oi(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Ei(t,o){if(o=o||{},t===void 0)throw new Error(Ai);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Oa.indexOf(a);l===-1&&(l=Oa.push(a)-1,Jt[l]={});var r;return Jt[l]!==void 0&&Jt[l][n]!==void 0?r=Jt[l][n]:(r=Jt[l][n]=Oi(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),t.charCodeAt(0)===65279&&(t=t.substr(1,t.length)),r.styleSheet?r.styleSheet.cssText+=t:r.textContent+=t,r}function Ea(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Bi(t,l,n[l])})}return t}function Bi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Li(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Vi(t,o){Li(t,"[@ant-design/icons-vue] ".concat(o))}function Ba(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function sn(t,o,n){return n?e.h(t.tag,Ea({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Ea({key:o},t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function La(t){return nn(t)[0]}function Va(t){return t?Array.isArray(t)?t:[t]:[]}var Fi=`
1
+ /*! @ecan-bi/indicator-library@1.0.96 */
2
+ (function(he,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es"),require("ant-design-vue"),require("vuedraggable"),require("dayjs"),require("ant-design-vue/es/popover/style"),require("ant-design-vue/es/dropdown/style"),require("ant-design-vue/es/table/style"),require("monaco-editor"),require("ant-design-vue/es/collapse/style"),require("echarts")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","ant-design-vue","vuedraggable","dayjs","ant-design-vue/es/popover/style","ant-design-vue/es/dropdown/style","ant-design-vue/es/table/style","monaco-editor","ant-design-vue/es/collapse/style","echarts"],e):(he=typeof globalThis<"u"?globalThis:he||self,e(he["@ecan-bi/indicator-library"]={},he.Vue,he.LodashEs,he.AntDesignVue,he.Draggable,he.Dayjs,null,null,null,he.MonacoEditor,null,he.Echarts))})(this,function(he,e,ee,j,Et,be,xy,_y,Sy,Zr,Ty,ei){var Jr;"use strict";function ti(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(o,n,a.get?a:{enumerable:!0,get:()=>t[n]})}}return o.default=t,Object.freeze(o)}const oi=ti(ei),da=(t,o)=>{if(t.install=n=>{for(const a of[t,...Object.values(o??{})])n.component(a.name,a)},o)for(const[n,a]of Object.entries(o))t[n]=a;return t},Be="$request",Se=((Jr=window==null?void 0:window.config)==null?void 0:Jr.indicatorURL)||"",Ve="INDICATOR_TOKEN",pa="DATA_LIST",ve="SELECTED_COMPONENT",ge="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",ua="SHOW_STYLE_CONFIG",fa="REFRESH_DATA",wo="CHARTS_OPTIONS",ma="TABLE_OPTIONS",ni=18,Ko="UPDATE_CHARTS_OPTIONS",Xo="UPDATE_TABLE_OPTIONS",Kt="SOURCE_TYPE",ko="CHANGE_CONDITION",ha="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",xo="UPDATE_USED_COMPONENT",ba="UPDATE_COMPONENTS_CONFIG",ya="MAP_ATTRIBUTE_PROPS",ga="PAGE_CONFIG",Qo="IS_PIVOT_TABLE",Ca="IS_IFRAME_MODE",Jo={bar:{name:"柱状图",type:"bar",width:"400px",height:"400px",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelWidth:void 0,yAxisLabelRotate:0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,stackColumns:[],labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,colorsType:"默认"},line:{name:"折线图",type:"line",width:"400px",height:"400px",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendOrient:"horizontal",legendTop:"top",legendLeft:"center",legendCustomPosition:!1,legendTextStyleColor:"#333",legendTextStyleFontSize:"12px",legendTextItemGap:10,legendTopPadding:10,legendBottomPadding:10,legendLeftPadding:10,legendRightPadding:10,titleText:"",titleSubtext:"",symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisName:"",xAxisType:"category",xAxisShow:!0,xAxisLabelWidth:void 0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisName:"",yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,yAxisLabelFormatter:"{value}",yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",toolboxShow:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLineShow:!0,yAxisSplitAreaShow:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,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,xAxisMaxValue:null,yAxisMaxValue:null},pie:{name:"饼图",type:"pie",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",backgroundColor:"",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",labelWidth:100,labelOverflow:"none",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",graphicConfig:{},legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1},customGraph:{name:"自定义图表",type:"customGraph",width:"400px",height:"400px",option:{},optionCode:""},comboGraph:{name:"组合图表",type:"comboGraph",width:"400px",height:"400px",titleText:"",titleSubtext:"",colors:["#FFBF53","#04B1C2","#F07474","#C55784","#9A5FB3","#CF62D7","#5E78EA","#51B3F0","#69D4DC","#49B788","#9CCC66","#C18C00"],colorsType:"默认",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",tooltipBorderColor:"#333",tooltipBackgroundColor:"#fff",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisLabelRotate:0,xAxisLabelOverflow:"none",xAxisLabelWidth:void 0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelShow:!0,seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",toolboxShow:!1,toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%"}},ai={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},li=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Et},setup(){var N;const t=e.inject(Be),o=e.unref(e.inject(Ve)),n=e.inject(ge),a=e.inject(Ae),l=e.computed(()=>{var w;return((w=e.unref(n))==null?void 0:w.dataViewId)||null}),r=e.ref(!1),s=e.ref([]),c=(N=window==null?void 0:window.config)==null?void 0:N.pageId,i=e.reactive({title:"已选",value:"YXJG",id:"YXJG",pId:"0",disabled:!0,selectable:!1,isLeaf:!0}),d=async()=>{var x,S;const w=l.value;r.value=!0;try{const{data:A}=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,A.success&&((x=s.value)==null||x.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([A.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],x)=>{const S=[];return w.forEach(A=>{S.push({id:A.id,pId:x??A.parentId,value:A.id,title:A.name,isLeaf:A.leaf||!1,nature:A.nature,selectable:A.leaf||!1})}),S},u=async(w,x)=>{var v;let S=0;if(w){const{value:D}=w.dataRef;S=D}const{data:A}=await t.post(`${Se}/dataview/treetable`,{pageFlag:!0,pageId:c,parentId:S},{headers:{Authentication:o,operateContext:"ygt"}});A.success&&(s.value=(v=e.unref(s))==null?void 0:v.concat(p(A.data)),x&&e.unref(l)&&await d())},m=w=>{f(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:g}=e.inject(pa,{setDataList:w=>w}),C=e.ref(!1),b=e.ref([]),f=async w=>{if(w){b.value=[],C.value=!0;try{const x=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:A={}}=x.data;if(C.value=!1,S){const{rows:v=[]}=A;v==null||v.forEach(D=>{var R;const T=((R=D==null?void 0:D.dataViewColumns)==null?void 0:R.map($=>({...$,show:!0})))||[];b.value=[...e.unref(b),...T]}),g(e.unref(b))}}catch{C.value=!1}}},h=w=>({TEXT:"字符",NUMBER:"数字",DATE:"时间"})[w],y=(w,x)=>{const S=x[w.oldIndex];if(S){const A={...S,label:S.name,name:S.label};sessionStorage.setItem("indicator-list-item",JSON.stringify(A))}};return e.onMounted(async()=>{await u(void 0,!0),f(e.unref(l))}),{dataViewId:l,handleLoadData:u,treeSelectData:s,treeSelectLoading:r,dataViewList:b,dataViewLoading:C,onDataViewIdChange:m,mapGenericType:h,onDragStart:y}}}),Vy="",ae=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},ri={class:"data-view-list"},ii={class:"columns"},si={class:"column-item"},ci={class:"column-item-name"};function di(t,o,n,a,l,r){const s=e.resolveComponent("a-tree-select"),c=e.resolveComponent("a-spin"),i=e.resolveComponent("draggable");return e.openBlock(),e.createElementBlock("div",ri,[e.createVNode(c,{"wrapper-class-name":"tree-spin",spinning:t.treeSelectLoading,tip:"视图加载中..."},{default:e.withCtx(()=>[e.createVNode(s,{value:t.dataViewId,style:{width:"100%"},placeholder:"请选择视图","dropdown-style":{maxHeight:"400px",overflow:"auto"},"tree-data":t.treeSelectData,"load-data":t.handleLoadData,"tree-data-simple-mode":"",onChange:t.onDataViewIdChange},null,8,["value","tree-data","load-data","onChange"])]),_:1},8,["spinning"]),e.createElementVNode("div",ii,[e.createVNode(c,{spinning:t.dataViewLoading,tip:"数据加载中..."},{default:e.withCtx(()=>[e.createVNode(i,{modelValue:t.dataViewList,"onUpdate:modelValue":o[0]||(o[0]=d=>t.dataViewList=d),group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,onStart:o[1]||(o[1]=d=>t.onDragStart(d,t.dataViewList))},{item:e.withCtx(({element:d})=>[e.createElementVNode("div",si,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(d.genericType))+"】 ",1),e.createElementVNode("span",ci,e.toDisplayString(d.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const pi=ae(li,[["render",di],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){ui(t)&&(t="100%");var n=fi(t);return t=o===360?t:Math.min(o,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*o),10)/100),Math.abs(t-o)<1e-6?1:(o===360?t=(t<0?t%o+o:t%o)/parseFloat(String(o)):t=t%o/parseFloat(String(o)),t)}function ui(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function fi(t){return typeof t=="string"&&t.indexOf("%")!==-1}function mi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function _o(t){return t<=1?"".concat(Number(t)*100,"%"):t}function Zo(t){return t.length===1?"0"+t:String(t)}function hi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function en(t,o,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(o-t)*(6*n):n<1/2?o:n<2/3?t+(o-t)*(2/3-n)*6:t}function bi(t,o,n){var a,l,r;if(t=De(t,360),o=De(o,100),n=De(n,100),o===0)l=n,r=n,a=n;else{var s=n<.5?n*(1+o):n+o-n*o,c=2*n-s;a=en(c,s,t+1/3),l=en(c,s,t),r=en(c,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function yi(t,o,n){t=De(t,255),o=De(o,255),n=De(n,255);var a=Math.max(t,o,n),l=Math.min(t,o,n),r=0,s=a,c=a-l,i=a===0?0:c/a;if(a===l)r=0;else{switch(a){case t:r=(o-n)/c+(o<n?6:0);break;case o:r=(n-t)/c+2;break;case n:r=(t-o)/c+4;break}r/=6}return{h:r,s:i,v:s}}function gi(t,o,n){t=De(t,360)*6,o=De(o,100),n=De(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),c=n*(1-(1-l)*o),i=a%6,d=[n,s,r,r,c,n][i],p=[c,n,n,s,r,r][i],u=[r,r,c,n,n,s][i];return{r:d*255,g:p*255,b:u*255}}function Ci(t,o,n,a){var l=[Zo(Math.round(t).toString(16)),Zo(Math.round(o).toString(16)),Zo(Math.round(n).toString(16))];return a&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0):l.join("")}function wa(t){return Le(t)/255}function Le(t){return parseInt(t,16)}var ka={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 Xt(t){var o={r:0,g:0,b:0},n=1,a=null,l=null,r=null,s=!1,c=!1;return typeof t=="string"&&(t=xi(t)),typeof t=="object"&&(et(t.r)&&et(t.g)&&et(t.b)?(o=hi(t.r,t.g,t.b),s=!0,c=String(t.r).substr(-1)==="%"?"prgb":"rgb"):et(t.h)&&et(t.s)&&et(t.v)?(a=_o(t.s),l=_o(t.v),o=gi(t.h,a,l),s=!0,c="hsv"):et(t.h)&&et(t.s)&&et(t.l)&&(a=_o(t.s),r=_o(t.l),o=bi(t.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=mi(n),{ok:s,format:t.format||c,r:Math.min(255,Math.max(o.r,0)),g:Math.min(255,Math.max(o.g,0)),b:Math.min(255,Math.max(o.b,0)),a:n}}var wi="[-\\+]?\\d+%?",ki="[-\\+]?\\d*\\.\\d+%?",it="(?:".concat(ki,")|(?:").concat(wi,")"),tn="[\\s|\\(]+(".concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")\\s*\\)?"),on="[\\s|\\(]+(".concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")[,|\\s]+(").concat(it,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(it),rgb:new RegExp("rgb"+tn),rgba:new RegExp("rgba"+on),hsl:new RegExp("hsl"+tn),hsla:new RegExp("hsla"+on),hsv:new RegExp("hsv"+tn),hsva:new RegExp("hsva"+on),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function xi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(ka[t])t=ka[t],o=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Ge.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Ge.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Ge.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Ge.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Ge.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Ge.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Ge.hex8.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),a:wa(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Le(n[1]),g:Le(n[2]),b:Le(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),a:wa(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Le(n[1]+n[1]),g:Le(n[2]+n[2]),b:Le(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function et(t){return!!Ge.CSS_UNIT.exec(String(t))}var So=2,xa=.16,_i=.05,Si=.05,Ti=.15,_a=5,Sa=4,Ni=[{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 Ta(t){var o=t.r,n=t.g,a=t.b,l=yi(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function To(t){var o=t.r,n=t.g,a=t.b;return"#".concat(Ci(o,n,a,!1))}function Ai(t,o,n){var a=n/100,l={r:(o.r-t.r)*a+t.r,g:(o.g-t.g)*a+t.g,b:(o.b-t.b)*a+t.b};return l}function Na(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-So*o:Math.round(t.h)+So*o:a=n?Math.round(t.h)+So*o:Math.round(t.h)-So*o,a<0?a+=360:a>=360&&(a-=360),a}function Aa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-xa*o:o===Sa?a=t.s+xa:a=t.s+_i*o,a>1&&(a=1),n&&o===_a&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ea(t,o,n){var a;return n?a=t.v+Si*o:a=t.v-Ti*o,a>1&&(a=1),Number(a.toFixed(2))}function nn(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Xt(t),l=_a;l>0;l-=1){var r=Ta(a),s=To(Xt({h:Na(r,l,!0),s:Aa(r,l,!0),v:Ea(r,l,!0)}));n.push(s)}n.push(To(a));for(var c=1;c<=Sa;c+=1){var i=Ta(a),d=To(Xt({h:Na(i,c),s:Aa(i,c),v:Ea(i,c)}));n.push(d)}return o.theme==="dark"?Ni.map(function(p){var u=p.index,m=p.opacity,g=To(Ai(Xt(o.backgroundColor||"#141414"),Xt(n[u]),m*100));return g}):n}var an={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},ln={},rn={};Object.keys(an).forEach(function(t){ln[t]=nn(an[t]),ln[t].primary=ln[t][5],rn[t]=nn(an[t],{theme:"dark",backgroundColor:"#141414"}),rn[t].primary=rn[t][5]});var Oa=[],Qt=[],Ei="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Oi(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Bi(t,o){if(o=o||{},t===void 0)throw new Error(Ei);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Oa.indexOf(a);l===-1&&(l=Oa.push(a)-1,Qt[l]={});var r;return Qt[l]!==void 0&&Qt[l][n]!==void 0?r=Qt[l][n]:(r=Qt[l][n]=Oi(),n==="prepend"?a.insertBefore(r,a.childNodes[0]):a.appendChild(r)),t.charCodeAt(0)===65279&&(t=t.substr(1,t.length)),r.styleSheet?r.styleSheet.cssText+=t:r.textContent+=t,r}function Ba(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Vi(t,l,n[l])})}return t}function Vi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Li(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Fi(t,o){Li(t,"[@ant-design/icons-vue] ".concat(o))}function Va(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function sn(t,o,n){return n?e.h(t.tag,Ba({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Ba({key:o},t.attrs),(t.children||[]).map(function(a,l){return sn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function La(t){return nn(t)[0]}function Fa(t){return t?Array.isArray(t)?t:[t]:[]}var $i=`
3
3
  .anticon {
4
4
  display: inline-block;
5
5
  color: inherit;
@@ -53,23 +53,23 @@
53
53
  transform: rotate(360deg);
54
54
  }
55
55
  }
56
- `,Fa=!1,$i=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Fi;e.nextTick(function(){Fa||(typeof window<"u"&&window.document&&window.document.documentElement&&Ei(o,{prepend:!0}),Fa=!0)})},vi=["icon","primaryColor","secondaryColor"];function Ii(t,o){if(t==null)return{};var n=Di(t,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Di(t,o){if(t==null)return{};var n={},a=Object.keys(t),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=t[l]);return n}function No(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Mi(t,l,n[l])})}return t}function Mi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Zt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Pi(t){var o=t.primaryColor,n=t.secondaryColor;Zt.primaryColor=o,Zt.secondaryColor=n||La(o),Zt.calculated=!!n}function ji(){return No({},Zt)}var Vt=function(o,n){var a=No({},o,n.attrs),l=a.icon,r=a.primaryColor,s=a.secondaryColor,d=Ii(a,vi),i=Zt;if(r&&(i={primaryColor:r,secondaryColor:s||La(r)}),$i(),Vi(Ba(l),"icon should be icon definiton, but got ".concat(l)),!Ba(l))return null;var c=l;return c&&typeof c.icon=="function"&&(c=No({},c,{icon:c.icon(i.primaryColor,i.secondaryColor)})),sn(c.icon,"svg-".concat(c.name),No({},d,{"data-icon":c.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Vt.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Vt.inheritAttrs=!1,Vt.displayName="IconBase",Vt.getTwoToneColors=ji,Vt.setTwoToneColors=Pi;const cn=Vt;function Ri(t,o){return Hi(t)||Gi(t,o)||zi(t,o)||Ui()}function Ui(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zi(t,o){if(t){if(typeof t=="string")return $a(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $a(t,o)}}function $a(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Gi(t,o){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,d;try{for(n=n.call(t);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,d=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw d}}return a}}function Hi(t){if(Array.isArray(t))return t}function va(t){var o=Va(t),n=Ri(o,2),a=n[0],l=n[1];return cn.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Wi(){var t=cn.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Yi=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function qi(t,o){return Ji(t)||Qi(t,o)||Xi(t,o)||Ki()}function Ki(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xi(t,o){if(t){if(typeof t=="string")return Ia(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ia(t,o)}}function Ia(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Qi(t,o){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,d;try{for(n=n.call(t);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,d=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw d}}return a}}function Ji(t){if(Array.isArray(t))return t}function Da(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){dn(t,l,n[l])})}return t}function dn(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Zi(t,o){if(t==null)return{};var n=es(t,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function es(t,o){if(t==null)return{};var n={},a=Object.keys(t),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=t[l]);return n}va("#1890ff");var Ft=function(o,n){var a,l=Da({},o,n.attrs),r=l.class,s=l.icon,d=l.spin,i=l.rotate,c=l.tabindex,p=l.twoToneColor,u=l.onClick,f=Zi(l,Yi),y=(a={anticon:!0},dn(a,"anticon-".concat(s.name),!!s.name),dn(a,r,r),a),b=d===""||d||s.name==="loading"?"anticon-spin":"",m=c;m===void 0&&u&&(m=-1,f.tabindex=m);var h=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,C=Va(p),g=qi(C,2),T=g[0],w=g[1];return e.createVNode("span",Da({role:"img","aria-label":s.name},f,{onClick:u,class:y}),[e.createVNode(cn,{class:b,icon:s,primaryColor:T,secondaryColor:w,style:h},null)])};Ft.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Ft.displayName="AntdIcon",Ft.inheritAttrs=!1,Ft.getTwoToneColor=Wi,Ft.setTwoToneColor=va;const xe=Ft;var ts={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};const os=ts;function Ma(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ns(t,l,n[l])})}return t}function ns(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var pn=function(o,n){var a=Ma({},o,n.attrs);return e.createVNode(xe,Ma({},a,{icon:os}),null)};pn.displayName="AppstoreAddOutlined",pn.inheritAttrs=!1;const un=pn;var as={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const ls=as;function Pa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){rs(t,l,n[l])})}return t}function rs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var fn=function(o,n){var a=Pa({},o,n.attrs);return e.createVNode(xe,Pa({},a,{icon:ls}),null)};fn.displayName="CaretDownOutlined",fn.inheritAttrs=!1;const ja=fn;var is={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const ss=is;function Ra(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){cs(t,l,n[l])})}return t}function cs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var mn=function(o,n){var a=Ra({},o,n.attrs);return e.createVNode(xe,Ra({},a,{icon:ss}),null)};mn.displayName="CaretRightOutlined",mn.inheritAttrs=!1;const Ua=mn;var ds={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const ps=ds;function za(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){us(t,l,n[l])})}return t}function us(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var hn=function(o,n){var a=za({},o,n.attrs);return e.createVNode(xe,za({},a,{icon:ps}),null)};hn.displayName="CloseOutlined",hn.inheritAttrs=!1;const eo=hn;var fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};const ms=fs;function Ga(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){hs(t,l,n[l])})}return t}function hs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var bn=function(o,n){var a=Ga({},o,n.attrs);return e.createVNode(xe,Ga({},a,{icon:ms}),null)};bn.displayName="CodeOutlined",bn.inheritAttrs=!1;const bs=bn;var ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const gs=ys;function Ha(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Cs(t,l,n[l])})}return t}function Cs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var yn=function(o,n){var a=Ha({},o,n.attrs);return e.createVNode(xe,Ha({},a,{icon:gs}),null)};yn.displayName="CopyOutlined",yn.inheritAttrs=!1;const ws=yn;var ks={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const xs=ks;function Wa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){_s(t,l,n[l])})}return t}function _s(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var gn=function(o,n){var a=Wa({},o,n.attrs);return e.createVNode(xe,Wa({},a,{icon:xs}),null)};gn.displayName="DeleteOutlined",gn.inheritAttrs=!1;const Ya=gn;var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Ts=Ss;function qa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ns(t,l,n[l])})}return t}function Ns(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Cn=function(o,n){var a=qa({},o,n.attrs);return e.createVNode(xe,qa({},a,{icon:Ts}),null)};Cn.displayName="DoubleRightOutlined",Cn.inheritAttrs=!1;const As=Cn;var Os={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Es=Os;function Ka(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Bs(t,l,n[l])})}return t}function Bs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var wn=function(o,n){var a=Ka({},o,n.attrs);return e.createVNode(xe,Ka({},a,{icon:Es}),null)};wn.displayName="DownOutlined",wn.inheritAttrs=!1;const Ls=wn;var Vs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const Fs=Vs;function Xa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){$s(t,l,n[l])})}return t}function $s(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var kn=function(o,n){var a=Xa({},o,n.attrs);return e.createVNode(xe,Xa({},a,{icon:Fs}),null)};kn.displayName="InfoCircleOutlined",kn.inheritAttrs=!1;const vs=kn;var Is={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Ds=Is;function Qa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ms(t,l,n[l])})}return t}function Ms(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var xn=function(o,n){var a=Qa({},o,n.attrs);return e.createVNode(xe,Qa({},a,{icon:Ds}),null)};xn.displayName="LoadingOutlined",xn.inheritAttrs=!1;const Ps=xn;var js={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Rs=js;function Ja(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Us(t,l,n[l])})}return t}function Us(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var _n=function(o,n){var a=Ja({},o,n.attrs);return e.createVNode(xe,Ja({},a,{icon:Rs}),null)};_n.displayName="MenuOutlined",_n.inheritAttrs=!1;const Sn=_n;var zs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Gs=zs;function Za(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Hs(t,l,n[l])})}return t}function Hs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Tn=function(o,n){var a=Za({},o,n.attrs);return e.createVNode(xe,Za({},a,{icon:Gs}),null)};Tn.displayName="MinusCircleOutlined",Tn.inheritAttrs=!1;const Ws=Tn;var Ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};const qs=Ys;function el(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ks(t,l,n[l])})}return t}function Ks(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Nn=function(o,n){var a=el({},o,n.attrs);return e.createVNode(xe,el({},a,{icon:qs}),null)};Nn.displayName="PlusCircleOutlined",Nn.inheritAttrs=!1;const Xs=Nn;var Qs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Js=Qs;function tl(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Zs(t,l,n[l])})}return t}function Zs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var An=function(o,n){var a=tl({},o,n.attrs);return e.createVNode(xe,tl({},a,{icon:Js}),null)};An.displayName="PlusOutlined",An.inheritAttrs=!1;const ec=An;var tc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const oc=tc;function ol(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){nc(t,l,n[l])})}return t}function nc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var On=function(o,n){var a=ol({},o,n.attrs);return e.createVNode(xe,ol({},a,{icon:oc}),null)};On.displayName="QuestionCircleOutlined",On.inheritAttrs=!1;const ac=On;var lc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const rc=lc;function nl(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ic(t,l,n[l])})}return t}function ic(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var En=function(o,n){var a=nl({},o,n.attrs);return e.createVNode(xe,nl({},a,{icon:rc}),null)};En.displayName="ReloadOutlined",En.inheritAttrs=!1;const sc=En;var cc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const dc=cc;function al(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){pc(t,l,n[l])})}return t}function pc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Bn=function(o,n){var a=al({},o,n.attrs);return e.createVNode(xe,al({},a,{icon:dc}),null)};Bn.displayName="SettingOutlined",Bn.inheritAttrs=!1;const uc=Bn,ll=()=>{},Ln=Object.assign,rl=Array.isArray,Ao=t=>typeof t=="function",fc=t=>typeof t=="symbol";let il;const Vn=()=>il||(il=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),sl=t=>{const o=new Set(t);return o.w=0,o.n=0,o},cl=t=>(t.w&ct)>0,dl=t=>(t.n&ct)>0;let to=0,ct=1,Fe;class mc{constructor(o,n=null,a){this.fn=o,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,function(l,r){r&&r.active&&r.effects.push(l)}(this,a)}run(){if(!this.active)return this.fn();let o=Fe,n=yt;for(;o;){if(o===this)return;o=o.parent}try{return this.parent=Fe,Fe=this,yt=!0,ct=1<<++to,to<=30?(({deps:a})=>{if(a.length)for(let l=0;l<a.length;l++)a[l].w|=ct})(this):pl(this),this.fn()}finally{to<=30&&(a=>{const{deps:l}=a;if(l.length){let r=0;for(let s=0;s<l.length;s++){const d=l[s];cl(d)&&!dl(d)?d.delete(a):l[r++]=d,d.w&=~ct,d.n&=~ct}l.length=r}})(this),ct=1<<--to,Fe=this.parent,yt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fe===this?this.deferStop=!0:this.active&&(pl(this),this.onStop&&this.onStop(),this.active=!1)}}function pl(t){const{deps:o}=t;if(o.length){for(let n=0;n<o.length;n++)o[n].delete(t);o.length=0}}let yt=!0;const ul=[];function fl(t,o){let n=!1;to<=30?dl(t)||(t.n|=ct,n=!cl(t)):n=!t.has(Fe),n&&(t.add(Fe),Fe.deps.push(t),process.env.NODE_ENV!=="production"&&Fe.onTrack&&Fe.onTrack(Ln({effect:Fe},o)))}function ml(t,o){const n=rl(t)?t:[...t];for(const a of n)a.computed&&hl(a,o);for(const a of n)a.computed||hl(a,o)}function hl(t,o){(t!==Fe||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(Ln({effect:t},o)),t.scheduler?t.scheduler():t.run())}function $t(t){const o=t&&t.__v_raw;return o?$t(o):t}function bl(t){return!(!t||t.__v_isRef!==!0)}function dt(t){return bl(t)?t.value:t}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(fc));class hc{constructor(o,n,a,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new mc(o,()=>{this._dirty||(this._dirty=!0,function(r,s){const d=(r=$t(r)).dep;d&&(process.env.NODE_ENV!=="production"?ml(d,{target:r,type:"set",key:"value",newValue:s}):ml(d))}(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=a}get value(){const o=$t(this);var n;return n=o,yt&&Fe&&(n=$t(n),process.env.NODE_ENV!=="production"?fl(n.dep||(n.dep=sl()),{target:n,type:"get",key:"value"}):fl(n.dep||(n.dep=sl()))),!o._dirty&&o._cacheable||(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}const gt=[];function Fn(t,...o){if(process.env.NODE_ENV==="production")return;ul.push(yt),yt=!1;const n=gt.length?gt[gt.length-1].component:null,a=n&&n.appContext.config.warnHandler,l=function(){let r=gt[gt.length-1];if(!r)return[];const s=[];for(;r;){const d=s[0];d&&d.vnode===r?d.recurseCount++:s.push({vnode:r,recurseCount:0});const i=r.component&&r.component.parent;r=i&&i.vnode}return s}();if(a)$n(a,n,11,[t+o.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${Tl(n,r.type)}>`).join(`
56
+ `,$a=!1,Ii=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:$i;e.nextTick(function(){$a||(typeof window<"u"&&window.document&&window.document.documentElement&&Bi(o,{prepend:!0}),$a=!0)})},vi=["icon","primaryColor","secondaryColor"];function Di(t,o){if(t==null)return{};var n=Mi(t,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function Mi(t,o){if(t==null)return{};var n={},a=Object.keys(t),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=t[l]);return n}function No(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Pi(t,l,n[l])})}return t}function Pi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Jt={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function ji(t){var o=t.primaryColor,n=t.secondaryColor;Jt.primaryColor=o,Jt.secondaryColor=n||La(o),Jt.calculated=!!n}function Ri(){return No({},Jt)}var Ot=function(o,n){var a=No({},o,n.attrs),l=a.icon,r=a.primaryColor,s=a.secondaryColor,c=Di(a,vi),i=Jt;if(r&&(i={primaryColor:r,secondaryColor:s||La(r)}),Ii(),Fi(Va(l),"icon should be icon definiton, but got ".concat(l)),!Va(l))return null;var d=l;return d&&typeof d.icon=="function"&&(d=No({},d,{icon:d.icon(i.primaryColor,i.secondaryColor)})),sn(d.icon,"svg-".concat(d.name),No({},c,{"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};Ot.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},Ot.inheritAttrs=!1,Ot.displayName="IconBase",Ot.getTwoToneColors=Ri,Ot.setTwoToneColors=ji;const cn=Ot;function Ui(t,o){return Wi(t)||Hi(t,o)||Gi(t,o)||zi()}function zi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gi(t,o){if(t){if(typeof t=="string")return Ia(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ia(t,o)}}function Ia(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Hi(t,o){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,c;try{for(n=n.call(t);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,c=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw c}}return a}}function Wi(t){if(Array.isArray(t))return t}function va(t){var o=Fa(t),n=Ui(o,2),a=n[0],l=n[1];return cn.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Yi(){var t=cn.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var qi=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ki(t,o){return Zi(t)||Ji(t,o)||Qi(t,o)||Xi()}function Xi(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
58
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qi(t,o){if(t){if(typeof t=="string")return Da(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Da(t,o)}}function Da(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Ji(t,o){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var a=[],l=!0,r=!1,s,c;try{for(n=n.call(t);!(l=(s=n.next()).done)&&(a.push(s.value),!(o&&a.length===o));l=!0);}catch(i){r=!0,c=i}finally{try{!l&&n.return!=null&&n.return()}finally{if(r)throw c}}return a}}function Zi(t){if(Array.isArray(t))return t}function Ma(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){dn(t,l,n[l])})}return t}function dn(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function es(t,o){if(t==null)return{};var n=ts(t,o),a,l;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(l=0;l<r.length;l++)a=r[l],!(o.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(t,a)&&(n[a]=t[a])}return n}function ts(t,o){if(t==null)return{};var n={},a=Object.keys(t),l,r;for(r=0;r<a.length;r++)l=a[r],!(o.indexOf(l)>=0)&&(n[l]=t[l]);return n}va("#1890ff");var Bt=function(o,n){var a,l=Ma({},o,n.attrs),r=l.class,s=l.icon,c=l.spin,i=l.rotate,d=l.tabindex,p=l.twoToneColor,u=l.onClick,m=es(l,qi),g=(a={anticon:!0},dn(a,"anticon-".concat(s.name),!!s.name),dn(a,r,r),a),C=c===""||c||s.name==="loading"?"anticon-spin":"",b=d;b===void 0&&u&&(b=-1,m.tabindex=b);var f=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,h=Fa(p),y=Ki(h,2),N=y[0],w=y[1];return e.createVNode("span",Ma({role:"img","aria-label":s.name},m,{onClick:u,class:g}),[e.createVNode(cn,{class:C,icon:s,primaryColor:N,secondaryColor:w,style:f},null)])};Bt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Bt.displayName="AntdIcon",Bt.inheritAttrs=!1,Bt.getTwoToneColor=Yi,Bt.setTwoToneColor=va;const _e=Bt;var os={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zm52 132H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200zM424 712H296V584c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v128H104c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h128v128c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V776h128c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}}]},name:"appstore-add",theme:"outlined"};const ns=os;function Pa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){as(t,l,n[l])})}return t}function as(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var pn=function(o,n){var a=Pa({},o,n.attrs);return e.createVNode(_e,Pa({},a,{icon:ns}),null)};pn.displayName="AppstoreAddOutlined",pn.inheritAttrs=!1;const un=pn;var ls={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"};const rs=ls;function ja(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){is(t,l,n[l])})}return t}function is(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var fn=function(o,n){var a=ja({},o,n.attrs);return e.createVNode(_e,ja({},a,{icon:rs}),null)};fn.displayName="CaretDownOutlined",fn.inheritAttrs=!1;const Ra=fn;var ss={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"};const cs=ss;function Ua(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ds(t,l,n[l])})}return t}function ds(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var mn=function(o,n){var a=Ua({},o,n.attrs);return e.createVNode(_e,Ua({},a,{icon:cs}),null)};mn.displayName="CaretRightOutlined",mn.inheritAttrs=!1;const za=mn;var ps={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};const us=ps;function Ga(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){fs(t,l,n[l])})}return t}function fs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var hn=function(o,n){var a=Ga({},o,n.attrs);return e.createVNode(_e,Ga({},a,{icon:us}),null)};hn.displayName="CloseOutlined",hn.inheritAttrs=!1;const Zt=hn;var ms={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"};const hs=ms;function Ha(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){bs(t,l,n[l])})}return t}function bs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var bn=function(o,n){var a=Ha({},o,n.attrs);return e.createVNode(_e,Ha({},a,{icon:hs}),null)};bn.displayName="CodeOutlined",bn.inheritAttrs=!1;const ys=bn;var gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"};const Cs=gs;function Wa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ws(t,l,n[l])})}return t}function ws(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var yn=function(o,n){var a=Wa({},o,n.attrs);return e.createVNode(_e,Wa({},a,{icon:Cs}),null)};yn.displayName="CopyOutlined",yn.inheritAttrs=!1;const ks=yn;var xs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};const _s=xs;function Ya(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ss(t,l,n[l])})}return t}function Ss(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var gn=function(o,n){var a=Ya({},o,n.attrs);return e.createVNode(_e,Ya({},a,{icon:_s}),null)};gn.displayName="DeleteOutlined",gn.inheritAttrs=!1;const qa=gn;var Ts={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"};const Ns=Ts;function Ka(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){As(t,l,n[l])})}return t}function As(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Cn=function(o,n){var a=Ka({},o,n.attrs);return e.createVNode(_e,Ka({},a,{icon:Ns}),null)};Cn.displayName="DoubleRightOutlined",Cn.inheritAttrs=!1;const Es=Cn;var Os={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"};const Bs=Os;function Xa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Vs(t,l,n[l])})}return t}function Vs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var wn=function(o,n){var a=Xa({},o,n.attrs);return e.createVNode(_e,Xa({},a,{icon:Bs}),null)};wn.displayName="DownOutlined",wn.inheritAttrs=!1;const Ls=wn;var Fs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};const $s=Fs;function Qa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Is(t,l,n[l])})}return t}function Is(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var kn=function(o,n){var a=Qa({},o,n.attrs);return e.createVNode(_e,Qa({},a,{icon:$s}),null)};kn.displayName="InfoCircleOutlined",kn.inheritAttrs=!1;const vs=kn;var Ds={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};const Ms=Ds;function Ja(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ps(t,l,n[l])})}return t}function Ps(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var xn=function(o,n){var a=Ja({},o,n.attrs);return e.createVNode(_e,Ja({},a,{icon:Ms}),null)};xn.displayName="LoadingOutlined",xn.inheritAttrs=!1;const js=xn;var Rs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 160H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0 624H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8zm0-312H120c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"menu",theme:"outlined"};const Us=Rs;function Za(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){zs(t,l,n[l])})}return t}function zs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var _n=function(o,n){var a=Za({},o,n.attrs);return e.createVNode(_e,Za({},a,{icon:Us}),null)};_n.displayName="MenuOutlined",_n.inheritAttrs=!1;const Sn=_n;var Gs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};const Hs=Gs;function el(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Ws(t,l,n[l])})}return t}function Ws(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Tn=function(o,n){var a=el({},o,n.attrs);return e.createVNode(_e,el({},a,{icon:Hs}),null)};Tn.displayName="MinusCircleOutlined",Tn.inheritAttrs=!1;const Ys=Tn;var qs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"};const Ks=qs;function tl(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){Xs(t,l,n[l])})}return t}function Xs(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Nn=function(o,n){var a=tl({},o,n.attrs);return e.createVNode(_e,tl({},a,{icon:Ks}),null)};Nn.displayName="PlusCircleOutlined",Nn.inheritAttrs=!1;const Qs=Nn;var Js={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};const Zs=Js;function ol(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ec(t,l,n[l])})}return t}function ec(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var An=function(o,n){var a=ol({},o,n.attrs);return e.createVNode(_e,ol({},a,{icon:Zs}),null)};An.displayName="PlusOutlined",An.inheritAttrs=!1;const tc=An;var oc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};const nc=oc;function nl(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){ac(t,l,n[l])})}return t}function ac(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var En=function(o,n){var a=nl({},o,n.attrs);return e.createVNode(_e,nl({},a,{icon:nc}),null)};En.displayName="QuestionCircleOutlined",En.inheritAttrs=!1;const lc=En;var rc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};const ic=rc;function al(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){sc(t,l,n[l])})}return t}function sc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var On=function(o,n){var a=al({},o,n.attrs);return e.createVNode(_e,al({},a,{icon:ic}),null)};On.displayName="ReloadOutlined",On.inheritAttrs=!1;const cc=On;var dc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};const pc=dc;function ll(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?Object(arguments[o]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(l){return Object.getOwnPropertyDescriptor(n,l).enumerable}))),a.forEach(function(l){uc(t,l,n[l])})}return t}function uc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Bn=function(o,n){var a=ll({},o,n.attrs);return e.createVNode(_e,ll({},a,{icon:pc}),null)};Bn.displayName="SettingOutlined",Bn.inheritAttrs=!1;const fc=Bn,rl=()=>{},Vn=Object.assign,il=Array.isArray,Ao=t=>typeof t=="function",mc=t=>typeof t=="symbol";let sl;const Ln=()=>sl||(sl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),cl=t=>{const o=new Set(t);return o.w=0,o.n=0,o},dl=t=>(t.w&st)>0,pl=t=>(t.n&st)>0;let eo=0,st=1,Fe;class hc{constructor(o,n=null,a){this.fn=o,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,function(l,r){r&&r.active&&r.effects.push(l)}(this,a)}run(){if(!this.active)return this.fn();let o=Fe,n=ht;for(;o;){if(o===this)return;o=o.parent}try{return this.parent=Fe,Fe=this,ht=!0,st=1<<++eo,eo<=30?(({deps:a})=>{if(a.length)for(let l=0;l<a.length;l++)a[l].w|=st})(this):ul(this),this.fn()}finally{eo<=30&&(a=>{const{deps:l}=a;if(l.length){let r=0;for(let s=0;s<l.length;s++){const c=l[s];dl(c)&&!pl(c)?c.delete(a):l[r++]=c,c.w&=~st,c.n&=~st}l.length=r}})(this),st=1<<--eo,Fe=this.parent,ht=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Fe===this?this.deferStop=!0:this.active&&(ul(this),this.onStop&&this.onStop(),this.active=!1)}}function ul(t){const{deps:o}=t;if(o.length){for(let n=0;n<o.length;n++)o[n].delete(t);o.length=0}}let ht=!0;const fl=[];function ml(t,o){let n=!1;eo<=30?pl(t)||(t.n|=st,n=!dl(t)):n=!t.has(Fe),n&&(t.add(Fe),Fe.deps.push(t),process.env.NODE_ENV!=="production"&&Fe.onTrack&&Fe.onTrack(Vn({effect:Fe},o)))}function hl(t,o){const n=il(t)?t:[...t];for(const a of n)a.computed&&bl(a,o);for(const a of n)a.computed||bl(a,o)}function bl(t,o){(t!==Fe||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(Vn({effect:t},o)),t.scheduler?t.scheduler():t.run())}function Vt(t){const o=t&&t.__v_raw;return o?Vt(o):t}function yl(t){return!(!t||t.__v_isRef!==!0)}function ct(t){return yl(t)?t.value:t}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(mc));class bc{constructor(o,n,a,l){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new hc(o,()=>{this._dirty||(this._dirty=!0,function(r,s){const c=(r=Vt(r)).dep;c&&(process.env.NODE_ENV!=="production"?hl(c,{target:r,type:"set",key:"value",newValue:s}):hl(c))}(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=a}get value(){const o=Vt(this);var n;return n=o,ht&&Fe&&(n=Vt(n),process.env.NODE_ENV!=="production"?ml(n.dep||(n.dep=cl()),{target:n,type:"get",key:"value"}):ml(n.dep||(n.dep=cl()))),!o._dirty&&o._cacheable||(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}const bt=[];function Fn(t,...o){if(process.env.NODE_ENV==="production")return;fl.push(ht),ht=!1;const n=bt.length?bt[bt.length-1].component:null,a=n&&n.appContext.config.warnHandler,l=function(){let r=bt[bt.length-1];if(!r)return[];const s=[];for(;r;){const c=s[0];c&&c.vnode===r?c.recurseCount++:s.push({vnode:r,recurseCount:0});const i=r.component&&r.component.parent;r=i&&i.vnode}return s}();if(a)$n(a,n,11,[t+o.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${Nl(n,r.type)}>`).join(`
59
59
  `),l]);else{const r=[`[Vue warn]: ${t}`,...o];l.length&&r.push(`
60
- `,...function(s){const d=[];return s.forEach((i,c)=>{d.push(...c===0?[]:[`
61
- `],...function({vnode:p,recurseCount:u}){const f=u>0?`... (${u} recursive calls)`:"",y=!!p.component&&p.component.parent==null,b=` at <${Tl(p.component,p.type,y)}`,m=">"+f;return p.props?[b,...bc(p.props),m]:[b+m]}(i))}),d}(l)),console.warn(...r)}(function(){const r=ul.pop();yt=r===void 0||r})()}function bc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...yl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function yl(t,o,n){return typeof o=="string"?(o=JSON.stringify(o),n?o:[`${t}=${o}`]):typeof o=="number"||typeof o=="boolean"||o==null?n?o:[`${t}=${o}`]:bl(o)?(o=yl(t,$t(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):Ao(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=$t(o),n?o:[`${t}=`,o])}const gl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $n(t,o,n,a){let l;try{l=a?t(...a):t()}catch(r){(function(s,d,i,c=!0){const p=d?d.vnode:null;if(d){let u=d.parent;const f=d.proxy,y=process.env.NODE_ENV!=="production"?gl[i]:i;for(;u;){const m=u.ec;if(m){for(let h=0;h<m.length;h++)if(m[h](s,f,y)===!1)return}u=u.parent}const b=d.appContext.config.errorHandler;if(b)return void $n(b,null,10,[s,f,y])}(function(u,f,y,b=!0){if(process.env.NODE_ENV!=="production"){const h=gl[f];if(y&&(m=y,gt.push(m)),Fn("Unhandled error"+(h?` during execution of ${h}`:"")),y&&gt.pop(),b)throw u;console.error(u)}else console.error(u);var m})(s,i,p,c)})(r,o,n)}return l}let Oo=!1,vn=!1;const He=[];let pt=0;const vt=[];let Ye=null,ut=0;const yc=Promise.resolve();function gc(t){He.length&&He.includes(t,Oo&&t.allowRecurse?pt+1:pt)||(t.id==null?He.push(t):He.splice(function(o){let n=pt+1,a=He.length;for(;n<a;){const l=n+a>>>1,r=He[l],s=oo(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),Cl())}function Cl(){Oo||vn||(vn=!0,yc.then(wl))}const oo=t=>t.id==null?1/0:t.id,Cc=(t,o)=>{const n=oo(t)-oo(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function wl(t){vn=!1,Oo=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),He.sort(Cc);const o=process.env.NODE_ENV!=="production"?n=>kl(t,n):ll;try{for(pt=0;pt<He.length;pt++){const n=He[pt];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&o(n))continue;$n(n,null,14)}}}finally{pt=0,He.length=0,function(n){if(vt.length){const a=[...new Set(vt)];if(vt.length=0,Ye)return void Ye.push(...a);for(Ye=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),Ye.sort((l,r)=>oo(l)-oo(r)),ut=0;ut<Ye.length;ut++)process.env.NODE_ENV!=="production"&&kl(n,Ye[ut])||Ye[ut]();Ye=null,ut=0}}(t),Oo=!1,(He.length||vt.length)&&wl(t)}}function kl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&Sl(a.type);return Fn(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}t.set(o,n+1)}else t.set(o,1)}const no=new Set;process.env.NODE_ENV!=="production"&&(Vn().__VUE_HMR_RUNTIME__={createRecord:In(function(t,o){return Eo.has(t)?!1:(Eo.set(t,{initialDef:ao(o),instances:new Set}),!0)}),rerender:In(function(t,o){const n=Eo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,ao(a.type).render=o),a.renderCache=[],a.update()}))}),reload:In(function(t,o){const n=Eo.get(t);if(!n)return;o=ao(o),xl(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=ao(r.type);no.has(s)||(s!==n.initialDef&&xl(s,o),no.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(no.add(s),r.ceReload(o.styles),no.delete(s)):r.parent?gc(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}l=()=>{for(const r of a)no.delete(ao(r.type))},rl(l)?vt.push(...l):Ye&&Ye.includes(l,l.allowRecurse?ut+1:ut)||vt.push(l),Cl();var l})});const Eo=new Map;function ao(t){return Ao(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function xl(t,o){Ln(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function In(t){return(o,n)=>{try{return t(o,n)}catch(a){console.error(a),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Dn;process.env.NODE_ENV;let _l="__VUE_INSTANCE_SETTERS__";(Dn=Vn()[_l])||(Dn=Vn()[_l]=[]),Dn.push(t=>t);const wc=/(?:^|[-_])(\w)/g,kc=t=>t.replace(wc,o=>o.toUpperCase()).replace(/[-_]/g,"");function Sl(t,o=!0){return Ao(t)?t.displayName||t.name:t.name||o&&t.__name}function Tl(t,o,n=!1){let a=Sl(o);if(!a&&o.__file){const l=o.__file.match(/([^/\\]+)\.\w+$/);l&&(a=l[1])}if(!a&&t&&t.parent){const l=r=>{for(const s in r)if(r[s]===o)return s};a=l(t.components||t.parent.type.components)||l(t.appContext.components)}return a?kc(a):n?"App":"Anonymous"}const Ct=(t,o)=>function(n,a,l=!1){let r,s;const d=Ao(n);return d?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:ll):(r=n.get,s=n.set),new hc(r,s,d||!s,l)}(t,0,!1);function xc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Nl,Al={exports:{}};function _c(){return Nl||(Nl=1,Al.exports=function(){var t=1e3,o=6e4,n=36e5,a="millisecond",l="second",r="minute",s="hour",d="day",i="week",c="month",p="quarter",u="year",f="date",y="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(v){var $=["th","st","nd","rd"],k=v%100;return"["+v+($[(k-20)%10]||$[k]||$[0])+"]"}},C=function(v,$,k){var E=String(v);return!E||E.length>=$?v:""+Array($+1-E.length).join(k)+v},g={s:C,z:function(v){var $=-v.utcOffset(),k=Math.abs($),E=Math.floor(k/60),O=k%60;return($<=0?"+":"-")+C(E,2,"0")+":"+C(O,2,"0")},m:function v($,k){if($.date()<k.date())return-v(k,$);var E=12*(k.year()-$.year())+(k.month()-$.month()),O=$.clone().add(E,c),L=k-O<0,P=$.clone().add(E+(L?-1:1),c);return+(-(E+(k-O)/(L?O-P:P-O))||0)},a:function(v){return v<0?Math.ceil(v)||0:Math.floor(v)},p:function(v){return{M:c,y:u,w:i,d,D:f,h:s,m:r,s:l,ms:a,Q:p}[v]||String(v||"").toLowerCase().replace(/s$/,"")},u:function(v){return v===void 0}},T="en",w={};w[T]=h;var _="$isDayjsObject",S=function(v){return v instanceof A||!(!v||!v[_])},N=function v($,k,E){var O;if(!$)return T;if(typeof $=="string"){var L=$.toLowerCase();w[L]&&(O=L),k&&(w[L]=k,O=L);var P=$.split("-");if(!O&&P.length>1)return v(P[0])}else{var x=$.name;w[x]=$,O=x}return!E&&O&&(T=O),O||!E&&T},I=function(v,$){if(S(v))return v.clone();var k=typeof $=="object"?$:{};return k.date=v,k.args=arguments,new A(k)},F=g;F.l=N,F.i=S,F.w=function(v,$){return I(v,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var A=function(){function v(k){this.$L=N(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[_]=!0}var $=v.prototype;return $.parse=function(k){this.$d=function(E){var O=E.date,L=E.utc;if(O===null)return new Date(NaN);if(F.u(O))return new Date;if(O instanceof Date)return new Date(O);if(typeof O=="string"&&!/Z$/i.test(O)){var P=O.match(b);if(P){var x=P[2]-1||0,B=(P[7]||"0").substring(0,3);return L?new Date(Date.UTC(P[1],x,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)):new Date(P[1],x,P[3]||1,P[4]||0,P[5]||0,P[6]||0,B)}}return new Date(O)}(k),this.init()},$.init=function(){var k=this.$d;this.$y=k.getFullYear(),this.$M=k.getMonth(),this.$D=k.getDate(),this.$W=k.getDay(),this.$H=k.getHours(),this.$m=k.getMinutes(),this.$s=k.getSeconds(),this.$ms=k.getMilliseconds()},$.$utils=function(){return F},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(k,E){var O=I(k);return this.startOf(E)<=O&&O<=this.endOf(E)},$.isAfter=function(k,E){return I(k)<this.startOf(E)},$.isBefore=function(k,E){return this.endOf(E)<I(k)},$.$g=function(k,E,O){return F.u(k)?this[E]:this.set(O,k)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(k,E){var O=this,L=!!F.u(E)||E,P=F.p(k),x=function(Q,Z){var oe=F.w(O.$u?Date.UTC(O.$y,Z,Q):new Date(O.$y,Z,Q),O);return L?oe:oe.endOf(d)},B=function(Q,Z){return F.w(O.toDate()[Q].apply(O.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(Z)),O)},M=this.$W,V=this.$M,D=this.$D,U="set"+(this.$u?"UTC":"");switch(P){case u:return L?x(1,0):x(31,11);case c:return L?x(1,V):x(0,V+1);case i:var H=this.$locale().weekStart||0,q=(M<H?M+7:M)-H;return x(L?D-q:D+(6-q),V);case d:case f:return B(U+"Hours",0);case s:return B(U+"Minutes",1);case r:return B(U+"Seconds",2);case l:return B(U+"Milliseconds",3);default:return this.clone()}},$.endOf=function(k){return this.startOf(k,!1)},$.$set=function(k,E){var O,L=F.p(k),P="set"+(this.$u?"UTC":""),x=(O={},O[d]=P+"Date",O[f]=P+"Date",O[c]=P+"Month",O[u]=P+"FullYear",O[s]=P+"Hours",O[r]=P+"Minutes",O[l]=P+"Seconds",O[a]=P+"Milliseconds",O)[L],B=L===d?this.$D+(E-this.$W):E;if(L===c||L===u){var M=this.clone().set(f,1);M.$d[x](B),M.init(),this.$d=M.set(f,Math.min(this.$D,M.daysInMonth())).$d}else x&&this.$d[x](B);return this.init(),this},$.set=function(k,E){return this.clone().$set(k,E)},$.get=function(k){return this[F.p(k)]()},$.add=function(k,E){var O,L=this;k=Number(k);var P=F.p(E),x=function(V){var D=I(L);return F.w(D.date(D.date()+Math.round(V*k)),L)};if(P===c)return this.set(c,this.$M+k);if(P===u)return this.set(u,this.$y+k);if(P===d)return x(1);if(P===i)return x(7);var B=(O={},O[r]=o,O[s]=n,O[l]=t,O)[P]||1,M=this.$d.getTime()+k*B;return F.w(M,this)},$.subtract=function(k,E){return this.add(-1*k,E)},$.format=function(k){var E=this,O=this.$locale();if(!this.isValid())return O.invalidDate||y;var L=k||"YYYY-MM-DDTHH:mm:ssZ",P=F.z(this),x=this.$H,B=this.$m,M=this.$M,V=O.weekdays,D=O.months,U=O.meridiem,H=function(Z,oe,le,re){return Z&&(Z[oe]||Z(E,L))||le[oe].slice(0,re)},q=function(Z){return F.s(x%12||12,Z,"0")},Q=U||function(Z,oe,le){var re=Z<12?"AM":"PM";return le?re.toLowerCase():re};return L.replace(m,function(Z,oe){return oe||function(le){switch(le){case"YY":return String(E.$y).slice(-2);case"YYYY":return F.s(E.$y,4,"0");case"M":return M+1;case"MM":return F.s(M+1,2,"0");case"MMM":return H(O.monthsShort,M,D,3);case"MMMM":return H(D,M);case"D":return E.$D;case"DD":return F.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return H(O.weekdaysMin,E.$W,V,2);case"ddd":return H(O.weekdaysShort,E.$W,V,3);case"dddd":return V[E.$W];case"H":return String(x);case"HH":return F.s(x,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return Q(x,B,!0);case"A":return Q(x,B,!1);case"m":return String(B);case"mm":return F.s(B,2,"0");case"s":return String(E.$s);case"ss":return F.s(E.$s,2,"0");case"SSS":return F.s(E.$ms,3,"0");case"Z":return P}return null}(Z)||P.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(k,E,O){var L,P=this,x=F.p(E),B=I(k),M=(B.utcOffset()-this.utcOffset())*o,V=this-B,D=function(){return F.m(P,B)};switch(x){case u:L=D()/12;break;case c:L=D();break;case p:L=D()/3;break;case i:L=(V-M)/6048e5;break;case d:L=(V-M)/864e5;break;case s:L=V/n;break;case r:L=V/o;break;case l:L=V/t;break;default:L=V}return O?L:F.a(L)},$.daysInMonth=function(){return this.endOf(c).$D},$.$locale=function(){return w[this.$L]},$.locale=function(k,E){if(!k)return this.$L;var O=this.clone(),L=N(k,E,!0);return L&&(O.$L=L),O},$.clone=function(){return F.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},v}(),R=A.prototype;return I.prototype=R,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",d],["$M",c],["$y",u],["$D",f]].forEach(function(v){R[v[1]]=function($){return this.$g($,v[0],v[1])}}),I.extend=function(v,$){return v.$i||(v($,A,I),v.$i=!0),I},I.locale=N,I.isDayjs=S,I.unix=function(v){return I(1e3*v)},I.en=w[T],I.Ls=w,I.p={},I}()),Al.exports}var Sc=xc(_c()),Ol=typeof global=="object"&&global&&global.Object===Object&&global,Tc=typeof self=="object"&&self&&self.Object===Object&&self,nt=Ol||Tc||Function("return this")(),It=nt.Symbol,El=Object.prototype,Nc=El.hasOwnProperty,Ac=El.toString,lo=It?It.toStringTag:void 0,Oc=Object.prototype.toString,Bl=It?It.toStringTag:void 0;function Bo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Bl&&Bl in Object(t)?function(o){var n=Nc.call(o,lo),a=o[lo];try{o[lo]=void 0;var l=!0}catch{}var r=Ac.call(o);return l&&(n?o[lo]=a:delete o[lo]),r}(t):function(o){return Oc.call(o)}(t)}function Ll(t){return t!=null&&typeof t=="object"}function Vl(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Ec(t){if(!Vl(t))return!1;var o=Bo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var Fl,Mn=nt["__core-js_shared__"],$l=(Fl=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||""))?"Symbol(src)_1."+Fl:"",Bc=Function.prototype.toString;function wt(t){if(t!=null){try{return Bc.call(t)}catch{}try{return t+""}catch{}}return""}var Lc=/^\[object .+?Constructor\]$/,Vc=Function.prototype,Fc=Object.prototype,$c=Vc.toString,vc=Fc.hasOwnProperty,Ic=RegExp("^"+$c.call(vc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dc(t){return!(!Vl(t)||(o=t,$l&&$l in o))&&(Ec(t)?Ic:Lc).test(wt(t));var o}function kt(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return Dc(n)?n:void 0}var Pn=kt(nt,"WeakMap");(function(){try{var t=kt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vl(t){return Ll(t)&&Bo(t)=="[object Arguments]"}var Il=Object.prototype,Mc=Il.hasOwnProperty,Pc=Il.propertyIsEnumerable;vl(function(){return arguments}());var Dl=typeof be=="object"&&be&&!be.nodeType&&be,Ml=Dl&&typeof module=="object"&&module&&!module.nodeType&&module,Pl=Ml&&Ml.exports===Dl?nt.Buffer:void 0;Pl&&Pl.isBuffer;var jl=typeof be=="object"&&be&&!be.nodeType&&be,ro=jl&&typeof module=="object"&&module&&!module.nodeType&&module,jn=ro&&ro.exports===jl&&Ol.process,Dt=function(){try{var t=ro&&ro.require&&ro.require("util").types;return t||jn&&jn.binding&&jn.binding("util")}catch{}}();Dt&&Dt.isTypedArray,kt(Object,"create");var Rn=kt(nt,"Map"),Un=kt(nt,"DataView"),zn=kt(nt,"Promise"),Gn=kt(nt,"Set"),Rl="[object Map]",Ul="[object Promise]",zl="[object Set]",Gl="[object WeakMap]",Hl="[object DataView]",jc=wt(Un),Rc=wt(Rn),Uc=wt(zn),zc=wt(Gn),Gc=wt(Pn),Mt=Bo;(Un&&Mt(new Un(new ArrayBuffer(1)))!=Hl||Rn&&Mt(new Rn)!=Rl||zn&&Mt(zn.resolve())!=Ul||Gn&&Mt(new Gn)!=zl||Pn&&Mt(new Pn)!=Gl)&&(Mt=function(t){var o=Bo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?wt(n):"";if(a)switch(a){case jc:return Hl;case Rc:return Rl;case Uc:return Ul;case zc:return zl;case Gc:return Gl}return o}),nt.Uint8Array;var Wl=It?It.prototype:void 0;Wl&&Wl.valueOf,Dt&&Dt.isMap,Dt&&Dt.isSet;const Yl=(t,o)=>{const n=Object.assign({dayjs:Sc},o);let a="";const l=[];for(const d in n)a+=`${d},`,l.push(n[d]);a=a.replace(/,$/,"");const r=`function (${a}){return ${t}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...l)}catch{return t}return s},Pt=(t="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r=window.config||{},s=Object.assign(Object.assign({},r),o),d=(t||"").match(/\{(.+?)\}/g);if(d==null||d.length===0)return t;for(let i=0;i<d.length;i++){const c=d[i];let p=c.slice(1,-1).trim();const u=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,f=p.match(u);for(let y=0;y<f.length;y++){const b=f[y],m=s[b];m!=null&&typeof m!="function"&&(p=p.replace(b,m))}(/\(.*\)/g.test(p)||/[+/\\*]/g.test(p))&&(p=Yl(p,n)),t=t.replace(c,p)}return a&&(t=t==null?void 0:t.replace(/\n|\\n/g,"<br/>")),l&&(t=t==null?void 0:t.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),t=t.replace(/Qfw\((.*?)\)/,(i,c)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(c):c)},ue=(t,o)=>{if(typeof t=="string"&&typeof o=="string")return t.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof t=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const l=o[a];if(typeof l=="string"&&t.toLocaleLowerCase().includes(l.toLocaleLowerCase()))return!0}}return!1},qe=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function Hc(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3==0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),l=t.indexOf(".")>-1?o+"."+a:o,l}const Wc=(t=[],o,n=!1)=>{let{name:a="name",types:l=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,d=t.length,i=l.length;if(d!==1||n)for(let u=0;u<d;u++){const f=t[u],y=f[a];r.add(y);for(let b=0;b<i;b++){const m=l[b],{label:h,value:C}=m,g=Object.assign(Object.assign({},f),{value:f[C]});if(s.has(h)){const T=s.get(h);T.push(g),s.set(h,T)}else s.set(h,[g])}}else{const u=[];for(let y=0;y<i;y++){const b=l[y],{label:m,value:h}=b,C=Object.assign(Object.assign({},t[0]),{value:t[0][h]});r.add(m),u.push(C)}const f=t[0][a]||"";s.set(f,u)}const c=Array.from(r),p=[];for(const[u,f]of s)p.push({name:u,data:f});return{dimensions:c,dataset:p}},Yc=(t,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Map,s=t.length;for(let c=0;c<s;c++){const p=t[c],u=p[n]||"",f=p[a]||"",y=p[l]||"";if(r.has(y)){const b=r.get(y);b.push(Object.assign({name:u,value:f},p)),r.set(y,b)}else r.set(y,[Object.assign({name:u,value:f},p)])}const d=[],i=[];for(const[c,p]of r)if(i.push({name:c,data:p}),p==null?void 0:p.length)if(d.length)for(const u of p)d.includes(u.name)||d.push(u.name);else d.push(...p.map(u=>u.name));return{dimensions:d,dataset:i}},jt=(t,o)=>{var n;if(t==null)return o;const a=t.match(/\{.*\}/g);if(a==null||a.length===0)return o;const l=a.length;for(let r=0;r<l;r++){const s=a[r];if(s==null||s==="")break;let d=(n=s.slice(1,-1))===null||n===void 0?void 0:n.trim();d=d==null?void 0:d.replace(/value/g,o);try{let i=d;(/\(.*\)/g.test(d)||/[+/\\*]/g.test(d))&&(i=Yl(d)),t=t.replace(s,i)}catch{t=t.replace(s,d)}}return t};function qc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Kc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=Ct(()=>{const{gradientShow:c,gradientColors:p,gradientOffset:u,barBorderRadius:f}=t,y=s,b=y.length,m=[];for(let h=0;h<b;h++){const C=Object.assign(Object.assign({},y[h]),{type:"bar",barWidth:t.barWidth,showBackground:t.showBarBackground}),{isStack:g,stackColumns:T}=t;if(g&&T.includes(y[h].name||!T)&&(C.stack="stack"),C.label={show:t.labelShow,fontSize:t.labelFontSize,position:t.labelPosition,color:t.labelColor,width:t.labelWidth,overflow:t.labelOverflow,formatter:w=>{let _="",S=t.labelFormatter;S===""&&(S="{c}");const{seriesName:N,name:I,value:F,data:A}=w||{};return _+=Pt(S,{textData:Object.assign({name:I,value:F,a:N,b:I,c:F||0},A)},{useNewline:!0,useSpace:!0}),_}},C.itemStyle={},c&&(C.itemStyle={color:{x:t.isUseHorizontalAxis?1:0,y:0,x2:0,y2:t.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:t.colors[h]},{offset:u,color:p[h]},{offset:1,color:p[h]}]}}),f){const w=f.split(",");if(w!=null&&w.length){const _=[];for(const S of w){const N=parseFloat(S);isNaN(N)||_.push(N)}C.itemStyle.barBorderRadius=_}}t.isShowMarkLine&&(C.markLine={data:[{type:t.markLineType}]}),m.push(C)}return m}),i=Ct(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p}));return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:b,seriesName:m,name:h,value:C,data:g}=c[y]||{};if(y===0){let T=h;typeof h!="string"||h[0]!=="0"||isNaN(+h)||(T=(+h).toString()),u+=`${jt(l,T)}<br/>`}u+=Pt(f,{textData:Object.assign({marker:b,name:h,value:C,Qfw:Hc,a:m,b:h,c:C||0},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},legend:{type:t.legendScroll?"scroll":"plain",width:t.legendWidth,height:t.legendHeight,show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{rich:{text:{width:t.legendTextWidth,color:t.legendTextStyleColor,fontSize:t.legendFontSize}}},itemHeight:t.legendItemHeight,itemWidth:t.legendItemWidth,itemGap:t.legendItemGap,data:s.map((c,p)=>({name:c.name,itemStyle:{color:t.colors[p]},icon:t.legendType})),formatter:c=>((p="",u)=>{var f;const y=p.match(/\{(.+?)\}/g),b=((f=p.split(`
62
- `))===null||f===void 0?void 0:f.length)-1;let m="";if(b)for(let C=0;C<b;C++)m+=`
63
- `;let h=p;if(y!=null&&y.length){for(const C of y){const g=Pt(C,{textData:u},{useNewline:!1,useSpace:!1});g&&(h=h.replace(C,g))}return`${m}{text|${h}}`}return p})(t.legendFormatter,{name:c})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:dt(i),inverse:t.isUseHorizontalAxis?t.xAxisInverse:t.axisInverse,minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor,type:t.xAxisSplitLineType},interval:t.xAxisSplitLineInterval},splitArea:{show:t.xAxisSplitAreaShow},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,fontSize:t.xAxisLabelFontSize,formatter:c=>(typeof c!="string"||c[0]!=="0"||isNaN(+c)||(c=(+c).toString()),jt(l,c))},axisLine:{show:t.xAxisLineShow,lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow},name:t.xAxisName,nameTextStyle:{fontSize:t.xAxisLabelFontSize,color:t.xAxisLabelColor,align:"left"},max:t.xAxisMaxValue||null},yAxis:{type:t.isUseHorizontalAxis?"category":"value",data:t.isUseHorizontalAxis?dt(r):null,inverse:t.isUseHorizontalAxis?t.axisInverse:t.yAxisInverse,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:t.yAxisSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{show:t.yAxisLabelShow,fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,rotate:t.yAxisLabelRotate,width:t.yAxisLabelWidth,overflow:t.yAxisLabelOverflow,formatter:c=>jt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:t.yAxisName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:"right"},max:t.yAxisMaxValue||null},series:dt(d)}},Xc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,d=Ct(()=>r.map(c=>{let p={};return p=c&&typeof c=="object"?Object.assign(Object.assign({},c),{textStyle:{fontSize:n}}):{value:c,textStyle:{fontSize:n}},p})),i=Ct(()=>{const c=[],p=s.length;for(let u=0;u<p;u++){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),c.push(Object.assign(Object.assign(Object.assign({type:"line"},s[u]),{symbolSize:t.symbolSize,smooth:t.smooth,areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},f)}),qc(t)))}return c});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:c=>{const p=c.length;let u="",f=t.tooltipFormatter;f===""&&(f="{marker} {a} {c}");for(let y=0;y<p;y++){const{marker:b,seriesName:m,name:h,value:C,data:g}=c[y]||{};y===0&&(u+=`${h}<br/>`),u+=Pt(f,{textData:Object.assign({marker:b,name:h,value:C,a:m,b:h,c:C},g)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n.value},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},xAxis:{name:t.xAxisName,type:"category",data:dt(d),minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,formatter:c=>jt(l,c)},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",name:t.yAxisName,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{fontSize:n,color:t.yAxisLabelColor,formatter:c=>jt(a,c)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{fontSize:n}},series:dt(i)}},Qc=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,d=t.colors;l=l.map((i,c)=>Object.assign({label:s?{color:d[c]}:{}},i))}return{title:{text:t.titleText,subtext:t.titleSubtext,textStyle:{fontSize:t.titleFontSize,fontWeight:t.fontWeight,color:t.titleColor},left:t.textAlign||"center"},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:s=>{const{marker:d,seriesName:i,name:c,value:p,percent:u,data:f}=s||{};return Pt(t.tooltipFormatter,{textData:Object.assign({marker:d,name:c,value:p,percent:u,a:i,b:c,c:p,d:u},f)},{useNewline:!0,useSpace:!0})},textStyle:{color:t.tooltipTextStyleColor||"#333"},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n===18?n:t.labelFontSize}},series:[{data:l,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,minAngle:t.minAngle,label:{show:t.labelPosition!=="center"&&t.labelShow,color:t.labelColor,fontSize:n===18?n:t.labelFontSize,position:t.labelPosition,formatter:(r=t.labelFormatter,r.replace(/\\n/g,`
64
- `))},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var r},Jc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=Ct(()=>a.map(i=>{let c={};return c=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},c})),s=Ct(()=>{const i=[],c=l.length,p=t.seriesTypes;for(let u=0;u<c;u++){const f=p[u],{type:y,axisIndex:b}=f||{};let m=Object.assign({type:y,yAxisIndex:b},l[u]);if(y==="line"){const h={};t.shadowColor&&(h.shadowColor=t.shadowColor,h.shadowBlur=t.shadowBlur,h.shadowOffsetY=t.shadowOffsetY,h.shadowOffsetX=t.shadowOffsetX),m=Object.assign(Object.assign({},m),{symbolSize:t.symbolSize,smooth:t.smooth,itemStyle:{color:t.colors[u]},areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},h)})}if(y==="bar"){const{gradientShow:h,gradientColors:C,gradientOffset:g}=t,T={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const _=[];for(const S of w){const N=parseFloat(S);isNaN(N)||_.push(N)}T.borderRadius=_}}h&&(T.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:g,color:C[u]},{offset:1,color:C[u]}]}),m=Object.assign(Object.assign({},m),{barWidth:t.barWidth,itemStyle:T})}t.isShowMarkLine&&(m.markLine={data:[{type:t.markLineType}]}),i.push(m)}return i}),d=Ct(()=>{const i=t.yAxis;return i==null?void 0:i.map((c,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>jt(c.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const c=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const f=t.seriesTypes;for(let y=0;y<c;y++){const b=f[y],{tooltipFormatter:m}=b||{},{marker:h,seriesName:C,name:g,value:T,data:w}=i[y]||{};y===0&&(p+=`${g}<br/>`),p+=Pt(m||u,{textData:Object.assign({marker:h,name:g,value:T,seriesName:C,a:C,b:g,c:T},w)},{useNewline:!0,useSpace:!0}),p+="<br/>"}return p},textStyle:{color:t.tooltipTextStyleColor||"#333",fontSize:n},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},xAxis:{name:t.xAxisName,minInterval:t.xAxisMinInterval,type:"category",data:dt(r),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:dt(d),series:dt(s)}},Zc=(t,o,n=12)=>Object.assign(Object.assign({},(a=>({title:{text:a.titleText,subtext:a.titleSubtext,textStyle:{fontSize:a.titleFontSize,fontWeight:a.fontWeight,color:a.titleColor},left:a.textAlign||"center"},grid:{top:a.gridTop,bottom:a.gridBottom,left:a.gridLeft,right:a.gridRight,containLabel:a.gridContainLabel},color:a.colors}))(t)),((a,l,r)=>{switch(a.type){case"bar":return Kc(a,l,r);case"line":return Xc(a,l,r);case"pie":return Qc(a,l,r);case"comboGraph":return Jc(a,l,r);default:return{}}})(t,o,n)),ft=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...ft(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},ql=(t,o)=>{var m;const n=ee.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:d=[],rightAxisList:i=[],queryColumnList:c=[],indicators:p=[]}=t;Xl(n,o);const u=n,f=[...a,...l,...r,...s,...d,...i,...c,...p],y=[];for(const h of f){const C=ft((h==null?void 0:h.conditions)||[]);if(C!=null&&C.length){const g=C.filter(T=>Ql(T,o)?(T==null?void 0:T.dataType)==="component":!1).map(T=>{const w=Ql(T,o),_={};return T!=null&&T.dateFormat&&(_.format=T.dateFormat),{conditionKey:T.fieldName,conditionLabel:T.fieldName,conditionName:T.fieldName,conditionValueType:T.fieldType,id:w.id,keyName:T.fieldValue,rule:T.rule,notGlobal:!0,indexCode:T.indexCode,typeGuid:T.typeGuid,indexCodeNum:T.indexCodeNum,..._}});if(g!=null&&g.length)for(const T of g)y.find(w=>w.keyName===T.keyName)||y.push(T)}}const b=y.length;for(let h=0;h<b;h++){const C=y[h];if(C&&!((m=Object.keys(C))!=null&&m.length)||(C==null?void 0:C.conditionKey)==="parentCode")continue;const{id:g,keyName:T,prop:w,format:_,dataType:S="component",customValue:N}=C,I=Kl(C);Hn({sqlCondition:I,renderUsedComponents:o,id:g,dateFormat:_,prop:w,keyName:T,dataType:S,customValue:N}),u.push(I)}for(let h=u.length-1;h>=0;h--){const C=u[h];C.globalCondition||ft(u).find(T=>T.alias===C.alias&&T.globalCondition)&&u.splice(h,1)}return u},io=(t,o)=>{const n=[];if(t!=null&&t.length){for(const a of t)if(a.variableName){const l={variateName:a.variableName,globalCondition:!1,valueType:a.variableType,alias:a.keyName||""};Hn({sqlCondition:l,renderUsedComponents:o,id:a.id,dateFormat:a.format,prop:a.dateTypeValue,keyName:a.keyName,dataType:a.dataType,customValue:a.variableValue,operateType:a.operateType,operateMode:a.operateMode,operateValue:a.operateValue}),a.format&&(l.dateFormat=a.format),a.label&&(l.label=a.label),n.push(l)}}return n};function Kl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:d="NONE",notGlobal:i=!1,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f="component"}=t;let y=n||o;return y&&s&&(y+=`-${s}`),{rule:d,label:a,fieldName:l,fieldValue:"",valueType:r,alias:y,globalCondition:!i,indexCode:c,indexCodeNum:p,typeGuid:u,dataType:f}}const ed=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Xl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Xl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:d="component",customValue:i}=n,c=Kl(n);Hn({sqlCondition:c,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:d,customValue:i});for(const p in c)n[p]=c[p];for(const p of ed)delete n[p]}}function Hn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:d,customValue:i,operateValue:c,operateMode:p,operateType:u}=t,f=e.unref(n).find(T=>T.id===a),{value:y,format:b="YYYY-MM-DD",operate:m,type:h="",useCurrentTime:C}=f||{},g=l||b;if(ue(h,"date")){let T;if(C?T=ye():T=ye(y),m&&y){const{mode:w,type:_,value:S}=m;if(S)switch(_){case"add":T=T.add(S,w);break;case"minus":T=T.subtract(S,w);break}}if(c&&p&&u)switch(u){case"add":T=T.add(c,p);break;case"minus":T=T.subtract(c,p);break}o.fieldValue=(T==null?void 0:T.format(g))||"",o.dateFormat=g}else if(h==="ecanRangePicker"){const{interval:T,intervalUnit:w,startTime:_,endTime:S}=f||{};let N=r;if(!r){const F=s==null?void 0:s.split("-");F!=null&&F.length&&(N=F[F.length-1])}if(!N)return;let I=null;if(C&&(N==="startTime"?I=ye().subtract(T,w):N==="endTime"&&(I=ye())),f[N]&&(I=ye(f[N])),m){const{type:F,value:A,mode:R}=m;switch(F){case"add":I=I&&I.add(A,R);break;case"minus":I=I&&I.subtract(A,R)}}if(c&&p&&u){if(c==="rangeValue"){if(_&&S){const F=ye(S).diff(ye(_),p)+1;switch(u){case"add":I=I&&I.add(F,p);break;case"minus":I=I&&I.subtract(F,p)}}}else if(!isNaN(+c))switch(u){case"add":I=I&&I.add(c,p);break;case"minus":I=I&&I.subtract(c,p)}}if(I&&(o.fieldValue=I==null?void 0:I.format(g)),N==="rangeValue"&&_&&S){const F=td(g);F&&(o.fieldValue=ye(S).diff(ye(_),F)+1)}o.dateFormat=g}else{const T=y&&y.match(/\{(.+?)\}/g);T!=null&&T.length?o.fieldValue="":o.fieldValue=y}d===""&&(o.fieldValue=i||"")}const Lo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Ql(t,o){var n;if(t.componentId)return o.find(a=>a.id===t.componentId);if(t.dataType==="component")if(t.fieldType==="DATE"){const a=(n=t.fieldValue)==null?void 0:n.split("-");return a!=null&&a.length?a[0]:null}else return o.find(a=>a.keyName===t.fieldValue);else return null}function td(t){const o=t.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function od(t,o){let n=t[o.label];if((n||n===0)&&n!==""&&o.dataFormat&&o.dataFormat.length!==0){if(o.dataFormat.includes("#.00")&&(typeof n!="number"&&(n=n.replace(/,/g,"")),Number(n)||Number(n)===0)){const a=o.retentiondigit?o.retentiondigit-0:o.retentiondigit;n=Number(n).toFixed(a)}if(o.dataFormat.includes("#,000")){const a=n.toString();a.includes(",")||(n=nd(a))}}return n}function nd(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const Jl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],Zl=t=>({0:"文本",1:"数值",2:"日期"})[t],er=t=>t==="0"?"手工录入":t==="1"?"系统取数":t==="2"?"运算加工":"",tr=t=>{let o="";switch(t){case"1":o="人力系统";break;case"2":o="绩效系统";break;case"3":o="预算系统";break;case"4":o="财务系统";break;case"5":o="成本系统";break;case"6":o="物流系统";break;case"7":o="固定资产系统";break;case"8":o="OA办公系统";break;case"9":o="电子档案系统";break;case"10":o="个人收入系统";break;case"11":o="奖金二次分配系统";break;case"12":o="财务管理系统";break;case"13":o="报销系统";break;case"14":o="科研管理系统";break;case"15":o="审计系统";break;case"16":o="分组器系统";break}return o},or=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ad=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ua,CaretDownOutlined:ja,LoadingOutlined:Ps,Draggable:Lt,ATooltip:j.Tooltip},props:{data:{type:Array,default:()=>[]},source:{type:String,default:""},isSub:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},total:{type:Number,default:0},graphicConfig:{type:Object,default:()=>({})}},setup(t,{emit:o,expose:n}){var _;const a=(_=window==null?void 0:window.config)==null?void 0:_.pageId,l=e.inject(Be),r=e.unref(e.inject(Le)),s=e.inject("setItemDisabled",S=>!1),d=e.ref([]),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),f=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(N=>{var I;N!=null&&N.isLeaf||(I=N.dataViewColumns)==null||I.forEach(F=>{F.show=!0,F.edit=!1,F.title&&(F.label=F.title)})}),d.value=S)},{deep:!0,immediate:!0});const y=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",g)},b=async S=>{var F;if(e.unref(p))return;const N=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const I={source:t.source,pageId:a,dataSourceId:N,indexName:u.value};S?(S.loading=!0,I.indexTypeGuid=S.indexTypeGuid,I.isLeaf=S.isLeaf):c&&(I.queryRequest={pageSize:c.pageSize,pageNum:c.currentPage});try{const A=await l.post(`${_e}/diagram/sourceList`,I,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:v={}}=A.data;if(R){const{rows:$=[],total:k=0}=v;$==null||$.forEach(E=>{var O;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(O=E.dataViewColumns)==null||O.forEach(L=>{L.show=!0,L.edit=!1,L.title&&(L.label=L.title)}):E.show=!1}),S?(S.children=$,S.show=!0,$!=null&&$.length||(S.noData=!0)):(d.value=e.unref(d).concat($),c.totalResult=+k,((F=e.unref(d))==null?void 0:F.length)>=k&&y())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},m=async S=>{const N=d.value[S],{children:I=[]}=N;I!=null&&I.length?N.show=!N.show:!N.noData&&N.isLeaf?b(N):N.noData&&(N.show=!N.show)},h=(S,N)=>{o("onDragStart",S,N)},C=S=>{S.show=!S.show},g=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(c.currentPage++,b())},T=async()=>{await b(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&c.totalResult>e.unref(d).length&&(c.currentPage++,T())})},w=async S=>{var N;y(),f.value=!0,c.currentPage=1,c.totalResult=0,d.value=[],u.value=S,await T(),f.value=!1,(N=e.unref(i))==null||N.addEventListener("scroll",g)};return e.onMounted(async()=>{var S;t.isSub||(T(),(S=e.unref(i))==null||S.addEventListener("scroll",g))}),e.onUnmounted(()=>{y()}),n({handleSearch:w}),{columnRef:i,sourceList:d,searchLoading:f,onToggleGroup:m,onToggleSource:C,setItemDisabled:s,onDragStart:h,mapDataSetScope:Zl,mapScope:Jl,getLoadType:er,getUseType:tr,getSourceType:or}}}),Ty="",ld={key:0,class:"no-data"},rd={class:"column-item"},id=["onClick"],sd={key:3,class:"item-name"},cd={key:0},dd={class:"column-item"},pd={key:0},ud={key:1},fd={key:2},md=["onClick"],hd={class:"column-child-item"},bd={class:"field"},yd={class:"column-child-item-name"};function gd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),d=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),c=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(f,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var y;return[!((y=t.sourceList)!=null&&y.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",ld,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(b,m)=>(e.openBlock(),e.createElementBlock("div",{key:b.indexTypeGuid||b.id},[e.createElementVNode("div",rd,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:h=>t.onToggleGroup(m)},[b.loading?(e.openBlock(),e.createBlock(s,{key:0})):b.show?(e.openBlock(),e.createBlock(d,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),b.isLeaf?(e.openBlock(),e.createElementBlock("span",sd,e.toDisplayString(b.indexTypeCode+"."+b.indexTypeName),1)):e.createCommentVNode("",!0)],8,id)]),b.show?(e.openBlock(),e.createElementBlock("div",cd,[e.createVNode(c,{data:b.children,isSub:!0,hasChildren:b.isLeaf==="0",graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,b=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",dd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",pd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",ud,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0),b.dataTo?(e.openBlock(),e.createElementBlock("div",fd,"数据来源:"+e.toDisplayString(t.getSourceType(b.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:m=>t.onToggleSource(b)},[b.show?(e.openBlock(),e.createBlock(d,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name),1)],8,md)]),_:2},1024)]),b.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:b.dataViewColumns,"onUpdate:modelValue":m=>b.dataViewColumns=m,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:m=>t.onDragStart(m,b)},{item:e.withCtx(({element:m})=>[e.createElementVNode("div",hd,[e.createElementVNode("span",bd," 【"+e.toDisplayString(m.scope==="FIELD"?t.mapDataSetScope(m.genericType):t.mapScope(m.scope))+"】 ",1),e.createElementVNode("span",yd,e.toDisplayString(m.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const Cd=ae(ad,[["render",gd],["__scopeId","data-v-ab51ed18"]]),wd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ua,CaretDownOutlined:ja,IndSourceList:Cd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Lt,ATooltip:j.Tooltip},setup(){var _;const t=(_=window==null?void 0:window.config)==null?void 0:_.pageId,o=e.inject(Be),n=e.unref(e.inject(Le)),a=e.inject(Ie),l=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.graphicConfig}),r=e.computed(()=>{var S;return(S=e.unref(l))==null?void 0:S.dataSourceId}),s=e.ref([]),d=e.ref(!1),i=e.ref(),c=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Xt),u=e.ref(""),f=async()=>{if(e.unref(C).source==="INDICATOR_LIB")return;d.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:c.pageSize,pageNum:c.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const N=await o.post(`${_e}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});d.value=!1;const{success:I,data:F={}}=N.data;if(I){const{rows:A=[],total:R=0}=F;A==null||A.forEach(v=>{var $;v.show=!1,($=v.dataViewColumns)==null||$.forEach(k=>{k.show=!0,k.edit=!1,k.title&&(k.label=k.title)})}),s.value=A,c.totalResult=+R}}catch{d.value=!1}},y=S=>{s.value[S].show=!s.value[S].show},b=()=>{var S;c.currentPage=1,f(),e.unref(C).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},m=ee.debounce(()=>{c.currentPage=1,f()},200),h=(S,N)=>{c.pageSize=N,c.currentPage=S,f()};e.onMounted(()=>{f()});const C=e.inject(Ce),g=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let N=[];for(const I in e.unref(C))if(Object.prototype.hasOwnProperty.call(e.unref(C),I)&&S.includes(I)){const F=e.unref(C)[I];Array.isArray(F)&&(N=N.concat(F))}return N}),T=(S=[])=>{let N=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const I of e.unref(g))if(!S.find(A=>A.parentId===I.parentId)){N=!0;break}}else for(const I of e.unref(g))if(!S.find(A=>A.typeGuid===I.typeGuid)){N=!0;break}return N};return e.provide("setItemDisabled",T),{dataSourceList:s,dataSourceLoading:d,pagination:c,onToggleGroup:y,mapScope:Jl,mapDataSetScope:Zl,onSearch:b,onChange:m,source:p,onPaginationChange:h,searchText:u,setItemDisabled:T,onDragStart:(S,N)=>{const I=N.dataViewColumns[S.oldIndex];let F={};N.dataSetParams&&(F=N.dataSetParams),I&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...I,dataTo:N.dataTo,dataSetParams:F})),N.dataTo==="1"&&(N!=null&&N.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.hrpIndexVariates)),N.dataTo==="2"&&(N!=null&&N.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(N.dataSetParams)))},getSourceType:or,getLoadType:er,getUseType:tr,graphicConfig:C,indSourceRef:i}}}),Ny="",kd={class:"data-source-list"},xd={class:"columns"},_d={class:"column-item"},Sd={key:0},Td={key:1},Nd=["onClick"],Ad={key:0},Od={class:"column-child-item"},Ed={class:"column-child-item-name"};function Bd(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),d=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),c=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-spin"),y=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",kd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=b=>t.searchText=b),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(d,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",xd,[e.createVNode(f,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(b,m)=>(e.openBlock(),e.createElementBlock("div",{key:b.id,class:e.normalizeClass(t.setItemDisabled(b.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",_d,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(b.loadType)),1),b.useType?(e.openBlock(),e.createElementBlock("div",Sd,"数据使用系统:"+e.toDisplayString(t.getUseType(b.useType)),1)):e.createCommentVNode("",!0),b.systemSource?(e.openBlock(),e.createElementBlock("div",Td,"制度出处:"+e.toDisplayString(b.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:h=>t.onToggleGroup(m)},[b.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(c,{key:1})),e.createTextVNode(" "+e.toDisplayString((b.indexCode?b.indexCode:"")+" "+b.name)+"【"+e.toDisplayString(t.getSourceType(b.dataTo))+"】 ",1)],8,Nd)]),_:2},1024)]),b.show?(e.openBlock(),e.createElementBlock("div",Ad,[e.createVNode(u,{modelValue:b.dataViewColumns,"onUpdate:modelValue":h=>b.dataViewColumns=h,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(b.dataViewColumns),onStart:h=>t.onDragStart(h,b)},{item:e.withCtx(({element:h})=>[e.createElementVNode("div",Od,[e.createTextVNode(" 【"+e.toDisplayString(h.scope==="FIELD"?t.mapDataSetScope(h.genericType):t.mapScope(h.scope))+"】 ",1),e.createElementVNode("span",Ed,e.toDisplayString(h.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(y,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=b=>t.pagination.pageSize=b),total:t.pagination.totalResult,"show-total":b=>`共 ${b} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=b=>t.pagination.currentPage=b),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ld=ae(wd,[["render",Bd],["__scopeId","data-v-b9ee6c24"]]),Vd=e.defineComponent({name:"DataList",components:{DataSourceList:Ld,DataViewList:di},setup(){return{source:e.inject(Xt)}}});function Fd(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),d=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(d,{key:1})):e.createCommentVNode("",!0)],64)}const $d=ae(Vd,[["render",Fd]]),nr={mounted(t){t.focus()}},vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Lt,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:Ya},setup(t,{expose:o}){var F;const n=(F=window==null?void 0:window.config)==null?void 0:F.pageId,a=e.inject(Be),l=e.unref(e.inject(Le)),r=e.inject(Ce),s=e.inject(Ae),d=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),c=e.ref([]),p=e.ref("1"),u=e.ref([]),f=A=>{const R=t.sortList.filter($=>!e.unref(u).find(k=>k.columnName===$.name)||A.columnName===$.name),v=[];return R.forEach(($,k)=>{v.includes($.name)?$.name=`${$.name}_ecanrepeat_${k}`:v.push($.name)}),R},y=async()=>{try{const A=await a.post(`${_e}/diagram/groupvalue`,{source:e.unref(d),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:R,data:v=[]}=A.data;R&&(c.value=v==null?void 0:v.slice(0,200))}catch(A){console.error(A)}},b=()=>{var k,E;const A=((k=e.unref(r)[t.type])==null?void 0:k.slice())||[],R=A[t.index],{label:v,name:$}=t.item;e.unref(p)==="2"?R.sort={label:v,columnName:$,type:"CUSTOM",customOrderColumns:e.unref(c)}:e.unref(p)==="1"&&((E=e.unref(u))!=null&&E.length?R.sort=ee.cloneDeep(e.unref(u)):delete R.sort),s({[t.type]:A})};let m=!1;const h=()=>{m=!0},C=e.ref(!1),g=A=>{var v;const{sort:R}=A;R?Array.isArray(R)?(p.value=((v=R[0])==null?void 0:v.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=ee.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[ee.cloneDeep(R)]:u.value=[]):u.value=[],C.value=!0},T=()=>{C.value=!1},w=()=>{e.unref(p)==="2"?(m&&b(),m=!1):b(),T()};return o({showModal:g}),e.watch(C,A=>{var R,v;if(A){const $=(v=(R=t.item)==null?void 0:R.sort)==null?void 0:v.customOrderColumns;$==null?y():c.value=$}else c.value=[];window.changeShowTable&&window.changeShowTable(!A)},{flush:"post"}),{visible:C,customSortList:c,activeKey:p,combSortList:u,getSortOptions:f,onChange:h,onDeleteConfig:()=>{var v;const A=((v=e.unref(r)[t.type])==null?void 0:v.slice())||[],R=A[t.index];delete R.sort,s({[t.type]:A}),T()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:A=>{u.value.splice(A,1)},onColumnChange:A=>{const R=e.unref(u).find(v=>v.columnName===A);if(R){const v=t.sortList.find($=>$.name===A);v&&(R.label=v.label,v.defaultCode?R.defaultCode=v.defaultCode:delete R.defaultCode)}}}}}),Ay="",Id={class:"button-wrapper"},Dd={class:"list-wrapper"},Md={class:"button-wrapper"},Pd={class:"sort-item"};function jd(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),f=e.resolveComponent("a-tabs"),y=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(y,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(f,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=b=>t.activeKey=b)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Id,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",Dd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(b,m)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:m},[e.createVNode(d,{value:b.columnName,"onUpdate:value":h=>b.columnName=h,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(b),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(d,{value:b.order,"onUpdate:value":h=>b.order=h,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(c,{style:{color:"red","margin-left":"10px"},onClick:h=>t.handleDeleteSort(m)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Md,[e.createVNode(s,{danger:"",onClick:t.onDeleteConfig},{default:e.withCtx(()=>[e.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),e.createVNode(u,{modelValue:t.customSortList,"onUpdate:modelValue":o[0]||(o[0]=b=>t.customSortList=b),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",Pd,e.toDisplayString(b),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Rd=ae(vd,[["render",jd],["__scopeId","data-v-6a468e35"]]),Ud=e.defineComponent({name:"CustomGroupModal",directives:{focus:nr},components:{CloseOutlined:eo,AModal:j.Modal,ASelect:j.Select,ASelectOption:j.SelectOption,AButton:j.Button,AInput:j.Input,ACheckbox:j.Checkbox,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ATag:j.Tag,ACheckableTag:j.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var P;const n=e.inject(Be),a=(P=window==null?void 0:window.config)==null?void 0:P.pageId,l=e.unref(e.inject(Le));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),d=e.ref(null),i=e.ref([]),c=e.ref([]),p=e.computed(()=>{const x=e.unref(c).map(B=>B.title);return new Set(x)}),u=e.ref([]);e.watch(()=>e.unref(c).length,x=>{u.value=new Array(x).fill(!1)});const f=e.computed(()=>{let x=0;return e.unref(c).forEach(B=>{var M;(M=B.data)==null||M.forEach(V=>{V.checked&&x++})}),x}),y=()=>{const x=e.unref(d);if(!x){j.message.error("创建分组名不能空");return}e.unref(p).has(x)?j.message.error("分组名已存在,请重新命名"):(e.unref(c).push({title:x,data:[]}),r=!0)},b=x=>{e.unref(c).splice(x,1),r=!0},m=e.ref(null),h=()=>{if(e.unref(f)===0){j.message.error("当前移入分组已选个数为0");return}const x=e.unref(m);if(x==null){j.message.error("请选择移入分组");return}if(!e.unref(c)[x]){j.message.error("移入分组不存在,请重新选择");return}const B=[],M=e.unref(c).length;for(let V=0;V<M;V++){const D=e.unref(c)[V];e.unref(c)[V].data=D.data.filter(U=>(U.checked&&B.push({...U,checked:!1}),!U.checked))}e.unref(c)[x].data=[...B,...e.unref(c)[x].data],r=!0},C=x=>{e.unref(u)[x]=!0},g=x=>{e.unref(u)[x]=!1},T=(x,B)=>{const M=x.target.value;e.unref(p).has(M)&&j.message.error("组名不能相同,请修改"),e.unref(c)[B].title=M,r=!0},w=e.inject(Ce),_=e.inject(Ae),S=e.computed(()=>e.unref(w).source),N=e.computed(()=>e.unref(w).dataViewId),I=e.ref(!1),F=()=>{var H,q;const x=e.unref(c);let B="";e.unref(I)&&(B=(H=x[0])==null?void 0:H.title);const M=x==null?void 0:x.length,V={};for(let Q=1;Q<M;Q++){const Z=x[Q]||{},{title:oe,data:le}=Z;V[oe]=(le==null?void 0:le.map(re=>re.label))||[]}const D=((q=e.unref(w)[t.type])==null?void 0:q.slice())||[],U=D[t.index];U.customGroup={groupInfoMap:V,otherGroupName:B},_({[t.type]:D})},A=e.ref(!1),R=()=>{A.value=!0},v=()=>{A.value=!1},$=()=>{v(),r&&F(),r=!1},k=()=>{r=!0},E=new Set,O=async()=>{const x=t.item.customGroup||{},B=x.otherGroupName,M=x.groupInfoMap;(B===""||B==null)&&(I.value=!1),e.unref(c)[0]={title:B||"未分组",data:[]};let V=1;for(const D in M)if(Object.prototype.hasOwnProperty.call(M,D)){const H=M[D].map(q=>(E.add(q),{label:q,checked:!1}));e.unref(c)[V]={title:D,data:H},V++}await L()},L=async()=>{var x;try{const B=await n.post(`${_e}/diagram/groupvalue`,{source:e.unref(S),dataViewId:e.unref(N),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(w).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:M,data:V=[]}=B.data;if(M){const D=[];(x=V==null?void 0:V.slice(0,200))==null||x.forEach(U=>{E.has(U)||D.push({label:U,checked:!1})}),e.unref(c)[0].data=D}}catch(B){console.error(B)}};return e.watch(A,x=>{x&&O(),window.changeShowTable&&window.changeShowTable(!x)},{flush:"post"}),o({showModal:R}),{visible:A,title:s,activeKey:i,customGroupList:c,onCancel:$,useOtherGroup:I,selectCount:f,createGroupTitle:d,onAddGroup:y,onDeleteGroup:b,onMoveInGroup:h,selectGroupIndex:m,onEditTitle:C,onTitleChange:T,onFinishEditTitle:g,onUseOtherGroup:k,customGroupEditTitleList:u}}}),Oy="",Ey="",zd={class:"custom-group-header"},Gd={class:"move-and-create"},Hd={class:"select-tip"},Wd={class:"select-count"},Yd={class:"create-group"},qd={class:"custom-group-content"},Kd=["onClick"],Xd={class:"extra"},Qd={class:"custom-group-list"},Jd={class:"text"};function Zd(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),p=e.resolveComponent("a-checkbox"),u=e.resolveComponent("a-tag"),f=e.resolveComponent("close-outlined"),y=e.resolveComponent("a-checkable-tag"),b=e.resolveComponent("a-collapse-panel"),m=e.resolveComponent("a-collapse"),h=e.resolveComponent("a-modal"),C=e.resolveDirective("focus");return e.openBlock(),e.createBlock(h,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",zd,[e.createElementVNode("div",Gd,[e.createElementVNode("div",null,[e.createElementVNode("span",Hd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Wd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(d,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=g=>t.selectGroupIndex=g),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(s,{key:T},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(g.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createElementVNode("div",Yd,[e.createTextVNode(" 创建分组: "),e.createVNode(c,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[1]||(o[1]=g=>t.createGroupTitle=g),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])])]),e.createElementVNode("div",null,[e.createVNode(p,{checked:t.useOtherGroup,"onUpdate:checked":o[2]||(o[2]=g=>t.useOtherGroup=g),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])])]),e.createElementVNode("div",qd,[e.createVNode(m,{activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=g=>t.activeKey=g),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(g,T)=>(e.openBlock(),e.createBlock(b,{key:T},{header:e.withCtx(()=>[t.customGroupEditTitleList[T]?e.withDirectives((e.openBlock(),e.createBlock(c,{key:1,class:"edit-title-input",value:g.title,size:"small",onChange:w=>t.onTitleChange(w,T),onBlur:w=>t.onFinishEditTitle(T),onPressEnter:w=>t.onFinishEditTitle(T)},null,8,["value","onChange","onBlur","onPressEnter"])),[[C]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(T),["prevent","stop"])},e.toDisplayString(g.title),9,Kd))]),extra:e.withCtx(()=>[e.createElementVNode("div",Xd,[T===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),T!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(f,{onClick:e.withModifiers(w=>t.onDeleteGroup(T),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",Qd,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.data,(w,_)=>(e.openBlock(),e.createBlock(y,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:_},{default:e.withCtx(()=>[e.createElementVNode("span",Jd,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const ep=ae(Ud,[["render",Zd],["__scopeId","data-v-a0733a80"]]);let ge=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let a=n[t]&63;a<36?o+=a.toString(36):a<62?o+=(a-26).toString(36).toUpperCase():a<63?o+="_":o+="-"}return o};var tp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wn={},op={get exports(){return Wn},set exports(t){Wn=t}};(function(t,o){(function(n,a){t.exports=a()})(tp,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(c){return this.$utils().u(c)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(c-1))};var d=s.add;s.add=function(c,p){return c=Number(c),this.$utils().p(p)===a?this.add(3*c,n):d.bind(this)(c,p)};var i=s.startOf;s.startOf=function(c,p){var u=this.$utils(),f=!!u.u(p)||p;if(u.p(c)===a){var y=this.quarter()-1;return f?this.month(3*y).startOf(n).startOf("day"):this.month(3*y+2).endOf(n).endOf("day")}return i.bind(this)(c,p)}}})})(op);const np=Wn;ye.extend(np);const ap=e.defineComponent({name:"Condition",components:{CloseOutlined:eo,DownOutlined:Ls,AppstoreAddOutlined:un,ASelect:j.Select,AInput:j.Input,ADatePicker:j.DatePicker,AButton:j.Button,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem,ASubMenu:j.SubMenu,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,ARadioGroup:j.RadioGroup,ARadio:j.Radio,AInputNumber:j.InputNumber,ASelectOption:j.SelectOption,MenuOutlined:Sn},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},setup(t){var Yt,qt,ve,Ze,Ot,rt,et,Ue,Et,it,bt,Yo,qo,Kt,Co;const o=(Yt=window==null?void 0:window.config)==null?void 0:Yt.pageId,n=e.inject(Ce),a=e.inject(Be),l=e.unref(e.inject(Le)),r=e.inject(ha),s=e.inject(ze),d=e.ref(!1),i=ye(),c=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:ie="",id:ne="",type:me}=te;me==="ecanRangePicker"?W.push({value:`${ne}-startTime`,label:`${ie||ne}-开始时间值`,keyName:`${ie||ne}-startTime`,id:ne},{value:`${ne}-endTime`,label:`${ie||ne}-结束时间值`,keyName:`${ie||ne}-endTime`,id:ne}):W.push({value:ne,label:`${ie||ne}`,keyName:`${ie||ne}`,id:ne})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(c)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),f=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),y=e.ref(!1),b={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},m=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],h=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),C=e.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),g=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],T=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],_=e.ref({fieldName:(qt=t.data)==null?void 0:qt.fieldName,fieldType:(ve=t.data)==null?void 0:ve.fieldType,rule:(Ze=t.data)==null?void 0:Ze.rule,id:(Ot=t.data)==null?void 0:Ot.id,fieldValue:S(),label:(rt=t.data)==null?void 0:rt.label,targetSource:"",typeGuid:(et=t.data)==null?void 0:et.typeGuid,indexCode:(Ue=t.data)==null?void 0:Ue.indexCode,indexCodeNum:(Et=t.data)==null?void 0:Et.indexCodeNum,dataType:((it=t.data)==null?void 0:it.dataType)||"",componentId:((bt=t.data)==null?void 0:bt.componentId)||"",useCurrentTime:!!((Yo=t.data)!=null&&Yo.useCurrentTime),keyValue:(qo=t.data)==null?void 0:qo.keyValue,modelKey:(Kt=t.data)==null?void 0:Kt.modelKey,prop:(Co=t.data)==null?void 0:Co.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&ye(te);if(K==="component"){const ie=e.unref(c).find(ne=>ne.keyName===te);return ie?ie.value:te}else return te}const N=e.ref([]),I=e.ref(!1),F=e.computed(()=>_.value.fieldType==="DATE"),A=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const ie=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ne=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=N.value;else if(ie.includes(W)){let me=[];for(const Se in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Se)&&!ne.includes(Se)){const tt=e.unref(n)[Se];Array.isArray(tt)&&(ie.includes(Se)?me=me.concat(tt.filter(z=>z.show)):me=me.concat(tt))}te=me}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(me=>({...me,label:me.label||me.title,value:me.name}))}),{updateCondition:R,deleteCondition:v,addCondition:$}=e.inject(ko,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),k=()=>{v(t.index,t.path)};e.watch(_,W=>{const K=ee.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),R(K,t.index,t.path)},{deep:!0}),e.watch(d,W=>{_.value.fieldValue="",_.value.useCurrentTime=W});const E=W=>{var Y;const K=e.unref(A).find(X=>X.value===W)||{},{name:te,genericType:ie,id:ne,edvDataSetId:me,label:Se,typeGuid:tt,indexCode:z,indexCodeNum:G}=K;_.value={id:ne,fieldName:te,fieldType:ie,label:Se,rule:"",fieldValue:ie==="DATE"?null:void 0,targetSource:"",typeGuid:tt,indexCode:z,edvDataSetId:me,indexCodeNum:G,dataType:"",useCurrentTime:!1,keyValue:((Y=e.unref(_))==null?void 0:Y.keyValue)||ge(),modelKey:"",prop:""}},O=W=>{const K=e.unref(c).find(te=>te.value===W)||{};e.unref(_).componentId=K.id||""},L=e.computed(()=>{const W=e.unref(_).fieldType;return W==="TEXT"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:W==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:W==="DATE"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]}),P=e.computed(()=>{let W="";const K=e.unref(L).find(te=>te.value===e.unref(_).rule);return K&&(W=K.label),W}),x=e.computed(()=>{let W={fontSize:"12px"};return e.unref(P)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),B=e.ref([]),M=async()=>{var W;if(!(e.unref(B).length>0))try{const K=await a.post(`${_e}/diagram/groupvalue`,{source:e.unref(f),dataViewId:e.unref(u),groupColumn:e.unref(_).fieldName,hrpIndexTypeGuid:e.unref(_).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(_).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:te,data:ie=[]}=K.data;te&&(B.value=(W=ie==null?void 0:ie.slice(0,200))==null?void 0:W.map(ne=>({label:ne,value:ne})))}catch(K){console.error(K)}},V=W=>{e.unref(_).rule=W,e.unref(_).fieldValue=e.unref(_).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&M()},D=W=>{e.unref(_).dataType=W,e.unref(_).fieldValue="",e.unref(_).modelKey="",e.unref(_).prop=""},U=e.ref(),H=W=>{U.value=W,e.unref(_).fieldValue=(W==null?void 0:W.join(","))||""},q=W=>{const{keyPath:K}=W;e.unref(_).rule=K[0],e.unref(_).dataType=K[1],e.unref(_).dateFormat=K[2],e.unref(_).fieldValue="",e.unref(_).modelKey="",e.unref(_).prop=""};e.onMounted(async()=>{var ne,me,Se,tt,z,G,Y,X,se,ce;if(_.value.dataType=((ne=t.data)==null?void 0:ne.dataType)||"",_.value.componentId=((me=t.data)==null?void 0:me.componentId)||"",_.value.keyValue=(Se=t.data)==null?void 0:Se.keyValue,_.value.modelKey=(tt=t.data)==null?void 0:tt.modelKey,_.value.prop=(z=t.data)==null?void 0:z.prop,e.unref(_).fieldType==="DATE"){const{activeKey:J,dateCalcTypes:de=[]}=t.data||{};if(e.unref(_).dateFormat=(G=t.data)==null?void 0:G.dateFormat,e.unref(_).activeKey=J,e.unref(_).calcWays=((Y=t.data)==null?void 0:Y.calcWays)||[],e.unref(_).dateCalcTypes=de,e.unref(_).useCurrentTime&&e.unref(_).dataType!=="component"&&(d.value=!0),J===5){const he=e.unref(_).calcWays[0];if(he){const pe=he.split("-");e.unref(h).expression=pe[0],e.unref(h).around=pe[1]}e.unref(h).unit=de[0]||"YEAR"}else{e.unref(_).radioValue=((X=t.data)==null?void 0:X.radioValue)||"";const he=e.unref(C).find(pe=>{var we;return pe.key===((we=t.data)==null?void 0:we.activeKey)});he&&ht(he,t.data)}}else U.value=((ce=(se=t.data)==null?void 0:se.fieldValue)==null?void 0:ce.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=_.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&M();const{source:ie}=e.unref(n);ie==="EDV_DATA_SET"&&await a.get(`${_e}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(J=>{J.data.success&&(console.log(J.data),N.value=J.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:J.data.data.id,name:de.columnName,label:de.columnName})))}).catch(J=>{console.error(J)})});const Q=W=>{if(e.unref(_).activeKey===W){e.unref(C)[W].radioValue=e.unref(_).radioValue,e.unref(C)[e.unref(_).activeKey]&&(e.unref(C)[e.unref(_).activeKey].radioValue=e.unref(_).radioValue,e.unref(_).radioValue==="1"?e.unref(C)[W].beforeNum=e.unref(_).calcWays[0]:e.unref(_).radioValue==="2"&&(e.unref(C)[W].afterNum=e.unref(_).calcWays[0]));return}e.unref(C).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},Z=(W,K)=>{y.value=!0;const te=W.target.value,ie=K.type,ne=e.unref(_).dateFormat,me=Math.abs(K.beforeNum),Se=K.afterNum;K.value=Je(te,ie,ne,me,Se)},oe=W=>{const K=e.unref(_).activeKey;if(W!==K)return;let te="";K===0?te="years":K===1?te="quarters":K===2?te="months":K===3?te="weeks":K===4&&(te="days");const ie=e.unref(_).dateFormat,ne=e.unref(_).radioValue;let me=0,Se=0;return ne==="1"?me=Math.abs(e.unref(_).calcWays[0]):ne==="2"&&(Se=e.unref(_).calcWays[0]),Je(ne,te,ie,me,Se)},le=(W,K,te,ie)=>{if(y.value=!0,K.radioValue===ie){const ne=W.target.value;te==="+"?K.value=ye().add(ne,K.type).format(e.unref(_).dateFormat):K.value=ye().subtract(ne,K.type).format(e.unref(_).dateFormat)}},re=(W,K)=>{e.unref(_).calcWays||(e.unref(_).calcWays=[]),e.unref(_).activeKey=K,e.unref(_).radioValue=W.radioValue,W.radioValue==="1"?e.unref(_).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(_).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(_).calcWays[0]="0":e.unref(_).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(_).calcWays[0]="END"),K===0?e.unref(_).dateCalcTypes=["YEAR"]:K===1?e.unref(_).dateCalcTypes=["QUARTER"]:K===2?e.unref(_).dateCalcTypes=["MONTH"]:K===3?e.unref(_).dateCalcTypes=["WEEK"]:K===4&&(e.unref(_).dateCalcTypes=["DAY"]),I.value=!1},We=()=>{e.unref(_).activeKey=5,e.unref(_).dateCalcTypes=[e.unref(h).unit],e.unref(_).calcWays[0]=`${e.unref(h).expression}-${e.unref(h).around}`,I.value=!1};function ht(W,K){const{radioValue:te="",calcWays:ie=[]}=K;W.radioValue=te,ie!=null&&ie.length&&(te==="1"?W.beforeNum=Math.abs(ie[0]):te==="2"&&(W.afterNum=ie[0]))}function Je(W,K,te,ie,ne){if(W==="1")return ye().subtract(ie,K).format(te);if(W==="2")return ye().add(ne,K).format(te);if(W==="3"){if(K==="years")return ye().startOf("year").format(te);if(K==="quarters")return ye().startOf("quarter").format(te);if(K==="months")return ye().startOf("month").format(te);if(K==="days")return ye().format(te)}else if(W==="4"){if(K==="years")return ye().endOf("year").format(te);if(K==="quarters")return ye().endOf("quarter").format(te);if(K==="months")return ye().endOf("month").format(te)}return""}const fe=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Ne=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(_).rule));return{fieldOptions:A,ruleOptions:L,onFieldChange:E,condition:_,valueOptions:B,onRuleChange:V,onDataTypeChange:D,onFieldValueSelectChange:H,fieldValues:U,onDelete:k,isDateType:F,formatList:m,tabDateList:C,compareList:g,menuRule:T,dateBtnLabel:P,downIconStyle:x,popoverVisible:I,dateRadioStyle:b,showTime:y,controlList:c,keyNameOptions:p,dataTypeList:w,customTabData:h,isUseCurrentTime:d,currentTime:i,isShowCustomDataType:Ne,handleMenuClick:q,changeTabInitDate:Q,changeRadioValue:Z,getFieldValue:oe,blurCompare:le,okDatePickConfig:re,onChangeComponent:O,filterOption:fe,okCustomConfig:We,clickConditionMenu:({key:W})=>{$(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:N}}}),By="",Ly="",lp={class:"condition"},rp=["title"],ip={class:"rule"},sp={class:"data-type"},cp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},dp={class:"popover-content-wrap"},pp={key:0,class:"use-current-time"},up={class:"tabFilterRadio"},fp={key:0},mp={key:1},hp={style:{"margin-left":"10px"}},bp={style:{"margin-left":"10px"}},yp={style:{position:"absolute",bottom:"10px"}},gp={style:{display:"flex"}},Cp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function wp(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),c=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),f=e.resolveComponent("a-button"),y=e.resolveComponent("a-dropdown"),b=e.resolveComponent("a-date-picker"),m=e.resolveComponent("a-input"),h=e.resolveComponent("a-checkbox"),C=e.resolveComponent("a-input-number"),g=e.resolveComponent("a-radio"),T=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),_=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),N=e.resolveComponent("a-popover"),I=e.resolveComponent("menu-outlined"),F=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",lp,[e.createVNode(d,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(A,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:A.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:A.label},e.toDisplayString(A.label),9,rp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",ip,[t.isDateType?(e.openBlock(),e.createBlock(y,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,A=>(e.openBlock(),e.createBlock(c,{key:A.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===A.value?"color: #1890FF;":"")},e.toDisplayString(A.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,R=>{var v;return e.openBlock(),e.createBlock(c,{key:R.value,disabled:R.value==="component"&&!((v=t.controlList)!=null&&v.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===A.value&&t.condition.dataType===R.value?"color: #1890FF;":"")},e.toDisplayString(R.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,$=>(e.openBlock(),e.createBlock(i,{key:$.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===A.value&&t.condition.dataType===R.value&&t.condition.dateFormat===$.value?"color: #1890FF;":"")},e.toDisplayString($.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(f,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(d,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",sp,[e.createVNode(d,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(A,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:A.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[e.vShow,(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType]]),t.isDateType?(e.openBlock(),e.createElementBlock("div",cp,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(b,{key:0,disabled:"",style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.currentTime,format:t.condition.dateFormat},null,8,["value","format"])):(e.openBlock(),e.createBlock(b,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=A=>t.condition.fieldValue=A),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(d,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=A=>t.condition.fieldValue=A),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):e.createCommentVNode("",!0),t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(m,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=A=>t.condition.modelKey=A),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(m,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=A=>t.condition.prop=A),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(N,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=A=>t.popoverVisible=A),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",dp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",pp,[e.createVNode(h,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=A=>t.isUseCurrentTime=A)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(_,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(A,R)=>(e.openBlock(),e.createBlock(w,{key:R,tab:A.label},{default:e.withCtx(()=>[e.createElementVNode("div",up,[e.createVNode(T,{value:A.radioValue,"onUpdate:value":v=>A.radioValue=v,onChange:v=>t.changeRadioValue(v,A)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",fp,"相对当前时间:"+e.toDisplayString(A.value),1)):(e.openBlock(),e.createElementBlock("div",mp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(R)),1)),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(C,{value:A.beforeNum,"onUpdate:value":v=>A.beforeNum=v,min:0,onBlur:v=>t.blurCompare(v,A,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",hp,e.toDisplayString(A.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(g,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(C,{value:A.afterNum,"onUpdate:value":v=>A.afterNum=v,min:0,onBlur:v=>t.blurCompare(v,A,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",bp,e.toDisplayString(A.afterLabel),1)]),_:2},1032,["style"]),A.beforeText?(e.openBlock(),e.createBlock(g,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),A.afterText?(e.openBlock(),e.createBlock(g,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(A.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",yp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=v=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:v=>t.okDatePickConfig(A,R)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(w,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",gp,[e.createVNode(d,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=A=>t.customTabData.expression=A),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=A=>t.customTabData.unit=A),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=A=>t.customTabData.around=A)},{default:e.withCtx(()=>[e.createVNode(s,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(s,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),e.createElementVNode("div",Cp,[e.createVNode(f,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=A=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(f,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=A=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(d,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=A=>t.condition.fieldValue=A),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(m,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=A=>t.condition.fieldValue=A)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(m,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=A=>t.condition.modelKey=A),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(m,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=A=>t.condition.prop=A),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(y,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(I,{class:"more-icon"})]),_:1}),e.createVNode(F,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const kp=ae(ap,[["render",wp],["__scopeId","data-v-29a39def"]]),xp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:kp}}),Vy="",_p={key:0,class:"condition-list"},Sp={key:0,class:"condition-container"},Tp={key:0,class:"condition-text"},Np={key:1,class:"condition-text"},Ap={class:"conditions"};function Op(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",_p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Sp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Tp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Np,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Ap,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Ep=ae(xp,[["render",Op],["__scopeId","data-v-553c1496"]]),Bp=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:j.Select,AInput:j.Input,AInputNumber:j.InputNumber},setup(t,{emit:o}){const n=[{label:"前N个",value:"TOP"},{label:"后N个",value:"BOTTOM"}],a=e.ref([]);return e.watch(a,r=>{r!=null&&r.length&&o("update",r)},{deep:!0}),e.onMounted(()=>{var r;(r=t.list)!=null&&r.length?a.value=ee.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Fy="",ar=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Lp={class:"truncations"},Vp={class:"rule"},Fp={class:"field-value"},$p={class:"field-value"},vp=ar(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Ip=ar(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),Dp=["onClick"];function Mp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",Lp,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Vp,[e.createVNode(s,{style:{width:"100%"},value:c.rule,"onUpdate:value":u=>c.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",Fp,[e.createTextVNode(" N= "),e.createVNode(d,{value:c.num,"onUpdate:value":u=>c.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",$p,[vp,e.createVNode(i,{value:c.name,"onUpdate:value":u=>c.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Ip]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(c)},"清空",8,Dp)]))),128))])}const Pp=ae(Bp,[["render",Mp],["__scopeId","data-v-f543c690"]]),jp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Ep,TruncationList:Pp,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var k;const n=e.ref("1"),a=()=>{var E;return`添加过滤条件-${((E=t.item)==null?void 0:E.label)||""}`},l=e.inject(Ce),r=e.inject(Ae),s=e.inject(ze),d=e.computed(()=>{var E;return(E=e.unref(l))==null?void 0:E.dataSourceId}),i=e.inject(Ie),c=e.inject(xo),p=e.ref([]),u=e.ref([]),f=e.ref(!1),y=e.inject(Xt),b=E=>{var O;for(const L of E)(O=L.conditions)!=null&&O.length?b(L.conditions):L.keyValue=ge()};e.watch(f,E=>{var O,L,P,x;if(E){if(Array.isArray((O=t.item)==null?void 0:O.conditions)){const B=ee.cloneDeep(((L=t.item)==null?void 0:L.conditions)||[]);b(B),p.value=B}Array.isArray((P=t.item)==null?void 0:P.truncations)?u.value=ee.cloneDeep((x=t.item)==null?void 0:x.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!E)},{flush:"post"});let m=!1;const h=E=>{var O;m=!0,e.unref(p)==null||((O=e.unref(p))==null?void 0:O.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==E?p.value=[{join:E,conditions:[e.unref(p)[0],{keyValue:ge()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===E&&p.value[0].conditions.push({keyValue:ge()}))};e.provide(ko,{updateCondition(E,O,L){var B;m=!0;let P=e.unref(p);const x=L.split("-");if(x!=null&&x.length)for(const M of x)if(P[M])P=(B=P[M])==null?void 0:B.conditions;else break;Array.isArray(P)&&P[O]&&(P[O]=E)},deleteCondition(E,O){var x,B,M;m=!0;let L=e.unref(p);const P=O.split("-");if(P!=null&&P.length){for(const V of P)if(L[V])L=(x=L[V])==null?void 0:x.conditions;else break;if(Array.isArray(L)&&L[E])if(L.splice(E,1),L.length===1){if(P.length>0){const V=P.length-1,D=P[V],U=P.slice(0,V);let H=e.unref(p),q="";for(const Q of U)if(H[Q])q=(B=H[Q])==null?void 0:B.join,H=(M=H[Q])==null?void 0:M.conditions;else break;if(q===L[0].join){if(Array.isArray(L[0].conditions)){const Q=ee.cloneDeep(L[0].conditions);H.splice(+D,1),H.splice(+D,0,...Q)}}else H[D]=L[0]}}else L.length===0&&(p.value=[])}},addCondition(E,O,L){var M,V;m=!0;let P=e.unref(p),x="";const B=E.split("-");if(B!=null&&B.length){for(const D of B)if(P[D])x=(M=P[D])==null?void 0:M.join,P=(V=P[D])==null?void 0:V.conditions;else break;if(x===L)P.splice(O+1,0,{keyValue:ge()});else{const D=ee.cloneDeep(P[O]);P[O]={join:L,conditions:[D,{keyValue:ge()}]}}}}});const C=E=>{m=!0,u.value=E},g=e.computed(()=>{var O;const E=[];return(O=e.unref(s))==null||O.forEach(L=>{const{keyName:P="",id:x="",type:B}=L;B==="ecanRangePicker"?E.push({value:`${x}-startTime`,label:`${P||x}-开始时间值`,keyName:`${P||x}-startTime`},{value:`${x}-endTime`,label:`${P||x}-结束时间值`,keyName:`${P||x}-endTime`}):E.push({value:x,label:`${P||x}`,keyName:`${P||x}`})}),E}),T=()=>{var M,V,D;const E=ft(((M=e.unref(l))==null?void 0:M.controlList)||[]),O=((V=e.unref(l)[t.type])==null?void 0:V.slice())||[],L=ft(ee.cloneDeep(O[t.index].conditions));O[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((D=e.unref(u))!=null&&D.length)&&(O[t.index].truncations=e.unref(u));const P=ft(e.unref(p));for(const U of P)if(U.dataType==="component"&&U.fieldValue){const H=e.unref(g).find(q=>q.value===U.fieldValue);H&&(U.fieldValue=H.keyName)}const x=L.filter(U=>!P.find(H=>H.componentId===U.componentId)).filter(U=>!E.find(H=>H.id===U.componentId)),B=P.filter(U=>!L.find(H=>H.componentId===U.componentId));w(x,B),r({[t.type]:O,sqlConditions:ql({...e.unref(l),[t.type]:O},e.unref(s))})};function w(E,O){var P;const L=E.map(x=>({...x,delete:!0})).concat(O.map(x=>({...x,add:!0})));for(const x of L){const B=e.unref(s).find(M=>M.id===x.componentId);if(B){const{type:M,id:V,events:D=[]}=B,U=Lo(M);if(x.add)D.find(H=>{var q;return H.on===U&&H.target===((q=e.unref(i))==null?void 0:q.id)&&H.emit==="refreshData"})||c({id:V,events:[...D,{on:U,target:(P=e.unref(i))==null?void 0:P.id,emit:"refreshData"}].reverse()});else if(x.delete){const H=D.findIndex(q=>{var Q;return q.on===U&&q.target===((Q=e.unref(i))==null?void 0:Q.id)&&q.emit==="refreshData"});H!==-1&&(D.splice(H,1),c({id:V,events:D}))}}}}const _=()=>{f.value=!0},S=()=>{p.value=[],f.value=!1},N=()=>{m&&T(),m=!1,S()},I=()=>{S()},F=e.inject(Be),A=e.unref(e.inject(Le)),R=(k=window==null?void 0:window.config)==null?void 0:k.pageId,v=e.ref([]);e.provide(ha,v);const $=async E=>{var O;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:L,indexCode:P}=E,x=await F.post(`${_e}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(d),indexGuid:L,indexCode:P},{headers:{Authentication:A,operateContext:"ygt"}}),{success:B,data:M=[]}=x.data;B&&((O=M==null?void 0:M.dataViewColumns)!=null&&O.length)&&(v.value=M.dataViewColumns.map(V=>({...V,label:V.title||V.label})))}catch(L){console.error(L)}};return e.watch(()=>t.item,E=>{E&&f.value&&e.unref(y)!=="EDV_DATA_SET"&&$(E)}),o({showModal:_}),{visible:f,onOk:N,onCancel:I,handleTitle:a,conditionList:p,truncationList:u,addCondition:h,onUpdatetruncation:C,activeKey:n,source:y}}}),$y="",Rp={class:"header"},Up={class:"header"};function zp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=f=>t.activeKey=f)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Rp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(c,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Up,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=f=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=f=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=f=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Gp=ae(jp,[["render",zp],["__scopeId","data-v-38f115c6"]]),Hp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:j.Input,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(Ce),l=e.inject(Ae),r=e.ref(),s=p=>{const{showLabel:u="",label:f=""}=p;r.value=u||f||"",n.value=!0},d=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),d()},c=()=>{d()};return o({showModal:s}),{visible:n,onOk:i,onCancel:c,fieldName:r}}}),vy="",Wp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Yp={class:"config-name"},qp=Wp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Kp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Yp,[qp,e.createVNode(s,{value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i)},null,8,["value"])])]),_:1},8,["visible","onOk","onCancel"])}const Xp=ae(Hp,[["render",Kp],["__scopeId","data-v-de6a1755"]]),Qp=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(Ce),l=e.inject(Ae),r=e.inject(ze),s=e.inject(Ie),d=e.inject(xo),i=e.ref(),c=e.computed(()=>{var C;return(C=e.unref(r))==null?void 0:C.filter(g=>g.keyName!=="")});let p=[];const u=C=>{const{sortCpnts:g=[]}=C;p=ee.cloneDeep(g),i.value=ee.cloneDeep(g),n.value=!0},f=()=>{n.value=!1},y=()=>{var _,S;const C=ft(((_=e.unref(a))==null?void 0:_.controlList)||[]),g=p.filter(N=>!e.unref(i).includes(N)).filter(N=>!C.find(I=>I.id===N)),T=e.unref(i).filter(N=>!p.includes(N)).filter(N=>!C.find(I=>I.id===N)),w=g.map(N=>({componentId:N,delete:!0})).concat(T.map(N=>({componentId:N,add:!0})));for(const N of w){const I=e.unref(r).find(F=>F.id===N.componentId);if(I){const{type:F,id:A,events:R=[]}=I,v=Lo(F);if(N.add)R.find($=>{var k;return $.on===v&&$.target===((k=e.unref(s))==null?void 0:k.id)&&$.emit==="refreshData"})||d({id:A,events:[...R,{on:v,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(N.delete){const $=R.findIndex(k=>{var E;return k.on===v&&k.target===((E=e.unref(s))==null?void 0:E.id)&&k.emit==="refreshData"});$!==-1&&(R.splice($,1),d({id:A,events:R}))}}}},b=()=>{var g;y();const C=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];C[t.index].sortCpnts=i.value,l({[t.type]:C}),f()},m=()=>{f()},h=(C,g)=>{var T;return(T=g==null?void 0:g.keyName)==null?void 0:T.toLowerCase().includes(C==null?void 0:C.toLowerCase())};return o({showModal:u}),{visible:n,onOk:b,onCancel:m,idFilterOption:h,fieldName:i,usedComponentList:c}}}),Iy="",Jp=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),Zp={class:"sort-by-cpnt"},eu=Jp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function tu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Zp,[eu,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),mode:"multiple",style:{width:"100%"},options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const ou=ae(Qp,[["render",tu],["__scopeId","data-v-08af1ef8"]]),nu=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(Ce),l=e.inject(Ae),r=e.ref(),s=e.ref([]),d=(f,y)=>{const{dimByCount:b=""}=f;r.value=b,s.value=y.filter(m=>["DIM","BUILT_IN_DIM","FIELD"].includes(m.scope)).map(m=>({label:m.title||m.name,value:m.typeGuid})),n.value=!0},i=()=>{n.value=!1},c=()=>{var y;const f=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];f[t.index].dimByCount=r.value,l({[t.type]:f}),i()},p=()=>{i()},u=(f,y)=>{var b;return(b=y==null?void 0:y.label)==null?void 0:b.toLowerCase().includes(f==null?void 0:f.toLowerCase())};return o({showModal:d}),{visible:n,onOk:c,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),Dy="",au=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),lu={class:"dim-by-count"},ru=au(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function iu(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(d,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",lu,[ru,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),style:{width:"100%"},options:t.dimensionList,"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const su=ae(nu,[["render",iu],["__scopeId","data-v-aa1c298e"]]),Yn=(t,o)=>{let n;for(let a=0;a<o.length;a++){const l=o[a];l.children&&(l.children.some(r=>r.key===t)?n=l.key:Yn(t,l.children)&&(n=Yn(t,l.children)))}return n},cu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:j.Row,ACol:j.Col,ATextarea:j.Textarea,APopover:j.Popover,AInputSearch:j.InputSearch,ATree:j.Tree,ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton,DoubleRightOutlined:As},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Le)),l=e.inject(Ce),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),d=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),c=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>e.unref(l).indexLibColumns||[]),u=e.computed(()=>{const A=e.unref(r).concat(e.unref(d)).concat(e.unref(i)).concat(e.unref(c)).concat(e.unref(p));return t.mode==="edit"?(A==null?void 0:A.filter(R=>{var v;return R.id!==((v=t.item)==null?void 0:v.id)}))||[]:A||[]}),f=e.computed(()=>s.value.filter(A=>!A.randomKey)),y=e.computed({get:()=>t.value||"",set:A=>{o("update:value",A),o("change",A)}}),b=e.ref("1"),m=e.ref(""),h=A=>{const R=document.getElementById("calTextArea");let v=y.value;if(document.selection){const $=document.selection.createRange();$.text=A}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const $=R.selectionStart,k=R.selectionEnd;let E=$;v=v.substring(0,$)+A+v.substring(k,v.length),E+=A.length,R.selectionStart=R.selectionEnd=E}else v+=A;y.value=v},C=["+","-","*","/","(",")"],g=(A,R)=>{let v="";switch(R){case"name":{v="${"+A+"}";break}case"function":{v=A+"()";break}default:v=A}h(v)},T=[],w=e.ref([]),_=e.ref(!0),S=e.ref([]),N=A=>{var R;for(const v of A)(R=v==null?void 0:v.children)!=null&&R.length?N(v.children):T.push({key:v.key,title:v.title})},I=async()=>{try{const A=await n.get(`${_e}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:v=[]}=A.data;R&&(v!=null&&v.length)&&(N(v),S.value=v)}catch(A){console.error(A)}},F=A=>{w.value=A,_.value=!1};return e.watch(m,A=>{const R=T.map(v=>v.title.indexOf(A)>-1?Yn(v.key,S.value):null).filter((v,$,k)=>v&&k.indexOf(v)===$);w.value=R,m.value=A,_.value=!0}),e.onMounted(()=>{I()}),{fieldList:u,varList:f,myValue:y,calculMethods:C,funcDescsData:S,searchFuncValue:m,expandedKeys:w,autoExpandParent:_,activeKey:b,selectedElem:g,onExpand:F}}}),My="",Py="",lr=t=>(e.pushScopeId("data-v-24fb6451"),t=t(),e.popScopeId(),t),du={class:"formula-calculation"},pu={class:"field-area"},uu={style:{"text-align":"center",padding:"10px 0"}},fu=["onClick"],mu=["onClick"],hu={class:"cal_right_bottom"},bu={class:"cal_fu"},yu=["onClick"],gu={class:"function-wrap"},Cu={class:"wrap-search"},wu={class:"tree-box"},ku=lr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),xu=lr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),_u={key:0},Su={style:{color:"#f50"}},Tu={key:1},Nu=["onClick"],Au={class:"cal_a"};function Ou(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),c=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),f=e.resolveComponent("a-tree"),y=e.resolveComponent("double-right-outlined"),b=e.resolveComponent("a-popover"),m=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",du,[e.createVNode(m,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",pu,[e.createElementVNode("div",uu,[e.createVNode(d,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=h=>t.activeKey=h),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(h,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(h.label,"name")},e.toDisplayString(h.label),9,fu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(h,C)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:C,onClick:g=>t.selectedElem(h.variableName,"name")},e.toDisplayString(h.variableName),9,mu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(c,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=h=>t.myValue=h),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",hu,[e.createElementVNode("ul",bu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(h,C)=>(e.openBlock(),e.createElementBlock("li",{onClick:g=>t.selectedElem(h,"symbol"),key:C},e.toDisplayString(h),9,yu))),128))]),e.createVNode(b,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",gu,[e.createElementVNode("div",Cu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=h=>t.searchFuncValue=h),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",wu,[e.createVNode(f,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:h,leaf:C,describe:g,exp:T})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[h.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",_u,[e.createTextVNode(e.toDisplayString(h.substr(0,h.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Su,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(h.substr(h.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Tu,e.toDisplayString(h),1)),C?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(h,"function")},"插入",8,Nu)):e.createCommentVNode("",!0)]),_:2},[C?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[ku,e.createElementVNode("span",null,e.toDisplayString(g),1)]),e.createElementVNode("div",null,[xu,e.createElementVNode("span",null,e.toDisplayString(T),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Au,[e.createTextVNode(" 更多函数 "),e.createVNode(y,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Eu=ae(cu,[["render",Ou],["__scopeId","data-v-24fb6451"]]),Bu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Eu,AForm:j.Form,AModal:j.Modal,AFormItem:j.FormItem,AInput:j.Input,ASelect:j.Select,ASelectOption:j.SelectOption,ATextarea:j.Textarea,AInputNumber:j.InputNumber,ATooltip:j.Tooltip,QuestionCircleOutlined:ac},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(ze),a=e.inject(Ce),l=e.inject(Ae),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),d=e.computed(()=>{const $=["leftAxisList","rightAxisList","queryColumnList","indicators"];let k=[];for(const E of $)Object.prototype.hasOwnProperty.call(e.unref(a),E)&&(k=k.concat(e.unref(a)[E]));return k}),i={span:4},c={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},f=e.ref({}),y=e.ref(),b=e.ref(!1),m=e.ref();e.watch(b,$=>{if($)if(t.mode==="edit"){const{label:k,calcType:E,formula:O,builtInValueSource:L,builtInFormula:P,builtInCalcWay:x}=t.item;if(m.value={label:k,calcType:E,formula:O,builtInValueSource:L,builtInFormula:P,builtInCalcWay:x},P==="DATE_OFFSET"){const B=x.split("-");(B==null?void 0:B.length)===3&&(f.value={value:B[0],unit:B[1],around:B[2]})}}else t.mode==="add"&&(m.value=ee.cloneDeep(p),f.value=ee.cloneDeep(u));else m.value=ee.cloneDeep(p),f.value=ee.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!$)},{immediate:!0,deep:!0});let h=!1;const C=()=>{h=!0},g=$=>{const k=e.unref(r).find(E=>E.id===$);k&&(m.value.builtInCalcWay=k.keyName),h=!0},T=()=>{var L;const $=((L=e.unref(a)[t.type])==null?void 0:L.slice())||[],{label:k,builtInFormula:E}=e.unref(m)||{},O={};if(E==="DATE_OFFSET"&&(O.builtInCalcWay=`${e.unref(f).value}-${e.unref(f).unit}-${e.unref(f).around}`),t.mode==="add"){const P=ge();$.push({...e.unref(m),...O,id:P,show:!0,name:k})}else t.mode==="edit"&&($[t.index]={...$[t.index],...e.unref(m),...O,name:k});l({[t.type]:$})},w=()=>{b.value=!0},_=()=>{b.value=!1},S=async($,k)=>{if(k==="")return Promise.reject(new Error("请输入指标名"));{const E=e.unref(d).find(O=>O.label===k);return E?E.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},N=e.computed(()=>{let $={label:[{required:!0,validator:S,trigger:"change"}]};return m.value.calcType==="BUILT_IN"&&($={...$,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),$}),I=()=>{y.value.validate().then(()=>{h&&T(),h=!1,_()})},F=()=>{y.value.clearValidate(),_()},A=()=>{h=!0,e.unref(m).builtInCalcWay=""},R=e.computed(()=>{let $="";const k=e.unref(m).builtInCalcWay,E=e.unref(m).builtInValueSource;if(!E||!k)return $;switch(e.unref(m).builtInFormula){case"BUILT_IN_RANK":{k==="ASC"?$="【"+E+"】由小到大在所有值中的排名":$="【"+E+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{$=`所有【】的
65
- `,k==="ASC"?$=$+"【"+E+"】由小到大的组内的排名":$=$+"【"+E+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let O="";switch(k){case"SUM":{O="求和";break}case"AVG":{O="求平均值";break}case"MIN":{O="求最小值";break}case"MAX":{O="求最大值";break}}$="将所有【"+E+"】"+O;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let O="";switch($=`所有【】的
66
- `,k){case"SUM":{O="求和";break}case"AVG":{O="求平均值";break}case"MIN":{O="求最小值";break}case"MAX":{O="求最大值";break}}$=$+"将所有【"+E+"】"+O;break}}return $}),v=($,k)=>k.keyName.toLowerCase().indexOf($.toLowerCase())>=0;return o({showModal:w}),{visible:b,onCancel:F,labelCol:i,wrapperCol:c,formState:m,builtInValueSourceList:s,onOK:I,onChange:C,formRules:N,accessLogic:R,formRef:y,onChangeBuiltInFormula:A,componentList:r,onChangeComponent:g,filterOption:v,offsetConfig:f}}}),jy="",Ry="",Lu={key:0,class:"accesstip"},Vu={style:{display:"flex","align-items":"center"}};function Fu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),f=e.resolveComponent("a-input-number"),y=e.resolveComponent("question-circle-outlined"),b=e.resolveComponent("a-tooltip"),m=e.resolveComponent("a-form"),h=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(h,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(m,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(d,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=C=>t.formState.label=C),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.withDirectives(e.createVNode(d,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=C=>t.formState.calcType=C),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[e.vShow,t.type!=="indexLibColumns"]]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=C=>t.formState.formula=C),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(d,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=C=>t.formState.builtInFormula=C),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(d,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=C=>t.formState.builtInValueSource=C),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(C,g)=>(e.openBlock(),e.createBlock(i,{key:g,value:C.label,disabled:t.mode==="edit"&&t.item.label===C.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=C=>t.formState.builtInCalcWay=C),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",Lu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(d,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(c,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=C=>t.formState.builtInValueSource=C),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(d,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Vu,[e.createVNode(f,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=C=>t.offsetConfig.value=C),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=C=>t.offsetConfig.unit=C),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(c,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=C=>t.offsetConfig.around=C),style:{width:"120px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(b,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(y,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const $u=ae(Bu,[["render",Fu],["__scopeId","data-v-88aef761"]]),vu=e.defineComponent({name:"DataConfigCard",directives:{focus:nr},components:{CalculationModal:$u,FilterModal:Gp,CustomGroupModal:ep,SettingOutlined:uc,DeleteOutlined:Ya,CopyOutlined:ws,InfoCircleOutlined:vs,CustomSortModal:Rd,PlusOutlined:ec,ACard:j.Card,ACheckbox:j.Checkbox,AInput:j.Input,ADropdown:j.Dropdown,AMenu:j.Menu,ASubMenu:j.SubMenu,AMenuItem:j.MenuItem,AMenuDivider:j.MenuDivider,ASelect:j.Select,APopover:j.Popover,Draggable:Lt,ConfigName:Xp,SortByCpnt:ou,DimByCount:su},props:{title:{type:String,default:""},type:{type:String,default:""}},setup(t){const o=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"}],n=e.inject(Ce),a=e.inject(Ae),l=e.inject(ze),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],d=["CURRENT","LAST_CYCLE","LAST_YEAR","PERIOD_ON_PERIOD","YEAR_ON_YEAR","DW"],i=e.inject(Xt),c=e.ref(),p=(z={})=>{var X;const{type:G}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let Y=!1;if(z.scope==="FIELD"&&(Y=!0,z.genericType==="0"&&r.includes(G)&&(Y=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(G)&&(Y=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(G)&&(Y=!0),G==="dimensionList"){const se=((X=e.unref(n)[G])==null?void 0:X.slice())||[];(se==null?void 0:se.length)===1&&(Y=!1)}return Y},u=e.computed(()=>e.unref(ne).type==="ecanDataSelect"&&t.type==="indicators"),f=(z="{}")=>{var G,Y;try{const X=JSON.parse(z);if(!p(X))return;const se=((G=e.unref(n)[t.type])==null?void 0:G.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate","scatter"])||e.unref(u))&&se.forEach(de=>{de.show=!1}),b(se,X),X.randomKey=ge(),se.push(X);const{type:ce}=t,J={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(X.scope)){const de=((Y=e.unref(n))==null?void 0:Y.variableList)||[];let he=sessionStorage.getItem("indicator-variates");if(X.scope==="FIELD"&&!r.includes(ce)&&(he="[]"),he){const pe=JSON.parse(he);if(pe!=null&&pe.length)for(const we of pe)de.unshift({...we,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?we.defaultValue:null,dateTypeValue:null,format:we.valueFormat&&we.valueFormat.toUpperCase()||null,variableName:we.name,variableType:we.valueType,label:X.label,randomKey:X.randomKey,keyValue:ge(),disabled:e.unref(i)==="EDV_DATA_SET"})}J.variableList=de,J.variableConditions=io(de,l)}a({[t.type]:se,...J}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(X){console.error(X)}},y=(z="{}")=>{var G;try{const{cardItem:Y,type:X,index:se}=JSON.parse(z);if(!p(Y)||X===t.type)return;const ce=((G=e.unref(n)[t.type])==null?void 0:G.slice())||[];b(ce,Y),ce.push(Y);const J=e.unref(n)[X].slice()||[];J.splice(se,1),a({[t.type]:ce,[X]:J})}catch(Y){console.error(Y)}};function b(z,G){const Y=[];if(z.forEach(X=>{X.label.includes(G.label)&&Y.push(X.label.split(G.label)[1])}),Y.length>=1){for(let X=1;X<=Y.length;X++)if(!Y.includes(X+"")){G.label=G.label+X;break}}}const m=(z,G)=>{var se,ce;const Y=(se=z.target)==null?void 0:se.checked,X=((ce=e.unref(n)[t.type])==null?void 0:ce.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate"])||e.unref(u))&&X.forEach(J=>{J.show=!1}),X[G].show=Y,a({[t.type]:X})},h=z=>{var Y;const G=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];G.splice(z,1),a({[t.type]:G})},C=()=>{sessionStorage.setItem("indicator-card-item","")},g=z=>{const G=sessionStorage.getItem("indicator-list-item"),Y=sessionStorage.getItem("indicator-card-item");G?f(G):Y&&y(Y)},T=z=>{var de,he;const{newIndex:G,oldIndex:Y,from:X,to:se}=z,ce=X.id,J=se.id;if(G>=0&&Y>=0){if(ce===J){const pe=((de=e.unref(n)[t.type])==null?void 0:de.slice())||[],we=pe.splice(Y,1)[0];we&&(pe.splice(G,0,we),a({[t.type]:pe}))}else if(t.type===J){const pe=((he=e.unref(n)[J])==null?void 0:he.slice())||[];if(pe!=null&&pe.length){const we=pe.splice(pe.length-1,1)[0];we&&(pe.splice(G,0,we),a({[t.type]:pe}))}}}},w=(z,G)=>{const Y=z.oldIndex,X=G[Y];X&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:X,type:t.type,index:Y}))},_=e.computed(()=>e.unref(n)[t.type]||[]),S=e.ref([]);let N=!1;e.watch(()=>e.unref(_).length,z=>{S.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const I=z=>{var Y,X,se;const G=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];if((X=G[z])!=null&&X.randomKey){const ce=((se=e.unref(n))==null?void 0:se.variableList)||[];for(let J=ce.length-1;J>=0;J--)ce[J].randomKey===G[z].randomKey&&ce.splice(J,1);a({variableConditions:io(ce,l),variableList:ce})}G.splice(z,1),a({[t.type]:G})},F=z=>{S.value[z]=!0},A=()=>{N=!0},R=(z,G,Y)=>{var X,se,ce,J;if(S.value[G]=!1,N){const de=(X=z.target)==null?void 0:X.value,he=((se=e.unref(n)[t.type])==null?void 0:se.slice())||[],pe=he.filter(ke=>{var Te;return(Te=ke==null?void 0:ke.formula)==null?void 0:Te.includes(Y)}).map(ke=>ke.id),we=he.filter(ke=>{var Te;return(Te=ke==null?void 0:ke.builtInValueSource)==null?void 0:Te.includes(Y)}).map(ke=>ke.id);if(pe!=null&&pe.length)for(const ke of pe){const Te=he.find(Bt=>Bt.id===ke);Te.formula=Te.formula.replaceAll(Y,de)}if(we!=null&&we.length)for(const ke of we){const Te=he.find(Bt=>Bt.id===ke);Te.builtInValueSource=Te.builtInValueSource.replaceAll(Y,de)}if(he[G].label=de,(ce=he[G])!=null&&ce.randomKey){const ke=((J=e.unref(n))==null?void 0:J.variableList)||[],Te=ke.filter(Bt=>Bt.randomKey===he[G].randomKey);Te!=null&&Te.length&&Te.forEach(Bt=>{Bt.label=de}),a({variableConditions:io(ke,l),variableList:ke})}a({[t.type]:he})}N=!1},v="DEFAULT",$=e.computed(()=>{const z=[],{scope:G}=e.unref(c)||{},Y=e.unref(n)[t.type]||[];if(G==="DIM"&&!e.unref(c).typeGuid.includes("_code")){const J=ee.cloneDeep(e.unref(c));delete J.show,delete J.truncations,delete J.conditions,J.hrpIndexComplexid+="_code",J.id+="_code",J.typeGuid+="_code",J.label=J.name+"_编码",J.name=J.typeGuid,J.defaultCode=J.typeGuid,z.push(J)}const{leftAxisList:X=[],rightAxisList:se=[],indicators:ce=[]}=e.unref(n)||{};return[...Y,...z,...X,...se,...ce]}),k=(z={},G,Y="ASC")=>{var he;const{label:X,name:se,id:ce,defaultCode:J}=z,de=((he=e.unref(n)[t.type])==null?void 0:he.slice())||[];ce===v?delete de[G].sort:de[G].sort={label:X,columnName:se,type:"NORMAL",order:Y,defaultCode:J},a({[t.type]:de})},E=(z={},G="ASC")=>{const X={ASC:"升序",DESC:"降序"}[G],{sort:se}=z,{label:ce,order:J}=se||{};return ce&&J===G?`${X}(${ce})`:X},O=e.ref(),L=e.ref(),P=e.ref(),x=e.ref(),B=(z={},G)=>{var Y;O.value=z,L.value=G,(Y=e.unref(P))==null||Y.showModal(z)},M=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),V=(z={},G)=>{var Y;O.value=z,L.value=G,(Y=e.unref(x))==null||Y.showModal()},D=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),U=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],H=[{name:"是",value:1},{name:"否",value:0}],q=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].aggregate=z,a({[t.type]:Y})},Q=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].distinct=z,a({[t.type]:Y})},Z=(z,G)=>{var X;const Y=((X=e.unref(n)[t.type])==null?void 0:X.slice())||[];Y[G].dateFormat=z,a({[t.type]:Y})},oe=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,le=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,re=(z={})=>{var G;return"过滤"+(z!=null&&z.conditions&&((G=z==null?void 0:z.conditions)==null?void 0:G.length)>0?"(已配置)":"")},We=e.ref(),ht=e.ref(),Je=e.ref(),fe=e.ref(),Ne=(z={},G)=>{O.value=z,L.value=G,e.unref(We).showModal()},At=(z={},G)=>{O.value=z,L.value=G,e.unref(ht).showModal(z)},Yt=(z={},G)=>{O.value=z,L.value=G,e.unref(Je).showModal(z)},qt=(z={},G)=>{O.value=z,L.value=G,e.unref(fe).showModal(z,e.unref(W))},ve=e.ref(),Ze=e.ref("add"),Ot=(z,G,Y)=>{var X;Ze.value=z,z==="edit"&&(O.value=G,L.value=Y),(X=e.unref(ve))==null||X.showModal()},rt=e.inject(Be),et=e.unref(e.inject(Le)),Ue=e.ref([]),Et=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;ue(e.unref(ne).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&(Ue.value=e.unref(n).indicators.map(G=>({label:G.label,value:G.label})))}),e.watch(()=>n.value.classificationList,()=>{bt()});const it=e.ref(""),bt=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!ue(e.unref(ne).type,"select"))return;const{classificationList:G=[]}=e.unref(n),Y=G.find(J=>J.show);if(Y!=null&&Y.parentId){if(e.unref(it)===Y.parentId)return;it.value=Y.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],it.value="";return}const X=await rt.get(`${_e}/dataset/`+Y.parentId,{headers:{Authentication:et,operateContext:"ygt"}}),{success:se,data:ce=[]}=X.data;if(se){const J=ce.column.map(de=>({label:de.columnName,value:de.columnName}));e.unref(n).selectFieldOptions=J,Ue.value=J}},Yo=async()=>{const{source:z}=e.unref(n);if(!ue(e.unref(ne).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await bt();else{const G=await rt.post(`${_e}/diagram/dimFields`,{},{headers:{Authentication:et,operateContext:"ygt"}}),{success:Y,data:X=[]}=G.data;Y&&(e.unref(n).selectFieldOptions=X||[],Ue.value=X)}}catch(G){console.error(G)}},qo=(z,G)=>{const Y=e.unref(n)[t.type]||{};Y[G]=z,a({[t.type]:Y})},Kt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Co=e.ref({}),W=e.ref([]),K=async(z,G)=>{var X;const{name:Y}=G;if(!Kt.includes(t.type)&&z&&qe(G,"indexCode")){const se=await rt.post(`${_e}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:G.id,indexCode:G.indexCode,pageId:(X=window==null?void 0:window.config)==null?void 0:X.pageId},{headers:{Authentication:et,operateContext:"ygt"}}),{success:ce,data:J}=se.data;ce&&J&&(W.value=(J==null?void 0:J.dataViewColumns)||[],Co.value[Y]={name:J.name,code:J.indexCode})}},te=z=>{c.value=z},ie=z=>{const G=document.createElement("input");document.body.appendChild(G),G.setAttribute("value",z),G.select(),document.execCommand("copy"),document.body.removeChild(G),j.message.success("复制成功")},ne=e.inject(Ie),me=e.computed(()=>t.type==="indicators"&&e.unref(ne).type==="ecanTable"),Se=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),tt=e.computed(()=>{var G,Y;const z=ue((G=e.unref(ne))==null?void 0:G.type,["table"])&&((Y=e.unref(n))==null?void 0:Y.isIndexSet);return!Kt.includes(t.type)&&!e.unref(u)&&(!z||t.type!=="indicators")});return e.onMounted(()=>{t.type==="formFields"&&(e.unref(ne).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Yo())}),{onCheckboxChange:m,onDropEnd:h,onDragItemEnd:C,onDragItemAdd:g,onDragItemSort:T,onDragItemStart:w,cardItemList:_,onDelete:I,onEdit:F,onCommitLabelChange:R,sortList:$,onSort:k,handleSortTitle:E,showCustomSortModal:B,customSortModalRef:P,currentItem:O,currentIndex:L,handleCustomSortTitle:M,handleCustomGroupTitle:D,customGroupModalRef:x,showCustomGroupModal:V,editLabelList:S,onLabelChange:A,aggregateList:U,distinctList:H,onAggregateChange:q,onDistinctChange:Q,onDateFormatChange:Z,handleAggregateTitle:oe,handleDistinctTitle:le,onShowCalculationModal:Ot,handleFilterTitle:re,filterModalRef:We,configNameRef:ht,sortByCpntRef:Je,dimByCountRef:fe,showFilterModal:Ne,calculationModalRef:ve,calculationModalMode:Ze,formatList:o,fieldOptions:Ue,fieldData:Et,onFieldChange:qo,onVisibleChange:K,onClickSetting:te,copyDataViewName:ie,dataViewMap:Co,isShowConfigName:me,showConfigNameModal:At,dimensionType:Kt,isShowSortByCpnt:Se,showSortByCpntModal:Yt,dataSelectIndicators:u,showDimByCountModal:qt,selectedComponent:ne,lowerCaseIncludes:ue,isShowCalcBtn:tt,indexSetList:d}}}),Uy="",zy="",xt=t=>(e.pushScopeId("data-v-7ccd3d66"),t=t(),e.popScopeId(),t),Iu={class:"title"},Du={class:"title-text"},Mu={class:"field-wrap"},Pu={class:"field-item"},ju=xt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Ru={class:"field-item"},Uu=xt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),zu={key:0,class:"field-item"},Gu=xt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Hu={class:"title"},Wu={class:"title-text"},Yu=xt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),qu=xt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),Ku={class:"card-item-wrap"},Xu={class:"card-item-inner"},Qu=["onClick"],Ju=["onClick"],Zu=["onClick"],ef={style:{display:"flex","align-items":"center"}},tf=["title"],of=xt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),nf={style:{display:"flex","align-items":"center"}},af=["title"],lf=xt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function rf(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),c=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),f=e.resolveComponent("a-input"),y=e.resolveComponent("setting-outlined"),b=e.resolveComponent("a-menu-item"),m=e.resolveComponent("a-menu-divider"),h=e.resolveComponent("a-sub-menu"),C=e.resolveComponent("copy-outlined"),g=e.resolveComponent("a-menu"),T=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),_=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),N=e.resolveComponent("custom-group-modal"),I=e.resolveComponent("filter-modal"),F=e.resolveComponent("config-name"),A=e.resolveComponent("sort-by-cpnt"),R=e.resolveComponent("dim-by-count"),v=e.resolveComponent("calculation-modal"),$=e.resolveDirective("focus");return t.type==="formFields"?(e.openBlock(),e.createBlock(i,{key:0,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",Iu,[e.createElementVNode("div",Du,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Mu,[e.createElementVNode("div",Pu,[ju,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.labelField,options:t.fieldOptions,onChange:o[0]||(o[0]=k=>t.onFieldChange(k,"labelField"))},null,8,["value","options"])]),e.createElementVNode("div",Ru,[Uu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.valueField,options:t.fieldOptions,mode:t.lowerCaseIncludes(t.selectedComponent.type,"valueline")?"multiple":void 0,onChange:o[1]||(o[1]=k=>t.onFieldChange(k,"valueField"))},null,8,["value","options","mode"])]),t.selectedComponent.type==="ecanSelect"?(e.openBlock(),e.createElementBlock("div",zu,[Gu,e.createVNode(d,{checked:t.fieldData.hasAllOption,"onUpdate:checked":o[2]||(o[2]=k=>t.fieldData.hasAllOption=k)},{default:e.withCtx(()=>[e.createTextVNode(" 显示【全部】选项 ")]),_:1},8,["checked"])])):e.createCommentVNode("",!0)])]),_:1},8,["head-style"])):(e.openBlock(),e.createBlock(i,{key:1,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createElementVNode("div",Wu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[Yu]),default:e.withCtx(()=>[e.createVNode(c,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),t.isShowCalcBtn?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(k=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),qu])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(_,{modelValue:t.cardItemList,"onUpdate:modelValue":o[4]||(o[4]=k=>t.cardItemList=k),class:"chart-column",id:t.type,disabled:t.type==="indexLibColumns",group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[5]||(o[5]=k=>t.onDragItemStart(k,t.cardItemList))},{item:e.withCtx(({element:k,index:E})=>[e.createElementVNode("div",Ku,[e.createVNode(d,{class:"card-item",checked:k.show,onChange:O=>t.onCheckboxChange(O,E)},{default:e.withCtx(()=>[e.createElementVNode("div",Xu,[!t.editLabelList[E]&&k.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(O=>t.onEdit(E),["prevent","stop"])},e.toDisplayString(k.label),9,Qu)):e.createCommentVNode("",!0),!t.editLabelList[E]&&!k.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(O=>t.onEdit(E),["prevent","stop"])}," 请点击填入名字 ",8,Ju)):e.createCommentVNode("",!0),t.editLabelList[E]?e.withDirectives((e.openBlock(),e.createBlock(f,{key:2,"default-value":k.label,size:"small",onBlur:O=>t.onCommitLabelChange(O,E,k.label),onPressEnter:O=>t.onCommitLabelChange(O,E,k.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[$]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(k.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(O=>t.onShowCalculationModal("edit",k,E),["prevent","stop"])}," fx ",8,Zu)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(T,{key:4,trigger:["click"],onVisibleChange:O=>t.onVisibleChange(O,k)},{overlay:e.withCtx(()=>[e.createVNode(g,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(b,{onClick:O=>t.showCustomSortModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(m),e.createVNode(b,{onClick:O=>t.showCustomGroupModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(m),k.genericType==="DATE"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:L=>t.onDateFormatChange(O.value,E)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(k.dateFormat===O.value||!k.dateFormat&&O.value==="YYYY-MM"?"color: #1890FF;":"")},e.toDisplayString(O.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(m)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(b,{onClick:O=>t.showFilterModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(m),["classificationList","seriesList"].includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(h,{title:t.handleAggregateTitle(k.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:L=>t.onAggregateChange(O.value,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(m)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(b,{onClick:O=>t.showConfigNameModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(m)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(b,{onClick:O=>t.showSortByCpntModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(m)],64)):e.createCommentVNode("",!0),k.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{onClick:O=>t.showDimByCountModal(k,E)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(m),e.createVNode(h,{title:t.handleDistinctTitle(k.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,O=>(e.openBlock(),e.createBlock(b,{style:{"white-space":"nowrap"},key:O.value,onClick:L=>t.onDistinctChange(O.value,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(O.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(m)],64)):e.createCommentVNode("",!0),t.dimensionType.includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(b,{key:0,onClick:O=>t.copyDataViewName(t.dataViewMap[k.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",ef,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].name},[of,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].name),1)],8,tf),e.createVNode(C,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(b,{key:1,onClick:O=>t.copyDataViewName(t.dataViewMap[k.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].code},[lf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].code),1)],8,af),e.createVNode(C,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(y,{class:"setting-icon",onClick:O=>t.onClickSetting(k)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):e.createCommentVNode("",!0),t.type!=="indexLibColumns"||k.calcType==="FORMULA"?(e.openBlock(),e.createBlock(w,{key:5,class:"delete-icon",onClick:e.withModifiers(O=>t.onDelete(E),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","onAdd","onSort","onEnd"])],2),e.createVNode(S,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(N,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(I,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(F,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(A,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(R,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode(v,{type:t.type,item:t.currentItem,index:t.currentIndex,mode:t.calculationModalMode,ref:"calculationModalRef"},null,8,["type","item","index","mode"])]),_:1},8,["head-style"]))}const sf=ae(vu,[["render",rf],["__scopeId","data-v-7ccd3d66"]]),cf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},df=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:sf},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(Ie),n=e.computed(()=>{var i;return(i=e.unref(o))==null?void 0:i.type}),a=e.computed(()=>{var i;return!!((i=e.unref(o))!=null&&i.isGroupTable)}),l=e.ref({}),r=e.reactive([]),s=e.inject(Ae),d=()=>{var m,h;const i=ee.cloneDeep((m=e.unref(o))==null?void 0:m.graphicConfig),c={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:a.value?["rowHeaderList","indicators"]:[i.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const C=p.length;u=((h=u.slice(C,C+1))==null?void 0:h.toLowerCase())+u.slice(C+1)}const f=c[u],y=cf,b=(f==null?void 0:f.length)||0;for(let C=0;C<b;C++){const g=f[C];if(!g)break;r.push({...y[g],type:g})}for(const C of t)qe(i,C)&&!f.find(g=>g===C)?i[C]=[]:delete i[C];s(i)};return d(),e.watch(()=>n.value,()=>{r.length=0,d()}),{cardsMap:l,cards:r}}}),Gy="",Hy="",pf={class:"data-group"};function uf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",pf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,d=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:d.type,class:"data-config-card",type:d.type},d),null,16,["type"]))),128))])}const ff=ae(df,[["render",uf],["__scopeId","data-v-cb593972"]]),mf=[{title:"基本属性",props:["keyName","left","top","width","height","colors","textShadow","backgroundColor","backgroundImage","backgroundSize","theme","pageFontFamily","contextRequestUrl","graphicType"]},{title:"定时跳转",props:["jumpType","jumpTime","jumpPage","jumpLink"]},{title:"弹窗",onlyType:"modal",props:["position","fullModal","isShowCloseBtn","centered","destroyOnClose","closeBtnColor","borderRadius","borderWidth","borderColor","boxShadow"]},{title:"图片",props:["borderRadius","isAnimation","animationSource","isHoverStyle","imgUrl"]},{title:"链接",props:["linkPage","href","target","transParams"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"单选框",onlyType:["radio"],props:["value","optionType","tabFontSize","tabHorizontalPadding","tabBarGutter","tabFlexDirection","tabTextAlign","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","stackColumns","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标签边距",props:["gridTopPx","gridBottomPx","gridLeftPx","gridRightPx"]},{title:"标题",onlyType:["bar","combo-graph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisMaxValue","showYAxisLineArrow","yAxisLineInverse"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"提示框",enableProps:"tooltipShow",props:["tooltipTrigger","tooltipFormatter","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","border","comboGraph","text","radar"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph"],props:["startValue","endValue"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"时间",onlyType:["date","time","range"],props:["picker","optionFontSize","format","show","limitInterval","startTime","endTime","value","showTime","useCurrentTime","isAllowSpanYear","interval","intervalUnit","updateInterval","operate","limitStartTime","limitEndTime"]},{title:"选择器",onlyType:"select",props:["value","mode","multiple","treeCheckable","maxTagCount","autoClearSearchValue","isAllowClear","placeholder","valueType","optionFontSize"]},{title:"表格",onlyType:"table",props:["size","allOverflow","hoverRow","hoverColor","boderList","columnDropEnable","showTotalBool","totalName","expandAll"]},{title:"列表",onlyType:"list",props:["columns","sliceCount","itemWidth","itemHeight","itemColSpan","itemPadding","itemRowSpan","useTitle","isAutoScroll","scrollSpeed"]},{title:"小计",onlyType:"table",props:["subTotalName","subTotalColumn"]},{title:"序号列",onlyType:["table","list"],enableProps:"isUseSeq",props:["seqWidth","seqName","seqIcon","seqFontSize","seqIndexFormatter"]},{title:"序号图标",onlyType:["list"],enableProps:"seqIcon",props:["seqIconConfig","seqIconWidth","seqIconHeight","seqIconOffsetX","seqIconOffsetY"]},{title:"操作列",onlyType:"table",enableProps:"isUseAction",props:["actionList","actionColumnWidth"]},{title:"分页",enableProps:"paginationShow",props:["paginationPageSize","simple","pageSizeShow","showQuickJumper","paginationPosition","isPageBottom","isShowTotal","paginationColor","paginationBgColor","activePaginationColor","activePaginationBgColor"]},{title:"循环列表",onlyType:"circulate",props:["colNum","unitInterval","isAutoScroll","scrollSpeed","scrollDirection","keyFieldMap"]},{title:"计数器",onlyType:"counter",props:["digits","unitInterval","unitWidth","unitHeight","counterBackgroundImage"]},{title:"边框",onlyType:["border","circulate"],props:["mode","borderWidth","borderRadius","borderColor","useBorderModify","borderStyle","titleMode"]},{title:"标签页",onlyType:"tabs",props:["tabType","tabWidth","activeKey","tabFontSize","tabFontWeight","tabHorizontalPadding","tabBarGutter","tabOuterMargin","tabFlexDirection","tabAlignItems","tabJustifyContent","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage","autoSwitch","autoSwitchInterval","hideTabs"]},{title:"进度条",onlyType:"proportion",props:["strokeWidth","strokeType","strokeLinecap","strokeColor","trailColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"输入框",onlyType:"input",props:["value","placeholder","optionFontSize"]},{title:"网页",onlyType:"iframe",props:["link","linkType"]}],rr=[{label:"思源黑体",value:'"SansSc"'},{label:"黑体",value:'"SimHei","STHeiti"'},{label:"楷体",value:'"KaiTi","STKaiti"'},{label:"宋体",value:'"SimSun","STSong"'},{label:"仿宋",value:'"FangSong","STFangsong"'}].map(t=>({value:t.value,label:e.createVNode("span",{style:{fontFamily:t.value}},[t.label])})),hf={keyName:{label:"控件别名",component:"input",props:{isKeyName:!0}},text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"页面宽度",updateMode:"page",component:"input-number",onlyType:"page",props:{suffix:"px",disabled:!1}},{label:"弹窗宽度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1920,min:0}},{label:"宽度",component:"input-number",props:{suffix:"px",min:0}}],height:[{label:"页面高度",updateMode:"page",onlyType:"page",component:"input-number",props:{suffix:"px",disabled:!1}},{label:"弹窗高度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1080,min:10}},{label:"高度",component:"input-number",props:{suffix:"px",min:1}}],backgroundImage:[{label:"背景图",component:"image-pick",updateMode:"page",onlyType:"page"},{label:"背景图",component:"image-pick"}],backgroundSize:[{label:"背景尺寸",component:"radio-group",updateMode:"page",onlyType:"page",props:{options:[{label:"覆盖",value:"cover"},{label:"铺满",value:"100% 100%"}]}}],backgroundColor:[{label:"背景颜色",component:"color-pick",updateMode:"page",onlyType:"page"},{label:"背景颜色",component:"color-pick"}],contextRequestUrl:{label:"请求地址",component:"input",updateMode:"page"},theme:{label:"主题",component:"select",props:{options:[{label:"默认",value:"light"},{label:"暗蓝",value:"darkBlue"}]},updateMode:"page"},pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""},...rr]}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkUrl:{label:"链接地址",component:"input"},linkMethod:{label:"打开方式",component:"radio-group",props:{options:[{label:"本窗口",value:"_self"},{label:"新窗口",value:"_blank"}]}},linkPage:{label:"链接项目页面",component:"page-pick"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},variableFontSize:{label:"变量字号",component:"input-number",props:{suffix:"px",min:12,max:100}},percentageSide:{label:"涨跌幅图标",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"右",value:"right"}]}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""},...rr]}},tabFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},headerFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:.1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:{label:"颜色",component:"color-pick"},legendTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},legendLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},seqIconConfig:[{label:"图标索引",component:"icon-config",layout:"vertical",onlyType:"list"}],columns:[{label:"表格列",component:"form-collapse",onlyType:"table",props:{format:[{label:"名称",value:"title",type:"input"},{label:"索引",value:"dataIndex",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:0,max:100}},{label:"头部对齐",value:"headerCellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"单元格对齐",value:"cellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"布尔值",value:"boolean"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"保留小数",value:"decimals"},{label:"自定义",value:"custom"}]}},{label:"保留位数",value:"retentiondigit",type:"input-number",show:{match:"format",value:"decimals"},props:{min:0}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom","contrast"]}},{label:"涨幅颜色",value:"increaseColor",type:"color",defaultValue:"#ff512e",show:{match:"format",value:"contrast"}},{label:"跌幅颜色",value:"declineColor",type:"color",defaultValue:"#39cf93",show:{match:"format",value:"contrast"}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条文字颜色",value:"progressTextColor",type:"color",defaultValue:"#333",show:{match:"format",value:"progress"}},{label:"进度条完成文字颜色",value:"progressFinishedTextColor",type:"color",defaultValue:"#fff",show:{match:"format",value:"progress"}},{label:"进度条文字保留小数位",value:"progressTextDecimalPlaces",type:"input-number",defaultValue:"2",props:{min:0},show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"18",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"默认值",value:"defaultVal",type:"input",defaultValue:""},{label:"内容超出时",value:"overflow",type:"select",defaultValue:"wrap",props:{options:[{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},{label:"排序",value:"sorter",type:"switch",typeValue:"checked"},{label:"小计",value:"isCalcTotal",type:"switch",typeValue:"checked"},{label:"过滤",value:"tableFilter",type:"switch",typeValue:"checked"},{label:"隐藏",value:"isHidden",type:"switch",typeValue:"checked"}]}},{label:"列索引",component:"form-group",layout:"vertical",onlyType:"list",props:{format:[{label:"索引",value:"key",type:"input"},{label:"标题",value:"title",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:1}},{label:"对齐",value:"align",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"内容对齐",value:"cellAlign",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"背景颜色",value:"cellColor",type:"color",defaultValue:""},{label:"字体大小",value:"fontSize",type:"input-number",props:{suffix:"px",min:12}},{label:"字体颜色",value:"color",type:"color",defaultValue:""},{label:"字体粗细",value:"fontWeight",type:"select",defaultValue:"normal",props:{options:[{label:"较细",value:"lighter"},{label:"正常",value:"normal"},{label:"较粗",value:"bold"}]}},{label:"标题字体颜色",value:"titleColor",type:"color",defaultValue:""},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"自定义",value:"custom"}]}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条渐变色",value:"progressGradientColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条底色",value:"progressBaseColor",type:"color",defaultValue:"",show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"14",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom"]}}]}}],bordered:{label:"边框",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],allOverflow:{label:"表内容超出",onlyType:"table",component:"radio-group",props:{options:[{label:"换行",value:"false"},{label:"省略号",value:"ellipsis"},{label:"省略号+title显示",value:"title"},{label:"省略号+tooltip显示",value:"tooltip"}]}},hoverRow:{onlyType:"table",label:"点击行高亮",component:"switch"},hoverColor:{onlyType:"table",label:"hover行颜色",component:"color-pick"},boderList:{label:"边框不显示",component:"select",onlyType:"table",props:{mode:"multiple",options:[{label:"表格上边框",value:"top"},{label:"表格下边框",value:"bottom"},{label:"表格左边框",value:"left"},{label:"表格右边框",value:"right"},{label:"表格内容边框",value:"middle"},{label:"列按钮边框",value:"button"}]}},columnDropEnable:{onlyType:"table",label:"列拖拽",component:"switch"},showTotalBool:{onlyType:"table",label:"显示汇总行",component:"switch"},totalName:{onlyType:"table",label:"汇总行名",component:"input"},expandAll:{onlyType:"table",label:"展开所有节点",component:"switch"},isUseSeq:{label:"使用序列",component:"switch"},centered:{label:"居中",component:"switch"},columnsFixedNum:{label:"左固定列数",component:"input-number",props:{min:0,step:1}},scrollX:{label:"滚动宽度",component:"input-number",props:{min:0,step:1}},variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],tabColor:{label:"字体颜色",component:"color-pick"},activeTabColor:{label:"激活颜色",component:"color-pick"},tabBackgroundImage:{label:"背景图",component:"image-pick"},activeTabBackgroundImage:{label:"激活背景图",component:"image-pick"},tabBarGutter:{label:"标签间隔",component:"input-number",props:{suffix:"px",min:0}},tabFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12}},simple:{label:"简单分页",component:"switch"},pageSizeShow:{label:"每页条数",component:"switch"},sliceCount:{label:"截取条数",component:"input-number",props:{min:1}},useRanking:{label:"使用排行",component:"switch"},headerBackgroundColor:{label:"表头背景",component:"color-pick"},cellBackgroundColor:{label:"单元格背景",component:"color-pick"},borderColor:{label:"边框颜色",component:"color-pick"},useBorderModify:{label:"边框(四角)",component:"switch"},useTitle:{label:"使用标题",component:"switch"},paginationPosition:{label:"位置",component:"select",props:{options:[{label:"上左",value:"topLeft"},{label:"上中",value:"topCenter"},{label:"上右",value:"topRight"},{label:"下左",value:"bottomLeft"},{label:"下中",value:"bottomCenter"},{label:"下右",value:"bottomRight"}]}},paginationPageSize:{label:"分页数",component:"input-number"},destroyOnClose:{label:"关闭销毁",component:"switch"},position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"},limitStartTime:{label:"限制开始时间",component:"time-pick"},limitEndTime:{label:"限制结束时间",component:"time-pick"},strokeColor:{label:"完成颜色",component:"color-pick"},trailColor:{label:"未完成颜色",component:"color-pick"},strokeType:{label:"类型",component:"radio-group",props:{options:[{label:"环形",value:"circle"},{label:"仪表盘",value:"dashboard"},{label:"直线",value:"line"}]}},strokeLinecap:{label:"进度条样式",component:"radio-group",props:{options:[{label:"圆形",value:"round"},{label:"方角",value:"square"}]}},strokeWidth:{label:"进度条宽度",component:"input-number",props:{min:1}},strokeTextWidth:{label:"文本宽度",component:"input-number",props:{suffix:"%",min:20}},geoBackgroundImage:{label:"填充背景",component:"image-pick"},geoItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},geoEmphasisLabelColor:{label:"字体颜色",component:"color-pick"},geoEmphasisItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoEmphasisItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},symbolImage:{label:"坐标点图标",component:"image-pick"},mapJson:{label:"上传数据",component:"file-pick"},barWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:0}},columnCount:{label:"并行数",component:"input-number",props:{min:0}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},itemColSpan:{label:"边距",component:"input-number",props:{suffix:"px",min:0}},itemPadding:{label:"内填充",component:"input-number",props:{suffix:"px",min:0}},itemRowSpan:{label:"行距",component:"input-number",props:{suffix:"px",min:0}},geoLabelColor:{label:"标签颜色",component:"color-pick"},geoLabelFontSize:{label:"标签大小",component:"input-number",props:{min:12,max:100}},geoItemStyleShadowColor:{label:"阴影颜色",component:"color-pick"},geoItemStyleBorderWidth:{label:"边框宽度",component:"input-number"},geoItemStyleShadowBlur:{label:"阴影模糊",component:"input-number"},geoItemStyleShadowOffsetX:{label:"阴影水平偏移",component:"input-number"},geoItemStyleShadowOffsetY:{label:"阴影垂直偏移",component:"input-number"},geoZoom:{label:"缩放大小",component:"input-number"},geoRoam:{label:"手动缩放",component:"switch"},geoCenter:{label:"中心位置",component:"input"},geoBackgroundImageRepeat:{label:"背景图片",component:"select",props:{options:[{label:"重复",value:"repeat"},{label:"水平重复",value:"repeat-x"},{label:"垂直重复",value:"repeat-y"},{label:"不重复",value:"no-repeat"}]}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},headerFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},geoEmphasisDisabled:{label:"禁用",component:"switch"},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input"},toolboxInfoText:{label:"说明信息内容",component:"input"},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"角圆",value:"round"},{label:"圆形",value:"circle"}]}},danger:{label:"危险模式",component:"switch"},href:{label:"链接",component:"textarea",show:[{match:"linkPage",value:""}]},target:{label:"链接方式",component:"radio-group",props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
60
+ `,...function(s){const c=[];return s.forEach((i,d)=>{c.push(...d===0?[]:[`
61
+ `],...function({vnode:p,recurseCount:u}){const m=u>0?`... (${u} recursive calls)`:"",g=!!p.component&&p.component.parent==null,C=` at <${Nl(p.component,p.type,g)}`,b=">"+m;return p.props?[C,...yc(p.props),b]:[C+b]}(i))}),c}(l)),console.warn(...r)}(function(){const r=fl.pop();ht=r===void 0||r})()}function yc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...gl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function gl(t,o,n){return typeof o=="string"?(o=JSON.stringify(o),n?o:[`${t}=${o}`]):typeof o=="number"||typeof o=="boolean"||o==null?n?o:[`${t}=${o}`]:yl(o)?(o=gl(t,Vt(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):Ao(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=Vt(o),n?o:[`${t}=`,o])}const Cl={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function $n(t,o,n,a){let l;try{l=a?t(...a):t()}catch(r){(function(s,c,i,d=!0){const p=c?c.vnode:null;if(c){let u=c.parent;const m=c.proxy,g=process.env.NODE_ENV!=="production"?Cl[i]:i;for(;u;){const b=u.ec;if(b){for(let f=0;f<b.length;f++)if(b[f](s,m,g)===!1)return}u=u.parent}const C=c.appContext.config.errorHandler;if(C)return void $n(C,null,10,[s,m,g])}(function(u,m,g,C=!0){if(process.env.NODE_ENV!=="production"){const f=Cl[m];if(g&&(b=g,bt.push(b)),Fn("Unhandled error"+(f?` during execution of ${f}`:"")),g&&bt.pop(),C)throw u;console.error(u)}else console.error(u);var b})(s,i,p,d)})(r,o,n)}return l}let Eo=!1,In=!1;const He=[];let dt=0;const Lt=[];let We=null,pt=0;const gc=Promise.resolve();function Cc(t){He.length&&He.includes(t,Eo&&t.allowRecurse?dt+1:dt)||(t.id==null?He.push(t):He.splice(function(o){let n=dt+1,a=He.length;for(;n<a;){const l=n+a>>>1,r=He[l],s=to(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),wl())}function wl(){Eo||In||(In=!0,gc.then(kl))}const to=t=>t.id==null?1/0:t.id,wc=(t,o)=>{const n=to(t)-to(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function kl(t){In=!1,Eo=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),He.sort(wc);const o=process.env.NODE_ENV!=="production"?n=>xl(t,n):rl;try{for(dt=0;dt<He.length;dt++){const n=He[dt];if(n&&n.active!==!1){if(process.env.NODE_ENV!=="production"&&o(n))continue;$n(n,null,14)}}}finally{dt=0,He.length=0,function(n){if(Lt.length){const a=[...new Set(Lt)];if(Lt.length=0,We)return void We.push(...a);for(We=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),We.sort((l,r)=>to(l)-to(r)),pt=0;pt<We.length;pt++)process.env.NODE_ENV!=="production"&&xl(n,We[pt])||We[pt]();We=null,pt=0}}(t),Eo=!1,(He.length||Lt.length)&&kl(t)}}function xl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&Tl(a.type);return Fn(`Maximum recursive updates exceeded${l?` in component <${l}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}t.set(o,n+1)}else t.set(o,1)}const oo=new Set;process.env.NODE_ENV!=="production"&&(Ln().__VUE_HMR_RUNTIME__={createRecord:vn(function(t,o){return Oo.has(t)?!1:(Oo.set(t,{initialDef:no(o),instances:new Set}),!0)}),rerender:vn(function(t,o){const n=Oo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,no(a.type).render=o),a.renderCache=[],a.update()}))}),reload:vn(function(t,o){const n=Oo.get(t);if(!n)return;o=no(o),_l(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=no(r.type);oo.has(s)||(s!==n.initialDef&&_l(s,o),oo.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(oo.add(s),r.ceReload(o.styles),oo.delete(s)):r.parent?Cc(r.parent.update):r.appContext.reload?r.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}l=()=>{for(const r of a)oo.delete(no(r.type))},il(l)?Lt.push(...l):We&&We.includes(l,l.allowRecurse?pt+1:pt)||Lt.push(l),wl();var l})});const Oo=new Map;function no(t){return Ao(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function _l(t,o){Vn(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function vn(t){return(o,n)=>{try{return t(o,n)}catch(a){console.error(a),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Dn;process.env.NODE_ENV;let Sl="__VUE_INSTANCE_SETTERS__";(Dn=Ln()[Sl])||(Dn=Ln()[Sl]=[]),Dn.push(t=>t);const kc=/(?:^|[-_])(\w)/g,xc=t=>t.replace(kc,o=>o.toUpperCase()).replace(/[-_]/g,"");function Tl(t,o=!0){return Ao(t)?t.displayName||t.name:t.name||o&&t.__name}function Nl(t,o,n=!1){let a=Tl(o);if(!a&&o.__file){const l=o.__file.match(/([^/\\]+)\.\w+$/);l&&(a=l[1])}if(!a&&t&&t.parent){const l=r=>{for(const s in r)if(r[s]===o)return s};a=l(t.components||t.parent.type.components)||l(t.appContext.components)}return a?xc(a):n?"App":"Anonymous"}const yt=(t,o)=>function(n,a,l=!1){let r,s;const c=Ao(n);return c?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:rl):(r=n.get,s=n.set),new bc(r,s,c||!s,l)}(t,0,!1);function _c(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Al,El={exports:{}};function Sc(){return Al||(Al=1,El.exports=function(){var t=1e3,o=6e4,n=36e5,a="millisecond",l="second",r="minute",s="hour",c="day",i="week",d="month",p="quarter",u="year",m="date",g="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function($){var F=["th","st","nd","rd"],_=$%100;return"["+$+(F[(_-20)%10]||F[_]||F[0])+"]"}},h=function($,F,_){var B=String($);return!B||B.length>=F?$:""+Array(F+1-B.length).join(_)+$},y={s:h,z:function($){var F=-$.utcOffset(),_=Math.abs(F),B=Math.floor(_/60),E=_%60;return(F<=0?"+":"-")+h(B,2,"0")+":"+h(E,2,"0")},m:function $(F,_){if(F.date()<_.date())return-$(_,F);var B=12*(_.year()-F.year())+(_.month()-F.month()),E=F.clone().add(B,d),P=_-E<0,I=F.clone().add(B+(P?-1:1),d);return+(-(B+(_-E)/(P?E-I:I-E))||0)},a:function($){return $<0?Math.ceil($)||0:Math.floor($)},p:function($){return{M:d,y:u,w:i,d:c,D:m,h:s,m:r,s:l,ms:a,Q:p}[$]||String($||"").toLowerCase().replace(/s$/,"")},u:function($){return $===void 0}},N="en",w={};w[N]=f;var x="$isDayjsObject",S=function($){return $ instanceof T||!(!$||!$[x])},A=function $(F,_,B){var E;if(!F)return N;if(typeof F=="string"){var P=F.toLowerCase();w[P]&&(E=P),_&&(w[P]=_,E=P);var I=F.split("-");if(!E&&I.length>1)return $(I[0])}else{var O=F.name;w[O]=F,E=O}return!B&&E&&(N=E),E||!B&&N},v=function($,F){if(S($))return $.clone();var _=typeof F=="object"?F:{};return _.date=$,_.args=arguments,new T(_)},D=y;D.l=A,D.i=S,D.w=function($,F){return v($,{locale:F.$L,utc:F.$u,x:F.$x,$offset:F.$offset})};var T=function(){function $(_){this.$L=A(_.locale,null,!0),this.parse(_),this.$x=this.$x||_.x||{},this[x]=!0}var F=$.prototype;return F.parse=function(_){this.$d=function(B){var E=B.date,P=B.utc;if(E===null)return new Date(NaN);if(D.u(E))return new Date;if(E instanceof Date)return new Date(E);if(typeof E=="string"&&!/Z$/i.test(E)){var I=E.match(C);if(I){var O=I[2]-1||0,V=(I[7]||"0").substring(0,3);return P?new Date(Date.UTC(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)):new Date(I[1],O,I[3]||1,I[4]||0,I[5]||0,I[6]||0,V)}}return new Date(E)}(_),this.init()},F.init=function(){var _=this.$d;this.$y=_.getFullYear(),this.$M=_.getMonth(),this.$D=_.getDate(),this.$W=_.getDay(),this.$H=_.getHours(),this.$m=_.getMinutes(),this.$s=_.getSeconds(),this.$ms=_.getMilliseconds()},F.$utils=function(){return D},F.isValid=function(){return this.$d.toString()!==g},F.isSame=function(_,B){var E=v(_);return this.startOf(B)<=E&&E<=this.endOf(B)},F.isAfter=function(_,B){return v(_)<this.startOf(B)},F.isBefore=function(_,B){return this.endOf(B)<v(_)},F.$g=function(_,B,E){return D.u(_)?this[B]:this.set(E,_)},F.unix=function(){return Math.floor(this.valueOf()/1e3)},F.valueOf=function(){return this.$d.getTime()},F.startOf=function(_,B){var E=this,P=!!D.u(B)||B,I=D.p(_),O=function(X,J){var oe=D.w(E.$u?Date.UTC(E.$y,J,X):new Date(E.$y,J,X),E);return P?oe:oe.endOf(c)},V=function(X,J){return D.w(E.toDate()[X].apply(E.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(J)),E)},k=this.$W,L=this.$M,M=this.$D,U="set"+(this.$u?"UTC":"");switch(I){case u:return P?O(1,0):O(31,11);case d:return P?O(1,L):O(0,L+1);case i:var z=this.$locale().weekStart||0,q=(k<z?k+7:k)-z;return O(P?M-q:M+(6-q),L);case c:case m:return V(U+"Hours",0);case s:return V(U+"Minutes",1);case r:return V(U+"Seconds",2);case l:return V(U+"Milliseconds",3);default:return this.clone()}},F.endOf=function(_){return this.startOf(_,!1)},F.$set=function(_,B){var E,P=D.p(_),I="set"+(this.$u?"UTC":""),O=(E={},E[c]=I+"Date",E[m]=I+"Date",E[d]=I+"Month",E[u]=I+"FullYear",E[s]=I+"Hours",E[r]=I+"Minutes",E[l]=I+"Seconds",E[a]=I+"Milliseconds",E)[P],V=P===c?this.$D+(B-this.$W):B;if(P===d||P===u){var k=this.clone().set(m,1);k.$d[O](V),k.init(),this.$d=k.set(m,Math.min(this.$D,k.daysInMonth())).$d}else O&&this.$d[O](V);return this.init(),this},F.set=function(_,B){return this.clone().$set(_,B)},F.get=function(_){return this[D.p(_)]()},F.add=function(_,B){var E,P=this;_=Number(_);var I=D.p(B),O=function(L){var M=v(P);return D.w(M.date(M.date()+Math.round(L*_)),P)};if(I===d)return this.set(d,this.$M+_);if(I===u)return this.set(u,this.$y+_);if(I===c)return O(1);if(I===i)return O(7);var V=(E={},E[r]=o,E[s]=n,E[l]=t,E)[I]||1,k=this.$d.getTime()+_*V;return D.w(k,this)},F.subtract=function(_,B){return this.add(-1*_,B)},F.format=function(_){var B=this,E=this.$locale();if(!this.isValid())return E.invalidDate||g;var P=_||"YYYY-MM-DDTHH:mm:ssZ",I=D.z(this),O=this.$H,V=this.$m,k=this.$M,L=E.weekdays,M=E.months,U=E.meridiem,z=function(J,oe,le,Ce){return J&&(J[oe]||J(B,P))||le[oe].slice(0,Ce)},q=function(J){return D.s(O%12||12,J,"0")},X=U||function(J,oe,le){var Ce=J<12?"AM":"PM";return le?Ce.toLowerCase():Ce};return P.replace(b,function(J,oe){return oe||function(le){switch(le){case"YY":return String(B.$y).slice(-2);case"YYYY":return D.s(B.$y,4,"0");case"M":return k+1;case"MM":return D.s(k+1,2,"0");case"MMM":return z(E.monthsShort,k,M,3);case"MMMM":return z(M,k);case"D":return B.$D;case"DD":return D.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return z(E.weekdaysMin,B.$W,L,2);case"ddd":return z(E.weekdaysShort,B.$W,L,3);case"dddd":return L[B.$W];case"H":return String(O);case"HH":return D.s(O,2,"0");case"h":return q(1);case"hh":return q(2);case"a":return X(O,V,!0);case"A":return X(O,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(B.$s);case"ss":return D.s(B.$s,2,"0");case"SSS":return D.s(B.$ms,3,"0");case"Z":return I}return null}(J)||I.replace(":","")})},F.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},F.diff=function(_,B,E){var P,I=this,O=D.p(B),V=v(_),k=(V.utcOffset()-this.utcOffset())*o,L=this-V,M=function(){return D.m(I,V)};switch(O){case u:P=M()/12;break;case d:P=M();break;case p:P=M()/3;break;case i:P=(L-k)/6048e5;break;case c:P=(L-k)/864e5;break;case s:P=L/n;break;case r:P=L/o;break;case l:P=L/t;break;default:P=L}return E?P:D.a(P)},F.daysInMonth=function(){return this.endOf(d).$D},F.$locale=function(){return w[this.$L]},F.locale=function(_,B){if(!_)return this.$L;var E=this.clone(),P=A(_,B,!0);return P&&(E.$L=P),E},F.clone=function(){return D.w(this.$d,this)},F.toDate=function(){return new Date(this.valueOf())},F.toJSON=function(){return this.isValid()?this.toISOString():null},F.toISOString=function(){return this.$d.toISOString()},F.toString=function(){return this.$d.toUTCString()},$}(),R=T.prototype;return v.prototype=R,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",c],["$M",d],["$y",u],["$D",m]].forEach(function($){R[$[1]]=function(F){return this.$g(F,$[0],$[1])}}),v.extend=function($,F){return $.$i||($(F,T,v),$.$i=!0),v},v.locale=A,v.isDayjs=S,v.unix=function($){return v(1e3*$)},v.en=w[N],v.Ls=w,v.p={},v}()),El.exports}var Tc=_c(Sc()),Ol=typeof global=="object"&&global&&global.Object===Object&&global,Nc=typeof self=="object"&&self&&self.Object===Object&&self,tt=Ol||Nc||Function("return this")(),Ft=tt.Symbol,Bl=Object.prototype,Ac=Bl.hasOwnProperty,Ec=Bl.toString,ao=Ft?Ft.toStringTag:void 0,Oc=Object.prototype.toString,Vl=Ft?Ft.toStringTag:void 0;function Bo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Vl&&Vl in Object(t)?function(o){var n=Ac.call(o,ao),a=o[ao];try{o[ao]=void 0;var l=!0}catch{}var r=Ec.call(o);return l&&(n?o[ao]=a:delete o[ao]),r}(t):function(o){return Oc.call(o)}(t)}function Ll(t){return t!=null&&typeof t=="object"}function Fl(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Bc(t){if(!Fl(t))return!1;var o=Bo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var $l,Mn=tt["__core-js_shared__"],Il=($l=/[^.]+$/.exec(Mn&&Mn.keys&&Mn.keys.IE_PROTO||""))?"Symbol(src)_1."+$l:"",Vc=Function.prototype.toString;function gt(t){if(t!=null){try{return Vc.call(t)}catch{}try{return t+""}catch{}}return""}var Lc=/^\[object .+?Constructor\]$/,Fc=Function.prototype,$c=Object.prototype,Ic=Fc.toString,vc=$c.hasOwnProperty,Dc=RegExp("^"+Ic.call(vc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Mc(t){return!(!Fl(t)||(o=t,Il&&Il in o))&&(Bc(t)?Dc:Lc).test(gt(t));var o}function Ct(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return Mc(n)?n:void 0}var Pn=Ct(tt,"WeakMap");(function(){try{var t=Ct(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vl(t){return Ll(t)&&Bo(t)=="[object Arguments]"}var Dl=Object.prototype,Pc=Dl.hasOwnProperty,jc=Dl.propertyIsEnumerable;vl(function(){return arguments}());var Ml=typeof he=="object"&&he&&!he.nodeType&&he,Pl=Ml&&typeof module=="object"&&module&&!module.nodeType&&module,jl=Pl&&Pl.exports===Ml?tt.Buffer:void 0;jl&&jl.isBuffer;var Rl=typeof he=="object"&&he&&!he.nodeType&&he,lo=Rl&&typeof module=="object"&&module&&!module.nodeType&&module,jn=lo&&lo.exports===Rl&&Ol.process,$t=function(){try{var t=lo&&lo.require&&lo.require("util").types;return t||jn&&jn.binding&&jn.binding("util")}catch{}}();$t&&$t.isTypedArray,Ct(Object,"create");var Rn=Ct(tt,"Map"),Un=Ct(tt,"DataView"),zn=Ct(tt,"Promise"),Gn=Ct(tt,"Set"),Ul="[object Map]",zl="[object Promise]",Gl="[object Set]",Hl="[object WeakMap]",Wl="[object DataView]",Rc=gt(Un),Uc=gt(Rn),zc=gt(zn),Gc=gt(Gn),Hc=gt(Pn),It=Bo;(Un&&It(new Un(new ArrayBuffer(1)))!=Wl||Rn&&It(new Rn)!=Ul||zn&&It(zn.resolve())!=zl||Gn&&It(new Gn)!=Gl||Pn&&It(new Pn)!=Hl)&&(It=function(t){var o=Bo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?gt(n):"";if(a)switch(a){case Rc:return Wl;case Uc:return Ul;case zc:return zl;case Gc:return Gl;case Hc:return Hl}return o}),tt.Uint8Array;var Yl=Ft?Ft.prototype:void 0;Yl&&Yl.valueOf,$t&&$t.isMap,$t&&$t.isSet;const ql=(t,o)=>{const n=Object.assign({dayjs:Tc},o);let a="";const l=[];for(const c in n)a+=`${c},`,l.push(n[c]);a=a.replace(/,$/,"");const r=`function (${a}){return ${t}}`;let s;try{s=Function(`"use strict";return (${r})`)()(...l)}catch{return t}return s},vt=(t="",{textData:o,codeData:n}={},{useNewline:a=!1,useSpace:l=!1}={})=>{const r=window.config||{},s=Object.assign(Object.assign({},r),o),c=(t||"").match(/\{(.+?)\}/g);if(c==null||c.length===0)return t;for(let i=0;i<c.length;i++){const d=c[i];let p=d.slice(1,-1).trim();const u=/[\u4e00-\u9fa5a-z-_A-Z0-9]*/g,m=p.match(u);for(let g=0;g<m.length;g++){const C=m[g],b=s[C];b!=null&&typeof b!="function"&&(p=p.replace(C,b))}(/\(.*\)/g.test(p)||/[+/\\*]/g.test(p))&&(p=ql(p,n)),t=t.replace(d,p)}return a&&(t=t==null?void 0:t.replace(/\n|\\n/g,"<br/>")),l&&(t=t==null?void 0:t.replace(/\s{2,}?/g,"&nbsp;&nbsp;")),t=t.replace(/Qfw\((.*?)\)/,(i,d)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(d):d)},ue=(t,o)=>{if(typeof t=="string"&&typeof o=="string")return t.toLocaleLowerCase().includes(o.toLocaleLowerCase());if(typeof t=="string"&&Array.isArray(o)){const n=o.length;for(let a=0;a<n;a++){const l=o[a];if(typeof l=="string"&&t.toLocaleLowerCase().includes(l.toLocaleLowerCase()))return!0}}return!1},Ye=(t,o)=>Object.prototype.hasOwnProperty.call(t,o);function Wc(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3==0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),l=t.indexOf(".")>-1?o+"."+a:o,l}const Yc=(t=[],o,n=!1)=>{let{name:a="name",types:l=[]}=o||{};a=(a==null?void 0:a.trim())||a;const r=new Set,s=new Map,c=t.length,i=l.length;if(c!==1||n)for(let u=0;u<c;u++){const m=t[u],g=m[a];r.add(g);for(let C=0;C<i;C++){const b=l[C],{label:f,value:h}=b,y=Object.assign(Object.assign({},m),{value:m[h]});if(s.has(f)){const N=s.get(f);N.push(y),s.set(f,N)}else s.set(f,[y])}}else{const u=[];for(let g=0;g<i;g++){const C=l[g],{label:b,value:f}=C,h=Object.assign(Object.assign({},t[0]),{value:t[0][f]});r.add(b),u.push(h)}const m=t[0][a]||"";s.set(m,u)}const d=Array.from(r),p=[];for(const[u,m]of s)p.push({name:u,data:m});return{dimensions:d,dataset:p}},qc=(t,o)=>{let{name:n="name",value:a="value",type:l="type"}=o||{};n=n==null?void 0:n.trim(),a=a==null?void 0:a.trim(),l=l==null?void 0:l.trim();const r=new Map,s=t.length;for(let d=0;d<s;d++){const p=t[d],u=p[n]||"",m=p[a]||"",g=p[l]||"";if(r.has(g)){const C=r.get(g);C.push(Object.assign({name:u,value:m},p)),r.set(g,C)}else r.set(g,[Object.assign({name:u,value:m},p)])}const c=[],i=[];for(const[d,p]of r)if(i.push({name:d,data:p}),p==null?void 0:p.length)if(c.length)for(const u of p)c.includes(u.name)||c.push(u.name);else c.push(...p.map(u=>u.name));return{dimensions:c,dataset:i}},Dt=(t,o)=>{var n;if(t==null)return o;const a=t.match(/\{.*\}/g);if(a==null||a.length===0)return o;const l=a.length;for(let r=0;r<l;r++){const s=a[r];if(s==null||s==="")break;let c=(n=s.slice(1,-1))===null||n===void 0?void 0:n.trim();c=c==null?void 0:c.replace(/value/g,o);try{let i=c;(/\(.*\)/g.test(c)||/[+/\\*]/g.test(c))&&(i=ql(c)),t=t.replace(s,i)}catch{t=t.replace(s,c)}}return t};function Kc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Xc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=yt(()=>{const{gradientShow:d,gradientColors:p,gradientOffset:u,barBorderRadius:m}=t,g=s,C=g.length,b=[];for(let f=0;f<C;f++){const h=Object.assign(Object.assign({},g[f]),{type:"bar",barWidth:t.barWidth,showBackground:t.showBarBackground}),{isStack:y,stackColumns:N}=t;if(y&&N.includes(g[f].name||!N)&&(h.stack="stack"),h.label={show:t.labelShow,fontSize:t.labelFontSize,position:t.labelPosition,color:t.labelColor,width:t.labelWidth,overflow:t.labelOverflow,formatter:w=>{let x="",S=t.labelFormatter;S===""&&(S="{c}");const{seriesName:A,name:v,value:D,data:T}=w||{};return x+=vt(S,{textData:Object.assign({name:v,value:D,a:A,b:v,c:D||0},T)},{useNewline:!0,useSpace:!0}),x}},h.itemStyle={},d&&(h.itemStyle={color:{x:t.isUseHorizontalAxis?1:0,y:0,x2:0,y2:t.isUseHorizontalAxis?0:1,colorStops:[{offset:0,color:t.colors[f]},{offset:u,color:p[f]},{offset:1,color:p[f]}]}}),m){const w=m.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const A=parseFloat(S);isNaN(A)||x.push(A)}h.itemStyle.barBorderRadius=x}}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),b.push(h)}return b}),i=yt(()=>r.map(d=>{let p={};return p=d&&typeof d=="object"?Object.assign(Object.assign({},d),{textStyle:{fontSize:n}}):{value:d,textStyle:{fontSize:n}},p}));return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:d=>{const p=d.length;let u="",m=t.tooltipFormatter;m===""&&(m="{marker} {a} {c}");for(let g=0;g<p;g++){const{marker:C,seriesName:b,name:f,value:h,data:y}=d[g]||{};if(g===0){let N=f;typeof f!="string"||f[0]!=="0"||isNaN(+f)||(N=(+f).toString()),u+=`${Dt(l,N)}<br/>`}u+=vt(m,{textData:Object.assign({marker:C,name:f,value:h,Qfw:Wc,a:b,b:f,c:h||0},y)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},legend:{type:t.legendScroll?"scroll":"plain",width:t.legendWidth,height:t.legendHeight,show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{rich:{text:{width:t.legendTextWidth,color:t.legendTextStyleColor,fontSize:t.legendFontSize}}},itemHeight:t.legendItemHeight,itemWidth:t.legendItemWidth,itemGap:t.legendItemGap,data:s.map((d,p)=>({name:d.name,itemStyle:{color:t.colors[p]},icon:t.legendType})),formatter:d=>((p="",u)=>{var m;const g=p.match(/\{(.+?)\}/g),C=((m=p.split(`
62
+ `))===null||m===void 0?void 0:m.length)-1;let b="";if(C)for(let h=0;h<C;h++)b+=`
63
+ `;let f=p;if(g!=null&&g.length){for(const h of g){const y=vt(h,{textData:u},{useNewline:!1,useSpace:!1});y&&(f=f.replace(h,y))}return`${b}{text|${f}}`}return p})(t.legendFormatter,{name:d})},xAxis:{type:t.isUseHorizontalAxis?"value":"category",data:t.isUseHorizontalAxis?null:ct(i),inverse:t.isUseHorizontalAxis?t.xAxisInverse:t.axisInverse,minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor,type:t.xAxisSplitLineType},interval:t.xAxisSplitLineInterval},splitArea:{show:t.xAxisSplitAreaShow},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,fontSize:t.xAxisLabelFontSize,formatter:d=>(typeof d!="string"||d[0]!=="0"||isNaN(+d)||(d=(+d).toString()),Dt(l,d))},axisLine:{show:t.xAxisLineShow,lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow},name:t.xAxisName,nameTextStyle:{fontSize:t.xAxisLabelFontSize,color:t.xAxisLabelColor,align:"left"},max:t.xAxisMaxValue||null},yAxis:{type:t.isUseHorizontalAxis?"category":"value",data:t.isUseHorizontalAxis?ct(r):null,inverse:t.isUseHorizontalAxis?t.axisInverse:t.yAxisInverse,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:t.yAxisSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{show:t.yAxisLabelShow,fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,rotate:t.yAxisLabelRotate,width:t.yAxisLabelWidth,overflow:t.yAxisLabelOverflow,formatter:d=>Dt(a,d)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:t.yAxisName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:"right"},max:t.yAxisMaxValue||null},series:ct(c)}},Qc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=yt(()=>r.map(d=>{let p={};return p=d&&typeof d=="object"?Object.assign(Object.assign({},d),{textStyle:{fontSize:n}}):{value:d,textStyle:{fontSize:n}},p})),i=yt(()=>{const d=[],p=s.length;for(let u=0;u<p;u++){const m={};t.shadowColor&&(m.shadowColor=t.shadowColor,m.shadowBlur=t.shadowBlur,m.shadowOffsetY=t.shadowOffsetY,m.shadowOffsetX=t.shadowOffsetX),d.push(Object.assign(Object.assign(Object.assign({type:"line"},s[u]),{symbolSize:t.symbolSize,smooth:t.smooth,areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},m)}),Kc(t)))}return d});return{tooltip:{trigger:"axis",show:t.tooltipShow,formatter:d=>{const p=d.length;let u="",m=t.tooltipFormatter;m===""&&(m="{marker} {a} {c}");for(let g=0;g<p;g++){const{marker:C,seriesName:b,name:f,value:h,data:y}=d[g]||{};g===0&&(u+=`${f}<br/>`),u+=vt(m,{textData:Object.assign({marker:C,name:f,value:h,a:b,b:f,c:h},y)},{useNewline:!0,useSpace:!0}),u+="<br/>"}return u},textStyle:{color:t.tooltipTextStyleColor,fontSize:n.value},position:t.tooltipPosition||void 0,backgroundColor:t.tooltipBackgroundColor||"#fff"},xAxis:{name:t.xAxisName,type:"category",data:ct(c),minInterval:t.xAxisMinInterval,splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow,formatter:d=>Dt(l,d)},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:{type:"value",name:t.yAxisName,minInterval:t.yAxisMinInterval,splitLine:{show:t.yAxisSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor}},axisLabel:{fontSize:n,color:t.yAxisLabelColor,formatter:d=>Dt(a,d)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}}},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{fontSize:n}},series:ct(i)}},Jc=(t,o,n)=>{const{dataset:a=[]}=o;let{data:l=[]}=a[0]||{};if(Array.isArray(t.colors)){const s=t.isUseLabelColors,c=t.colors;l=l.map((i,d)=>Object.assign({label:s?{color:c[d]}:{}},i))}return{title:{text:t.titleText,subtext:t.titleSubtext,textStyle:{fontSize:t.titleFontSize,fontWeight:t.fontWeight,color:t.titleColor},left:t.textAlign||"center"},tooltip:{show:t.tooltipShow,trigger:t.tooltipTrigger,formatter:s=>{const{marker:c,seriesName:i,name:d,value:p,percent:u,data:m}=s||{};return vt(t.tooltipFormatter,{textData:Object.assign({marker:c,name:d,value:p,percent:u,a:i,b:d,c:p,d:u},m)},{useNewline:!0,useSpace:!0})},textStyle:{color:t.tooltipTextStyleColor||"#333"},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n===18?n:t.labelFontSize}},series:[{data:l,type:"pie",radius:[t.innerRadius,t.outerRadius],center:[t.centerLeft,t.centerTop],roseType:t.roseType,avoidLabelOverlap:!1,minAngle:t.minAngle,label:{show:t.labelPosition!=="center"&&t.labelShow,color:t.labelColor,fontSize:n===18?n:t.labelFontSize,position:t.labelPosition,formatter:(r=t.labelFormatter,r.replace(/\\n/g,`
64
+ `))},labelLine:{show:t.labelLineShow,length:t.labelLineLength,length2:t.labelLineLength2},emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{}}}]};var r},Zc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=yt(()=>a.map(i=>{let d={};return d=i&&typeof i=="object"?Object.assign(Object.assign({},i),{textStyle:{fontSize:n}}):{value:i,textStyle:{fontSize:n}},d})),s=yt(()=>{const i=[],d=l.length,p=t.seriesTypes;for(let u=0;u<d;u++){const m=p[u],{type:g,axisIndex:C}=m||{};let b=Object.assign({type:g,yAxisIndex:C},l[u]);if(g==="line"){const f={};t.shadowColor&&(f.shadowColor=t.shadowColor,f.shadowBlur=t.shadowBlur,f.shadowOffsetY=t.shadowOffsetY,f.shadowOffsetX=t.shadowOffsetX),b=Object.assign(Object.assign({},b),{symbolSize:t.symbolSize,smooth:t.smooth,itemStyle:{color:t.colors[u]},areaStyle:{color:t.areaGradientShow?{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:1,color:t.areaGradientColor||"transparent"}],global:!1}:t.colors[u],opacity:t.areaStyleOpacity},lineStyle:Object.assign({width:t.lineStyleWidth},f)})}if(g==="bar"){const{gradientShow:f,gradientColors:h,gradientOffset:y}=t,N={};if(t.barBorderRadius){const w=t.barBorderRadius.split(",");if(w!=null&&w.length){const x=[];for(const S of w){const A=parseFloat(S);isNaN(A)||x.push(A)}N.borderRadius=x}}f&&(N.color={x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:t.colors[u]},{offset:y,color:h[u]},{offset:1,color:h[u]}]}),b=Object.assign(Object.assign({},b),{barWidth:t.barWidth,itemStyle:N})}t.isShowMarkLine&&(b.markLine={data:[{type:t.markLineType}]}),i.push(b)}return i}),c=yt(()=>{const i=t.yAxis;return i==null?void 0:i.map((d,p)=>({type:"value",minInterval:t.yAxisMinInterval,splitLine:{show:p===0?t.yAxisLeftSplitLineShow:t.yAxisRightSplitLineShow,lineStyle:{color:t.yAxisSplitLineStyleColor,type:p===0?t.yAxisLeftSplitLineType:t.yAxisRightSplitLineType}},splitArea:{show:t.yAxisSplitAreaShow},axisLabel:{fontSize:n,show:t.yAxisLabelShow,color:t.yAxisLabelColor,formatter:u=>Dt(d.axisLabelFormatter,u)},axisLine:{show:t.yAxisLineAlwaysDisplay,lineStyle:{color:t.yAxisLineStyleColor}},name:p===0?t.yAxisLeftName:t.yAxisRightName,nameTextStyle:{fontSize:t.yAxisLabelFontSize,color:t.yAxisLabelColor,align:p===0?"right":"left"},max:t.yAxisMaxValue||null}))});return{legend:{show:t.legendShow,orient:t.legendOrient,top:t.legendTop,left:t.legendLeft,textStyle:{color:t.legendTextStyleColor,fontSize:n}},tooltip:{trigger:"axis",show:t.tooltipShow,formatter:i=>{const d=i.length;let p="",u=t.tooltipFormatter;u===""&&(u="{marker} {a} {c}");const m=t.seriesTypes;for(let g=0;g<d;g++){const C=m[g],{tooltipFormatter:b}=C||{},{marker:f,seriesName:h,name:y,value:N,data:w}=i[g]||{};g===0&&(p+=`${y}<br/>`),p+=vt(b||u,{textData:Object.assign({marker:f,name:y,value:N,seriesName:h,a:h,b:y,c:N},w)},{useNewline:!0,useSpace:!0}),p+="<br/>"}return p},textStyle:{color:t.tooltipTextStyleColor||"#333",fontSize:n},backgroundColor:t.tooltipBackgroundColor||"#fff",borderColor:t.tooltipBorderColor||"#eee"},xAxis:{name:t.xAxisName,minInterval:t.xAxisMinInterval,type:"category",data:ct(r),splitLine:{show:t.xAxisSplitLineShow,lineStyle:{color:t.xAxisSplitLineStyleColor}},axisLabel:{color:t.xAxisLabelColor,interval:t.xAxisLabelInterval||0,rotate:t.xAxisLabelRotate,width:t.xAxisLabelWidth,overflow:t.xAxisLabelOverflow},axisLine:{lineStyle:{color:t.xAxisLineStyleColor}},axisTick:{show:t.xAxisTickShow}},yAxis:ct(c),series:ct(s)}},ed=(t,o,n=12)=>Object.assign(Object.assign({},(a=>({title:{text:a.titleText,subtext:a.titleSubtext,textStyle:{fontSize:a.titleFontSize,fontWeight:a.fontWeight,color:a.titleColor},left:a.textAlign||"center"},grid:{top:a.gridTop,bottom:a.gridBottom,left:a.gridLeft,right:a.gridRight,containLabel:a.gridContainLabel},color:a.colors}))(t)),((a,l,r)=>{switch(a.type){case"bar":return Xc(a,l,r);case"line":return Qc(a,l,r);case"pie":return Jc(a,l,r);case"comboGraph":return Zc(a,l,r);default:return{}}})(t,o,n)),ut=t=>{const o=[];if(t!=null&&t.length)for(const n of t)n.conditions?o.push(...ut(n.conditions)):(n==null?void 0:n.dataType)==="component"&&o.push(n);return o},Kl=(t,o)=>{var b;const n=ee.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Ql(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],g=[];for(const f of m){const h=ut((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>Jl(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=Jl(N,o),x={};return N!=null&&N.dateFormat&&(x.format=N.dateFormat),{conditionKey:N.fieldName,conditionLabel:N.fieldName,conditionName:N.fieldName,conditionValueType:N.fieldType,id:w.id,keyName:N.fieldValue,rule:N.rule,notGlobal:!0,indexCode:N.indexCode,typeGuid:N.typeGuid,indexCodeNum:N.indexCodeNum,...x}});if(y!=null&&y.length)for(const N of y)g.find(w=>w.keyName===N.keyName)||g.push(N)}}const C=g.length;for(let f=0;f<C;f++){const h=g[f];if(h&&!((b=Object.keys(h))!=null&&b.length)||(h==null?void 0:h.conditionKey)==="parentCode")continue;const{id:y,keyName:N,prop:w,format:x,dataType:S="component",customValue:A}=h,v=Xl(h);Hn({sqlCondition:v,renderUsedComponents:o,id:y,dateFormat:x,prop:w,keyName:N,dataType:S,customValue:A}),u.push(v)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ut(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},ro=(t,o)=>{const n=[];if(t!=null&&t.length){for(const a of t)if(a.variableName){const l={variateName:a.variableName,globalCondition:!1,valueType:a.variableType,alias:a.keyName||""};Hn({sqlCondition:l,renderUsedComponents:o,id:a.id,dateFormat:a.format,prop:a.dateTypeValue,keyName:a.keyName,dataType:a.dataType,customValue:a.variableValue,operateType:a.operateType,operateMode:a.operateMode,operateValue:a.operateValue}),a.format&&(l.dateFormat=a.format),a.label&&(l.label=a.label),n.push(l)}}return n};function Xl(t){const{id:o,keyName:n,conditionLabel:a,conditionKey:l,conditionValueType:r,prop:s,rule:c="NONE",notGlobal:i=!1,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m="component"}=t;let g=n||o;return g&&s&&(g+=`-${s}`),{rule:c,label:a,fieldName:l,fieldValue:"",valueType:r,alias:g,globalCondition:!i,indexCode:d,indexCodeNum:p,typeGuid:u,dataType:m}}const td=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Ql(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Ql(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:c="component",customValue:i}=n,d=Xl(n);Hn({sqlCondition:d,renderUsedComponents:o,id:a,dateFormat:s,prop:r,keyName:l,dataType:c,customValue:i});for(const p in d)n[p]=d[p];for(const p of td)delete n[p]}}function Hn(t){const{sqlCondition:o,renderUsedComponents:n,id:a,dateFormat:l,prop:r,keyName:s,dataType:c,customValue:i,operateValue:d,operateMode:p,operateType:u}=t,m=e.unref(n).find(N=>N.id===a),{value:g,format:C="YYYY-MM-DD",operate:b,type:f="",useCurrentTime:h}=m||{},y=l||C;if(ue(f,"date")){let N;if(h?N=be():N=be(g),b&&g){const{mode:w,type:x,value:S}=b;if(S)switch(x){case"add":N=N.add(S,w);break;case"minus":N=N.subtract(S,w);break}}if(d&&p&&u)switch(u){case"add":N=N.add(d,p);break;case"minus":N=N.subtract(d,p);break}o.fieldValue=(N==null?void 0:N.format(y))||"",o.dateFormat=y}else if(f==="ecanRangePicker"){const{interval:N,intervalUnit:w,startTime:x,endTime:S}=m||{};let A=r;if(!r){const D=s==null?void 0:s.split("-");D!=null&&D.length&&(A=D[D.length-1])}if(!A)return;let v=null;if(h&&(A==="startTime"?v=be().subtract(N,w):A==="endTime"&&(v=be())),m[A]&&(v=be(m[A])),b){const{type:D,value:T,mode:R}=b;switch(D){case"add":v=v&&v.add(T,R);break;case"minus":v=v&&v.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(x&&S){const D=be(S).diff(be(x),p)+1;switch(u){case"add":v=v&&v.add(D,p);break;case"minus":v=v&&v.subtract(D,p)}}}else if(!isNaN(+d))switch(u){case"add":v=v&&v.add(d,p);break;case"minus":v=v&&v.subtract(d,p)}}if(v&&(o.fieldValue=v==null?void 0:v.format(y)),A==="rangeValue"&&x&&S){const D=od(y);D&&(o.fieldValue=be(S).diff(be(x),D)+1)}o.dateFormat=y}else{const N=g&&g.match(/\{(.+?)\}/g);N!=null&&N.length?o.fieldValue="":o.fieldValue=g}c===""&&(o.fieldValue=i||"")}const Vo=t=>{let o="";switch(t){case"ecanDatePicker":case"ecanRangePicker":o="dateChange";break;case"ecanTimeDisplay":o="timeChange";break;case"ecanSelect":case"ecanTreeSelect":o="selectChange";break;case"ecanTabs":o="tabChange";break;case"ecanInput":o="inputChange";break;case"ecanCheckbox":case"ecanRadio":o="checkboxChange";break;case"ecanText":o="valueChange";break;case"ecanImage":o="click";break}return o};function Jl(t,o){var n;if(t.componentId)return o.find(a=>a.id===t.componentId);if(t.dataType==="component")if(t.fieldType==="DATE"){const a=(n=t.fieldValue)==null?void 0:n.split("-");return a!=null&&a.length?a[0]:null}else return o.find(a=>a.keyName===t.fieldValue);else return null}function od(t){const o=t.split("-");let n="";if(o!=null&&o.length)switch(o[o.length-1]){case"YYYY":n="year";break;case"MM":n="month";break;case"DD":n="day";break}return n}function nd(t,o){let n=t[o.label];if((n||n===0)&&n!==""&&o.dataFormat&&o.dataFormat.length!==0){if(o.dataFormat.includes("#.00")&&(typeof n!="number"&&(n=n.replace(/,/g,"")),Number(n)||Number(n)===0)){const a=o.retentiondigit?o.retentiondigit-0:o.retentiondigit;n=Number(n).toFixed(a)}if(o.dataFormat.includes("#,000")){const a=n.toString();a.includes(",")||(n=ad(a))}}return n}function ad(t){let o="",n="",a="",l="";t.indexOf(".")>-1?(n=t.split(".")[0],a=t.split(".")[1]):n=t;let r=0,s=0;for(s=n.length-1;s>=0;)r%3===0&&r!==0?n[s]==="-"?o+=n[s]:o+=","+n[s]:o+=n[s],s--,r++;return o=o.split("").reverse().join(""),t.indexOf(".")>-1?l=o+"."+a:l=o,l}const Zl=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],er=t=>({0:"文本",1:"数值",2:"日期"})[t],tr=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)a==="0"?n.push("手工录入"):a==="1"?n.push("系统取数"):a==="2"&&n.push("运算加工");return n.join("、")},or=t=>{if(!t)return"";const o=t.split(","),n=[];for(const a of o)switch(a){case"1":n.push("人力系统");break;case"2":n.push("绩效系统");break;case"3":n.push("预算系统");break;case"4":n.push("财务系统");break;case"5":n.push("成本系统");break;case"6":n.push("物流系统");break;case"7":n.push("固定资产系统");break;case"8":n.push("OA办公系统");break;case"9":n.push("电子档案系统");break;case"10":n.push("个人收入系统");break;case"11":n.push("奖金二次分配系统");break;case"12":n.push("财务管理系统");break;case"13":n.push("报销系统");break;case"14":n.push("科研管理系统");break;case"15":n.push("审计系统");break;case"16":n.push("分组器系统");break;case"17":n.push("消毒供应系统");break}return n.join("、")},nr=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",ld=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,LoadingOutlined:js,Draggable:Et,ATooltip:j.Tooltip},props:{data:{type:Array,default:()=>[]},source:{type:String,default:""},isSub:{type:Boolean,default:!1},hasChildren:{type:Boolean,default:!1},total:{type:Number,default:0},graphicConfig:{type:Object,default:()=>({})}},setup(t,{emit:o,expose:n}){var x;const a=(x=window==null?void 0:window.config)==null?void 0:x.pageId,l=e.inject(Be),r=e.unref(e.inject(Ve)),s=e.inject("setItemDisabled",S=>!1),c=e.ref([]),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.ref(!1),u=e.ref(""),m=e.ref(!1);e.watch(()=>t.data,S=>{t.isSub&&(S==null||S.forEach(A=>{var v;A!=null&&A.isLeaf||(v=A.dataViewColumns)==null||v.forEach(D=>{D.show=!0,D.edit=!1,D.title&&(D.label=D.title)})}),c.value=S)},{deep:!0,immediate:!0});const g=()=>{var S;t.isSub||(S=e.unref(i))==null||S.removeEventListener("scroll",y)},C=async S=>{var D;if(e.unref(p))return;const A=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const v={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};S?(S.loading=!0,v.indexTypeGuid=S.indexTypeGuid,v.isLeaf=S.isLeaf):d&&(v.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${Se}/diagram/sourceList`,v,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:$={}}=T.data;if(R){const{rows:F=[],total:_=0}=$;F==null||F.forEach(B=>{var E;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(E=B.dataViewColumns)==null||E.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):B.show=!1}),S?(S.children=F,S.show=!0,F!=null&&F.length||(S.noData=!0)):(c.value=e.unref(c).concat(F),d.totalResult=+_,((D=e.unref(c))==null?void 0:D.length)>=_&&g())}S&&(S.loading=!1),p.value=!1}catch{S&&(S.loading=!1),p.value=!1}},b=async S=>{const A=c.value[S],{children:v=[]}=A;v!=null&&v.length?A.show=!A.show:!A.noData&&A.isLeaf?C(A):A.noData&&(A.show=!A.show)},f=(S,A)=>{o("onDragStart",S,A)},h=S=>{S.show=!S.show},y=S=>{S.target.scrollTop+S.target.clientHeight+20>=S.target.scrollHeight&&(d.currentPage++,C())},N=async()=>{await C(),e.nextTick(async()=>{e.unref(i).scrollHeight===e.unref(i).clientHeight&&d.totalResult>e.unref(c).length&&(d.currentPage++,N())})},w=async S=>{var A;g(),m.value=!0,d.currentPage=1,d.totalResult=0,c.value=[],u.value=S,await N(),m.value=!1,(A=e.unref(i))==null||A.addEventListener("scroll",y)};return e.onMounted(async()=>{var S;t.isSub||(N(),(S=e.unref(i))==null||S.addEventListener("scroll",y))}),e.onUnmounted(()=>{g()}),n({handleSearch:w}),{columnRef:i,sourceList:c,searchLoading:m,onToggleGroup:b,onToggleSource:h,setItemDisabled:s,onDragStart:f,mapDataSetScope:er,mapScope:Zl,getLoadType:tr,getUseType:or,getSourceType:nr}}}),Ly="",rd={key:0,class:"no-data"},id={class:"column-item"},sd=["onClick"],cd={key:3,class:"item-name"},dd={key:0},pd={class:"column-item"},ud={key:0},fd={key:1},md={key:2},hd=["onClick"],bd={class:"column-child-item"},yd={class:"field"},gd={class:"column-child-item-name"};function Cd(t,o,n,a,l,r){const s=e.resolveComponent("loading-outlined"),c=e.resolveComponent("caret-down-outlined"),i=e.resolveComponent("caret-right-outlined"),d=e.resolveComponent("ind-source-list",!0),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["columns",t.isSub?"sub-columns":""]),ref:"columnRef"},[e.createVNode(m,{spinning:t.searchLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>{var g;return[!((g=t.sourceList)!=null&&g.length)&&!t.searchLoading?(e.openBlock(),e.createElementBlock("div",rd,"暂无数据")):t.hasChildren?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.sourceList,(C,b)=>(e.openBlock(),e.createElementBlock("div",{key:C.indexTypeGuid||C.id},[e.createElementVNode("div",id,[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[C.loading?(e.openBlock(),e.createBlock(s,{key:0})):C.show?(e.openBlock(),e.createBlock(c,{key:1})):(e.openBlock(),e.createBlock(i,{key:2})),C.isLeaf?(e.openBlock(),e.createElementBlock("span",cd,e.toDisplayString(C.indexTypeCode+"."+C.indexTypeName),1)):e.createCommentVNode("",!0)],8,sd)]),C.show?(e.openBlock(),e.createElementBlock("div",dd,[e.createVNode(d,{data:C.children,isSub:!0,hasChildren:C.isLeaf==="0",graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onOnDragStart:t.onDragStart},null,8,["data","hasChildren","graphicConfig","onOnDragStart"])])):e.createCommentVNode("",!0)]))),128)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(t.sourceList,C=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass(t.setItemDisabled(C.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",pd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(C.loadType)),1),C.useType?(e.openBlock(),e.createElementBlock("div",ud,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",fd,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0),C.dataTo?(e.openBlock(),e.createElementBlock("div",md,"数据来源:"+e.toDisplayString(t.getSourceType(C.dataTo)),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:b=>t.onToggleSource(C)},[C.show?(e.openBlock(),e.createBlock(c,{key:0})):(e.openBlock(),e.createBlock(i,{key:1})),e.createTextVNode(" "+e.toDisplayString((C.indexCode?C.indexCode:"")+" "+C.name),1)],8,hd)]),_:2},1024)]),C.show?(e.openBlock(),e.createBlock(u,{key:0,modelValue:C.dataViewColumns,"onUpdate:modelValue":b=>C.dataViewColumns=b,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(C.dataViewColumns),onStart:b=>t.onDragStart(b,C)},{item:e.withCtx(({element:b})=>[e.createElementVNode("div",bd,[e.createElementVNode("span",yd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",gd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const wd=ae(ld,[["render",Cd],["__scopeId","data-v-ab51ed18"]]),kd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:za,CaretDownOutlined:Ra,IndSourceList:wd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Et,ATooltip:j.Tooltip},setup(){var x;const t=(x=window==null?void 0:window.config)==null?void 0:x.pageId,o=e.inject(Be),n=e.unref(e.inject(Ve)),a=e.inject(ve),l=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.graphicConfig}),r=e.computed(()=>{var S;return(S=e.unref(l))==null?void 0:S.dataSourceId}),s=e.ref([]),c=e.ref(!1),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Kt),u=e.ref(""),m=async()=>{if(e.unref(h).source==="INDICATOR_LIB")return;c.value=!0;const S={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:d.pageSize,pageNum:d.currentPage}};S.source==="EDV_DATA_SET"&&(S.edvDataSetName=S.indexName,delete S.indexName);try{const A=await o.post(`${Se}/diagram/sourceList`,S,{headers:{Authentication:n,operateContext:"ygt"}});c.value=!1;const{success:v,data:D={}}=A.data;if(v){const{rows:T=[],total:R=0}=D;T==null||T.forEach($=>{var F;$.show=!1,(F=$.dataViewColumns)==null||F.forEach(_=>{_.show=!0,_.edit=!1,_.title&&(_.label=_.title)})}),s.value=T,d.totalResult=+R}}catch{c.value=!1}},g=S=>{s.value[S].show=!s.value[S].show},C=()=>{var S;d.currentPage=1,m(),e.unref(h).source==="INDICATOR_LIB"&&((S=e.unref(i))==null||S.handleSearch(e.unref(u)))},b=ee.debounce(()=>{d.currentPage=1,m()},200),f=(S,A)=>{d.pageSize=A,d.currentPage=S,m()};e.onMounted(()=>{m()});const h=e.inject(ge),y=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const v in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),v)&&S.includes(v)){const D=e.unref(h)[v];Array.isArray(D)&&(A=A.concat(D))}return A}),N=(S=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const v of e.unref(y))if(!S.find(T=>T.parentId===v.parentId)){A=!0;break}}else for(const v of e.unref(y))if(!S.find(T=>T.typeGuid===v.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:g,mapScope:Zl,mapDataSetScope:er,onSearch:C,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(S,A)=>{const v=A.dataViewColumns[S.oldIndex];let D={};A.dataSetParams&&(D=A.dataSetParams),v&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...v,dataTo:A.dataTo,dataSetParams:D})),A.dataTo==="1"&&(A!=null&&A.hrpIndexVariates)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.hrpIndexVariates)),A.dataTo==="2"&&(A!=null&&A.dataSetParams)&&sessionStorage.setItem("indicator-variates",JSON.stringify(A.dataSetParams)))},getSourceType:nr,getLoadType:tr,getUseType:or,graphicConfig:h,indSourceRef:i}}}),Fy="",xd={class:"data-source-list"},_d={class:"columns"},Sd={class:"column-item"},Td={key:0},Nd={key:1},Ad=["onClick"],Ed={key:0},Od={class:"column-child-item"},Bd={class:"column-child-item-name"};function Vd(t,o,n,a,l,r){const s=e.resolveComponent("a-input-search"),c=e.resolveComponent("ind-source-list"),i=e.resolveComponent("caret-down-outlined"),d=e.resolveComponent("caret-right-outlined"),p=e.resolveComponent("a-tooltip"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-spin"),g=e.resolveComponent("a-pagination");return e.openBlock(),e.createElementBlock("div",xd,[e.createVNode(s,{value:t.searchText,"onUpdate:value":o[0]||(o[0]=C=>t.searchText=C),placeholder:"请输入关键字",style:{width:"100%"},onChange:t.onChange,onSearch:t.onSearch},null,8,["value","onChange","onSearch"]),t.graphicConfig.source==="INDICATOR_LIB"?(e.openBlock(),e.createBlock(c,{key:0,ref:"indSourceRef",data:t.dataSourceList,hasChildren:!0,isSub:!1,graphicConfig:t.graphicConfig,source:"INDICATOR_LIB",onSetItemDisabled:t.setItemDisabled,onOnDragStart:t.onDragStart},null,8,["data","graphicConfig","onSetItemDisabled","onOnDragStart"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",_d,[e.createVNode(m,{spinning:t.dataSourceLoading,tip:"数据源加载中..."},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataSourceList,(C,b)=>(e.openBlock(),e.createElementBlock("div",{key:C.id,class:e.normalizeClass(t.setItemDisabled(C.dataViewColumns)?"column-disabled":"")},[e.createElementVNode("div",Sd,[e.createVNode(p,null,{title:e.withCtx(()=>[e.createElementVNode("div",null,"加载类型:"+e.toDisplayString(t.getLoadType(C.loadType)),1),C.useType?(e.openBlock(),e.createElementBlock("div",Td,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",Nd,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createElementVNode("span",{style:{cursor:"pointer"},onClick:f=>t.onToggleGroup(b)},[C.show?(e.openBlock(),e.createBlock(i,{key:0})):(e.openBlock(),e.createBlock(d,{key:1})),e.createTextVNode(" "+e.toDisplayString((C.indexCode?C.indexCode:"")+" "+C.name)+"【"+e.toDisplayString(t.getSourceType(C.dataTo))+"】 ",1)],8,Ad)]),_:2},1024)]),C.show?(e.openBlock(),e.createElementBlock("div",Ed,[e.createVNode(u,{modelValue:C.dataViewColumns,"onUpdate:modelValue":f=>C.dataViewColumns=f,group:{name:"cardItem",pull:"clone",put:!1},"item-key":"id",sort:!1,disabled:t.setItemDisabled(C.dataViewColumns),onStart:f=>t.onDragStart(f,C)},{item:e.withCtx(({element:f})=>[e.createElementVNode("div",Od,[e.createTextVNode(" 【"+e.toDisplayString(f.scope==="FIELD"?t.mapDataSetScope(f.genericType):t.mapScope(f.scope))+"】 ",1),e.createElementVNode("span",Bd,e.toDisplayString(f.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])])):e.createCommentVNode("",!0)],2))),128))]),_:1},8,["spinning"])]),e.createVNode(g,{size:"small","show-quick-jumper":"",pageSize:t.pagination.pageSize,"onUpdate:pageSize":o[1]||(o[1]=C=>t.pagination.pageSize=C),total:t.pagination.totalResult,"show-total":C=>`共 ${C} 条`,current:t.pagination.currentPage,"onUpdate:current":o[2]||(o[2]=C=>t.pagination.currentPage=C),onChange:t.onPaginationChange},null,8,["pageSize","total","show-total","current","onChange"])],64))])}const Ld=ae(kd,[["render",Vd],["__scopeId","data-v-b9ee6c24"]]),Fd=e.defineComponent({name:"DataList",components:{DataSourceList:Ld,DataViewList:pi},setup(){return{source:e.inject(Kt)}}});function $d(t,o,n,a,l,r){const s=e.resolveComponent("data-view-list"),c=e.resolveComponent("data-source-list");return e.openBlock(),e.createElementBlock(e.Fragment,null,[t.source==="SQL_VIEW"?(e.openBlock(),e.createBlock(s,{key:0})):e.createCommentVNode("",!0),t.source==="INDICATOR_LIB"||t.source==="EDV_DATA_SET"?(e.openBlock(),e.createBlock(c,{key:1})):e.createCommentVNode("",!0)],64)}const Id=ae(Fd,[["render",$d]]),ar={mounted(t){t.focus()}},vd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Et,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:qa},setup(t,{expose:o}){var D;const n=(D=window==null?void 0:window.config)==null?void 0:D.pageId,a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ge),s=e.inject(Ae),c=e.computed(()=>e.unref(r).source),i=e.computed(()=>e.unref(r).dataViewId),d=e.ref([]),p=e.ref("1"),u=e.ref([]),m=T=>{const R=t.sortList.filter(F=>!e.unref(u).find(_=>_.columnName===F.name)||T.columnName===F.name),$=[];return R.forEach((F,_)=>{$.includes(F.name)?F.name=`${F.name}_ecanrepeat_${_}`:$.push(F.name)}),R},g=async()=>{try{const T=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(c),dataViewId:e.unref(i),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:n,pageFlag:!0,edvDataSetId:e.unref(r).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:R,data:$=[]}=T.data;R&&(d.value=$==null?void 0:$.slice(0,200))}catch(T){console.error(T)}},C=()=>{var _,B;const T=((_=e.unref(r)[t.type])==null?void 0:_.slice())||[],R=T[t.index],{label:$,name:F}=t.item;e.unref(p)==="2"?R.sort={label:$,columnName:F,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((B=e.unref(u))!=null&&B.length?R.sort=ee.cloneDeep(e.unref(u)):delete R.sort),s({[t.type]:T})};let b=!1;const f=()=>{b=!0},h=e.ref(!1),y=T=>{var $;const{sort:R}=T;R?Array.isArray(R)?(p.value=(($=R[0])==null?void 0:$.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=ee.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[ee.cloneDeep(R)]:u.value=[]):u.value=[],h.value=!0},N=()=>{h.value=!1},w=()=>{e.unref(p)==="2"?(b&&C(),b=!1):C(),N()};return o({showModal:y}),e.watch(h,T=>{var R,$;if(T){const F=($=(R=t.item)==null?void 0:R.sort)==null?void 0:$.customOrderColumns;F==null?g():d.value=F}else d.value=[];window.changeShowTable&&window.changeShowTable(!T)},{flush:"post"}),{visible:h,customSortList:d,activeKey:p,combSortList:u,getSortOptions:m,onChange:f,onDeleteConfig:()=>{var $;const T=(($=e.unref(r)[t.type])==null?void 0:$.slice())||[],R=T[t.index];delete R.sort,s({[t.type]:T}),N()},onCancel:w,onAddSort:()=>{e.unref(u).push({label:"",columnName:null,type:"COMBINATION",order:null})},handleDeleteSort:T=>{u.value.splice(T,1)},onColumnChange:T=>{const R=e.unref(u).find($=>$.columnName===T);if(R){const $=t.sortList.find(F=>F.name===T);$&&(R.label=$.label,$.defaultCode?R.defaultCode=$.defaultCode:delete R.defaultCode)}}}}}),$y="",Dd={class:"button-wrapper"},Md={class:"list-wrapper"},Pd={class:"button-wrapper"},jd={class:"sort-item"};function Rd(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("delete-outlined"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("draggable"),m=e.resolveComponent("a-tabs"),g=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(g,{title:"排序配置",visible:t.visible,"destroy-on-close":"",width:"50%",onCancel:t.onCancel,bodyStyle:{height:"70vh",overflow:"auto",padding:"10px 24px"},footer:null},{default:e.withCtx(()=>[e.createVNode(m,{activeKey:t.activeKey,"onUpdate:activeKey":o[1]||(o[1]=C=>t.activeKey=C)},{default:e.withCtx(()=>[e.createVNode(p,{key:"1",tab:"组合排序"},{default:e.withCtx(()=>[e.createElementVNode("div",Dd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",Md,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.combSortList,(C,b)=>(e.openBlock(),e.createElementBlock("div",{class:"sort-row",key:b},[e.createVNode(c,{value:C.columnName,"onUpdate:value":f=>C.columnName=f,style:{width:"200px"},placeholder:"维度/指标",options:t.getSortOptions(C),fieldNames:{label:"label",value:"name"},onChange:t.onColumnChange},null,8,["value","onUpdate:value","options","onChange"]),e.createVNode(c,{value:C.order,"onUpdate:value":f=>C.order=f,style:{"margin-left":"10px",width:"100px"},placeholder:"升/降序"},{default:e.withCtx(()=>[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})]),_:2},1032,["value","onUpdate:value"]),e.createVNode(d,{style:{color:"red","margin-left":"10px"},onClick:f=>t.handleDeleteSort(b)},null,8,["onClick"])]))),128))])]),_:1}),e.createVNode(p,{key:"2",tab:"自定义排序","force-render":""},{default:e.withCtx(()=>[e.createElementVNode("div",Pd,[e.createVNode(s,{danger:"",onClick:t.onDeleteConfig},{default:e.withCtx(()=>[e.createTextVNode(" 删除配置 ")]),_:1},8,["onClick"])]),e.createVNode(u,{modelValue:t.customSortList,"onUpdate:modelValue":o[0]||(o[0]=C=>t.customSortList=C),class:"custom-sort-list","item-key":"id",put:!1,onChange:t.onChange},{item:e.withCtx(({element:C})=>[e.createElementVNode("div",jd,e.toDisplayString(C),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Ud=ae(vd,[["render",Rd],["__scopeId","data-v-6a468e35"]]),zd=e.defineComponent({name:"CustomGroupModal",directives:{focus:ar},components:{CloseOutlined:Zt,AModal:j.Modal,ASelect:j.Select,ASelectOption:j.SelectOption,AButton:j.Button,AInput:j.Input,ACheckbox:j.Checkbox,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ATag:j.Tag,ACheckableTag:j.CheckableTag},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},setup(t,{expose:o}){var V;const n=e.inject(Be),a=(V=window==null?void 0:window.config)==null?void 0:V.pageId,l=e.unref(e.inject(Ve));let r=!1;const s=e.computed(()=>`自定义分组-${t.item.label}`),c=e.ref(null),i=e.ref(null),d=e.ref([]),p=e.ref([]),u=e.computed(()=>{const k=e.unref(p).map(L=>L.title);return new Set(k)}),m=e.ref([]);e.watch(()=>e.unref(p).length,k=>{m.value=new Array(k).fill(!1)});const g=e.computed(()=>{let k=0;return e.unref(p).forEach(L=>{var M;(M=L.data)==null||M.forEach(U=>{U.checked&&k++})}),k}),C=()=>{const k=e.unref(c);if(!k){j.message.error("创建分组名不能空");return}e.unref(u).has(k)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:k,data:[]}),r=!0,c.value="")},b=()=>{var M,U;const k=e.unref(i);if(!k){j.message.error("值名称不能空");return}let L=!0;if((M=e.unref(p))!=null&&M.length)for(const z of e.unref(p)){if((U=z==null?void 0:z.data)!=null&&U.length){for(const q of z.data)if(q.label===k){L=!1;break}}if(!L)break}L?(e.unref(p)[0].data.push({label:k,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=k=>{e.unref(p).splice(k,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(g)===0){j.message.error("当前移入分组已选个数为0");return}const k=e.unref(h);if(k==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[k]){j.message.error("移入分组不存在,请重新选择");return}const L=[],M=e.unref(p).length;for(let U=0;U<M;U++){const z=e.unref(p)[U];e.unref(p)[U].data=z.data.filter(q=>(q.checked&&L.push({...q,checked:!1}),!q.checked))}e.unref(p)[k].data=[...L,...e.unref(p)[k].data],r=!0},N=k=>{e.unref(m)[k]=!0},w=k=>{e.unref(m)[k]=!1},x=(k,L)=>{const M=k.target.value;e.unref(u).has(M)&&j.message.error("组名不能相同,请修改"),e.unref(p)[L].title=M,r=!0},S=e.inject(ge),A=e.inject(Ae),v=e.computed(()=>e.unref(S).source),D=e.computed(()=>e.unref(S).dataViewId),T=e.ref(!1),R=()=>{var X,J;const k=e.unref(p);let L="";e.unref(T)&&(L=(X=k[0])==null?void 0:X.title);const M=k==null?void 0:k.length,U={};for(let oe=1;oe<M;oe++){const le=k[oe]||{},{title:Ce,data:ie}=le;U[Ce]=(ie==null?void 0:ie.map(we=>we.label))||[]}const z=((J=e.unref(S)[t.type])==null?void 0:J.slice())||[],q=z[t.index];q.customGroup={groupInfoMap:U,otherGroupName:L},A({[t.type]:z})},$=e.ref(!1),F=()=>{$.value=!0},_=()=>{$.value=!1},B=()=>{_(),r&&R(),r=!1},E=()=>{r=!0},P=new Set,I=async()=>{const k=t.item.customGroup||{},L=k.otherGroupName,M=k.groupInfoMap;(L===""||L==null)&&(T.value=!1),e.unref(p)[0]={title:L||"未分组",data:[]};let U=1;for(const z in M)if(Object.prototype.hasOwnProperty.call(M,z)){const X=M[z].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:z,data:X},U++}await O()},O=async()=>{var k;try{const L=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(v),dataViewId:e.unref(D),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(S).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:M,data:U=[]}=L.data;if(M){const z=[];(k=U==null?void 0:U.slice(0,200))==null||k.forEach(q=>{P.has(q)||z.push({label:q,checked:!1})}),e.unref(p)[0].data=z}}catch(L){console.error(L)}};return e.watch($,k=>{k&&I(),window.changeShowTable&&window.changeShowTable(!k)},{flush:"post"}),o({showModal:F}),{visible:$,title:s,activeKey:d,customGroupList:p,onCancel:B,useOtherGroup:T,selectCount:g,createGroupTitle:c,createValueTitle:i,onAddGroup:C,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:x,onFinishEditTitle:w,onUseOtherGroup:E,onAddValue:b,customGroupEditTitleList:m}}}),Iy="",vy="",Gd={class:"custom-group-header"},Hd={class:"move-and-create"},Wd={class:"select-tip"},Yd={class:"select-count"},qd={style:{display:"flex","align-items":"center"}},Kd={class:"create-group"},Xd={class:"create-group",style:{"margin-left":"40px"}},Qd={class:"custom-group-content"},Jd=["onClick"],Zd={class:"extra"},ep={class:"custom-group-list"},tp={class:"text"};function op(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-button"),d=e.resolveComponent("a-checkbox"),p=e.resolveComponent("a-input"),u=e.resolveComponent("a-tag"),m=e.resolveComponent("close-outlined"),g=e.resolveComponent("a-checkable-tag"),C=e.resolveComponent("a-collapse-panel"),b=e.resolveComponent("a-collapse"),f=e.resolveComponent("a-modal"),h=e.resolveDirective("focus");return e.openBlock(),e.createBlock(f,{title:t.title,visible:t.visible,"destroy-on-close":"",width:"50%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column"},footer:null,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Gd,[e.createElementVNode("div",Hd,[e.createElementVNode("div",null,[e.createElementVNode("span",Wd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Yd,e.toDisplayString(t.selectCount),1),e.createTextVNode("个 ")]),e.createVNode(c,{value:t.selectGroupIndex,"onUpdate:value":o[0]||(o[0]=y=>t.selectGroupIndex=y),class:"select-group",placeholder:"请选择移入分组"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(s,{key:N},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.title),1)]),_:2},1024))),128))]),_:1},8,["value"]),e.createVNode(i,{onClick:t.onMoveInGroup},{default:e.withCtx(()=>[e.createTextVNode("移入分组")]),_:1},8,["onClick"])]),e.createVNode(d,{checked:t.useOtherGroup,"onUpdate:checked":o[1]||(o[1]=y=>t.useOtherGroup=y),onChange:t.onUseOtherGroup},{default:e.withCtx(()=>[e.createTextVNode(" 将未分组设为其他分组 ")]),_:1},8,["checked","onChange"])]),e.createElementVNode("div",qd,[e.createElementVNode("div",Kd,[e.createTextVNode(" 创建分组: "),e.createVNode(p,{class:"create-group-name",value:t.createGroupTitle,"onUpdate:value":o[2]||(o[2]=y=>t.createGroupTitle=y),placeholder:"请输入创建分组名",onPressEnter:t.onAddGroup},null,8,["value","onPressEnter"])]),e.createElementVNode("div",Xd,[e.createTextVNode(" 新建值: "),e.createVNode(p,{class:"create-group-name",value:t.createValueTitle,"onUpdate:value":o[3]||(o[3]=y=>t.createValueTitle=y),placeholder:"请输入名称",onPressEnter:t.onAddValue},null,8,["value","onPressEnter"])])])]),e.createElementVNode("div",Qd,[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[4]||(o[4]=y=>t.activeKey=y),ghost:""},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.customGroupList,(y,N)=>(e.openBlock(),e.createBlock(C,{key:N},{header:e.withCtx(()=>[t.customGroupEditTitleList[N]?e.withDirectives((e.openBlock(),e.createBlock(p,{key:1,class:"edit-title-input",value:y.title,size:"small",onChange:w=>t.onTitleChange(w,N),onBlur:w=>t.onFinishEditTitle(N),onPressEnter:w=>t.onFinishEditTitle(N)},null,8,["value","onChange","onBlur","onPressEnter"])),[[h]]):(e.openBlock(),e.createElementBlock("div",{key:0,onClick:e.withModifiers(w=>t.onEditTitle(N),["prevent","stop"])},e.toDisplayString(y.title),9,Jd))]),extra:e.withCtx(()=>[e.createElementVNode("div",Zd,[N===0&&t.useOtherGroup?(e.openBlock(),e.createBlock(u,{key:0,class:"tag",color:"blue"},{default:e.withCtx(()=>[e.createTextVNode(" 其他组 ")]),_:1})):e.createCommentVNode("",!0),N!==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(u,{class:"tag",color:"green"},{default:e.withCtx(()=>[e.createTextVNode(" 自定义组 ")]),_:1}),e.createVNode(m,{onClick:e.withModifiers(w=>t.onDeleteGroup(N),["prevent","stop"])},null,8,["onClick"])],64)):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",ep,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,(w,x)=>(e.openBlock(),e.createBlock(g,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:x},{default:e.withCtx(()=>[e.createElementVNode("span",tp,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const np=ae(zd,[["render",op],["__scopeId","data-v-8e480e07"]]);let ye=(t=21)=>{let o="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;){let a=n[t]&63;a<36?o+=a.toString(36):a<62?o+=(a-26).toString(36).toUpperCase():a<63?o+="_":o+="-"}return o};var ap=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Wn={},lp={get exports(){return Wn},set exports(t){Wn=t}};(function(t,o){(function(n,a){t.exports=a()})(ap,function(){var n="month",a="quarter";return function(l,r){var s=r.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var c=s.add;s.add=function(d,p){return d=Number(d),this.$utils().p(p)===a?this.add(3*d,n):c.bind(this)(d,p)};var i=s.startOf;s.startOf=function(d,p){var u=this.$utils(),m=!!u.u(p)||p;if(u.p(d)===a){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return i.bind(this)(d,p)}}})})(lp);const rp=Wn;be.extend(rp);const ip=e.defineComponent({name:"Condition",components:{CloseOutlined:Zt,DownOutlined:Ls,AppstoreAddOutlined:un,ASelect:j.Select,AInput:j.Input,ADatePicker:j.DatePicker,AButton:j.Button,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem,ASubMenu:j.SubMenu,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,ARadioGroup:j.RadioGroup,ARadio:j.Radio,AInputNumber:j.InputNumber,ASelectOption:j.SelectOption,MenuOutlined:Sn},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},setup(t){var Wt,Yt,Ie,Qe,Tt,lt,Je,Ue,Nt,rt,mt,Yo,qo,qt,Co;const o=(Wt=window==null?void 0:window.config)==null?void 0:Wt.pageId,n=e.inject(ge),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ha),s=e.inject(ze),c=e.ref(!1),i=be(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:re="",id:ne="",type:fe}=te;fe==="ecanRangePicker"?W.push({value:`${ne}-startTime`,label:`${re||ne}-开始时间值`,keyName:`${re||ne}-startTime`,id:ne},{value:`${ne}-endTime`,label:`${re||ne}-结束时间值`,keyName:`${re||ne}-endTime`,id:ne}):W.push({value:ne,label:`${re||ne}`,keyName:`${re||ne}`,id:ne})}),W}),p=e.computed(()=>[{label:"父页面",value:"PARENT",id:"PARENT",keyName:"PARENT"},...e.unref(d)]),u=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.dataViewId}),m=e.computed(()=>{var W;return(W=e.unref(n))==null?void 0:W.source}),g=e.ref(!1),C={display:"block",height:"34px",lineHeight:"34px",marginTop:"3px"},b=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],f=e.ref({expression:"rangeValue",unit:"YEAR",around:"before"}),h=e.ref([{key:0,value:"",label:"年",type:"years",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"年前",afterLabel:"年后",beforeText:"年初",afterText:"年末"},{key:1,value:"",label:"季度",type:"quarters",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个季度前",afterLabel:"个季度后",beforeText:"季度初",afterText:"季度末"},{key:2,value:"",label:"月",type:"months",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"个月前",afterLabel:"个月后",beforeText:"月初",afterText:"月末"},{key:3,value:"",label:"周",type:"weeks",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"周前",afterLabel:"周后",beforeText:"",afterText:""},{key:4,value:"",label:"天",type:"days",radioValue:"1",beforeNum:0,afterNum:0,beforeLabel:"天前",afterLabel:"天后",beforeText:"今天",afterText:""}]),y=[{label:"年份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"季的季度",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"月的月份",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"周的周",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"},{label:"天的日期",text:"年",yearNum:0,yearRule:"before",otherNum:0,otherRule:"before"}],N=[{label:"时间值",value:"time"},{label:"过滤组件值",value:"component"}],w=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],x=e.ref({fieldName:(Yt=t.data)==null?void 0:Yt.fieldName,fieldType:(Ie=t.data)==null?void 0:Ie.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(Tt=t.data)==null?void 0:Tt.id,fieldValue:S(),label:(lt=t.data)==null?void 0:lt.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(Ue=t.data)==null?void 0:Ue.indexCode,indexCodeNum:(Nt=t.data)==null?void 0:Nt.indexCodeNum,dataType:((rt=t.data)==null?void 0:rt.dataType)||"",componentId:((mt=t.data)==null?void 0:mt.componentId)||"",useCurrentTime:!!((Yo=t.data)!=null&&Yo.useCurrentTime),keyValue:(qo=t.data)==null?void 0:qo.keyValue,modelKey:(qt=t.data)==null?void 0:qt.modelKey,prop:(Co=t.data)==null?void 0:Co.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&be(te);if(K==="component"){const re=e.unref(d).find(ne=>ne.keyName===te);return re?re.value:te}else return te}const A=e.ref([]),v=e.ref(!1),D=e.computed(()=>x.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const re=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],ne=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(re.includes(W)){let fe=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!ne.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(re.includes(Te)?fe=fe.concat(Ze.filter(G=>G.show)):fe=fe.concat(Ze))}te=fe}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(fe=>({...fe,label:fe.label||fe.title,value:fe.name}))}),{updateCondition:R,deleteCondition:$,addCondition:F}=e.inject(ko,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),_=()=>{$(t.index,t.path)};e.watch(x,W=>{const K=ee.cloneDeep(W);W.fieldType==="DATE"&&W.dataType!=="component"&&W.fieldValue&&(K.fieldValue=W.fieldValue.format(W.dateFormat)),R(K,t.index,t.path)},{deep:!0}),e.watch(c,W=>{x.value.fieldValue="",x.value.useCurrentTime=W});const B=W=>{var Y;const K=e.unref(T).find(Q=>Q.value===W)||{},{name:te,genericType:re,id:ne,edvDataSetId:fe,label:Te,typeGuid:Ze,indexCode:G,indexCodeNum:H}=K;x.value={id:ne,fieldName:te,fieldType:re,label:Te,rule:"",fieldValue:re==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:G,edvDataSetId:fe,indexCodeNum:H,dataType:"",useCurrentTime:!1,keyValue:((Y=e.unref(x))==null?void 0:Y.keyValue)||ye(),modelKey:"",prop:""}},E=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(x).componentId=K.id||""},P=e.computed(()=>{const W=e.unref(x).fieldType;return W==="TEXT"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:W==="NUMBER"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:W==="DATE"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]}),I=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(x).rule);return K&&(W=K.label),W}),O=e.computed(()=>{let W={fontSize:"12px"};return e.unref(I)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),k=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${Se}/diagram/groupvalue`,{source:e.unref(m),dataViewId:e.unref(u),groupColumn:e.unref(x).fieldName,hrpIndexTypeGuid:e.unref(x).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(x).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:te,data:re=[]}=K.data;te&&(V.value=(W=re==null?void 0:re.slice(0,200))==null?void 0:W.map(ne=>({label:ne,value:ne})))}catch(K){console.error(K)}},L=W=>{e.unref(x).rule=W,e.unref(x).fieldValue=e.unref(x).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&k()},M=W=>{e.unref(x).dataType=W,e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""},U=e.ref(),z=W=>{U.value=W,e.unref(x).fieldValue=(W==null?void 0:W.join(","))||""},q=W=>{const{keyPath:K}=W;e.unref(x).rule=K[0],e.unref(x).dataType=K[1],e.unref(x).dateFormat=K[2],e.unref(x).fieldValue="",e.unref(x).modelKey="",e.unref(x).prop=""};e.onMounted(async()=>{var ne,fe,Te,Ze,G,H,Y,Q,se,ce;if(x.value.dataType=((ne=t.data)==null?void 0:ne.dataType)||"",x.value.componentId=((fe=t.data)==null?void 0:fe.componentId)||"",x.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,x.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,x.value.prop=(G=t.data)==null?void 0:G.prop,e.unref(x).fieldType==="DATE"){const{activeKey:Z,dateCalcTypes:de=[]}=t.data||{};if(e.unref(x).dateFormat=(H=t.data)==null?void 0:H.dateFormat,e.unref(x).activeKey=Z,e.unref(x).calcWays=((Y=t.data)==null?void 0:Y.calcWays)||[],e.unref(x).dateCalcTypes=de,e.unref(x).useCurrentTime&&e.unref(x).dataType!=="component"&&(c.value=!0),Z===5){const me=e.unref(x).calcWays[0];if(me){const pe=me.split("-");e.unref(f).expression=pe[0],e.unref(f).around=pe[1]}e.unref(f).unit=de[0]||"YEAR"}else{e.unref(x).radioValue=((Q=t.data)==null?void 0:Q.radioValue)||"";const me=e.unref(h).find(pe=>{var ke;return pe.key===((ke=t.data)==null?void 0:ke.activeKey)});me&&we(me,t.data)}}else U.value=((ce=(se=t.data)==null?void 0:se.fieldValue)==null?void 0:ce.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=x.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&k();const{source:re}=e.unref(n);re==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(Z=>{Z.data.success&&(console.log(Z.data),A.value=Z.data.data.column.map(de=>({...de,genericType:de.columnCategory==="0"?"TEXT":de.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:Z.data.data.id,name:de.columnName,label:de.columnName})))}).catch(Z=>{console.error(Z)})});const X=W=>{if(e.unref(x).activeKey===W){e.unref(h)[W].radioValue=e.unref(x).radioValue,e.unref(h)[e.unref(x).activeKey]&&(e.unref(h)[e.unref(x).activeKey].radioValue=e.unref(x).radioValue,e.unref(x).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(x).calcWays[0]:e.unref(x).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(x).calcWays[0]));return}e.unref(h).forEach(K=>{K.beforeNum=0,K.afterNum=0,K.radioValue="1",K.value=""})},J=(W,K)=>{g.value=!0;const te=W.target.value,re=K.type,ne=e.unref(x).dateFormat,fe=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,re,ne,fe,Te)},oe=W=>{const K=e.unref(x).activeKey;if(W!==K)return;let te="";K===0?te="years":K===1?te="quarters":K===2?te="months":K===3?te="weeks":K===4&&(te="days");const re=e.unref(x).dateFormat,ne=e.unref(x).radioValue;let fe=0,Te=0;return ne==="1"?fe=Math.abs(e.unref(x).calcWays[0]):ne==="2"&&(Te=e.unref(x).calcWays[0]),at(ne,te,re,fe,Te)},le=(W,K,te,re)=>{if(g.value=!0,K.radioValue===re){const ne=W.target.value;te==="+"?K.value=be().add(ne,K.type).format(e.unref(x).dateFormat):K.value=be().subtract(ne,K.type).format(e.unref(x).dateFormat)}},Ce=(W,K)=>{e.unref(x).calcWays||(e.unref(x).calcWays=[]),e.unref(x).activeKey=K,e.unref(x).radioValue=W.radioValue,W.radioValue==="1"?e.unref(x).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(x).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(x).calcWays[0]="0":e.unref(x).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(x).calcWays[0]="END"),K===0?e.unref(x).dateCalcTypes=["YEAR"]:K===1?e.unref(x).dateCalcTypes=["QUARTER"]:K===2?e.unref(x).dateCalcTypes=["MONTH"]:K===3?e.unref(x).dateCalcTypes=["WEEK"]:K===4&&(e.unref(x).dateCalcTypes=["DAY"]),v.value=!1},ie=()=>{e.unref(x).activeKey=5,e.unref(x).dateCalcTypes=[e.unref(f).unit],e.unref(x).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,v.value=!1};function we(W,K){const{radioValue:te="",calcWays:re=[]}=K;W.radioValue=te,re!=null&&re.length&&(te==="1"?W.beforeNum=Math.abs(re[0]):te==="2"&&(W.afterNum=re[0]))}function at(W,K,te,re,ne){if(W==="1")return be().subtract(re,K).format(te);if(W==="2")return be().add(ne,K).format(te);if(W==="3"){if(K==="years")return be().startOf("year").format(te);if(K==="quarters")return be().startOf("quarter").format(te);if(K==="months")return be().startOf("month").format(te);if(K==="days")return be().format(te)}else if(W==="4"){if(K==="years")return be().endOf("year").format(te);if(K==="quarters")return be().endOf("quarter").format(te);if(K==="months")return be().endOf("month").format(te)}return""}const Gt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Ht=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(x).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:B,condition:x,valueOptions:V,onRuleChange:L,onDataTypeChange:M,onFieldValueSelectChange:z,fieldValues:U,onDelete:_,isDateType:D,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:I,downIconStyle:O,popoverVisible:v,dateRadioStyle:C,showTime:g,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Ht,handleMenuClick:q,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:le,okDatePickConfig:Ce,onChangeComponent:E,filterOption:Gt,okCustomConfig:ie,clickConditionMenu:({key:W})=>{F(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),Dy="",My="",sp={class:"condition"},cp=["title"],dp={class:"rule"},pp={class:"data-type"},up={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},fp={class:"popover-content-wrap"},mp={key:0,class:"use-current-time"},hp={class:"tabFilterRadio"},bp={key:0},yp={key:1},gp={style:{"margin-left":"10px"}},Cp={style:{"margin-left":"10px"}},wp={style:{position:"absolute",bottom:"10px"}},kp={style:{display:"flex"}},xp={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function _p(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-menu-item"),d=e.resolveComponent("a-sub-menu"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("DownOutlined"),m=e.resolveComponent("a-button"),g=e.resolveComponent("a-dropdown"),C=e.resolveComponent("a-date-picker"),b=e.resolveComponent("a-input"),f=e.resolveComponent("a-checkbox"),h=e.resolveComponent("a-input-number"),y=e.resolveComponent("a-radio"),N=e.resolveComponent("a-radio-group"),w=e.resolveComponent("a-tab-pane"),x=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),v=e.resolveComponent("menu-outlined"),D=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",sp,[e.createVNode(c,{class:"field-name",value:t.condition.fieldName,onChange:t.onFieldChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.fieldOptions,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createElementVNode("span",{title:T.label},e.toDisplayString(T.label),9,cp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",dp,[t.isDateType?(e.openBlock(),e.createBlock(g,{key:0,class:"dropdown",trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.handleMenuClick},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.ruleOptions,T=>(e.openBlock(),e.createBlock(d,{key:T.value},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value?"color: #1890FF;":"")},e.toDisplayString(T.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.menuRule,R=>{var $;return e.openBlock(),e.createBlock(d,{key:R.value,disabled:R.value==="component"&&!(($=t.controlList)!=null&&$.length)},{title:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value?"color: #1890FF;":"")},e.toDisplayString(R.label),5)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,F=>(e.openBlock(),e.createBlock(i,{key:F.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value&&t.condition.dateFormat===F.value?"color: #1890FF;":"")},e.toDisplayString(F.label),5)]),_:2},1024))),128))]),_:2},1032,["disabled"])}),128))]),_:2},1024))),128))]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(m,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.dateBtnLabel)+" ",1),e.createVNode(u,{style:e.normalizeStyle(t.downIconStyle)},null,8,["style"])]),_:1})]),_:1})):(e.openBlock(),e.createBlock(c,{key:1,style:{width:"100%"},value:t.condition.rule,options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]))]),e.withDirectives(e.createElementVNode("div",pp,[e.createVNode(c,{style:{width:"100%"},value:t.condition.dataType,onChange:t.onDataTypeChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.dataTypeList,(T,R)=>(e.openBlock(),e.createBlock(s,{key:R,value:T.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])],512),[[e.vShow,(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType]]),t.isDateType?(e.openBlock(),e.createElementBlock("div",up,[t.condition.dataType==="time"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.isUseCurrentTime?(e.openBlock(),e.createBlock(C,{key:0,disabled:"",style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.currentTime,format:t.condition.dateFormat},null,8,["value","format"])):(e.openBlock(),e.createBlock(C,{key:1,style:{width:"calc(100% - 35px)","margin-right":"10px"},value:t.condition.fieldValue,"onUpdate:value":o[0]||(o[0]=T=>t.condition.fieldValue=T),format:t.condition.dateFormat},null,8,["value","format"]))],64)):typeof t.condition.fieldValue=="string"?(e.openBlock(),e.createBlock(c,{key:1,"show-search":"",style:e.normalizeStyle({width:t.condition.fieldValue==="PARENT"?"":"calc(100% - 35px)",marginRight:"10px"}),value:t.condition.fieldValue,"onUpdate:value":o[1]||(o[1]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["style","value","filter-option","options","onChange"])):e.createCommentVNode("",!0),t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[2]||(o[2]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[3]||(o[3]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(A,{visible:t.popoverVisible,"onUpdate:visible":o[11]||(o[11]=T=>t.popoverVisible=T),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",fp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",mp,[e.createVNode(f,{checked:t.isUseCurrentTime,"onUpdate:checked":o[4]||(o[4]=T=>t.isUseCurrentTime=T)},{default:e.withCtx(()=>[e.createTextVNode("使用当前时间")]),_:1},8,["checked"])])):e.createCommentVNode("",!0),e.createVNode(x,{defaultActiveKey:t.condition.activeKey,onChange:t.changeTabInitDate},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tabDateList,(T,R)=>(e.openBlock(),e.createBlock(w,{key:R,tab:T.label},{default:e.withCtx(()=>[e.createElementVNode("div",hp,[e.createVNode(N,{value:T.radioValue,"onUpdate:value":$=>T.radioValue=$,onChange:$=>t.changeRadioValue($,T)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",bp,"相对当前时间:"+e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("div",yp,"相对当前时间:"+e.toDisplayString(t.getFieldValue(R)),1)),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"1"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.beforeNum,"onUpdate:value":$=>T.beforeNum=$,min:0,onBlur:$=>t.blurCompare($,T,"-","1")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",gp,e.toDisplayString(T.beforeLabel),1)]),_:2},1032,["style"]),e.createVNode(y,{style:e.normalizeStyle(t.dateRadioStyle),value:"2"},{default:e.withCtx(()=>[e.createVNode(h,{value:T.afterNum,"onUpdate:value":$=>T.afterNum=$,min:0,onBlur:$=>t.blurCompare($,T,"+","2")},null,8,["value","onUpdate:value","onBlur"]),e.createElementVNode("span",Cp,e.toDisplayString(T.afterLabel),1)]),_:2},1032,["style"]),T.beforeText?(e.openBlock(),e.createBlock(y,{key:2,style:e.normalizeStyle(t.dateRadioStyle),value:"3"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.beforeText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0),T.afterText?(e.openBlock(),e.createBlock(y,{key:3,style:e.normalizeStyle(t.dateRadioStyle),value:"4"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(T.afterText),1)]),_:2},1032,["style"])):e.createCommentVNode("",!0)]),_:2},1032,["value","onUpdate:value","onChange"]),e.createElementVNode("div",wp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[5]||(o[5]=$=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:$=>t.okDatePickConfig(T,R)},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:2},1032,["onClick"])])])]),_:2},1032,["tab"]))),128)),(e.openBlock(),e.createBlock(w,{tab:"自定义",key:5},{default:e.withCtx(()=>[e.createElementVNode("div",kp,[e.createVNode(c,{value:t.customTabData.expression,"onUpdate:value":o[6]||(o[6]=T=>t.customTabData.expression=T),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.customTabData.unit,"onUpdate:value":o[7]||(o[7]=T=>t.customTabData.unit=T),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(s,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(s,{value:"QUARTER"},{default:e.withCtx(()=>[e.createTextVNode("季度")]),_:1}),e.createVNode(s,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(s,{value:"WEEK"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(s,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.customTabData.around,"onUpdate:value":o[8]||(o[8]=T=>t.customTabData.around=T)},{default:e.withCtx(()=>[e.createVNode(s,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(s,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])]),e.createElementVNode("div",xp,[e.createVNode(m,{style:{"margin-right":"12px"},onClick:o[9]||(o[9]=T=>t.popoverVisible=!1)},{default:e.withCtx(()=>[e.createTextVNode("取消")]),_:1}),e.createVNode(m,{onClick:t.okCustomConfig},{default:e.withCtx(()=>[e.createTextVNode("确定")]),_:1},8,["onClick"])])]),_:1}))]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[10]||(o[10]=T=>{t.popoverVisible=!0})},[e.createVNode(S)])]),_:1},8,["visible"])])):["IN","NOT_IN"].includes(t.condition.rule||"")?(e.openBlock(),e.createBlock(c,{key:1,class:"field-value",value:t.fieldValues,mode:"multiple",options:t.valueOptions,onChange:t.onFieldValueSelectChange},null,8,["value","options","onChange"])):(!t.condition.fieldType||["TEXT","NUMBER"].includes(t.condition.fieldType))&&t.isShowCustomDataType&&t.condition.dataType==="component"?(e.openBlock(),e.createBlock(c,{key:2,class:"field-value","show-search":"",value:t.condition.fieldValue,"onUpdate:value":o[12]||(o[12]=T=>t.condition.fieldValue=T),"filter-option":t.filterOption,options:t.keyNameOptions,onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])):(e.openBlock(),e.createBlock(b,{key:3,class:"field-value",value:t.condition.fieldValue,"onUpdate:value":o[13]||(o[13]=T=>t.condition.fieldValue=T)},null,8,["value"])),!t.isDateType&&t.condition.fieldValue==="PARENT"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(b,{class:"field-value",value:t.condition.modelKey,"onUpdate:value":o[14]||(o[14]=T=>t.condition.modelKey=T),placeholder:"组件别名",style:{margin:"0"}},null,8,["value"]),e.createVNode(b,{class:"field-value",value:t.condition.prop,"onUpdate:value":o[15]||(o[15]=T=>t.condition.prop=T),placeholder:"属性名"},null,8,["value"])],64)):e.createCommentVNode("",!0),e.createVNode(g,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(i,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(i,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(v,{class:"more-icon"})]),_:1}),e.createVNode(D,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Sp=ae(ip,[["render",_p],["__scopeId","data-v-29a39def"]]),Tp=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Sp}}),Py="",Np={key:0,class:"condition-list"},Ap={key:0,class:"condition-container"},Ep={key:0,class:"condition-text"},Op={key:1,class:"condition-text"},Bp={class:"conditions"};function Vp(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),c=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Np,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Ap,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Ep,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Op,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Bp,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${d}`,list:i.conditions,type:t.type},null,8,["level","path","list","type"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.keyValue||`${t.level}-${d}`,data:i,level:t.level,index:d,path:t.path||"",type:t.type},null,8,["data","level","index","path","type"]))],64))),128))])):e.createCommentVNode("",!0)}const Lp=ae(Tp,[["render",Vp],["__scopeId","data-v-553c1496"]]),Fp=e.defineComponent({name:"TruncationList",props:{list:{type:Array,default:()=>[]}},components:{ASelect:j.Select,AInput:j.Input,AInputNumber:j.InputNumber},setup(t,{emit:o}){const n=[{label:"前N个",value:"TOP"},{label:"后N个",value:"BOTTOM"}],a=e.ref([]);return e.watch(a,r=>{r!=null&&r.length&&o("update",r)},{deep:!0}),e.onMounted(()=>{var r;(r=t.list)!=null&&r.length?a.value=ee.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),jy="",lr=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),$p={class:"truncations"},Ip={class:"rule"},vp={class:"field-value"},Dp={class:"field-value"},Mp=lr(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Pp=lr(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),jp=["onClick"];function Rp(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input-number"),i=e.resolveComponent("a-input");return e.openBlock(),e.createElementBlock("div",$p,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.truncationList,(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"item",key:p},[e.createElementVNode("div",Ip,[e.createVNode(s,{style:{width:"100%"},value:d.rule,"onUpdate:value":u=>d.rule=u,options:t.ruleOptions},null,8,["value","onUpdate:value","options"])]),e.createElementVNode("div",vp,[e.createTextVNode(" N= "),e.createVNode(c,{value:d.num,"onUpdate:value":u=>d.num=u,min:0},null,8,["value","onUpdate:value"])]),e.createElementVNode("div",Dp,[Mp,e.createVNode(i,{value:d.name,"onUpdate:value":u=>d.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),Pp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(d)},"清空",8,jp)]))),128))])}const Up=ae(Fp,[["render",Rp],["__scopeId","data-v-f543c690"]]),zp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Lp,TruncationList:Up,AModal:j.Modal,AButton:j.Button,ATabs:j.Tabs,ATabPane:j.TabPane},setup(t,{expose:o}){var _;const n=e.ref("1"),a=()=>{var B;return`添加过滤条件-${((B=t.item)==null?void 0:B.label)||""}`},l=e.inject(ge),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var B;return(B=e.unref(l))==null?void 0:B.dataSourceId}),i=e.inject(ve),d=e.inject(xo),p=e.ref([]),u=e.ref([]),m=e.ref(!1),g=e.inject(Kt),C=B=>{var E;for(const P of B)(E=P.conditions)!=null&&E.length?C(P.conditions):P.keyValue=ye()};e.watch(m,B=>{var E,P,I,O;if(B){if(Array.isArray((E=t.item)==null?void 0:E.conditions)){const V=ee.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);C(V),p.value=V}Array.isArray((I=t.item)==null?void 0:I.truncations)?u.value=ee.cloneDeep((O=t.item)==null?void 0:O.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!B)},{flush:"post"});let b=!1;const f=B=>{var E;b=!0,e.unref(p)==null||((E=e.unref(p))==null?void 0:E.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==B?p.value=[{join:B,conditions:[e.unref(p)[0],{keyValue:ye()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===B&&p.value[0].conditions.push({keyValue:ye()}))};e.provide(ko,{updateCondition(B,E,P){var V;b=!0;let I=e.unref(p);const O=P.split("-");if(O!=null&&O.length)for(const k of O)if(I[k])I=(V=I[k])==null?void 0:V.conditions;else break;Array.isArray(I)&&I[E]&&(I[E]=B)},deleteCondition(B,E){var O,V,k;b=!0;let P=e.unref(p);const I=E.split("-");if(I!=null&&I.length){for(const L of I)if(P[L])P=(O=P[L])==null?void 0:O.conditions;else break;if(Array.isArray(P)&&P[B])if(P.splice(B,1),P.length===1){if(I.length>0){const L=I.length-1,M=I[L],U=I.slice(0,L);let z=e.unref(p),q="";for(const X of U)if(z[X])q=(V=z[X])==null?void 0:V.join,z=(k=z[X])==null?void 0:k.conditions;else break;if(q===P[0].join){if(Array.isArray(P[0].conditions)){const X=ee.cloneDeep(P[0].conditions);z.splice(+M,1),z.splice(+M,0,...X)}}else z[M]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(B,E,P){var k,L;b=!0;let I=e.unref(p),O="";const V=B.split("-");if(V!=null&&V.length){for(const M of V)if(I[M])O=(k=I[M])==null?void 0:k.join,I=(L=I[M])==null?void 0:L.conditions;else break;if(O===P)I.splice(E+1,0,{keyValue:ye()});else{const M=ee.cloneDeep(I[E]);I[E]={join:P,conditions:[M,{keyValue:ye()}]}}}}});const h=B=>{b=!0,u.value=B},y=e.computed(()=>{var E;const B=[];return(E=e.unref(s))==null||E.forEach(P=>{const{keyName:I="",id:O="",type:V}=P;V==="ecanRangePicker"?B.push({value:`${O}-startTime`,label:`${I||O}-开始时间值`,keyName:`${I||O}-startTime`},{value:`${O}-endTime`,label:`${I||O}-结束时间值`,keyName:`${I||O}-endTime`}):B.push({value:O,label:`${I||O}`,keyName:`${I||O}`})}),B}),N=()=>{var k,L,M;const B=ut(((k=e.unref(l))==null?void 0:k.controlList)||[]),E=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],P=ut(ee.cloneDeep(E[t.index].conditions));E[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((M=e.unref(u))!=null&&M.length)&&(E[t.index].truncations=e.unref(u));const I=ut(e.unref(p));for(const U of I)if(U.dataType==="component"&&U.fieldValue){const z=e.unref(y).find(q=>q.value===U.fieldValue);z&&(U.fieldValue=z.keyName)}const O=P.filter(U=>!I.find(z=>z.componentId===U.componentId)).filter(U=>!B.find(z=>z.id===U.componentId)),V=I.filter(U=>!P.find(z=>z.componentId===U.componentId));w(O,V),r({[t.type]:E,sqlConditions:Kl({...e.unref(l),[t.type]:E},e.unref(s))})};function w(B,E){var I;const P=B.map(O=>({...O,delete:!0})).concat(E.map(O=>({...O,add:!0})));for(const O of P){const V=e.unref(s).find(k=>k.id===O.componentId);if(V){const{type:k,id:L,events:M=[]}=V,U=Vo(k);if(O.add)M.find(z=>{var q;return z.on===U&&z.target===((q=e.unref(i))==null?void 0:q.id)&&z.emit==="refreshData"})||d({id:L,events:[...M,{on:U,target:(I=e.unref(i))==null?void 0:I.id,emit:"refreshData"}].reverse()});else if(O.delete){const z=M.findIndex(q=>{var X;return q.on===U&&q.target===((X=e.unref(i))==null?void 0:X.id)&&q.emit==="refreshData"});z!==-1&&(M.splice(z,1),d({id:L,events:M}))}}}}const x=()=>{m.value=!0},S=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,S()},v=()=>{S()},D=e.inject(Be),T=e.unref(e.inject(Ve)),R=(_=window==null?void 0:window.config)==null?void 0:_.pageId,$=e.ref([]);e.provide(ha,$);const F=async B=>{var E;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:I}=B,O=await D.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:I},{headers:{Authentication:T,operateContext:"ygt"}}),{success:V,data:k=[]}=O.data;V&&((E=k==null?void 0:k.dataViewColumns)!=null&&E.length)&&($.value=k.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,B=>{B&&m.value&&e.unref(g)!=="EDV_DATA_SET"&&F(B)}),o({showModal:x}),{visible:m,onOk:A,onCancel:v,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:g}}}),Ry="",Gp={class:"header"},Hp={class:"header"};function Wp(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("condition-list"),i=e.resolveComponent("a-tab-pane"),d=e.resolveComponent("truncation-list"),p=e.resolveComponent("a-tabs"),u=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(u,{title:t.handleTitle(),visible:t.visible,"destroy-on-close":"",width:"55%",bodyStyle:{height:"70vh",overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[["classificationList","rowHeaderList","dimensionList"].includes(t.type)?(e.openBlock(),e.createBlock(p,{key:0,activeKey:t.activeKey,"onUpdate:activeKey":o[3]||(o[3]=m=>t.activeKey=m)},{default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"过滤条件",style:{overflow:"auto"}},{default:e.withCtx(()=>[e.createElementVNode("div",Gp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])]),_:1}),e.createVNode(i,{key:"2",tab:"截断配置"},{default:e.withCtx(()=>[e.createVNode(d,{list:t.truncationList,onUpdate:t.onUpdatetruncation},null,8,["list","onUpdate"])]),_:1})]),_:1},8,["activeKey"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",Hp,[Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[4]||(o[4]=m=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[5]||(o[5]=m=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[6]||(o[6]=m=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0,type:t.type},null,8,["list","type"])],64))]),_:1},8,["title","visible","onOk","onCancel"])}const Yp=ae(zp,[["render",Wp],["__scopeId","data-v-38f115c6"]]),qp=e.defineComponent({name:"ConfigName",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{AInput:j.Input,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=p=>{const{showLabel:u="",label:m=""}=p;r.value=u||m||"",n.value=!0},c=()=>{n.value=!1},i=()=>{var u;const p=((u=e.unref(a)[t.type])==null?void 0:u.slice())||[];p[t.index].showLabel=r.value,l({[t.type]:p}),c()},d=()=>{c()};return o({showModal:s}),{visible:n,onOk:i,onCancel:d,fieldName:r}}}),Uy="",Kp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),Xp={class:"config-name"},Qp=Kp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function Jp(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置展示名称",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",Xp,[Qp,e.createVNode(s,{value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i)},null,8,["value"])])]),_:1},8,["visible","onOk","onCancel"])}const Zp=ae(qp,[["render",Jp],["__scopeId","data-v-de6a1755"]]),eu=e.defineComponent({name:"SortByCpnt",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.inject(ze),s=e.inject(ve),c=e.inject(xo),i=e.ref(),d=e.computed(()=>{var h;return(h=e.unref(r))==null?void 0:h.filter(y=>y.keyName!=="")});let p=[];const u=h=>{const{sortCpnts:y=[]}=h;p=ee.cloneDeep(y),i.value=ee.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},g=()=>{var x,S;const h=ut(((x=e.unref(a))==null?void 0:x.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(v=>v.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(v=>v.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const v=e.unref(r).find(D=>D.id===A.componentId);if(v){const{type:D,id:T,events:R=[]}=v,$=Vo(D);if(A.add)R.find(F=>{var _;return F.on===$&&F.target===((_=e.unref(s))==null?void 0:_.id)&&F.emit==="refreshData"})||c({id:T,events:[...R,{on:$,target:(S=e.unref(s))==null?void 0:S.id,emit:"refreshData"}].reverse()});else if(A.delete){const F=R.findIndex(_=>{var B;return _.on===$&&_.target===((B=e.unref(s))==null?void 0:B.id)&&_.emit==="refreshData"});F!==-1&&(R.splice(F,1),c({id:T,events:R}))}}}},C=()=>{var y;g();const h=((y=e.unref(a)[t.type])==null?void 0:y.slice())||[];h[t.index].sortCpnts=i.value,l({[t.type]:h}),m()},b=()=>{m()},f=(h,y)=>{var N;return(N=y==null?void 0:y.keyName)==null?void 0:N.toLowerCase().includes(h==null?void 0:h.toLowerCase())};return o({showModal:u}),{visible:n,onOk:C,onCancel:b,idFilterOption:f,fieldName:i,usedComponentList:d}}}),zy="",tu=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),ou={class:"sort-by-cpnt"},nu=tu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function au(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置关联组件排序",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",ou,[nu,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),mode:"multiple",style:{width:"100%"},options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const lu=ae(eu,[["render",au],["__scopeId","data-v-08af1ef8"]]),ru=e.defineComponent({name:"DimByCount",props:{index:{type:Number,default:0},type:{type:String,default:""}},components:{ASelect:j.Select,AModal:j.Modal},setup(t,{expose:o}){const n=e.ref(!1),a=e.inject(ge),l=e.inject(Ae),r=e.ref(),s=e.ref([]),c=(m,g)=>{const{dimByCount:C=""}=m;r.value=C,s.value=g.filter(b=>["DIM","BUILT_IN_DIM","FIELD"].includes(b.scope)).map(b=>({label:b.title||b.name,value:b.typeGuid})),n.value=!0},i=()=>{n.value=!1},d=()=>{var g;const m=((g=e.unref(a)[t.type])==null?void 0:g.slice())||[];m[t.index].dimByCount=r.value,l({[t.type]:m}),i()},p=()=>{i()},u=(m,g)=>{var C;return(C=g==null?void 0:g.label)==null?void 0:C.toLowerCase().includes(m==null?void 0:m.toLowerCase())};return o({showModal:c}),{visible:n,onOk:d,onCancel:p,idFilterOption:u,fieldName:r,dimensionList:s}}}),Gy="",iu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),su={class:"dim-by-count"},cu=iu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function du(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(c,{title:"配置关联维度",visible:t.visible,"destroy-on-close":"",width:"30%",bodyStyle:{overflow:"auto",display:"flex",flexDirection:"column",position:"relative",paddingTop:"10px"},closable:!1,onOk:t.onOk,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createElementVNode("div",su,[cu,e.createVNode(s,{class:"field-name",value:t.fieldName,"onUpdate:value":o[0]||(o[0]=i=>t.fieldName=i),style:{width:"100%"},options:t.dimensionList,"show-search":"","filter-option":t.idFilterOption},null,8,["value","options","filter-option"])])]),_:1},8,["visible","onOk","onCancel"])}const pu=ae(ru,[["render",du],["__scopeId","data-v-aa1c298e"]]),Yn=(t,o)=>{let n;for(let a=0;a<o.length;a++){const l=o[a];l.children&&(l.children.some(r=>r.key===t)?n=l.key:Yn(t,l.children)&&(n=Yn(t,l.children)))}return n},uu=e.defineComponent({name:"FormulaCalculation",props:{value:{type:String,default:""},item:{type:Object,default:()=>({})},mode:{type:String,default:"add"}},components:{ARow:j.Row,ACol:j.Col,ATextarea:j.Textarea,APopover:j.Popover,AInputSearch:j.InputSearch,ATree:j.Tree,ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton,DoubleRightOutlined:Es},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(ge),r=e.computed(()=>e.unref(l).leftAxisList||[]),s=e.computed(()=>e.unref(l).variableList||[]),c=e.computed(()=>e.unref(l).rightAxisList||[]),i=e.computed(()=>e.unref(l).indicators||[]),d=e.computed(()=>e.unref(l).queryColumnList||[]),p=e.computed(()=>e.unref(l).indexLibColumns||[]),u=e.computed(()=>{const T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d)).concat(e.unref(p));return t.mode==="edit"?(T==null?void 0:T.filter(R=>{var $;return R.id!==(($=t.item)==null?void 0:$.id)}))||[]:T||[]}),m=e.computed(()=>s.value.filter(T=>!T.randomKey)),g=e.computed({get:()=>t.value||"",set:T=>{o("update:value",T),o("change",T)}}),C=e.ref("1"),b=e.ref(""),f=T=>{const R=document.getElementById("calTextArea");let $=g.value;if(document.selection){const F=document.selection.createRange();F.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const F=R.selectionStart,_=R.selectionEnd;let B=F;$=$.substring(0,F)+T+$.substring(_,$.length),B+=T.length,R.selectionStart=R.selectionEnd=B}else $+=T;g.value=$},h=["+","-","*","/","(",")"],y=(T,R)=>{let $="";switch(R){case"name":{$="${"+T+"}";break}case"function":{$=T+"()";break}default:$=T}f($)},N=[],w=e.ref([]),x=e.ref(!0),S=e.ref([]),A=T=>{var R;for(const $ of T)(R=$==null?void 0:$.children)!=null&&R.length?A($.children):N.push({key:$.key,title:$.title})},v=async()=>{try{const T=await n.get(`${Se}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:$=[]}=T.data;R&&($!=null&&$.length)&&(A($),S.value=$)}catch(T){console.error(T)}},D=T=>{w.value=T,x.value=!1};return e.watch(b,T=>{const R=N.map($=>$.title.indexOf(T)>-1?Yn($.key,S.value):null).filter(($,F,_)=>$&&_.indexOf($)===F);w.value=R,b.value=T,x.value=!0}),e.onMounted(()=>{v()}),{fieldList:u,varList:m,myValue:g,calculMethods:h,funcDescsData:S,searchFuncValue:b,expandedKeys:w,autoExpandParent:x,activeKey:C,selectedElem:y,onExpand:D}}}),Hy="",Wy="",rr=t=>(e.pushScopeId("data-v-24fb6451"),t=t(),e.popScopeId(),t),fu={class:"formula-calculation"},mu={class:"field-area"},hu={style:{"text-align":"center",padding:"10px 0"}},bu=["onClick"],yu=["onClick"],gu={class:"cal_right_bottom"},Cu={class:"cal_fu"},wu=["onClick"],ku={class:"function-wrap"},xu={class:"wrap-search"},_u={class:"tree-box"},Su=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Tu=rr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Nu={key:0},Au={style:{color:"#f50"}},Eu={key:1},Ou=["onClick"],Bu={class:"cal_a"};function Vu(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),c=e.resolveComponent("a-radio-group"),i=e.resolveComponent("a-col"),d=e.resolveComponent("a-textarea"),p=e.resolveComponent("a-input-search"),u=e.resolveComponent("a-tooltip"),m=e.resolveComponent("a-tree"),g=e.resolveComponent("double-right-outlined"),C=e.resolveComponent("a-popover"),b=e.resolveComponent("a-row");return e.openBlock(),e.createElementBlock("div",fu,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",mu,[e.createElementVNode("div",hu,[e.createVNode(c,{value:t.activeKey,"onUpdate:value":o[0]||(o[0]=f=>t.activeKey=f),size:"small"},{default:e.withCtx(()=>[e.createVNode(s,{value:"1"},{default:e.withCtx(()=>[e.createTextVNode("数值字段("+e.toDisplayString(t.fieldList.length)+")",1)]),_:1}),e.createVNode(s,{value:"2"},{default:e.withCtx(()=>[e.createTextVNode("全局变量("+e.toDisplayString(t.varList.length)+")",1)]),_:1})]),_:1},8,["value"])]),t.activeKey==="1"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(t.fieldList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.label,"name")},e.toDisplayString(f.label),9,bu))),128)):e.createCommentVNode("",!0),t.activeKey==="2"?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.varList,(f,h)=>(e.openBlock(),e.createElementBlock("div",{class:"field",key:h,onClick:y=>t.selectedElem(f.variableName,"name")},e.toDisplayString(f.variableName),9,yu))),128)):e.createCommentVNode("",!0)])]),_:1}),e.createVNode(i,{span:18},{default:e.withCtx(()=>[e.createVNode(d,{class:"textarea",id:"calTextArea",value:t.myValue,"onUpdate:value":o[1]||(o[1]=f=>t.myValue=f),autoSize:{minRows:13,maxRows:13},placeholder:"示例: ${指标} * 3"},null,8,["value"]),e.createElementVNode("div",gu,[e.createElementVNode("ul",Cu,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.calculMethods,(f,h)=>(e.openBlock(),e.createElementBlock("li",{onClick:y=>t.selectedElem(f,"symbol"),key:h},e.toDisplayString(f),9,wu))),128))]),e.createVNode(C,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",ku,[e.createElementVNode("div",xu,[e.createVNode(p,{value:t.searchFuncValue,"onUpdate:value":o[2]||(o[2]=f=>t.searchFuncValue=f),style:{"margin-bottom":"8px"},placeholder:"请输入关键字搜索"},null,8,["value"])]),e.createElementVNode("div",_u,[e.createVNode(m,{"expanded-keys":t.expandedKeys,"auto-expand-parent":t.autoExpandParent,"tree-data":t.funcDescsData,onExpand:t.onExpand},{title:e.withCtx(({title:f,leaf:h,describe:y,exp:N})=>[e.createVNode(u,{placement:"top"},e.createSlots({default:e.withCtx(()=>[f.indexOf(t.searchFuncValue)>-1?(e.openBlock(),e.createElementBlock("span",Nu,[e.createTextVNode(e.toDisplayString(f.substr(0,f.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Au,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(f.substr(f.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Eu,e.toDisplayString(f),1)),h?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(f,"function")},"插入",8,Ou)):e.createCommentVNode("",!0)]),_:2},[h?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Su,e.createElementVNode("span",null,e.toDisplayString(y),1)]),e.createElementVNode("div",null,[Tu,e.createElementVNode("span",null,e.toDisplayString(N),1)])]),key:"0"}:void 0]),1024)]),_:1},8,["expanded-keys","auto-expand-parent","tree-data","onExpand"])])])]),default:e.withCtx(()=>[e.createElementVNode("span",Bu,[e.createTextVNode(" 更多函数 "),e.createVNode(g,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Lu=ae(uu,[["render",Vu],["__scopeId","data-v-24fb6451"]]),Fu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Lu,AForm:j.Form,AModal:j.Modal,AFormItem:j.FormItem,AInput:j.Input,ASelect:j.Select,ASelectOption:j.SelectOption,ATextarea:j.Textarea,AInputNumber:j.InputNumber,ATooltip:j.Tooltip,QuestionCircleOutlined:lc},props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},mode:{type:String,default:"add"}},setup(t,{expose:o}){const n=e.inject(ze),a=e.inject(ge),l=e.inject(Ae),r=e.computed(()=>e.unref(n)),s=e.computed(()=>e.unref(a)[t.type]||[]),c=e.computed(()=>{const F=["leftAxisList","rightAxisList","queryColumnList","indicators"];let _=[];for(const B of F)Object.prototype.hasOwnProperty.call(e.unref(a),B)&&(_=_.concat(e.unref(a)[B]));return _}),i={span:4},d={span:18},p={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},u={value:0,unit:"YEAR",around:"before"},m=e.ref({}),g=e.ref(),C=e.ref(!1),b=e.ref();e.watch(C,F=>{if(F)if(t.mode==="edit"){const{label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O}=t.item;if(b.value={label:_,calcType:B,formula:E,builtInValueSource:P,builtInFormula:I,builtInCalcWay:O},I==="DATE_OFFSET"){const V=O.split("-");(V==null?void 0:V.length)===3&&(m.value={value:V[0],unit:V[1],around:V[2]})}}else t.mode==="add"&&(b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u));else b.value=ee.cloneDeep(p),m.value=ee.cloneDeep(u);window.changeShowTable&&window.changeShowTable(!F)},{immediate:!0,deep:!0});let f=!1;const h=()=>{f=!0},y=F=>{const _=e.unref(r).find(B=>B.id===F);_&&(b.value.builtInCalcWay=_.keyName),f=!0},N=()=>{var P;const F=((P=e.unref(a)[t.type])==null?void 0:P.slice())||[],{label:_,builtInFormula:B}=e.unref(b)||{},E={};if(B==="DATE_OFFSET"&&(E.builtInCalcWay=`${e.unref(m).value}-${e.unref(m).unit}-${e.unref(m).around}`),t.mode==="add"){const I=ye();F.push({...e.unref(b),...E,id:I,show:!0,name:_})}else t.mode==="edit"&&(F[t.index]={...F[t.index],...e.unref(b),...E,name:_});l({[t.type]:F})},w=()=>{C.value=!0},x=()=>{C.value=!1},S=async(F,_)=>{if(_==="")return Promise.reject(new Error("请输入指标名"));{const B=e.unref(c).find(E=>E.label===_);return B?B.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},A=e.computed(()=>{let F={label:[{required:!0,validator:S,trigger:"change"}]};return b.value.calcType==="BUILT_IN"&&(F={...F,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),F}),v=()=>{g.value.validate().then(()=>{f&&N(),f=!1,x()})},D=()=>{g.value.clearValidate(),x()},T=()=>{f=!0,e.unref(b).builtInCalcWay=""},R=e.computed(()=>{let F="";const _=e.unref(b).builtInCalcWay,B=e.unref(b).builtInValueSource;if(!B||!_)return F;switch(e.unref(b).builtInFormula){case"BUILT_IN_RANK":{_==="ASC"?F="【"+B+"】由小到大在所有值中的排名":F="【"+B+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{F=`所有【】的
65
+ `,_==="ASC"?F=F+"【"+B+"】由小到大的组内的排名":F=F+"【"+B+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let E="";switch(_){case"SUM":{E="求和";break}case"AVG":{E="求平均值";break}case"MIN":{E="求最小值";break}case"MAX":{E="求最大值";break}}F="将所有【"+B+"】"+E;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let E="";switch(F=`所有【】的
66
+ `,_){case"SUM":{E="求和";break}case"AVG":{E="求平均值";break}case"MIN":{E="求最小值";break}case"MAX":{E="求最大值";break}}F=F+"将所有【"+B+"】"+E;break}}return F}),$=(F,_)=>_.keyName.toLowerCase().indexOf(F.toLowerCase())>=0;return o({showModal:w}),{visible:C,onCancel:D,labelCol:i,wrapperCol:d,formState:b,builtInValueSourceList:s,onOK:v,onChange:h,formRules:A,accessLogic:R,formRef:g,onChangeBuiltInFormula:T,componentList:r,onChangeComponent:y,filterOption:$,offsetConfig:m}}}),Yy="",qy="",$u={key:0,class:"accesstip"},Iu={style:{display:"flex","align-items":"center"}};function vu(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-form-item"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),p=e.resolveComponent("formula-calculation"),u=e.resolveComponent("a-textarea"),m=e.resolveComponent("a-input-number"),g=e.resolveComponent("question-circle-outlined"),C=e.resolveComponent("a-tooltip"),b=e.resolveComponent("a-form"),f=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(f,{title:`${t.mode==="add"?"新增":"编辑"}计算指标`,visible:t.visible,width:"50%",bodyStyle:{height:"55vh",overflow:"auto",display:"flex",flexDirection:"column"},closable:!1,onOk:t.onOK,onCancel:t.onCancel},{default:e.withCtx(()=>[e.createVNode(b,{model:t.formState,rules:t.formRules,ref:"formRef"},{default:e.withCtx(()=>[e.createVNode(c,{label:"指标名","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"label"},{default:e.withCtx(()=>[e.createVNode(s,{value:t.formState.label,"onUpdate:value":o[0]||(o[0]=h=>t.formState.label=h),onChange:t.onChange},null,8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.withDirectives(e.createVNode(c,{label:"计算方式","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.calcType,"onUpdate:value":o[1]||(o[1]=h=>t.formState.calcType=h),onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"FORMULA"},{default:e.withCtx(()=>[e.createTextVNode("公式")]),_:1}),e.createVNode(i,{value:"BUILT_IN"},{default:e.withCtx(()=>[e.createTextVNode("内置公式")]),_:1}),e.createVNode(i,{value:"COMPONENT"},{default:e.withCtx(()=>[e.createTextVNode("固定值")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),[[e.vShow,t.type!=="indexLibColumns"]]),t.formState.calcType==="FORMULA"?(e.openBlock(),e.createBlock(p,{key:0,value:t.formState.formula,"onUpdate:value":o[2]||(o[2]=h=>t.formState.formula=h),item:t.item,mode:t.mode,onChange:t.onChange},null,8,["value","item","mode","onChange"])):e.createCommentVNode("",!0),t.formState.calcType==="BUILT_IN"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(c,{label:"内置公式","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInFormula"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInFormula,"onUpdate:value":o[3]||(o[3]=h=>t.formState.builtInFormula=h),onChange:t.onChangeBuiltInFormula},{default:e.withCtx(()=>[e.createVNode(i,{value:"BUILT_IN_ALL_VALUE"},{default:e.withCtx(()=>[e.createTextVNode("所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_ALL_VALUE_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内所有值")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK"},{default:e.withCtx(()=>[e.createTextVNode("排名")]),_:1}),e.createVNode(i,{value:"BUILT_IN_RANK_IN_GROUPO"},{default:e.withCtx(()=>[e.createTextVNode("组内排名")]),_:1}),e.createVNode(i,{value:"FIRST_ROW_RATE"},{default:e.withCtx(()=>[e.createTextVNode("首行占比")]),_:1}),e.createVNode(i,{value:"DATE_OFFSET"},{default:e.withCtx(()=>[e.createTextVNode("日期偏移")]),_:1})]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),e.createVNode(c,{label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInValueSource,"onUpdate:value":o[4]||(o[4]=h=>t.formState.builtInValueSource=h),onChange:t.onChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.builtInValueSourceList,(h,y)=>(e.openBlock(),e.createBlock(i,{key:y,value:h.label,disabled:t.mode==="edit"&&t.item.label===h.name},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(h.label),1)]),_:2},1032,["value","disabled"]))),128))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"]),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:0,label:"取数原则","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.formState.builtInCalcWay,"onUpdate:value":o[5]||(o[5]=h=>t.formState.builtInCalcWay=h),onChange:t.onChange},{default:e.withCtx(()=>[["BUILT_IN_ALL_VALUE","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula||"")?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{value:"SUM"},{default:e.withCtx(()=>[e.createTextVNode("求和")]),_:1}),e.createVNode(i,{value:"AVG"},{default:e.withCtx(()=>[e.createTextVNode("求平均")]),_:1}),e.createVNode(i,{value:"MAX"},{default:e.withCtx(()=>[e.createTextVNode("求最大值")]),_:1}),e.createVNode(i,{value:"MIN"},{default:e.withCtx(()=>[e.createTextVNode("求最小值")]),_:1})],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(i,{value:"ASC"},{default:e.withCtx(()=>[e.createTextVNode("升序")]),_:1}),e.createVNode(i,{value:"DESC"},{default:e.withCtx(()=>[e.createTextVNode("降序")]),_:1})],64))]),_:1},8,["value","onChange"])]),_:1},8,["label-col","wrapper-col"])),["FIRST_ROW_RATE","DATE_OFFSET"].includes(t.formState.builtInFormula)?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:1,label:"取数逻辑","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[["BUILT_IN_RANK_IN_GROUPO","BUILT_IN_ALL_VALUE_IN_GROUPO"].includes(t.formState.builtInFormula)&&t.formState.builtInValueSource?(e.openBlock(),e.createElementBlock("div",$u," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+e.toDisplayString(t.formState.builtInValueSource),1)):e.createCommentVNode("",!0),e.createVNode(u,{value:t.accessLogic,rows:6,disabled:""},null,8,["value"])]),_:1},8,["label-col","wrapper-col"]))],64)):e.createCommentVNode("",!0),t.formState.calcType==="COMPONENT"?(e.openBlock(),e.createBlock(c,{key:2,label:"数值来自","label-col":t.labelCol,"wrapper-col":t.wrapperCol,name:"builtInValueSource"},{default:e.withCtx(()=>[e.createVNode(d,{"show-search":"",value:t.formState.builtInValueSource,"onUpdate:value":o[6]||(o[6]=h=>t.formState.builtInValueSource=h),"filter-option":t.filterOption,options:t.componentList,fieldNames:{value:"id",label:"keyName"},onChange:t.onChangeComponent},null,8,["value","filter-option","options","onChange"])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0),t.formState.builtInFormula==="DATE_OFFSET"?(e.openBlock(),e.createBlock(c,{key:3,label:"偏移设置","label-col":t.labelCol,"wrapper-col":t.wrapperCol},{default:e.withCtx(()=>[e.createElementVNode("div",Iu,[e.createVNode(m,{value:t.offsetConfig.value,"onUpdate:value":o[7]||(o[7]=h=>t.offsetConfig.value=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},null,8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.unit,"onUpdate:value":o[8]||(o[8]=h=>t.offsetConfig.unit=h),style:{width:"120px","margin-right":"10px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"YEAR"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"MONTH"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"DAY"},{default:e.withCtx(()=>[e.createTextVNode("天")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(d,{value:t.offsetConfig.around,"onUpdate:value":o[9]||(o[9]=h=>t.offsetConfig.around=h),style:{width:"120px"},onChange:t.onChange},{default:e.withCtx(()=>[e.createVNode(i,{value:"before"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"after"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value","onChange"]),e.createVNode(C,{title:"内置公式【日期偏移】,依赖于【全局过滤】中的时间条件,若没有配置则不会进行偏移计算",overlayClassName:"question-tooltip",color:"#fff"},{default:e.withCtx(()=>[e.createVNode(g,{class:"icon",style:{color:"#40a9ff","font-size":"18px",cursor:"pointer","margin-left":"10px"}})]),_:1})])]),_:1},8,["label-col","wrapper-col"])):e.createCommentVNode("",!0)]),_:1},8,["model","rules"])]),_:1},8,["title","visible","onOk","onCancel"])}const Du=ae(Fu,[["render",vu],["__scopeId","data-v-88aef761"]]),Mu=e.defineComponent({name:"DataConfigCard",directives:{focus:ar},components:{CalculationModal:Du,FilterModal:Yp,CustomGroupModal:np,SettingOutlined:fc,DeleteOutlined:qa,CopyOutlined:ks,InfoCircleOutlined:vs,CustomSortModal:Ud,PlusOutlined:tc,ACard:j.Card,ACheckbox:j.Checkbox,AInput:j.Input,ADropdown:j.Dropdown,AMenu:j.Menu,ASubMenu:j.SubMenu,AMenuItem:j.MenuItem,AMenuDivider:j.MenuDivider,ASelect:j.Select,APopover:j.Popover,Draggable:Et,ConfigName:Zp,SortByCpnt:lu,DimByCount:pu},props:{title:{type:String,default:""},type:{type:String,default:""}},setup(t){const o=[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"}],n=e.inject(ge),a=e.inject(Ae),l=e.inject(ze),r=["leftAxisList","rightAxisList","indicators"],s=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],c=["CURRENT","LAST_CYCLE","LAST_YEAR","PERIOD_ON_PERIOD","YEAR_ON_YEAR","DW"],i=e.inject(Kt),d=e.ref(),p=(G={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:G.parentId});let Y=!1;if(G.scope==="FIELD"&&(Y=!0,G.genericType==="0"&&r.includes(H)&&(Y=!1)),["IDX","BUILT_IN_IDX"].includes(G.scope)?r.includes(H)&&(Y=!0):["DIM","BUILT_IN_DIM"].includes(G.scope)&&s.includes(H)&&(Y=!0),H==="dimensionList"){const se=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(se==null?void 0:se.length)===1&&(Y=!1)}return Y},u=e.computed(()=>e.unref(ne).type==="ecanDataSelect"&&t.type==="indicators"),m=(G="{}")=>{var H,Y;try{const Q=JSON.parse(G);if(!p(Q))return;const se=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate","scatter"])||e.unref(u))&&se.forEach(de=>{de.show=!1}),C(se,Q),Q.randomKey=ye(),se.push(Q);const{type:ce}=t,Z={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const de=((Y=e.unref(n))==null?void 0:Y.variableList)||[];let me=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(ce)&&(me="[]"),me){const pe=JSON.parse(me);if(pe!=null&&pe.length)for(const ke of pe)de.unshift({...ke,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?ke.defaultValue:null,dateTypeValue:null,format:ke.valueFormat&&ke.valueFormat.toUpperCase()||null,variableName:ke.name,variableType:ke.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:ye(),disabled:e.unref(i)==="EDV_DATA_SET"})}Z.variableList=de,Z.variableConditions=ro(de,l)}a({[t.type]:se,...Z}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},g=(G="{}")=>{var H;try{const{cardItem:Y,type:Q,index:se}=JSON.parse(G);if(!p(Y)||Q===t.type)return;const ce=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];C(ce,Y),ce.push(Y);const Z=e.unref(n)[Q].slice()||[];Z.splice(se,1),a({[t.type]:ce,[Q]:Z})}catch(Y){console.error(Y)}};function C(G,H){const Y=[];if(G.forEach(Q=>{Q.label.includes(H.label)&&Y.push(Q.label.split(H.label)[1])}),Y.length>=1){for(let Q=1;Q<=Y.length;Q++)if(!Y.includes(Q+"")){H.label=H.label+Q;break}}}const b=(G,H)=>{var se,ce;const Y=(se=G.target)==null?void 0:se.checked,Q=((ce=e.unref(n)[t.type])==null?void 0:ce.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!ue(e.unref(ne).type,["list","circulate"])||e.unref(u))&&Q.forEach(Z=>{Z.show=!1}),Q[H].show=Y,a({[t.type]:Q})},f=G=>{var Y;const H=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];H.splice(G,1),a({[t.type]:H})},h=()=>{sessionStorage.setItem("indicator-card-item","")},y=G=>{const H=sessionStorage.getItem("indicator-list-item"),Y=sessionStorage.getItem("indicator-card-item");H?m(H):Y&&g(Y)},N=G=>{var de,me;const{newIndex:H,oldIndex:Y,from:Q,to:se}=G,ce=Q.id,Z=se.id;if(H>=0&&Y>=0){if(ce===Z){const pe=((de=e.unref(n)[t.type])==null?void 0:de.slice())||[],ke=pe.splice(Y,1)[0];ke&&(pe.splice(H,0,ke),a({[t.type]:pe}))}else if(t.type===Z){const pe=((me=e.unref(n)[Z])==null?void 0:me.slice())||[];if(pe!=null&&pe.length){const ke=pe.splice(pe.length-1,1)[0];ke&&(pe.splice(H,0,ke),a({[t.type]:pe}))}}}},w=(G,H)=>{const Y=G.oldIndex,Q=H[Y];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:Y}))},x=e.computed(()=>e.unref(n)[t.type]||[]),S=e.ref([]);let A=!1;e.watch(()=>e.unref(x).length,G=>{S.value=new Array(G).fill(!1)},{flush:"post",immediate:!0});const v=G=>{var Y,Q,se;const H=((Y=e.unref(n)[t.type])==null?void 0:Y.slice())||[];if((Q=H[G])!=null&&Q.randomKey){const ce=((se=e.unref(n))==null?void 0:se.variableList)||[];for(let Z=ce.length-1;Z>=0;Z--)ce[Z].randomKey===H[G].randomKey&&ce.splice(Z,1);a({variableConditions:ro(ce,l),variableList:ce})}H.splice(G,1),a({[t.type]:H})},D=G=>{S.value[G]=!0},T=()=>{A=!0},R=(G,H,Y)=>{var Q,se,ce,Z;if(S.value[H]=!1,A){const de=(Q=G.target)==null?void 0:Q.value,me=((se=e.unref(n)[t.type])==null?void 0:se.slice())||[],pe=me.filter(xe=>{var Ne;return(Ne=xe==null?void 0:xe.formula)==null?void 0:Ne.includes(Y)}).map(xe=>xe.id),ke=me.filter(xe=>{var Ne;return(Ne=xe==null?void 0:xe.builtInValueSource)==null?void 0:Ne.includes(Y)}).map(xe=>xe.id);if(pe!=null&&pe.length)for(const xe of pe){const Ne=me.find(At=>At.id===xe);Ne.formula=Ne.formula.replaceAll(Y,de)}if(ke!=null&&ke.length)for(const xe of ke){const Ne=me.find(At=>At.id===xe);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(Y,de)}if(me[H].label=de,(ce=me[H])!=null&&ce.randomKey){const xe=((Z=e.unref(n))==null?void 0:Z.variableList)||[],Ne=xe.filter(At=>At.randomKey===me[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(At=>{At.label=de}),a({variableConditions:ro(xe,l),variableList:xe})}a({[t.type]:me})}A=!1},$="DEFAULT",F=e.computed(()=>{const G=[],{scope:H}=e.unref(d)||{},Y=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const Z=ee.cloneDeep(e.unref(d));delete Z.show,delete Z.truncations,delete Z.conditions,Z.hrpIndexComplexid+="_code",Z.id+="_code",Z.typeGuid+="_code",Z.label=Z.name+"_编码",Z.name=Z.typeGuid,Z.defaultCode=Z.typeGuid,G.push(Z)}const{leftAxisList:Q=[],rightAxisList:se=[],indicators:ce=[]}=e.unref(n)||{};return[...Y,...G,...Q,...se,...ce]}),_=(G={},H,Y="ASC")=>{var me;const{label:Q,name:se,id:ce,defaultCode:Z}=G,de=((me=e.unref(n)[t.type])==null?void 0:me.slice())||[];ce===$?delete de[H].sort:de[H].sort={label:Q,columnName:se,type:"NORMAL",order:Y,defaultCode:Z},a({[t.type]:de})},B=(G={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:se}=G,{label:ce,order:Z}=se||{};return ce&&Z===H?`${Q}(${ce})`:Q},E=e.ref(),P=e.ref(),I=e.ref(),O=e.ref(),V=(G={},H)=>{var Y;E.value=G,P.value=H,(Y=e.unref(I))==null||Y.showModal(G)},k=G=>"排序"+(G!=null&&G.sort?"(已配置)":""),L=(G={},H)=>{var Y;E.value=G,P.value=H,(Y=e.unref(O))==null||Y.showModal()},M=G=>"自定义分组"+((G==null?void 0:G.customGroup)!=null?"(已配置)":""),U=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],z=[{name:"是",value:1},{name:"否",value:0}],q=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].aggregate=G,a({[t.type]:Y})},X=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].distinct=G,a({[t.type]:Y})},J=(G,H)=>{var Q;const Y=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];Y[H].dateFormat=G,a({[t.type]:Y})},oe=(G="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[G]})`,le=G=>`是否去重(${{0:"否",1:"是"}[G]||"否"})`,Ce=(G={})=>{var H;return"过滤"+(G!=null&&G.conditions&&((H=G==null?void 0:G.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ie=e.ref(),we=e.ref(),at=e.ref(),Gt=e.ref(),Ht=(G={},H)=>{E.value=G,P.value=H,e.unref(ie).showModal()},go=(G={},H)=>{E.value=G,P.value=H,e.unref(we).showModal(G)},Wt=(G={},H)=>{E.value=G,P.value=H,e.unref(at).showModal(G)},Yt=(G={},H)=>{E.value=G,P.value=H,e.unref(Gt).showModal(G,e.unref(W))},Ie=e.ref(),Qe=e.ref("add"),Tt=(G,H,Y)=>{var Q;Qe.value=G,G==="edit"&&(E.value=H,P.value=Y),(Q=e.unref(Ie))==null||Q.showModal()},lt=e.inject(Be),Je=e.unref(e.inject(Ve)),Ue=e.ref([]),Nt=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var G;ue(e.unref(ne).type,["scatter","valueline"])&&((G=e.unref(n))!=null&&G.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{mt()});const rt=e.ref(""),mt=async()=>{const{source:G}=e.unref(n);if(G!=="EDV_DATA_SET"||!ue(e.unref(ne).type,"select"))return;const{classificationList:H=[]}=e.unref(n),Y=H.find(Z=>Z.show);if(Y!=null&&Y.parentId){if(e.unref(rt)===Y.parentId)return;rt.value=Y.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await lt.get(`${Se}/dataset/`+Y.parentId,{headers:{Authentication:Je,operateContext:"ygt"}}),{success:se,data:ce=[]}=Q.data;if(se){const Z=ce.column.map(de=>({label:de.columnName,value:de.columnName}));e.unref(n).selectFieldOptions=Z,Ue.value=Z}},Yo=async()=>{const{source:G}=e.unref(n);if(!ue(e.unref(ne).type,["scatter","valueline"]))try{if(G==="EDV_DATA_SET")await mt();else{const H=await lt.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:Je,operateContext:"ygt"}}),{success:Y,data:Q=[]}=H.data;Y&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},qo=(G,H)=>{const Y=e.unref(n)[t.type]||{};Y[H]=G,a({[t.type]:Y})},qt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],Co=e.ref({}),W=e.ref([]),K=async(G,H)=>{var Q;const{name:Y}=H;if(!qt.includes(t.type)&&G&&Ye(H,"indexCode")){const se=await lt.post(`${Se}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:H.id,indexCode:H.indexCode,pageId:(Q=window==null?void 0:window.config)==null?void 0:Q.pageId},{headers:{Authentication:Je,operateContext:"ygt"}}),{success:ce,data:Z}=se.data;ce&&Z&&(W.value=(Z==null?void 0:Z.dataViewColumns)||[],Co.value[Y]={name:Z.name,code:Z.indexCode})}},te=G=>{d.value=G},re=G=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",G),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},ne=e.inject(ve),fe=e.computed(()=>t.type==="indicators"&&e.unref(ne).type==="ecanTable"),Te=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),Ze=e.computed(()=>{var H,Y;const G=ue((H=e.unref(ne))==null?void 0:H.type,["table"])&&((Y=e.unref(n))==null?void 0:Y.isIndexSet);return!qt.includes(t.type)&&!e.unref(u)&&(!G||t.type!=="indicators")});return e.onMounted(()=>{t.type==="formFields"&&(e.unref(ne).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Yo())}),{onCheckboxChange:b,onDropEnd:f,onDragItemEnd:h,onDragItemAdd:y,onDragItemSort:N,onDragItemStart:w,cardItemList:x,onDelete:v,onEdit:D,onCommitLabelChange:R,sortList:F,onSort:_,handleSortTitle:B,showCustomSortModal:V,customSortModalRef:I,currentItem:E,currentIndex:P,handleCustomSortTitle:k,handleCustomGroupTitle:M,customGroupModalRef:O,showCustomGroupModal:L,editLabelList:S,onLabelChange:T,aggregateList:U,distinctList:z,onAggregateChange:q,onDistinctChange:X,onDateFormatChange:J,handleAggregateTitle:oe,handleDistinctTitle:le,onShowCalculationModal:Tt,handleFilterTitle:Ce,filterModalRef:ie,configNameRef:we,sortByCpntRef:at,dimByCountRef:Gt,showFilterModal:Ht,calculationModalRef:Ie,calculationModalMode:Qe,formatList:o,fieldOptions:Ue,fieldData:Nt,onFieldChange:qo,onVisibleChange:K,onClickSetting:te,copyDataViewName:re,dataViewMap:Co,isShowConfigName:fe,showConfigNameModal:go,dimensionType:qt,isShowSortByCpnt:Te,showSortByCpntModal:Wt,dataSelectIndicators:u,showDimByCountModal:Yt,selectedComponent:ne,lowerCaseIncludes:ue,isShowCalcBtn:Ze,indexSetList:c}}}),Ky="",Xy="",wt=t=>(e.pushScopeId("data-v-7ccd3d66"),t=t(),e.popScopeId(),t),Pu={class:"title"},ju={class:"title-text"},Ru={class:"field-wrap"},Uu={class:"field-item"},zu=wt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Gu={class:"field-item"},Hu=wt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Wu={key:0,class:"field-item"},Yu=wt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),qu={class:"title"},Ku={class:"title-text"},Xu=wt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),Qu=wt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),Ju={class:"card-item-wrap"},Zu={class:"card-item-inner"},ef=["onClick"],tf=["onClick"],of=["onClick"],nf={style:{display:"flex","align-items":"center"}},af=["title"],lf=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),rf={style:{display:"flex","align-items":"center"}},sf=["title"],cf=wt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function df(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-checkbox"),i=e.resolveComponent("a-card"),d=e.resolveComponent("info-circle-outlined"),p=e.resolveComponent("a-popover"),u=e.resolveComponent("plus-outlined"),m=e.resolveComponent("a-input"),g=e.resolveComponent("setting-outlined"),C=e.resolveComponent("a-menu-item"),b=e.resolveComponent("a-menu-divider"),f=e.resolveComponent("a-sub-menu"),h=e.resolveComponent("copy-outlined"),y=e.resolveComponent("a-menu"),N=e.resolveComponent("a-dropdown"),w=e.resolveComponent("delete-outlined"),x=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),v=e.resolveComponent("filter-modal"),D=e.resolveComponent("config-name"),T=e.resolveComponent("sort-by-cpnt"),R=e.resolveComponent("dim-by-count"),$=e.resolveComponent("calculation-modal"),F=e.resolveDirective("focus");return t.type==="formFields"?(e.openBlock(),e.createBlock(i,{key:0,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",Pu,[e.createElementVNode("div",ju,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Ru,[e.createElementVNode("div",Uu,[zu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.labelField,options:t.fieldOptions,onChange:o[0]||(o[0]=_=>t.onFieldChange(_,"labelField"))},null,8,["value","options"])]),e.createElementVNode("div",Gu,[Hu,e.createVNode(s,{style:{width:"70%"},class:"item-select",value:t.fieldData.valueField,options:t.fieldOptions,mode:t.lowerCaseIncludes(t.selectedComponent.type,"valueline")?"multiple":void 0,onChange:o[1]||(o[1]=_=>t.onFieldChange(_,"valueField"))},null,8,["value","options","mode"])]),t.selectedComponent.type==="ecanSelect"?(e.openBlock(),e.createElementBlock("div",Wu,[Yu,e.createVNode(c,{checked:t.fieldData.hasAllOption,"onUpdate:checked":o[2]||(o[2]=_=>t.fieldData.hasAllOption=_)},{default:e.withCtx(()=>[e.createTextVNode(" 显示【全部】选项 ")]),_:1},8,["checked"])])):e.createCommentVNode("",!0)])]),_:1},8,["head-style"])):(e.openBlock(),e.createBlock(i,{key:1,class:"data-config-card","head-style":{backgroundColor:"rgba(161,212,230,0.3)",height:"58px",padding:"0 10px"}},{title:e.withCtx(()=>[e.createElementVNode("div",qu,[e.createElementVNode("div",Ku,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[Xu]),default:e.withCtx(()=>[e.createVNode(d,{style:{color:"#919191",cursor:"pointer"}})]),_:1})):e.createCommentVNode("",!0)]),t.isShowCalcBtn?(e.openBlock(),e.createElementBlock("div",{key:0,class:"add-calculation",onClick:o[3]||(o[3]=e.withModifiers(_=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),Qu])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(x,{modelValue:t.cardItemList,"onUpdate:modelValue":o[4]||(o[4]=_=>t.cardItemList=_),class:"chart-column",id:t.type,disabled:t.type==="indexLibColumns",group:"cardItem","item-key":"index",onAdd:t.onDragItemAdd,onSort:t.onDragItemSort,onEnd:t.onDragItemEnd,onStart:o[5]||(o[5]=_=>t.onDragItemStart(_,t.cardItemList))},{item:e.withCtx(({element:_,index:B})=>[e.createElementVNode("div",Ju,[e.createVNode(c,{class:"card-item",checked:_.show,onChange:E=>t.onCheckboxChange(E,B)},{default:e.withCtx(()=>[e.createElementVNode("div",Zu,[!t.editLabelList[B]&&_.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(E=>t.onEdit(B),["prevent","stop"])},e.toDisplayString(_.label),9,ef)):e.createCommentVNode("",!0),!t.editLabelList[B]&&!_.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(E=>t.onEdit(B),["prevent","stop"])}," 请点击填入名字 ",8,tf)):e.createCommentVNode("",!0),t.editLabelList[B]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":_.label,size:"small",onBlur:E=>t.onCommitLabelChange(E,B,_.label),onPressEnter:E=>t.onCommitLabelChange(E,B,_.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[F]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(_.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(E=>t.onShowCalculationModal("edit",_,B),["prevent","stop"])}," fx ",8,of)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:E=>t.onVisibleChange(E,_)},{overlay:e.withCtx(()=>[e.createVNode(y,null,{default:e.withCtx(()=>[t.dimensionType.includes(t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(C,{onClick:E=>t.showCustomSortModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(C,{onClick:E=>t.showCustomGroupModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),_.genericType==="DATE"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{title:"日期格式化"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formatList,E=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onDateFormatChange(E.value,B)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(_.dateFormat===E.value||!_.dateFormat&&E.value==="YYYY-MM"?"color: #1890FF;":"")},e.toDisplayString(E.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(C,{onClick:E=>t.showFilterModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(_)),1)]),_:2},1032,["onClick"]),e.createVNode(b),["classificationList","seriesList"].includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(f,{title:t.handleAggregateTitle(_.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,E=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onAggregateChange(E.value,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)),t.isShowConfigName?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(C,{onClick:E=>t.showConfigNameModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 修改展示名称 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.isShowSortByCpnt?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[e.createVNode(C,{onClick:E=>t.showSortByCpntModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),_.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(C,{onClick:E=>t.showDimByCountModal(_,B)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(_.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,E=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:E.value,onClick:P=>t.onDistinctChange(E.value,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.name),1)]),_:2},1032,["onClick"]))),128))]),_:2},1032,["title"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),t.dimensionType.includes(t.type)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:5},[t.dataViewMap[_.name]?(e.openBlock(),e.createBlock(C,{key:0,onClick:E=>t.copyDataViewName(t.dataViewMap[_.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[_.name].name},[lf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[_.name].name),1)],8,af),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[_.name]?(e.openBlock(),e.createBlock(C,{key:1,onClick:E=>t.copyDataViewName(t.dataViewMap[_.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",rf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[_.name].code},[cf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[_.name].code),1)],8,sf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0)],64))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(g,{class:"setting-icon",onClick:E=>t.onClickSetting(_)},null,8,["onClick"])]),_:2},1032,["onVisibleChange"])):e.createCommentVNode("",!0),t.type!=="indexLibColumns"||_.calcType==="FORMULA"?(e.openBlock(),e.createBlock(w,{key:5,class:"delete-icon",onClick:e.withModifiers(E=>t.onDelete(B),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","onAdd","onSort","onEnd"])],2),e.createVNode(S,{item:t.currentItem,index:t.currentIndex,type:t.type,sortList:t.sortList,ref:"customSortModalRef"},null,8,["item","index","type","sortList"]),e.createVNode(A,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"customGroupModalRef"},null,8,["item","index","type"]),e.createVNode(v,{item:t.currentItem,index:t.currentIndex,type:t.type,ref:"filterModalRef"},null,8,["item","index","type"]),e.createVNode(D,{index:t.currentIndex,type:t.type,ref:"configNameRef"},null,8,["index","type"]),e.createVNode(T,{index:t.currentIndex,type:t.type,ref:"sortByCpntRef"},null,8,["index","type"]),e.createVNode(R,{index:t.currentIndex,type:t.type,ref:"dimByCountRef"},null,8,["index","type"]),e.createVNode($,{type:t.type,item:t.currentItem,index:t.currentIndex,mode:t.calculationModalMode,ref:"calculationModalRef"},null,8,["type","item","index","mode"])]),_:1},8,["head-style"]))}const pf=ae(Mu,[["render",df],["__scopeId","data-v-7ccd3d66"]]),uf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},ff=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:pf},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(ve),n=e.computed(()=>{var i;return(i=e.unref(o))==null?void 0:i.type}),a=e.computed(()=>{var i;return!!((i=e.unref(o))!=null&&i.isGroupTable)}),l=e.ref({}),r=e.reactive([]),s=e.inject(Ae),c=()=>{var b,f;const i=ee.cloneDeep((b=e.unref(o))==null?void 0:b.graphicConfig),d={card:["rowHeaderList","indicators"],pie:["classificationList","indicators"],circulate:["classificationList","indicators"],bar:["classificationList","seriesList","leftAxisList"],line:["classificationList","seriesList","leftAxisList"],comboGraph:["classificationList","seriesList","leftAxisList","rightAxisList"],radar:["classificationList","seriesList","leftAxisList"],table:a.value?["rowHeaderList","indicators"]:[i.isIndexSet?"indexLibColumns":"queryColumnList","indicators"],text:["dimensionList","indicators"],proportion:["indicators"],select:["classificationList","formFields"],dataSelect:["classificationList","indicators","formFields"],checkbox:["classificationList","formFields"],radio:["classificationList","formFields"],list:["classificationList","indicators"],counter:["indicators"],scatter:["classificationList","indicators","formFields"],pivotTable:["queryColumnList","indicators"],valueLine:["classificationList","indicators","formFields"]},p="ecan";let u=e.unref(n);if(u.startsWith(p)){const h=p.length;u=((f=u.slice(h,h+1))==null?void 0:f.toLowerCase())+u.slice(h+1)}const m=d[u],g=uf,C=(m==null?void 0:m.length)||0;for(let h=0;h<C;h++){const y=m[h];if(!y)break;r.push({...g[y],type:y})}for(const h of t)Ye(i,h)&&!m.find(y=>y===h)?i[h]=[]:delete i[h];s(i)};return c(),e.watch(()=>n.value,()=>{r.length=0,c()}),{cardsMap:l,cards:r}}}),Qy="",Jy="",mf={class:"data-group"};function hf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",mf,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.cards,c=>(e.openBlock(),e.createBlock(s,e.mergeProps({key:c.type,class:"data-config-card",type:c.type},c),null,16,["type"]))),128))])}const bf=ae(ff,[["render",hf],["__scopeId","data-v-cb593972"]]),yf=[{title:"基本属性",props:["keyName","left","top","width","height","colors","textShadow","backgroundColor","backgroundImage","backgroundSize","theme","pageFontFamily","contextRequestUrl","graphicType"]},{title:"定时跳转",props:["jumpType","jumpTime","jumpPage","jumpLink"]},{title:"弹窗",onlyType:"modal",props:["position","fullModal","isShowCloseBtn","centered","destroyOnClose","closeBtnColor","borderRadius","borderWidth","borderColor","boxShadow"]},{title:"图片",props:["borderRadius","isAnimation","animationSource","isHoverStyle","imgUrl"]},{title:"链接",props:["linkPage","href","target","transParams"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"单选框",onlyType:["radio"],props:["value","optionType","tabFontSize","tabHorizontalPadding","tabBarGutter","tabFlexDirection","tabTextAlign","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","stackColumns","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标签边距",props:["gridTopPx","gridBottomPx","gridLeftPx","gridRightPx"]},{title:"标题",onlyType:["bar","combo-graph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisMaxValue","showYAxisLineArrow","yAxisLineInverse"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"提示框",enableProps:"tooltipShow",props:["tooltipTrigger","tooltipFormatter","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","border","comboGraph","text","radar"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph"],props:["startValue","endValue"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"时间",onlyType:["date","time","range"],props:["picker","optionFontSize","format","show","limitInterval","startTime","endTime","value","showTime","useCurrentTime","isAllowSpanYear","interval","intervalUnit","updateInterval","operate","limitStartTime","limitEndTime"]},{title:"选择器",onlyType:"select",props:["value","mode","multiple","treeCheckable","maxTagCount","autoClearSearchValue","isAllowClear","placeholder","valueType","optionFontSize"]},{title:"表格",onlyType:"table",props:["size","allOverflow","hoverRow","hoverColor","boderList","columnDropEnable","showTotalBool","totalName","expandAll"]},{title:"列表",onlyType:"list",props:["columns","sliceCount","itemWidth","itemHeight","itemColSpan","itemPadding","itemRowSpan","useTitle","isAutoScroll","scrollSpeed"]},{title:"小计",onlyType:"table",props:["subTotalName","subTotalColumn"]},{title:"序号列",onlyType:["table","list"],enableProps:"isUseSeq",props:["seqWidth","seqName","seqIcon","seqFontSize","seqIndexFormatter"]},{title:"序号图标",onlyType:["list"],enableProps:"seqIcon",props:["seqIconConfig","seqIconWidth","seqIconHeight","seqIconOffsetX","seqIconOffsetY"]},{title:"操作列",onlyType:"table",enableProps:"isUseAction",props:["actionList","actionColumnWidth"]},{title:"分页",enableProps:"paginationShow",props:["paginationPageSize","simple","pageSizeShow","showQuickJumper","paginationPosition","isPageBottom","isShowTotal","paginationColor","paginationBgColor","activePaginationColor","activePaginationBgColor"]},{title:"循环列表",onlyType:"circulate",props:["colNum","unitInterval","isAutoScroll","scrollSpeed","scrollDirection","keyFieldMap"]},{title:"计数器",onlyType:"counter",props:["digits","unitInterval","unitWidth","unitHeight","counterBackgroundImage"]},{title:"边框",onlyType:["border","circulate"],props:["mode","borderWidth","borderRadius","borderColor","useBorderModify","borderStyle","titleMode"]},{title:"标签页",onlyType:"tabs",props:["tabType","tabWidth","activeKey","tabFontSize","tabFontWeight","tabHorizontalPadding","tabBarGutter","tabOuterMargin","tabFlexDirection","tabAlignItems","tabJustifyContent","tabColor","activeTabColor","tabBackgroundImage","activeTabBackgroundImage","autoSwitch","autoSwitchInterval","hideTabs"]},{title:"进度条",onlyType:"proportion",props:["strokeWidth","strokeType","strokeLinecap","strokeColor","trailColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"输入框",onlyType:"input",props:["value","placeholder","optionFontSize"]},{title:"网页",onlyType:"iframe",props:["link","linkType"]}],ir=[{label:"思源黑体",value:'"SansSc"'},{label:"黑体",value:'"SimHei","STHeiti"'},{label:"楷体",value:'"KaiTi","STKaiti"'},{label:"宋体",value:'"SimSun","STSong"'},{label:"仿宋",value:'"FangSong","STFangsong"'}].map(t=>({value:t.value,label:e.createVNode("span",{style:{fontFamily:t.value}},[t.label])})),gf={keyName:{label:"控件别名",component:"input",props:{isKeyName:!0}},text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"页面宽度",updateMode:"page",component:"input-number",onlyType:"page",props:{suffix:"px",disabled:!1}},{label:"弹窗宽度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1920,min:0}},{label:"宽度",component:"input-number",props:{suffix:"px",min:0}}],height:[{label:"页面高度",updateMode:"page",onlyType:"page",component:"input-number",props:{suffix:"px",disabled:!1}},{label:"弹窗高度",onlyType:"modal",component:"input-number",props:{suffix:"px",max:1080,min:10}},{label:"高度",component:"input-number",props:{suffix:"px",min:1}}],backgroundImage:[{label:"背景图",component:"image-pick",updateMode:"page",onlyType:"page"},{label:"背景图",component:"image-pick"}],backgroundSize:[{label:"背景尺寸",component:"radio-group",updateMode:"page",onlyType:"page",props:{options:[{label:"覆盖",value:"cover"},{label:"铺满",value:"100% 100%"}]}}],backgroundColor:[{label:"背景颜色",component:"color-pick",updateMode:"page",onlyType:"page"},{label:"背景颜色",component:"color-pick"}],contextRequestUrl:{label:"请求地址",component:"input",updateMode:"page"},theme:{label:"主题",component:"select",props:{options:[{label:"默认",value:"light"},{label:"暗蓝",value:"darkBlue"}]},updateMode:"page"},pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""},...ir]}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkUrl:{label:"链接地址",component:"input"},linkMethod:{label:"打开方式",component:"radio-group",props:{options:[{label:"本窗口",value:"_self"},{label:"新窗口",value:"_blank"}]}},linkPage:{label:"链接项目页面",component:"page-pick"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},variableFontSize:{label:"变量字号",component:"input-number",props:{suffix:"px",min:12,max:100}},percentageSide:{label:"涨跌幅图标",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"右",value:"right"}]}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""},...ir]}},tabFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},headerFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:.1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:{label:"颜色",component:"color-pick"},legendTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},legendLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},seqIconConfig:[{label:"图标索引",component:"icon-config",layout:"vertical",onlyType:"list"}],columns:[{label:"表格列",component:"form-collapse",onlyType:"table",props:{format:[{label:"名称",value:"title",type:"input"},{label:"索引",value:"dataIndex",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:0,max:100}},{label:"头部对齐",value:"headerCellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"单元格对齐",value:"cellAlign",type:"select",defaultValue:"center",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"布尔值",value:"boolean"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"保留小数",value:"decimals"},{label:"自定义",value:"custom"}]}},{label:"保留位数",value:"retentiondigit",type:"input-number",show:{match:"format",value:"decimals"},props:{min:0}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom","contrast"]}},{label:"涨幅颜色",value:"increaseColor",type:"color",defaultValue:"#ff512e",show:{match:"format",value:"contrast"}},{label:"跌幅颜色",value:"declineColor",type:"color",defaultValue:"#39cf93",show:{match:"format",value:"contrast"}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条文字颜色",value:"progressTextColor",type:"color",defaultValue:"#333",show:{match:"format",value:"progress"}},{label:"进度条完成文字颜色",value:"progressFinishedTextColor",type:"color",defaultValue:"#fff",show:{match:"format",value:"progress"}},{label:"进度条文字保留小数位",value:"progressTextDecimalPlaces",type:"input-number",defaultValue:"2",props:{min:0},show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"18",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"默认值",value:"defaultVal",type:"input",defaultValue:""},{label:"内容超出时",value:"overflow",type:"select",defaultValue:"wrap",props:{options:[{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},{label:"排序",value:"sorter",type:"switch",typeValue:"checked"},{label:"小计",value:"isCalcTotal",type:"switch",typeValue:"checked"},{label:"过滤",value:"tableFilter",type:"switch",typeValue:"checked"},{label:"隐藏",value:"isHidden",type:"switch",typeValue:"checked"}]}},{label:"列索引",component:"form-group",layout:"vertical",onlyType:"list",props:{format:[{label:"索引",value:"key",type:"input"},{label:"标题",value:"title",type:"input"},{label:"宽度",value:"width",type:"input-number",props:{suffix:"%",min:1}},{label:"对齐",value:"align",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"内容对齐",value:"cellAlign",type:"select",defaultValue:"left",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},{label:"背景颜色",value:"cellColor",type:"color",defaultValue:""},{label:"字体大小",value:"fontSize",type:"input-number",props:{suffix:"px",min:12}},{label:"字体颜色",value:"color",type:"color",defaultValue:""},{label:"字体粗细",value:"fontWeight",type:"select",defaultValue:"normal",props:{options:[{label:"较细",value:"lighter"},{label:"正常",value:"normal"},{label:"较粗",value:"bold"}]}},{label:"标题字体颜色",value:"titleColor",type:"color",defaultValue:""},{label:"格式化",value:"format",type:"select",defaultValue:"",props:{options:[{label:"无",value:""},{label:"金额",value:"money"},{label:"百分比",value:"percentage"},{label:"对比",value:"contrast"},{label:"进度条",value:"progress"},{label:"自定义",value:"custom"}]}},{label:"进度条颜色",value:"progressColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条渐变色",value:"progressGradientColor",type:"color",defaultValue:"#1890ff",show:{match:"format",value:"progress"}},{label:"进度条底色",value:"progressBaseColor",type:"color",defaultValue:"",show:{match:"format",value:"progress"}},{label:"进度条线宽度",value:"progressWidth",type:"input-number",defaultValue:"14",props:{suffix:"px",min:0},show:{match:"format",value:"progress"}},{label:"自定义格式化",value:"customFormatter",type:"input",defaultValue:"{value}",show:{match:"format",value:["custom"]}}]}}],bordered:{label:"边框",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],allOverflow:{label:"表内容超出",onlyType:"table",component:"radio-group",props:{options:[{label:"换行",value:"false"},{label:"省略号",value:"ellipsis"},{label:"省略号+title显示",value:"title"},{label:"省略号+tooltip显示",value:"tooltip"}]}},hoverRow:{onlyType:"table",label:"点击行高亮",component:"switch"},hoverColor:{onlyType:"table",label:"hover行颜色",component:"color-pick"},boderList:{label:"边框不显示",component:"select",onlyType:"table",props:{mode:"multiple",options:[{label:"表格上边框",value:"top"},{label:"表格下边框",value:"bottom"},{label:"表格左边框",value:"left"},{label:"表格右边框",value:"right"},{label:"表格内容边框",value:"middle"},{label:"列按钮边框",value:"button"}]}},columnDropEnable:{onlyType:"table",label:"列拖拽",component:"switch"},showTotalBool:{onlyType:"table",label:"显示汇总行",component:"switch"},totalName:{onlyType:"table",label:"汇总行名",component:"input"},expandAll:{onlyType:"table",label:"展开所有节点",component:"switch"},isUseSeq:{label:"使用序列",component:"switch"},centered:{label:"居中",component:"switch"},columnsFixedNum:{label:"左固定列数",component:"input-number",props:{min:0,step:1}},scrollX:{label:"滚动宽度",component:"input-number",props:{min:0,step:1}},variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],tabColor:{label:"字体颜色",component:"color-pick"},activeTabColor:{label:"激活颜色",component:"color-pick"},tabBackgroundImage:{label:"背景图",component:"image-pick"},activeTabBackgroundImage:{label:"激活背景图",component:"image-pick"},tabBarGutter:{label:"标签间隔",component:"input-number",props:{suffix:"px",min:0}},tabFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12}},simple:{label:"简单分页",component:"switch"},pageSizeShow:{label:"每页条数",component:"switch"},sliceCount:{label:"截取条数",component:"input-number",props:{min:1}},useRanking:{label:"使用排行",component:"switch"},headerBackgroundColor:{label:"表头背景",component:"color-pick"},cellBackgroundColor:{label:"单元格背景",component:"color-pick"},borderColor:{label:"边框颜色",component:"color-pick"},useBorderModify:{label:"边框(四角)",component:"switch"},useTitle:{label:"使用标题",component:"switch"},paginationPosition:{label:"位置",component:"select",props:{options:[{label:"上左",value:"topLeft"},{label:"上中",value:"topCenter"},{label:"上右",value:"topRight"},{label:"下左",value:"bottomLeft"},{label:"下中",value:"bottomCenter"},{label:"下右",value:"bottomRight"}]}},paginationPageSize:{label:"分页数",component:"input-number"},destroyOnClose:{label:"关闭销毁",component:"switch"},position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"},limitStartTime:{label:"限制开始时间",component:"time-pick"},limitEndTime:{label:"限制结束时间",component:"time-pick"},strokeColor:{label:"完成颜色",component:"color-pick"},trailColor:{label:"未完成颜色",component:"color-pick"},strokeType:{label:"类型",component:"radio-group",props:{options:[{label:"环形",value:"circle"},{label:"仪表盘",value:"dashboard"},{label:"直线",value:"line"}]}},strokeLinecap:{label:"进度条样式",component:"radio-group",props:{options:[{label:"圆形",value:"round"},{label:"方角",value:"square"}]}},strokeWidth:{label:"进度条宽度",component:"input-number",props:{min:1}},strokeTextWidth:{label:"文本宽度",component:"input-number",props:{suffix:"%",min:20}},geoBackgroundImage:{label:"填充背景",component:"image-pick"},geoItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},geoEmphasisLabelColor:{label:"字体颜色",component:"color-pick"},geoEmphasisItemStyleAreaColor:{label:"板块颜色",component:"color-pick"},geoEmphasisItemStyleBorderColor:{label:"边框颜色",component:"color-pick"},symbolImage:{label:"坐标点图标",component:"image-pick"},mapJson:{label:"上传数据",component:"file-pick"},barWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:0}},columnCount:{label:"并行数",component:"input-number",props:{min:0}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},itemColSpan:{label:"边距",component:"input-number",props:{suffix:"px",min:0}},itemPadding:{label:"内填充",component:"input-number",props:{suffix:"px",min:0}},itemRowSpan:{label:"行距",component:"input-number",props:{suffix:"px",min:0}},geoLabelColor:{label:"标签颜色",component:"color-pick"},geoLabelFontSize:{label:"标签大小",component:"input-number",props:{min:12,max:100}},geoItemStyleShadowColor:{label:"阴影颜色",component:"color-pick"},geoItemStyleBorderWidth:{label:"边框宽度",component:"input-number"},geoItemStyleShadowBlur:{label:"阴影模糊",component:"input-number"},geoItemStyleShadowOffsetX:{label:"阴影水平偏移",component:"input-number"},geoItemStyleShadowOffsetY:{label:"阴影垂直偏移",component:"input-number"},geoZoom:{label:"缩放大小",component:"input-number"},geoRoam:{label:"手动缩放",component:"switch"},geoCenter:{label:"中心位置",component:"input"},geoBackgroundImageRepeat:{label:"背景图片",component:"select",props:{options:[{label:"重复",value:"repeat"},{label:"水平重复",value:"repeat-x"},{label:"垂直重复",value:"repeat-y"},{label:"不重复",value:"no-repeat"}]}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},headerFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},geoEmphasisDisabled:{label:"禁用",component:"switch"},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input"},toolboxInfoText:{label:"说明信息内容",component:"input"},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"角圆",value:"round"},{label:"圆形",value:"circle"}]}},danger:{label:"危险模式",component:"switch"},href:{label:"链接",component:"textarea",show:[{match:"linkPage",value:""}]},target:{label:"链接方式",component:"radio-group",props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
67
67
  【参数值】是跳转链接上携带参数的value值。`,keyName:"参数名",fieldName:"参数值",layout:"vertical"}},borderWidth:{label:"边框宽度",component:"input-number",props:{suffix:"px"}},borderRadius:{label:"圆角",component:"input"},activeKey:{label:"激活标签页",component:"input-number"},isUseAction:{label:"使用操作列",component:"switch"},actionColumnWidth:{label:"操作列宽",component:"input-number"},actionList:{label:"操作列",component:"form-group",layout:"vertical",props:{format:[{label:"名称",value:"title",type:"input"},{label:"链接地址",value:"href",type:"input"},{label:"链接方式",value:"target",type:"select",props:{options:[{label:"本窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"}]}},{label:"颜色",value:"color",type:"color"}]}},barBorderRadius:{label:"圆角",component:"input"},isUseHorizontalAxis:{label:"横向排列",component:"switch"},axisInverse:{label:"倒叙排列",component:"switch"},xAxisInverse:{label:"图形反转",component:"switch"},yAxisInverse:{label:"图形反转",component:"switch"},decimalFormat:{label:"保留小数",component:"switch"},variableDefaultValue:{label:"变量默认值",component:"input"},strokeTextShow:{label:"显示文本",component:"switch"},areaStyleOpacity:{label:"面积透明度",component:"input-number",props:{step:.1,min:0,max:1}},areaGradientShow:{label:"面积渐变",component:"switch"},areaGradientColor:{label:"渐变颜色",component:"color-pick"},tabHorizontalPadding:{label:"内水平边距",component:"input-number",props:{suffix:"px",min:0}},xAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},xAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},xAxisLabelRotate:{label:"名称旋转",component:"input-number"},yAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},yAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},yAxisLabelRotate:{label:"名称旋转",component:"input-number"},isStack:{label:"是否堆叠",component:"switch",effectVal(t,o,n,a){const{leftAxisList:l=[]}=a,r=o?l.map(s=>s.label):[];n({stackColumns:r})}},stackColumns:{label:"堆叠列配置",component:"select",props:{mode:"multiple",options:t=>{const{leftAxisList:o=[]}=t;return o.map(n=>({label:n.label,value:n.label}))}},effect:{hide:{props:[{props:"isStack",value:!1,rule:"==="}]}}},clickHighlight:{label:"点击高亮",component:"switch"},labelShow:{label:"展示标签",component:"switch"},isReverse:{label:"是否反转",component:"switch"},link:{label:"链接",component:"textarea"},linkType:{onlyType:"iframe",label:"链接类型",component:"radio-group",props:{options:[{label:"网页",value:"web"},{label:"报表工程",value:"erd"}]}},maxTagCount:{label:"显示最大数",component:"input-number"},tabAlignItems:{label:"垂直位置",component:"radio-group",props:{options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},tabJustifyContent:{label:"水平位置",component:"radio-group",props:{options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},tabFlexDirection:{label:"布局",component:"radio-group",props:{options:[{label:"水平",value:"row"},{label:"垂直",value:"column"}]}},filterDropdownHeight:{label:"过滤面板高度",component:"input-number",props:{suffix:"px",min:0}},stripedShow:{label:"斑马线条纹",component:"switch"},useCurrentTime:{label:"使用当前时间",component:"switch"},interval:{label:"时间间隔",component:"input-number",props:{min:0}},intervalUnit:{label:"时间间隔单位",component:"select",props:{options:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},operate:{label:"操作",component:"input-number",props:{min:0,prefixValueKey:"type",prefix:[{label:"加",value:"add"},{label:"减",value:"minus"}],suffixValueKey:"mode",suffix:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},updateInterval:{label:"更新间隔",component:"input-number",props:{min:1,suffixValueKey:"mode",suffix:[{label:"秒",value:"second"},{label:"分",value:"minute"},{label:"时",value:"hour"},{label:"天",value:"day"}]}},xAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},yAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},minAngle:{label:"最小角度",component:"input-number",props:{min:0,max:360}},autoSwitch:{label:"自动切换",component:"switch"},autoSwitchInterval:{label:"切换间隔",component:"input-number",props:{min:0}},xAxisLabelInterval:{label:"标签间隔",component:"input-number",props:{min:-1}},isUseExport:{label:"导出数据",component:"switch"},autoClearSearchValue:{label:"选中清空搜索",component:"switch"},toolboxLocation:{label:"快速定位",component:"switch"},toolboxDownloadShow:{label:"使用数据下载",component:"switch"},toolboxDataZoomShow:{label:"使用放大",component:"switch"},toolboxInfoShow:{label:"使用说明信息",component:"switch"},multiple:{label:"多选模式",component:"switch"},treeCheckable:{label:"复选框模式",component:"switch"},selectFirstOption:{label:"选择首选项",component:"switch"},gradientColor:{label:"渐变颜色",component:"color-pick"},gradientOffset:{label:"渐变度",component:"slider"},legendItemGap:{label:"图例项间隔",component:"input-number",props:{min:1}},legendItemWidth:{label:"图例图形宽度",component:"input-number",props:{min:1}},legendItemHeight:{label:"图例图形高度",component:"input-number",props:{min:1}},showBarBackground:{label:"背景色",component:"switch"},gradientColors:{label:"颜色",onlyType:"bar",component:"color-group-pick"},increaseColor:{label:"涨幅颜色 ",component:"color-pick"},declineColor:{label:"跌幅颜色",component:"color-pick"},legendType:{label:"图例类型 ",component:"select",props:{options:[{label:"默认",value:""},{label:"圆形",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"箭头",value:"arrow"}]}},optionType:{label:"单选类型",component:"select",props:{options:[{label:"默认",value:"default"},{label:"框组",value:"button"}]}},minusSignShow:{label:"涨跌幅负号",component:"switch"},gradientAngle:{label:"渐变角度",component:"input-number",props:{suffix:"deg"}},stripedColor:{label:"条纹颜色",component:"color-pick"},axisNameColor:{label:"名称颜色",component:"color-pick"},shadowColor:{label:"阴影颜色",component:"color-pick"},shadowBlur:{label:"阴影模糊度",component:"input-number",props:{min:0}},shadowOffsetX:{label:"阴影偏移(X)",component:"input-number",props:{min:0}},shadowOffsetY:{label:"阴影偏移(Y)",component:"input-number",props:{min:0}},borderStyle:{label:"边框线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},unitText:{label:"文本",component:"input"},unitFontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},unitFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},unitColor:{label:"颜色",component:"color-pick"},unitTop:{label:"上侧距离",component:"input-number",props:{suffix:"%"}},unitLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%"}},legendFormatter:{label:"格式化",component:"textarea"},titleMode:{label:"标题背景",component:"select",props:{options:[{label:"类型一",value:"type-1"},{label:"类型二",value:"type-2"}]}},legendFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},valueType:{label:"传值类型",component:"select",props:{options:[{label:"值",value:"value"},{label:"名称",value:"label"}]}},isGroupTable:{label:"分组表格",component:"switch"},xAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},yAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},tooltipRequestData:{label:"配置请求",component:"tooltip-request"},tooltipBackgroundColor:{label:"背景颜色",component:"color-pick"},seqWidth:{label:"宽度",component:"input-number",props:{min:0,max:100,suffix:"%"}},isAllowClear:{label:"支持清除",component:"switch"},isSummaryFixed:{label:"固定小计行",component:"switch"},labelWidth:{label:"标签宽度",component:"input-number",props:{min:0}},labelOverflow:{label:"标签溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},isPageBottom:{label:"固定在底部",component:"switch"},optionFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},isShowTotal:{label:"显示总数",component:"switch"},graphicType:{label:"图表类型",component:"select",props:{options:[{label:"饼图",value:"ecanPie"},{label:"折线图",value:"ecanLine"},{label:"柱状图",value:"ecanBar"},{label:"散点图",value:"ecanScatter"},{label:"组合图表",value:"ecanComboGraph"},{label:"自定义图表",value:"ecanCustomGraph"},{label:"雷达图",value:"ecanRadar"}],graphic:!0}},isAllowSpanYear:{label:"允许跨年",component:"switch"},tabType:{label:"类型",component:"select",props:{options:[{label:"标签",value:"tabs"},{label:"下拉框",value:"select"}]}},targetRule:{label:"规则",component:"select",props:{options:[{label:"等于",value:"equal"},{label:"大于",value:"greater"},{label:"大于等于",value:"greater_equal"},{label:"小于",value:"less"},{label:"小于等于",value:"less_equal"}]}},targetValue:{label:"值",component:"input"},notExpectColor:{label:"颜色",component:"color-pick"},buttonBackgroundColor:{label:"背景色",component:"color-pick"},tabWidth:{label:"标签宽度",component:"input-number",props:{min:50,suffix:"px"}},headerFontColor:{label:"文字颜色",component:"color-pick"},cellFontColor:{label:"文字颜色",component:"color-pick"},isTransparent:{label:"透明色",component:"switch"},hideTableHeader:{label:"隐藏",component:"switch"},closeBtnColor:{label:"关闭按钮颜色",component:"color-pick"},paginationColor:{label:"页码颜色",component:"color-pick"},paginationBgColor:{label:"页码背景色",component:"color-pick"},activePaginationColor:{label:"当前页颜色",component:"color-pick"},activePaginationBgColor:{label:"当前页背景色",component:"color-pick"},hoverBackgroundColor:{label:"hover行颜色",component:"color-pick"},tooltipPosition:{label:"位置",component:"select",props:{options:[{label:"默认",value:""},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},tabTextAlign:{label:"对齐方式",component:"radio-group",props:{options:[{label:"默认",value:""},{label:"居中",value:"center"}]}},seqName:{label:"名称",component:"input"},seqIcon:{label:"显示图标",component:"switch"},isShowCloseBtn:{label:"显示关闭按钮",component:"switch"},markLineType:{label:"标线类型",component:"select",props:{options:[{label:"平均值",value:"average"},{label:"最小值",value:"min"},{label:"最大值",value:"max"},{label:"中位数",value:"median"}]}},seqFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},isAutoScroll:{label:"循环滚动",component:"switch"},scrollSpeed:{label:"滚动速度",component:"input-number",props:{min:.1}},isHoverStyle:{label:"悬浮效果",component:"switch",show:[{match:"isAnimation",value:!1}]},isAnimation:{label:"JSON动画",component:"switch"},animationSource:{label:"资源文件",component:"zip-pick",style:"width: auto;",show:[{match:"isAnimation",value:!0}]},subTotalColumn:{label:"放置列",component:"select",props:{options:[],dynamics:!0}},subTotalName:{label:"名称",component:"input"},isSortByFront:{label:"是否前端排序",component:"switch"},legendWidth:{label:"区域宽度",component:"input-number"},legendHeight:{label:"区域高度",component:"input-number"},legendTextWidth:{label:"文字宽度",component:"input-number"},legendScroll:{label:"分页",component:"switch"},boxShadow:{label:"阴影",component:"textarea"},limitInterval:{label:"限制范围",component:"input-number",props:{min:0,suffixValueKey:"mode",suffix:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},xAxisName:{label:"坐标轴名称",component:"input"},yAxisName:{label:"坐标轴名称",component:"input"},yAxisLeftName:{label:"坐标轴名称-左轴",component:"input"},yAxisRightName:{label:"坐标轴名称-右轴",component:"input"},seqIconWidth:{label:"图标宽度",component:"input-number",props:{suffix:"px",min:0}},seqIconHeight:{label:"图标高度",component:"input-number",props:{suffix:"px",min:0}},seqIconOffsetX:{label:"横向偏移",component:"input-number",props:{suffix:"px"}},seqIconOffsetY:{label:"纵向偏移",component:"input-number",props:{suffix:"px"}},seqIndexFormatter:{label:"格式化",component:"textarea"},unitInterval:{label:"单位间隔",component:"input-number",props:{min:0}},keyFieldMap:{label:"数据配置",component:"unit-config",layout:"vertical",onlyType:"circulate",props:{indexTip:`【别名】是循环列表内部要循环的组件别名;
68
68
  【字段】是接口返回的数据字段;`,keyName:"别名",fieldName:"字段"}},itemWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:1,max:100}},startValue:{label:"开始值",component:"textarea"},endValue:{label:"结束值",component:"textarea"},colNum:{label:"列数量",component:"input-number"},digits:{label:"位数",component:"input-number",props:{min:0}},unitWidth:{label:"单位宽度",component:"input-number",props:{suffix:"px",min:10}},unitHeight:{label:"单位高度",component:"input-number",props:{suffix:"px",min:10}},counterBackgroundImage:{label:"背景图",component:"image-pick"},showEllipsis:{label:"超出省略号",component:"switch"},exceedConfig:{label:"内容超出时",component:"select",props:{options:[{label:"默认",value:""},{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]}},xAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},yAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},scrollDirection:{label:"滚动方向",component:"radio-group",props:{options:[{label:"竖直",value:"vertical"},{label:"水平",value:"horizontal"}]}},hideTabs:{label:"隐藏标签",component:"switch"},jumpType:{label:"跳转类型",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"当前项目页面",value:"page"},{label:"外部链接页面",value:"link"}]}},jumpTime:{label:"定时",component:"input-number",updateMode:"page",onlyType:"page",props:{min:0,suffix:[{label:"时",value:"hours"},{label:"分",value:"minute"},{label:"秒",value:"seconds"}]}},jumpPage:{label:"项目页面",component:"page-pick",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"page"}]},jumpLink:{label:"链接",component:"textarea",updateMode:"page",onlyType:"page",show:[{match:"jumpType",value:"link"}]},gridTopPx:{label:"上侧距离",component:"input-number",props:{suffix:"px",min:0}},gridBottomPx:{label:"下侧距离",component:"input-number",props:{suffix:"px",min:0}},gridLeftPx:{label:"左侧距离",component:"input-number",props:{suffix:"px",min:0}},gridRightPx:{label:"右侧距离",component:"input-number",props:{suffix:"px",min:0}},showAnimation:{label:"动画",component:"switch",style:"width: auto;",props:{tooltip:"文本组件的值会以动画的形式发生变化(只有值为数字类型的时候才生效)"}},showXAxisLineArrow:{label:"显示箭头",component:"switch"},showYAxisLineArrow:{label:"显示箭头",component:"switch"},xAxisLineInverse:{label:"倒序",component:"switch"},yAxisLineInverse:{label:"倒序",component:"switch"},xAxisMarkLineValue:{label:"x轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在x轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
69
69
  max表示x轴刻度最大值,min表示x轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于x轴正中间的标线可以这么写:({max} + {min}) / 2`}},yAxisMarkLineValue:{label:"y轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在y轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
70
70
  max表示y轴刻度最大值,min表示y轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于y轴正中间的标线可以这么写:({max} + {min}) / 2`}},axisMarkArea:{label:"标域设置",component:"mark-area-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`每个标域需要配置两个坐标点才能确定区域,所以需要填写两个坐标的x和y的值,即(x1, y1)、(x2, y2),这两个点需要配置为区域的对角两个点才能
71
71
  正确的标出区域。如果不设置标域颜色将会使用图表默认颜色。系统提供四个变量:xMax、xMin、yMax、yMin,xMax表示x轴刻度最大值,xMin表示x轴刻度最小值,
72
- yMax表示y轴刻度最大值,yMin表示y轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量`}}},bf=e.defineComponent({name:"Input",directives:{focus},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{AInput:j.Input},emits:["change"],setup(t,{emit:o}){return{onInputChange:a=>{o("change",a.target.value)}}}});function yf(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveDirective("focus");return e.withDirectives((e.openBlock(),e.createBlock(s,{value:t.value,disabled:t.disabled,onChange:t.onInputChange},null,8,["value","disabled","onChange"])),[[d]])}const gf=ae(bf,[["render",yf]]),Cf=e.defineComponent({name:"InputNumber",props:{value:{type:[String,Number,Object],default:""},valueKey:{type:String,default:"value"},prefixValueKey:{type:String,default:"prefix"},prefix:{type:[String,Array],default:""},suffixValueKey:{type:String,default:"suffix"},suffix:{type:[String,Array],default:""},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:[String,Number],default:1},useBlurEvent:{type:Boolean,default:!0}},components:{AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption},emits:["change"],setup(t,{emit:o}){const n=e.computed(()=>{const u=t.value;return typeof u=="string"?parseFloat(u):typeof u=="object"&&u!=null?u[t.valueKey]:u}),a=u=>t.value!=null&&typeof t.value=="object"?t.value[t[`${u}ValueKey`]]:Array.isArray(t[u])?t[u][0]&&t[u][0].value:null,l=e.ref(a("prefix")),r=e.ref(a("suffix"));return{inputValue:n,onInputChange:u=>{const f=t.suffix;Array.isArray(t.prefix)||Array.isArray(t.suffix)?o("change",{[t.valueKey]:u,[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)}):f===""||u==null?o("change",u):o("change",`${u}${f}`)},parser:u=>typeof t.suffix=="string"?u.replace(t.suffix,""):Array.isArray(t.suffix)&&t.value!=null&&typeof t.value=="object"?u.replace(t.value[t.suffixValueKey],""):u,onInputBlur:()=>{t.useBlurEvent&&o("change",null,!1)},prefixValue:l,suffixValue:r,onPrefixChange:()=>{Array.isArray(t.prefix)&&o("change",{[t.valueKey]:e.unref(n),[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)})},onSuffixChange:()=>{Array.isArray(t.suffix)&&o("change",{[t.valueKey]:e.unref(n),[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)})}}}});function wf(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-input-number");return e.openBlock(),e.createBlock(i,{value:t.inputValue,min:t.min,max:t.max,step:t.step,parser:t.parser,"addon-before":Array.isArray(t.prefix)?void 0:t.prefix,"addon-after":Array.isArray(t.suffix)?void 0:t.prefix,onChange:t.onInputChange,onBlur:t.onInputBlur},e.createSlots({_:2},[Array.isArray(t.prefix)&&t.prefix.length>0?{name:"addonBefore",fn:e.withCtx(()=>[e.createVNode(d,{value:t.prefixValue,"onUpdate:value":o[0]||(o[0]=c=>t.prefixValue=c),onChange:t.onPrefixChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.prefix,({label:c,value:p},u)=>(e.openBlock(),e.createBlock(s,{key:u,value:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),key:"0"}:void 0,Array.isArray(t.suffix)&&t.suffix.length>0?{name:"addonAfter",fn:e.withCtx(()=>[e.createVNode(d,{value:t.suffixValue,"onUpdate:value":o[1]||(o[1]=c=>t.suffixValue=c),onChange:t.onSuffixChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.suffix,({label:c,value:p},u)=>(e.openBlock(),e.createBlock(s,{key:u,value:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),key:"1"}:void 0]),1032,["value","min","max","step","parser","addon-before","addon-after","onChange","onBlur"])}const ir=ae(Cf,[["render",wf]]),kf=e.defineComponent({name:"RadioGroup",props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},optionType:{type:String,default:"default"},size:{type:String,default:"default"}},components:{ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton},emits:["change"],setup(t,{emit:o}){return{onRadioChange:a=>{o("change",a.target.value)}}}});function xf(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),d=e.resolveComponent("a-radio-group");return e.openBlock(),e.createBlock(d,{value:t.value,optionType:t.optionType,onChange:t.onRadioChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,i=>(e.openBlock(),e.createBlock(s,{key:i.value,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","optionType","onChange"])}const _f=ae(kf,[["render",xf]]),Sf=e.defineComponent({name:"Select",props:{value:{type:[String,Number,Array,Array],default:""},options:{type:Array,default:()=>[]},customOption:{type:Function}},components:{ASelect:j.Select,ASelectOption:j.SelectOption},emits:["change"],setup(t,{emit:o}){return{onSelectChange:a=>{o("change",a)}}}});function Tf(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select");return e.openBlock(),e.createBlock(d,{value:t.value,onChange:t.onSelectChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,i=>(e.openBlock(),e.createBlock(s,{key:i.value,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])}const Nf=ae(Sf,[["render",Tf]]),Af=e.defineComponent({name:"Switch",props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:150},disabled:{type:Boolean,default:!1}},components:{ASwitch:j.Switch},emit:["change"],setup(t,{emit:o}){return{onSwitchChange:a=>{o("change",a)}}}});function Of(t,o,n,a,l,r){const s=e.resolveComponent("a-switch");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:`${t.width}px`})},[e.createVNode(s,{disabled:t.disabled,checked:t.value,onChange:t.onSwitchChange},null,8,["disabled","checked","onChange"])],4)}const Ef=ae(Af,[["render",Of]]);var Oe="top",Me="bottom",Pe="right",Ee="left",qn="auto",so=[Oe,Me,Pe,Ee],Rt="start",co="end",Bf="clippingParents",sr="viewport",po="popper",Lf="reference",cr=so.reduce(function(t,o){return t.concat([o+"-"+Rt,o+"-"+co])},[]),dr=[].concat(so,[qn]).reduce(function(t,o){return t.concat([o,o+"-"+Rt,o+"-"+co])},[]),Vf="beforeRead",Ff="read",$f="afterRead",vf="beforeMain",If="main",Df="afterMain",Mf="beforeWrite",Pf="write",jf="afterWrite",Rf=[Vf,Ff,$f,vf,If,Df,Mf,Pf,jf];function Ke(t){return t?(t.nodeName||"").toLowerCase():null}function $e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var o=t.ownerDocument;return o&&o.defaultView||window}return t}function _t(t){var o=$e(t).Element;return t instanceof o||t instanceof Element}function je(t){var o=$e(t).HTMLElement;return t instanceof o||t instanceof HTMLElement}function Kn(t){if(typeof ShadowRoot>"u")return!1;var o=$e(t).ShadowRoot;return t instanceof o||t instanceof ShadowRoot}function Uf(t){var o=t.state;Object.keys(o.elements).forEach(function(n){var a=o.styles[n]||{},l=o.attributes[n]||{},r=o.elements[n];!je(r)||!Ke(r)||(Object.assign(r.style,a),Object.keys(l).forEach(function(s){var d=l[s];d===!1?r.removeAttribute(s):r.setAttribute(s,d===!0?"":d)}))})}function zf(t){var o=t.state,n={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,n.popper),o.styles=n,o.elements.arrow&&Object.assign(o.elements.arrow.style,n.arrow),function(){Object.keys(o.elements).forEach(function(a){var l=o.elements[a],r=o.attributes[a]||{},s=Object.keys(o.styles.hasOwnProperty(a)?o.styles[a]:n[a]),d=s.reduce(function(i,c){return i[c]="",i},{});!je(l)||!Ke(l)||(Object.assign(l.style,d),Object.keys(r).forEach(function(i){l.removeAttribute(i)}))})}}const Gf={name:"applyStyles",enabled:!0,phase:"write",fn:Uf,effect:zf,requires:["computeStyles"]};function Xe(t){return t.split("-")[0]}var St=Math.max,Vo=Math.min,Ut=Math.round;function Xn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function pr(){return!/^((?!chrome|android).)*safari/i.test(Xn())}function zt(t,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),l=1,r=1;o&&je(t)&&(l=t.offsetWidth>0&&Ut(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Ut(a.height)/t.offsetHeight||1);var s=_t(t)?$e(t):window,d=s.visualViewport,i=!pr()&&n,c=(a.left+(i&&d?d.offsetLeft:0))/l,p=(a.top+(i&&d?d.offsetTop:0))/r,u=a.width/l,f=a.height/r;return{width:u,height:f,top:p,right:c+u,bottom:p+f,left:c,x:c,y:p}}function Qn(t){var o=zt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(o.width-n)<=1&&(n=o.width),Math.abs(o.height-a)<=1&&(a=o.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function ur(t,o){var n=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(n&&Kn(n)){var a=o;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function at(t){return $e(t).getComputedStyle(t)}function Hf(t){return["table","td","th"].indexOf(Ke(t))>=0}function mt(t){return((_t(t)?t.ownerDocument:t.document)||window.document).documentElement}function Fo(t){return Ke(t)==="html"?t:t.assignedSlot||t.parentNode||(Kn(t)?t.host:null)||mt(t)}function fr(t){return!je(t)||at(t).position==="fixed"?null:t.offsetParent}function Wf(t){var o=/firefox/i.test(Xn()),n=/Trident/i.test(Xn());if(n&&je(t)){var a=at(t);if(a.position==="fixed")return null}var l=Fo(t);for(Kn(l)&&(l=l.host);je(l)&&["html","body"].indexOf(Ke(l))<0;){var r=at(l);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||o&&r.willChange==="filter"||o&&r.filter&&r.filter!=="none")return l;l=l.parentNode}return null}function uo(t){for(var o=$e(t),n=fr(t);n&&Hf(n)&&at(n).position==="static";)n=fr(n);return n&&(Ke(n)==="html"||Ke(n)==="body"&&at(n).position==="static")?o:n||Wf(t)||o}function Jn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fo(t,o,n){return St(t,Vo(o,n))}function Yf(t,o,n){var a=fo(t,o,n);return a>n?n:a}function mr(){return{top:0,right:0,bottom:0,left:0}}function hr(t){return Object.assign({},mr(),t)}function br(t,o){return o.reduce(function(n,a){return n[a]=t,n},{})}var qf=function(o,n){return o=typeof o=="function"?o(Object.assign({},n.rects,{placement:n.placement})):o,hr(typeof o!="number"?o:br(o,so))};function Kf(t){var o,n=t.state,a=t.name,l=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,d=Xe(n.placement),i=Jn(d),c=[Ee,Pe].indexOf(d)>=0,p=c?"height":"width";if(!(!r||!s)){var u=qf(l.padding,n),f=Qn(r),y=i==="y"?Oe:Ee,b=i==="y"?Me:Pe,m=n.rects.reference[p]+n.rects.reference[i]-s[i]-n.rects.popper[p],h=s[i]-n.rects.reference[i],C=uo(r),g=C?i==="y"?C.clientHeight||0:C.clientWidth||0:0,T=m/2-h/2,w=u[y],_=g-f[p]-u[b],S=g/2-f[p]/2+T,N=fo(w,S,_),I=i;n.modifiersData[a]=(o={},o[I]=N,o.centerOffset=N-S,o)}}function Xf(t){var o=t.state,n=t.options,a=n.element,l=a===void 0?"[data-popper-arrow]":a;l!=null&&(typeof l=="string"&&(l=o.elements.popper.querySelector(l),!l)||ur(o.elements.popper,l)&&(o.elements.arrow=l))}const Qf={name:"arrow",enabled:!0,phase:"main",fn:Kf,effect:Xf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gt(t){return t.split("-")[1]}var Jf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Zf(t,o){var n=t.x,a=t.y,l=o.devicePixelRatio||1;return{x:Ut(n*l)/l||0,y:Ut(a*l)/l||0}}function yr(t){var o,n=t.popper,a=t.popperRect,l=t.placement,r=t.variation,s=t.offsets,d=t.position,i=t.gpuAcceleration,c=t.adaptive,p=t.roundOffsets,u=t.isFixed,f=s.x,y=f===void 0?0:f,b=s.y,m=b===void 0?0:b,h=typeof p=="function"?p({x:y,y:m}):{x:y,y:m};y=h.x,m=h.y;var C=s.hasOwnProperty("x"),g=s.hasOwnProperty("y"),T=Ee,w=Oe,_=window;if(c){var S=uo(n),N="clientHeight",I="clientWidth";if(S===$e(n)&&(S=mt(n),at(S).position!=="static"&&d==="absolute"&&(N="scrollHeight",I="scrollWidth")),S=S,l===Oe||(l===Ee||l===Pe)&&r===co){w=Me;var F=u&&S===_&&_.visualViewport?_.visualViewport.height:S[N];m-=F-a.height,m*=i?1:-1}if(l===Ee||(l===Oe||l===Me)&&r===co){T=Pe;var A=u&&S===_&&_.visualViewport?_.visualViewport.width:S[I];y-=A-a.width,y*=i?1:-1}}var R=Object.assign({position:d},c&&Jf),v=p===!0?Zf({x:y,y:m},$e(n)):{x:y,y:m};if(y=v.x,m=v.y,i){var $;return Object.assign({},R,($={},$[w]=g?"0":"",$[T]=C?"0":"",$.transform=(_.devicePixelRatio||1)<=1?"translate("+y+"px, "+m+"px)":"translate3d("+y+"px, "+m+"px, 0)",$))}return Object.assign({},R,(o={},o[w]=g?m+"px":"",o[T]=C?y+"px":"",o.transform="",o))}function em(t){var o=t.state,n=t.options,a=n.gpuAcceleration,l=a===void 0?!0:a,r=n.adaptive,s=r===void 0?!0:r,d=n.roundOffsets,i=d===void 0?!0:d,c={placement:Xe(o.placement),variation:Gt(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:l,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,yr(Object.assign({},c,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:s,roundOffsets:i})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,yr(Object.assign({},c,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const tm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:em,data:{}};var $o={passive:!0};function om(t){var o=t.state,n=t.instance,a=t.options,l=a.scroll,r=l===void 0?!0:l,s=a.resize,d=s===void 0?!0:s,i=$e(o.elements.popper),c=[].concat(o.scrollParents.reference,o.scrollParents.popper);return r&&c.forEach(function(p){p.addEventListener("scroll",n.update,$o)}),d&&i.addEventListener("resize",n.update,$o),function(){r&&c.forEach(function(p){p.removeEventListener("scroll",n.update,$o)}),d&&i.removeEventListener("resize",n.update,$o)}}const nm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:om,data:{}};var am={left:"right",right:"left",bottom:"top",top:"bottom"};function vo(t){return t.replace(/left|right|bottom|top/g,function(o){return am[o]})}var lm={start:"end",end:"start"};function gr(t){return t.replace(/start|end/g,function(o){return lm[o]})}function Zn(t){var o=$e(t),n=o.pageXOffset,a=o.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ea(t){return zt(mt(t)).left+Zn(t).scrollLeft}function rm(t,o){var n=$e(t),a=mt(t),l=n.visualViewport,r=a.clientWidth,s=a.clientHeight,d=0,i=0;if(l){r=l.width,s=l.height;var c=pr();(c||!c&&o==="fixed")&&(d=l.offsetLeft,i=l.offsetTop)}return{width:r,height:s,x:d+ea(t),y:i}}function im(t){var o,n=mt(t),a=Zn(t),l=(o=t.ownerDocument)==null?void 0:o.body,r=St(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=St(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),d=-a.scrollLeft+ea(t),i=-a.scrollTop;return at(l||n).direction==="rtl"&&(d+=St(n.clientWidth,l?l.clientWidth:0)-r),{width:r,height:s,x:d,y:i}}function ta(t){var o=at(t),n=o.overflow,a=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function Cr(t){return["html","body","#document"].indexOf(Ke(t))>=0?t.ownerDocument.body:je(t)&&ta(t)?t:Cr(Fo(t))}function mo(t,o){var n;o===void 0&&(o=[]);var a=Cr(t),l=a===((n=t.ownerDocument)==null?void 0:n.body),r=$e(a),s=l?[r].concat(r.visualViewport||[],ta(a)?a:[]):a,d=o.concat(s);return l?d:d.concat(mo(Fo(s)))}function oa(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function sm(t,o){var n=zt(t,!1,o==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function wr(t,o,n){return o===sr?oa(rm(t,n)):_t(o)?sm(o,n):oa(im(mt(t)))}function cm(t){var o=mo(Fo(t)),n=["absolute","fixed"].indexOf(at(t).position)>=0,a=n&&je(t)?uo(t):t;return _t(a)?o.filter(function(l){return _t(l)&&ur(l,a)&&Ke(l)!=="body"}):[]}function dm(t,o,n,a){var l=o==="clippingParents"?cm(t):[].concat(o),r=[].concat(l,[n]),s=r[0],d=r.reduce(function(i,c){var p=wr(t,c,a);return i.top=St(p.top,i.top),i.right=Vo(p.right,i.right),i.bottom=Vo(p.bottom,i.bottom),i.left=St(p.left,i.left),i},wr(t,s,a));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function kr(t){var o=t.reference,n=t.element,a=t.placement,l=a?Xe(a):null,r=a?Gt(a):null,s=o.x+o.width/2-n.width/2,d=o.y+o.height/2-n.height/2,i;switch(l){case Oe:i={x:s,y:o.y-n.height};break;case Me:i={x:s,y:o.y+o.height};break;case Pe:i={x:o.x+o.width,y:d};break;case Ee:i={x:o.x-n.width,y:d};break;default:i={x:o.x,y:o.y}}var c=l?Jn(l):null;if(c!=null){var p=c==="y"?"height":"width";switch(r){case Rt:i[c]=i[c]-(o[p]/2-n[p]/2);break;case co:i[c]=i[c]+(o[p]/2-n[p]/2);break}}return i}function ho(t,o){o===void 0&&(o={});var n=o,a=n.placement,l=a===void 0?t.placement:a,r=n.strategy,s=r===void 0?t.strategy:r,d=n.boundary,i=d===void 0?Bf:d,c=n.rootBoundary,p=c===void 0?sr:c,u=n.elementContext,f=u===void 0?po:u,y=n.altBoundary,b=y===void 0?!1:y,m=n.padding,h=m===void 0?0:m,C=hr(typeof h!="number"?h:br(h,so)),g=f===po?Lf:po,T=t.rects.popper,w=t.elements[b?g:f],_=dm(_t(w)?w:w.contextElement||mt(t.elements.popper),i,p,s),S=zt(t.elements.reference),N=kr({reference:S,element:T,strategy:"absolute",placement:l}),I=oa(Object.assign({},T,N)),F=f===po?I:S,A={top:_.top-F.top+C.top,bottom:F.bottom-_.bottom+C.bottom,left:_.left-F.left+C.left,right:F.right-_.right+C.right},R=t.modifiersData.offset;if(f===po&&R){var v=R[l];Object.keys(A).forEach(function($){var k=[Pe,Me].indexOf($)>=0?1:-1,E=[Oe,Me].indexOf($)>=0?"y":"x";A[$]+=v[E]*k})}return A}function pm(t,o){o===void 0&&(o={});var n=o,a=n.placement,l=n.boundary,r=n.rootBoundary,s=n.padding,d=n.flipVariations,i=n.allowedAutoPlacements,c=i===void 0?dr:i,p=Gt(a),u=p?d?cr:cr.filter(function(b){return Gt(b)===p}):so,f=u.filter(function(b){return c.indexOf(b)>=0});f.length===0&&(f=u);var y=f.reduce(function(b,m){return b[m]=ho(t,{placement:m,boundary:l,rootBoundary:r,padding:s})[Xe(m)],b},{});return Object.keys(y).sort(function(b,m){return y[b]-y[m]})}function um(t){if(Xe(t)===qn)return[];var o=vo(t);return[gr(t),o,gr(o)]}function fm(t){var o=t.state,n=t.options,a=t.name;if(!o.modifiersData[a]._skip){for(var l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,d=s===void 0?!0:s,i=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,f=n.altBoundary,y=n.flipVariations,b=y===void 0?!0:y,m=n.allowedAutoPlacements,h=o.options.placement,C=Xe(h),g=C===h,T=i||(g||!b?[vo(h)]:um(h)),w=[h].concat(T).reduce(function(U,H){return U.concat(Xe(H)===qn?pm(o,{placement:H,boundary:p,rootBoundary:u,padding:c,flipVariations:b,allowedAutoPlacements:m}):H)},[]),_=o.rects.reference,S=o.rects.popper,N=new Map,I=!0,F=w[0],A=0;A<w.length;A++){var R=w[A],v=Xe(R),$=Gt(R)===Rt,k=[Oe,Me].indexOf(v)>=0,E=k?"width":"height",O=ho(o,{placement:R,boundary:p,rootBoundary:u,altBoundary:f,padding:c}),L=k?$?Pe:Ee:$?Me:Oe;_[E]>S[E]&&(L=vo(L));var P=vo(L),x=[];if(r&&x.push(O[v]<=0),d&&x.push(O[L]<=0,O[P]<=0),x.every(function(U){return U})){F=R,I=!1;break}N.set(R,x)}if(I)for(var B=b?3:1,M=function(H){var q=w.find(function(Q){var Z=N.get(Q);if(Z)return Z.slice(0,H).every(function(oe){return oe})});if(q)return F=q,"break"},V=B;V>0;V--){var D=M(V);if(D==="break")break}o.placement!==F&&(o.modifiersData[a]._skip=!0,o.placement=F,o.reset=!0)}}const mm={name:"flip",enabled:!0,phase:"main",fn:fm,requiresIfExists:["offset"],data:{_skip:!1}};function xr(t,o,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-o.height-n.y,right:t.right-o.width+n.x,bottom:t.bottom-o.height+n.y,left:t.left-o.width-n.x}}function _r(t){return[Oe,Pe,Me,Ee].some(function(o){return t[o]>=0})}function hm(t){var o=t.state,n=t.name,a=o.rects.reference,l=o.rects.popper,r=o.modifiersData.preventOverflow,s=ho(o,{elementContext:"reference"}),d=ho(o,{altBoundary:!0}),i=xr(s,a),c=xr(d,l,r),p=_r(i),u=_r(c);o.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}const bm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hm};function ym(t,o,n){var a=Xe(t),l=[Ee,Oe].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},o,{placement:t})):n,s=r[0],d=r[1];return s=s||0,d=(d||0)*l,[Ee,Pe].indexOf(a)>=0?{x:d,y:s}:{x:s,y:d}}function gm(t){var o=t.state,n=t.options,a=t.name,l=n.offset,r=l===void 0?[0,0]:l,s=dr.reduce(function(p,u){return p[u]=ym(u,o.rects,r),p},{}),d=s[o.placement],i=d.x,c=d.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=i,o.modifiersData.popperOffsets.y+=c),o.modifiersData[a]=s}const Cm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:gm};function wm(t){var o=t.state,n=t.name;o.modifiersData[n]=kr({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const km={name:"popperOffsets",enabled:!0,phase:"read",fn:wm,data:{}};function xm(t){return t==="x"?"y":"x"}function _m(t){var o=t.state,n=t.options,a=t.name,l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,d=s===void 0?!1:s,i=n.boundary,c=n.rootBoundary,p=n.altBoundary,u=n.padding,f=n.tether,y=f===void 0?!0:f,b=n.tetherOffset,m=b===void 0?0:b,h=ho(o,{boundary:i,rootBoundary:c,padding:u,altBoundary:p}),C=Xe(o.placement),g=Gt(o.placement),T=!g,w=Jn(C),_=xm(w),S=o.modifiersData.popperOffsets,N=o.rects.reference,I=o.rects.popper,F=typeof m=="function"?m(Object.assign({},o.rects,{placement:o.placement})):m,A=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),R=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,v={x:0,y:0};if(S){if(r){var $,k=w==="y"?Oe:Ee,E=w==="y"?Me:Pe,O=w==="y"?"height":"width",L=S[w],P=L+h[k],x=L-h[E],B=y?-I[O]/2:0,M=g===Rt?N[O]:I[O],V=g===Rt?-I[O]:-N[O],D=o.elements.arrow,U=y&&D?Qn(D):{width:0,height:0},H=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:mr(),q=H[k],Q=H[E],Z=fo(0,N[O],U[O]),oe=T?N[O]/2-B-Z-q-A.mainAxis:M-Z-q-A.mainAxis,le=T?-N[O]/2+B+Z+Q+A.mainAxis:V+Z+Q+A.mainAxis,re=o.elements.arrow&&uo(o.elements.arrow),We=re?w==="y"?re.clientTop||0:re.clientLeft||0:0,ht=($=R==null?void 0:R[w])!=null?$:0,Je=L+oe-ht-We,fe=L+le-ht,Ne=fo(y?Vo(P,Je):P,L,y?St(x,fe):x);S[w]=Ne,v[w]=Ne-L}if(d){var At,Yt=w==="x"?Oe:Ee,qt=w==="x"?Me:Pe,ve=S[_],Ze=_==="y"?"height":"width",Ot=ve+h[Yt],rt=ve-h[qt],et=[Oe,Ee].indexOf(C)!==-1,Ue=(At=R==null?void 0:R[_])!=null?At:0,Et=et?Ot:ve-N[Ze]-I[Ze]-Ue+A.altAxis,it=et?ve+N[Ze]+I[Ze]-Ue-A.altAxis:rt,bt=y&&et?Yf(Et,ve,it):fo(y?Et:Ot,ve,y?it:rt);S[_]=bt,v[_]=bt-ve}o.modifiersData[a]=v}}const Sm={name:"preventOverflow",enabled:!0,phase:"main",fn:_m,requiresIfExists:["offset"]};function Tm(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Nm(t){return t===$e(t)||!je(t)?Zn(t):Tm(t)}function Am(t){var o=t.getBoundingClientRect(),n=Ut(o.width)/t.offsetWidth||1,a=Ut(o.height)/t.offsetHeight||1;return n!==1||a!==1}function Om(t,o,n){n===void 0&&(n=!1);var a=je(o),l=je(o)&&Am(o),r=mt(o),s=zt(t,l,n),d={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(a||!a&&!n)&&((Ke(o)!=="body"||ta(r))&&(d=Nm(o)),je(o)?(i=zt(o,!0),i.x+=o.clientLeft,i.y+=o.clientTop):r&&(i.x=ea(r))),{x:s.left+d.scrollLeft-i.x,y:s.top+d.scrollTop-i.y,width:s.width,height:s.height}}function Em(t){var o=new Map,n=new Set,a=[];t.forEach(function(r){o.set(r.name,r)});function l(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(d){if(!n.has(d)){var i=o.get(d);i&&l(i)}}),a.push(r)}return t.forEach(function(r){n.has(r.name)||l(r)}),a}function Bm(t){var o=Em(t);return Rf.reduce(function(n,a){return n.concat(o.filter(function(l){return l.phase===a}))},[])}function Lm(t){var o;return function(){return o||(o=new Promise(function(n){Promise.resolve().then(function(){o=void 0,n(t())})})),o}}function Vm(t){var o=t.reduce(function(n,a){var l=n[a.name];return n[a.name]=l?Object.assign({},l,a,{options:Object.assign({},l.options,a.options),data:Object.assign({},l.data,a.data)}):a,n},{});return Object.keys(o).map(function(n){return o[n]})}var Sr={placement:"bottom",modifiers:[],strategy:"absolute"};function Tr(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return!o.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function Fm(t){t===void 0&&(t={});var o=t,n=o.defaultModifiers,a=n===void 0?[]:n,l=o.defaultOptions,r=l===void 0?Sr:l;return function(d,i,c){c===void 0&&(c=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Sr,r),modifiersData:{},elements:{reference:d,popper:i},attributes:{},styles:{}},u=[],f=!1,y={state:p,setOptions:function(C){var g=typeof C=="function"?C(p.options):C;m(),p.options=Object.assign({},r,p.options,g),p.scrollParents={reference:_t(d)?mo(d):d.contextElement?mo(d.contextElement):[],popper:mo(i)};var T=Bm(Vm([].concat(a,p.options.modifiers)));return p.orderedModifiers=T.filter(function(w){return w.enabled}),b(),y.update()},forceUpdate:function(){if(!f){var C=p.elements,g=C.reference,T=C.popper;if(Tr(g,T)){p.rects={reference:Om(g,uo(T),p.options.strategy==="fixed"),popper:Qn(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(A){return p.modifiersData[A.name]=Object.assign({},A.data)});for(var w=0;w<p.orderedModifiers.length;w++){if(p.reset===!0){p.reset=!1,w=-1;continue}var _=p.orderedModifiers[w],S=_.fn,N=_.options,I=N===void 0?{}:N,F=_.name;typeof S=="function"&&(p=S({state:p,options:I,name:F,instance:y})||p)}}}},update:Lm(function(){return new Promise(function(h){y.forceUpdate(),h(p)})}),destroy:function(){m(),f=!0}};if(!Tr(d,i))return y;y.setOptions(c).then(function(h){!f&&c.onFirstUpdate&&c.onFirstUpdate(h)});function b(){p.orderedModifiers.forEach(function(h){var C=h.name,g=h.options,T=g===void 0?{}:g,w=h.effect;if(typeof w=="function"){var _=w({state:p,name:C,instance:y,options:T}),S=function(){};u.push(_||S)}})}function m(){u.forEach(function(h){return h()}),u=[]}return y}}var $m=[nm,km,tm,Gf,Cm,mm,Sm,Qf,bm],vm=Fm({defaultModifiers:$m});function na(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Nr(t,o){if(t){if(typeof t=="string")return na(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?na(t,o):void 0}}function Im(t){return function(o){if(Array.isArray(o))return na(o)}(t)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(t)||Nr(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ht(t){return Ht=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ht(t)}function Ar(t,o,n,a,l,r,s){try{var d=t[r](s),i=d.value}catch(c){return void n(c)}d.done?o(i):Promise.resolve(i).then(a,l)}function Or(t){return function(){var o=this,n=arguments;return new Promise(function(a,l){var r=t.apply(o,n);function s(i){Ar(r,a,l,s,d,"next",i)}function d(i){Ar(r,a,l,s,d,"throw",i)}s(void 0)})}}var Er={exports:{}},Br={exports:{}};(function(t){function o(n){return t.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,o(n)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(Br),function(t){var o=Br.exports.default;function n(){t.exports=n=function(){return l},t.exports.__esModule=!0,t.exports.default=t.exports;var a,l={},r=Object.prototype,s=r.hasOwnProperty,d=Object.defineProperty||function(x,B,M){x[B]=M.value},i=typeof Symbol=="function"?Symbol:{},c=i.iterator||"@@iterator",p=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function f(x,B,M){return Object.defineProperty(x,B,{value:M,enumerable:!0,configurable:!0,writable:!0}),x[B]}try{f({},"")}catch{f=function(B,M,V){return B[M]=V}}function y(x,B,M,V){var D=B&&B.prototype instanceof w?B:w,U=Object.create(D.prototype),H=new L(V||[]);return d(U,"_invoke",{value:$(x,M,H)}),U}function b(x,B,M){try{return{type:"normal",arg:x.call(B,M)}}catch(V){return{type:"throw",arg:V}}}l.wrap=y;var m="suspendedStart",h="suspendedYield",C="executing",g="completed",T={};function w(){}function _(){}function S(){}var N={};f(N,c,function(){return this});var I=Object.getPrototypeOf,F=I&&I(I(P([])));F&&F!==r&&s.call(F,c)&&(N=F);var A=S.prototype=w.prototype=Object.create(N);function R(x){["next","throw","return"].forEach(function(B){f(x,B,function(M){return this._invoke(B,M)})})}function v(x,B){function M(D,U,H,q){var Q=b(x[D],x,U);if(Q.type!=="throw"){var Z=Q.arg,oe=Z.value;return oe&&o(oe)=="object"&&s.call(oe,"__await")?B.resolve(oe.__await).then(function(le){M("next",le,H,q)},function(le){M("throw",le,H,q)}):B.resolve(oe).then(function(le){Z.value=le,H(Z)},function(le){return M("throw",le,H,q)})}q(Q.arg)}var V;d(this,"_invoke",{value:function(D,U){function H(){return new B(function(q,Q){M(D,U,q,Q)})}return V=V?V.then(H,H):H()}})}function $(x,B,M){var V=m;return function(D,U){if(V===C)throw new Error("Generator is already running");if(V===g){if(D==="throw")throw U;return{value:a,done:!0}}for(M.method=D,M.arg=U;;){var H=M.delegate;if(H){var q=k(H,M);if(q){if(q===T)continue;return q}}if(M.method==="next")M.sent=M._sent=M.arg;else if(M.method==="throw"){if(V===m)throw V=g,M.arg;M.dispatchException(M.arg)}else M.method==="return"&&M.abrupt("return",M.arg);V=C;var Q=b(x,B,M);if(Q.type==="normal"){if(V=M.done?g:h,Q.arg===T)continue;return{value:Q.arg,done:M.done}}Q.type==="throw"&&(V=g,M.method="throw",M.arg=Q.arg)}}}function k(x,B){var M=B.method,V=x.iterator[M];if(V===a)return B.delegate=null,M==="throw"&&x.iterator.return&&(B.method="return",B.arg=a,k(x,B),B.method==="throw")||M!=="return"&&(B.method="throw",B.arg=new TypeError("The iterator does not provide a '"+M+"' method")),T;var D=b(V,x.iterator,B.arg);if(D.type==="throw")return B.method="throw",B.arg=D.arg,B.delegate=null,T;var U=D.arg;return U?U.done?(B[x.resultName]=U.value,B.next=x.nextLoc,B.method!=="return"&&(B.method="next",B.arg=a),B.delegate=null,T):U:(B.method="throw",B.arg=new TypeError("iterator result is not an object"),B.delegate=null,T)}function E(x){var B={tryLoc:x[0]};1 in x&&(B.catchLoc=x[1]),2 in x&&(B.finallyLoc=x[2],B.afterLoc=x[3]),this.tryEntries.push(B)}function O(x){var B=x.completion||{};B.type="normal",delete B.arg,x.completion=B}function L(x){this.tryEntries=[{tryLoc:"root"}],x.forEach(E,this),this.reset(!0)}function P(x){if(x||x===""){var B=x[c];if(B)return B.call(x);if(typeof x.next=="function")return x;if(!isNaN(x.length)){var M=-1,V=function D(){for(;++M<x.length;)if(s.call(x,M))return D.value=x[M],D.done=!1,D;return D.value=a,D.done=!0,D};return V.next=V}}throw new TypeError(o(x)+" is not iterable")}return _.prototype=S,d(A,"constructor",{value:S,configurable:!0}),d(S,"constructor",{value:_,configurable:!0}),_.displayName=f(S,u,"GeneratorFunction"),l.isGeneratorFunction=function(x){var B=typeof x=="function"&&x.constructor;return!!B&&(B===_||(B.displayName||B.name)==="GeneratorFunction")},l.mark=function(x){return Object.setPrototypeOf?Object.setPrototypeOf(x,S):(x.__proto__=S,f(x,u,"GeneratorFunction")),x.prototype=Object.create(A),x},l.awrap=function(x){return{__await:x}},R(v.prototype),f(v.prototype,p,function(){return this}),l.AsyncIterator=v,l.async=function(x,B,M,V,D){D===void 0&&(D=Promise);var U=new v(y(x,B,M,V),D);return l.isGeneratorFunction(B)?U:U.next().then(function(H){return H.done?H.value:U.next()})},R(A),f(A,u,"Generator"),f(A,c,function(){return this}),f(A,"toString",function(){return"[object Generator]"}),l.keys=function(x){var B=Object(x),M=[];for(var V in B)M.push(V);return M.reverse(),function D(){for(;M.length;){var U=M.pop();if(U in B)return D.value=U,D.done=!1,D}return D.done=!0,D}},l.values=P,L.prototype={constructor:L,reset:function(x){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(O),!x)for(var B in this)B.charAt(0)==="t"&&s.call(this,B)&&!isNaN(+B.slice(1))&&(this[B]=a)},stop:function(){this.done=!0;var x=this.tryEntries[0].completion;if(x.type==="throw")throw x.arg;return this.rval},dispatchException:function(x){if(this.done)throw x;var B=this;function M(Q,Z){return U.type="throw",U.arg=x,B.next=Q,Z&&(B.method="next",B.arg=a),!!Z}for(var V=this.tryEntries.length-1;V>=0;--V){var D=this.tryEntries[V],U=D.completion;if(D.tryLoc==="root")return M("end");if(D.tryLoc<=this.prev){var H=s.call(D,"catchLoc"),q=s.call(D,"finallyLoc");if(H&&q){if(this.prev<D.catchLoc)return M(D.catchLoc,!0);if(this.prev<D.finallyLoc)return M(D.finallyLoc)}else if(H){if(this.prev<D.catchLoc)return M(D.catchLoc,!0)}else{if(!q)throw new Error("try statement without catch or finally");if(this.prev<D.finallyLoc)return M(D.finallyLoc)}}}},abrupt:function(x,B){for(var M=this.tryEntries.length-1;M>=0;--M){var V=this.tryEntries[M];if(V.tryLoc<=this.prev&&s.call(V,"finallyLoc")&&this.prev<V.finallyLoc){var D=V;break}}D&&(x==="break"||x==="continue")&&D.tryLoc<=B&&B<=D.finallyLoc&&(D=null);var U=D?D.completion:{};return U.type=x,U.arg=B,D?(this.method="next",this.next=D.finallyLoc,T):this.complete(U)},complete:function(x,B){if(x.type==="throw")throw x.arg;return x.type==="break"||x.type==="continue"?this.next=x.arg:x.type==="return"?(this.rval=this.arg=x.arg,this.method="return",this.next="end"):x.type==="normal"&&B&&(this.next=B),T},finish:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var M=this.tryEntries[B];if(M.finallyLoc===x)return this.complete(M.completion,M.afterLoc),O(M),T}},catch:function(x){for(var B=this.tryEntries.length-1;B>=0;--B){var M=this.tryEntries[B];if(M.tryLoc===x){var V=M.completion;if(V.type==="throw"){var D=V.arg;O(M)}return D}}throw new Error("illegal catch attempt")},delegateYield:function(x,B,M){return this.delegate={iterator:P(x),resultName:B,nextLoc:M},this.method==="next"&&(this.arg=a),T}},l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Er);var Io=Er.exports(),Do=Io;try{regeneratorRuntime=Io}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Io:Function("r","regeneratorRuntime = r")(Io)}function Dm(t){var o=function(n,a){if(Ht(n)!=="object"||n===null)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var r=l.call(n,a||"default");if(Ht(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}(t,"string");return Ht(o)==="symbol"?o:String(o)}function aa(t,o,n){return(o=Dm(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Mo=e.defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return{width:"".concat(t.size,"px"),height:"".concat(t.size,"px"),background:"hsl(".concat(t.hue,", 100%, 50%)")}});return{saturationStyle:a,sliderStyle:e.computed(function(){return{top:"".concat((100-t.value)/100*t.size-5,"px"),left:"".concat(t.saturation*t.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(l){var r=l.target.getBoundingClientRect(),s=r.left,d=r.top,i=function(c){var p=c.clientX,u=c.clientY,f=p-s,y=u-d;f<0&&(f=0),y<0&&(y=0),f>t.size&&(f=t.size),y>t.size&&(y=t.size);var b=f/t.size*100,m=100-y/t.size*100;n("change",b,m)};i(l),document.addEventListener("mousemove",i),document.addEventListener("mouseup",function c(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c)})}}}}),Lr=function(t){return e.pushScopeId("data-v-24517fec"),t=t(),e.popScopeId(),t},Mm=Lr(function(){return e.createElementVNode("div",{class:"saturation-white"},null,-1)}),Pm=Lr(function(){return e.createElementVNode("div",{class:"saturation-black"},null,-1)});function lt(t,o){o===void 0&&(o={});var n=o.insertAt;if(t&&typeof document<"u"){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",n==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}lt(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),Mo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"saturation",style:e.normalizeStyle(t.saturationStyle),onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[Mm,Pm,e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],36)},Mo.__scopeId="data-v-24517fec",Mo.__file="src/picker/Saturation.vue";var Po=e.defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return{top:"".concat((1-t.hue/360)*t.height-2,"px"),height:"".concat(4,"px")}}),l=e.ref();return e.onMounted(function(){(function(){l.value.width=t.width,l.value.height=t.height;var r=l.value.getContext("2d"),s=r.createLinearGradient(0,0,0,t.height);s.addColorStop(0,"#FF0000"),s.addColorStop(.17,"#FF00FF"),s.addColorStop(.34,"#0000FF"),s.addColorStop(.51,"#00FFFF"),s.addColorStop(.68,"#00FF00"),s.addColorStop(.17*5,"#FFFF00"),s.addColorStop(1,"#FF0000"),r.fillStyle=s,r.fillRect(0,0,t.width,t.height)})()}),{canvas:l,sliderStyle:a,onSelect:function(r){var s=r.target.getBoundingClientRect().top,d=function(i){var c=i.clientY-s;c<0&&(c=0),c>t.height&&(c=t.height);var p=-100*c/t.height+100;n("change",360*p/100)};d(r),document.addEventListener("mousemove",d),document.addEventListener("mouseup",function i(){document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",i)})}}}}),jm={ref:"canvas"};lt(".hue[data-v-78b9f4f0]{position:relative}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Po.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"hue",onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[e.createElementVNode("canvas",jm,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},Po.__scopeId="data-v-78b9f4f0",Po.__file="src/picker/Hue.vue";var jo=e.defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(t,o){var n=o.emit,a=e.computed(function(){return{top:"".concat(t.alpha*t.height-2,"px"),height:"".concat(4,"px")}}),l=e.ref(),r=function(){var s=l.value.getContext("2d");l.value.width=t.width,l.value.height=t.height;var d=function(c){var p=document.createElement("canvas"),u=p.getContext("2d"),f=2*c;return p.width=f,p.height=f,u.fillStyle="#ffffff",u.fillRect(0,0,f,f),u.fillStyle="#ccd5db",u.fillRect(0,0,c,c),u.fillRect(c,c,c,c),p}(5);s.fillStyle=s.createPattern(d,"repeat"),s.fillRect(0,0,t.width,t.height);var i=s.createLinearGradient(0,0,0,t.height);i.addColorStop(.01,"rgba(255,255,255,0)"),i.addColorStop(.99,t.color),s.fillStyle=i,s.fillRect(0,0,t.width,t.height)};return e.watch(function(){return t.color},function(){r()}),e.onMounted(function(){r()}),{canvas:l,sliderStyle:a,onSelect:function(s){var d=s.target.getBoundingClientRect().top,i=function(c){var p=c.clientY-d;p<0&&(p=0),p>t.height&&(p=t.height);var u=parseFloat((p/t.height).toFixed(2));n("change",u)};i(s),document.addEventListener("mousemove",i),document.addEventListener("mouseup",function c(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",c)})}}}}),Rm={ref:"canvas"};lt(".alpha[data-v-24dc9656]{position:relative}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),jo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"alpha",onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[e.createElementVNode("canvas",Rm,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},jo.__scopeId="data-v-24dc9656",jo.__file="src/picker/Alpha.vue";var Ro=e.defineComponent({name:"Input",props:{label:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number,default:168}},emits:["change","focus","blur","enter"],setup:function(t,o){var n=o.emit;return{onInput:function(a){var l;n("change",(l=a.target)===null||l===void 0?void 0:l.value)},valueStyle:e.computed(function(){return{minWidth:"".concat(t.width,"px"),maxWidth:"".concat(t.width,"px"),width:"".concat(t.width,"px")}}),onFocus:function(){n("focus")},onBlur:function(){n("blur")},onEnter:function(){n("enter")}}}}),Um={class:"input"},zm={class:"label"},Gm=[".value"];function bo(t,o){return function(n){if(Array.isArray(n))return n}(t)||function(n,a){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var r,s,d,i,c=[],p=!0,u=!1;try{if(d=(l=l.call(n)).next,a===0){if(Object(l)!==l)return;p=!1}else for(;!(p=(r=d.call(l)).done)&&(c.push(r.value),c.length!==a);p=!0);}catch(f){u=!0,s=f}finally{try{if(!p&&l.return!=null&&(i=l.return(),Object(i)!==i))return}finally{if(u)throw s}}return c}}(t,o)||Nr(t,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Vr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function Re(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Vr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Vr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}lt(".input[data-v-d52a4d02]{display:inline-block;font-size:12px}.label[data-v-d52a4d02]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;width:45px}[pick-colors-theme=dark] .label[data-v-d52a4d02]{background:#252930;color:#999}.value[data-v-d52a4d02]{background:#eceef0;border:1px solid #eceef0;box-sizing:border-box;color:#666;flex:1;height:30px;text-align:center}[pick-colors-theme=dark] .value[data-v-d52a4d02]{background:#2e333a;border:1px solid #2e333a;color:#fff}.value[data-v-d52a4d02]:focus{border:1px solid #1890ff;outline:none}"),Ro.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Um,[e.createElementVNode("span",zm,e.toDisplayString(t.label),1),e.createElementVNode("input",{class:"value",style:e.normalizeStyle(t.valueStyle),".value":t.value,onFocus:o[0]||(o[0]=function(){return t.onFocus&&t.onFocus.apply(t,arguments)}),onInput:o[1]||(o[1]=function(){return t.onInput&&t.onInput.apply(t,arguments)}),onBlur:o[2]||(o[2]=function(){return t.onBlur&&t.onBlur.apply(t,arguments)}),onKeydown:o[3]||(o[3]=e.withKeys(function(){return t.onEnter&&t.onEnter.apply(t,arguments)},["enter"]))},null,44,Gm)])},Ro.__scopeId="data-v-d52a4d02",Ro.__file="src/picker/InputValue.vue";var Fr=function(t,o,n){return[t,o*n/((t=(2-o)*n)<1?t:2-t)||0,t/2]},$r={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Uo=function(t){t=Math.min(Math.round(t),255);var o=Math.floor(t/16),n=t%16;return"".concat($r[o]||o).concat($r[n]||n)},vr=function(t){var o=t.r,n=t.g,a=t.b;return isNaN(o)||isNaN(n)||isNaN(a)?"":"#".concat(Uo(o)).concat(Uo(n)).concat(Uo(a))},Wt=function(t,o){var n;typeof(n=t)=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1&&(t="100%");var a=function(l){return typeof l=="string"&&l.indexOf("%")!==-1}(t);return t=Math.min(o,Math.max(0,parseFloat("".concat(t)))),a&&(t=parseInt("".concat(t*o),10)/100),Math.abs(t-o)<1e-6?1:t%o/parseFloat(o)},yo=function(t,o,n){t=6*Wt(t,360),o=Wt(o,100),n=Wt(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),d=n*(1-(1-l)*o),i=a%6,c=[n,s,r,r,d,n][i],p=[d,n,n,s,r,r][i],u=[r,r,d,n,n,s][i];return{r:Math.round(255*c),g:Math.round(255*p),b:Math.round(255*u)}},Ir=function(t,o,n){var a=t.h,l=t.s,r=t.v,s=t.a;if(n)switch(o){case"hsl":var d=Fr(a,l/100,r/100);return"hsla(".concat(a.toFixed(0),", ").concat(Math.round(100*d[1]),"%, ").concat(Math.round(100*d[2]),"%, ").concat(s,")");case"hsv":return"hsva(".concat(a.toFixed(0),", ").concat(Math.round(l),"%, ").concat(Math.round(r),"%, ").concat(s,")");case"rgb":var i=yo(a,l,r),c=i.r,p=i.g,u=i.b;return"rgba(".concat(c,", ").concat(p,", ").concat(u,", ").concat(s,")");default:return"".concat(vr(yo(a,l,r))).concat(Uo(255*s))}else switch(o){case"hsl":var f=Fr(a,l/100,r/100);return"hsl(".concat(a.toFixed(0),", ").concat(Math.round(100*f[1]),"%, ").concat(Math.round(100*f[2]),"%)");case"hsv":return"hsv(".concat(a.toFixed(0),", ").concat(Math.round(l),"%, ").concat(Math.round(r),"%)");case"rgb":var y=yo(a,l,r),b=y.r,m=y.g,h=y.b;return"rgb(".concat(b,", ").concat(m,", ").concat(h,")");default:return vr(yo(a,l,r))}},zo=function(t){var o=t.r,n=t.g,a=t.b;o=Wt(o,255),n=Wt(n,255),a=Wt(a,255);var l,r=Math.max(o,n,a),s=Math.min(o,n,a),d=r,i=r-s,c=r===0?0:i/r;if(r===s)l=0;else{switch(r){case o:l=(n-a)/i+(n<a?6:0);break;case n:l=(a-o)/i+2;break;case a:l=(o-n)/i+4}l/=6}return{h:360*l,s:100*c,v:100*d}},Dr=function(t){var o=t.h,n=t.s,a=t.l;a/=100;var l=n/=100,r=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,l*=r<=1?r:2-r,{h:+o,s:100*(a===0?2*l/(r+l):2*n/(a+n)),v:100*((a+n)/2)}},Mr=function(t){var o=[];if(t.match(/^#([0-9a-fA-f]{3,4})$/g))for(var n=1;n<t.length;n++)o.push(parseInt("0x"+t[n].repeat(2)));else if(t.match(/^#([0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/g))for(var a=1;a<t.length;a+=2)o.push(parseInt("0x"+t.slice(a,a+2)));return{r:o[0],g:o[1],b:o[2],a:o[3]}},la=function(t,o,n){if(typeof t=="string"&&t!==""){var a=ra(t,ia(t),n),l=Ur(a);return Ir(l,o,n)}return""},Pr=function(t){var o=bo(t.match(/(\d(\.\d+)?)+/g),4);return{r:o[0],g:o[1],b:o[2],a:o[3]}},jr=function(t){var o=bo(t.match(/(\d(\.\d+)?)+/g),4),n=o[0],a=o[1],l=o[2],r=o[3];return{h:n,s:parseFloat(a),l:parseFloat(l),a:r}},Rr=function(t){var o=bo(t.match(/(\d(\.\d+)?)+/g),4),n=o[0],a=o[1],l=o[2],r=o[3];return{h:parseFloat(n),s:parseFloat(a),v:parseFloat(l),a:parseFloat(r)}},ra=function(t,o){if(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])switch(o){case"rgb":var n=Pr(t),a=n.r,l=n.g,r=n.b,s=n.a;return Re(Re({},zo({r:a,g:l,b:r})),{},{a:+s});case"hsv":var d=Rr(t);return{h:d.h,s:d.s,v:d.v,a:d.a};case"hsl":var i=jr(t),c=i.h,p=i.s,u=i.l,f=i.a;return Re(Re({},Dr({h:c,s:p,l:u})),{},{a:+f});default:var y=Mr(t),b=y.r,m=y.g,h=y.b,C=y.a;return Re(Re({},zo({r:b,g:m,b:h})),{},{a:C/255})}else switch(o){case"rgb":return Re(Re({},zo(Pr(t))),{},{a:1});case"hsv":var g=Rr(t);return{h:g.h,s:g.s,v:g.v,a:1};case"hsl":return Re(Re({},Dr(jr(t))),{},{a:1});default:return Re(Re({},zo(Mr(t))),{},{a:1})}},ia=function(t){return t.match(/^#/)?"hex":t.match(/^rgb/)?"rgb":t.match(/^hsl/)?"hsl":t.match(/^hsv/)?"hsv":"hex"},Ur=function(t){var o=t.h,n=t.s,a=t.v,l=t.a;return isNaN(o)&&(o=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(l)&&(l=1),{h:o,s:n,v:a,a:l}},go=e.defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(t){var o=e.ref(),n=e.inject("theme",{theme:"light"}).theme,a=e.computed(function(){return parseFloat((t.width||t.size)+"")}),l=e.computed(function(){return parseFloat((t.height||t.size)+"")}),r=e.computed(function(){return{width:"".concat(e.unref(a),"px"),height:"".concat(e.unref(l),"px"),border:t.border?"1px solid ".concat(e.unref(n)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(t.borderRadius,"px"),boxShadow:t.selected?"0 0 3px 2px ".concat(e.unref(n)==="dark"?"#2681ff":"#1890ff"):""}}),s=function(){var d=o.value.getContext("2d");o.value.width=e.unref(a),o.value.height=e.unref(l);var i=function(c){var p=document.createElement("canvas"),u=p.getContext("2d"),f=2*c;return p.width=f,p.height=f,u.fillStyle="#ffffff",u.fillRect(0,0,f,f),u.fillStyle="#ccd5db",u.fillRect(0,0,c,c),u.fillRect(c,c,c,c),p}(5);d.fillStyle=d.createPattern(i,"repeat"),d.fillRect(0,0,e.unref(a),e.unref(l)),d.fillStyle=t.value,d.fillRect(0,0,e.unref(a),e.unref(l))};return e.watch(function(){return t.value},function(){s()}),e.onMounted(function(){s()}),{canvas:o,colorItemStyle:r}}}),Hm=["draggable"];lt(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),go.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("canvas",{class:"color-item",style:e.normalizeStyle(t.colorItemStyle),ref:"canvas",draggable:t.draggable},null,12,Hm)},go.__scopeId="data-v-02da71fd",go.__file="src/color-item/ColorItem.vue";var Go=e.defineComponent({name:"Colors",components:{ColorItem:go},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(t,o){var n=o.emit;return{onSelectColor:function(a,l){n("change",a,l)},useColors:e.computed(function(){return t.colors.map(function(a){return la(a,"hex",!0)})})}}}),Wm={class:"colors"};function zr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function Qe(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?zr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):zr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}lt(".colors[data-v-0f8b52a8]{align-items:center;display:flex;flex-wrap:wrap;margin-top:5px}.color-item[data-v-0f8b52a8]{margin:5px}"),Go.render=function(t,o,n,a,l,r){var s=e.resolveComponent("color-item");return e.openBlock(),e.createElementBlock("div",Wm,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.useColors,function(d,i){return e.openBlock(),e.createBlock(s,{key:i,class:"color-item",size:16,value:d,border:!1,"border-radius":3,selected:t.selectedIndex===i,onClick:e.withModifiers(function(c){return t.onSelectColor(d,+i)},["stop","prevent"])},null,8,["value","selected","onClick"])}),128))])},Go.__scopeId="data-v-0f8b52a8",Go.__file="src/picker/Colors.vue";var Ho=e.defineComponent({name:"Picker",components:{Colors:Go,Saturation:Mo,Hue:Po,Alpha:jo,InputValue:Ro},props:{format:{type:String,default:"hex"},showAlpha:{type:Boolean,default:!1},value:{type:String,default:""},colors:{type:Array,default:function(){return[]}},style:{type:Object,default:function(){return{}}}},emits:["change","update:value"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return Qe(Qe({},t.style),{},{width:t.showAlpha?"230px":"205px"})}),l=e.computed(function(){return t.showAlpha?165:140}),r=e.ref(),s=e.ref(),d=e.ref(),i=function(){var g,T=(g=t.value)===null||g===void 0?void 0:g.trim();if(T!=null&&T!==""){var w=ia(T);return Ur(ra(T,w,t.showAlpha))}return null};e.watch(function(){return t.value},function(){t.value!==e.unref(d)&&(r.value=i())},{immediate:!0}),e.watch(r,function(g,T){var w="";g!=null?(w=Ir(Qe({},g),t.format,t.showAlpha),s.value=Qe({},g)):s.value=null,d.value=w;var _=i();JSON.stringify(g)!==JSON.stringify(_)&&JSON.stringify(g)!==JSON.stringify(T)&&n("change",w)},{immediate:!0});var c=e.computed(function(){var g;return((g=e.unref(r))===null||g===void 0?void 0:g.h)||0}),p=e.computed(function(){var g;return((g=e.unref(r))===null||g===void 0?void 0:g.s)||0}),u=e.computed(function(){var g;return((g=e.unref(r))===null||g===void 0?void 0:g.v)||0}),f=e.computed(function(){var g,T;return((g=e.unref(r))===null||g===void 0?void 0:g.a)!=null?(T=e.unref(r))===null||T===void 0?void 0:T.a:1}),y=e.computed(function(){return yo(e.unref(c),e.unref(p),e.unref(u))}),b=e.computed(function(){return"rgb(".concat(e.unref(y).r,", ").concat(e.unref(y).g,", ").concat(e.unref(y).b,")")}),m=e.computed(function(){var g=t.format;if(t.showAlpha)switch(g){case"hsv":return"HSVA";case"hsl":return"HSLA";case"rgb":return"RGBA";default:return"HEX"}else switch(g){case"hsv":return"HSV";case"hsl":return"HSL";case"rgb":return"RGB";default:return"HEX"}}),h=e.ref(-1),C=function(g,T,w){if(g.length!==0){var _=ra(g,T,w),S=_.h,N=_.s,I=_.v;if(!(isNaN(S)||isNaN(N)||isNaN(I))){var F=1,A=_.a;isNaN(A)||(F=A),r.value={h:S,s:N,v:I,a:F}}}};return{h:c,s:p,v:u,a:f,rgbStr:b,onSelectSaturation:function(g,T){h.value=-1,e.unref(r)==null?r.value={h:e.unref(c),s:g,v:T,a:e.unref(f)}:r.value=Qe(Qe({},e.unref(r)),{},{s:g,v:T})},onSelectHue:function(g){h.value=-1,e.unref(r)==null&&(r.value={h:g,s:e.unref(p),v:e.unref(u),a:e.unref(f)}),r.value=Qe(Qe({},e.unref(r)),{},{h:g})},onSelectAlpha:function(g){h.value=-1,e.unref(r)==null?r.value={h:e.unref(c),s:e.unref(p),v:e.unref(u),a:g}:r.value=Qe(Qe({},e.unref(r)),{},{a:g})},label:m,colorValue:d,pickerStyle:a,inputWidth:l,onInputChange:function(g){h.value=-1,d.value=g},handleChange:function(){var g,T=(g=e.unref(d))===null||g===void 0?void 0:g.trim();if(T!==""){var w=t.showAlpha,_=t.format,S=function(N,I,F){if(F)switch(I){case"rgb":return/^[rR][gG][Bb][Aa][(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\s]*,){3}[\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*[)]{1}$/.test(N);case"hsv":return/^[hH][Ss][Vv][Aa][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,){2}([\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*)[)]$/.test(N);case"hsl":return/^[hH][Ss][Ll][Aa][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,){2}([\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*)[)]$/.test(N);default:return/^#([0-9a-fA-f]{4}|[0-9a-fA-F]{8})$/g.test(N)}else switch(I){case"rgb":return/^[rR][gG][Bb][(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\s]*,){2}[\s]*(2[0-4]\d|25[0-5]|[01]?\d\d?)[\s]*[)]{1}$/.test(N);case"hsv":return/^[hH][Ss][Vv][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*)[)]$/.test(N);case"hsl":return/^[hH][Ss][Ll][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*)[)]$/.test(N);default:return/^#([0-9a-fA-f]{3}|[0-9a-fA-F]{6})$/g.test(N)}}(T,_,w);S?C(T,_,w):e.unref(s)!=null?r.value=e.unref(s):d.value=""}else r.value=null},selectColorIndex:h,onSelectColor:function(g,T){if(h.value=T,(g=g.trim())==="")r.value=null;else{var w=ia(g);w?C(g,w,!0):r.value=null}}}}}),Ym={class:"picker-inner"},qm={class:"picker-header"};lt(".picker[data-v-6ceadec6]{background:#f7f8f9;border-radius:4px;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-inner[data-v-6ceadec6]{padding:10px}[pick-colors-theme=dark] .picker-inner[data-v-6ceadec6]{background:#1d2024;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-header[data-v-6ceadec6]{display:flex;margin-bottom:5px}.alpha[data-v-6ceadec6],.hue[data-v-6ceadec6]{margin-left:10px}.colors[data-v-6ceadec6]{margin-top:5px}"),Ho.render=function(t,o,n,a,l,r){var s=e.resolveComponent("saturation"),d=e.resolveComponent("hue"),i=e.resolveComponent("alpha"),c=e.resolveComponent("input-value"),p=e.resolveComponent("Colors");return e.openBlock(),e.createElementBlock("div",{class:"picker",style:e.normalizeStyle(t.pickerStyle)},[e.createElementVNode("div",Ym,[e.createElementVNode("div",qm,[e.createVNode(s,{class:"saturation",hue:t.h,saturation:t.s,value:t.v,onChange:t.onSelectSaturation},null,8,["hue","saturation","value","onChange"]),e.createVNode(d,{class:"hue",hue:t.h,onChange:t.onSelectHue},null,8,["hue","onChange"]),t.showAlpha?(e.openBlock(),e.createBlock(i,{key:0,class:"alpha",alpha:t.a,color:t.rgbStr,onChange:t.onSelectAlpha},null,8,["alpha","color","onChange"])):e.createCommentVNode("v-if",!0)]),e.createVNode(c,{label:t.label,value:t.colorValue,width:t.inputWidth,onChange:t.onInputChange,onBlur:t.handleChange,onEnter:t.handleChange},null,8,["label","value","width","onChange","onBlur","onEnter"]),t.colors.length>0?(e.openBlock(),e.createBlock(p,{key:0,class:"colors",colors:t.colors,"selected-index":t.selectColorIndex,onChange:t.onSelectColor},null,8,["colors","selected-index","onChange"])):e.createCommentVNode("v-if",!0)])],4)},Ho.__scopeId="data-v-6ceadec6",Ho.__file="src/picker/Picker.vue";var Wo=e.defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(t){var o=e.inject("theme",{theme:"light"}).theme;return{addColorItemStyle:e.computed(function(){return{width:"".concat(t.size,"px"),height:"".concat(t.size,"px"),lineHeight:"".concat(t.size,"px"),boxShadow:t.selected?"0 0 3px 2px ".concat(e.unref(o)==="dark"?"#2681ff":"#1890ff"):""}})}}}),Km=[function(t){return e.pushScopeId("data-v-ceb1719c"),t=t(),e.popScopeId(),t}(function(){return e.createElementVNode("g",{class:"container"},[e.createElementVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)})];function Gr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function sa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Gr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}lt(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Wo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle(t.addColorItemStyle),class:"add-color-item",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[].concat(Km),4)},Wo.__scopeId="data-v-ceb1719c",Wo.__file="src/add-color-item/AddColorItem.vue";var Tt=null,Nt=e.defineComponent({name:"ColorPicker",components:{ColorItem:go,Picker:Ho,AddColorItem:Wo},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String,default:"hex"},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean]},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}}},emits:["change","update:value","update:showPicker","overflowMax","closePicker"],setup:function(t,o){var n=o.emit,a=e.ref([]),l=e.computed(function(){return e.unref(a).map(function(k){return la(k,"hex",t.showAlpha)})});e.watch(function(){return t.value},function(){var k=t.value||"",E=Array.isArray(k)?k:[k];a.value=E.map(function(O){return la(O,t.format,t.showAlpha)})},{immediate:!0});var r=e.ref(void 0),s=e.computed(function(){return e.unref(a)[e.unref(r)]}),d=e.ref(!1);e.watch(function(){return t.showPicker},function(){d.value=t.showPicker},{immediate:!0});var i,c,p,u,f,y,b,m=e.ref(null),h=e.ref(null),C=(i=m,c=h,p={zIndex:t.zIndex},u=e.ref({}),f={strategy:"absolute",placement:"auto",onFirstUpdate:function(){Tt.update()},modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!0}},{name:"flip",options:{fallbackPlacements:["top"],allowedAutoPlacements:["top","bottom"]}},{name:"applyStyles",enabled:!1},{name:"updateState",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(k){var E=k.state,O=E.styles,L=E.placement,P=O.popper;u.value=sa(sa(sa({},P),p),{},{transformOrigin:L==="top"?"center bottom":""})}}]},e.watch(function(){return[e.unref(i),e.unref(c)]},function(k,E){var O,L=bo(k,2),P=L[0],x=L[1],B=bo(E,2),M=B[0],V=B[1];if(P&&x&&(M!==P||V!==M)){(O=Tt)===null||O===void 0||O.destroy();var D=P.$el||P,U=x.$el||x;e.nextTick(function(){Tt=vm(D,U,f)})}}),e.onBeforeUnmount(function(){var k;Tt&&((k=Tt)===null||k===void 0||k.destroy(),Tt=null)}),{instance:Tt,style:u}),g=C.style,T=function(){e.unref(m)==null&&(m.value=e.unref($)[0],r.value=0),t.showPicker===void 0?d.value=!0:n("update:showPicker",!0)},w=function(){r.value=void 0,t.showPicker===void 0?d.value=!1:n("update:showPicker",!1),n("closePicker",e.toRaw(Array.isArray(t.value)||t.addColor?e.unref(a):e.unref(a)[0]))},_=e.ref(),S=function(){var k=Or(Do.mark(function E(O){var L,P,x,B;return Do.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:if(P=O.target,(x=(L=P.dataset)===null||L===void 0?void 0:L.index)!=null&&x!==""){M.next=4;break}return M.abrupt("return");case 4:if(B=+x,e.unref(r)!==B){M.next=7;break}return M.abrupt("return");case 7:e.unref(r)!=null&&e.unref(r)!==B?(w(),y&&clearTimeout(y),y=setTimeout(function(){T(),clearTimeout(y)},100)):T(),r.value=B,m.value=P;case 10:case"end":return M.stop()}},E)}));return function(E){return k.apply(this,arguments)}}(),N=function(){var k=Or(Do.mark(function E(O){var L,P,x,B,M;return Do.wrap(function(V){for(;;)switch(V.prev=V.next){case 0:if(B=O.target,!(!((L=e.unref(_))!==null&&L!==void 0&&L.isEqualNode(B))&&(!((P=e.unref(_))===null||P===void 0)&&P.contains(B)))){V.next=4;break}return V.abrupt("return");case 4:if(M=(x=e.unref(h))===null||x===void 0?void 0:x.$el,!(M!=null&&M.contains(B))){V.next=8;break}return V.abrupt("return");case 8:b&&clearTimeout(b),b=setTimeout(function(){e.unref(d)&&w()},0);case 10:case"end":return V.stop()}},E)}));return function(E){return k.apply(this,arguments)}}();e.watch(d,function(){e.unref(d)&&(T(),clearTimeout(b))});var I,F=e.ref(t.max>e.unref(a).length),A=e.computed(function(){return typeof t.popupContainer=="string"||Ht(t.popupContainer)==="object"&&t.popupContainer!=null?t.popupContainer:"body"}),R=e.computed(function(){return typeof t.popupContainer=="boolean"&&t.popupContainer===!1}),v=e.computed(function(){return t.theme});e.watch(function(){return[t.theme,e.unref(h)]},function(){e.nextTick(function(){var k,E;(k=e.unref(_))===null||k===void 0||k.setAttribute("pick-colors-theme",e.unref(v)),(E=e.unref(h))===null||E===void 0||(E=E.$el)===null||E===void 0||E.setAttribute("pick-colors-theme",e.unref(v))})},{immediate:!0}),e.provide("theme",{theme:v});var $=e.ref([]);return e.onMounted(function(){document.addEventListener("mouseup",N,!1),t.showPicker&&T()}),e.onUnmounted(function(){document.removeEventListener("mouseup",N,!1),y&&(clearTimeout(y),y=null),b&&(clearTimeout(b),b=null)}),{valueList:a,colorItemSelected:function(k){return(t.addColor?e.unref(a).length>0:e.unref(a).length>1)&&e.unref(r)===k},selectedColor:s,selectedIndex:r,isShowPicker:d,addColorItemShow:F,onPickerChange:function(k){var E=e.unref(r),O=e.unref(a).slice(),L=e.unref(a).length;if(E!=null){E>=0?O[E]=k:(r.value=L,O.push(k));var P="";P=Array.isArray(t.value)||t.addColor?O:k,t.value===void 0?a.value=Array.isArray(P)?P:[P]:(n("update:value",P),n("change",P,k,E)),t.addColor&&L>=t.max&&(F.value=!1,n("overflowMax"))}},colorPicker:_,onColorClick:S,pickerRef:h,onColorItemDragStart:function(k){k.dataTransfer.effectAllowed="move";var E=k.target;I=+E.dataset.index},onColorItemDragOver:function(k){},onColorItemDrop:function(k){var E=+k.target.dataset.index,O=Im(e.unref(a)),L=O[I];O.splice(I,1);var P=O.slice(0,E),x=O.splice(E),B=P.concat([L]).concat(x);n("update:value",B),n("change",B,B[I],I)},colorItemsRef:$,pickerStyle:g,values:l,teleportDisabled:R,toPopupContainer:A}}});lt(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),Nt.render=function(t,o,n,a,l,r){var s=e.resolveComponent("color-item"),d=e.resolveComponent("add-color-item"),i=e.resolveComponent("picker");return e.openBlock(),e.createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:o[0]||(o[0]=e.withModifiers(function(){return t.onColorItemDragStart&&t.onColorItemDragStart.apply(t,arguments)},["stop"])),onDragover:o[1]||(o[1]=e.withModifiers(function(){return t.onColorItemDragOver&&t.onColorItemDragOver.apply(t,arguments)},["prevent","stop"])),onDrop:o[2]||(o[2]=e.withModifiers(function(){return t.onColorItemDrop&&t.onColorItemDrop.apply(t,arguments)},["prevent","stop"])),onClick:o[3]||(o[3]=e.withModifiers(function(){return t.onColorClick&&t.onColorClick.apply(t,arguments)},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.values,function(c,p){return e.openBlock(),e.createBlock(s,{class:"color-item",key:p,ref_for:!0,ref:function(u){return t.colorItemsRef[p]=u},size:t.size,width:t.width,height:t.height,value:c,selected:t.colorItemSelected(p),"data-index":p,draggable:t.valueList.length>1,format:t.format},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),t.addColor&&t.addColorItemShow?(e.openBlock(),e.createBlock(d,{key:0,class:"add-color-item",ref:"addColorItem",selected:t.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):e.createCommentVNode("v-if",!0),(e.openBlock(),e.createBlock(e.Teleport,{to:t.toPopupContainer,disabled:t.teleportDisabled},[e.createVNode(e.Transition,null,{default:e.withCtx(function(){return[t.isShowPicker?(e.openBlock(),e.createBlock(i,{key:0,class:"picker",style:e.normalizeStyle(t.pickerStyle),ref:"pickerRef",value:t.selectedColor,format:t.format,"show-alpha":t.showAlpha,colors:t.colors,onChange:t.onPickerChange},null,8,["style","value","format","show-alpha","colors","onChange"])):e.createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},Nt.__scopeId="data-v-3c43ade8",Nt.__file="src/ColorPicker.vue";const Xm=e.defineComponent({name:"ColorPick",components:{PickColors:Nt,AInput:j.Input},props:{value:{type:String,require:!0}},emits:["change"],setup(t,o){const n=e.computed({get:()=>t.value,set:l=>{o.emit("change",l)}});return{colorValue:n,onChangColor:l=>{n.value=l.hex}}}}),Yy="",Qm={class:"color-pick"};function Jm(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",Qm,[e.createVNode(s,{class:"input",value:t.colorValue,"onUpdate:value":o[0]||(o[0]=i=>t.colorValue=i)},null,8,["value"]),e.createVNode(d,{class:"pick-colors",value:t.colorValue,"onUpdate:value":o[1]||(o[1]=i=>t.colorValue=i),size:25,showAlpha:!0},null,8,["value"])])}const Zm=ae(Xm,[["render",Jm],["__scopeId","data-v-2ee2749b"]]),eh=e.defineComponent({name:"ColorGroupPick",components:{PickColors:Nt},props:{value:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:o}){const n=r=>{o("change",r)},a=e.ref(13);return{onColorsChange:n,max:a,onOverflowMax:()=>{j.message.warn(`已经超出最大添加个数:${a.value}`)}}}}),qy="",th={class:"color-group-pick"};function oh(t,o,n,a,l,r){const s=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",th,[e.createVNode(s,{value:t.value,"add-color":"",max:t.max,onChange:t.onColorsChange,onOverflowMax:t.onOverflowMax},null,8,["value","max","onChange","onOverflowMax"])])}const nh=ae(eh,[["render",oh],["__scopeId","data-v-b2be8322"]]),ah=e.defineComponent({name:"FormGroup",components:{Draggable:Lt,AppstoreAddOutlined:un,MinusCircleOutlined:Ws,PickColors:Nt,InputNumber:ir,PlusCircleOutlined:Xs},props:{value:{type:Array,default:()=>[]},format:{type:Array,default:()=>[]},useLabelIndex:{type:Boolean,default:!1},max:{type:Number,default:-1}},emits:["change"],setup(t,{emit:o}){const n=e.computed({get:()=>t.value,set:c=>{o("change",c)}});return{myValue:n,onAdd:()=>{var u;const c=(u=t.value)==null?void 0:u.slice();if(!Array.isArray(c))return;const p=c.length;if(t.max===-1||t.max>p){const f=c[0];if(Object.prototype.toString.call(f)==="[object Object]"){const y=Object.keys(f),b={};y.forEach(m=>{b[m]=""}),c.push(b)}else typeof f=="string"&&c.push(f);n.value=c}else j.message.warn("已达到最大上限")},useComponentType:c=>({input:"aInput",select:"aSelect",color:"pickColors","input-number":"inputNumber",switch:"aSwitch"})[c],onValueChange:(c,p,u)=>{var y;const f=(y=t.value)==null?void 0:y.slice();if(Array.isArray(f)){const b=c==null?void 0:c.target,m=(b==null?void 0:b.value)!=null?b==null?void 0:b.value:c;u?f[p][u]=m:f[p]=m,n.value=f}},onDelete:c=>{var u;const p=(u=t.value)==null?void 0:u.slice();if(Array.isArray(p)){if(p.length===1){j.message.warn("已经是最后一条数据,无法删除");return}p.splice(c,1),n.value=p}},theme:"light",formatTypeValue:c=>c||"value"}}}),Ky="",lh={class:"form-group"},rh={class:"form-row"},ih={key:0,class:"label"},sh={key:1,class:"label"},ch={class:"icon-group"};function dh(t,o,n,a,l,r){const s=e.resolveComponent("appstore-add-outlined"),d=e.resolveComponent("draggable"),i=e.resolveComponent("minus-circle-outlined");return e.openBlock(),e.createElementBlock("div",lh,[e.createVNode(s,{class:"icon add",onClick:t.onAdd},null,8,["onClick"]),e.createVNode(d,{class:"form",modelValue:t.myValue,"onUpdate:modelValue":o[0]||(o[0]=c=>t.myValue=c),"item-key":"id"},{item:e.withCtx(({element:c,index:p})=>[e.createElementVNode("div",rh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.format,(u,f)=>(e.openBlock(),e.createElementBlock("div",{class:"form-item",key:f},[Array.isArray(u.label)?(e.openBlock(),e.createElementBlock("span",ih,e.toDisplayString(u.useLabelIndex?u.label[p]+(p+1):u.label[p]),1)):(e.openBlock(),e.createElementBlock("span",sh,e.toDisplayString(u.useLabelIndex?u.label+(p+1):u.label),1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.useComponentType(u.type)),e.mergeProps({class:"value",[t.formatTypeValue(u.typeValue)||""]:typeof c=="string"?c:c[u.value]??u.defaultValue,style:{width:!["color","switch"].includes(u.type)&&t.format.length>1?"110px":""}},u.props,{theme:t.theme,"use-blur-event":!1,onChange:y=>t.onValueChange(y,p,u.value)}),null,16,["style","theme","onChange"]))]))),128))])]),_:1},8,["modelValue"]),e.createElementVNode("div",ch,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.myValue,(c,p)=>(e.openBlock(),e.createElementBlock("div",{class:"icon-item",key:p},[e.createVNode(i,{class:"icon delete",onClick:u=>t.onDelete(p)},null,8,["onClick"])]))),128))])])}const ph=ae(ah,[["render",dh],["__scopeId","data-v-f0c0ab4d"]]),uh=e.defineComponent({name:"Textarea",props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{ATextarea:j.Textarea},emits:["change"],setup(t,{emit:o}){return{onTextareaChange:a=>{o("change",a.target.value)}}}});function fh(t,o,n,a,l,r){const s=e.resolveComponent("a-textarea");return e.openBlock(),e.createBlock(s,{value:t.value,disabled:t.disabled,autoSize:{minRows:3},onChange:t.onTextareaChange},null,8,["value","disabled","onChange"])}const mh=ae(uh,[["render",fh]]),hh=e.defineComponent({name:"Slider",components:{ASlider:j.Slider,AInputNumber:j.InputNumber},props:{value:{type:Number,default:1}},emits:["change"],setup(t,{emit:o}){return{onChange:a=>{o("change",a)}}}});function bh(t,o,n,a,l,r){const s=e.resolveComponent("a-slider"),d=e.resolveComponent("a-col"),i=e.resolveComponent("a-input-number"),c=e.resolveComponent("a-row");return e.openBlock(),e.createBlock(c,null,{default:e.withCtx(()=>[e.createVNode(d,{span:16},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value,min:0,max:1,step:.1,onChange:t.onChange},null,8,["value","onChange"])]),_:1}),e.createVNode(d,{span:8,style:{"padding-left":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:t.value,min:0,max:1,step:.1,style:{width:"100%"},onChange:t.onChange},null,8,["value","onChange"])]),_:1})]),_:1})}const yh=ae(hh,[["render",bh]]),gh=e.defineComponent({name:"PropsToForm",components:{Input:gf,InputNumber:ir,RadioGroup:_f,Select:Nf,Switch:Ef,ColorPick:Zm,ColorGroupPick:nh,FormGroup:ph,Textarea:mh,Slider:yh},props:{props:{type:Object,require:!0},disabled:{type:Boolean,default:!1},componentType:{type:String,default:""}},setup(t){const o=e.inject(wo),n=e.inject(Ce),a=e.inject(Ko),l=e.inject(Xo),r=e.computed(()=>{var f;return(f=e.unref(o))==null?void 0:f.type}),s=f=>{t.componentType&&t.componentType==="table"?l(f):a(f)},d=f=>{const{result:y,mapAttributeProp:b,key:m,value:h}=f;if(y==null||typeof y!="object")return;const{valueProp:C="value",changeValueEventName:g="change",events:T,effect:w,effectVal:_,props:S}=b;y[m]={...b,valueProp:C,value:h,events:{[g]:(N,I=!0)=>{I?(s({[m]:N}),_&&_(m,N,s,e.unref(n))):s({})},...T},...c(w),props:{...S,...u(S,e.unref(n))}}},i=e.computed(()=>{const f=t.props;return f==null||typeof f!="object"?{}:ee.reduce(f,(y,b,m)=>{const h=hf[m];if(Array.isArray(h)){const C=h.find(g=>{const{onlyType:T,excludeType:w}=g;return T==null&&w==null?!0:T?ue(e.unref(r),T):w?!ue(e.unref(r),w):!1});C&&d({result:y,value:b,key:m,mapAttributeProp:C})}else d({result:y,value:b,key:m,mapAttributeProp:h});return y},{})}),c=f=>{const y={};for(const b in f)y[b]=ee.reduce(f[b].props,(m,h)=>f[b].joinType==="&&"?m&&p(h):m||p(h),!!f[b].default);return y},p=f=>{const y=t.props[f.props];let b;switch(f.rule){case"!==":b=y!==f.value;break;case"includes":b=y.includes(f.value);break;case"action":b=f.value(f,t.props);break;default:b=y===f.value}return b};function u(f={},y){const b={};for(const m in f)typeof f[m]=="function"&&(b[m]=f[m](y));return b}return{formProps:i,lowerCaseIncludes:ue}}}),Xy="",Ch={class:"props-to-form"},wh={key:0,class:"prop-item"},kh={class:"label"},xh={class:"component-wrapper"};function _h(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Ch,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formProps,(s,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[s.hide!==!0?(e.openBlock(),e.createElementBlock("div",wh,[e.createElementVNode("span",kh,e.toDisplayString(s.label),1),e.createElementVNode("div",xh,[Array.isArray(s)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s,(i,c)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.component),e.mergeProps({key:c,class:"component",style:i.style,disabled:t.disabled||i.disabled},i.props,e.toHandlers(i.events)),null,16,["style","disabled"]))),128)):e.createCommentVNode("",!0),Array.isArray(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.component),e.mergeProps({key:0,class:"component",[s.valueProp||""]:s.value,style:s.style,disabled:t.disabled||s.disabled},s.props,e.toHandlers(s.events)),null,16,["style","disabled"])):e.createCommentVNode("",!0)],64))])])):e.createCommentVNode("",!0)],64))),128))])}const Sh=ae(gh,[["render",_h],["__scopeId","data-v-62456472"]]);function Th(){return new Worker("/assets/editor.worker-02df2e61.js")}function Nh(){return new Worker("/assets/json.worker-867823a6.js")}function Ah(){return new Worker("/assets/ts.worker-7254b425.js")}const Oh=e.defineComponent({name:"Editor",props:{valueData:{type:String,default:""},options:{type:Object,default:()=>({})},language:{type:String,default:"json"},isUseMinimap:{type:Boolean,default:!1},UseSuggestions:{type:Boolean,default:!1},autoFormat:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["change","update:valueData"],setup(t,{emit:o}){window.MonacoEnvironment={getWorker(r,s){return s==="json"?new Nh:s==="typescript"||s==="javascript"?new Ah:new Th}};const n=e.ref();let a=null;const l={light:"vs",dark:"vs-dark"};return e.onMounted(()=>{a=Jr.editor.create(n.value,{language:t.language,tabSize:2,automaticLayout:!0,scrollBeyondLastLine:!1,theme:l.light,wordWrap:"off",lineDecorationsWidth:3,lineHeight:15,lineNumbersMinChars:3,formatOnPaste:!0,formatOnType:!0,wordBasedSuggestions:!1,quickSuggestions:t.UseSuggestions,snippetSuggestions:"none",suggestOnTriggerCharacters:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,alwaysConsumeMouseWheel:!1,arrowSize:0},autoIndent:"advanced",glyphMargin:!1,fontSize:13,contextmenu:!1,minimap:{enabled:t.isUseMinimap},readOnly:t.readonly,...t.options}),a==null||a.setValue(t.valueData),t.autoFormat&&setTimeout(()=>{a==null||a.getAction("editor.action.formatDocument").run()},200),a.onDidChangeModelContent(ee.debounce(()=>{const r=a==null?void 0:a.getValue();o("change",r)},300)),a.onDidBlurEditorText(()=>{const r=a==null?void 0:a.getValue();o("update:valueData",r)})}),e.watch(()=>t.valueData,r=>{if(a){const s=a.getPosition();a.setValue(r),t.autoFormat&&a.getAction("editor.action.formatDocument").run(),s!=null&&a.setPosition(s)}}),e.onUnmounted(()=>{a==null||a.dispose()}),{dom:n}}}),Qy="",Eh={class:"editor",ref:"dom"};function Bh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Eh,null,512)}const Hr=ae(Oh,[["render",Bh],["__scopeId","data-v-71e88372"]]),Lh=e.defineComponent({name:"Condition",components:{CloseOutlined:eo,MenuOutlined:Sn,AMenu:j.Menu,AMenuItem:j.MenuItem,AInput:j.Input,ASelect:j.Select,ADropdown:j.Dropdown},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},path:{type:String,default:""}},setup(t){const o=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="},{label:"不等于",value:"!="}],n=e.ref({rule:"==",value:"",key:""}),{updateCondition:a,deleteCondition:l,addCondition:r}=e.inject(ko,{updateCondition:(c,p,u)=>{},deleteCondition:(c,p)=>{},addCondition:(c,p,u)=>{}});e.watch(n,c=>{a(ee.cloneDeep(c),t.index,t.path)},{deep:!0});const s=()=>{},d=c=>{r(t.path,t.index,c.key==="2"?"||":"&&")},i=()=>{l(t.index,t.path)};return e.onMounted(()=>{var c,p,u;e.unref(n).rule=((c=t.data)==null?void 0:c.rule)||"",e.unref(n).value=((p=t.data)==null?void 0:p.value)||"",e.unref(n).key=((u=t.data)==null?void 0:u.key)||ge()}),{ruleOptions:o,condition:n,onRuleChange:s,clickConditionMenu:d,onDelete:i}}}),Jy="",Vh={class:"condition"};function Fh(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input"),i=e.resolveComponent("menu-outlined"),c=e.resolveComponent("a-menu-item"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("a-dropdown"),f=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",Vh,[e.createVNode(s,{class:"field-name",value:t.condition.rule,"onUpdate:value":o[0]||(o[0]=y=>t.condition.rule=y),options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]),e.createVNode(d,{class:"field-value",value:t.condition.value,"onUpdate:value":o[1]||(o[1]=y=>t.condition.value=y),placeholder:"请输入值"},null,8,["value"]),e.createVNode(u,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(c,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(c,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{class:"more-icon"})]),_:1}),e.createVNode(f,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const $h=ae(Lh,[["render",Fh],["__scopeId","data-v-9fcdf54d"]]),vh=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""}},components:{Condition:$h}}),Zy="",Ih={key:0,class:"condition-list"},Dh={key:0,class:"condition-container"},Mh={key:0,class:"condition-text"},Ph={key:1,class:"condition-text"},jh={class:"conditions"};function Rh(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),d=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Ih,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Dh,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Mh,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Ph,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",jh,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions},null,8,["level","path","list"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.key||`${t.level}-${c}`,data:i,level:t.level,index:c,path:t.path||""},null,8,["data","level","index","path"]))],64))),128))])):e.createCommentVNode("",!0)}const Uh=ae(vh,[["render",Rh],["__scopeId","data-v-49c6481f"]]),zh=e.defineComponent({components:{ConditionList:Uh,PickColors:Nt,AButton:j.Button,AModal:j.Modal,ASelect:j.Select},props:{data:{type:Object,default:()=>({})},index:{type:Number,default:-1}},setup(t,{emit:o,expose:n}){const a=e.ref(!1),l=e.ref([]),r=e.ref({}),s=e.computed(()=>({pageId:e.unref("pageId")})),d=m=>{const h=[];for(const C of m)C.conditions?h.push(...d(C.conditions)):h.push(C);return h},i=()=>{if(d(e.unref(l)).find(h=>!h.value||!h.rule)){j.message.error("条件值或规则不能为空");return}o("save",{conditions:e.unref(l),attribute:e.unref(r)}),a.value=!1},c=m=>{var h;for(const C of m)(h=C.conditions)!=null&&h.length?c(C.conditions):C.key=ge()};e.watch(a,m=>{var h,C,g;if(m){if(Array.isArray((h=t.data)==null?void 0:h.conditions)){const T=ee.cloneDeep(((C=t.data)==null?void 0:C.conditions)||[]);c(T),l.value=T}r.value=ee.cloneDeep(((g=t.data)==null?void 0:g.attribute)||{}),e.unref(r).color||(r.value.color=""),e.unref(r).iconColor||(r.value.iconColor="")}else l.value=[],r.value={}},{flush:"post"});const p=()=>{a.value=!0},u=m=>{var h;e.unref(l)==null||((h=e.unref(l))==null?void 0:h.length)===0?l.value=[{key:ge()}]:e.unref(l)[0]!=null&&(e.unref(l)[0].conditions==null||e.unref(l)[0].join!==m?l.value=[{join:m,conditions:[e.unref(l)[0],{key:ge()}]}]:e.unref(l)[0].conditions.length>1&&e.unref(l)[0].join===m&&l.value[0].conditions.push({key:ge()}))};e.provide(ko,{updateCondition(m,h,C){var w;let g=l.value;const T=C.split("-");if(C&&(T!=null&&T.length))for(const _ of T)if(g[+_])g=(w=g[+_])==null?void 0:w.conditions;else break;Array.isArray(g)&&g[h]&&(g[h]=m)},deleteCondition(m,h){var T,w,_;if(!h){l.value=[];return}let C=e.unref(l);const g=h.split("-");if(g!=null&&g.length){for(const S of g)if(C[+S])C=(T=C[+S])==null?void 0:T.conditions;else break;if(Array.isArray(C)&&C[m])if(C.splice(m,1),C.length===1){if(g.length>0){const S=g.length-1,N=g[S],I=g.slice(0,S);let F=e.unref(l),A="";for(const R of I)if(F[+R])A=(w=F[+R])==null?void 0:w.join,F=(_=F[+R])==null?void 0:_.conditions;else break;if(A===C[0].join){if(Array.isArray(C[0].conditions)){const R=ee.cloneDeep(C[0].conditions);F.splice(+N,1),F.splice(+N,0,...R)}}else F[+N]=C[0]}}else C.length===0&&(l.value=[])}},addCondition(m,h,C){var _,S;let g=e.unref(l),T="";const w=m.split("-");if(m&&(w!=null&&w.length))for(const N of w)if(g[+N])T=(_=g[+N])==null?void 0:_.join,g=(S=g[+N])==null?void 0:S.conditions;else break;if(T===C)g.splice(h+1,0,{key:ge()});else{const N=ee.cloneDeep(g[h]);g[h]={join:C,conditions:[N,{key:ge()}]}}}});const f=m=>{r.value.icon=m},y=e.computed(()=>window.config.imgBaseUrl),b=e.ref([{label:"向下箭头",value:"/static/img/indicator-icon/arrow-down.svg"},{label:"向上箭头",value:"/static/img/indicator-icon/arrow-up.svg"}]);return n({showModal:p}),{params:s,visible:a,conditionList:l,attribute:r,handleOk:i,addCondition:u,onUploadChange:f,imgBaseUrl:y,iconOptions:b}}}),eg="",ca=t=>(e.pushScopeId("data-v-a29d848a"),t=t(),e.popScopeId(),t),Gh={class:"config-wrap"},Hh={class:"wrap-item left"},Wh={class:"title"},Yh={class:"border"},qh={class:"wrap-item right"},Kh=ca(()=>e.createElementVNode("div",{class:"title"},"属性配置",-1)),Xh={class:"border"},Qh={class:"row"},Jh=ca(()=>e.createElementVNode("div",null,"字体颜色:",-1)),Zh={class:"row"},eb=ca(()=>e.createElementVNode("div",null,"图标:",-1)),tb={style:{display:"flex","align-items":"center","justify-items":"center"}};function ob(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("condition-list"),i=e.resolveComponent("pick-colors"),c=e.resolveComponent("a-select"),p=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(p,{width:"60%",visible:t.visible,"onUpdate:visible":o[6]||(o[6]=u=>t.visible=u),title:"条件设置",destroyOnClose:!0,maskClosable:!1,bodyStyle:{height:"500px",overflow:"auto"},onOk:t.handleOk},{default:e.withCtx(()=>[e.createElementVNode("div",Gh,[e.createElementVNode("div",Hh,[e.createElementVNode("div",Wh,[e.createTextVNode(" 条件配置 "),Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=u=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=u=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,style:{"margin-left":"15px"},onClick:o[2]||(o[2]=u=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createElementVNode("div",Yh,[e.createVNode(d,{class:"condition-list",list:t.conditionList,level:0},null,8,["list"])])]),e.createElementVNode("div",qh,[Kh,e.createElementVNode("div",Xh,[e.createElementVNode("div",Qh,[Jh,e.createVNode(i,{class:"pick-colors",value:t.attribute.color,"onUpdate:value":o[3]||(o[3]=u=>t.attribute.color=u),size:25},null,8,["value"])]),e.createElementVNode("div",Zh,[eb,e.createElementVNode("div",tb,[e.createVNode(c,{value:t.attribute.icon,"onUpdate:value":o[4]||(o[4]=u=>t.attribute.icon=u),options:t.iconOptions,style:{width:"160px"}},null,8,["value","options"]),e.createVNode(i,{class:"pick-colors",value:t.attribute.iconColor,"onUpdate:value":o[5]||(o[5]=u=>t.attribute.iconColor=u),size:25},null,8,["value"])])])])])])]),_:1},8,["visible","onOk"])}const nb=ae(zh,[["render",ob],["__scopeId","data-v-a29d848a"]]),ab=e.defineComponent({components:{AModal:j.Modal,AButton:j.Button,ATable:j.Table,ConditionWrap:nb,AInput:j.Input},setup(t,{expose:o,emit:n}){console.log(t);const a=e.ref(!1),l=e.ref(),r=e.ref(),s=e.ref(0),d=[{title:"条件标题",dataIndex:"name",align:"center",ellipsis:!0,width:100},{title:"条件内容",dataIndex:"conditionCode",align:"center",ellipsis:!0,width:250},{title:"条件设置",dataIndex:"operation",ellipsis:!0,width:160}],i=e.ref([]),c=e.ref(),p=(C,g="")=>{let T="";return C.forEach((w,_)=>{const{value:S,rule:N}=w;w.conditions?T+=`(${p(w.conditions,w.join)})`:S&&N&&(T+=`value ${N} '${S}'`),T+=`${_===C.length-1?"":g?" "+g+" ":""}`}),T},u=C=>{i.value=[],c.value=C;const{rules:g,conditionCode:T,conditions:w,attribute:_}=C;if(g)i.value=ee.cloneDeep(g);else if(T){const S={conditionCode:T,conditions:w,attribute:_,name:"新条件"};i.value.push(ee.cloneDeep(S)),delete C.conditionCode,delete C.conditions,delete C.attribute}a.value=!0},f=()=>{a.value=!1;for(const C of i.value)if(C.conditionCode==="")return"不能条件为空!";n("confirm",e.unref(i))},y=()=>{i.value.push({conditionCode:"",name:"新条件",condition:[],attribute:{}})},b=C=>{C.conditionCode=p(C.conditions),Object.assign(i.value[s.value],C)},m=(C,g)=>{e.unref(l).showModal(),r.value=ee.cloneDeep(C),s.value=g},h=C=>{i.value.splice(C,1)};return o({open:u}),{visible:a,currentData:r,currentIndex:s,configColumns:d,conditionsRef:l,rules:i,open:u,close:f,addRule:y,openRuleModal:m,closeRuleModal:b,deleteRule:h}}});function lb(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("a-input"),i=e.resolveComponent("a-table"),c=e.resolveComponent("a-modal"),p=e.resolveComponent("condition-wrap");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(c,{width:"60%",visible:t.visible,"onUpdate:visible":o[0]||(o[0]=u=>t.visible=u),title:"条件列表",destroyOnClose:!0,maskClosable:!1,bodyStyle:{height:"500px",overflow:"auto"},onOk:t.close},{default:e.withCtx(()=>[e.createVNode(s,{onClick:t.addRule},{default:e.withCtx(()=>[e.createTextVNode("新增条件")]),_:1},8,["onClick"]),e.createVNode(i,{class:"column-table",size:"small",columns:t.configColumns,"data-source":t.rules,scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:u,record:f,index:y})=>[u.dataIndex==="name"?(e.openBlock(),e.createBlock(d,{key:0,size:"small",value:f.name,"onUpdate:value":b=>f.name=b},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0),u.dataIndex==="operation"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(s,{size:"small",onClick:b=>t.openRuleModal(f,y)},{default:e.withCtx(()=>[e.createTextVNode("编辑")]),_:2},1032,["onClick"]),e.createVNode(s,{size:"small",onClick:b=>t.deleteRule(y),style:{"margin-left":"6px"}},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])]),_:1},8,["visible","onOk"]),e.createVNode(p,{ref:"conditionsRef",data:t.currentData,index:t.currentIndex,onSave:t.closeRuleModal},null,8,["data","index","onSave"])],64)}const rb=ae(ab,[["render",lb]]),ib=[{title:"列名",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"参数",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"列自定义",dataIndex:"style",align:"center",ellipsis:!0,width:100},{title:"列宽度(px/%)",dataIndex:"width",ellipsis:!0,width:135},{title:"列自定义函数",dataIndex:"renderText",ellipsis:!0,width:170},{title:"列表头自定义函数",dataIndex:"headerTemplate",ellipsis:!0,width:170},{title:"数据格式化",dataIndex:"dataFormat",ellipsis:!0,width:225},{title:"保留小数位数",dataIndex:"retentiondigit",ellipsis:!0,width:135},{title:"表头/表尾列对齐方式",dataIndex:"headerAlign",ellipsis:!0,width:170},{title:"内容列对齐方式",dataIndex:"align",ellipsis:!0,width:170},{title:"固定当前列",dataIndex:"fixed",ellipsis:!0,width:170},{title:"计算行",dataIndex:"calculateShow",ellipsis:!0,width:180},{title:"条件设置",dataIndex:"conditions",ellipsis:!0,width:120}],sb=e.defineComponent({name:"TableColumnConfig",components:{ATable:j.Table,AModal:j.Modal,ACheckbox:j.Checkbox,AInput:j.Input,AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption,Editor:Hr,CodeOutlined:bs,ConditionsTable:rb},setup(){const t=e.inject(Ie),o=e.inject(Ce),n=e.computed(()=>{var w;return!!((w=e.unref(t))!=null&&w.isGroupTable)}),a=e.computed(()=>{var w;return((w=e.unref(t))==null?void 0:w.tableColumns)||[]}),l=e.ref([]);let r=null,s="";const d=e.ref(""),i=e.ref(""),c=e.ref(!1);e.watch(o,()=>{p()},{deep:!0,flush:"post"});const p=()=>{var _,S,N,I;let w=[];if(l.value=[],n.value){const F=((N=e.unref(o))==null?void 0:N.rowHeaderList)||[],A=((I=e.unref(o))==null?void 0:I.indicators)||[];w=[...F,...A]}else{const F=((_=e.unref(o))==null?void 0:_.queryColumnList)||[],A=((S=e.unref(o))==null?void 0:S.indicators)||[];w=[...F,...A]}console.log("columns",w,a),w.forEach(F=>{var R;let A=(R=e.unref(a))==null?void 0:R.find(v=>v.label===F.label);A||(A={label:F.label,prop:F.label,style:!1,width:"",renderText:"",headerTemplate:"",headerAlign:"left",align:"left",fixed:"",dataFormat:[],retentiondigit:null,calculateShow:{sum:!1,avg:!1},conditions:[],attribute:{}}),A.calculateShow||(A.calculateShow={sum:!1,avg:!1}),l.value.push(A)}),t.value.tableColumns=l.value};e.onMounted(()=>{p()});const u=(w,_)=>{w.style=_.target.checked,w.style?w.renderBool===void 0&&(w.renderBool=!1):delete w.renderBool},f=(w,_,S)=>{w&&_&&(r=w,s=_,d.value=w[_]||"",c.value=!0,i.value=S)},y=w=>{try{d.value=w}catch(_){console.error(_)}},b=()=>{r&&s&&(r[s]=d.value),d.value="",c.value=!1},m=e.ref(),h=e.ref(0),C=e.ref();return{configColumns:ib,configData:l,editorTitle:i,editorVisible:c,optionCode:d,handleOk:b,renderSave:f,onEditorChange:y,changeRenderBool:u,openConditions:w=>{h.value=w,m.value=l.value[w],e.unref(C).open(l.value[w])},confirmConditions:w=>{m.value.rules=w},conditionsTableRef:C}}}),tg="",cb={class:"table-column-config"};function db(t,o,n,a,l,r){const s=e.resolveComponent("a-checkbox"),d=e.resolveComponent("a-input"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),p=e.resolveComponent("a-input-number"),u=e.resolveComponent("code-outlined"),f=e.resolveComponent("a-table"),y=e.resolveComponent("editor"),b=e.resolveComponent("a-modal"),m=e.resolveComponent("conditions-table");return e.openBlock(),e.createElementBlock("div",cb,[e.createVNode(f,{class:"column-table",columns:t.configColumns,"data-source":t.configData,scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:h,text:C,record:g,index:T})=>[h.dataIndex==="style"?(e.openBlock(),e.createBlock(s,{key:0,onChange:w=>t.changeRenderBool(g,w),checked:g.style},null,8,["onChange","checked"])):h.dataIndex==="width"?(e.openBlock(),e.createBlock(d,{key:1,value:g.width,"onUpdate:value":w=>g.width=w,valueModifiers:{trim:!0}},null,8,["value","onUpdate:value"])):h.dataIndex==="renderText"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[g.style?(e.openBlock(),e.createBlock(d,{key:1,value:g.renderText,"onUpdate:value":w=>g.renderText=w,readOnly:!0,onClick:w=>t.renderSave(g,"renderText","列自定义函数")},null,8,["value","onUpdate:value","onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(C),1)],64))],64)):h.dataIndex==="headerTemplate"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[g.style?(e.openBlock(),e.createBlock(d,{key:1,value:g.headerTemplate,"onUpdate:value":w=>g.headerTemplate=w,readOnly:!0,onClick:w=>t.renderSave(g,"headerTemplate","列表头自定义函数")},null,8,["value","onUpdate:value","onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(C),1)],64))],64)):h.dataIndex==="headerAlign"?(e.openBlock(),e.createBlock(c,{key:4,style:{width:"100%"},size:"small",value:g.headerAlign,"onUpdate:value":w=>g.headerAlign=w},{default:e.withCtx(()=>[e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(i,{value:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:2},1032,["value","onUpdate:value"])):h.dataIndex==="align"?(e.openBlock(),e.createBlock(c,{key:5,style:{width:"100%"},size:"small",value:g.align,"onUpdate:value":w=>g.align=w},{default:e.withCtx(()=>[e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(i,{value:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:2},1032,["value","onUpdate:value"])):h.dataIndex==="fixed"?(e.openBlock(),e.createBlock(c,{key:6,style:{width:"100%"},size:"small",value:g.fixed,"onUpdate:value":w=>g.fixed=w},{default:e.withCtx(()=>[e.createVNode(i,{value:""},{default:e.withCtx(()=>[e.createTextVNode("不固定")]),_:1}),e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("靠左")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("靠右")]),_:1})]),_:2},1032,["value","onUpdate:value"])):h.dataIndex==="dataFormat"?(e.openBlock(),e.createBlock(c,{key:7,value:g.dataFormat,"onUpdate:value":w=>g.dataFormat=w,style:{width:"100%"},mode:"multiple",allowClear:"",maxTagCount:1},{default:e.withCtx(()=>[e.createVNode(i,{value:"#,000"},{default:e.withCtx(()=>[e.createTextVNode("千分位")]),_:1}),e.createVNode(i,{value:"#.00"},{default:e.withCtx(()=>[e.createTextVNode("保留小数")]),_:1}),e.createVNode(i,{value:"#"},{default:e.withCtx(()=>[e.createTextVNode("保留有效位")]),_:1})]),_:2},1032,["value","onUpdate:value"])):h.dataIndex==="retentiondigit"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[g.dataFormat&&g.dataFormat.includes("#.00")?(e.openBlock(),e.createBlock(p,{key:0,value:g.retentiondigit,"onUpdate:value":w=>g.retentiondigit=w,min:0,max:10},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0)],64)):h.dataIndex==="calculateShow"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[e.createVNode(s,{checked:g.calculateShow.sum,"onUpdate:checked":w=>g.calculateShow.sum=w},{default:e.withCtx(()=>[e.createTextVNode("合计")]),_:2},1032,["checked","onUpdate:checked"]),e.createVNode(s,{checked:g.calculateShow.avg,"onUpdate:checked":w=>g.calculateShow.avg=w},{default:e.withCtx(()=>[e.createTextVNode("平均")]),_:2},1032,["checked","onUpdate:checked"])],64)):h.dataIndex==="conditions"?(e.openBlock(),e.createBlock(u,{key:10,class:"icon",onClick:e.withModifiers(w=>t.openConditions(T),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),e.createVNode(b,{title:t.editorTitle,visible:t.editorVisible,"onUpdate:visible":o[0]||(o[0]=h=>t.editorVisible=h),"destroy-on-close":"",width:"700px",bodyStyle:{height:"500px",overflow:"auto"},centered:"",zIndex:1020,okText:"保存",cancelText:"取消",onOk:t.handleOk},{default:e.withCtx(()=>[e.createVNode(y,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.optionCode,onChange:t.onEditorChange},null,8,["valueData","onChange"])]),_:1},8,["title","visible","onOk"]),e.createVNode(m,{onConfirm:t.confirmConditions,ref:"conditionsTableRef"},null,8,["onConfirm"])])}const pb=ae(sb,[["render",db],["__scopeId","data-v-bb095396"]]),ub=[{title:"列名",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"参数",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"数据格式化",dataIndex:"dataFormat",ellipsis:!0,width:225},{title:"保留小数位数",dataIndex:"retentiondigit",ellipsis:!0,width:135}],fb=e.defineComponent({name:"TableColumnConfig",components:{ATable:j.Table,AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel},setup(){const t=e.inject(Ie),o=e.inject(Ce),n=e.ref(["cardFormat"]),a=()=>{var c;const r=((c=e.unref(o))==null?void 0:c.indicators)||[],s=t.value.columnsConfigMap||{},d={dataFormat:[],retentiondigit:""},i=r.reduce((p,u)=>({...p,[u.label]:{...d,...s[u.label]||{}}}),{});t.value.columnsConfigMap=i};e.watch(o,()=>{a()},{deep:!0,flush:"post"}),e.onMounted(()=>{a()});const l=e.computed(()=>t.value.columnsConfigMap||{});return{selectedComponent:t,configColumns:ub,graphicConfig:o,columnsConfigMap:l,activePanel:n}}}),og="";function mb(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-input-number"),c=e.resolveComponent("a-table"),p=e.resolveComponent("a-collapse-panel"),u=e.resolveComponent("a-collapse");return e.openBlock(),e.createBlock(u,{activeKey:t.activePanel,"onUpdate:activeKey":o[0]||(o[0]=f=>t.activePanel=f)},{default:e.withCtx(()=>[e.createVNode(p,{key:"cardFormat",header:"数据格式化"},{default:e.withCtx(()=>[e.createVNode(c,{class:"column-table",columns:t.configColumns,"data-source":t.graphicConfig.indicators||[],scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:f,record:y})=>[f.dataIndex==="dataFormat"&&t.columnsConfigMap[y.label]?(e.openBlock(),e.createBlock(d,{key:0,value:t.columnsConfigMap[y.label].dataFormat,"onUpdate:value":b=>t.columnsConfigMap[y.label].dataFormat=b,style:{width:"100%"},mode:"multiple",allowClear:"",maxTagCount:1},{default:e.withCtx(()=>[e.createVNode(s,{value:"#,000"},{default:e.withCtx(()=>[e.createTextVNode("千分位")]),_:1}),e.createVNode(s,{value:"#.00"},{default:e.withCtx(()=>[e.createTextVNode("保留小数")]),_:1}),e.createVNode(s,{value:"#"},{default:e.withCtx(()=>[e.createTextVNode("保留有效位")]),_:1})]),_:2},1032,["value","onUpdate:value"])):f.dataIndex==="retentiondigit"&&t.columnsConfigMap[y.label]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.columnsConfigMap[y.label].dataFormat&&t.columnsConfigMap[y.label].dataFormat.includes("#.00")?(e.openBlock(),e.createBlock(i,{key:0,value:t.columnsConfigMap[y.label].retentiondigit,"onUpdate:value":b=>t.columnsConfigMap[y.label].retentiondigit=b,min:0,max:10},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])]),_:1})]),_:1},8,["activeKey"])}const hb=ae(fb,[["render",mb],["__scopeId","data-v-72761110"]]),bb=e.defineComponent({name:"StyleConfigGroup",props:{componentType:{type:String,default:""},isGroupTable:{type:Boolean,default:!1}},components:{PropsToForm:Sh,TableColumnConfig:pb,Editor:Hr,AFormItem:j.FormItem,ASelect:j.Select,ASelectOption:j.SelectOption,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ASwitch:j.Switch,IndicatorContainer:hb},setup(t){const o=e.ref([]),n=e.ref(["表格"]),a=e.inject(wo),l=e.inject(ma),r=e.inject(Ko),s=e.inject(Xo),d=e.inject(fa),i=e.inject(Ie),c=S=>{r({...Jo[S]},!1),e.unref(i).type=e.unref(p),d()},p=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.type}),u=["showTotalBool","totalName","expandAll"],f=e.computed(()=>mf.map(S=>{const{props:N,title:I,enableProps:F,onlyType:A,excludeType:R}=S,v=[];N.forEach(E=>{typeof E=="string"&&(u.includes(E)?t.isGroupTable&&v.push(E):v.push(E))});let $,k;return t.componentType==="table"&&(A!=null&&A.includes(t.componentType))?($=typeof F=="string"&&l.value?l.value[F]:void 0,k=ee.pick(e.unref(l),v)):($=typeof F=="string"&&a.value?a.value[F]:void 0,k=ee.pick(e.unref(a),v)),{title:I,enableProps:$,enablePropsName:F,onlyType:A,excludeType:R,props:k}}).filter(({props:S})=>Object.keys(S).length>0)),y=(S,N)=>{const{onlyType:I,excludeType:F}=S;return I==null&&F==null?!0:I?ue(N,I):F?!ue(N,F):!1},b=(S,N)=>(N==null||N.stopPropagation(),S),m=(S,N)=>{N!=null&&r({[N]:S})},h=e.computed(()=>JSON.stringify(e.unref(a),null,2)),C=S=>{try{const N=JSON.parse(S||"{}");r(N,!1)}catch(N){console.error(N)}},g=e.ref(""),T=S=>{try{g.value=S}catch(N){console.error(N)}},w=(S,N)=>{try{s({[N]:S})}catch(I){console.error(I)}},_=e.computed(()=>{var S;return["customGraph"].includes((S=e.unref(a))==null?void 0:S.type)});return{type:p,handleChangeType:c,activePanel:o,tablePanel:n,ComponentString:h,updateComponentOptions:C,tableOptions:l,optionCode:g,onEditorChange:T,tableEditorChange:w,onSwitchClick:b,onSwitchChange:m,detailPropsGroups:f,isRenderForm:y,isShowOptionEditor:_}}}),ng="",ag="",yb={class:"style-group"};function gb(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-form-item"),c=e.resolveComponent("a-switch"),p=e.resolveComponent("props-to-form"),u=e.resolveComponent("a-collapse-panel"),f=e.resolveComponent("editor"),y=e.resolveComponent("a-collapse"),b=e.resolveComponent("table-column-config"),m=e.resolveComponent("indicator-container");return e.openBlock(),e.createElementBlock("div",yb,[t.componentType!=="table"&&t.componentType!=="card"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{label:"图表类型"},{default:e.withCtx(()=>[e.createVNode(d,{value:t.type,"onUpdate:value":o[0]||(o[0]=h=>t.type=h),style:{width:"100%"},onChange:t.handleChangeType},{default:e.withCtx(()=>[e.createVNode(s,{value:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线图")]),_:1}),e.createVNode(s,{value:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状图")]),_:1}),e.createVNode(s,{value:"pie"},{default:e.withCtx(()=>[e.createTextVNode("饼图")]),_:1}),e.createVNode(s,{value:"comboGraph"},{default:e.withCtx(()=>[e.createTextVNode("组合图表")]),_:1}),e.createVNode(s,{value:"customGraph"},{default:e.withCtx(()=>[e.createTextVNode("自定义图表")]),_:1})]),_:1},8,["value","onChange"])]),_:1}),e.createVNode(y,{activeKey:t.activePanel,"onUpdate:activeKey":o[1]||(o[1]=h=>t.activePanel=h)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.detailPropsGroups,h=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h.title},[t.isRenderForm(h,t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[h.title?(e.openBlock(),e.createBlock(u,{header:h.title,key:h.title},{extra:e.withCtx(()=>[typeof h.enableProps=="boolean"?(e.openBlock(),e.createBlock(c,{key:0,checked:h.enableProps,onChange:C=>t.onSwitchChange(C,h.enablePropsName),onClick:t.onSwitchClick},null,8,["checked","onChange","onClick"])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{props:h.props,disabled:typeof h.enableProps=="boolean"?!h.enableProps:!1},null,8,["props","disabled"])]),_:2},1032,["header"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128)),t.isShowOptionEditor?(e.openBlock(),e.createBlock(u,{key:"custom-option",header:"自定义option配置"},{default:e.withCtx(()=>[e.createVNode(f,{class:"option-editor",language:"typescript",valueData:t.optionCode,onChange:t.onEditorChange},null,8,["valueData","onChange"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["activeKey"])],64)):e.createCommentVNode("",!0),t.componentType==="table"?(e.openBlock(),e.createBlock(y,{key:1,activeKey:t.tablePanel,"onUpdate:activeKey":o[4]||(o[4]=h=>t.tablePanel=h)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.detailPropsGroups,h=>{var C;return e.openBlock(),e.createElementBlock(e.Fragment,{key:h.title},[h.title&&((C=h.onlyType)!=null&&C.includes(t.componentType))?(e.openBlock(),e.createBlock(u,{header:h.title,key:h.title},{default:e.withCtx(()=>[e.createVNode(p,{componentType:t.componentType,props:h.props,disabled:typeof h.enableProps=="boolean"?!h.enableProps:!1},null,8,["componentType","props","disabled"])]),_:2},1032,["header"])):e.createCommentVNode("",!0)],64)}),128)),e.createVNode(u,{key:"tableColumn",header:"表格列配置"},{default:e.withCtx(()=>[e.createVNode(b)]),_:1}),e.createVNode(u,{key:"headerCellStyleMethod",header:"表头单元格样式"},{default:e.withCtx(()=>[e.createVNode(f,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.tableOptions.headerCellStyleMethod,onChange:o[2]||(o[2]=h=>t.tableEditorChange(h,"headerCellStyleMethod"))},null,8,["valueData"])]),_:1}),e.createVNode(u,{key:"rowStyleMethod",header:"行样式"},{default:e.withCtx(()=>[e.createVNode(f,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.tableOptions.rowStyleMethod,onChange:o[3]||(o[3]=h=>t.tableEditorChange(h,"rowStyleMethod"))},null,8,["valueData"])]),_:1})]),_:1},8,["activeKey"])):e.createCommentVNode("",!0),t.componentType==="card"?(e.openBlock(),e.createBlock(m,{key:2})):e.createCommentVNode("",!0)])}const Cb=ae(bb,[["render",gb],["__scopeId","data-v-9a2fa8f5"]]),wb=e.defineComponent({name:"Card",components:{CloseOutlined:eo,AInput:j.Input,ASelect:j.Select,MenuOutlined:Sn,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem},props:{index:{type:Number,require:!0},control:{type:Object,default:()=>({})},intersection:{type:Array,default:()=>[]},path:{type:String,default:""}},emits:["delete","update"],setup(t){const o=e.inject(ze),n=e.inject(xo),a=e.inject(ba),l=e.inject(Qo),{onUpdateControl:r,onDeleteControl:s,onAddMenuControl:d}=e.inject("CHANGE_CONTROL",{onUpdateControl:V=>{},onDeleteControl:V=>{},onAddMenuControl:(V,D,U)=>{}}),i=e.computed(()=>{var V;return(V=e.unref(o))==null?void 0:V.filter(D=>D.keyName!=="")}),c=e.computed(()=>{const V=[];return e.unref(l)||V.push({keyName:"父页面",id:"PARENT"}),[...V,...e.unref(i)]}),p=e.computed(()=>{var U,H;const V=[],D=(U=e.unref(i))==null?void 0:U.find(q=>{var Q;return q.id===((Q=t.control)==null?void 0:Q.id)});if(D){const q=D.type,Q=ee.pick(D,["value","startTime","endTime"]);(H=Object.keys(Q))!=null&&H.length||(Q.value="");for(const Z in Q)if(Object.prototype.hasOwnProperty.call(Q,Z)){const oe=e.unref(a)[Z];if(Array.isArray(oe)){const le=oe.find(re=>ue(q,re.onlyType));le&&V.push({label:le.label,value:Z})}else V.push({label:oe.label,value:Z})}}return V}),u=()=>{s({index:t.index,path:t.path}),y(t.control.id)},f=({key:V})=>{d(t.path,t.index,V==="2"?"||":"&&")};function y(V){const D=e.unref(i).find(U=>U.id===V);if(D){const{type:U,id:H,events:q=[]}=D,Q=Lo(U),Z=q.findIndex(oe=>{var le;return oe.on===Q&&oe.target===((le=e.unref(N))==null?void 0:le.id)&&oe.emit==="refreshData"});Z!==-1&&(q.splice(Z,1),n({id:H,events:q}))}}const b=V=>{const D={...t.control};if(D.id=V,D.customValue="",V){const U=e.unref(i).find(H=>H.id===V);U&&(D.keyName=U.keyName,A(U,V))}delete D.prop,r({control:D,index:t.index,path:t.path})},m=e.ref(""),h=()=>{m.value=t.control.id},C=V=>{r({control:{...t.control,prop:V},index:t.index,path:t.path})},g=V=>{r({control:{...t.control,prop:V.target.value},index:t.index,path:t.path})},T=V=>{r({control:{...t.control,rule:V},index:t.index,path:t.path})},w=V=>{const D={...t.control};D.modelKey&&(D.modelKey=""),D.prop&&(D.prop=""),D.format&&(D.format=""),r({control:{...D,dataType:V,customValue:"",id:"",keyName:""},index:t.index,path:t.path})},_=V=>{r({control:{...t.control,customValue:V.target.value},index:t.index,path:t.path})},S=V=>{const D={...t.control};V==null?delete D.mode:D.mode=V,delete D.conditionLabel,delete D.conditionName,delete D.conditionKey,delete D.conditionValueType,r({control:D,index:t.index,path:t.path})},N=e.inject(Ie),I=e.inject(Ce),F=e.computed(()=>{var Je;const{classificationList:V=[],seriesList:D=[],leftAxisList:U=[],rightAxisList:H=[],indicators:q=[],rowHeaderList:Q=[],queryColumnList:Z=[]}=e.unref(I),oe=ee.cloneDeep([...V,...D,...U,...H,...q,...Q,...Z]);if(oe!=null&&oe.length)for(const fe of oe)fe.id=fe.name;const le=[{label:"日期",name:"日期",id:"the_date",genericType:"DATE",typeGuid:"the_date",indexCode:null},{label:"HRP单位编号",name:"HRP单位编号",id:"hbdwbh",genericType:"TEXT",typeGuid:"hbdwbh",indexCode:null},{label:"HRP单位名称",name:"HRP单位名称",id:"hbdwbh_name",genericType:"TEXT",typeGuid:"hbdwbh_name",indexCode:null},...t.intersection.map(fe=>({...fe,id:fe.name,label:fe.title||fe.label})),...oe];if(((Je=e.unref(N))==null?void 0:Je.type)==="ecanSelect"){const{selectFieldOptions:fe=[]}=e.unref(I);if(le.unshift({label:"上级编码",name:"上级编码",id:"parentCode",genericType:"TEXT"}),fe!=null&&fe.length)for(const Ne of fe)le.unshift({label:Ne.label,name:Ne.value,id:Ne.value,genericType:"TEXT"})}const re=new Map,We=le.length;for(let fe=0;fe<We;fe++){const Ne=le[fe],{id:At}=Ne||{};re.set(At,Ne)}return[...re].map(([fe,Ne])=>Ne)});function A(V,D){var Z,oe;const{type:U,id:H,events:q=[]}=V,Q=Lo(U);e.unref(m)&&D!==e.unref(m)&&(ft(((Z=e.unref(I))==null?void 0:Z.controlList)||[]).find(re=>re.id===e.unref(m))||y(e.unref(m))),q.find(le=>{var re;return le.on===Q&&le.target===((re=e.unref(N))==null?void 0:re.id)&&le.emit==="refreshData"})||n({id:H,events:[...q,{on:Q,target:(oe=e.unref(N))==null?void 0:oe.id,emit:"refreshData"}].reverse()})}const R=(V,D)=>{if(V){const{label:U,name:H,id:q,genericType:Q,indexCode:Z,typeGuid:oe,indexCodeNum:le}=D||{},re={...t.control,conditionKey:q,conditionLabel:U,conditionName:H,conditionValueType:Q,indexCode:Z,typeGuid:oe,indexCodeNum:le};qe(re,"rule")||(re.rule="EQUAL"),qe(re,"dataType")||(re.dataType="component"),r({control:re,index:t.index,path:t.path})}else{const U={...t.control};delete U.conditionLabel,delete U.conditionName,delete U.conditionKey,delete U.conditionValueType,r({control:U,index:t.index,path:t.path})}},v=(V,D)=>{var U;return(U=D==null?void 0:D.keyName)==null?void 0:U.toLowerCase().includes(V==null?void 0:V.toLowerCase())},$=(V,D)=>{var U;return(U=D==null?void 0:D.label)==null?void 0:U.toLowerCase().includes(V==null?void 0:V.toLowerCase())},k=e.computed(()=>{const V=e.unref(F).find(U=>U.id===t.control.conditionKey);let D="";return V&&(D=(V==null?void 0:V.genericType)||""),D==="TEXT"||D==="0"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:D==="NUMBER"||D==="1"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:D==="DATE"||D==="2"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[]}),E=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],O=e.computed(()=>{let V=!1;const{id:D="",dataType:U="component"}=t.control;if(D&&U==="component"){const H=e.unref(i).find(Q=>Q.id===D),q=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];ue(H==null?void 0:H.type,q)&&(V=!0)}return D==="PARENT"&&(V=!0),V}),L=e.computed(()=>{let V=!1;const{id:D="",dataType:U="component"}=t.control;if(D&&U==="component"){const H=e.unref(i).find(q=>q.id===D);ue((H==null?void 0:H.type)||"","range")&&(V=!0)}return D==="PARENT"&&(V=!0),V}),P=e.computed(()=>{let V=!1;const{id:D="",dataType:U="component"}=t.control;if(D&&U==="component"){const H=e.unref(i).find(q=>q.id===D);ue((H==null?void 0:H.type)||"",["date","range"])&&(V=!0)}return V});return{propOptions:p,usedComponentList:i,onDelete:u,onIdChange:b,onIdFocus:h,onPropChange:C,onParentPropChange:g,onModeChange:S,onRuleChange:T,onDataTypeChange:w,onCustomValueChange:_,conditionKeyOptions:F,onConditionKeyChange:R,idFilterOption:v,filterOption:$,onFormatChange:V=>{r({control:{...t.control,format:V},index:t.index,path:t.path})},onModelPropChange:V=>{r({control:{...t.control,modelKey:V.target.value},index:t.index,path:t.path})},clickConditionMenu:f,ruleOption:k,dataTypeOption:E,isShowProp:L,isShowFormat:P,isShowModelProp:O,formatOptions:[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],keyNameOptions:c}}}),lg="",rg="",kb={class:"control-card"};function xb(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),d=e.resolveComponent("a-input"),i=e.resolveComponent("menu-outlined"),c=e.resolveComponent("a-menu-item"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("a-dropdown"),f=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",kb,[e.createVNode(s,{class:"field-name",value:t.control.conditionKey,options:t.conditionKeyOptions,fieldNames:{value:"id"},"allow-clear":"","show-search":"",onChange:t.onConditionKeyChange,"filter-option":t.filterOption},null,8,["value","options","onChange","filter-option"]),e.createVNode(s,{class:"field-name",value:t.control.rule,options:t.ruleOption,style:{"max-width":"100px"},onChange:t.onRuleChange},null,8,["value","options","onChange"]),e.createVNode(s,{class:"field-name",value:t.control.dataType,options:t.dataTypeOption,style:{"max-width":"100px"},onChange:t.onDataTypeChange},null,8,["value","options","onChange"]),t.control.dataType===""?(e.openBlock(),e.createBlock(d,{key:0,class:"field-name",value:t.control.customValue,style:{"max-width":"180px"},onInput:t.onCustomValueChange},null,8,["value","onInput"])):e.createCommentVNode("",!0),t.control.dataType==="component"?(e.openBlock(),e.createBlock(s,{key:1,class:"field-name",value:t.control.id,options:t.keyNameOptions,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption,style:{"max-width":"180px"},onChange:t.onIdChange,onClick:t.onIdFocus},null,8,["value","options","filter-option","onChange","onClick"])):e.createCommentVNode("",!0),t.isShowModelProp?(e.openBlock(),e.createBlock(d,{key:2,class:"field-name",value:t.control.modelKey,onInput:t.onModelPropChange,placeholder:t.control.id==="PARENT"?"请输入组件别名":""},null,8,["value","onInput","placeholder"])):e.createCommentVNode("",!0),t.isShowProp?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.control.id==="PARENT"?(e.openBlock(),e.createBlock(d,{key:0,class:"field-name",value:t.control.prop,onInput:t.onParentPropChange,placeholder:"请输入属性名"},null,8,["value","onInput"])):(e.openBlock(),e.createBlock(s,{key:1,class:"field-name",value:t.control.prop,options:t.propOptions,onChange:t.onPropChange},null,8,["value","options","onChange"]))],64)):e.createCommentVNode("",!0),t.isShowFormat?(e.openBlock(),e.createBlock(s,{key:4,class:"field-name",value:t.control.format,options:t.formatOptions,onChange:t.onFormatChange},null,8,["value","options","onChange"])):e.createCommentVNode("",!0),e.createVNode(u,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(c,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(c,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{class:"more-icon"})]),_:1}),e.createVNode(f,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const _b=ae(wb,[["render",xb],["__scopeId","data-v-b1b2c1ce"]]),Sb=e.defineComponent({name:"ControlList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""},intersection:{type:Array,default:()=>[]}},components:{ControlCard:_b}}),ig="",Tb={key:0,class:"condition-list"},Nb={key:0,class:"condition-container"},Ab={key:0,class:"condition-text"},Ob={key:1,class:"condition-text"},Eb={class:"conditions"};function Bb(t,o,n,a,l,r){const s=e.resolveComponent("control-list",!0),d=e.resolveComponent("control-card");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Tb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Nb,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Ab,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Ob,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Eb,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${c}`,list:i.conditions,intersection:t.intersection},null,8,["level","path","list","intersection"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(d,{class:"condition",key:i.keyValue||`${t.level}-${c}`,control:i,index:c,path:t.path||"",intersection:t.intersection},null,8,["control","index","path","intersection"]))],64))),128))])):e.createCommentVNode("",!0)}const Lb=ae(Sb,[["render",Bb],["__scopeId","data-v-916ff9bd"]]),Vb=e.defineComponent({name:"ControlGroup",props:{intersection:{type:Array,default:()=>[]}},components:{ControlList:Lb,AButton:j.Button},setup(){const t=e.inject(ze),o=e.inject(Ce),n=e.inject(Ae),a=e.computed(()=>{var u,f;const p=((u=e.unref(o))==null?void 0:u.controlList)||[];for(const y of p)y.conditionKey&&(qe(y,"rule")||(y.prop==="startTime"?y.rule="GREATER_EQUAL":y.prop==="endTime"?y.rule="LESS_EQUAL":y.rule="EQUAL"),qe(y,"dataType")||(y.dataType="component"));return(p==null?void 0:p.length)>1&&!((f=p[0])!=null&&f.join)?[{join:"&&",conditions:p}]:p}),l=e.ref(null),r=p=>{const u={...e.unref(o),...p,sqlConditions:ql({...e.unref(o),...p},e.unref(t))};n(u)},s=p=>{var f;const u=(f=e.unref(a))==null?void 0:f.slice();u==null||(u==null?void 0:u.length)===0?r({controlList:[{keyValue:ge()}]}):u[0]!=null&&(u[0].conditions==null||u[0].join!==p?r({controlList:[{join:p,conditions:[u[0],{keyValue:ge()}]}]}):u[0].conditions.length>1&&u[0].join===p&&(u[0].conditions.push({keyValue:ge()}),r({controlList:u})))},d=p=>{var h,C,g,T;const{index:u,path:f}=p;let y=ee.cloneDeep((h=e.unref(a))==null?void 0:h.slice()),b=y;const m=f.split("-");if(m!=null&&m.length){for(const w of m)if(b[w])b=(C=b[w])==null?void 0:C.conditions;else break;if(Array.isArray(b)&&b[u])if(b.splice(u,1),b.length===1){if(m.length>0){const w=m.length-1,_=m[w],S=m.slice(0,w);let N=y,I="";for(const F of S)if(N[F])I=(g=N[F])==null?void 0:g.join,N=(T=N[F])==null?void 0:T.conditions;else break;if(I===b[0].join){if(Array.isArray(b[0].conditions)){const F=ee.cloneDeep(b[0].conditions);N.splice(+_,1),N.splice(+_,0,...F)}}else N[_]=b[0]}}else b.length===0&&(y=[]);r({controlList:y})}},i=p=>{var C,g;const{control:u,index:f,path:y}=p,b=ee.cloneDeep((C=e.unref(a))==null?void 0:C.slice());let m=b;const h=y.split("-");if(h!=null&&h.length)for(const T of h)if(m[T])m=(g=m[T])==null?void 0:g.conditions;else break;Array.isArray(m)&&m[f]&&(m[f]=u),r({controlList:b})},c=(p,u,f)=>{var C,g,T;const y=ee.cloneDeep((C=e.unref(a))==null?void 0:C.slice());let b=y,m="";const h=p.split("-");if(h!=null&&h.length){for(const w of h)if(b[w])m=(g=b[w])==null?void 0:g.join,b=(T=b[w])==null?void 0:T.conditions;else break;if(m===f)b.splice(u+1,0,{keyValue:ge()});else{const w=ee.cloneDeep(b[u]);b[u]={join:f,conditions:[w,{keyValue:ge()}]}}r({controlList:y})}};return e.provide("CHANGE_CONTROL",{onDeleteControl:d,onUpdateControl:i,onAddMenuControl:c}),{controlList:a,bindComponentId:l,onAddControl:s}}}),sg="",Fb={class:"control-group"},$b={class:"control-group-header"},vb={class:"control-group-content"};function Ib(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("control-list");return e.openBlock(),e.createElementBlock("div",Fb,[e.createElementVNode("div",$b,[Array.isArray(t.controlList)&&t.controlList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{onClick:o[0]||(o[0]=i=>t.onAddControl("&&"))},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(s,{onClick:o[1]||(o[1]=i=>t.onAddControl("||")),style:{"margin-left":"15px"}},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=i=>t.onAddControl())},{default:e.withCtx(()=>[e.createTextVNode("添加条件")]),_:1}))]),e.createElementVNode("div",vb,[e.createVNode(d,{class:"condition-list",list:t.controlList,level:0,intersection:t.intersection},null,8,["list","intersection"])])])}const Db=ae(Vb,[["render",Ib],["__scopeId","data-v-69806ab9"]]),Mb=e.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},label:String},components:{CloseOutlined:eo,AppstoreAddOutlined:un,ASelect:j.Select,ASelectOption:j.SelectOption,AInput:j.Input,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,AInputNumber:j.InputNumber},setup(t,{emit:o}){const n=e.ref(!1),a=e.inject(ze),l=e.computed(()=>{var w;return(w=e.unref(a))==null?void 0:w.filter(_=>_.keyName!=="")}),r=[{label:"TEXT",value:"TEXT"},{label:"NUMBER",value:"NUMBER"},{label:"DATE",value:"DATE"}],s=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],d=[{label:"间隔值",value:"rangeValue"},{label:"开始时间",value:"startTime"},{label:"结束时间",value:"endTime"}],i=e.ref(ee.cloneDeep(t.item));e.watch(i,w=>{o("update",{...w,label:t.label},t.index)},{deep:!0});const c=e.computed(()=>{var _;let w=null;if(((_=e.unref(i))==null?void 0:_.dataType)==="component"){const S=e.unref(l).find(N=>{var I;return N.id===((I=e.unref(i))==null?void 0:I.id)});S&&(w=S)}return w}),p=e.computed(()=>{var _;let w=!1;return((_=e.unref(i))==null?void 0:_.variableType)==="DATE"&&(w=!0),w}),u=e.computed(()=>{let w=!1;return e.unref(c)&&(w=ue(e.unref(c).type,"range")),w}),f=e.computed(()=>{let w=!1;return e.unref(c)&&(ue(e.unref(c).type,"range")?["startTime","endTime"].includes(e.unref(i).dateTypeValue)&&(w=!0):ue(e.unref(c).type,"date")&&(w=!0)),w}),y=(w,_)=>{w&&(e.unref(i).keyName=_.keyName)},b=()=>{o("delete",t.index)},m=e.computed(()=>e.unref(p)?[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}]:[]),h=()=>{e.unref(i).id=null,e.unref(i).keyName="",e.unref(i).dateTypeValue=null,e.unref(i).variableValue=""},C=()=>{e.unref(i).format=null},g=(w,_)=>{var S;return(S=_==null?void 0:_.keyName)==null?void 0:S.toLowerCase().includes(w==null?void 0:w.toLowerCase())};return e.watch(f,w=>{w&&(e.unref(i).operateType||(e.unref(i).operateType="add"),e.unref(i).operateMode||(e.unref(i).operateMode="year"),e.unref(i).operateValue||(e.unref(i).operateValue=0),e.unref(i).activeOperateKey||(e.unref(i).activeOperateKey=1))},{immediate:!0}),{variableData:i,typeOption:r,dataTypeOption:s,usedComponentList:l,formatOptions:m,rangeTypeOptions:d,isShowFormat:p,isDateRangeComponent:u,isShowDateOperate:f,popoverVisible:n,idFilterOption:g,onChangeComponent:y,onDelete:b,onChangeDataType:h,onChangeVariableType:C,changeTab:w=>{e.unref(i).activeOperateKey=w,w===1?e.unref(i).operateValue=0:w===2&&(e.unref(i).operateValue="rangeValue")}}}}),cg="",Pb={class:"variable-item"},jb=["title"],Rb={class:"popover-content-wrap"},Ub={style:{display:"flex"}};function zb(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),d=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-input-number"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("a-tabs"),f=e.resolveComponent("appstore-add-outlined"),y=e.resolveComponent("a-popover"),b=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",Pb,[t.variableData.randomKey?(e.openBlock(),e.createElementBlock("div",{key:0,class:"var-indicator",title:t.label},e.toDisplayString(t.label),9,jb)):e.createCommentVNode("",!0),e.createVNode(s,{class:"field-name",value:t.variableData.variableName,"onUpdate:value":o[0]||(o[0]=m=>t.variableData.variableName=m),placeholder:"请输入变量名",disabled:!!t.variableData.randomKey},null,8,["value","disabled"]),e.createVNode(d,{class:"field-name",value:t.variableData.variableType,"onUpdate:value":o[1]||(o[1]=m=>t.variableData.variableType=m),options:t.typeOption,disabled:t.variableData.disabled,style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:t.onChangeVariableType},null,8,["value","options","disabled","onChange"]),e.createVNode(d,{class:"field-name",value:t.variableData.dataType,"onUpdate:value":o[2]||(o[2]=m=>t.variableData.dataType=m),options:t.dataTypeOption,style:{"max-width":"120px"},onChange:t.onChangeDataType},null,8,["value","options","onChange"]),t.variableData.dataType==="component"?(e.openBlock(),e.createBlock(d,{key:1,class:"field-name",value:t.variableData.id,"onUpdate:value":o[3]||(o[3]=m=>t.variableData.id=m),options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption,style:{"max-width":"180px"},placeholder:"请选择组件",onChange:t.onChangeComponent},null,8,["value","options","filter-option","onChange"])):(e.openBlock(),e.createBlock(s,{key:2,class:"field-name",style:{"max-width":"180px"},value:t.variableData.variableValue,"onUpdate:value":o[4]||(o[4]=m=>t.variableData.variableValue=m),placeholder:"请输入变量值"},null,8,["value"])),t.isDateRangeComponent?(e.openBlock(),e.createBlock(d,{key:3,class:"field-name",value:t.variableData.dateTypeValue,"onUpdate:value":o[5]||(o[5]=m=>t.variableData.dateTypeValue=m),options:t.rangeTypeOptions,placeholder:"请选择取值类型"},null,8,["value","options"])):e.createCommentVNode("",!0),e.createVNode(d,{class:"field-name",value:t.variableData.format,"onUpdate:value":o[6]||(o[6]=m=>t.variableData.format=m),options:t.formatOptions,placeholder:"请选择值格式"},null,8,["value","options"]),t.isShowDateOperate?(e.openBlock(),e.createBlock(y,{key:4,visible:t.popoverVisible,"onUpdate:visible":o[14]||(o[14]=m=>t.popoverVisible=m),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",Rb,[e.createVNode(u,{defaultActiveKey:t.variableData.activeOperateKey,onChange:t.changeTab},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(p,{tab:"日期偏移",key:1},{default:e.withCtx(()=>[e.createVNode(c,{class:"field-name",min:"0",value:t.variableData.operateValue,"onUpdate:value":o[9]||(o[9]=m=>t.variableData.operateValue=m),style:{"max-width":"180px",flex:"auto"}},{addonBefore:e.withCtx(()=>[e.createVNode(d,{value:t.variableData.operateType,"onUpdate:value":o[7]||(o[7]=m=>t.variableData.operateType=m),style:{width:"60px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"add"},{default:e.withCtx(()=>[e.createTextVNode("加")]),_:1}),e.createVNode(i,{value:"minus"},{default:e.withCtx(()=>[e.createTextVNode("减")]),_:1})]),_:1},8,["value"])]),addonAfter:e.withCtx(()=>[e.createVNode(d,{value:t.variableData.operateMode,"onUpdate:value":o[8]||(o[8]=m=>t.variableData.operateMode=m),style:{width:"60px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"year"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"month"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"week"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(i,{value:"day"},{default:e.withCtx(()=>[e.createTextVNode("日")]),_:1}),e.createVNode(i,{value:"hour"},{default:e.withCtx(()=>[e.createTextVNode("时")]),_:1}),e.createVNode(i,{value:"minute"},{default:e.withCtx(()=>[e.createTextVNode("分")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])]),_:1})),t.isDateRangeComponent?(e.openBlock(),e.createBlock(p,{tab:"自定义",key:2},{default:e.withCtx(()=>[e.createElementVNode("div",Ub,[e.createVNode(d,{value:t.variableData.operateValue,"onUpdate:value":o[10]||(o[10]=m=>t.variableData.operateValue=m),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.variableData.operateMode,"onUpdate:value":o[11]||(o[11]=m=>t.variableData.operateMode=m),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"year"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"month"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"week"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(i,{value:"day"},{default:e.withCtx(()=>[e.createTextVNode("日")]),_:1}),e.createVNode(i,{value:"hour"},{default:e.withCtx(()=>[e.createTextVNode("时")]),_:1}),e.createVNode(i,{value:"minute"},{default:e.withCtx(()=>[e.createTextVNode("分")]),_:1})]),_:1},8,["value"]),e.createVNode(d,{value:t.variableData.operateType,"onUpdate:value":o[12]||(o[12]=m=>t.variableData.operateType=m)},{default:e.withCtx(()=>[e.createVNode(i,{value:"minus"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"add"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[13]||(o[13]=m=>{t.popoverVisible=!0})},[e.createVNode(f)])]),_:1},8,["visible"])):e.createCommentVNode("",!0),t.variableData.randomKey?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:5,class:"delete-icon",onClick:t.onDelete},null,8,["onClick"]))])}const Gb=ae(Mb,[["render",zb],["__scopeId","data-v-0d77395a"]]),Hb=e.defineComponent({name:"VariableGroup",components:{VariableItem:Gb},setup(){const t=e.inject(Ce),o=e.inject(Ae),n=e.inject(ze),a=e.computed(()=>{var c;return((c=e.unref(t))==null?void 0:c.variableList)||[]}),l=i=>{o({...e.unref(t),variableConditions:io(i,n),variableList:i})};return{variableList:a,onAddVariable:()=>{const i=ee.cloneDeep(e.unref(a));i.push({keyValue:ge(),variableType:"TEXT",dataType:"",id:null,dateTypeValue:null,format:null,operateType:"add",operateMode:"year",operateValue:0,activeOperateKey:1}),l(i)},onUpdateItem:(i,c)=>{if(c>=0){const p=ee.cloneDeep(e.unref(a));p[c]=i,l(p)}},onDeleteItem:i=>{if(i>=0){const c=ee.cloneDeep(e.unref(a));c.splice(i,1),l(c)}}}}}),dg="",Wb={class:"variable-group"},Yb={class:"variable-group-header"},qb={class:"variable-group-content"};function Kb(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),d=e.resolveComponent("variable-item");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Wb,[e.createElementVNode("div",Yb,[e.createVNode(s,{onClick:t.onAddVariable},{default:e.withCtx(()=>[e.createTextVNode("添加变量")]),_:1},8,["onClick"])])]),e.createElementVNode("div",qb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.variableList,(i,c)=>(e.openBlock(),e.createBlock(d,{key:i.keyValue,item:i,index:c,label:i.label,onUpdate:t.onUpdateItem,onDelete:t.onDeleteItem},null,8,["item","index","label","onUpdate","onDelete"]))),128))])],64)}const Xb=ae(Hb,[["render",Kb],["__scopeId","data-v-fd60cd09"]]),Wr=(t={})=>{const o=(r={})=>{const{label:s,name:d,location:i,show:c,indexCode:p,typeGuid:u}=r;return{label:s,columnName:d,location:i,show:c,calcType:"COLUMN",hrpIndexCode:p,typeGuid:u}},n=r=>{qe(r,"dataType")&&(r.fieldType==="DATE"&&(r.label=r.fieldName,r.dataType==="component"&&(r.fieldValue="${"+r.fieldValue+"}")),delete r.dataType),qe(r,"activeKey")&&delete r.activeKey,qe(r,"radioValue")&&delete r.radioValue},a=r=>{const s=[];return r!=null&&r.length&&r.forEach(d=>{if(d.join&&d.conditions){const i=!d.conditions.some(c=>c.join&&c.conditions);d.conditions.forEach((c,p)=>{n(c),i?p<d.conditions.length-1?s.push({join:d.join,...c}):s.push(c):c.join&&c.conditions?s.push({conditions:a([c]),join:d.join}):s.push(c)})}else n(d),s.push(d)}),s},l=(r={})=>{const{label:s,name:d,location:i,show:c,indexCode:p,calcType:u="COLUMN",builtInFormula:f,builtInValueSource:y,builtInCalcWay:b,formula:m,conditions:h,aggregate:C}=r;let g;return h&&(g=a(h)),{label:s.trim(),columnName:d,location:i,show:c,calcType:u,hrpIndexCode:p,aggregate:C,builtInFormula:f,builtInValueSource:y,builtInCalcWay:b,formula:m,conditions:g}};return async()=>{const{graphicConfig:r,type:s,request:d,isGroupTable:i}=t;let{source:c,dataViewId:p,plugin:u="1",layer:f,chartType:y,classificationList:b=[],seriesList:m=[],leftAxisList:h=[],rightAxisList:C=[],queryColumnList:g=[],indicators:T=[],dataSourceId:w,idxLibMode:_,preview:S=!1,sqlConditions:N=[],rowHeaderList:I=[]}=r||{};f==null&&(ue(s,["table","card"])?f="1":f="2");let F;if(Array.isArray(b)&&b.length>0){const k=b.length;for(let E=0;E<k;E++){const O=b[E]||{},{label:L="",name:P="",show:x=!1,sort:B,customGroup:M,conditions:V,typeGuid:D}=O;if(x||k===1){F={label:L.trim(),columnName:P,show:x,sort:B,customGroup:M,typeGuid:D,conditions:a(V)};break}}}let A;if(Array.isArray(m)&&m.length>0){const k=m.length;for(let E=0;E<k;E++){const O=m[E]||{},{label:L="",name:P="",show:x=!1,sort:B,customGroup:M,conditions:V,typeGuid:D}=O;if(x||k===1){A={label:L.trim(),columnName:P,show:x,sort:B,customGroup:M,conditions:a(V),typeGuid:D};break}}}const R=[];if(Array.isArray(I)&&I.length>0){const k=I.length;for(let E=0;E<k;E++){const O=I[E]||{},{label:L="",name:P="",show:x=!1,sort:B,customGroup:M,conditions:V,typeGuid:D}=O;R.push({typeGuid:D,label:L.trim(),columnName:P,show:x,sort:B,customGroup:M,conditions:a(V)})}}const v=[];g==null||g.forEach(k=>{v.push(o(k))});const $=[];if(h==null||h.forEach(k=>{k.location="LEFT",$.push(l(k))}),C==null||C.forEach(k=>{k.location="RIGHT",$.push(l(k))}),T==null||T.forEach(k=>{k.location="LEFT",$.push(l(k))}),i||s==="card"){if(y="grouptable",$.length===0||R.length===0)return}else{if(f==="1"&&v.length===0)return;if(f==="2"&&$.length===0)return}try{return await d.post(`${_e}/diagram`,{source:c,dataViewId:p,plugin:u,layer:f,chartType:y,classification:F,series:A,indicatorList:$,queryColumns:v,pageFlag:!0,sqlConditions:N,rowHeaders:R,dataSourceId:w,idxLibMode:_,preview:S})}catch(k){console.error(k)}}},Qb=e.defineComponent({name:"ChartGraph",components:{ASpin:j.Spin},props:{graphicConfig:{type:Object,default:()=>{}},chartsOptions:{type:Object,default:()=>{}}},setup(t,{expose:o}){const n=e.computed(()=>t.chartsOptions?e.unref(t.chartsOptions):i),a=e.computed(()=>t.graphicConfig?e.unref(t.graphicConfig):d),l=e.inject(Be);let r=null;const s=e.inject(Le)||"",d=e.inject(Ce)||{},i=e.inject(wo)||{},c=e.ref(null),p=e.ref(null),u=e.ref(),f=e.ref(!1),y=e.ref(!1),b=e.computed(()=>y.value?oi:12),m=e.ref({}),h=e.ref(),C=e.computed(()=>{const F=e.unref(n.value);return(F==null?void 0:F.type)==="customGraph"?h.value:Zc(F,e.unref(m),b.value)}),g=(F=[],A,R=!1)=>{const v=R?A:null;m.value=Wc(F,v)},T=(F=[],A)=>{m.value=Yc(F,A)},w=async()=>{var F,A,R;try{const v=Wr({graphicConfig:e.unref(a.value),type:(F=e.unref(n.value))==null?void 0:F.type,request:l,indicatorToken:s});f.value=!0;const $=await v(),{columns:k=[],rows:E=[]}=((A=$==null?void 0:$.data)==null?void 0:A.data)??{};if(((R=e.unref(n.value))==null?void 0:R.type)==="pie"){let O=[];if(k.length>0){const L=k[0],P=k[1];O=E.map(x=>({name:x[L],value:x[P]}))}T(O)}else{let O;k.length>0&&(O={name:k[0],types:k.slice(1).map(L=>({label:L,value:L}))}),g(E,O,!0)}}catch(v){console.error(v)}finally{f.value=!1}},_={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},S=()=>{e.unref(m).dataset.length===0?u.value.setOption(_,!0):u.value.setOption(C.value,!0)},N=()=>{e.unref(n.value).type!=="customGraph"&&w()},I=()=>{var F;(F=u.value)==null||F.resize()};return e.watch(C,()=>{S()},{deep:!0}),e.watch(()=>e.unref(n.value).optionCode,F=>{try{const A=eval;h.value=A(F)}catch(A){console.error(A)}},{immediate:!0}),e.onMounted(()=>{p.value&&(r=new ResizeObserver(I),r.observe(p.value)),u.value=ti.init(c.value)}),e.onBeforeUnmount(()=>{u.value.dispose(),r&&(r.disconnect(),r=null)}),o({refreshData:N}),{echartRef:c,loading:f}}}),pg="",Jb={class:"ecan-chart-graph",ref:"chartWrapRef"},Zb={style:{width:"100%",height:"100%"},ref:"echartRef"};function ey(t,o,n,a,l,r){const s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",Jb,[e.createVNode(s,{spinning:t.loading,wrapperClassName:"chart-spin",tip:"数据加载中..."},{default:e.withCtx(()=>[e.createElementVNode("div",Zb,null,512)]),_:1},8,["spinning"])],512)}const Yr=ae(Qb,[["render",ey],["__scopeId","data-v-845f7ab1"]]),ty=e.defineComponent({name:"TableGraph",components:{ATable:j.Table},props:{graphicConfig:{type:Object,default:()=>{}},type:{type:String},pagination:{type:Object,default:()=>({})}},setup(t){const o=e.inject(Ie),n=e.ref([]),a=e.ref([]),l=e.inject(Be),r=e.inject(Le)||"",s=async()=>{var d;try{const c=await Wr({graphicConfig:t.graphicConfig,type:t.type,request:l,indicatorToken:r})(),{columns:p=[],rows:u=[]}=((d=c==null?void 0:c.data)==null?void 0:d.data)??{},f=e.unref(o).columnsConfigMap;a.value=p.map(y=>({title:y,dataIndex:y,label:y,...f[y]})),n.value=u}catch(i){console.error(i)}};return e.watch([()=>t.graphicConfig,()=>e.unref(o).columnsConfigMap],()=>{s()},{deep:!0,immediate:!0}),{tableData:n,tableColumns:a,handleFormat:od,columnsConfigMap:e.unref(o).columnsConfigMap}}}),oy={key:0};function ny(t,o,n,a,l,r){const s=e.resolveComponent("a-table");return e.openBlock(),e.createBlock(s,{style:{width:"100%"},scroll:{y:280},columns:t.tableColumns,"data-source":t.tableData,size:"small",pagination:t.pagination},{bodyCell:e.withCtx(({column:d,record:i})=>[d.retentiondigit!==void 0?(e.openBlock(),e.createElementBlock("span",oy,e.toDisplayString(t.handleFormat(i,d)),1)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source","pagination"])}const ay=ae(ty,[["render",ny]]),ly=e.defineComponent({name:"DataConfig",components:{DataGroup:ff,StyleGroup:Cb,ChartGraph:Yr,ATabs:j.Tabs,ATabPane:j.TabPane,ControlGroup:Db,VariableGroup:Xb,AButton:j.Button,ReloadOutlined:sc,TableGraph:ay},setup(t,{expose:o}){var O;const n=e.ref(),a=e.ref("1"),l=e.ref([0,1,2]),r=e.ref(),s=e.ref(),d=e.inject(Ie),i=e.inject(ua),c=e.inject(Ce),p=e.inject(ze),u=e.inject(ya),f=e.inject(Qo),y=e.inject(ga),b=["text","proportion","select","checkbox","radio","radar","circulate"],m=e.computed(()=>{const L=ee.cloneDeep(e.unref(d));C(L);const P=ee.pick(L,ee.without(Object.keys(L),"position","top","left","width","height"));ue(L.type,b)?(P.height=L.height,P.width=L.width):P.height="290px";const x=ee.cloneDeep(e.unref(c));return x.pageMode="design",x.componentList=p,x.preview=!0,x.pageConfig=u,ue(L.type,"pivottable")&&(e.unref(n)&&(P.height=e.unref(n).$el.clientHeight-20+"px",P.width=e.unref(n).$el.clientWidth+"px"),P.fullMode=!0,x.preview=!1,delete x.pageMode),{...P,graphicConfig:x,toolboxShow:!1,sourceLeft:L.left,sourceTop:L.top}}),h=e.computed(()=>{var M,V;const{token:L,context:P}=e.unref(d),x=(((M=e.unref(s))==null?void 0:M.clientWidth)||0)+"px",B=(((V=e.unref(s))==null?void 0:V.clientHeight)||0)+"px";return{id:e.unref(d).componentId,name:e.unref(d).name,keyName:e.unref(d).keyName,type:"pivotTable",width:x,height:B,graphicConfig:e.unref(d).graphicConfig,dimensionList:e.unref(d).dimensionList||[],fullMode:!0,globalModel:new Map,indicatorUrl:"/api",indicatorToken:L,context:P}});function C(L){var P,x,B,M;["#ffffff","#fff"].includes((P=L==null?void 0:L.color)==null?void 0:P.toLowerCase())&&(L.color="#000"),["#ffffff","#fff"].includes((x=L==null?void 0:L.variableColor)==null?void 0:x.toLowerCase())&&(L.variableColor="#000"),["#ffffff","#fff"].includes((B=L==null?void 0:L.increaseColor)==null?void 0:B.toLowerCase())&&(L.increaseColor="#000"),["#ffffff","#fff"].includes((M=L==null?void 0:L.declineColor)==null?void 0:M.toLowerCase())&&(L.declineColor="#000")}const g=e.computed(()=>{let L=!0;return ue(e.unref(m).type,b)&&(L=!1),L}),T=e.computed(()=>{var L;return(L=e.unref(m))==null?void 0:L.type}),w=e.computed(()=>{var L;return!!((L=e.unref(m))!=null&&L.isGroupTable)}),_=L=>{const P=L==="1";P&&T.value==="table"&&R(),window.changeShowTable&&window.changeShowTable(P),L==="3"&&A()},S=e.ref(),N=e.inject(Be),I=e.unref(e.inject(Le)),F=(O=window==null?void 0:window.config)==null?void 0:O.pageId;function A(){var U;const{leftAxisList:L=[],rightAxisList:P=[],queryColumnList:x=[],indicators:B=[],dataSourceId:M=""}=e.unref(c),V=[...L,...P,...x,...B],D={};for(const H of V){const{id:q="",indexCode:Q=""}=H;q&&!qe(H,"calcType")&&!D[q]&&(D[q]=Q)}if((U=Object.keys(D))!=null&&U.length){const H=[];for(const q in D)H.push(new Promise((Q,Z)=>{N.post(`${_e}/diagram/hrpIndexWithComplex`,{pageId:F,indexGuid:q,indexCode:D[q],dataSourceId:M},{headers:{Authentication:I,operateContext:"ygt"}}).then(oe=>{var We;const{success:le,data:re=[]}=oe.data;le&&((We=re==null?void 0:re.dataViewColumns)!=null&&We.length)?Q(re.dataViewColumns):Z(re)}).catch(oe=>{Z(oe)})}));Promise.all(H).then(q=>{if(q!=null&&q.length){const Q=q.reduce((Z,oe)=>Z.filter(le=>oe.find(re=>re.typeGuid===le.typeGuid)));S.value=Q.filter(Z=>Z.typeGuid)}})}}const R=()=>{var P;let L;i&&T.value==="table"?L=window.updateConfig:L=(P=e.unref(r))==null?void 0:P.refreshData,typeof L=="function"&&L()},v=e.inject(Ae),$=()=>{var L;v({variableConditions:io(((L=e.unref(c))==null?void 0:L.variableList)||[],p)})};e.provide(fa,R),e.watch(c,()=>{R()},{deep:!0,flush:"post"}),e.onMounted(()=>{f.value&&R()});const k=()=>e.unref(r).getSaveData(),E=({type:L,data:P})=>{if(L==="10"){const{dimensions:x,indicators:B}=ee.cloneDeep(P),M=[];if(x){for(const V of x)V.showTitle&&(V.label=V.showTitle),M.push({key:V.name,label:V.showTitle,width:null,position:V.positionType||"rows"});for(const V of B)V.showTitle&&(V.label=V.showTitle)}v({dimensionList:M,queryColumnList:x,indicators:B}),m.value.dimensionList=M}};return o({getSaveData:k}),{isShowStyleConfig:i,activeKey:a,activePanel:l,componentRef:r,pivotTableWrapRef:s,type:T,isGroupTable:w,isPivotTable:f,isIframeMode:y,component:m,fullWidth:g,renderUsedComponents:p,intersection:S,tableProps:h,dataConfigPaneRef:n,refreshData:R,refreshAction:$,onChange:_,onPivotTableChange:E}}}),ug="",ry={key:0,class:"ecan-pivot-table",ref:"pivotTableWrapRef"},iy={key:0,id:"table-wrap",class:"chart-component",ref:"tableWrapRef",style:{width:"100%",height:"290px"}};function sy(t,o,n,a,l,r){const s=e.resolveComponent("pivot-table"),d=e.resolveComponent("data-group"),i=e.resolveComponent("a-tab-pane"),c=e.resolveComponent("style-group"),p=e.resolveComponent("control-group"),u=e.resolveComponent("variable-group"),f=e.resolveComponent("reload-outlined"),y=e.resolveComponent("a-button"),b=e.resolveComponent("a-tabs"),m=e.resolveComponent("table-graph"),h=e.resolveComponent("chart-graph");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["data-config",t.isPivotTable?"pivot-table-wrap":""])},[e.createVNode(b,{activeKey:t.activeKey,"onUpdate:activeKey":o[0]||(o[0]=C=>t.activeKey=C),onChange:t.onChange},{rightExtra:e.withCtx(()=>[e.createVNode(y,{onClick:t.refreshAction},{icon:e.withCtx(()=>[e.createVNode(f)]),default:e.withCtx(()=>[e.createTextVNode(" 刷新 ")]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"数据配置",ref:"dataConfigPaneRef"},{default:e.withCtx(()=>[t.isPivotTable&&t.isIframeMode?(e.openBlock(),e.createElementBlock("div",ry,[e.createVNode(s,e.mergeProps({ref:"componentRef"},t.tableProps),null,16)],512)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPivotTable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(d,{key:0,ref:"dataGroupRef"},null,512)),t.isShowStyleConfig?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),e.mergeProps({key:1,class:["chart-component",t.fullWidth?"full-width":""]},t.component,{ref:"componentRef",onTableChange:t.onPivotTableChange}),null,16,["class","onTableChange"]))],64))]),_:1},512),t.isShowStyleConfig?(e.openBlock(),e.createBlock(i,{key:"2",tab:"样式配置","force-render":""},{default:e.withCtx(()=>[e.createVNode(c,{componentType:t.type,isGroupTable:t.isGroupTable},null,8,["componentType","isGroupTable"])]),_:1})):e.createCommentVNode("",!0),(!t.isIframeMode||t.isPivotTable)&&t.renderUsedComponents?(e.openBlock(),e.createBlock(i,{key:"3",tab:"全局过滤","force-render":""},{default:e.withCtx(()=>[e.createVNode(p,{ref:"controlGroup",intersection:t.intersection},null,8,["intersection"])]),_:1})):e.createCommentVNode("",!0),t.isIframeMode?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i,{key:"4",tab:"全局变量","force-render":""},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}))]),_:1},8,["activeKey","onChange"]),t.isShowStyleConfig&&!t.isPivotTable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="table"&&t.activeKey==="1"?(e.openBlock(),e.createElementBlock("div",iy,null,512)):t.type==="card"?e.withDirectives((e.openBlock(),e.createBlock(m,e.mergeProps({key:1,class:"chart-component"},t.component),null,16)),[[e.vShow,t.activeKey==="1"]]):e.withDirectives((e.openBlock(),e.createBlock(h,{key:2,class:e.normalizeClass(["chart-component",t.fullWidth?"full-width":""]),ref:"componentRef",style:{width:"100%",height:"290px"}},null,8,["class"])),[[e.vShow,t.activeKey==="1"]])],64)):e.createCommentVNode("",!0)],2)}const cy=ae(ly,[["render",sy],["__scopeId","data-v-6f849a2f"]]),dy=e.defineComponent({name:"IndicatorLibrary",components:{DataList:$d,DataConfig:cy},props:{isShowStyleConfig:{type:Boolean,default:!1},sourceType:{type:String,default:""},indicatorToken:{type:String,default:""},selectedComponent:{type:Object,default:()=>{}},request:{default:null},renderUsedComponentList:{type:Array,default:()=>[]},mapAttributeProps:{type:Object,default:()=>({startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"}})},pageConfig:{type:Object,default:()=>{}},isIframeMode:{type:Boolean,default:!1}},setup(t,{expose:o,emit:n}){const a=e.ref(),l=e.ref(!1),r=e.computed(()=>t.sourceType),s=e.computed(()=>t.indicatorToken||""),d=e.computed(()=>t.selectedComponent),i=e.computed(()=>t.renderUsedComponentList),c=e.computed(()=>{var F;return((F=e.unref(d))==null?void 0:F.tableColumns)||[]}),p=e.computed(()=>t.isShowStyleConfig),u=e.computed(()=>{var F,A;return(A=(F=e.unref(d))==null?void 0:F.type)==null?void 0:A.includes("PivotTable")});let f=e.unref(d).graphicConfig?ee.cloneDeep(e.unref(d).graphicConfig):e.ref({});f=e.ref(f);let y=e.unref(d).chartsOptions?ee.cloneDeep(e.unref(d).chartsOptions):e.ref(ee.cloneDeep(Jo.line));y=e.ref(y);let b=e.unref(d).tableOptions?ee.cloneDeep(e.unref(d).tableOptions):e.ref(ee.cloneDeep(ni));b=e.ref(b);const m=e.ref([]),h=F=>{m.value=F},C=F=>{f.value={...e.unref(f),...e.unref(F)}},g=(F,A=!0)=>{A?y.value={...e.unref(y),...e.unref(F)}:y.value={...e.unref(F)}},T=F=>{b.value={...e.unref(b),...e.unref(F)}},w=()=>m,_=()=>{l.value=!0,e.unref(d).graphicConfig&&(f.value=ee.cloneDeep(e.unref(d).graphicConfig)),e.unref(d).chartsOptions&&(y.value=ee.cloneDeep(e.unref(d).chartsOptions||Jo.line)),e.nextTick(()=>{l.value=!1})},S=()=>({graphicConfig:e.unref(f),chartsOptions:e.unref(y),tableOptions:e.unref(b),tableColumns:e.unref(c),columnsConfigMap:e.unref(d).columnsConfigMap}),N=()=>({...e.unref(a).getSaveData(),graphicConfig:e.unref(f)});window.getIndicatorData=S,window.getPivotGraphicData=N,t.request&&e.provide(Be,t.request),e.provide(pa,{setDataList:h,getDataList:w});const I=F=>{n("updateUsedComponent",F)};return e.provide(Qo,u),e.provide(ga,t.isIframeMode),e.provide(Ie,d),e.provide(Ce,f),e.provide(wo,y),e.provide(ma,b),e.provide(Xt,r),e.provide(ua,p),e.provide(Le,s),e.provide(Ae,C),e.provide(Ko,g),e.provide(Xo,T),e.provide(ze,i),e.provide(xo,I),e.provide(ba,t.mapAttributeProps),e.provide(ya,t.pageConfig),o({graphicConfig:f,chartsOptions:y,updateIndicatorData:_}),{isUpdate:l,isPivotTable:u,dataConfigRef:a}}}),fg="",py={key:0,class:"config-modal"},uy={key:0,class:"config-modal-left"};function fy(t,o,n,a,l,r){const s=e.resolveComponent("data-list"),d=e.resolveComponent("data-config");return t.isUpdate?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",py,[t.isPivotTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",uy,[e.createVNode(s)])),e.createElementVNode("div",{class:e.normalizeClass(["config-modal-right",t.isPivotTable?"full":""])},[e.createVNode(d,{ref:"dataConfigRef"},null,512)],2)]))}const qr=da(ae(dy,[["render",fy],["__scopeId","data-v-3a297490"]])),Kr=da(Yr),Xr=Object.freeze(Object.defineProperty({__proto__:null,EcanChartGraph:Kr,EcanIndicatorLibrary:qr},Symbol.toStringTag,{value:"Module"})),my={install:(t,o)=>{const{request:n}=o;t.provide("$request",n),Object.keys(Xr).forEach(a=>{const l=Xr[a];l.install&&t.use(l)})}};be.EcanChartGraph=Kr,be.EcanIndicatorLibrary=qr,be.default=my,Object.defineProperties(be,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
72
+ yMax表示y轴刻度最大值,yMin表示y轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量`}}},Cf=e.defineComponent({name:"Input",directives:{focus},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{AInput:j.Input},emits:["change"],setup(t,{emit:o}){return{onInputChange:a=>{o("change",a.target.value)}}}});function wf(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveDirective("focus");return e.withDirectives((e.openBlock(),e.createBlock(s,{value:t.value,disabled:t.disabled,onChange:t.onInputChange},null,8,["value","disabled","onChange"])),[[c]])}const kf=ae(Cf,[["render",wf]]),xf=e.defineComponent({name:"InputNumber",props:{value:{type:[String,Number,Object],default:""},valueKey:{type:String,default:"value"},prefixValueKey:{type:String,default:"prefix"},prefix:{type:[String,Array],default:""},suffixValueKey:{type:String,default:"suffix"},suffix:{type:[String,Array],default:""},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:[String,Number],default:1},useBlurEvent:{type:Boolean,default:!0}},components:{AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption},emits:["change"],setup(t,{emit:o}){const n=e.computed(()=>{const u=t.value;return typeof u=="string"?parseFloat(u):typeof u=="object"&&u!=null?u[t.valueKey]:u}),a=u=>t.value!=null&&typeof t.value=="object"?t.value[t[`${u}ValueKey`]]:Array.isArray(t[u])?t[u][0]&&t[u][0].value:null,l=e.ref(a("prefix")),r=e.ref(a("suffix"));return{inputValue:n,onInputChange:u=>{const m=t.suffix;Array.isArray(t.prefix)||Array.isArray(t.suffix)?o("change",{[t.valueKey]:u,[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)}):m===""||u==null?o("change",u):o("change",`${u}${m}`)},parser:u=>typeof t.suffix=="string"?u.replace(t.suffix,""):Array.isArray(t.suffix)&&t.value!=null&&typeof t.value=="object"?u.replace(t.value[t.suffixValueKey],""):u,onInputBlur:()=>{t.useBlurEvent&&o("change",null,!1)},prefixValue:l,suffixValue:r,onPrefixChange:()=>{Array.isArray(t.prefix)&&o("change",{[t.valueKey]:e.unref(n),[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)})},onSuffixChange:()=>{Array.isArray(t.suffix)&&o("change",{[t.valueKey]:e.unref(n),[t.prefixValueKey]:e.unref(l),[t.suffixValueKey]:e.unref(r)})}}}});function _f(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-input-number");return e.openBlock(),e.createBlock(i,{value:t.inputValue,min:t.min,max:t.max,step:t.step,parser:t.parser,"addon-before":Array.isArray(t.prefix)?void 0:t.prefix,"addon-after":Array.isArray(t.suffix)?void 0:t.prefix,onChange:t.onInputChange,onBlur:t.onInputBlur},e.createSlots({_:2},[Array.isArray(t.prefix)&&t.prefix.length>0?{name:"addonBefore",fn:e.withCtx(()=>[e.createVNode(c,{value:t.prefixValue,"onUpdate:value":o[0]||(o[0]=d=>t.prefixValue=d),onChange:t.onPrefixChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.prefix,({label:d,value:p},u)=>(e.openBlock(),e.createBlock(s,{key:u,value:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),key:"0"}:void 0,Array.isArray(t.suffix)&&t.suffix.length>0?{name:"addonAfter",fn:e.withCtx(()=>[e.createVNode(c,{value:t.suffixValue,"onUpdate:value":o[1]||(o[1]=d=>t.suffixValue=d),onChange:t.onSuffixChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.suffix,({label:d,value:p},u)=>(e.openBlock(),e.createBlock(s,{key:u,value:p},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])]),key:"1"}:void 0]),1032,["value","min","max","step","parser","addon-before","addon-after","onChange","onBlur"])}const sr=ae(xf,[["render",_f]]),Sf=e.defineComponent({name:"RadioGroup",props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},optionType:{type:String,default:"default"},size:{type:String,default:"default"}},components:{ARadioGroup:j.RadioGroup,ARadioButton:j.RadioButton},emits:["change"],setup(t,{emit:o}){return{onRadioChange:a=>{o("change",a.target.value)}}}});function Tf(t,o,n,a,l,r){const s=e.resolveComponent("a-radio-button"),c=e.resolveComponent("a-radio-group");return e.openBlock(),e.createBlock(c,{value:t.value,optionType:t.optionType,onChange:t.onRadioChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,i=>(e.openBlock(),e.createBlock(s,{key:i.value,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","optionType","onChange"])}const Nf=ae(Sf,[["render",Tf]]),Af=e.defineComponent({name:"Select",props:{value:{type:[String,Number,Array,Array],default:""},options:{type:Array,default:()=>[]},customOption:{type:Function}},components:{ASelect:j.Select,ASelectOption:j.SelectOption},emits:["change"],setup(t,{emit:o}){return{onSelectChange:a=>{o("change",a)}}}});function Ef(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select");return e.openBlock(),e.createBlock(c,{value:t.value,onChange:t.onSelectChange},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,i=>(e.openBlock(),e.createBlock(s,{key:i.value,value:i.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(i.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"])}const Of=ae(Af,[["render",Ef]]),Bf=e.defineComponent({name:"Switch",props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:150},disabled:{type:Boolean,default:!1}},components:{ASwitch:j.Switch},emit:["change"],setup(t,{emit:o}){return{onSwitchChange:a=>{o("change",a)}}}});function Vf(t,o,n,a,l,r){const s=e.resolveComponent("a-switch");return e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({width:`${t.width}px`})},[e.createVNode(s,{disabled:t.disabled,checked:t.value,onChange:t.onSwitchChange},null,8,["disabled","checked","onChange"])],4)}const Lf=ae(Bf,[["render",Vf]]);var Ee="top",Me="bottom",Pe="right",Oe="left",qn="auto",io=[Ee,Me,Pe,Oe],Mt="start",so="end",Ff="clippingParents",cr="viewport",co="popper",$f="reference",dr=io.reduce(function(t,o){return t.concat([o+"-"+Mt,o+"-"+so])},[]),pr=[].concat(io,[qn]).reduce(function(t,o){return t.concat([o,o+"-"+Mt,o+"-"+so])},[]),If="beforeRead",vf="read",Df="afterRead",Mf="beforeMain",Pf="main",jf="afterMain",Rf="beforeWrite",Uf="write",zf="afterWrite",Gf=[If,vf,Df,Mf,Pf,jf,Rf,Uf,zf];function qe(t){return t?(t.nodeName||"").toLowerCase():null}function $e(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var o=t.ownerDocument;return o&&o.defaultView||window}return t}function kt(t){var o=$e(t).Element;return t instanceof o||t instanceof Element}function je(t){var o=$e(t).HTMLElement;return t instanceof o||t instanceof HTMLElement}function Kn(t){if(typeof ShadowRoot>"u")return!1;var o=$e(t).ShadowRoot;return t instanceof o||t instanceof ShadowRoot}function Hf(t){var o=t.state;Object.keys(o.elements).forEach(function(n){var a=o.styles[n]||{},l=o.attributes[n]||{},r=o.elements[n];!je(r)||!qe(r)||(Object.assign(r.style,a),Object.keys(l).forEach(function(s){var c=l[s];c===!1?r.removeAttribute(s):r.setAttribute(s,c===!0?"":c)}))})}function Wf(t){var o=t.state,n={popper:{position:o.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(o.elements.popper.style,n.popper),o.styles=n,o.elements.arrow&&Object.assign(o.elements.arrow.style,n.arrow),function(){Object.keys(o.elements).forEach(function(a){var l=o.elements[a],r=o.attributes[a]||{},s=Object.keys(o.styles.hasOwnProperty(a)?o.styles[a]:n[a]),c=s.reduce(function(i,d){return i[d]="",i},{});!je(l)||!qe(l)||(Object.assign(l.style,c),Object.keys(r).forEach(function(i){l.removeAttribute(i)}))})}}const Yf={name:"applyStyles",enabled:!0,phase:"write",fn:Hf,effect:Wf,requires:["computeStyles"]};function Ke(t){return t.split("-")[0]}var xt=Math.max,Lo=Math.min,Pt=Math.round;function Xn(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(o){return o.brand+"/"+o.version}).join(" "):navigator.userAgent}function ur(){return!/^((?!chrome|android).)*safari/i.test(Xn())}function jt(t,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),l=1,r=1;o&&je(t)&&(l=t.offsetWidth>0&&Pt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Pt(a.height)/t.offsetHeight||1);var s=kt(t)?$e(t):window,c=s.visualViewport,i=!ur()&&n,d=(a.left+(i&&c?c.offsetLeft:0))/l,p=(a.top+(i&&c?c.offsetTop:0))/r,u=a.width/l,m=a.height/r;return{width:u,height:m,top:p,right:d+u,bottom:p+m,left:d,x:d,y:p}}function Qn(t){var o=jt(t),n=t.offsetWidth,a=t.offsetHeight;return Math.abs(o.width-n)<=1&&(n=o.width),Math.abs(o.height-a)<=1&&(a=o.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:a}}function fr(t,o){var n=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(n&&Kn(n)){var a=o;do{if(a&&t.isSameNode(a))return!0;a=a.parentNode||a.host}while(a)}return!1}function ot(t){return $e(t).getComputedStyle(t)}function qf(t){return["table","td","th"].indexOf(qe(t))>=0}function ft(t){return((kt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Fo(t){return qe(t)==="html"?t:t.assignedSlot||t.parentNode||(Kn(t)?t.host:null)||ft(t)}function mr(t){return!je(t)||ot(t).position==="fixed"?null:t.offsetParent}function Kf(t){var o=/firefox/i.test(Xn()),n=/Trident/i.test(Xn());if(n&&je(t)){var a=ot(t);if(a.position==="fixed")return null}var l=Fo(t);for(Kn(l)&&(l=l.host);je(l)&&["html","body"].indexOf(qe(l))<0;){var r=ot(l);if(r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].indexOf(r.willChange)!==-1||o&&r.willChange==="filter"||o&&r.filter&&r.filter!=="none")return l;l=l.parentNode}return null}function po(t){for(var o=$e(t),n=mr(t);n&&qf(n)&&ot(n).position==="static";)n=mr(n);return n&&(qe(n)==="html"||qe(n)==="body"&&ot(n).position==="static")?o:n||Kf(t)||o}function Jn(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function uo(t,o,n){return xt(t,Lo(o,n))}function Xf(t,o,n){var a=uo(t,o,n);return a>n?n:a}function hr(){return{top:0,right:0,bottom:0,left:0}}function br(t){return Object.assign({},hr(),t)}function yr(t,o){return o.reduce(function(n,a){return n[a]=t,n},{})}var Qf=function(o,n){return o=typeof o=="function"?o(Object.assign({},n.rects,{placement:n.placement})):o,br(typeof o!="number"?o:yr(o,io))};function Jf(t){var o,n=t.state,a=t.name,l=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,c=Ke(n.placement),i=Jn(c),d=[Oe,Pe].indexOf(c)>=0,p=d?"height":"width";if(!(!r||!s)){var u=Qf(l.padding,n),m=Qn(r),g=i==="y"?Ee:Oe,C=i==="y"?Me:Pe,b=n.rects.reference[p]+n.rects.reference[i]-s[i]-n.rects.popper[p],f=s[i]-n.rects.reference[i],h=po(r),y=h?i==="y"?h.clientHeight||0:h.clientWidth||0:0,N=b/2-f/2,w=u[g],x=y-m[p]-u[C],S=y/2-m[p]/2+N,A=uo(w,S,x),v=i;n.modifiersData[a]=(o={},o[v]=A,o.centerOffset=A-S,o)}}function Zf(t){var o=t.state,n=t.options,a=n.element,l=a===void 0?"[data-popper-arrow]":a;l!=null&&(typeof l=="string"&&(l=o.elements.popper.querySelector(l),!l)||fr(o.elements.popper,l)&&(o.elements.arrow=l))}const em={name:"arrow",enabled:!0,phase:"main",fn:Jf,effect:Zf,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rt(t){return t.split("-")[1]}var tm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function om(t,o){var n=t.x,a=t.y,l=o.devicePixelRatio||1;return{x:Pt(n*l)/l||0,y:Pt(a*l)/l||0}}function gr(t){var o,n=t.popper,a=t.popperRect,l=t.placement,r=t.variation,s=t.offsets,c=t.position,i=t.gpuAcceleration,d=t.adaptive,p=t.roundOffsets,u=t.isFixed,m=s.x,g=m===void 0?0:m,C=s.y,b=C===void 0?0:C,f=typeof p=="function"?p({x:g,y:b}):{x:g,y:b};g=f.x,b=f.y;var h=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),N=Oe,w=Ee,x=window;if(d){var S=po(n),A="clientHeight",v="clientWidth";if(S===$e(n)&&(S=ft(n),ot(S).position!=="static"&&c==="absolute"&&(A="scrollHeight",v="scrollWidth")),S=S,l===Ee||(l===Oe||l===Pe)&&r===so){w=Me;var D=u&&S===x&&x.visualViewport?x.visualViewport.height:S[A];b-=D-a.height,b*=i?1:-1}if(l===Oe||(l===Ee||l===Me)&&r===so){N=Pe;var T=u&&S===x&&x.visualViewport?x.visualViewport.width:S[v];g-=T-a.width,g*=i?1:-1}}var R=Object.assign({position:c},d&&tm),$=p===!0?om({x:g,y:b},$e(n)):{x:g,y:b};if(g=$.x,b=$.y,i){var F;return Object.assign({},R,(F={},F[w]=y?"0":"",F[N]=h?"0":"",F.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",F))}return Object.assign({},R,(o={},o[w]=y?b+"px":"",o[N]=h?g+"px":"",o.transform="",o))}function nm(t){var o=t.state,n=t.options,a=n.gpuAcceleration,l=a===void 0?!0:a,r=n.adaptive,s=r===void 0?!0:r,c=n.roundOffsets,i=c===void 0?!0:c,d={placement:Ke(o.placement),variation:Rt(o.placement),popper:o.elements.popper,popperRect:o.rects.popper,gpuAcceleration:l,isFixed:o.options.strategy==="fixed"};o.modifiersData.popperOffsets!=null&&(o.styles.popper=Object.assign({},o.styles.popper,gr(Object.assign({},d,{offsets:o.modifiersData.popperOffsets,position:o.options.strategy,adaptive:s,roundOffsets:i})))),o.modifiersData.arrow!=null&&(o.styles.arrow=Object.assign({},o.styles.arrow,gr(Object.assign({},d,{offsets:o.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-placement":o.placement})}const am={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:nm,data:{}};var $o={passive:!0};function lm(t){var o=t.state,n=t.instance,a=t.options,l=a.scroll,r=l===void 0?!0:l,s=a.resize,c=s===void 0?!0:s,i=$e(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",n.update,$o)}),c&&i.addEventListener("resize",n.update,$o),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",n.update,$o)}),c&&i.removeEventListener("resize",n.update,$o)}}const rm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lm,data:{}};var im={left:"right",right:"left",bottom:"top",top:"bottom"};function Io(t){return t.replace(/left|right|bottom|top/g,function(o){return im[o]})}var sm={start:"end",end:"start"};function Cr(t){return t.replace(/start|end/g,function(o){return sm[o]})}function Zn(t){var o=$e(t),n=o.pageXOffset,a=o.pageYOffset;return{scrollLeft:n,scrollTop:a}}function ea(t){return jt(ft(t)).left+Zn(t).scrollLeft}function cm(t,o){var n=$e(t),a=ft(t),l=n.visualViewport,r=a.clientWidth,s=a.clientHeight,c=0,i=0;if(l){r=l.width,s=l.height;var d=ur();(d||!d&&o==="fixed")&&(c=l.offsetLeft,i=l.offsetTop)}return{width:r,height:s,x:c+ea(t),y:i}}function dm(t){var o,n=ft(t),a=Zn(t),l=(o=t.ownerDocument)==null?void 0:o.body,r=xt(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=xt(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+ea(t),i=-a.scrollTop;return ot(l||n).direction==="rtl"&&(c+=xt(n.clientWidth,l?l.clientWidth:0)-r),{width:r,height:s,x:c,y:i}}function ta(t){var o=ot(t),n=o.overflow,a=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function wr(t){return["html","body","#document"].indexOf(qe(t))>=0?t.ownerDocument.body:je(t)&&ta(t)?t:wr(Fo(t))}function fo(t,o){var n;o===void 0&&(o=[]);var a=wr(t),l=a===((n=t.ownerDocument)==null?void 0:n.body),r=$e(a),s=l?[r].concat(r.visualViewport||[],ta(a)?a:[]):a,c=o.concat(s);return l?c:c.concat(fo(Fo(s)))}function oa(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function pm(t,o){var n=jt(t,!1,o==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function kr(t,o,n){return o===cr?oa(cm(t,n)):kt(o)?pm(o,n):oa(dm(ft(t)))}function um(t){var o=fo(Fo(t)),n=["absolute","fixed"].indexOf(ot(t).position)>=0,a=n&&je(t)?po(t):t;return kt(a)?o.filter(function(l){return kt(l)&&fr(l,a)&&qe(l)!=="body"}):[]}function fm(t,o,n,a){var l=o==="clippingParents"?um(t):[].concat(o),r=[].concat(l,[n]),s=r[0],c=r.reduce(function(i,d){var p=kr(t,d,a);return i.top=xt(p.top,i.top),i.right=Lo(p.right,i.right),i.bottom=Lo(p.bottom,i.bottom),i.left=xt(p.left,i.left),i},kr(t,s,a));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function xr(t){var o=t.reference,n=t.element,a=t.placement,l=a?Ke(a):null,r=a?Rt(a):null,s=o.x+o.width/2-n.width/2,c=o.y+o.height/2-n.height/2,i;switch(l){case Ee:i={x:s,y:o.y-n.height};break;case Me:i={x:s,y:o.y+o.height};break;case Pe:i={x:o.x+o.width,y:c};break;case Oe:i={x:o.x-n.width,y:c};break;default:i={x:o.x,y:o.y}}var d=l?Jn(l):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case Mt:i[d]=i[d]-(o[p]/2-n[p]/2);break;case so:i[d]=i[d]+(o[p]/2-n[p]/2);break}}return i}function mo(t,o){o===void 0&&(o={});var n=o,a=n.placement,l=a===void 0?t.placement:a,r=n.strategy,s=r===void 0?t.strategy:r,c=n.boundary,i=c===void 0?Ff:c,d=n.rootBoundary,p=d===void 0?cr:d,u=n.elementContext,m=u===void 0?co:u,g=n.altBoundary,C=g===void 0?!1:g,b=n.padding,f=b===void 0?0:b,h=br(typeof f!="number"?f:yr(f,io)),y=m===co?$f:co,N=t.rects.popper,w=t.elements[C?y:m],x=fm(kt(w)?w:w.contextElement||ft(t.elements.popper),i,p,s),S=jt(t.elements.reference),A=xr({reference:S,element:N,strategy:"absolute",placement:l}),v=oa(Object.assign({},N,A)),D=m===co?v:S,T={top:x.top-D.top+h.top,bottom:D.bottom-x.bottom+h.bottom,left:x.left-D.left+h.left,right:D.right-x.right+h.right},R=t.modifiersData.offset;if(m===co&&R){var $=R[l];Object.keys(T).forEach(function(F){var _=[Pe,Me].indexOf(F)>=0?1:-1,B=[Ee,Me].indexOf(F)>=0?"y":"x";T[F]+=$[B]*_})}return T}function mm(t,o){o===void 0&&(o={});var n=o,a=n.placement,l=n.boundary,r=n.rootBoundary,s=n.padding,c=n.flipVariations,i=n.allowedAutoPlacements,d=i===void 0?pr:i,p=Rt(a),u=p?c?dr:dr.filter(function(C){return Rt(C)===p}):io,m=u.filter(function(C){return d.indexOf(C)>=0});m.length===0&&(m=u);var g=m.reduce(function(C,b){return C[b]=mo(t,{placement:b,boundary:l,rootBoundary:r,padding:s})[Ke(b)],C},{});return Object.keys(g).sort(function(C,b){return g[C]-g[b]})}function hm(t){if(Ke(t)===qn)return[];var o=Io(t);return[Cr(t),o,Cr(o)]}function bm(t){var o=t.state,n=t.options,a=t.name;if(!o.modifiersData[a]._skip){for(var l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,c=s===void 0?!0:s,i=n.fallbackPlacements,d=n.padding,p=n.boundary,u=n.rootBoundary,m=n.altBoundary,g=n.flipVariations,C=g===void 0?!0:g,b=n.allowedAutoPlacements,f=o.options.placement,h=Ke(f),y=h===f,N=i||(y||!C?[Io(f)]:hm(f)),w=[f].concat(N).reduce(function(U,z){return U.concat(Ke(z)===qn?mm(o,{placement:z,boundary:p,rootBoundary:u,padding:d,flipVariations:C,allowedAutoPlacements:b}):z)},[]),x=o.rects.reference,S=o.rects.popper,A=new Map,v=!0,D=w[0],T=0;T<w.length;T++){var R=w[T],$=Ke(R),F=Rt(R)===Mt,_=[Ee,Me].indexOf($)>=0,B=_?"width":"height",E=mo(o,{placement:R,boundary:p,rootBoundary:u,altBoundary:m,padding:d}),P=_?F?Pe:Oe:F?Me:Ee;x[B]>S[B]&&(P=Io(P));var I=Io(P),O=[];if(r&&O.push(E[$]<=0),c&&O.push(E[P]<=0,E[I]<=0),O.every(function(U){return U})){D=R,v=!1;break}A.set(R,O)}if(v)for(var V=C?3:1,k=function(z){var q=w.find(function(X){var J=A.get(X);if(J)return J.slice(0,z).every(function(oe){return oe})});if(q)return D=q,"break"},L=V;L>0;L--){var M=k(L);if(M==="break")break}o.placement!==D&&(o.modifiersData[a]._skip=!0,o.placement=D,o.reset=!0)}}const ym={name:"flip",enabled:!0,phase:"main",fn:bm,requiresIfExists:["offset"],data:{_skip:!1}};function _r(t,o,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-o.height-n.y,right:t.right-o.width+n.x,bottom:t.bottom-o.height+n.y,left:t.left-o.width-n.x}}function Sr(t){return[Ee,Pe,Me,Oe].some(function(o){return t[o]>=0})}function gm(t){var o=t.state,n=t.name,a=o.rects.reference,l=o.rects.popper,r=o.modifiersData.preventOverflow,s=mo(o,{elementContext:"reference"}),c=mo(o,{altBoundary:!0}),i=_r(s,a),d=_r(c,l,r),p=Sr(i),u=Sr(d);o.modifiersData[n]={referenceClippingOffsets:i,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:u},o.attributes.popper=Object.assign({},o.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}const Cm={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:gm};function wm(t,o,n){var a=Ke(t),l=[Oe,Ee].indexOf(a)>=0?-1:1,r=typeof n=="function"?n(Object.assign({},o,{placement:t})):n,s=r[0],c=r[1];return s=s||0,c=(c||0)*l,[Oe,Pe].indexOf(a)>=0?{x:c,y:s}:{x:s,y:c}}function km(t){var o=t.state,n=t.options,a=t.name,l=n.offset,r=l===void 0?[0,0]:l,s=pr.reduce(function(p,u){return p[u]=wm(u,o.rects,r),p},{}),c=s[o.placement],i=c.x,d=c.y;o.modifiersData.popperOffsets!=null&&(o.modifiersData.popperOffsets.x+=i,o.modifiersData.popperOffsets.y+=d),o.modifiersData[a]=s}const xm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:km};function _m(t){var o=t.state,n=t.name;o.modifiersData[n]=xr({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const Sm={name:"popperOffsets",enabled:!0,phase:"read",fn:_m,data:{}};function Tm(t){return t==="x"?"y":"x"}function Nm(t){var o=t.state,n=t.options,a=t.name,l=n.mainAxis,r=l===void 0?!0:l,s=n.altAxis,c=s===void 0?!1:s,i=n.boundary,d=n.rootBoundary,p=n.altBoundary,u=n.padding,m=n.tether,g=m===void 0?!0:m,C=n.tetherOffset,b=C===void 0?0:C,f=mo(o,{boundary:i,rootBoundary:d,padding:u,altBoundary:p}),h=Ke(o.placement),y=Rt(o.placement),N=!y,w=Jn(h),x=Tm(w),S=o.modifiersData.popperOffsets,A=o.rects.reference,v=o.rects.popper,D=typeof b=="function"?b(Object.assign({},o.rects,{placement:o.placement})):b,T=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),R=o.modifiersData.offset?o.modifiersData.offset[o.placement]:null,$={x:0,y:0};if(S){if(r){var F,_=w==="y"?Ee:Oe,B=w==="y"?Me:Pe,E=w==="y"?"height":"width",P=S[w],I=P+f[_],O=P-f[B],V=g?-v[E]/2:0,k=y===Mt?A[E]:v[E],L=y===Mt?-v[E]:-A[E],M=o.elements.arrow,U=g&&M?Qn(M):{width:0,height:0},z=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:hr(),q=z[_],X=z[B],J=uo(0,A[E],U[E]),oe=N?A[E]/2-V-J-q-T.mainAxis:k-J-q-T.mainAxis,le=N?-A[E]/2+V+J+X+T.mainAxis:L+J+X+T.mainAxis,Ce=o.elements.arrow&&po(o.elements.arrow),ie=Ce?w==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,we=(F=R==null?void 0:R[w])!=null?F:0,at=P+oe-we-ie,Gt=P+le-we,Ht=uo(g?Lo(I,at):I,P,g?xt(O,Gt):O);S[w]=Ht,$[w]=Ht-P}if(c){var go,Wt=w==="x"?Ee:Oe,Yt=w==="x"?Me:Pe,Ie=S[x],Qe=x==="y"?"height":"width",Tt=Ie+f[Wt],lt=Ie-f[Yt],Je=[Ee,Oe].indexOf(h)!==-1,Ue=(go=R==null?void 0:R[x])!=null?go:0,Nt=Je?Tt:Ie-A[Qe]-v[Qe]-Ue+T.altAxis,rt=Je?Ie+A[Qe]+v[Qe]-Ue-T.altAxis:lt,mt=g&&Je?Xf(Nt,Ie,rt):uo(g?Nt:Tt,Ie,g?rt:lt);S[x]=mt,$[x]=mt-Ie}o.modifiersData[a]=$}}const Am={name:"preventOverflow",enabled:!0,phase:"main",fn:Nm,requiresIfExists:["offset"]};function Em(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Om(t){return t===$e(t)||!je(t)?Zn(t):Em(t)}function Bm(t){var o=t.getBoundingClientRect(),n=Pt(o.width)/t.offsetWidth||1,a=Pt(o.height)/t.offsetHeight||1;return n!==1||a!==1}function Vm(t,o,n){n===void 0&&(n=!1);var a=je(o),l=je(o)&&Bm(o),r=ft(o),s=jt(t,l,n),c={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(a||!a&&!n)&&((qe(o)!=="body"||ta(r))&&(c=Om(o)),je(o)?(i=jt(o,!0),i.x+=o.clientLeft,i.y+=o.clientTop):r&&(i.x=ea(r))),{x:s.left+c.scrollLeft-i.x,y:s.top+c.scrollTop-i.y,width:s.width,height:s.height}}function Lm(t){var o=new Map,n=new Set,a=[];t.forEach(function(r){o.set(r.name,r)});function l(r){n.add(r.name);var s=[].concat(r.requires||[],r.requiresIfExists||[]);s.forEach(function(c){if(!n.has(c)){var i=o.get(c);i&&l(i)}}),a.push(r)}return t.forEach(function(r){n.has(r.name)||l(r)}),a}function Fm(t){var o=Lm(t);return Gf.reduce(function(n,a){return n.concat(o.filter(function(l){return l.phase===a}))},[])}function $m(t){var o;return function(){return o||(o=new Promise(function(n){Promise.resolve().then(function(){o=void 0,n(t())})})),o}}function Im(t){var o=t.reduce(function(n,a){var l=n[a.name];return n[a.name]=l?Object.assign({},l,a,{options:Object.assign({},l.options,a.options),data:Object.assign({},l.data,a.data)}):a,n},{});return Object.keys(o).map(function(n){return o[n]})}var Tr={placement:"bottom",modifiers:[],strategy:"absolute"};function Nr(){for(var t=arguments.length,o=new Array(t),n=0;n<t;n++)o[n]=arguments[n];return!o.some(function(a){return!(a&&typeof a.getBoundingClientRect=="function")})}function vm(t){t===void 0&&(t={});var o=t,n=o.defaultModifiers,a=n===void 0?[]:n,l=o.defaultOptions,r=l===void 0?Tr:l;return function(c,i,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Tr,r),modifiersData:{},elements:{reference:c,popper:i},attributes:{},styles:{}},u=[],m=!1,g={state:p,setOptions:function(h){var y=typeof h=="function"?h(p.options):h;b(),p.options=Object.assign({},r,p.options,y),p.scrollParents={reference:kt(c)?fo(c):c.contextElement?fo(c.contextElement):[],popper:fo(i)};var N=Fm(Im([].concat(a,p.options.modifiers)));return p.orderedModifiers=N.filter(function(w){return w.enabled}),C(),g.update()},forceUpdate:function(){if(!m){var h=p.elements,y=h.reference,N=h.popper;if(Nr(y,N)){p.rects={reference:Vm(y,po(N),p.options.strategy==="fixed"),popper:Qn(N)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function(T){return p.modifiersData[T.name]=Object.assign({},T.data)});for(var w=0;w<p.orderedModifiers.length;w++){if(p.reset===!0){p.reset=!1,w=-1;continue}var x=p.orderedModifiers[w],S=x.fn,A=x.options,v=A===void 0?{}:A,D=x.name;typeof S=="function"&&(p=S({state:p,options:v,name:D,instance:g})||p)}}}},update:$m(function(){return new Promise(function(f){g.forceUpdate(),f(p)})}),destroy:function(){b(),m=!0}};if(!Nr(c,i))return g;g.setOptions(d).then(function(f){!m&&d.onFirstUpdate&&d.onFirstUpdate(f)});function C(){p.orderedModifiers.forEach(function(f){var h=f.name,y=f.options,N=y===void 0?{}:y,w=f.effect;if(typeof w=="function"){var x=w({state:p,name:h,instance:g,options:N}),S=function(){};u.push(x||S)}})}function b(){u.forEach(function(f){return f()}),u=[]}return g}}var Dm=[rm,Sm,am,Yf,xm,ym,Am,em,Cm],Mm=vm({defaultModifiers:Dm});function na(t,o){(o==null||o>t.length)&&(o=t.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=t[n];return a}function Ar(t,o){if(t){if(typeof t=="string")return na(t,o);var n=Object.prototype.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?na(t,o):void 0}}function Pm(t){return function(o){if(Array.isArray(o))return na(o)}(t)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(t)||Ar(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
73
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Ut(t){return Ut=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ut(t)}function Er(t,o,n,a,l,r,s){try{var c=t[r](s),i=c.value}catch(d){return void n(d)}c.done?o(i):Promise.resolve(i).then(a,l)}function Or(t){return function(){var o=this,n=arguments;return new Promise(function(a,l){var r=t.apply(o,n);function s(i){Er(r,a,l,s,c,"next",i)}function c(i){Er(r,a,l,s,c,"throw",i)}s(void 0)})}}var Br={exports:{}},Vr={exports:{}};(function(t){function o(n){return t.exports=o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},t.exports.__esModule=!0,t.exports.default=t.exports,o(n)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports})(Vr),function(t){var o=Vr.exports.default;function n(){t.exports=n=function(){return l},t.exports.__esModule=!0,t.exports.default=t.exports;var a,l={},r=Object.prototype,s=r.hasOwnProperty,c=Object.defineProperty||function(O,V,k){O[V]=k.value},i=typeof Symbol=="function"?Symbol:{},d=i.iterator||"@@iterator",p=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function m(O,V,k){return Object.defineProperty(O,V,{value:k,enumerable:!0,configurable:!0,writable:!0}),O[V]}try{m({},"")}catch{m=function(V,k,L){return V[k]=L}}function g(O,V,k,L){var M=V&&V.prototype instanceof w?V:w,U=Object.create(M.prototype),z=new P(L||[]);return c(U,"_invoke",{value:F(O,k,z)}),U}function C(O,V,k){try{return{type:"normal",arg:O.call(V,k)}}catch(L){return{type:"throw",arg:L}}}l.wrap=g;var b="suspendedStart",f="suspendedYield",h="executing",y="completed",N={};function w(){}function x(){}function S(){}var A={};m(A,d,function(){return this});var v=Object.getPrototypeOf,D=v&&v(v(I([])));D&&D!==r&&s.call(D,d)&&(A=D);var T=S.prototype=w.prototype=Object.create(A);function R(O){["next","throw","return"].forEach(function(V){m(O,V,function(k){return this._invoke(V,k)})})}function $(O,V){function k(M,U,z,q){var X=C(O[M],O,U);if(X.type!=="throw"){var J=X.arg,oe=J.value;return oe&&o(oe)=="object"&&s.call(oe,"__await")?V.resolve(oe.__await).then(function(le){k("next",le,z,q)},function(le){k("throw",le,z,q)}):V.resolve(oe).then(function(le){J.value=le,z(J)},function(le){return k("throw",le,z,q)})}q(X.arg)}var L;c(this,"_invoke",{value:function(M,U){function z(){return new V(function(q,X){k(M,U,q,X)})}return L=L?L.then(z,z):z()}})}function F(O,V,k){var L=b;return function(M,U){if(L===h)throw new Error("Generator is already running");if(L===y){if(M==="throw")throw U;return{value:a,done:!0}}for(k.method=M,k.arg=U;;){var z=k.delegate;if(z){var q=_(z,k);if(q){if(q===N)continue;return q}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(L===b)throw L=y,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);L=h;var X=C(O,V,k);if(X.type==="normal"){if(L=k.done?y:f,X.arg===N)continue;return{value:X.arg,done:k.done}}X.type==="throw"&&(L=y,k.method="throw",k.arg=X.arg)}}}function _(O,V){var k=V.method,L=O.iterator[k];if(L===a)return V.delegate=null,k==="throw"&&O.iterator.return&&(V.method="return",V.arg=a,_(O,V),V.method==="throw")||k!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+k+"' method")),N;var M=C(L,O.iterator,V.arg);if(M.type==="throw")return V.method="throw",V.arg=M.arg,V.delegate=null,N;var U=M.arg;return U?U.done?(V[O.resultName]=U.value,V.next=O.nextLoc,V.method!=="return"&&(V.method="next",V.arg=a),V.delegate=null,N):U:(V.method="throw",V.arg=new TypeError("iterator result is not an object"),V.delegate=null,N)}function B(O){var V={tryLoc:O[0]};1 in O&&(V.catchLoc=O[1]),2 in O&&(V.finallyLoc=O[2],V.afterLoc=O[3]),this.tryEntries.push(V)}function E(O){var V=O.completion||{};V.type="normal",delete V.arg,O.completion=V}function P(O){this.tryEntries=[{tryLoc:"root"}],O.forEach(B,this),this.reset(!0)}function I(O){if(O||O===""){var V=O[d];if(V)return V.call(O);if(typeof O.next=="function")return O;if(!isNaN(O.length)){var k=-1,L=function M(){for(;++k<O.length;)if(s.call(O,k))return M.value=O[k],M.done=!1,M;return M.value=a,M.done=!0,M};return L.next=L}}throw new TypeError(o(O)+" is not iterable")}return x.prototype=S,c(T,"constructor",{value:S,configurable:!0}),c(S,"constructor",{value:x,configurable:!0}),x.displayName=m(S,u,"GeneratorFunction"),l.isGeneratorFunction=function(O){var V=typeof O=="function"&&O.constructor;return!!V&&(V===x||(V.displayName||V.name)==="GeneratorFunction")},l.mark=function(O){return Object.setPrototypeOf?Object.setPrototypeOf(O,S):(O.__proto__=S,m(O,u,"GeneratorFunction")),O.prototype=Object.create(T),O},l.awrap=function(O){return{__await:O}},R($.prototype),m($.prototype,p,function(){return this}),l.AsyncIterator=$,l.async=function(O,V,k,L,M){M===void 0&&(M=Promise);var U=new $(g(O,V,k,L),M);return l.isGeneratorFunction(V)?U:U.next().then(function(z){return z.done?z.value:U.next()})},R(T),m(T,u,"Generator"),m(T,d,function(){return this}),m(T,"toString",function(){return"[object Generator]"}),l.keys=function(O){var V=Object(O),k=[];for(var L in V)k.push(L);return k.reverse(),function M(){for(;k.length;){var U=k.pop();if(U in V)return M.value=U,M.done=!1,M}return M.done=!0,M}},l.values=I,P.prototype={constructor:P,reset:function(O){if(this.prev=0,this.next=0,this.sent=this._sent=a,this.done=!1,this.delegate=null,this.method="next",this.arg=a,this.tryEntries.forEach(E),!O)for(var V in this)V.charAt(0)==="t"&&s.call(this,V)&&!isNaN(+V.slice(1))&&(this[V]=a)},stop:function(){this.done=!0;var O=this.tryEntries[0].completion;if(O.type==="throw")throw O.arg;return this.rval},dispatchException:function(O){if(this.done)throw O;var V=this;function k(X,J){return U.type="throw",U.arg=O,V.next=X,J&&(V.method="next",V.arg=a),!!J}for(var L=this.tryEntries.length-1;L>=0;--L){var M=this.tryEntries[L],U=M.completion;if(M.tryLoc==="root")return k("end");if(M.tryLoc<=this.prev){var z=s.call(M,"catchLoc"),q=s.call(M,"finallyLoc");if(z&&q){if(this.prev<M.catchLoc)return k(M.catchLoc,!0);if(this.prev<M.finallyLoc)return k(M.finallyLoc)}else if(z){if(this.prev<M.catchLoc)return k(M.catchLoc,!0)}else{if(!q)throw new Error("try statement without catch or finally");if(this.prev<M.finallyLoc)return k(M.finallyLoc)}}}},abrupt:function(O,V){for(var k=this.tryEntries.length-1;k>=0;--k){var L=this.tryEntries[k];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var M=L;break}}M&&(O==="break"||O==="continue")&&M.tryLoc<=V&&V<=M.finallyLoc&&(M=null);var U=M?M.completion:{};return U.type=O,U.arg=V,M?(this.method="next",this.next=M.finallyLoc,N):this.complete(U)},complete:function(O,V){if(O.type==="throw")throw O.arg;return O.type==="break"||O.type==="continue"?this.next=O.arg:O.type==="return"?(this.rval=this.arg=O.arg,this.method="return",this.next="end"):O.type==="normal"&&V&&(this.next=V),N},finish:function(O){for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V];if(k.finallyLoc===O)return this.complete(k.completion,k.afterLoc),E(k),N}},catch:function(O){for(var V=this.tryEntries.length-1;V>=0;--V){var k=this.tryEntries[V];if(k.tryLoc===O){var L=k.completion;if(L.type==="throw"){var M=L.arg;E(k)}return M}}throw new Error("illegal catch attempt")},delegateYield:function(O,V,k){return this.delegate={iterator:I(O),resultName:V,nextLoc:k},this.method==="next"&&(this.arg=a),N}},l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Br);var vo=Br.exports(),Do=vo;try{regeneratorRuntime=vo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=vo:Function("r","regeneratorRuntime = r")(vo)}function jm(t){var o=function(n,a){if(Ut(n)!=="object"||n===null)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var r=l.call(n,a||"default");if(Ut(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}(t,"string");return Ut(o)==="symbol"?o:String(o)}function aa(t,o,n){return(o=jm(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Mo=e.defineComponent({name:"Saturation",props:{size:{type:Number,default:160},hue:{type:Number,default:0},saturation:{type:Number,default:0},value:{type:Number,default:0}},emits:["change"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return{width:"".concat(t.size,"px"),height:"".concat(t.size,"px"),background:"hsl(".concat(t.hue,", 100%, 50%)")}});return{saturationStyle:a,sliderStyle:e.computed(function(){return{top:"".concat((100-t.value)/100*t.size-5,"px"),left:"".concat(t.saturation*t.size/100-5,"px"),width:"".concat(10,"px"),height:"".concat(10,"px")}}),onSelect:function(l){var r=l.target.getBoundingClientRect(),s=r.left,c=r.top,i=function(d){var p=d.clientX,u=d.clientY,m=p-s,g=u-c;m<0&&(m=0),g<0&&(g=0),m>t.size&&(m=t.size),g>t.size&&(g=t.size);var C=m/t.size*100,b=100-g/t.size*100;n("change",C,b)};i(l),document.addEventListener("mousemove",i),document.addEventListener("mouseup",function d(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",d)})}}}}),Lr=function(t){return e.pushScopeId("data-v-24517fec"),t=t(),e.popScopeId(),t},Rm=Lr(function(){return e.createElementVNode("div",{class:"saturation-white"},null,-1)}),Um=Lr(function(){return e.createElementVNode("div",{class:"saturation-black"},null,-1)});function nt(t,o){o===void 0&&(o={});var n=o.insertAt;if(t&&typeof document<"u"){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",n==="top"&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=t:l.appendChild(document.createTextNode(t))}}nt(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"),Mo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"saturation",style:e.normalizeStyle(t.saturationStyle),onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[Rm,Um,e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],36)},Mo.__scopeId="data-v-24517fec",Mo.__file="src/picker/Saturation.vue";var Po=e.defineComponent({name:"Hue",props:{width:{type:Number,default:15},height:{type:Number,default:160},hue:{type:Number,default:0}},emits:["change"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return{top:"".concat((1-t.hue/360)*t.height-2,"px"),height:"".concat(4,"px")}}),l=e.ref();return e.onMounted(function(){(function(){l.value.width=t.width,l.value.height=t.height;var r=l.value.getContext("2d"),s=r.createLinearGradient(0,0,0,t.height);s.addColorStop(0,"#FF0000"),s.addColorStop(.17,"#FF00FF"),s.addColorStop(.34,"#0000FF"),s.addColorStop(.51,"#00FFFF"),s.addColorStop(.68,"#00FF00"),s.addColorStop(.17*5,"#FFFF00"),s.addColorStop(1,"#FF0000"),r.fillStyle=s,r.fillRect(0,0,t.width,t.height)})()}),{canvas:l,sliderStyle:a,onSelect:function(r){var s=r.target.getBoundingClientRect().top,c=function(i){var d=i.clientY-s;d<0&&(d=0),d>t.height&&(d=t.height);var p=-100*d/t.height+100;n("change",360*p/100)};c(r),document.addEventListener("mousemove",c),document.addEventListener("mouseup",function i(){document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",i)})}}}}),zm={ref:"canvas"};nt(".hue[data-v-78b9f4f0]{position:relative}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),Po.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"hue",onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[e.createElementVNode("canvas",zm,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},Po.__scopeId="data-v-78b9f4f0",Po.__file="src/picker/Hue.vue";var jo=e.defineComponent({name:"Alpha",props:{width:{type:Number,default:15},height:{type:Number,default:160},color:{type:String,default:"#000000"},alpha:{type:Number,default:1}},setup:function(t,o){var n=o.emit,a=e.computed(function(){return{top:"".concat(t.alpha*t.height-2,"px"),height:"".concat(4,"px")}}),l=e.ref(),r=function(){var s=l.value.getContext("2d");l.value.width=t.width,l.value.height=t.height;var c=function(d){var p=document.createElement("canvas"),u=p.getContext("2d"),m=2*d;return p.width=m,p.height=m,u.fillStyle="#ffffff",u.fillRect(0,0,m,m),u.fillStyle="#ccd5db",u.fillRect(0,0,d,d),u.fillRect(d,d,d,d),p}(5);s.fillStyle=s.createPattern(c,"repeat"),s.fillRect(0,0,t.width,t.height);var i=s.createLinearGradient(0,0,0,t.height);i.addColorStop(.01,"rgba(255,255,255,0)"),i.addColorStop(.99,t.color),s.fillStyle=i,s.fillRect(0,0,t.width,t.height)};return e.watch(function(){return t.color},function(){r()}),e.onMounted(function(){r()}),{canvas:l,sliderStyle:a,onSelect:function(s){var c=s.target.getBoundingClientRect().top,i=function(d){var p=d.clientY-c;p<0&&(p=0),p>t.height&&(p=t.height);var u=parseFloat((p/t.height).toFixed(2));n("change",u)};i(s),document.addEventListener("mousemove",i),document.addEventListener("mouseup",function d(){document.removeEventListener("mousemove",i),document.removeEventListener("mouseup",d)})}}}}),Gm={ref:"canvas"};nt(".alpha[data-v-24dc9656]{position:relative}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"),jo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",{class:"alpha",onMousedown:o[0]||(o[0]=e.withModifiers(function(){return t.onSelect&&t.onSelect.apply(t,arguments)},["prevent","stop"]))},[e.createElementVNode("canvas",Gm,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},jo.__scopeId="data-v-24dc9656",jo.__file="src/picker/Alpha.vue";var Ro=e.defineComponent({name:"Input",props:{label:{type:String,default:"RGBA"},value:{type:String,default:""},width:{type:Number,default:168}},emits:["change","focus","blur","enter"],setup:function(t,o){var n=o.emit;return{onInput:function(a){var l;n("change",(l=a.target)===null||l===void 0?void 0:l.value)},valueStyle:e.computed(function(){return{minWidth:"".concat(t.width,"px"),maxWidth:"".concat(t.width,"px"),width:"".concat(t.width,"px")}}),onFocus:function(){n("focus")},onBlur:function(){n("blur")},onEnter:function(){n("enter")}}}}),Hm={class:"input"},Wm={class:"label"},Ym=[".value"];function ho(t,o){return function(n){if(Array.isArray(n))return n}(t)||function(n,a){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var r,s,c,i,d=[],p=!0,u=!1;try{if(c=(l=l.call(n)).next,a===0){if(Object(l)!==l)return;p=!1}else for(;!(p=(r=c.call(l)).done)&&(d.push(r.value),d.length!==a);p=!0);}catch(m){u=!0,s=m}finally{try{if(!p&&l.return!=null&&(i=l.return(),Object(i)!==i))return}finally{if(u)throw s}}return d}}(t,o)||Ar(t,o)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function Re(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Fr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Fr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}nt(".input[data-v-d52a4d02]{display:inline-block;font-size:12px}.label[data-v-d52a4d02]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;width:45px}[pick-colors-theme=dark] .label[data-v-d52a4d02]{background:#252930;color:#999}.value[data-v-d52a4d02]{background:#eceef0;border:1px solid #eceef0;box-sizing:border-box;color:#666;flex:1;height:30px;text-align:center}[pick-colors-theme=dark] .value[data-v-d52a4d02]{background:#2e333a;border:1px solid #2e333a;color:#fff}.value[data-v-d52a4d02]:focus{border:1px solid #1890ff;outline:none}"),Ro.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Hm,[e.createElementVNode("span",Wm,e.toDisplayString(t.label),1),e.createElementVNode("input",{class:"value",style:e.normalizeStyle(t.valueStyle),".value":t.value,onFocus:o[0]||(o[0]=function(){return t.onFocus&&t.onFocus.apply(t,arguments)}),onInput:o[1]||(o[1]=function(){return t.onInput&&t.onInput.apply(t,arguments)}),onBlur:o[2]||(o[2]=function(){return t.onBlur&&t.onBlur.apply(t,arguments)}),onKeydown:o[3]||(o[3]=e.withKeys(function(){return t.onEnter&&t.onEnter.apply(t,arguments)},["enter"]))},null,44,Ym)])},Ro.__scopeId="data-v-d52a4d02",Ro.__file="src/picker/InputValue.vue";var $r=function(t,o,n){return[t,o*n/((t=(2-o)*n)<1?t:2-t)||0,t/2]},Ir={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Uo=function(t){t=Math.min(Math.round(t),255);var o=Math.floor(t/16),n=t%16;return"".concat(Ir[o]||o).concat(Ir[n]||n)},vr=function(t){var o=t.r,n=t.g,a=t.b;return isNaN(o)||isNaN(n)||isNaN(a)?"":"#".concat(Uo(o)).concat(Uo(n)).concat(Uo(a))},zt=function(t,o){var n;typeof(n=t)=="string"&&n.indexOf(".")!==-1&&parseFloat(n)===1&&(t="100%");var a=function(l){return typeof l=="string"&&l.indexOf("%")!==-1}(t);return t=Math.min(o,Math.max(0,parseFloat("".concat(t)))),a&&(t=parseInt("".concat(t*o),10)/100),Math.abs(t-o)<1e-6?1:t%o/parseFloat(o)},bo=function(t,o,n){t=6*zt(t,360),o=zt(o,100),n=zt(n,100);var a=Math.floor(t),l=t-a,r=n*(1-o),s=n*(1-l*o),c=n*(1-(1-l)*o),i=a%6,d=[n,s,r,r,c,n][i],p=[c,n,n,s,r,r][i],u=[r,r,c,n,n,s][i];return{r:Math.round(255*d),g:Math.round(255*p),b:Math.round(255*u)}},Dr=function(t,o,n){var a=t.h,l=t.s,r=t.v,s=t.a;if(n)switch(o){case"hsl":var c=$r(a,l/100,r/100);return"hsla(".concat(a.toFixed(0),", ").concat(Math.round(100*c[1]),"%, ").concat(Math.round(100*c[2]),"%, ").concat(s,")");case"hsv":return"hsva(".concat(a.toFixed(0),", ").concat(Math.round(l),"%, ").concat(Math.round(r),"%, ").concat(s,")");case"rgb":var i=bo(a,l,r),d=i.r,p=i.g,u=i.b;return"rgba(".concat(d,", ").concat(p,", ").concat(u,", ").concat(s,")");default:return"".concat(vr(bo(a,l,r))).concat(Uo(255*s))}else switch(o){case"hsl":var m=$r(a,l/100,r/100);return"hsl(".concat(a.toFixed(0),", ").concat(Math.round(100*m[1]),"%, ").concat(Math.round(100*m[2]),"%)");case"hsv":return"hsv(".concat(a.toFixed(0),", ").concat(Math.round(l),"%, ").concat(Math.round(r),"%)");case"rgb":var g=bo(a,l,r),C=g.r,b=g.g,f=g.b;return"rgb(".concat(C,", ").concat(b,", ").concat(f,")");default:return vr(bo(a,l,r))}},zo=function(t){var o=t.r,n=t.g,a=t.b;o=zt(o,255),n=zt(n,255),a=zt(a,255);var l,r=Math.max(o,n,a),s=Math.min(o,n,a),c=r,i=r-s,d=r===0?0:i/r;if(r===s)l=0;else{switch(r){case o:l=(n-a)/i+(n<a?6:0);break;case n:l=(a-o)/i+2;break;case a:l=(o-n)/i+4}l/=6}return{h:360*l,s:100*d,v:100*c}},Mr=function(t){var o=t.h,n=t.s,a=t.l;a/=100;var l=n/=100,r=Math.max(a,.01);return n*=(a*=2)<=1?a:2-a,l*=r<=1?r:2-r,{h:+o,s:100*(a===0?2*l/(r+l):2*n/(a+n)),v:100*((a+n)/2)}},Pr=function(t){var o=[];if(t.match(/^#([0-9a-fA-f]{3,4})$/g))for(var n=1;n<t.length;n++)o.push(parseInt("0x"+t[n].repeat(2)));else if(t.match(/^#([0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/g))for(var a=1;a<t.length;a+=2)o.push(parseInt("0x"+t.slice(a,a+2)));return{r:o[0],g:o[1],b:o[2],a:o[3]}},la=function(t,o,n){if(typeof t=="string"&&t!==""){var a=ra(t,ia(t),n),l=zr(a);return Dr(l,o,n)}return""},jr=function(t){var o=ho(t.match(/(\d(\.\d+)?)+/g),4);return{r:o[0],g:o[1],b:o[2],a:o[3]}},Rr=function(t){var o=ho(t.match(/(\d(\.\d+)?)+/g),4),n=o[0],a=o[1],l=o[2],r=o[3];return{h:n,s:parseFloat(a),l:parseFloat(l),a:r}},Ur=function(t){var o=ho(t.match(/(\d(\.\d+)?)+/g),4),n=o[0],a=o[1],l=o[2],r=o[3];return{h:parseFloat(n),s:parseFloat(a),v:parseFloat(l),a:parseFloat(r)}},ra=function(t,o){if(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])switch(o){case"rgb":var n=jr(t),a=n.r,l=n.g,r=n.b,s=n.a;return Re(Re({},zo({r:a,g:l,b:r})),{},{a:+s});case"hsv":var c=Ur(t);return{h:c.h,s:c.s,v:c.v,a:c.a};case"hsl":var i=Rr(t),d=i.h,p=i.s,u=i.l,m=i.a;return Re(Re({},Mr({h:d,s:p,l:u})),{},{a:+m});default:var g=Pr(t),C=g.r,b=g.g,f=g.b,h=g.a;return Re(Re({},zo({r:C,g:b,b:f})),{},{a:h/255})}else switch(o){case"rgb":return Re(Re({},zo(jr(t))),{},{a:1});case"hsv":var y=Ur(t);return{h:y.h,s:y.s,v:y.v,a:1};case"hsl":return Re(Re({},Mr(Rr(t))),{},{a:1});default:return Re(Re({},zo(Pr(t))),{},{a:1})}},ia=function(t){return t.match(/^#/)?"hex":t.match(/^rgb/)?"rgb":t.match(/^hsl/)?"hsl":t.match(/^hsv/)?"hsv":"hex"},zr=function(t){var o=t.h,n=t.s,a=t.v,l=t.a;return isNaN(o)&&(o=0),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(l)&&(l=1),{h:o,s:n,v:a,a:l}},yo=e.defineComponent({name:"ColorItem",props:{size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},value:{type:String,default:""},border:{type:Boolean,default:!0},borderRadius:{type:Number,default:5},selected:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1}},emits:["select"],setup:function(t){var o=e.ref(),n=e.inject("theme",{theme:"light"}).theme,a=e.computed(function(){return parseFloat((t.width||t.size)+"")}),l=e.computed(function(){return parseFloat((t.height||t.size)+"")}),r=e.computed(function(){return{width:"".concat(e.unref(a),"px"),height:"".concat(e.unref(l),"px"),border:t.border?"1px solid ".concat(e.unref(n)==="dark"?"#434345":"#d9d9d9"):"",borderRadius:"".concat(t.borderRadius,"px"),boxShadow:t.selected?"0 0 3px 2px ".concat(e.unref(n)==="dark"?"#2681ff":"#1890ff"):""}}),s=function(){var c=o.value.getContext("2d");o.value.width=e.unref(a),o.value.height=e.unref(l);var i=function(d){var p=document.createElement("canvas"),u=p.getContext("2d"),m=2*d;return p.width=m,p.height=m,u.fillStyle="#ffffff",u.fillRect(0,0,m,m),u.fillStyle="#ccd5db",u.fillRect(0,0,d,d),u.fillRect(d,d,d,d),p}(5);c.fillStyle=c.createPattern(i,"repeat"),c.fillRect(0,0,e.unref(a),e.unref(l)),c.fillStyle=t.value,c.fillRect(0,0,e.unref(a),e.unref(l))};return e.watch(function(){return t.value},function(){s()}),e.onMounted(function(){s()}),{canvas:o,colorItemStyle:r}}}),qm=["draggable"];nt(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),yo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("canvas",{class:"color-item",style:e.normalizeStyle(t.colorItemStyle),ref:"canvas",draggable:t.draggable},null,12,qm)},yo.__scopeId="data-v-02da71fd",yo.__file="src/color-item/ColorItem.vue";var Go=e.defineComponent({name:"Colors",components:{ColorItem:yo},props:{colors:{type:Array,default:function(){return[]}},selectedIndex:{type:Number,default:-1}},emits:["change"],setup:function(t,o){var n=o.emit;return{onSelectColor:function(a,l){n("change",a,l)},useColors:e.computed(function(){return t.colors.map(function(a){return la(a,"hex",!0)})})}}}),Km={class:"colors"};function Gr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function Xe(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Gr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Gr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}nt(".colors[data-v-0f8b52a8]{align-items:center;display:flex;flex-wrap:wrap;margin-top:5px}.color-item[data-v-0f8b52a8]{margin:5px}"),Go.render=function(t,o,n,a,l,r){var s=e.resolveComponent("color-item");return e.openBlock(),e.createElementBlock("div",Km,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.useColors,function(c,i){return e.openBlock(),e.createBlock(s,{key:i,class:"color-item",size:16,value:c,border:!1,"border-radius":3,selected:t.selectedIndex===i,onClick:e.withModifiers(function(d){return t.onSelectColor(c,+i)},["stop","prevent"])},null,8,["value","selected","onClick"])}),128))])},Go.__scopeId="data-v-0f8b52a8",Go.__file="src/picker/Colors.vue";var Ho=e.defineComponent({name:"Picker",components:{Colors:Go,Saturation:Mo,Hue:Po,Alpha:jo,InputValue:Ro},props:{format:{type:String,default:"hex"},showAlpha:{type:Boolean,default:!1},value:{type:String,default:""},colors:{type:Array,default:function(){return[]}},style:{type:Object,default:function(){return{}}}},emits:["change","update:value"],setup:function(t,o){var n=o.emit,a=e.computed(function(){return Xe(Xe({},t.style),{},{width:t.showAlpha?"230px":"205px"})}),l=e.computed(function(){return t.showAlpha?165:140}),r=e.ref(),s=e.ref(),c=e.ref(),i=function(){var y,N=(y=t.value)===null||y===void 0?void 0:y.trim();if(N!=null&&N!==""){var w=ia(N);return zr(ra(N,w,t.showAlpha))}return null};e.watch(function(){return t.value},function(){t.value!==e.unref(c)&&(r.value=i())},{immediate:!0}),e.watch(r,function(y,N){var w="";y!=null?(w=Dr(Xe({},y),t.format,t.showAlpha),s.value=Xe({},y)):s.value=null,c.value=w;var x=i();JSON.stringify(y)!==JSON.stringify(x)&&JSON.stringify(y)!==JSON.stringify(N)&&n("change",w)},{immediate:!0});var d=e.computed(function(){var y;return((y=e.unref(r))===null||y===void 0?void 0:y.h)||0}),p=e.computed(function(){var y;return((y=e.unref(r))===null||y===void 0?void 0:y.s)||0}),u=e.computed(function(){var y;return((y=e.unref(r))===null||y===void 0?void 0:y.v)||0}),m=e.computed(function(){var y,N;return((y=e.unref(r))===null||y===void 0?void 0:y.a)!=null?(N=e.unref(r))===null||N===void 0?void 0:N.a:1}),g=e.computed(function(){return bo(e.unref(d),e.unref(p),e.unref(u))}),C=e.computed(function(){return"rgb(".concat(e.unref(g).r,", ").concat(e.unref(g).g,", ").concat(e.unref(g).b,")")}),b=e.computed(function(){var y=t.format;if(t.showAlpha)switch(y){case"hsv":return"HSVA";case"hsl":return"HSLA";case"rgb":return"RGBA";default:return"HEX"}else switch(y){case"hsv":return"HSV";case"hsl":return"HSL";case"rgb":return"RGB";default:return"HEX"}}),f=e.ref(-1),h=function(y,N,w){if(y.length!==0){var x=ra(y,N,w),S=x.h,A=x.s,v=x.v;if(!(isNaN(S)||isNaN(A)||isNaN(v))){var D=1,T=x.a;isNaN(T)||(D=T),r.value={h:S,s:A,v,a:D}}}};return{h:d,s:p,v:u,a:m,rgbStr:C,onSelectSaturation:function(y,N){f.value=-1,e.unref(r)==null?r.value={h:e.unref(d),s:y,v:N,a:e.unref(m)}:r.value=Xe(Xe({},e.unref(r)),{},{s:y,v:N})},onSelectHue:function(y){f.value=-1,e.unref(r)==null&&(r.value={h:y,s:e.unref(p),v:e.unref(u),a:e.unref(m)}),r.value=Xe(Xe({},e.unref(r)),{},{h:y})},onSelectAlpha:function(y){f.value=-1,e.unref(r)==null?r.value={h:e.unref(d),s:e.unref(p),v:e.unref(u),a:y}:r.value=Xe(Xe({},e.unref(r)),{},{a:y})},label:b,colorValue:c,pickerStyle:a,inputWidth:l,onInputChange:function(y){f.value=-1,c.value=y},handleChange:function(){var y,N=(y=e.unref(c))===null||y===void 0?void 0:y.trim();if(N!==""){var w=t.showAlpha,x=t.format,S=function(A,v,D){if(D)switch(v){case"rgb":return/^[rR][gG][Bb][Aa][(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\s]*,){3}[\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*[)]{1}$/.test(A);case"hsv":return/^[hH][Ss][Vv][Aa][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,){2}([\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*)[)]$/.test(A);case"hsl":return/^[hH][Ss][Ll][Aa][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,){2}([\s]*(1|1.0|0|0.[0-9]|0.[0-9][0-9])[\s]*)[)]$/.test(A);default:return/^#([0-9a-fA-f]{4}|[0-9a-fA-F]{8})$/g.test(A)}else switch(v){case"rgb":return/^[rR][gG][Bb][(]([\s]*(2[0-4][0-9]|25[0-5]|[01]?[0-9][0-9]?)[\s]*,){2}[\s]*(2[0-4]\d|25[0-5]|[01]?\d\d?)[\s]*[)]{1}$/.test(A);case"hsv":return/^[hH][Ss][Vv][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*)[)]$/.test(A);case"hsl":return/^[hH][Ss][Ll][(]([\s]*(2[0-9][0-9]|360|3[0-5][0-9]|[01]?[0-9][0-9]?)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*,)([\s]*((100|[0-9][0-9]?)%|0)[\s]*)[)]$/.test(A);default:return/^#([0-9a-fA-f]{3}|[0-9a-fA-F]{6})$/g.test(A)}}(N,x,w);S?h(N,x,w):e.unref(s)!=null?r.value=e.unref(s):c.value=""}else r.value=null},selectColorIndex:f,onSelectColor:function(y,N){if(f.value=N,(y=y.trim())==="")r.value=null;else{var w=ia(y);w?h(y,w,!0):r.value=null}}}}}),Xm={class:"picker-inner"},Qm={class:"picker-header"};nt(".picker[data-v-6ceadec6]{background:#f7f8f9;border-radius:4px;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-inner[data-v-6ceadec6]{padding:10px}[pick-colors-theme=dark] .picker-inner[data-v-6ceadec6]{background:#1d2024;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-header[data-v-6ceadec6]{display:flex;margin-bottom:5px}.alpha[data-v-6ceadec6],.hue[data-v-6ceadec6]{margin-left:10px}.colors[data-v-6ceadec6]{margin-top:5px}"),Ho.render=function(t,o,n,a,l,r){var s=e.resolveComponent("saturation"),c=e.resolveComponent("hue"),i=e.resolveComponent("alpha"),d=e.resolveComponent("input-value"),p=e.resolveComponent("Colors");return e.openBlock(),e.createElementBlock("div",{class:"picker",style:e.normalizeStyle(t.pickerStyle)},[e.createElementVNode("div",Xm,[e.createElementVNode("div",Qm,[e.createVNode(s,{class:"saturation",hue:t.h,saturation:t.s,value:t.v,onChange:t.onSelectSaturation},null,8,["hue","saturation","value","onChange"]),e.createVNode(c,{class:"hue",hue:t.h,onChange:t.onSelectHue},null,8,["hue","onChange"]),t.showAlpha?(e.openBlock(),e.createBlock(i,{key:0,class:"alpha",alpha:t.a,color:t.rgbStr,onChange:t.onSelectAlpha},null,8,["alpha","color","onChange"])):e.createCommentVNode("v-if",!0)]),e.createVNode(d,{label:t.label,value:t.colorValue,width:t.inputWidth,onChange:t.onInputChange,onBlur:t.handleChange,onEnter:t.handleChange},null,8,["label","value","width","onChange","onBlur","onEnter"]),t.colors.length>0?(e.openBlock(),e.createBlock(p,{key:0,class:"colors",colors:t.colors,"selected-index":t.selectColorIndex,onChange:t.onSelectColor},null,8,["colors","selected-index","onChange"])):e.createCommentVNode("v-if",!0)])],4)},Ho.__scopeId="data-v-6ceadec6",Ho.__file="src/picker/Picker.vue";var Wo=e.defineComponent({name:"AddColorItem",props:{size:{type:Number,default:20},selected:{type:Boolean,default:!1}},setup:function(t){var o=e.inject("theme",{theme:"light"}).theme;return{addColorItemStyle:e.computed(function(){return{width:"".concat(t.size,"px"),height:"".concat(t.size,"px"),lineHeight:"".concat(t.size,"px"),boxShadow:t.selected?"0 0 3px 2px ".concat(e.unref(o)==="dark"?"#2681ff":"#1890ff"):""}})}}}),Jm=[function(t){return e.pushScopeId("data-v-ceb1719c"),t=t(),e.popScopeId(),t}(function(){return e.createElementVNode("g",{class:"container"},[e.createElementVNode("path",{d:"M544 464V160h-80v304H160v80h304v304h80V544h304v-80z"})],-1)})];function Hr(t,o){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);o&&(a=a.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,a)}return n}function sa(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Hr(Object(n),!0).forEach(function(a){aa(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Hr(Object(n)).forEach(function(a){Object.defineProperty(t,a,Object.getOwnPropertyDescriptor(n,a))})}return t}nt(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"),Wo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle(t.addColorItemStyle),class:"add-color-item",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},[].concat(Jm),4)},Wo.__scopeId="data-v-ceb1719c",Wo.__file="src/add-color-item/AddColorItem.vue";var _t=null,St=e.defineComponent({name:"ColorPicker",components:{ColorItem:yo,Picker:Ho,AddColorItem:Wo},props:{value:{type:[String,Array]},theme:{type:String,default:"light"},size:{type:[Number,String],default:20},width:{type:[Number,String]},height:{type:[Number,String]},format:{type:String,default:"hex"},showPicker:{type:Boolean,default:void 0},showAlpha:{type:Boolean,default:!1},addColor:{type:Boolean,default:!1},deleteColor:{type:Boolean,default:!0},max:{type:Number,default:13},popupContainer:{type:[String,Object,Boolean]},zIndex:{type:Number,default:1e3},colors:{type:Array,default:function(){return["#ff4500","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","#ff4500","#ff7d4d","#00babd","#1f93ff","#fa64c3"]}}},emits:["change","update:value","update:showPicker","overflowMax","closePicker"],setup:function(t,o){var n=o.emit,a=e.ref([]),l=e.computed(function(){return e.unref(a).map(function(_){return la(_,"hex",t.showAlpha)})});e.watch(function(){return t.value},function(){var _=t.value||"",B=Array.isArray(_)?_:[_];a.value=B.map(function(E){return la(E,t.format,t.showAlpha)})},{immediate:!0});var r=e.ref(void 0),s=e.computed(function(){return e.unref(a)[e.unref(r)]}),c=e.ref(!1);e.watch(function(){return t.showPicker},function(){c.value=t.showPicker},{immediate:!0});var i,d,p,u,m,g,C,b=e.ref(null),f=e.ref(null),h=(i=b,d=f,p={zIndex:t.zIndex},u=e.ref({}),m={strategy:"absolute",placement:"auto",onFirstUpdate:function(){_t.update()},modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"computeStyles",options:{gpuAcceleration:!1,adaptive:!0}},{name:"flip",options:{fallbackPlacements:["top"],allowedAutoPlacements:["top","bottom"]}},{name:"applyStyles",enabled:!1},{name:"updateState",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(_){var B=_.state,E=B.styles,P=B.placement,I=E.popper;u.value=sa(sa(sa({},I),p),{},{transformOrigin:P==="top"?"center bottom":""})}}]},e.watch(function(){return[e.unref(i),e.unref(d)]},function(_,B){var E,P=ho(_,2),I=P[0],O=P[1],V=ho(B,2),k=V[0],L=V[1];if(I&&O&&(k!==I||L!==k)){(E=_t)===null||E===void 0||E.destroy();var M=I.$el||I,U=O.$el||O;e.nextTick(function(){_t=Mm(M,U,m)})}}),e.onBeforeUnmount(function(){var _;_t&&((_=_t)===null||_===void 0||_.destroy(),_t=null)}),{instance:_t,style:u}),y=h.style,N=function(){e.unref(b)==null&&(b.value=e.unref(F)[0],r.value=0),t.showPicker===void 0?c.value=!0:n("update:showPicker",!0)},w=function(){r.value=void 0,t.showPicker===void 0?c.value=!1:n("update:showPicker",!1),n("closePicker",e.toRaw(Array.isArray(t.value)||t.addColor?e.unref(a):e.unref(a)[0]))},x=e.ref(),S=function(){var _=Or(Do.mark(function B(E){var P,I,O,V;return Do.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(I=E.target,(O=(P=I.dataset)===null||P===void 0?void 0:P.index)!=null&&O!==""){k.next=4;break}return k.abrupt("return");case 4:if(V=+O,e.unref(r)!==V){k.next=7;break}return k.abrupt("return");case 7:e.unref(r)!=null&&e.unref(r)!==V?(w(),g&&clearTimeout(g),g=setTimeout(function(){N(),clearTimeout(g)},100)):N(),r.value=V,b.value=I;case 10:case"end":return k.stop()}},B)}));return function(B){return _.apply(this,arguments)}}(),A=function(){var _=Or(Do.mark(function B(E){var P,I,O,V,k;return Do.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(V=E.target,!(!((P=e.unref(x))!==null&&P!==void 0&&P.isEqualNode(V))&&(!((I=e.unref(x))===null||I===void 0)&&I.contains(V)))){L.next=4;break}return L.abrupt("return");case 4:if(k=(O=e.unref(f))===null||O===void 0?void 0:O.$el,!(k!=null&&k.contains(V))){L.next=8;break}return L.abrupt("return");case 8:C&&clearTimeout(C),C=setTimeout(function(){e.unref(c)&&w()},0);case 10:case"end":return L.stop()}},B)}));return function(B){return _.apply(this,arguments)}}();e.watch(c,function(){e.unref(c)&&(N(),clearTimeout(C))});var v,D=e.ref(t.max>e.unref(a).length),T=e.computed(function(){return typeof t.popupContainer=="string"||Ut(t.popupContainer)==="object"&&t.popupContainer!=null?t.popupContainer:"body"}),R=e.computed(function(){return typeof t.popupContainer=="boolean"&&t.popupContainer===!1}),$=e.computed(function(){return t.theme});e.watch(function(){return[t.theme,e.unref(f)]},function(){e.nextTick(function(){var _,B;(_=e.unref(x))===null||_===void 0||_.setAttribute("pick-colors-theme",e.unref($)),(B=e.unref(f))===null||B===void 0||(B=B.$el)===null||B===void 0||B.setAttribute("pick-colors-theme",e.unref($))})},{immediate:!0}),e.provide("theme",{theme:$});var F=e.ref([]);return e.onMounted(function(){document.addEventListener("mouseup",A,!1),t.showPicker&&N()}),e.onUnmounted(function(){document.removeEventListener("mouseup",A,!1),g&&(clearTimeout(g),g=null),C&&(clearTimeout(C),C=null)}),{valueList:a,colorItemSelected:function(_){return(t.addColor?e.unref(a).length>0:e.unref(a).length>1)&&e.unref(r)===_},selectedColor:s,selectedIndex:r,isShowPicker:c,addColorItemShow:D,onPickerChange:function(_){var B=e.unref(r),E=e.unref(a).slice(),P=e.unref(a).length;if(B!=null){B>=0?E[B]=_:(r.value=P,E.push(_));var I="";I=Array.isArray(t.value)||t.addColor?E:_,t.value===void 0?a.value=Array.isArray(I)?I:[I]:(n("update:value",I),n("change",I,_,B)),t.addColor&&P>=t.max&&(D.value=!1,n("overflowMax"))}},colorPicker:x,onColorClick:S,pickerRef:f,onColorItemDragStart:function(_){_.dataTransfer.effectAllowed="move";var B=_.target;v=+B.dataset.index},onColorItemDragOver:function(_){},onColorItemDrop:function(_){var B=+_.target.dataset.index,E=Pm(e.unref(a)),P=E[v];E.splice(v,1);var I=E.slice(0,B),O=E.splice(B),V=I.concat([P]).concat(O);n("update:value",V),n("change",V,V[v],v)},colorItemsRef:F,pickerStyle:y,values:l,teleportDisabled:R,toPopupContainer:T}}});nt(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"),St.render=function(t,o,n,a,l,r){var s=e.resolveComponent("color-item"),c=e.resolveComponent("add-color-item"),i=e.resolveComponent("picker");return e.openBlock(),e.createElementBlock("div",{class:"color-picker",ref:"colorPicker",onDragstart:o[0]||(o[0]=e.withModifiers(function(){return t.onColorItemDragStart&&t.onColorItemDragStart.apply(t,arguments)},["stop"])),onDragover:o[1]||(o[1]=e.withModifiers(function(){return t.onColorItemDragOver&&t.onColorItemDragOver.apply(t,arguments)},["prevent","stop"])),onDrop:o[2]||(o[2]=e.withModifiers(function(){return t.onColorItemDrop&&t.onColorItemDrop.apply(t,arguments)},["prevent","stop"])),onClick:o[3]||(o[3]=e.withModifiers(function(){return t.onColorClick&&t.onColorClick.apply(t,arguments)},["stop"]))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.values,function(d,p){return e.openBlock(),e.createBlock(s,{class:"color-item",key:p,ref_for:!0,ref:function(u){return t.colorItemsRef[p]=u},size:t.size,width:t.width,height:t.height,value:d,selected:t.colorItemSelected(p),"data-index":p,draggable:t.valueList.length>1,format:t.format},null,8,["size","width","height","value","selected","data-index","draggable","format"])}),128)),t.addColor&&t.addColorItemShow?(e.openBlock(),e.createBlock(c,{key:0,class:"add-color-item",ref:"addColorItem",selected:t.colorItemSelected(-1),"data-index":-1},null,8,["selected"])):e.createCommentVNode("v-if",!0),(e.openBlock(),e.createBlock(e.Teleport,{to:t.toPopupContainer,disabled:t.teleportDisabled},[e.createVNode(e.Transition,null,{default:e.withCtx(function(){return[t.isShowPicker?(e.openBlock(),e.createBlock(i,{key:0,class:"picker",style:e.normalizeStyle(t.pickerStyle),ref:"pickerRef",value:t.selectedColor,format:t.format,"show-alpha":t.showAlpha,colors:t.colors,onChange:t.onPickerChange},null,8,["style","value","format","show-alpha","colors","onChange"])):e.createCommentVNode("v-if",!0)]}),_:1})],8,["to","disabled"]))],544)},St.__scopeId="data-v-3c43ade8",St.__file="src/ColorPicker.vue";const Zm=e.defineComponent({name:"ColorPick",components:{PickColors:St,AInput:j.Input},props:{value:{type:String,require:!0}},emits:["change"],setup(t,o){const n=e.computed({get:()=>t.value,set:l=>{o.emit("change",l)}});return{colorValue:n,onChangColor:l=>{n.value=l.hex}}}}),eg="",eh={class:"color-pick"};function th(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",eh,[e.createVNode(s,{class:"input",value:t.colorValue,"onUpdate:value":o[0]||(o[0]=i=>t.colorValue=i)},null,8,["value"]),e.createVNode(c,{class:"pick-colors",value:t.colorValue,"onUpdate:value":o[1]||(o[1]=i=>t.colorValue=i),size:25,showAlpha:!0},null,8,["value"])])}const oh=ae(Zm,[["render",th],["__scopeId","data-v-2ee2749b"]]),nh=e.defineComponent({name:"ColorGroupPick",components:{PickColors:St},props:{value:{type:Array,default:()=>[]}},emits:["change"],setup(t,{emit:o}){const n=r=>{o("change",r)},a=e.ref(13);return{onColorsChange:n,max:a,onOverflowMax:()=>{j.message.warn(`已经超出最大添加个数:${a.value}`)}}}}),tg="",ah={class:"color-group-pick"};function lh(t,o,n,a,l,r){const s=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",ah,[e.createVNode(s,{value:t.value,"add-color":"",max:t.max,onChange:t.onColorsChange,onOverflowMax:t.onOverflowMax},null,8,["value","max","onChange","onOverflowMax"])])}const rh=ae(nh,[["render",lh],["__scopeId","data-v-b2be8322"]]),ih=e.defineComponent({name:"FormGroup",components:{Draggable:Et,AppstoreAddOutlined:un,MinusCircleOutlined:Ys,PickColors:St,InputNumber:sr,PlusCircleOutlined:Qs},props:{value:{type:Array,default:()=>[]},format:{type:Array,default:()=>[]},useLabelIndex:{type:Boolean,default:!1},max:{type:Number,default:-1}},emits:["change"],setup(t,{emit:o}){const n=e.computed({get:()=>t.value,set:d=>{o("change",d)}});return{myValue:n,onAdd:()=>{var u;const d=(u=t.value)==null?void 0:u.slice();if(!Array.isArray(d))return;const p=d.length;if(t.max===-1||t.max>p){const m=d[0];if(Object.prototype.toString.call(m)==="[object Object]"){const g=Object.keys(m),C={};g.forEach(b=>{C[b]=""}),d.push(C)}else typeof m=="string"&&d.push(m);n.value=d}else j.message.warn("已达到最大上限")},useComponentType:d=>({input:"aInput",select:"aSelect",color:"pickColors","input-number":"inputNumber",switch:"aSwitch"})[d],onValueChange:(d,p,u)=>{var g;const m=(g=t.value)==null?void 0:g.slice();if(Array.isArray(m)){const C=d==null?void 0:d.target,b=(C==null?void 0:C.value)!=null?C==null?void 0:C.value:d;u?m[p][u]=b:m[p]=b,n.value=m}},onDelete:d=>{var u;const p=(u=t.value)==null?void 0:u.slice();if(Array.isArray(p)){if(p.length===1){j.message.warn("已经是最后一条数据,无法删除");return}p.splice(d,1),n.value=p}},theme:"light",formatTypeValue:d=>d||"value"}}}),og="",sh={class:"form-group"},ch={class:"form-row"},dh={key:0,class:"label"},ph={key:1,class:"label"},uh={class:"icon-group"};function fh(t,o,n,a,l,r){const s=e.resolveComponent("appstore-add-outlined"),c=e.resolveComponent("draggable"),i=e.resolveComponent("minus-circle-outlined");return e.openBlock(),e.createElementBlock("div",sh,[e.createVNode(s,{class:"icon add",onClick:t.onAdd},null,8,["onClick"]),e.createVNode(c,{class:"form",modelValue:t.myValue,"onUpdate:modelValue":o[0]||(o[0]=d=>t.myValue=d),"item-key":"id"},{item:e.withCtx(({element:d,index:p})=>[e.createElementVNode("div",ch,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.format,(u,m)=>(e.openBlock(),e.createElementBlock("div",{class:"form-item",key:m},[Array.isArray(u.label)?(e.openBlock(),e.createElementBlock("span",dh,e.toDisplayString(u.useLabelIndex?u.label[p]+(p+1):u.label[p]),1)):(e.openBlock(),e.createElementBlock("span",ph,e.toDisplayString(u.useLabelIndex?u.label+(p+1):u.label),1)),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.useComponentType(u.type)),e.mergeProps({class:"value",[t.formatTypeValue(u.typeValue)||""]:typeof d=="string"?d:d[u.value]??u.defaultValue,style:{width:!["color","switch"].includes(u.type)&&t.format.length>1?"110px":""}},u.props,{theme:t.theme,"use-blur-event":!1,onChange:g=>t.onValueChange(g,p,u.value)}),null,16,["style","theme","onChange"]))]))),128))])]),_:1},8,["modelValue"]),e.createElementVNode("div",uh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.myValue,(d,p)=>(e.openBlock(),e.createElementBlock("div",{class:"icon-item",key:p},[e.createVNode(i,{class:"icon delete",onClick:u=>t.onDelete(p)},null,8,["onClick"])]))),128))])])}const mh=ae(ih,[["render",fh],["__scopeId","data-v-f0c0ab4d"]]),hh=e.defineComponent({name:"Textarea",props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},components:{ATextarea:j.Textarea},emits:["change"],setup(t,{emit:o}){return{onTextareaChange:a=>{o("change",a.target.value)}}}});function bh(t,o,n,a,l,r){const s=e.resolveComponent("a-textarea");return e.openBlock(),e.createBlock(s,{value:t.value,disabled:t.disabled,autoSize:{minRows:3},onChange:t.onTextareaChange},null,8,["value","disabled","onChange"])}const yh=ae(hh,[["render",bh]]),gh=e.defineComponent({name:"Slider",components:{ASlider:j.Slider,AInputNumber:j.InputNumber},props:{value:{type:Number,default:1}},emits:["change"],setup(t,{emit:o}){return{onChange:a=>{o("change",a)}}}});function Ch(t,o,n,a,l,r){const s=e.resolveComponent("a-slider"),c=e.resolveComponent("a-col"),i=e.resolveComponent("a-input-number"),d=e.resolveComponent("a-row");return e.openBlock(),e.createBlock(d,null,{default:e.withCtx(()=>[e.createVNode(c,{span:16},{default:e.withCtx(()=>[e.createVNode(s,{value:t.value,min:0,max:1,step:.1,onChange:t.onChange},null,8,["value","onChange"])]),_:1}),e.createVNode(c,{span:8,style:{"padding-left":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:t.value,min:0,max:1,step:.1,style:{width:"100%"},onChange:t.onChange},null,8,["value","onChange"])]),_:1})]),_:1})}const wh=ae(gh,[["render",Ch]]),kh=e.defineComponent({name:"PropsToForm",components:{Input:kf,InputNumber:sr,RadioGroup:Nf,Select:Of,Switch:Lf,ColorPick:oh,ColorGroupPick:rh,FormGroup:mh,Textarea:yh,Slider:wh},props:{props:{type:Object,require:!0},disabled:{type:Boolean,default:!1},componentType:{type:String,default:""}},setup(t){const o=e.inject(wo),n=e.inject(ge),a=e.inject(Ko),l=e.inject(Xo),r=e.computed(()=>{var m;return(m=e.unref(o))==null?void 0:m.type}),s=m=>{t.componentType&&t.componentType==="table"?l(m):a(m)},c=m=>{const{result:g,mapAttributeProp:C,key:b,value:f}=m;if(g==null||typeof g!="object")return;const{valueProp:h="value",changeValueEventName:y="change",events:N,effect:w,effectVal:x,props:S}=C;g[b]={...C,valueProp:h,value:f,events:{[y]:(A,v=!0)=>{v?(s({[b]:A}),x&&x(b,A,s,e.unref(n))):s({})},...N},...d(w),props:{...S,...u(S,e.unref(n))}}},i=e.computed(()=>{const m=t.props;return m==null||typeof m!="object"?{}:ee.reduce(m,(g,C,b)=>{const f=gf[b];if(Array.isArray(f)){const h=f.find(y=>{const{onlyType:N,excludeType:w}=y;return N==null&&w==null?!0:N?ue(e.unref(r),N):w?!ue(e.unref(r),w):!1});h&&c({result:g,value:C,key:b,mapAttributeProp:h})}else c({result:g,value:C,key:b,mapAttributeProp:f});return g},{})}),d=m=>{const g={};for(const C in m)g[C]=ee.reduce(m[C].props,(b,f)=>m[C].joinType==="&&"?b&&p(f):b||p(f),!!m[C].default);return g},p=m=>{const g=t.props[m.props];let C;switch(m.rule){case"!==":C=g!==m.value;break;case"includes":C=g.includes(m.value);break;case"action":C=m.value(m,t.props);break;default:C=g===m.value}return C};function u(m={},g){const C={};for(const b in m)typeof m[b]=="function"&&(C[b]=m[b](g));return C}return{formProps:i,lowerCaseIncludes:ue}}}),ng="",xh={class:"props-to-form"},_h={key:0,class:"prop-item"},Sh={class:"label"},Th={class:"component-wrapper"};function Nh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",xh,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formProps,(s,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c},[s.hide!==!0?(e.openBlock(),e.createElementBlock("div",_h,[e.createElementVNode("span",Sh,e.toDisplayString(s.label),1),e.createElementVNode("div",Th,[Array.isArray(s)?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s,(i,d)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i.component),e.mergeProps({key:d,class:"component",style:i.style,disabled:t.disabled||i.disabled},i.props,e.toHandlers(i.events)),null,16,["style","disabled"]))),128)):e.createCommentVNode("",!0),Array.isArray(s)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.component?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.component),e.mergeProps({key:0,class:"component",[s.valueProp||""]:s.value,style:s.style,disabled:t.disabled||s.disabled},s.props,e.toHandlers(s.events)),null,16,["style","disabled"])):e.createCommentVNode("",!0)],64))])])):e.createCommentVNode("",!0)],64))),128))])}const Ah=ae(kh,[["render",Nh],["__scopeId","data-v-62456472"]]);function Eh(){return new Worker("/assets/editor.worker-02df2e61.js")}function Oh(){return new Worker("/assets/json.worker-867823a6.js")}function Bh(){return new Worker("/assets/ts.worker-7254b425.js")}const Vh=e.defineComponent({name:"Editor",props:{valueData:{type:String,default:""},options:{type:Object,default:()=>({})},language:{type:String,default:"json"},isUseMinimap:{type:Boolean,default:!1},UseSuggestions:{type:Boolean,default:!1},autoFormat:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["change","update:valueData"],setup(t,{emit:o}){window.MonacoEnvironment={getWorker(r,s){return s==="json"?new Oh:s==="typescript"||s==="javascript"?new Bh:new Eh}};const n=e.ref();let a=null;const l={light:"vs",dark:"vs-dark"};return e.onMounted(()=>{a=Zr.editor.create(n.value,{language:t.language,tabSize:2,automaticLayout:!0,scrollBeyondLastLine:!1,theme:l.light,wordWrap:"off",lineDecorationsWidth:3,lineHeight:15,lineNumbersMinChars:3,formatOnPaste:!0,formatOnType:!0,wordBasedSuggestions:!1,quickSuggestions:t.UseSuggestions,snippetSuggestions:"none",suggestOnTriggerCharacters:!1,scrollbar:{verticalScrollbarSize:6,horizontalScrollbarSize:6,alwaysConsumeMouseWheel:!1,arrowSize:0},autoIndent:"advanced",glyphMargin:!1,fontSize:13,contextmenu:!1,minimap:{enabled:t.isUseMinimap},readOnly:t.readonly,...t.options}),a==null||a.setValue(t.valueData),t.autoFormat&&setTimeout(()=>{a==null||a.getAction("editor.action.formatDocument").run()},200),a.onDidChangeModelContent(ee.debounce(()=>{const r=a==null?void 0:a.getValue();o("change",r)},300)),a.onDidBlurEditorText(()=>{const r=a==null?void 0:a.getValue();o("update:valueData",r)})}),e.watch(()=>t.valueData,r=>{if(a){const s=a.getPosition();a.setValue(r),t.autoFormat&&a.getAction("editor.action.formatDocument").run(),s!=null&&a.setPosition(s)}}),e.onUnmounted(()=>{a==null||a.dispose()}),{dom:n}}}),ag="",Lh={class:"editor",ref:"dom"};function Fh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Lh,null,512)}const Wr=ae(Vh,[["render",Fh],["__scopeId","data-v-71e88372"]]),$h=e.defineComponent({name:"Condition",components:{CloseOutlined:Zt,MenuOutlined:Sn,AMenu:j.Menu,AMenuItem:j.MenuItem,AInput:j.Input,ASelect:j.Select,ADropdown:j.Dropdown},props:{data:{type:Object,default:()=>({})},level:{type:Number,default:0},index:{type:Number,default:0},path:{type:String,default:""}},setup(t){const o=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="},{label:"不等于",value:"!="}],n=e.ref({rule:"==",value:"",key:""}),{updateCondition:a,deleteCondition:l,addCondition:r}=e.inject(ko,{updateCondition:(d,p,u)=>{},deleteCondition:(d,p)=>{},addCondition:(d,p,u)=>{}});e.watch(n,d=>{a(ee.cloneDeep(d),t.index,t.path)},{deep:!0});const s=()=>{},c=d=>{r(t.path,t.index,d.key==="2"?"||":"&&")},i=()=>{l(t.index,t.path)};return e.onMounted(()=>{var d,p,u;e.unref(n).rule=((d=t.data)==null?void 0:d.rule)||"",e.unref(n).value=((p=t.data)==null?void 0:p.value)||"",e.unref(n).key=((u=t.data)==null?void 0:u.key)||ye()}),{ruleOptions:o,condition:n,onRuleChange:s,clickConditionMenu:c,onDelete:i}}}),lg="",Ih={class:"condition"};function vh(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input"),i=e.resolveComponent("menu-outlined"),d=e.resolveComponent("a-menu-item"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("a-dropdown"),m=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",Ih,[e.createVNode(s,{class:"field-name",value:t.condition.rule,"onUpdate:value":o[0]||(o[0]=g=>t.condition.rule=g),options:t.ruleOptions,onChange:t.onRuleChange},null,8,["value","options","onChange"]),e.createVNode(c,{class:"field-value",value:t.condition.value,"onUpdate:value":o[1]||(o[1]=g=>t.condition.value=g),placeholder:"请输入值"},null,8,["value"]),e.createVNode(u,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(d,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(d,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{class:"more-icon"})]),_:1}),e.createVNode(m,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Dh=ae($h,[["render",vh],["__scopeId","data-v-9fcdf54d"]]),Mh=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""}},components:{Condition:Dh}}),rg="",Ph={key:0,class:"condition-list"},jh={key:0,class:"condition-container"},Rh={key:0,class:"condition-text"},Uh={key:1,class:"condition-text"},zh={class:"conditions"};function Gh(t,o,n,a,l,r){const s=e.resolveComponent("condition-list",!0),c=e.resolveComponent("condition");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Ph,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",jh,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Rh,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Uh,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",zh,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${d}`,list:i.conditions},null,8,["level","path","list"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.key||`${t.level}-${d}`,data:i,level:t.level,index:d,path:t.path||""},null,8,["data","level","index","path"]))],64))),128))])):e.createCommentVNode("",!0)}const Hh=ae(Mh,[["render",Gh],["__scopeId","data-v-49c6481f"]]),Wh=e.defineComponent({components:{ConditionList:Hh,PickColors:St,AButton:j.Button,AModal:j.Modal,ASelect:j.Select},props:{data:{type:Object,default:()=>({})},index:{type:Number,default:-1}},setup(t,{emit:o,expose:n}){const a=e.ref(!1),l=e.ref([]),r=e.ref({}),s=e.computed(()=>({pageId:e.unref("pageId")})),c=b=>{const f=[];for(const h of b)h.conditions?f.push(...c(h.conditions)):f.push(h);return f},i=()=>{if(c(e.unref(l)).find(f=>!f.value||!f.rule)){j.message.error("条件值或规则不能为空");return}o("save",{conditions:e.unref(l),attribute:e.unref(r)}),a.value=!1},d=b=>{var f;for(const h of b)(f=h.conditions)!=null&&f.length?d(h.conditions):h.key=ye()};e.watch(a,b=>{var f,h,y;if(b){if(Array.isArray((f=t.data)==null?void 0:f.conditions)){const N=ee.cloneDeep(((h=t.data)==null?void 0:h.conditions)||[]);d(N),l.value=N}r.value=ee.cloneDeep(((y=t.data)==null?void 0:y.attribute)||{}),e.unref(r).color||(r.value.color=""),e.unref(r).iconColor||(r.value.iconColor="")}else l.value=[],r.value={}},{flush:"post"});const p=()=>{a.value=!0},u=b=>{var f;e.unref(l)==null||((f=e.unref(l))==null?void 0:f.length)===0?l.value=[{key:ye()}]:e.unref(l)[0]!=null&&(e.unref(l)[0].conditions==null||e.unref(l)[0].join!==b?l.value=[{join:b,conditions:[e.unref(l)[0],{key:ye()}]}]:e.unref(l)[0].conditions.length>1&&e.unref(l)[0].join===b&&l.value[0].conditions.push({key:ye()}))};e.provide(ko,{updateCondition(b,f,h){var w;let y=l.value;const N=h.split("-");if(h&&(N!=null&&N.length))for(const x of N)if(y[+x])y=(w=y[+x])==null?void 0:w.conditions;else break;Array.isArray(y)&&y[f]&&(y[f]=b)},deleteCondition(b,f){var N,w,x;if(!f){l.value=[];return}let h=e.unref(l);const y=f.split("-");if(y!=null&&y.length){for(const S of y)if(h[+S])h=(N=h[+S])==null?void 0:N.conditions;else break;if(Array.isArray(h)&&h[b])if(h.splice(b,1),h.length===1){if(y.length>0){const S=y.length-1,A=y[S],v=y.slice(0,S);let D=e.unref(l),T="";for(const R of v)if(D[+R])T=(w=D[+R])==null?void 0:w.join,D=(x=D[+R])==null?void 0:x.conditions;else break;if(T===h[0].join){if(Array.isArray(h[0].conditions)){const R=ee.cloneDeep(h[0].conditions);D.splice(+A,1),D.splice(+A,0,...R)}}else D[+A]=h[0]}}else h.length===0&&(l.value=[])}},addCondition(b,f,h){var x,S;let y=e.unref(l),N="";const w=b.split("-");if(b&&(w!=null&&w.length))for(const A of w)if(y[+A])N=(x=y[+A])==null?void 0:x.join,y=(S=y[+A])==null?void 0:S.conditions;else break;if(N===h)y.splice(f+1,0,{key:ye()});else{const A=ee.cloneDeep(y[f]);y[f]={join:h,conditions:[A,{key:ye()}]}}}});const m=b=>{r.value.icon=b},g=e.computed(()=>window.config.imgBaseUrl),C=e.ref([{label:"向下箭头",value:"/static/img/indicator-icon/arrow-down.svg"},{label:"向上箭头",value:"/static/img/indicator-icon/arrow-up.svg"}]);return n({showModal:p}),{params:s,visible:a,conditionList:l,attribute:r,handleOk:i,addCondition:u,onUploadChange:m,imgBaseUrl:g,iconOptions:C}}}),ig="",ca=t=>(e.pushScopeId("data-v-a29d848a"),t=t(),e.popScopeId(),t),Yh={class:"config-wrap"},qh={class:"wrap-item left"},Kh={class:"title"},Xh={class:"border"},Qh={class:"wrap-item right"},Jh=ca(()=>e.createElementVNode("div",{class:"title"},"属性配置",-1)),Zh={class:"border"},eb={class:"row"},tb=ca(()=>e.createElementVNode("div",null,"字体颜色:",-1)),ob={class:"row"},nb=ca(()=>e.createElementVNode("div",null,"图标:",-1)),ab={style:{display:"flex","align-items":"center","justify-items":"center"}};function lb(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("condition-list"),i=e.resolveComponent("pick-colors"),d=e.resolveComponent("a-select"),p=e.resolveComponent("a-modal");return e.openBlock(),e.createBlock(p,{width:"60%",visible:t.visible,"onUpdate:visible":o[6]||(o[6]=u=>t.visible=u),title:"条件设置",destroyOnClose:!0,maskClosable:!1,bodyStyle:{height:"500px",overflow:"auto"},onOk:t.handleOk},{default:e.withCtx(()=>[e.createElementVNode("div",Yh,[e.createElementVNode("div",qh,[e.createElementVNode("div",Kh,[e.createTextVNode(" 条件配置 "),Array.isArray(t.conditionList)&&t.conditionList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{class:"add-and-condition",onClick:o[0]||(o[0]=u=>t.addCondition("&&"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加且条件 ")]),_:1}),e.createVNode(s,{class:"add-or-condition",onClick:o[1]||(o[1]=u=>t.addCondition("||"))},{default:e.withCtx(()=>[e.createTextVNode(" 添加或条件 ")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,style:{"margin-left":"15px"},onClick:o[2]||(o[2]=u=>t.addCondition())},{default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1}))]),e.createElementVNode("div",Xh,[e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0},null,8,["list"])])]),e.createElementVNode("div",Qh,[Jh,e.createElementVNode("div",Zh,[e.createElementVNode("div",eb,[tb,e.createVNode(i,{class:"pick-colors",value:t.attribute.color,"onUpdate:value":o[3]||(o[3]=u=>t.attribute.color=u),size:25},null,8,["value"])]),e.createElementVNode("div",ob,[nb,e.createElementVNode("div",ab,[e.createVNode(d,{value:t.attribute.icon,"onUpdate:value":o[4]||(o[4]=u=>t.attribute.icon=u),options:t.iconOptions,style:{width:"160px"}},null,8,["value","options"]),e.createVNode(i,{class:"pick-colors",value:t.attribute.iconColor,"onUpdate:value":o[5]||(o[5]=u=>t.attribute.iconColor=u),size:25},null,8,["value"])])])])])])]),_:1},8,["visible","onOk"])}const rb=ae(Wh,[["render",lb],["__scopeId","data-v-a29d848a"]]),ib=e.defineComponent({components:{AModal:j.Modal,AButton:j.Button,ATable:j.Table,ConditionWrap:rb,AInput:j.Input},setup(t,{expose:o,emit:n}){console.log(t);const a=e.ref(!1),l=e.ref(),r=e.ref(),s=e.ref(0),c=[{title:"条件标题",dataIndex:"name",align:"center",ellipsis:!0,width:100},{title:"条件内容",dataIndex:"conditionCode",align:"center",ellipsis:!0,width:250},{title:"条件设置",dataIndex:"operation",ellipsis:!0,width:160}],i=e.ref([]),d=e.ref(),p=(h,y="")=>{let N="";return h.forEach((w,x)=>{const{value:S,rule:A}=w;w.conditions?N+=`(${p(w.conditions,w.join)})`:S&&A&&(N+=`value ${A} '${S}'`),N+=`${x===h.length-1?"":y?" "+y+" ":""}`}),N},u=h=>{i.value=[],d.value=h;const{rules:y,conditionCode:N,conditions:w,attribute:x}=h;if(y)i.value=ee.cloneDeep(y);else if(N){const S={conditionCode:N,conditions:w,attribute:x,name:"新条件"};i.value.push(ee.cloneDeep(S)),delete h.conditionCode,delete h.conditions,delete h.attribute}a.value=!0},m=()=>{a.value=!1;for(const h of i.value)if(h.conditionCode==="")return"不能条件为空!";n("confirm",e.unref(i))},g=()=>{i.value.push({conditionCode:"",name:"新条件",condition:[],attribute:{}})},C=h=>{h.conditionCode=p(h.conditions),Object.assign(i.value[s.value],h)},b=(h,y)=>{e.unref(l).showModal(),r.value=ee.cloneDeep(h),s.value=y},f=h=>{i.value.splice(h,1)};return o({open:u}),{visible:a,currentData:r,currentIndex:s,configColumns:c,conditionsRef:l,rules:i,open:u,close:m,addRule:g,openRuleModal:b,closeRuleModal:C,deleteRule:f}}});function sb(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-input"),i=e.resolveComponent("a-table"),d=e.resolveComponent("a-modal"),p=e.resolveComponent("condition-wrap");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(d,{width:"60%",visible:t.visible,"onUpdate:visible":o[0]||(o[0]=u=>t.visible=u),title:"条件列表",destroyOnClose:!0,maskClosable:!1,bodyStyle:{height:"500px",overflow:"auto"},onOk:t.close},{default:e.withCtx(()=>[e.createVNode(s,{onClick:t.addRule},{default:e.withCtx(()=>[e.createTextVNode("新增条件")]),_:1},8,["onClick"]),e.createVNode(i,{class:"column-table",size:"small",columns:t.configColumns,"data-source":t.rules,scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:u,record:m,index:g})=>[u.dataIndex==="name"?(e.openBlock(),e.createBlock(c,{key:0,size:"small",value:m.name,"onUpdate:value":C=>m.name=C},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0),u.dataIndex==="operation"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createVNode(s,{size:"small",onClick:C=>t.openRuleModal(m,g)},{default:e.withCtx(()=>[e.createTextVNode("编辑")]),_:2},1032,["onClick"]),e.createVNode(s,{size:"small",onClick:C=>t.deleteRule(g),style:{"margin-left":"6px"}},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])]),_:1},8,["visible","onOk"]),e.createVNode(p,{ref:"conditionsRef",data:t.currentData,index:t.currentIndex,onSave:t.closeRuleModal},null,8,["data","index","onSave"])],64)}const cb=ae(ib,[["render",sb]]),db=[{title:"列名",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"参数",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"列自定义",dataIndex:"style",align:"center",ellipsis:!0,width:100},{title:"列宽度(px/%)",dataIndex:"width",ellipsis:!0,width:135},{title:"列自定义函数",dataIndex:"renderText",ellipsis:!0,width:170},{title:"列表头自定义函数",dataIndex:"headerTemplate",ellipsis:!0,width:170},{title:"数据格式化",dataIndex:"dataFormat",ellipsis:!0,width:225},{title:"保留小数位数",dataIndex:"retentiondigit",ellipsis:!0,width:135},{title:"表头/表尾列对齐方式",dataIndex:"headerAlign",ellipsis:!0,width:170},{title:"内容列对齐方式",dataIndex:"align",ellipsis:!0,width:170},{title:"固定当前列",dataIndex:"fixed",ellipsis:!0,width:170},{title:"计算行",dataIndex:"calculateShow",ellipsis:!0,width:180},{title:"条件设置",dataIndex:"conditions",ellipsis:!0,width:120}],pb=e.defineComponent({name:"TableColumnConfig",components:{ATable:j.Table,AModal:j.Modal,ACheckbox:j.Checkbox,AInput:j.Input,AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption,Editor:Wr,CodeOutlined:ys,ConditionsTable:cb},setup(){const t=e.inject(ve),o=e.inject(ge),n=e.computed(()=>{var w;return!!((w=e.unref(t))!=null&&w.isGroupTable)}),a=e.computed(()=>{var w;return((w=e.unref(t))==null?void 0:w.tableColumns)||[]}),l=e.ref([]);let r=null,s="";const c=e.ref(""),i=e.ref(""),d=e.ref(!1);e.watch(o,()=>{p()},{deep:!0,flush:"post"});const p=()=>{var x,S,A,v;let w=[];if(l.value=[],n.value){const D=((A=e.unref(o))==null?void 0:A.rowHeaderList)||[],T=((v=e.unref(o))==null?void 0:v.indicators)||[];w=[...D,...T]}else{const D=((x=e.unref(o))==null?void 0:x.queryColumnList)||[],T=((S=e.unref(o))==null?void 0:S.indicators)||[];w=[...D,...T]}console.log("columns",w,a),w.forEach(D=>{var R;let T=(R=e.unref(a))==null?void 0:R.find($=>$.label===D.label);T||(T={label:D.label,prop:D.label,style:!1,width:"",renderText:"",headerTemplate:"",headerAlign:"left",align:"left",fixed:"",dataFormat:[],retentiondigit:null,calculateShow:{sum:!1,avg:!1},conditions:[],attribute:{}}),T.calculateShow||(T.calculateShow={sum:!1,avg:!1}),l.value.push(T)}),t.value.tableColumns=l.value};e.onMounted(()=>{p()});const u=(w,x)=>{w.style=x.target.checked,w.style?w.renderBool===void 0&&(w.renderBool=!1):delete w.renderBool},m=(w,x,S)=>{w&&x&&(r=w,s=x,c.value=w[x]||"",d.value=!0,i.value=S)},g=w=>{try{c.value=w}catch(x){console.error(x)}},C=()=>{r&&s&&(r[s]=c.value),c.value="",d.value=!1},b=e.ref(),f=e.ref(0),h=e.ref();return{configColumns:db,configData:l,editorTitle:i,editorVisible:d,optionCode:c,handleOk:C,renderSave:m,onEditorChange:g,changeRenderBool:u,openConditions:w=>{f.value=w,b.value=l.value[w],e.unref(h).open(l.value[w])},confirmConditions:w=>{b.value.rules=w},conditionsTableRef:h}}}),sg="",ub={class:"table-column-config"};function fb(t,o,n,a,l,r){const s=e.resolveComponent("a-checkbox"),c=e.resolveComponent("a-input"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-select"),p=e.resolveComponent("a-input-number"),u=e.resolveComponent("code-outlined"),m=e.resolveComponent("a-table"),g=e.resolveComponent("editor"),C=e.resolveComponent("a-modal"),b=e.resolveComponent("conditions-table");return e.openBlock(),e.createElementBlock("div",ub,[e.createVNode(m,{class:"column-table",columns:t.configColumns,"data-source":t.configData,scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:f,text:h,record:y,index:N})=>[f.dataIndex==="style"?(e.openBlock(),e.createBlock(s,{key:0,onChange:w=>t.changeRenderBool(y,w),checked:y.style},null,8,["onChange","checked"])):f.dataIndex==="width"?(e.openBlock(),e.createBlock(c,{key:1,value:y.width,"onUpdate:value":w=>y.width=w,valueModifiers:{trim:!0}},null,8,["value","onUpdate:value"])):f.dataIndex==="renderText"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[y.style?(e.openBlock(),e.createBlock(c,{key:1,value:y.renderText,"onUpdate:value":w=>y.renderText=w,readOnly:!0,onClick:w=>t.renderSave(y,"renderText","列自定义函数")},null,8,["value","onUpdate:value","onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h),1)],64))],64)):f.dataIndex==="headerTemplate"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[y.style?(e.openBlock(),e.createBlock(c,{key:1,value:y.headerTemplate,"onUpdate:value":w=>y.headerTemplate=w,readOnly:!0,onClick:w=>t.renderSave(y,"headerTemplate","列表头自定义函数")},null,8,["value","onUpdate:value","onClick"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h),1)],64))],64)):f.dataIndex==="headerAlign"?(e.openBlock(),e.createBlock(d,{key:4,style:{width:"100%"},size:"small",value:y.headerAlign,"onUpdate:value":w=>y.headerAlign=w},{default:e.withCtx(()=>[e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(i,{value:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:2},1032,["value","onUpdate:value"])):f.dataIndex==="align"?(e.openBlock(),e.createBlock(d,{key:5,style:{width:"100%"},size:"small",value:y.align,"onUpdate:value":w=>y.align=w},{default:e.withCtx(()=>[e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(i,{value:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:2},1032,["value","onUpdate:value"])):f.dataIndex==="fixed"?(e.openBlock(),e.createBlock(d,{key:6,style:{width:"100%"},size:"small",value:y.fixed,"onUpdate:value":w=>y.fixed=w},{default:e.withCtx(()=>[e.createVNode(i,{value:""},{default:e.withCtx(()=>[e.createTextVNode("不固定")]),_:1}),e.createVNode(i,{value:"left"},{default:e.withCtx(()=>[e.createTextVNode("靠左")]),_:1}),e.createVNode(i,{value:"right"},{default:e.withCtx(()=>[e.createTextVNode("靠右")]),_:1})]),_:2},1032,["value","onUpdate:value"])):f.dataIndex==="dataFormat"?(e.openBlock(),e.createBlock(d,{key:7,value:y.dataFormat,"onUpdate:value":w=>y.dataFormat=w,style:{width:"100%"},mode:"multiple",allowClear:"",maxTagCount:1},{default:e.withCtx(()=>[e.createVNode(i,{value:"#,000"},{default:e.withCtx(()=>[e.createTextVNode("千分位")]),_:1}),e.createVNode(i,{value:"#.00"},{default:e.withCtx(()=>[e.createTextVNode("保留小数")]),_:1}),e.createVNode(i,{value:"#"},{default:e.withCtx(()=>[e.createTextVNode("保留有效位")]),_:1})]),_:2},1032,["value","onUpdate:value"])):f.dataIndex==="retentiondigit"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:8},[y.dataFormat&&y.dataFormat.includes("#.00")?(e.openBlock(),e.createBlock(p,{key:0,value:y.retentiondigit,"onUpdate:value":w=>y.retentiondigit=w,min:0,max:10},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0)],64)):f.dataIndex==="calculateShow"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:9},[e.createVNode(s,{checked:y.calculateShow.sum,"onUpdate:checked":w=>y.calculateShow.sum=w},{default:e.withCtx(()=>[e.createTextVNode("合计")]),_:2},1032,["checked","onUpdate:checked"]),e.createVNode(s,{checked:y.calculateShow.avg,"onUpdate:checked":w=>y.calculateShow.avg=w},{default:e.withCtx(()=>[e.createTextVNode("平均")]),_:2},1032,["checked","onUpdate:checked"])],64)):f.dataIndex==="conditions"?(e.openBlock(),e.createBlock(u,{key:10,class:"icon",onClick:e.withModifiers(w=>t.openConditions(N),["stop"])},null,8,["onClick"])):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"]),e.createVNode(C,{title:t.editorTitle,visible:t.editorVisible,"onUpdate:visible":o[0]||(o[0]=f=>t.editorVisible=f),"destroy-on-close":"",width:"700px",bodyStyle:{height:"500px",overflow:"auto"},centered:"",zIndex:1020,okText:"保存",cancelText:"取消",onOk:t.handleOk},{default:e.withCtx(()=>[e.createVNode(g,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.optionCode,onChange:t.onEditorChange},null,8,["valueData","onChange"])]),_:1},8,["title","visible","onOk"]),e.createVNode(b,{onConfirm:t.confirmConditions,ref:"conditionsTableRef"},null,8,["onConfirm"])])}const mb=ae(pb,[["render",fb],["__scopeId","data-v-bb095396"]]),hb=[{title:"列名",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"参数",dataIndex:"label",fixed:"left",ellipsis:!0,width:135},{title:"数据格式化",dataIndex:"dataFormat",ellipsis:!0,width:225},{title:"保留小数位数",dataIndex:"retentiondigit",ellipsis:!0,width:135}],bb=e.defineComponent({name:"TableColumnConfig",components:{ATable:j.Table,AInputNumber:j.InputNumber,ASelect:j.Select,ASelectOption:j.SelectOption,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel},setup(){const t=e.inject(ve),o=e.inject(ge),n=e.ref(["cardFormat"]),a=()=>{var d;const r=((d=e.unref(o))==null?void 0:d.indicators)||[],s=t.value.columnsConfigMap||{},c={dataFormat:[],retentiondigit:""},i=r.reduce((p,u)=>({...p,[u.label]:{...c,...s[u.label]||{}}}),{});t.value.columnsConfigMap=i};e.watch(o,()=>{a()},{deep:!0,flush:"post"}),e.onMounted(()=>{a()});const l=e.computed(()=>t.value.columnsConfigMap||{});return{selectedComponent:t,configColumns:hb,graphicConfig:o,columnsConfigMap:l,activePanel:n}}}),cg="";function yb(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-input-number"),d=e.resolveComponent("a-table"),p=e.resolveComponent("a-collapse-panel"),u=e.resolveComponent("a-collapse");return e.openBlock(),e.createBlock(u,{activeKey:t.activePanel,"onUpdate:activeKey":o[0]||(o[0]=m=>t.activePanel=m)},{default:e.withCtx(()=>[e.createVNode(p,{key:"cardFormat",header:"数据格式化"},{default:e.withCtx(()=>[e.createVNode(d,{class:"column-table",columns:t.configColumns,"data-source":t.graphicConfig.indicators||[],scroll:{x:"100%",y:400},pagination:!1,bordered:""},{bodyCell:e.withCtx(({column:m,record:g})=>[m.dataIndex==="dataFormat"&&t.columnsConfigMap[g.label]?(e.openBlock(),e.createBlock(c,{key:0,value:t.columnsConfigMap[g.label].dataFormat,"onUpdate:value":C=>t.columnsConfigMap[g.label].dataFormat=C,style:{width:"100%"},mode:"multiple",allowClear:"",maxTagCount:1},{default:e.withCtx(()=>[e.createVNode(s,{value:"#,000"},{default:e.withCtx(()=>[e.createTextVNode("千分位")]),_:1}),e.createVNode(s,{value:"#.00"},{default:e.withCtx(()=>[e.createTextVNode("保留小数")]),_:1}),e.createVNode(s,{value:"#"},{default:e.withCtx(()=>[e.createTextVNode("保留有效位")]),_:1})]),_:2},1032,["value","onUpdate:value"])):m.dataIndex==="retentiondigit"&&t.columnsConfigMap[g.label]?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.columnsConfigMap[g.label].dataFormat&&t.columnsConfigMap[g.label].dataFormat.includes("#.00")?(e.openBlock(),e.createBlock(i,{key:0,value:t.columnsConfigMap[g.label].retentiondigit,"onUpdate:value":C=>t.columnsConfigMap[g.label].retentiondigit=C,min:0,max:10},null,8,["value","onUpdate:value"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source"])]),_:1})]),_:1},8,["activeKey"])}const gb=ae(bb,[["render",yb],["__scopeId","data-v-72761110"]]),Cb=e.defineComponent({name:"StyleConfigGroup",props:{componentType:{type:String,default:""},isGroupTable:{type:Boolean,default:!1}},components:{PropsToForm:Ah,TableColumnConfig:mb,Editor:Wr,AFormItem:j.FormItem,ASelect:j.Select,ASelectOption:j.SelectOption,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ASwitch:j.Switch,IndicatorContainer:gb},setup(t){const o=e.ref([]),n=e.ref(["表格"]),a=e.inject(wo),l=e.inject(ma),r=e.inject(Ko),s=e.inject(Xo),c=e.inject(fa),i=e.inject(ve),d=S=>{r({...Jo[S]},!1),e.unref(i).type=e.unref(p),c()},p=e.computed(()=>{var S;return(S=e.unref(a))==null?void 0:S.type}),u=["showTotalBool","totalName","expandAll"],m=e.computed(()=>yf.map(S=>{const{props:A,title:v,enableProps:D,onlyType:T,excludeType:R}=S,$=[];A.forEach(B=>{typeof B=="string"&&(u.includes(B)?t.isGroupTable&&$.push(B):$.push(B))});let F,_;return t.componentType==="table"&&(T!=null&&T.includes(t.componentType))?(F=typeof D=="string"&&l.value?l.value[D]:void 0,_=ee.pick(e.unref(l),$)):(F=typeof D=="string"&&a.value?a.value[D]:void 0,_=ee.pick(e.unref(a),$)),{title:v,enableProps:F,enablePropsName:D,onlyType:T,excludeType:R,props:_}}).filter(({props:S})=>Object.keys(S).length>0)),g=(S,A)=>{const{onlyType:v,excludeType:D}=S;return v==null&&D==null?!0:v?ue(A,v):D?!ue(A,D):!1},C=(S,A)=>(A==null||A.stopPropagation(),S),b=(S,A)=>{A!=null&&r({[A]:S})},f=e.computed(()=>JSON.stringify(e.unref(a),null,2)),h=S=>{try{const A=JSON.parse(S||"{}");r(A,!1)}catch(A){console.error(A)}},y=e.ref(""),N=S=>{try{y.value=S}catch(A){console.error(A)}},w=(S,A)=>{try{s({[A]:S})}catch(v){console.error(v)}},x=e.computed(()=>{var S;return["customGraph"].includes((S=e.unref(a))==null?void 0:S.type)});return{type:p,handleChangeType:d,activePanel:o,tablePanel:n,ComponentString:f,updateComponentOptions:h,tableOptions:l,optionCode:y,onEditorChange:N,tableEditorChange:w,onSwitchClick:C,onSwitchChange:b,detailPropsGroups:m,isRenderForm:g,isShowOptionEditor:x}}}),dg="",pg="",wb={class:"style-group"};function kb(t,o,n,a,l,r){const s=e.resolveComponent("a-select-option"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-form-item"),d=e.resolveComponent("a-switch"),p=e.resolveComponent("props-to-form"),u=e.resolveComponent("a-collapse-panel"),m=e.resolveComponent("editor"),g=e.resolveComponent("a-collapse"),C=e.resolveComponent("table-column-config"),b=e.resolveComponent("indicator-container");return e.openBlock(),e.createElementBlock("div",wb,[t.componentType!=="table"&&t.componentType!=="card"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(i,{label:"图表类型"},{default:e.withCtx(()=>[e.createVNode(c,{value:t.type,"onUpdate:value":o[0]||(o[0]=f=>t.type=f),style:{width:"100%"},onChange:t.handleChangeType},{default:e.withCtx(()=>[e.createVNode(s,{value:"line"},{default:e.withCtx(()=>[e.createTextVNode("折线图")]),_:1}),e.createVNode(s,{value:"bar"},{default:e.withCtx(()=>[e.createTextVNode("柱状图")]),_:1}),e.createVNode(s,{value:"pie"},{default:e.withCtx(()=>[e.createTextVNode("饼图")]),_:1}),e.createVNode(s,{value:"comboGraph"},{default:e.withCtx(()=>[e.createTextVNode("组合图表")]),_:1}),e.createVNode(s,{value:"customGraph"},{default:e.withCtx(()=>[e.createTextVNode("自定义图表")]),_:1})]),_:1},8,["value","onChange"])]),_:1}),e.createVNode(g,{activeKey:t.activePanel,"onUpdate:activeKey":o[1]||(o[1]=f=>t.activePanel=f)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.detailPropsGroups,f=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f.title},[t.isRenderForm(f,t.type)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[f.title?(e.openBlock(),e.createBlock(u,{header:f.title,key:f.title},{extra:e.withCtx(()=>[typeof f.enableProps=="boolean"?(e.openBlock(),e.createBlock(d,{key:0,checked:f.enableProps,onChange:h=>t.onSwitchChange(h,f.enablePropsName),onClick:t.onSwitchClick},null,8,["checked","onChange","onClick"])):e.createCommentVNode("",!0)]),default:e.withCtx(()=>[e.createVNode(p,{props:f.props,disabled:typeof f.enableProps=="boolean"?!f.enableProps:!1},null,8,["props","disabled"])]),_:2},1032,["header"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128)),t.isShowOptionEditor?(e.openBlock(),e.createBlock(u,{key:"custom-option",header:"自定义option配置"},{default:e.withCtx(()=>[e.createVNode(m,{class:"option-editor",language:"typescript",valueData:t.optionCode,onChange:t.onEditorChange},null,8,["valueData","onChange"])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["activeKey"])],64)):e.createCommentVNode("",!0),t.componentType==="table"?(e.openBlock(),e.createBlock(g,{key:1,activeKey:t.tablePanel,"onUpdate:activeKey":o[4]||(o[4]=f=>t.tablePanel=f)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.detailPropsGroups,f=>{var h;return e.openBlock(),e.createElementBlock(e.Fragment,{key:f.title},[f.title&&((h=f.onlyType)!=null&&h.includes(t.componentType))?(e.openBlock(),e.createBlock(u,{header:f.title,key:f.title},{default:e.withCtx(()=>[e.createVNode(p,{componentType:t.componentType,props:f.props,disabled:typeof f.enableProps=="boolean"?!f.enableProps:!1},null,8,["componentType","props","disabled"])]),_:2},1032,["header"])):e.createCommentVNode("",!0)],64)}),128)),e.createVNode(u,{key:"tableColumn",header:"表格列配置"},{default:e.withCtx(()=>[e.createVNode(C)]),_:1}),e.createVNode(u,{key:"headerCellStyleMethod",header:"表头单元格样式"},{default:e.withCtx(()=>[e.createVNode(m,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.tableOptions.headerCellStyleMethod,onChange:o[2]||(o[2]=f=>t.tableEditorChange(f,"headerCellStyleMethod"))},null,8,["valueData"])]),_:1}),e.createVNode(u,{key:"rowStyleMethod",header:"行样式"},{default:e.withCtx(()=>[e.createVNode(m,{class:"option-editor",language:"javascript",options:{fontSize:16,lineHeight:18},valueData:t.tableOptions.rowStyleMethod,onChange:o[3]||(o[3]=f=>t.tableEditorChange(f,"rowStyleMethod"))},null,8,["valueData"])]),_:1})]),_:1},8,["activeKey"])):e.createCommentVNode("",!0),t.componentType==="card"?(e.openBlock(),e.createBlock(b,{key:2})):e.createCommentVNode("",!0)])}const xb=ae(Cb,[["render",kb],["__scopeId","data-v-9a2fa8f5"]]),_b=e.defineComponent({name:"Card",components:{CloseOutlined:Zt,AInput:j.Input,ASelect:j.Select,MenuOutlined:Sn,ADropdown:j.Dropdown,AMenu:j.Menu,AMenuItem:j.MenuItem},props:{index:{type:Number,require:!0},control:{type:Object,default:()=>({})},conditionOptions:{type:Array,default:()=>[]},path:{type:String,default:""}},emits:["delete","update"],setup(t){const o=e.inject(ze),n=e.inject(xo),a=e.inject(ya),l=e.inject(Qo),{onUpdateControl:r,onDeleteControl:s,onAddMenuControl:c}=e.inject("CHANGE_CONTROL",{onUpdateControl:k=>{},onDeleteControl:k=>{},onAddMenuControl:(k,L,M)=>{}}),i=e.computed(()=>{var k;return(k=e.unref(o))==null?void 0:k.filter(L=>L.keyName!=="")}),d=e.computed(()=>{const k=[];return e.unref(l)||k.push({keyName:"父页面",id:"PARENT"}),[...k,...e.unref(i)]}),p=e.computed(()=>{var M,U;const k=[],L=(M=e.unref(i))==null?void 0:M.find(z=>{var q;return z.id===((q=t.control)==null?void 0:q.id)});if(L){const z=L.type,q=ee.pick(L,["value","startTime","endTime"]);(U=Object.keys(q))!=null&&U.length||(q.value="");for(const X in q)if(Object.prototype.hasOwnProperty.call(q,X)){const J=e.unref(a)[X];if(Array.isArray(J)){const oe=J.find(le=>ue(z,le.onlyType));oe&&k.push({label:oe.label,value:X})}else k.push({label:J.label,value:X})}}return k}),u=()=>{s({index:t.index,path:t.path}),g(t.control.id)},m=({key:k})=>{c(t.path,t.index,k==="2"?"||":"&&")};function g(k){const L=e.unref(i).find(M=>M.id===k);if(L){const{type:M,id:U,events:z=[]}=L,q=Vo(M),X=z.findIndex(J=>{var oe;return J.on===q&&J.target===((oe=e.unref(A))==null?void 0:oe.id)&&J.emit==="refreshData"});X!==-1&&(z.splice(X,1),n({id:U,events:z}))}}const C=k=>{const L={...t.control};if(L.id=k,L.customValue="",k){const M=e.unref(i).find(U=>U.id===k);M&&(L.keyName=M.keyName,D(M,k))}delete L.prop,r({control:L,index:t.index,path:t.path})},b=e.ref(""),f=()=>{b.value=t.control.id},h=k=>{r({control:{...t.control,prop:k},index:t.index,path:t.path})},y=k=>{r({control:{...t.control,prop:k.target.value},index:t.index,path:t.path})},N=k=>{r({control:{...t.control,rule:k},index:t.index,path:t.path})},w=k=>{const L={...t.control};L.modelKey&&(L.modelKey=""),L.prop&&(L.prop=""),L.format&&(L.format=""),r({control:{...L,dataType:k,customValue:"",id:"",keyName:""},index:t.index,path:t.path})},x=k=>{r({control:{...t.control,customValue:k.target.value},index:t.index,path:t.path})},S=k=>{const L={...t.control};k==null?delete L.mode:L.mode=k,delete L.conditionLabel,delete L.conditionName,delete L.conditionKey,delete L.conditionValueType,r({control:L,index:t.index,path:t.path})},A=e.inject(ve),v=e.inject(ge);function D(k,L){var X,J;const{type:M,id:U,events:z=[]}=k,q=Vo(M);e.unref(b)&&L!==e.unref(b)&&(ut(((X=e.unref(v))==null?void 0:X.controlList)||[]).find(le=>le.id===e.unref(b))||g(e.unref(b))),z.find(oe=>{var le;return oe.on===q&&oe.target===((le=e.unref(A))==null?void 0:le.id)&&oe.emit==="refreshData"})||n({id:U,events:[...z,{on:q,target:(J=e.unref(A))==null?void 0:J.id,emit:"refreshData"}].reverse()})}const T=(k,L)=>{if(k){const{label:M,name:U,id:z,genericType:q,indexCode:X,typeGuid:J,indexCodeNum:oe}=L||{},le={...t.control,conditionKey:z,conditionLabel:M,conditionName:U,conditionValueType:q,indexCode:X,typeGuid:J,indexCodeNum:oe};Ye(le,"rule")||(le.rule="EQUAL"),Ye(le,"dataType")||(le.dataType="component"),r({control:le,index:t.index,path:t.path})}else{const M={...t.control};delete M.conditionLabel,delete M.conditionName,delete M.conditionKey,delete M.conditionValueType,r({control:M,index:t.index,path:t.path})}},R=(k,L)=>{var M;return(M=L==null?void 0:L.keyName)==null?void 0:M.toLowerCase().includes(k==null?void 0:k.toLowerCase())},$=(k,L)=>{var M;return(M=L==null?void 0:L.label)==null?void 0:M.toLowerCase().includes(k==null?void 0:k.toLowerCase())},F=e.computed(()=>{const k=t.conditionOptions.find(M=>M.id===t.control.conditionKey);let L="";return k&&(L=(k==null?void 0:k.genericType)||""),L==="TEXT"||L==="0"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"包含",value:"LIKE"},{label:"不包含",value:"NOT_LIKE"},{label:"开头是",value:"LIKE%"},{label:"结尾是",value:"%LIKE"},{label:"等于",value:"EQUAL"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"}]:L==="NUMBER"||L==="1"?[{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:L==="DATE"||L==="2"?[{label:"属于",value:"IN"},{label:"不属于",value:"NOT_IN"},{label:"小于",value:"LESS"},{label:"小于等于",value:"LESS_EQUAL"},{label:"大于",value:"GREATER"},{label:"大于等于",value:"GREATER_EQUAL"},{label:"等于",value:"EQUAL"},{label:"不等于",value:"NOT_EQUAL"}]:[]}),_=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],B=e.computed(()=>{let k=!1;const{id:L="",dataType:M="component"}=t.control;if(L&&M==="component"){const U=e.unref(i).find(q=>q.id===L),z=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];ue(U==null?void 0:U.type,z)&&(k=!0)}return L==="PARENT"&&(k=!0),k}),E=e.computed(()=>{let k=!1;const{id:L="",dataType:M="component"}=t.control;if(L&&M==="component"){const U=e.unref(i).find(z=>z.id===L);ue((U==null?void 0:U.type)||"","range")&&(k=!0)}return L==="PARENT"&&(k=!0),k}),P=e.computed(()=>{let k=!1;const{id:L="",dataType:M="component"}=t.control;if(L&&M==="component"){const U=e.unref(i).find(z=>z.id===L);ue((U==null?void 0:U.type)||"",["date","range"])&&(k=!0)}return k});return{propOptions:p,usedComponentList:i,onDelete:u,onIdChange:C,onIdFocus:f,onPropChange:h,onParentPropChange:y,onModeChange:S,onRuleChange:N,onDataTypeChange:w,onCustomValueChange:x,onConditionKeyChange:T,idFilterOption:R,filterOption:$,onFormatChange:k=>{r({control:{...t.control,format:k},index:t.index,path:t.path})},onModelPropChange:k=>{r({control:{...t.control,modelKey:k.target.value},index:t.index,path:t.path})},clickConditionMenu:m,ruleOption:F,dataTypeOption:_,isShowProp:E,isShowFormat:P,isShowModelProp:B,formatOptions:[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}],keyNameOptions:d}}}),ug="",fg="",Sb={class:"control-card"};function Tb(t,o,n,a,l,r){const s=e.resolveComponent("a-select"),c=e.resolveComponent("a-input"),i=e.resolveComponent("menu-outlined"),d=e.resolveComponent("a-menu-item"),p=e.resolveComponent("a-menu"),u=e.resolveComponent("a-dropdown"),m=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",Sb,[e.createVNode(s,{class:"field-name",value:t.control.conditionKey,options:t.conditionOptions,fieldNames:{value:"id"},"allow-clear":"","show-search":"",onChange:t.onConditionKeyChange,"filter-option":t.filterOption},null,8,["value","options","onChange","filter-option"]),e.createVNode(s,{class:"field-name",value:t.control.rule,options:t.ruleOption,style:{"max-width":"100px"},onChange:t.onRuleChange},null,8,["value","options","onChange"]),e.createVNode(s,{class:"field-name",value:t.control.dataType,options:t.dataTypeOption,style:{"max-width":"100px"},onChange:t.onDataTypeChange},null,8,["value","options","onChange"]),t.control.dataType===""?(e.openBlock(),e.createBlock(c,{key:0,class:"field-name",value:t.control.customValue,style:{"max-width":"180px"},onInput:t.onCustomValueChange},null,8,["value","onInput"])):e.createCommentVNode("",!0),t.control.dataType==="component"?(e.openBlock(),e.createBlock(s,{key:1,class:"field-name",value:t.control.id,options:t.keyNameOptions,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption,style:{"max-width":"180px"},onChange:t.onIdChange,onClick:t.onIdFocus},null,8,["value","options","filter-option","onChange","onClick"])):e.createCommentVNode("",!0),t.isShowModelProp?(e.openBlock(),e.createBlock(c,{key:2,class:"field-name",value:t.control.modelKey,onInput:t.onModelPropChange,placeholder:t.control.id==="PARENT"?"请输入组件别名":""},null,8,["value","onInput","placeholder"])):e.createCommentVNode("",!0),t.isShowProp?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[t.control.id==="PARENT"?(e.openBlock(),e.createBlock(c,{key:0,class:"field-name",value:t.control.prop,onInput:t.onParentPropChange,placeholder:"请输入属性名"},null,8,["value","onInput"])):(e.openBlock(),e.createBlock(s,{key:1,class:"field-name",value:t.control.prop,options:t.propOptions,onChange:t.onPropChange},null,8,["value","options","onChange"]))],64)):e.createCommentVNode("",!0),t.isShowFormat?(e.openBlock(),e.createBlock(s,{key:4,class:"field-name",value:t.control.format,options:t.formatOptions,onChange:t.onFormatChange},null,8,["value","options","onChange"])):e.createCommentVNode("",!0),e.createVNode(u,{trigger:["click"]},{overlay:e.withCtx(()=>[e.createVNode(p,{onClick:t.clickConditionMenu},{default:e.withCtx(()=>[e.createVNode(d,{key:"1"},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(d,{key:"2"},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{class:"more-icon"})]),_:1}),e.createVNode(m,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Nb=ae(_b,[["render",Tb],["__scopeId","data-v-f2a646f1"]]),Ab=e.defineComponent({name:"ControlList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""},conditionOptions:{type:Array,default:()=>[]}},components:{ControlCard:Nb}}),mg="",Eb={key:0,class:"condition-list"},Ob={key:0,class:"condition-container"},Bb={key:0,class:"condition-text"},Vb={key:1,class:"condition-text"},Lb={class:"conditions"};function Fb(t,o,n,a,l,r){const s=e.resolveComponent("control-list",!0),c=e.resolveComponent("control-card");return Array.isArray(t.list)?(e.openBlock(),e.createElementBlock("div",Eb,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,(i,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[i.join&&i.conditions&&Array.isArray(i.conditions)?(e.openBlock(),e.createElementBlock("div",Ob,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Bb,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Vb,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Lb,[i.conditions.length>0?(e.openBlock(),e.createBlock(s,{key:0,level:t.level+1,path:`${t.path?t.path+"-":""}${d}`,list:i.conditions,conditionOptions:t.conditionOptions},null,8,["level","path","list","conditionOptions"])):e.createCommentVNode("",!0)])])):(e.openBlock(),e.createBlock(c,{class:"condition",key:i.keyValue||`${t.level}-${d}`,control:i,index:d,path:t.path||"",conditionOptions:t.conditionOptions},null,8,["control","index","path","conditionOptions"]))],64))),128))])):e.createCommentVNode("",!0)}const $b=ae(Ab,[["render",Fb],["__scopeId","data-v-2588920e"]]),Ib=e.defineComponent({name:"ControlGroup",props:{conditionOptions:{type:Array,default:()=>[]}},components:{ControlList:$b,AButton:j.Button,ASelect:j.Select,APopover:j.Popover},setup(){const t=e.ref(!1),o=e.ref([]),n=e.inject(ze),a=e.inject(ge),l=e.inject(Ae),r=e.inject(ba),s=e.computed(()=>{var h,y;const f=((h=e.unref(a))==null?void 0:h.controlList)||[];for(const N of f)N.conditionKey&&(Ye(N,"rule")||(N.prop==="startTime"?N.rule="GREATER_EQUAL":N.prop==="endTime"?N.rule="LESS_EQUAL":N.rule="EQUAL"),Ye(N,"dataType")||(N.dataType="component"));return(f==null?void 0:f.length)>1&&!((y=f[0])!=null&&y.join)?[{join:"&&",conditions:f}]:f}),c=e.ref(null),i=f=>{const h={...e.unref(a),...f,sqlConditions:Kl({...e.unref(a),...f},e.unref(n))};l(h)},d=f=>{var y;const h=(y=e.unref(s))==null?void 0:y.slice();h==null||(h==null?void 0:h.length)===0?i({controlList:[{keyValue:ye()}]}):h[0]!=null&&(h[0].conditions==null||h[0].join!==f?i({controlList:[{join:f,conditions:[h[0],{keyValue:ye()}]}]}):h[0].conditions.length>1&&h[0].join===f&&(h[0].conditions.push({keyValue:ye()}),i({controlList:h})))},p=f=>{var S,A,v,D;const{index:h,path:y}=f;let N=ee.cloneDeep((S=e.unref(s))==null?void 0:S.slice()),w=N;const x=y.split("-");if(x!=null&&x.length){for(const T of x)if(w[T])w=(A=w[T])==null?void 0:A.conditions;else break;if(Array.isArray(w)&&w[h])if(w.splice(h,1),w.length===1){if(x.length>0){const T=x.length-1,R=x[T],$=x.slice(0,T);let F=N,_="";for(const B of $)if(F[B])_=(v=F[B])==null?void 0:v.join,F=(D=F[B])==null?void 0:D.conditions;else break;if(_===w[0].join){if(Array.isArray(w[0].conditions)){const B=ee.cloneDeep(w[0].conditions);F.splice(+R,1),F.splice(+R,0,...B)}}else F[R]=w[0]}}else w.length===0&&(N=[]);i({controlList:N})}},u=f=>{var A,v;const{control:h,index:y,path:N}=f,w=ee.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let x=w;const S=N.split("-");if(S!=null&&S.length)for(const D of S)if(x[D])x=(v=x[D])==null?void 0:v.conditions;else break;Array.isArray(x)&&x[y]&&(x[y]=h),i({controlList:w})},m=(f,h,y)=>{var A,v,D;const N=ee.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let w=N,x="";const S=f.split("-");if(S!=null&&S.length){for(const T of S)if(w[T])x=(v=w[T])==null?void 0:v.join,w=(D=w[T])==null?void 0:D.conditions;else break;if(x===y)w.splice(h+1,0,{keyValue:ye()});else{const T=ee.cloneDeep(w[h]);w[h]={join:y,conditions:[T,{keyValue:ye()}]}}i({controlList:N})}},g=(f,h)=>{var y;return(y=h==null?void 0:h.label)==null?void 0:y.toLowerCase().includes(f==null?void 0:f.toLowerCase())},C=e.computed(()=>e.unref(n).filter(f=>f.dataType==="indicator"&&f.graphicConfig.source==="INDICATOR_LIB").map(f=>({label:f.keyName,value:f.id}))),b=()=>{var f;try{(f=e.unref(o))!=null&&f.length&&(r(e.unref(o),e.unref(s)),j.message.success("应用成功")),t.value=!1}catch(h){console.error(h)}};return e.watch(t,f=>{f||(o.value=[])}),e.provide("CHANGE_CONTROL",{onDeleteControl:p,onUpdateControl:u,onAddMenuControl:m}),{isVisible:t,selectedIds:o,controlList:s,bindComponentId:c,indicatorComponents:C,onAddControl:d,filterOption:g,handleConfirmSync:b}}}),hg="",vb=t=>(e.pushScopeId("data-v-5d63fdaa"),t=t(),e.popScopeId(),t),Db={class:"control-group"},Mb={class:"control-group-header"},Pb={class:"sync-wrap"},jb=vb(()=>e.createElementVNode("div",{class:"title"}," 将此全局过滤条件配置同步至选中组件的指标库配置中。若被选中组件已有全局过滤条件将会被覆盖! ",-1)),Rb={class:"operate-container"},Ub={class:"control-group-content"};function zb(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-popover"),d=e.resolveComponent("control-list");return e.openBlock(),e.createElementBlock("div",Db,[e.createElementVNode("div",Mb,[Array.isArray(t.controlList)&&t.controlList.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(s,{onClick:o[0]||(o[0]=p=>t.onAddControl("&&"))},{default:e.withCtx(()=>[e.createTextVNode("添加且条件")]),_:1}),e.createVNode(s,{onClick:o[1]||(o[1]=p=>t.onAddControl("||")),style:{"margin-left":"15px"}},{default:e.withCtx(()=>[e.createTextVNode("添加或条件")]),_:1})],64)):(e.openBlock(),e.createBlock(s,{key:1,onClick:o[2]||(o[2]=p=>t.onAddControl())},{default:e.withCtx(()=>[e.createTextVNode("添加条件")]),_:1})),e.createVNode(i,{visible:t.isVisible,"onUpdate:visible":o[4]||(o[4]=p=>t.isVisible=p),title:"选择组件",placement:"bottomRight",trigger:"click"},{content:e.withCtx(()=>{var p;return[e.createElementVNode("div",Pb,[jb,e.createElementVNode("div",Rb,[e.createVNode(c,{style:{flex:"1"},value:t.selectedIds,"onUpdate:value":o[3]||(o[3]=u=>t.selectedIds=u),"show-search":"",mode:"multiple",placeholder:"请选择","filter-option":t.filterOption,options:t.indicatorComponents},null,8,["value","filter-option","options"]),e.createVNode(s,{style:{"margin-left":"10px"},type:"primary",disabled:!((p=t.selectedIds)!=null&&p.length),onClick:t.handleConfirmSync},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1},8,["disabled","onClick"])])])]}),default:e.withCtx(()=>[Array.isArray(t.controlList)&&t.controlList.length>0?(e.openBlock(),e.createBlock(s,{key:0,type:"primary",ghost:"",style:{float:"right"}},{default:e.withCtx(()=>[e.createTextVNode(" 应用到其他组件 ")]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["visible"])]),e.createElementVNode("div",Ub,[e.createVNode(d,{class:"condition-list",list:t.controlList,level:0,conditionOptions:t.conditionOptions},null,8,["list","conditionOptions"])])])}const Gb=ae(Ib,[["render",zb],["__scopeId","data-v-5d63fdaa"]]),Hb=e.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},label:String},components:{CloseOutlined:Zt,AppstoreAddOutlined:un,ASelect:j.Select,ASelectOption:j.SelectOption,AInput:j.Input,APopover:j.Popover,ATabs:j.Tabs,ATabPane:j.TabPane,AInputNumber:j.InputNumber},setup(t,{emit:o}){const n=e.ref(!1),a=e.inject(ze),l=e.computed(()=>{var w;return(w=e.unref(a))==null?void 0:w.filter(x=>x.keyName!=="")}),r=[{label:"TEXT",value:"TEXT"},{label:"NUMBER",value:"NUMBER"},{label:"DATE",value:"DATE"}],s=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],c=[{label:"间隔值",value:"rangeValue"},{label:"开始时间",value:"startTime"},{label:"结束时间",value:"endTime"}],i=e.ref(ee.cloneDeep(t.item));e.watch(i,w=>{o("update",{...w,label:t.label},t.index)},{deep:!0});const d=e.computed(()=>{var x;let w=null;if(((x=e.unref(i))==null?void 0:x.dataType)==="component"){const S=e.unref(l).find(A=>{var v;return A.id===((v=e.unref(i))==null?void 0:v.id)});S&&(w=S)}return w}),p=e.computed(()=>{var x;let w=!1;return((x=e.unref(i))==null?void 0:x.variableType)==="DATE"&&(w=!0),w}),u=e.computed(()=>{let w=!1;return e.unref(d)&&(w=ue(e.unref(d).type,"range")),w}),m=e.computed(()=>{let w=!1;return e.unref(d)&&(ue(e.unref(d).type,"range")?["startTime","endTime"].includes(e.unref(i).dateTypeValue)&&(w=!0):ue(e.unref(d).type,"date")&&(w=!0)),w}),g=(w,x)=>{w&&(e.unref(i).keyName=x.keyName)},C=()=>{o("delete",t.index)},b=e.computed(()=>e.unref(p)?[{label:"年",value:"YYYY"},{label:"年月",value:"YYYY-MM"},{label:"年月日",value:"YYYY-MM-DD"},{label:"年月日时",value:"YYYY-MM-DD HH"},{label:"年月日时分",value:"YYYY-MM-DD HH:mm"},{label:"年月日时分秒",value:"YYYY-MM-DD HH:mm:ss"}]:[]),f=()=>{e.unref(i).id=null,e.unref(i).keyName="",e.unref(i).dateTypeValue=null,e.unref(i).variableValue=""},h=()=>{e.unref(i).format=null},y=(w,x)=>{var S;return(S=x==null?void 0:x.keyName)==null?void 0:S.toLowerCase().includes(w==null?void 0:w.toLowerCase())};return e.watch(m,w=>{w&&(e.unref(i).operateType||(e.unref(i).operateType="add"),e.unref(i).operateMode||(e.unref(i).operateMode="year"),e.unref(i).operateValue||(e.unref(i).operateValue=0),e.unref(i).activeOperateKey||(e.unref(i).activeOperateKey=1))},{immediate:!0}),{variableData:i,typeOption:r,dataTypeOption:s,usedComponentList:l,formatOptions:b,rangeTypeOptions:c,isShowFormat:p,isDateRangeComponent:u,isShowDateOperate:m,popoverVisible:n,idFilterOption:y,onChangeComponent:g,onDelete:C,onChangeDataType:f,onChangeVariableType:h,changeTab:w=>{e.unref(i).activeOperateKey=w,w===1?e.unref(i).operateValue=0:w===2&&(e.unref(i).operateValue="rangeValue")}}}}),bg="",Wb={class:"variable-item"},Yb=["title"],qb={class:"popover-content-wrap"},Kb={style:{display:"flex"}};function Xb(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("a-select"),i=e.resolveComponent("a-select-option"),d=e.resolveComponent("a-input-number"),p=e.resolveComponent("a-tab-pane"),u=e.resolveComponent("a-tabs"),m=e.resolveComponent("appstore-add-outlined"),g=e.resolveComponent("a-popover"),C=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",Wb,[t.variableData.randomKey?(e.openBlock(),e.createElementBlock("div",{key:0,class:"var-indicator",title:t.label},e.toDisplayString(t.label),9,Yb)):e.createCommentVNode("",!0),e.createVNode(s,{class:"field-name",value:t.variableData.variableName,"onUpdate:value":o[0]||(o[0]=b=>t.variableData.variableName=b),placeholder:"请输入变量名",disabled:!!t.variableData.randomKey},null,8,["value","disabled"]),e.createVNode(c,{class:"field-name",value:t.variableData.variableType,"onUpdate:value":o[1]||(o[1]=b=>t.variableData.variableType=b),options:t.typeOption,disabled:t.variableData.disabled,style:{"max-width":"120px"},placeholder:"请选择变量类型",onChange:t.onChangeVariableType},null,8,["value","options","disabled","onChange"]),e.createVNode(c,{class:"field-name",value:t.variableData.dataType,"onUpdate:value":o[2]||(o[2]=b=>t.variableData.dataType=b),options:t.dataTypeOption,style:{"max-width":"120px"},onChange:t.onChangeDataType},null,8,["value","options","onChange"]),t.variableData.dataType==="component"?(e.openBlock(),e.createBlock(c,{key:1,class:"field-name",value:t.variableData.id,"onUpdate:value":o[3]||(o[3]=b=>t.variableData.id=b),options:t.usedComponentList,fieldNames:{label:"keyName",value:"id"},"show-search":"","filter-option":t.idFilterOption,style:{"max-width":"180px"},placeholder:"请选择组件",onChange:t.onChangeComponent},null,8,["value","options","filter-option","onChange"])):(e.openBlock(),e.createBlock(s,{key:2,class:"field-name",style:{"max-width":"180px"},value:t.variableData.variableValue,"onUpdate:value":o[4]||(o[4]=b=>t.variableData.variableValue=b),placeholder:"请输入变量值"},null,8,["value"])),t.isDateRangeComponent?(e.openBlock(),e.createBlock(c,{key:3,class:"field-name",value:t.variableData.dateTypeValue,"onUpdate:value":o[5]||(o[5]=b=>t.variableData.dateTypeValue=b),options:t.rangeTypeOptions,placeholder:"请选择取值类型"},null,8,["value","options"])):e.createCommentVNode("",!0),e.createVNode(c,{class:"field-name",value:t.variableData.format,"onUpdate:value":o[6]||(o[6]=b=>t.variableData.format=b),options:t.formatOptions,placeholder:"请选择值格式"},null,8,["value","options"]),t.isShowDateOperate?(e.openBlock(),e.createBlock(g,{key:4,visible:t.popoverVisible,"onUpdate:visible":o[14]||(o[14]=b=>t.popoverVisible=b),trigger:"click",placement:"bottomRight"},{content:e.withCtx(()=>[e.createElementVNode("div",qb,[e.createVNode(u,{defaultActiveKey:t.variableData.activeOperateKey,onChange:t.changeTab},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(p,{tab:"日期偏移",key:1},{default:e.withCtx(()=>[e.createVNode(d,{class:"field-name",min:"0",value:t.variableData.operateValue,"onUpdate:value":o[9]||(o[9]=b=>t.variableData.operateValue=b),style:{"max-width":"180px",flex:"auto"}},{addonBefore:e.withCtx(()=>[e.createVNode(c,{value:t.variableData.operateType,"onUpdate:value":o[7]||(o[7]=b=>t.variableData.operateType=b),style:{width:"60px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"add"},{default:e.withCtx(()=>[e.createTextVNode("加")]),_:1}),e.createVNode(i,{value:"minus"},{default:e.withCtx(()=>[e.createTextVNode("减")]),_:1})]),_:1},8,["value"])]),addonAfter:e.withCtx(()=>[e.createVNode(c,{value:t.variableData.operateMode,"onUpdate:value":o[8]||(o[8]=b=>t.variableData.operateMode=b),style:{width:"60px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"year"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"month"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"week"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(i,{value:"day"},{default:e.withCtx(()=>[e.createTextVNode("日")]),_:1}),e.createVNode(i,{value:"hour"},{default:e.withCtx(()=>[e.createTextVNode("时")]),_:1}),e.createVNode(i,{value:"minute"},{default:e.withCtx(()=>[e.createTextVNode("分")]),_:1})]),_:1},8,["value"])]),_:1},8,["value"])]),_:1})),t.isDateRangeComponent?(e.openBlock(),e.createBlock(p,{tab:"自定义",key:2},{default:e.withCtx(()=>[e.createElementVNode("div",Kb,[e.createVNode(c,{value:t.variableData.operateValue,"onUpdate:value":o[10]||(o[10]=b=>t.variableData.operateValue=b),allowClear:"",style:{width:"120px","margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"rangeValue"},{default:e.withCtx(()=>[e.createTextVNode("范围差值")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.variableData.operateMode,"onUpdate:value":o[11]||(o[11]=b=>t.variableData.operateMode=b),style:{"margin-right":"10px"}},{default:e.withCtx(()=>[e.createVNode(i,{value:"year"},{default:e.withCtx(()=>[e.createTextVNode("年")]),_:1}),e.createVNode(i,{value:"month"},{default:e.withCtx(()=>[e.createTextVNode("月")]),_:1}),e.createVNode(i,{value:"week"},{default:e.withCtx(()=>[e.createTextVNode("周")]),_:1}),e.createVNode(i,{value:"day"},{default:e.withCtx(()=>[e.createTextVNode("日")]),_:1}),e.createVNode(i,{value:"hour"},{default:e.withCtx(()=>[e.createTextVNode("时")]),_:1}),e.createVNode(i,{value:"minute"},{default:e.withCtx(()=>[e.createTextVNode("分")]),_:1})]),_:1},8,["value"]),e.createVNode(c,{value:t.variableData.operateType,"onUpdate:value":o[12]||(o[12]=b=>t.variableData.operateType=b)},{default:e.withCtx(()=>[e.createVNode(i,{value:"minus"},{default:e.withCtx(()=>[e.createTextVNode("前")]),_:1}),e.createVNode(i,{value:"add"},{default:e.withCtx(()=>[e.createTextVNode("后")]),_:1})]),_:1},8,["value"])])]),_:1})):e.createCommentVNode("",!0)]),_:1},8,["defaultActiveKey","onChange"])])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:"calendar-wrap",onClick:o[13]||(o[13]=b=>{t.popoverVisible=!0})},[e.createVNode(m)])]),_:1},8,["visible"])):e.createCommentVNode("",!0),t.variableData.randomKey?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(C,{key:5,class:"delete-icon",onClick:t.onDelete},null,8,["onClick"]))])}const Qb=ae(Hb,[["render",Xb],["__scopeId","data-v-0d77395a"]]),Jb=e.defineComponent({name:"VariableGroup",components:{VariableItem:Qb},setup(){const t=e.inject(ge),o=e.inject(Ae),n=e.inject(ze),a=e.computed(()=>{var d;return((d=e.unref(t))==null?void 0:d.variableList)||[]}),l=i=>{o({...e.unref(t),variableConditions:ro(i,n),variableList:i})};return{variableList:a,onAddVariable:()=>{const i=ee.cloneDeep(e.unref(a));i.push({keyValue:ye(),variableType:"TEXT",dataType:"",id:null,dateTypeValue:null,format:null,operateType:"add",operateMode:"year",operateValue:0,activeOperateKey:1}),l(i)},onUpdateItem:(i,d)=>{if(d>=0){const p=ee.cloneDeep(e.unref(a));p[d]=i,l(p)}},onDeleteItem:i=>{if(i>=0){const d=ee.cloneDeep(e.unref(a));d.splice(i,1),l(d)}}}}}),yg="",Zb={class:"variable-group"},ey={class:"variable-group-header"},ty={class:"variable-group-content"};function oy(t,o,n,a,l,r){const s=e.resolveComponent("a-button"),c=e.resolveComponent("variable-item");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Zb,[e.createElementVNode("div",ey,[e.createVNode(s,{onClick:t.onAddVariable},{default:e.withCtx(()=>[e.createTextVNode("添加变量")]),_:1},8,["onClick"])])]),e.createElementVNode("div",ty,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.variableList,(i,d)=>(e.openBlock(),e.createBlock(c,{key:i.keyValue,item:i,index:d,label:i.label,onUpdate:t.onUpdateItem,onDelete:t.onDeleteItem},null,8,["item","index","label","onUpdate","onDelete"]))),128))])],64)}const ny=ae(Jb,[["render",oy],["__scopeId","data-v-fd60cd09"]]),Yr=(t={})=>{const o=(r={})=>{const{label:s,name:c,location:i,show:d,indexCode:p,typeGuid:u}=r;return{label:s,columnName:c,location:i,show:d,calcType:"COLUMN",hrpIndexCode:p,typeGuid:u}},n=r=>{Ye(r,"dataType")&&(r.fieldType==="DATE"&&(r.label=r.fieldName,r.dataType==="component"&&(r.fieldValue="${"+r.fieldValue+"}")),delete r.dataType),Ye(r,"activeKey")&&delete r.activeKey,Ye(r,"radioValue")&&delete r.radioValue},a=r=>{const s=[];return r!=null&&r.length&&r.forEach(c=>{if(c.join&&c.conditions){const i=!c.conditions.some(d=>d.join&&d.conditions);c.conditions.forEach((d,p)=>{n(d),i?p<c.conditions.length-1?s.push({join:c.join,...d}):s.push(d):d.join&&d.conditions?s.push({conditions:a([d]),join:c.join}):s.push(d)})}else n(c),s.push(c)}),s},l=(r={})=>{const{label:s,name:c,location:i,show:d,indexCode:p,calcType:u="COLUMN",builtInFormula:m,builtInValueSource:g,builtInCalcWay:C,formula:b,conditions:f,aggregate:h}=r;let y;return f&&(y=a(f)),{label:s.trim(),columnName:c,location:i,show:d,calcType:u,hrpIndexCode:p,aggregate:h,builtInFormula:m,builtInValueSource:g,builtInCalcWay:C,formula:b,conditions:y}};return async()=>{const{graphicConfig:r,type:s,request:c,isGroupTable:i}=t;let{source:d,dataViewId:p,plugin:u="1",layer:m,chartType:g,classificationList:C=[],seriesList:b=[],leftAxisList:f=[],rightAxisList:h=[],queryColumnList:y=[],indicators:N=[],dataSourceId:w,idxLibMode:x,preview:S=!1,sqlConditions:A=[],rowHeaderList:v=[]}=r||{};m==null&&(ue(s,["table","card"])?m="1":m="2");let D;if(Array.isArray(C)&&C.length>0){const _=C.length;for(let B=0;B<_;B++){const E=C[B]||{},{label:P="",name:I="",show:O=!1,sort:V,customGroup:k,conditions:L,typeGuid:M}=E;if(O||_===1){D={label:P.trim(),columnName:I,show:O,sort:V,customGroup:k,typeGuid:M,conditions:a(L)};break}}}let T;if(Array.isArray(b)&&b.length>0){const _=b.length;for(let B=0;B<_;B++){const E=b[B]||{},{label:P="",name:I="",show:O=!1,sort:V,customGroup:k,conditions:L,typeGuid:M}=E;if(O||_===1){T={label:P.trim(),columnName:I,show:O,sort:V,customGroup:k,conditions:a(L),typeGuid:M};break}}}const R=[];if(Array.isArray(v)&&v.length>0){const _=v.length;for(let B=0;B<_;B++){const E=v[B]||{},{label:P="",name:I="",show:O=!1,sort:V,customGroup:k,conditions:L,typeGuid:M}=E;R.push({typeGuid:M,label:P.trim(),columnName:I,show:O,sort:V,customGroup:k,conditions:a(L)})}}const $=[];y==null||y.forEach(_=>{$.push(o(_))});const F=[];if(f==null||f.forEach(_=>{_.location="LEFT",F.push(l(_))}),h==null||h.forEach(_=>{_.location="RIGHT",F.push(l(_))}),N==null||N.forEach(_=>{_.location="LEFT",F.push(l(_))}),i||s==="card"){if(g="grouptable",F.length===0||R.length===0)return}else{if(m==="1"&&$.length===0)return;if(m==="2"&&F.length===0)return}try{return await c.post(`${Se}/diagram`,{source:d,dataViewId:p,plugin:u,layer:m,chartType:g,classification:D,series:T,indicatorList:F,queryColumns:$,pageFlag:!0,sqlConditions:A,rowHeaders:R,dataSourceId:w,idxLibMode:x,preview:S})}catch(_){console.error(_)}}},ay=e.defineComponent({name:"ChartGraph",components:{ASpin:j.Spin},props:{graphicConfig:{type:Object,default:()=>{}},chartsOptions:{type:Object,default:()=>{}}},setup(t,{expose:o}){const n=e.computed(()=>t.chartsOptions?e.unref(t.chartsOptions):i),a=e.computed(()=>t.graphicConfig?e.unref(t.graphicConfig):c),l=e.inject(Be);let r=null;const s=e.inject(Ve)||"",c=e.inject(ge)||{},i=e.inject(wo)||{},d=e.ref(null),p=e.ref(null),u=e.ref(),m=e.ref(!1),g=e.ref(!1),C=e.computed(()=>g.value?ni:12),b=e.ref({}),f=e.ref(),h=e.computed(()=>{const D=e.unref(n.value);return(D==null?void 0:D.type)==="customGraph"?f.value:ed(D,e.unref(b),C.value)}),y=(D=[],T,R=!1)=>{const $=R?T:null;b.value=Yc(D,$)},N=(D=[],T)=>{b.value=qc(D,T)},w=async()=>{var D,T,R;try{const $=Yr({graphicConfig:e.unref(a.value),type:(D=e.unref(n.value))==null?void 0:D.type,request:l,indicatorToken:s});m.value=!0;const F=await $(),{columns:_=[],rows:B=[]}=((T=F==null?void 0:F.data)==null?void 0:T.data)??{};if(((R=e.unref(n.value))==null?void 0:R.type)==="pie"){let E=[];if(_.length>0){const P=_[0],I=_[1];E=B.map(O=>({name:O[P],value:O[I]}))}N(E)}else{let E;_.length>0&&(E={name:_[0],types:_.slice(1).map(P=>({label:P,value:P}))}),y(B,E,!0)}}catch($){console.error($)}finally{m.value=!1}},x={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},S=()=>{e.unref(b).dataset.length===0?u.value.setOption(x,!0):u.value.setOption(h.value,!0)},A=()=>{e.unref(n.value).type!=="customGraph"&&w()},v=()=>{var D;(D=u.value)==null||D.resize()};return e.watch(h,()=>{S()},{deep:!0}),e.watch(()=>e.unref(n.value).optionCode,D=>{try{const T=eval;f.value=T(D)}catch(T){console.error(T)}},{immediate:!0}),e.onMounted(()=>{p.value&&(r=new ResizeObserver(v),r.observe(p.value)),u.value=oi.init(d.value)}),e.onBeforeUnmount(()=>{u.value.dispose(),r&&(r.disconnect(),r=null)}),o({refreshData:A}),{echartRef:d,loading:m}}}),gg="",ly={class:"ecan-chart-graph",ref:"chartWrapRef"},ry={style:{width:"100%",height:"100%"},ref:"echartRef"};function iy(t,o,n,a,l,r){const s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",ly,[e.createVNode(s,{spinning:t.loading,wrapperClassName:"chart-spin",tip:"数据加载中..."},{default:e.withCtx(()=>[e.createElementVNode("div",ry,null,512)]),_:1},8,["spinning"])],512)}const qr=ae(ay,[["render",iy],["__scopeId","data-v-845f7ab1"]]),sy=e.defineComponent({name:"TableGraph",components:{ATable:j.Table},props:{graphicConfig:{type:Object,default:()=>{}},type:{type:String},pagination:{type:Object,default:()=>({})}},setup(t){const o=e.inject(ve),n=e.ref([]),a=e.ref([]),l=e.inject(Be),r=e.inject(Ve)||"",s=async()=>{var c;try{const d=await Yr({graphicConfig:t.graphicConfig,type:t.type,request:l,indicatorToken:r})(),{columns:p=[],rows:u=[]}=((c=d==null?void 0:d.data)==null?void 0:c.data)??{},m=e.unref(o).columnsConfigMap;a.value=p.map(g=>({title:g,dataIndex:g,label:g,...m[g]})),n.value=u}catch(i){console.error(i)}};return e.watch([()=>t.graphicConfig,()=>e.unref(o).columnsConfigMap],()=>{s()},{deep:!0,immediate:!0}),{tableData:n,tableColumns:a,handleFormat:nd,columnsConfigMap:e.unref(o).columnsConfigMap}}}),cy={key:0};function dy(t,o,n,a,l,r){const s=e.resolveComponent("a-table");return e.openBlock(),e.createBlock(s,{style:{width:"100%"},scroll:{y:280},columns:t.tableColumns,"data-source":t.tableData,size:"small",pagination:t.pagination},{bodyCell:e.withCtx(({column:c,record:i})=>[c.retentiondigit!==void 0?(e.openBlock(),e.createElementBlock("span",cy,e.toDisplayString(t.handleFormat(i,c)),1)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source","pagination"])}const py=ae(sy,[["render",dy]]),uy=e.defineComponent({name:"DataConfig",components:{DataGroup:bf,StyleGroup:xb,ChartGraph:qr,ATabs:j.Tabs,ATabPane:j.TabPane,ControlGroup:Gb,VariableGroup:ny,AButton:j.Button,ReloadOutlined:cc,TableGraph:py},setup(t,{expose:o}){var P;const n=e.ref(),a=e.ref("1"),l=e.ref([0,1,2]),r=e.ref(),s=e.ref(),c=e.inject(ve),i=e.inject(ua),d=e.inject(ge),p=e.inject(ze),u=e.inject(ga),m=e.inject(Qo),g=e.inject(Ca),C=["text","proportion","select","checkbox","radio","radar","circulate"],b=e.computed(()=>{const I=ee.cloneDeep(e.unref(c));h(I);const O=ee.pick(I,ee.without(Object.keys(I),"position","top","left","width","height"));ue(I.type,C)?(O.height=I.height,O.width=I.width):O.height="290px";const V=ee.cloneDeep(e.unref(d));return V.pageMode="design",V.componentList=p,V.preview=!0,V.pageConfig=u,ue(I.type,"pivottable")&&(e.unref(n)&&(O.height=e.unref(n).$el.clientHeight-20+"px",O.width=e.unref(n).$el.clientWidth+"px"),O.fullMode=!0,V.preview=!1,delete V.pageMode),{...O,graphicConfig:V,toolboxShow:!1,sourceLeft:I.left,sourceTop:I.top}}),f=e.computed(()=>{var L,M;const{token:I,context:O}=e.unref(c),V=(((L=e.unref(s))==null?void 0:L.clientWidth)||0)+"px",k=(((M=e.unref(s))==null?void 0:M.clientHeight)||0)+"px";return{id:e.unref(c).componentId,name:e.unref(c).name,keyName:e.unref(c).keyName,type:"pivotTable",width:V,height:k,graphicConfig:e.unref(c).graphicConfig,dimensionList:e.unref(c).dimensionList||[],fullMode:!0,globalModel:new Map,indicatorUrl:"/api",indicatorToken:I,context:O}});function h(I){var O,V,k,L;["#ffffff","#fff"].includes((O=I==null?void 0:I.color)==null?void 0:O.toLowerCase())&&(I.color="#000"),["#ffffff","#fff"].includes((V=I==null?void 0:I.variableColor)==null?void 0:V.toLowerCase())&&(I.variableColor="#000"),["#ffffff","#fff"].includes((k=I==null?void 0:I.increaseColor)==null?void 0:k.toLowerCase())&&(I.increaseColor="#000"),["#ffffff","#fff"].includes((L=I==null?void 0:I.declineColor)==null?void 0:L.toLowerCase())&&(I.declineColor="#000")}const y=e.computed(()=>{let I=!0;return ue(e.unref(b).type,C)&&(I=!1),I}),N=e.computed(()=>{var I;return(I=e.unref(b))==null?void 0:I.type}),w=e.computed(()=>{var I;return!!((I=e.unref(b))!=null&&I.isGroupTable)}),x=I=>{const O=I==="1";O&&N.value==="table"&&$(),window.changeShowTable&&window.changeShowTable(O),I==="3"&&T()},S=e.ref([]),A=e.inject(Be),v=e.unref(e.inject(Ve)),D=(P=window==null?void 0:window.config)==null?void 0:P.pageId;function T(){var z;const{leftAxisList:I=[],rightAxisList:O=[],queryColumnList:V=[],indicators:k=[],dataSourceId:L=""}=e.unref(d),M=[...I,...O,...V,...k],U={};for(const q of M){const{id:X="",indexCode:J=""}=q;X&&!Ye(q,"calcType")&&!U[X]&&(U[X]=J)}if((z=Object.keys(U))!=null&&z.length){const q=[];for(const X in U)q.push(new Promise((J,oe)=>{A.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:D,indexGuid:X,indexCode:U[X],dataSourceId:L},{headers:{Authentication:v,operateContext:"ygt"}}).then(le=>{var we;const{success:Ce,data:ie=[]}=le.data;Ce&&((we=ie==null?void 0:ie.dataViewColumns)!=null&&we.length)?J(ie.dataViewColumns):oe(ie)}).catch(le=>{oe(le)})}));Promise.all(q).then(X=>{if(X!=null&&X.length){const J=X.reduce((oe,le)=>oe.filter(Ce=>le.find(ie=>ie.typeGuid===Ce.typeGuid)));R(J.filter(oe=>oe.typeGuid))}})}}function R(I){var Ce;const{classificationList:O=[],seriesList:V=[],leftAxisList:k=[],rightAxisList:L=[],indicators:M=[],rowHeaderList:U=[],queryColumnList:z=[]}=e.unref(d),q=ee.cloneDeep([...O,...V,...k,...L,...M,...U,...z]);if(q!=null&&q.length)for(const ie of q)ie.id=ie.name;const X=[{label:"日期",name:"日期",id:"the_date",genericType:"DATE",typeGuid:"the_date",indexCode:null},{label:"HRP单位编号",name:"HRP单位编号",id:"hbdwbh",genericType:"TEXT",typeGuid:"hbdwbh",indexCode:null},{label:"HRP单位名称",name:"HRP单位名称",id:"hbdwbh_name",genericType:"TEXT",typeGuid:"hbdwbh_name",indexCode:null},...I.map(ie=>({...ie,id:ie.name,label:ie.title||ie.label})),...q];if(((Ce=e.unref(c))==null?void 0:Ce.type)==="ecanSelect"){const{selectFieldOptions:ie=[]}=e.unref(d);if(X.unshift({label:"上级编码",name:"上级编码",id:"parentCode",genericType:"TEXT"}),ie!=null&&ie.length)for(const we of ie)X.unshift({label:we.label,name:we.value,id:we.value,genericType:"TEXT"})}const J=new Map,oe=X.length;for(let ie=0;ie<oe;ie++){const we=X[ie],{id:at}=we||{};J.set(at,we)}const le=[...J];S.value=le.map(([ie,we])=>we)}const $=()=>{var O;let I;i&&N.value==="table"?I=window.updateConfig:I=(O=e.unref(r))==null?void 0:O.refreshData,typeof I=="function"&&I()},F=e.inject(Ae),_=()=>{var I;F({variableConditions:ro(((I=e.unref(d))==null?void 0:I.variableList)||[],p)})};e.provide(fa,$),e.watch(d,()=>{$()},{deep:!0,flush:"post"}),e.onMounted(()=>{m.value&&$()});const B=()=>e.unref(r).getSaveData(),E=({type:I,data:O})=>{if(I==="10"){const{dimensions:V,indicators:k}=ee.cloneDeep(O),L=[];if(V){for(const M of V)M.showTitle&&(M.label=M.showTitle),L.push({key:M.name,label:M.showTitle,width:null,position:M.positionType||"rows"});for(const M of k)M.showTitle&&(M.label=M.showTitle)}F({dimensionList:L,queryColumnList:V,indicators:k}),b.value.dimensionList=L}};return o({getSaveData:B}),{isShowStyleConfig:i,activeKey:a,activePanel:l,componentRef:r,pivotTableWrapRef:s,type:N,isGroupTable:w,isPivotTable:m,isIframeMode:g,component:b,fullWidth:y,renderUsedComponents:p,conditionOptions:S,tableProps:f,dataConfigPaneRef:n,refreshData:$,refreshAction:_,onChange:x,onPivotTableChange:E}}}),Cg="",fy={key:0,class:"ecan-pivot-table",ref:"pivotTableWrapRef"},my={key:0,id:"table-wrap",class:"chart-component",ref:"tableWrapRef",style:{width:"100%",height:"290px"}};function hy(t,o,n,a,l,r){const s=e.resolveComponent("pivot-table"),c=e.resolveComponent("data-group"),i=e.resolveComponent("a-tab-pane"),d=e.resolveComponent("style-group"),p=e.resolveComponent("control-group"),u=e.resolveComponent("variable-group"),m=e.resolveComponent("reload-outlined"),g=e.resolveComponent("a-button"),C=e.resolveComponent("a-tabs"),b=e.resolveComponent("table-graph"),f=e.resolveComponent("chart-graph");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["data-config",t.isPivotTable?"pivot-table-wrap":""])},[e.createVNode(C,{activeKey:t.activeKey,"onUpdate:activeKey":o[0]||(o[0]=h=>t.activeKey=h),onChange:t.onChange},{rightExtra:e.withCtx(()=>[e.createVNode(g,{onClick:t.refreshAction},{icon:e.withCtx(()=>[e.createVNode(m)]),default:e.withCtx(()=>[e.createTextVNode(" 刷新 ")]),_:1},8,["onClick"])]),default:e.withCtx(()=>[e.createVNode(i,{key:"1",tab:"数据配置",ref:"dataConfigPaneRef"},{default:e.withCtx(()=>[t.isPivotTable&&t.isIframeMode?(e.openBlock(),e.createElementBlock("div",fy,[e.createVNode(s,e.mergeProps({ref:"componentRef"},t.tableProps),null,16)],512)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.isPivotTable?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(c,{key:0,ref:"dataGroupRef"},null,512)),t.isShowStyleConfig?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.type),e.mergeProps({key:1,class:["chart-component",t.fullWidth?"full-width":""]},t.component,{ref:"componentRef",onTableChange:t.onPivotTableChange}),null,16,["class","onTableChange"]))],64))]),_:1},512),t.isShowStyleConfig?(e.openBlock(),e.createBlock(i,{key:"2",tab:"样式配置","force-render":""},{default:e.withCtx(()=>[e.createVNode(d,{componentType:t.type,isGroupTable:t.isGroupTable},null,8,["componentType","isGroupTable"])]),_:1})):e.createCommentVNode("",!0),(!t.isIframeMode||t.isPivotTable)&&t.renderUsedComponents?(e.openBlock(),e.createBlock(i,{key:"3",tab:"全局过滤","force-render":""},{default:e.withCtx(()=>[e.createVNode(p,{ref:"controlGroup",conditionOptions:t.conditionOptions},null,8,["conditionOptions"])]),_:1})):e.createCommentVNode("",!0),t.isIframeMode?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i,{key:"4",tab:"全局变量","force-render":""},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}))]),_:1},8,["activeKey","onChange"]),t.isShowStyleConfig&&!t.isPivotTable?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.type==="table"&&t.activeKey==="1"?(e.openBlock(),e.createElementBlock("div",my,null,512)):t.type==="card"?e.withDirectives((e.openBlock(),e.createBlock(b,e.mergeProps({key:1,class:"chart-component"},t.component),null,16)),[[e.vShow,t.activeKey==="1"]]):e.withDirectives((e.openBlock(),e.createBlock(f,{key:2,class:e.normalizeClass(["chart-component",t.fullWidth?"full-width":""]),ref:"componentRef",style:{width:"100%",height:"290px"}},null,8,["class"])),[[e.vShow,t.activeKey==="1"]])],64)):e.createCommentVNode("",!0)],2)}const by=ae(uy,[["render",hy],["__scopeId","data-v-6e6b2139"]]),yy=e.defineComponent({name:"IndicatorLibrary",components:{DataList:Id,DataConfig:by},props:{isShowStyleConfig:{type:Boolean,default:!1},sourceType:{type:String,default:""},indicatorToken:{type:String,default:""},selectedComponent:{type:Object,default:()=>{}},request:{default:null},renderUsedComponentList:{type:Array,default:()=>[]},mapAttributeProps:{type:Object,default:()=>({startTime:{label:"开始时间值",component:"time-pick"},endTime:{label:"结束时间值",component:"time-pick"}})},pageConfig:{type:Object,default:()=>{}},isIframeMode:{type:Boolean,default:!1}},setup(t,{expose:o,emit:n}){const a=e.ref(),l=e.ref(!1),r=e.computed(()=>t.sourceType),s=e.computed(()=>t.indicatorToken||""),c=e.computed(()=>t.selectedComponent),i=e.computed(()=>t.renderUsedComponentList),d=e.computed(()=>{var T;return((T=e.unref(c))==null?void 0:T.tableColumns)||[]}),p=e.computed(()=>t.isShowStyleConfig),u=e.computed(()=>{var T,R;return(R=(T=e.unref(c))==null?void 0:T.type)==null?void 0:R.includes("PivotTable")});let m=e.unref(c).graphicConfig?ee.cloneDeep(e.unref(c).graphicConfig):e.ref({});m=e.ref(m);let g=e.unref(c).chartsOptions?ee.cloneDeep(e.unref(c).chartsOptions):e.ref(ee.cloneDeep(Jo.line));g=e.ref(g);let C=e.unref(c).tableOptions?ee.cloneDeep(e.unref(c).tableOptions):e.ref(ee.cloneDeep(ai));C=e.ref(C);const b=e.ref([]),f=T=>{b.value=T},h=T=>{m.value={...e.unref(m),...e.unref(T)}},y=(T,R=!0)=>{R?g.value={...e.unref(g),...e.unref(T)}:g.value={...e.unref(T)}},N=T=>{C.value={...e.unref(C),...e.unref(T)}},w=()=>b,x=()=>{l.value=!0,e.unref(c).graphicConfig&&(m.value=ee.cloneDeep(e.unref(c).graphicConfig)),e.unref(c).chartsOptions&&(g.value=ee.cloneDeep(e.unref(c).chartsOptions||Jo.line)),e.nextTick(()=>{l.value=!1})},S=()=>({graphicConfig:e.unref(m),chartsOptions:e.unref(g),tableOptions:e.unref(C),tableColumns:e.unref(d),columnsConfigMap:e.unref(c).columnsConfigMap}),A=()=>({...e.unref(a).getSaveData(),graphicConfig:e.unref(m)});window.getIndicatorData=S,window.getPivotGraphicData=A,t.request&&e.provide(Be,t.request),e.provide(pa,{setDataList:f,getDataList:w});const v=T=>{n("updateUsedComponent",T)},D=(T,R)=>{n("updateComponentsConfig",T,{controlList:R})};return e.provide(Qo,u),e.provide(Ca,t.isIframeMode),e.provide(ve,c),e.provide(ge,m),e.provide(wo,g),e.provide(ma,C),e.provide(Kt,r),e.provide(ua,p),e.provide(Ve,s),e.provide(Ae,h),e.provide(Ko,y),e.provide(Xo,N),e.provide(ze,i),e.provide(xo,v),e.provide(ba,D),e.provide(ya,t.mapAttributeProps),e.provide(ga,t.pageConfig),o({graphicConfig:m,chartsOptions:g,updateIndicatorData:x}),{isUpdate:l,isPivotTable:u,dataConfigRef:a}}}),wg="",gy={key:0,class:"config-modal"},Cy={key:0,class:"config-modal-left"};function wy(t,o,n,a,l,r){const s=e.resolveComponent("data-list"),c=e.resolveComponent("data-config");return t.isUpdate?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",gy,[t.isPivotTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Cy,[e.createVNode(s)])),e.createElementVNode("div",{class:e.normalizeClass(["config-modal-right",t.isPivotTable?"full":""])},[e.createVNode(c,{ref:"dataConfigRef"},null,512)],2)]))}const Kr=da(ae(yy,[["render",wy],["__scopeId","data-v-e77110fb"]])),Xr=da(qr),Qr=Object.freeze(Object.defineProperty({__proto__:null,EcanChartGraph:Xr,EcanIndicatorLibrary:Kr},Symbol.toStringTag,{value:"Module"})),ky={install:(t,o)=>{const{request:n}=o;t.provide("$request",n),Object.keys(Qr).forEach(a=>{const l=Qr[a];l.install&&t.use(l)})}};he.EcanChartGraph=Xr,he.EcanIndicatorLibrary=Kr,he.default=ky,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
75
75
  //# sourceMappingURL=index.umd.js.map