@ecan-bi/indicator-library 1.1.6 → 1.1.8
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/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/index.es.js +1142 -1173
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +12 -12
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/indicator/chart-graph/index.d.ts +2 -26
- package/types/indicator/indicator-library/index.d.ts +2 -106
- package/types/utils/withInstall.d.ts +0 -5
package/dist/index.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.1.
|
|
2
|
-
(function(fe,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):(fe=typeof globalThis<"u"?globalThis:fe||self,e(fe["@ecan-bi/indicator-library"]={},fe.Vue,fe.LodashEs,fe.AntDesignVue,fe.Draggable,fe.Dayjs,null,null,null,fe.MonacoEditor,null,fe.Echarts))})(this,function(fe,e,Z,j,Bt,me,Ay,Ey,Oy,ti,By,oi){var ei;"use strict";function ni(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 ai=ni(oi),ua=(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=((ei=window==null?void 0:window.config)==null?void 0:ei.indicatorURL)||"",Ve="INDICATOR_TOKEN",fa="DATA_LIST",Le="SELECTED_COMPONENT",be="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",ma="SHOW_STYLE_CONFIG",ha="REFRESH_DATA",xo="CHARTS_OPTIONS",ba="TABLE_OPTIONS",li=18,Qo="UPDATE_CHARTS_OPTIONS",Jo="UPDATE_TABLE_OPTIONS",Qt="SOURCE_TYPE",_o="CHANGE_CONDITION",ya="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",So="UPDATE_USED_COMPONENT",ga="UPDATE_COMPONENTS_CONFIG",Ca="MAP_ATTRIBUTE_PROPS",wa="PAGE_CONFIG",Zo="IS_PIVOT_TABLE",ka="IS_IFRAME_MODE",en={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%"}},ri={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},ii=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Bt},setup(){var N;const t=e.inject(Be),o=e.unref(e.inject(Ve)),n=e.inject(be),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 _,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&&((_=s.value)==null||_.push(i),s.value=(S=s.value)==null?void 0:S.concat(p([A.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],_)=>{const S=[];return w.forEach(A=>{S.push({id:A.id,pId:_??A.parentId,value:A.id,title:A.name,isLeaf:A.leaf||!1,nature:A.nature,selectable:A.leaf||!1})}),S},u=async(w,_)=>{var I;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=(I=e.unref(s))==null?void 0:I.concat(p(A.data)),_&&e.unref(l)&&await d())},m=w=>{f(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:g}=e.inject(fa,{setDataList:w=>w}),C=e.ref(!1),b=e.ref([]),f=async w=>{if(w){b.value=[],C.value=!0;try{const _=await t.post(`${Se}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:S,data:A={}}=_.data;if(C.value=!1,S){const{rows:I=[]}=A;I==null||I.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,_)=>{const S=_[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}}}),Dy="",ne=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},si={class:"data-view-list"},ci={class:"columns"},di={class:"column-item"},pi={class:"column-item-name"};function ui(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",si,[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",ci,[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",di,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(d.genericType))+"】 ",1),e.createElementVNode("span",pi,e.toDisplayString(d.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const fi=ne(ii,[["render",ui],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){mi(t)&&(t="100%");var n=hi(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 mi(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function hi(t){return typeof t=="string"&&t.indexOf("%")!==-1}function bi(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function To(t){return t<=1?"".concat(Number(t)*100,"%"):t}function tn(t){return t.length===1?"0"+t:String(t)}function yi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function on(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 gi(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=on(c,s,t+1/3),l=on(c,s,t),r=on(c,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function Ci(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 wi(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 ki(t,o,n,a){var l=[tn(Math.round(t).toString(16)),tn(Math.round(o).toString(16)),tn(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 xa(t){return Fe(t)/255}function Fe(t){return parseInt(t,16)}var _a={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 Jt(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=Si(t)),typeof t=="object"&&(et(t.r)&&et(t.g)&&et(t.b)?(o=yi(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=To(t.s),l=To(t.v),o=wi(t.h,a,l),s=!0,c="hsv"):et(t.h)&&et(t.s)&&et(t.l)&&(a=To(t.s),r=To(t.l),o=gi(t.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=bi(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 xi="[-\\+]?\\d+%?",_i="[-\\+]?\\d*\\.\\d+%?",st="(?:".concat(_i,")|(?:").concat(xi,")"),nn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),an="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+an),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+an),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+an),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 Si(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(_a[t])t=_a[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:Fe(n[1]),g:Fe(n[2]),b:Fe(n[3]),a:xa(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Fe(n[1]),g:Fe(n[2]),b:Fe(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Fe(n[1]+n[1]),g:Fe(n[2]+n[2]),b:Fe(n[3]+n[3]),a:xa(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Fe(n[1]+n[1]),g:Fe(n[2]+n[2]),b:Fe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function et(t){return!!Ge.CSS_UNIT.exec(String(t))}var No=2,Sa=.16,Ti=.05,Ni=.05,Ai=.15,Ta=5,Na=4,Ei=[{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 Aa(t){var o=t.r,n=t.g,a=t.b,l=Ci(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function Ao(t){var o=t.r,n=t.g,a=t.b;return"#".concat(ki(o,n,a,!1))}function Oi(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 Ea(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-No*o:Math.round(t.h)+No*o:a=n?Math.round(t.h)+No*o:Math.round(t.h)-No*o,a<0?a+=360:a>=360&&(a-=360),a}function Oa(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-Sa*o:o===Na?a=t.s+Sa:a=t.s+Ti*o,a>1&&(a=1),n&&o===Ta&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Ba(t,o,n){var a;return n?a=t.v+Ni*o:a=t.v-Ai*o,a>1&&(a=1),Number(a.toFixed(2))}function ln(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Jt(t),l=Ta;l>0;l-=1){var r=Aa(a),s=Ao(Jt({h:Ea(r,l,!0),s:Oa(r,l,!0),v:Ba(r,l,!0)}));n.push(s)}n.push(Ao(a));for(var c=1;c<=Na;c+=1){var i=Aa(a),d=Ao(Jt({h:Ea(i,c),s:Oa(i,c),v:Ba(i,c)}));n.push(d)}return o.theme==="dark"?Ei.map(function(p){var u=p.index,m=p.opacity,g=Ao(Oi(Jt(o.backgroundColor||"#141414"),Jt(n[u]),m*100));return g}):n}var rn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},sn={},cn={};Object.keys(rn).forEach(function(t){sn[t]=ln(rn[t]),sn[t].primary=sn[t][5],cn[t]=ln(rn[t],{theme:"dark",backgroundColor:"#141414"}),cn[t].primary=cn[t][5]});var Va=[],Zt=[],Bi="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Vi(){var t=document.createElement("style");return t.setAttribute("type","text/css"),t}function Li(t,o){if(o=o||{},t===void 0)throw new Error(Bi);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Va.indexOf(a);l===-1&&(l=Va.push(a)-1,Zt[l]={});var r;return Zt[l]!==void 0&&Zt[l][n]!==void 0?r=Zt[l][n]:(r=Zt[l][n]=Vi(),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 La(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){Fi(t,l,n[l])})}return t}function Fi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function $i(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Ii(t,o){$i(t,"[@ant-design/icons-vue] ".concat(o))}function Fa(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function dn(t,o,n){return n?e.h(t.tag,La({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,La({key:o},t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function $a(t){return ln(t)[0]}function Ia(t){return t?Array.isArray(t)?t:[t]:[]}var Di=`
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.1.8 */
|
|
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,Z,j,Bt,fe,wy,ky,xy,Qr,Sy,Jr){var Xr;"use strict";function Zr(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 ei=Zr(Jr),Be="$request",_e=((Xr=window==null?void 0:window.config)==null?void 0:Xr.indicatorURL)||"",Ve="INDICATOR_TOKEN",ua="DATA_LIST",Le="SELECTED_COMPONENT",be="GRAPHIC_CONFIG",Ae="UPDATE_GRAPHIC_CONFIG",fa="SHOW_STYLE_CONFIG",ma="REFRESH_DATA",xo="CHARTS_OPTIONS",ha="TABLE_OPTIONS",ti=18,Qo="UPDATE_CHARTS_OPTIONS",Jo="UPDATE_TABLE_OPTIONS",Qt="SOURCE_TYPE",So="CHANGE_CONDITION",ba="DATA_VIEW_COLUMNS",ze="RENDER_USED_COMPONENTS",_o="UPDATE_USED_COMPONENT",ya="UPDATE_COMPONENTS_CONFIG",ga="MAP_ATTRIBUTE_PROPS",Ca="PAGE_CONFIG",Zo="IS_PIVOT_TABLE",wa="IS_IFRAME_MODE",en={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%"}},oi={name:"表格",type:"table",size:"medium",allOverflow:"title",hoverRow:!0,hoverColor:"#f5f7fa",headerCellStyleMethod:"",rowStyleMethod:"",boderList:[],columnDropEnable:!0,showTotalBool:!1,totalName:"",expandAll:!1},ni=e.defineComponent({name:"DataViewList",components:{ASpin:j.Spin,ATreeSelect:j.TreeSelect,Draggable:Bt},setup(){var N;const t=e.inject(Be),o=e.unref(e.inject(Ve)),n=e.inject(be),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 S,_;const w=l.value;r.value=!0;try{const{data:A}=await t.post(`${_e}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}});r.value=!1,A.success&&((S=s.value)==null||S.push(i),s.value=(_=s.value)==null?void 0:_.concat(p([A.data.rows[0]],"YXJG")))}catch{r.value=!1}},p=(w=[],S)=>{const _=[];return w.forEach(A=>{_.push({id:A.id,pId:S??A.parentId,value:A.id,title:A.name,isLeaf:A.leaf||!1,nature:A.nature,selectable:A.leaf||!1})}),_},u=async(w,S)=>{var I;let _=0;if(w){const{value:D}=w.dataRef;_=D}const{data:A}=await t.post(`${_e}/dataview/treetable`,{pageFlag:!0,pageId:c,parentId:_},{headers:{Authentication:o,operateContext:"ygt"}});A.success&&(s.value=(I=e.unref(s))==null?void 0:I.concat(p(A.data)),S&&e.unref(l)&&await d())},m=w=>{f(w),a({dataViewId:w,classificationList:[],seriesList:[],leftAxisList:[],rightAxisList:[],indicators:[],controlList:[]})},{setDataList:g}=e.inject(ua,{setDataList:w=>w}),C=e.ref(!1),b=e.ref([]),f=async w=>{if(w){b.value=[],C.value=!0;try{const S=await t.post(`${_e}/diagram/sourceList`,{source:"SQL_VIEW",dataViewId:w,pageId:c,pageFlag:!0},{headers:{Authentication:o,operateContext:"ygt"}}),{success:_,data:A={}}=S.data;if(C.value=!1,_){const{rows:I=[]}=A;I==null||I.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,S)=>{const _=S[w.oldIndex];if(_){const A={..._,label:_.name,name:_.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}}}),Oy="",ne=(t,o)=>{const n=t.__vccOpts||t;for(const[a,l]of o)n[a]=l;return n},ai={class:"data-view-list"},li={class:"columns"},ri={class:"column-item"},ii={class:"column-item-name"};function si(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",ai,[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",li,[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",ri,[e.createTextVNode(" 【"+e.toDisplayString(t.mapGenericType(d.genericType))+"】 ",1),e.createElementVNode("span",ii,e.toDisplayString(d.name),1)])]),_:1},8,["modelValue"])]),_:1},8,["spinning"])])])}const ci=ne(ni,[["render",si],["__scopeId","data-v-4a66f7d2"]]);function De(t,o){di(t)&&(t="100%");var n=pi(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 di(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function pi(t){return typeof t=="string"&&t.indexOf("%")!==-1}function ui(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function To(t){return t<=1?"".concat(Number(t)*100,"%"):t}function tn(t){return t.length===1?"0"+t:String(t)}function fi(t,o,n){return{r:De(t,255)*255,g:De(o,255)*255,b:De(n,255)*255}}function on(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 mi(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=on(c,s,t+1/3),l=on(c,s,t),r=on(c,s,t-1/3)}return{r:a*255,g:l*255,b:r*255}}function hi(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 bi(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 yi(t,o,n,a){var l=[tn(Math.round(t).toString(16)),tn(Math.round(o).toString(16)),tn(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 ka(t){return Fe(t)/255}function Fe(t){return parseInt(t,16)}var xa={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 Jt(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=wi(t)),typeof t=="object"&&(et(t.r)&&et(t.g)&&et(t.b)?(o=fi(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=To(t.s),l=To(t.v),o=bi(t.h,a,l),s=!0,c="hsv"):et(t.h)&&et(t.s)&&et(t.l)&&(a=To(t.s),r=To(t.l),o=mi(t.h,a,r),s=!0,c="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=ui(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 gi="[-\\+]?\\d+%?",Ci="[-\\+]?\\d*\\.\\d+%?",st="(?:".concat(Ci,")|(?:").concat(gi,")"),nn="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),an="[\\s|\\(]+(".concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")[,|\\s]+(").concat(st,")\\s*\\)?"),Ge={CSS_UNIT:new RegExp(st),rgb:new RegExp("rgb"+nn),rgba:new RegExp("rgba"+an),hsl:new RegExp("hsl"+nn),hsla:new RegExp("hsla"+an),hsv:new RegExp("hsv"+nn),hsva:new RegExp("hsva"+an),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 wi(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var o=!1;if(xa[t])t=xa[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:Fe(n[1]),g:Fe(n[2]),b:Fe(n[3]),a:ka(n[4]),format:o?"name":"hex8"}:(n=Ge.hex6.exec(t),n?{r:Fe(n[1]),g:Fe(n[2]),b:Fe(n[3]),format:o?"name":"hex"}:(n=Ge.hex4.exec(t),n?{r:Fe(n[1]+n[1]),g:Fe(n[2]+n[2]),b:Fe(n[3]+n[3]),a:ka(n[4]+n[4]),format:o?"name":"hex8"}:(n=Ge.hex3.exec(t),n?{r:Fe(n[1]+n[1]),g:Fe(n[2]+n[2]),b:Fe(n[3]+n[3]),format:o?"name":"hex"}:!1)))))))))}function et(t){return!!Ge.CSS_UNIT.exec(String(t))}var No=2,Sa=.16,ki=.05,xi=.05,Si=.15,_a=5,Ta=4,_i=[{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 Na(t){var o=t.r,n=t.g,a=t.b,l=hi(o,n,a);return{h:l.h*360,s:l.s,v:l.v}}function Ao(t){var o=t.r,n=t.g,a=t.b;return"#".concat(yi(o,n,a,!1))}function Ti(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 Aa(t,o,n){var a;return Math.round(t.h)>=60&&Math.round(t.h)<=240?a=n?Math.round(t.h)-No*o:Math.round(t.h)+No*o:a=n?Math.round(t.h)+No*o:Math.round(t.h)-No*o,a<0?a+=360:a>=360&&(a-=360),a}function Ea(t,o,n){if(t.h===0&&t.s===0)return t.s;var a;return n?a=t.s-Sa*o:o===Ta?a=t.s+Sa:a=t.s+ki*o,a>1&&(a=1),n&&o===_a&&a>.1&&(a=.1),a<.06&&(a=.06),Number(a.toFixed(2))}function Oa(t,o,n){var a;return n?a=t.v+xi*o:a=t.v-Si*o,a>1&&(a=1),Number(a.toFixed(2))}function ln(t){for(var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],a=Jt(t),l=_a;l>0;l-=1){var r=Na(a),s=Ao(Jt({h:Aa(r,l,!0),s:Ea(r,l,!0),v:Oa(r,l,!0)}));n.push(s)}n.push(Ao(a));for(var c=1;c<=Ta;c+=1){var i=Na(a),d=Ao(Jt({h:Aa(i,c),s:Ea(i,c),v:Oa(i,c)}));n.push(d)}return o.theme==="dark"?_i.map(function(p){var u=p.index,m=p.opacity,g=Ao(Ti(Jt(o.backgroundColor||"#141414"),Jt(n[u]),m*100));return g}):n}var rn={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},sn={},cn={};Object.keys(rn).forEach(function(t){sn[t]=ln(rn[t]),sn[t].primary=sn[t][5],cn[t]=ln(rn[t],{theme:"dark",backgroundColor:"#141414"}),cn[t].primary=cn[t][5]});var Ba=[],Zt=[],Ni="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function Ai(){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(Ni);var n=o.prepend===!0?"prepend":"append",a=o.container!==void 0?o.container:document.querySelector("head"),l=Ba.indexOf(a);l===-1&&(l=Ba.push(a)-1,Zt[l]={});var r;return Zt[l]!==void 0&&Zt[l][n]!==void 0?r=Zt[l][n]:(r=Zt[l][n]=Ai(),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 Va(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){Oi(t,l,n[l])})}return t}function Oi(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Bi(t,o){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(o))}function Vi(t,o){Bi(t,"[@ant-design/icons-vue] ".concat(o))}function La(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function dn(t,o,n){return n?e.h(t.tag,Va({key:o},n,t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))})):e.h(t.tag,Va({key:o},t.attrs),(t.children||[]).map(function(a,l){return dn(a,"".concat(o,"-").concat(t.tag,"-").concat(l))}))}function Fa(t){return ln(t)[0]}function $a(t){return t?Array.isArray(t)?t:[t]:[]}var Li=`
|
|
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
|
-
`,
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
58
|
-
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 Pa(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 Pa(t,o)}}function Pa(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 es(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 ts(t){if(Array.isArray(t))return t}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){un(t,l,n[l])})}return t}function un(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function os(t,o){if(t==null)return{};var n=ns(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 ns(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}Ma("#1890ff");var Lt=function(o,n){var a,l=ja({},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=os(l,Xi),g=(a={anticon:!0},un(a,"anticon-".concat(s.name),!!s.name),un(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=Ia(p),y=Qi(h,2),N=y[0],w=y[1];return e.createVNode("span",ja({role:"img","aria-label":s.name},m,{onClick:u,class:g}),[e.createVNode(pn,{class:C,icon:s,primaryColor:N,secondaryColor:w,style:f},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=Ki,Lt.setTwoToneColor=Ma;const xe=Lt;var as={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 ls=as;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){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=Ra({},o,n.attrs);return e.createVNode(xe,Ra({},a,{icon:ls}),null)};fn.displayName="AppstoreAddOutlined",fn.inheritAttrs=!1;const mn=fn;var is={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 ss=is;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){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 hn=function(o,n){var a=Ua({},o,n.attrs);return e.createVNode(xe,Ua({},a,{icon:ss}),null)};hn.displayName="CaretDownOutlined",hn.inheritAttrs=!1;const za=hn;var ds={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 ps=ds;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){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 bn=function(o,n){var a=Ga({},o,n.attrs);return e.createVNode(xe,Ga({},a,{icon:ps}),null)};bn.displayName="CaretRightOutlined",bn.inheritAttrs=!1;const Ha=bn;var fs={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 ms=fs;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){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 yn=function(o,n){var a=Wa({},o,n.attrs);return e.createVNode(xe,Wa({},a,{icon:ms}),null)};yn.displayName="CloseOutlined",yn.inheritAttrs=!1;const to=yn;var bs={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 ys=bs;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){gs(t,l,n[l])})}return t}function gs(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(xe,Ya({},a,{icon:ys}),null)};gn.displayName="CodeOutlined",gn.inheritAttrs=!1;const Cs=gn;var ws={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 ks=ws;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){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 Cn=function(o,n){var a=qa({},o,n.attrs);return e.createVNode(xe,qa({},a,{icon:ks}),null)};Cn.displayName="CopyOutlined",Cn.inheritAttrs=!1;const _s=Cn;var Ss={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 Ts=Ss;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){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 wn=function(o,n){var a=Ka({},o,n.attrs);return e.createVNode(xe,Ka({},a,{icon:Ts}),null)};wn.displayName="DeleteOutlined",wn.inheritAttrs=!1;const Xa=wn;var As={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 Es=As;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){Os(t,l,n[l])})}return t}function Os(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(xe,Qa({},a,{icon:Es}),null)};kn.displayName="DoubleRightOutlined",kn.inheritAttrs=!1;const Bs=kn;var Vs={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 Ls=Vs;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){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 xn=function(o,n){var a=Ja({},o,n.attrs);return e.createVNode(xe,Ja({},a,{icon:Ls}),null)};xn.displayName="DownOutlined",xn.inheritAttrs=!1;const $s=xn;var Is={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 Ds=Is;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){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 _n=function(o,n){var a=Za({},o,n.attrs);return e.createVNode(xe,Za({},a,{icon:Ds}),null)};_n.displayName="InfoCircleOutlined",_n.inheritAttrs=!1;const Ms=_n;var Ps={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 js=Ps;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){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 Sn=function(o,n){var a=el({},o,n.attrs);return e.createVNode(xe,el({},a,{icon:js}),null)};Sn.displayName="LoadingOutlined",Sn.inheritAttrs=!1;const Us=Sn;var zs={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 Gs=zs;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){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=tl({},o,n.attrs);return e.createVNode(xe,tl({},a,{icon:Gs}),null)};Tn.displayName="MenuOutlined",Tn.inheritAttrs=!1;const Nn=Tn;var Ws={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 Ys=Ws;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){qs(t,l,n[l])})}return t}function qs(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(xe,ol({},a,{icon:Ys}),null)};An.displayName="MinusCircleOutlined",An.inheritAttrs=!1;const Ks=An;var Xs={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=Xs;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){Js(t,l,n[l])})}return t}function Js(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:Qs}),null)};En.displayName="PlusCircleOutlined",En.inheritAttrs=!1;const Zs=En;var ec={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 tc=ec;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){oc(t,l,n[l])})}return t}function oc(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(xe,al({},a,{icon:tc}),null)};On.displayName="PlusOutlined",On.inheritAttrs=!1;const nc=On;var ac={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 lc=ac;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){rc(t,l,n[l])})}return t}function rc(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(xe,ll({},a,{icon:lc}),null)};Bn.displayName="QuestionCircleOutlined",Bn.inheritAttrs=!1;const ic=Bn;var sc={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 cc=sc;function rl(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){dc(t,l,n[l])})}return t}function dc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Vn=function(o,n){var a=rl({},o,n.attrs);return e.createVNode(xe,rl({},a,{icon:cc}),null)};Vn.displayName="ReloadOutlined",Vn.inheritAttrs=!1;const pc=Vn;var uc={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 fc=uc;function il(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){mc(t,l,n[l])})}return t}function mc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Ln=function(o,n){var a=il({},o,n.attrs);return e.createVNode(xe,il({},a,{icon:fc}),null)};Ln.displayName="SettingOutlined",Ln.inheritAttrs=!1;const hc=Ln,sl=()=>{},Fn=Object.assign,cl=Array.isArray,Oo=t=>typeof t=="function",bc=t=>typeof t=="symbol";let dl;const $n=()=>dl||(dl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),pl=t=>{const o=new Set(t);return o.w=0,o.n=0,o},ul=t=>(t.w&ct)>0,fl=t=>(t.n&ct)>0;let oo=0,ct=1,$e;class yc{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=$e,n=bt;for(;o;){if(o===this)return;o=o.parent}try{return this.parent=$e,$e=this,bt=!0,ct=1<<++oo,oo<=30?(({deps:a})=>{if(a.length)for(let l=0;l<a.length;l++)a[l].w|=ct})(this):ml(this),this.fn()}finally{oo<=30&&(a=>{const{deps:l}=a;if(l.length){let r=0;for(let s=0;s<l.length;s++){const c=l[s];ul(c)&&!fl(c)?c.delete(a):l[r++]=c,c.w&=~ct,c.n&=~ct}l.length=r}})(this),ct=1<<--oo,$e=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(ml(this),this.onStop&&this.onStop(),this.active=!1)}}function ml(t){const{deps:o}=t;if(o.length){for(let n=0;n<o.length;n++)o[n].delete(t);o.length=0}}let bt=!0;const hl=[];function bl(t,o){let n=!1;oo<=30?fl(t)||(t.n|=ct,n=!ul(t)):n=!t.has($e),n&&(t.add($e),$e.deps.push(t),process.env.NODE_ENV!=="production"&&$e.onTrack&&$e.onTrack(Fn({effect:$e},o)))}function yl(t,o){const n=cl(t)?t:[...t];for(const a of n)a.computed&&gl(a,o);for(const a of n)a.computed||gl(a,o)}function gl(t,o){(t!==$e||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(Fn({effect:t},o)),t.scheduler?t.scheduler():t.run())}function Ft(t){const o=t&&t.__v_raw;return o?Ft(o):t}function Cl(t){return!(!t||t.__v_isRef!==!0)}function dt(t){return Cl(t)?t.value:t}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(bc));class gc{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 yc(o,()=>{this._dirty||(this._dirty=!0,function(r,s){const c=(r=Ft(r)).dep;c&&(process.env.NODE_ENV!=="production"?yl(c,{target:r,type:"set",key:"value",newValue:s}):yl(c))}(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=a}get value(){const o=Ft(this);var n;return n=o,bt&&$e&&(n=Ft(n),process.env.NODE_ENV!=="production"?bl(n.dep||(n.dep=pl()),{target:n,type:"get",key:"value"}):bl(n.dep||(n.dep=pl()))),!o._dirty&&o._cacheable||(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}const yt=[];function In(t,...o){if(process.env.NODE_ENV==="production")return;hl.push(bt),bt=!1;const n=yt.length?yt[yt.length-1].component:null,a=n&&n.appContext.config.warnHandler,l=function(){let r=yt[yt.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)Dn(a,n,11,[t+o.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${El(n,r.type)}>`).join(`
|
|
56
|
+
`,Ia=!1,Fi=function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Li;e.nextTick(function(){Ia||(typeof window<"u"&&window.document&&window.document.documentElement&&Ei(o,{prepend:!0}),Ia=!0)})},$i=["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 Eo(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}var eo={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Mi(t){var o=t.primaryColor,n=t.secondaryColor;eo.primaryColor=o,eo.secondaryColor=n||Fa(o),eo.calculated=!!n}function Pi(){return Eo({},eo)}var Vt=function(o,n){var a=Eo({},o,n.attrs),l=a.icon,r=a.primaryColor,s=a.secondaryColor,c=Ii(a,$i),i=eo;if(r&&(i={primaryColor:r,secondaryColor:s||Fa(r)}),Fi(),Vi(La(l),"icon should be icon definiton, but got ".concat(l)),!La(l))return null;var d=l;return d&&typeof d.icon=="function"&&(d=Eo({},d,{icon:d.icon(i.primaryColor,i.secondaryColor)})),dn(d.icon,"svg-".concat(d.name),Eo({},c,{"data-icon":d.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=Pi,Vt.setTwoToneColors=Mi;const pn=Vt;function ji(t,o){return Gi(t)||zi(t,o)||Ui(t,o)||Ri()}function Ri(){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 Ui(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 zi(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 Gi(t){if(Array.isArray(t))return t}function va(t){var o=$a(t),n=ji(o,2),a=n[0],l=n[1];return pn.setTwoToneColors({primaryColor:a,secondaryColor:l})}function Hi(){var t=pn.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Wi=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Yi(t,o){return Qi(t)||Xi(t,o)||Ki(t,o)||qi()}function qi(){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 Ki(t,o){if(t){if(typeof t=="string")return Ma(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 Ma(t,o)}}function Ma(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 Xi(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 Qi(t){if(Array.isArray(t))return t}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){un(t,l,n[l])})}return t}function un(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}function Ji(t,o){if(t==null)return{};var n=Zi(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 Zi(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 Lt=function(o,n){var a,l=Pa({},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=Ji(l,Wi),g=(a={anticon:!0},un(a,"anticon-".concat(s.name),!!s.name),un(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=$a(p),y=Yi(h,2),N=y[0],w=y[1];return e.createVNode("span",Pa({role:"img","aria-label":s.name},m,{onClick:u,class:g}),[e.createVNode(pn,{class:C,icon:s,primaryColor:N,secondaryColor:w,style:f},null)])};Lt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},Lt.displayName="AntdIcon",Lt.inheritAttrs=!1,Lt.getTwoToneColor=Hi,Lt.setTwoToneColor=va;const xe=Lt;var es={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 ts=es;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){os(t,l,n[l])})}return t}function os(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(xe,ja({},a,{icon:ts}),null)};fn.displayName="AppstoreAddOutlined",fn.inheritAttrs=!1;const mn=fn;var ns={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 as=ns;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){ls(t,l,n[l])})}return t}function ls(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=Ra({},o,n.attrs);return e.createVNode(xe,Ra({},a,{icon:as}),null)};hn.displayName="CaretDownOutlined",hn.inheritAttrs=!1;const Ua=hn;var rs={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 is=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){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 bn=function(o,n){var a=za({},o,n.attrs);return e.createVNode(xe,za({},a,{icon:is}),null)};bn.displayName="CaretRightOutlined",bn.inheritAttrs=!1;const Ga=bn;var cs={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 ds=cs;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){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 yn=function(o,n){var a=Ha({},o,n.attrs);return e.createVNode(xe,Ha({},a,{icon:ds}),null)};yn.displayName="CloseOutlined",yn.inheritAttrs=!1;const to=yn;var us={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 fs=us;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){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 gn=function(o,n){var a=Wa({},o,n.attrs);return e.createVNode(xe,Wa({},a,{icon:fs}),null)};gn.displayName="CodeOutlined",gn.inheritAttrs=!1;const hs=gn;var bs={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 ys=bs;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){gs(t,l,n[l])})}return t}function gs(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=Ya({},o,n.attrs);return e.createVNode(xe,Ya({},a,{icon:ys}),null)};Cn.displayName="CopyOutlined",Cn.inheritAttrs=!1;const Cs=Cn;var ws={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 ks=ws;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){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 wn=function(o,n){var a=qa({},o,n.attrs);return e.createVNode(xe,qa({},a,{icon:ks}),null)};wn.displayName="DeleteOutlined",wn.inheritAttrs=!1;const Ka=wn;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 _s=Ss;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){Ts(t,l,n[l])})}return t}function Ts(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:_s}),null)};kn.displayName="DoubleRightOutlined",kn.inheritAttrs=!1;const Ns=kn;var As={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=As;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){Os(t,l,n[l])})}return t}function Os(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:Es}),null)};xn.displayName="DownOutlined",xn.inheritAttrs=!1;const Bs=xn;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 Ls=Vs;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){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 Sn=function(o,n){var a=Ja({},o,n.attrs);return e.createVNode(xe,Ja({},a,{icon:Ls}),null)};Sn.displayName="InfoCircleOutlined",Sn.inheritAttrs=!1;const $s=Sn;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 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){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 _n=function(o,n){var a=Za({},o,n.attrs);return e.createVNode(xe,Za({},a,{icon:Ds}),null)};_n.displayName="LoadingOutlined",_n.inheritAttrs=!1;const Ms=_n;var Ps={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 js=Ps;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){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 Tn=function(o,n){var a=el({},o,n.attrs);return e.createVNode(xe,el({},a,{icon:js}),null)};Tn.displayName="MenuOutlined",Tn.inheritAttrs=!1;const Nn=Tn;var Us={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 zs=Us;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){Gs(t,l,n[l])})}return t}function Gs(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:zs}),null)};An.displayName="MinusCircleOutlined",An.inheritAttrs=!1;const Hs=An;var Ws={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 Ys=Ws;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){qs(t,l,n[l])})}return t}function qs(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=ol({},o,n.attrs);return e.createVNode(xe,ol({},a,{icon:Ys}),null)};En.displayName="PlusCircleOutlined",En.inheritAttrs=!1;const Ks=En;var Xs={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 Qs=Xs;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){Js(t,l,n[l])})}return t}function Js(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=nl({},o,n.attrs);return e.createVNode(xe,nl({},a,{icon:Qs}),null)};On.displayName="PlusOutlined",On.inheritAttrs=!1;const Zs=On;var ec={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 tc=ec;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){oc(t,l,n[l])})}return t}function oc(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:tc}),null)};Bn.displayName="QuestionCircleOutlined",Bn.inheritAttrs=!1;const nc=Bn;var ac={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 lc=ac;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){rc(t,l,n[l])})}return t}function rc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Vn=function(o,n){var a=ll({},o,n.attrs);return e.createVNode(xe,ll({},a,{icon:lc}),null)};Vn.displayName="ReloadOutlined",Vn.inheritAttrs=!1;const ic=Vn;var sc={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 cc=sc;function rl(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){dc(t,l,n[l])})}return t}function dc(t,o,n){return o in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var Ln=function(o,n){var a=rl({},o,n.attrs);return e.createVNode(xe,rl({},a,{icon:cc}),null)};Ln.displayName="SettingOutlined",Ln.inheritAttrs=!1;const pc=Ln,il=()=>{},Fn=Object.assign,sl=Array.isArray,Oo=t=>typeof t=="function",uc=t=>typeof t=="symbol";let cl;const $n=()=>cl||(cl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),dl=t=>{const o=new Set(t);return o.w=0,o.n=0,o},pl=t=>(t.w&ct)>0,ul=t=>(t.n&ct)>0;let oo=0,ct=1,$e;class fc{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=$e,n=bt;for(;o;){if(o===this)return;o=o.parent}try{return this.parent=$e,$e=this,bt=!0,ct=1<<++oo,oo<=30?(({deps:a})=>{if(a.length)for(let l=0;l<a.length;l++)a[l].w|=ct})(this):fl(this),this.fn()}finally{oo<=30&&(a=>{const{deps:l}=a;if(l.length){let r=0;for(let s=0;s<l.length;s++){const c=l[s];pl(c)&&!ul(c)?c.delete(a):l[r++]=c,c.w&=~ct,c.n&=~ct}l.length=r}})(this),ct=1<<--oo,$e=this.parent,bt=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){$e===this?this.deferStop=!0:this.active&&(fl(this),this.onStop&&this.onStop(),this.active=!1)}}function fl(t){const{deps:o}=t;if(o.length){for(let n=0;n<o.length;n++)o[n].delete(t);o.length=0}}let bt=!0;const ml=[];function hl(t,o){let n=!1;oo<=30?ul(t)||(t.n|=ct,n=!pl(t)):n=!t.has($e),n&&(t.add($e),$e.deps.push(t),process.env.NODE_ENV!=="production"&&$e.onTrack&&$e.onTrack(Fn({effect:$e},o)))}function bl(t,o){const n=sl(t)?t:[...t];for(const a of n)a.computed&&yl(a,o);for(const a of n)a.computed||yl(a,o)}function yl(t,o){(t!==$e||t.allowRecurse)&&(process.env.NODE_ENV!=="production"&&t.onTrigger&&t.onTrigger(Fn({effect:t},o)),t.scheduler?t.scheduler():t.run())}function Ft(t){const o=t&&t.__v_raw;return o?Ft(o):t}function gl(t){return!(!t||t.__v_isRef!==!0)}function dt(t){return gl(t)?t.value:t}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(uc));class mc{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 fc(o,()=>{this._dirty||(this._dirty=!0,function(r,s){const c=(r=Ft(r)).dep;c&&(process.env.NODE_ENV!=="production"?bl(c,{target:r,type:"set",key:"value",newValue:s}):bl(c))}(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!l,this.__v_isReadonly=a}get value(){const o=Ft(this);var n;return n=o,bt&&$e&&(n=Ft(n),process.env.NODE_ENV!=="production"?hl(n.dep||(n.dep=dl()),{target:n,type:"get",key:"value"}):hl(n.dep||(n.dep=dl()))),!o._dirty&&o._cacheable||(o._dirty=!1,o._value=o.effect.run()),o._value}set value(o){this._setter(o)}}const yt=[];function In(t,...o){if(process.env.NODE_ENV==="production")return;ml.push(bt),bt=!1;const n=yt.length?yt[yt.length-1].component:null,a=n&&n.appContext.config.warnHandler,l=function(){let r=yt[yt.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)Dn(a,n,11,[t+o.join(""),n&&n.proxy,l.map(({vnode:r})=>`at <${Al(n,r.type)}>`).join(`
|
|
59
59
|
`),l]);else{const r=[`[Vue warn]: ${t}`,...o];l.length&&r.push(`
|
|
60
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 <${El(p.component,p.type,g)}`,b=">"+m;return p.props?[C,...Cc(p.props),b]:[C+b]}(i))}),c}(l)),console.warn(...r)}(function(){const r=hl.pop();bt=r===void 0||r})()}function Cc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...wl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function wl(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}`]:Cl(o)?(o=wl(t,Ft(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):Oo(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=Ft(o),n?o:[`${t}=`,o])}const kl={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 Dn(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"?kl[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 Dn(C,null,10,[s,m,g])}(function(u,m,g,C=!0){if(process.env.NODE_ENV!=="production"){const f=kl[m];if(g&&(b=g,yt.push(b)),In("Unhandled error"+(f?` during execution of ${f}`:"")),g&&yt.pop(),C)throw u;console.error(u)}else console.error(u);var b})(s,i,p,d)})(r,o,n)}return l}let Bo=!1,vn=!1;const He=[];let pt=0;const $t=[];let We=null,ut=0;const wc=Promise.resolve();function kc(t){He.length&&He.includes(t,Bo&&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=no(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),xl())}function xl(){Bo||vn||(vn=!0,wc.then(_l))}const no=t=>t.id==null?1/0:t.id,xc=(t,o)=>{const n=no(t)-no(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function _l(t){vn=!1,Bo=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),He.sort(xc);const o=process.env.NODE_ENV!=="production"?n=>Sl(t,n):sl;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;Dn(n,null,14)}}}finally{pt=0,He.length=0,function(n){if($t.length){const a=[...new Set($t)];if($t.length=0,We)return void We.push(...a);for(We=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),We.sort((l,r)=>no(l)-no(r)),ut=0;ut<We.length;ut++)process.env.NODE_ENV!=="production"&&Sl(n,We[ut])||We[ut]();We=null,ut=0}}(t),Bo=!1,(He.length||$t.length)&&_l(t)}}function Sl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&Al(a.type);return In(`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 ao=new Set;process.env.NODE_ENV!=="production"&&($n().__VUE_HMR_RUNTIME__={createRecord:Mn(function(t,o){return Vo.has(t)?!1:(Vo.set(t,{initialDef:lo(o),instances:new Set}),!0)}),rerender:Mn(function(t,o){const n=Vo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,lo(a.type).render=o),a.renderCache=[],a.update()}))}),reload:Mn(function(t,o){const n=Vo.get(t);if(!n)return;o=lo(o),Tl(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=lo(r.type);ao.has(s)||(s!==n.initialDef&&Tl(s,o),ao.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ao.add(s),r.ceReload(o.styles),ao.delete(s)):r.parent?kc(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)ao.delete(lo(r.type))},cl(l)?$t.push(...l):We&&We.includes(l,l.allowRecurse?ut+1:ut)||$t.push(l),xl();var l})});const Vo=new Map;function lo(t){return Oo(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function Tl(t,o){Fn(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function Mn(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 Pn;process.env.NODE_ENV;let Nl="__VUE_INSTANCE_SETTERS__";(Pn=$n()[Nl])||(Pn=$n()[Nl]=[]),Pn.push(t=>t);const _c=/(?:^|[-_])(\w)/g,Sc=t=>t.replace(_c,o=>o.toUpperCase()).replace(/[-_]/g,"");function Al(t,o=!0){return Oo(t)?t.displayName||t.name:t.name||o&&t.__name}function El(t,o,n=!1){let a=Al(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?Sc(a):n?"App":"Anonymous"}const gt=(t,o)=>function(n,a,l=!1){let r,s;const c=Oo(n);return c?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:sl):(r=n.get,s=n.set),new gc(r,s,c||!s,l)}(t,0,!1);function Tc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ol,Bl={exports:{}};function Nc(){return Ol||(Ol=1,Bl.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 M=["th","st","nd","rd"],k=$%100;return"["+$+(M[(k-20)%10]||M[k]||M[0])+"]"}},h=function($,M,k){var O=String($);return!O||O.length>=M?$:""+Array(M+1-O.length).join(k)+$},y={s:h,z:function($){var M=-$.utcOffset(),k=Math.abs(M),O=Math.floor(k/60),B=k%60;return(M<=0?"+":"-")+h(O,2,"0")+":"+h(B,2,"0")},m:function $(M,k){if(M.date()<k.date())return-$(k,M);var O=12*(k.year()-M.year())+(k.month()-M.month()),B=M.clone().add(O,d),P=k-B<0,F=M.clone().add(O+(P?-1:1),d);return+(-(O+(k-B)/(P?B-F:F-B))||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 _="$isDayjsObject",S=function($){return $ instanceof T||!(!$||!$[_])},A=function $(M,k,O){var B;if(!M)return N;if(typeof M=="string"){var P=M.toLowerCase();w[P]&&(B=P),k&&(w[P]=k,B=P);var F=M.split("-");if(!B&&F.length>1)return $(F[0])}else{var E=M.name;w[E]=M,B=E}return!O&&B&&(N=B),B||!O&&N},I=function($,M){if(S($))return $.clone();var k=typeof M=="object"?M:{};return k.date=$,k.args=arguments,new T(k)},D=y;D.l=A,D.i=S,D.w=function($,M){return I($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var T=function(){function $(k){this.$L=A(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[_]=!0}var M=$.prototype;return M.parse=function(k){this.$d=function(O){var B=O.date,P=O.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(C);if(F){var E=F[2]-1||0,V=(F[7]||"0").substring(0,3);return P?new Date(Date.UTC(F[1],E,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)):new Date(F[1],E,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)}}return new Date(B)}(k),this.init()},M.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()},M.$utils=function(){return D},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(k,O){var B=I(k);return this.startOf(O)<=B&&B<=this.endOf(O)},M.isAfter=function(k,O){return I(k)<this.startOf(O)},M.isBefore=function(k,O){return this.endOf(O)<I(k)},M.$g=function(k,O,B){return D.u(k)?this[O]:this.set(B,k)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(k,O){var B=this,P=!!D.u(O)||O,F=D.p(k),E=function(X,J){var oe=D.w(B.$u?Date.UTC(B.$y,J,X):new Date(B.$y,J,X),B);return P?oe:oe.endOf(c)},V=function(X,J){return D.w(B.toDate()[X].apply(B.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(J)),B)},x=this.$W,L=this.$M,v=this.$D,U="set"+(this.$u?"UTC":"");switch(F){case u:return P?E(1,0):E(31,11);case d:return P?E(1,L):E(0,L+1);case i:var G=this.$locale().weekStart||0,Y=(x<G?x+7:x)-G;return E(P?v-Y:v+(6-Y),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()}},M.endOf=function(k){return this.startOf(k,!1)},M.$set=function(k,O){var B,P=D.p(k),F="set"+(this.$u?"UTC":""),E=(B={},B[c]=F+"Date",B[m]=F+"Date",B[d]=F+"Month",B[u]=F+"FullYear",B[s]=F+"Hours",B[r]=F+"Minutes",B[l]=F+"Seconds",B[a]=F+"Milliseconds",B)[P],V=P===c?this.$D+(O-this.$W):O;if(P===d||P===u){var x=this.clone().set(m,1);x.$d[E](V),x.init(),this.$d=x.set(m,Math.min(this.$D,x.daysInMonth())).$d}else E&&this.$d[E](V);return this.init(),this},M.set=function(k,O){return this.clone().$set(k,O)},M.get=function(k){return this[D.p(k)]()},M.add=function(k,O){var B,P=this;k=Number(k);var F=D.p(O),E=function(L){var v=I(P);return D.w(v.date(v.date()+Math.round(L*k)),P)};if(F===d)return this.set(d,this.$M+k);if(F===u)return this.set(u,this.$y+k);if(F===c)return E(1);if(F===i)return E(7);var V=(B={},B[r]=o,B[s]=n,B[l]=t,B)[F]||1,x=this.$d.getTime()+k*V;return D.w(x,this)},M.subtract=function(k,O){return this.add(-1*k,O)},M.format=function(k){var O=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var P=k||"YYYY-MM-DDTHH:mm:ssZ",F=D.z(this),E=this.$H,V=this.$m,x=this.$M,L=B.weekdays,v=B.months,U=B.meridiem,G=function(J,oe,ae,ye){return J&&(J[oe]||J(O,P))||ae[oe].slice(0,ye)},Y=function(J){return D.s(E%12||12,J,"0")},X=U||function(J,oe,ae){var ye=J<12?"AM":"PM";return ae?ye.toLowerCase():ye};return P.replace(b,function(J,oe){return oe||function(ae){switch(ae){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return x+1;case"MM":return D.s(x+1,2,"0");case"MMM":return G(B.monthsShort,x,v,3);case"MMMM":return G(v,x);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return G(B.weekdaysMin,O.$W,L,2);case"ddd":return G(B.weekdaysShort,O.$W,L,3);case"dddd":return L[O.$W];case"H":return String(E);case"HH":return D.s(E,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return X(E,V,!0);case"A":return X(E,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return F}return null}(J)||F.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(k,O,B){var P,F=this,E=D.p(O),V=I(k),x=(V.utcOffset()-this.utcOffset())*o,L=this-V,v=function(){return D.m(F,V)};switch(E){case u:P=v()/12;break;case d:P=v();break;case p:P=v()/3;break;case i:P=(L-x)/6048e5;break;case c:P=(L-x)/864e5;break;case s:P=L/n;break;case r:P=L/o;break;case l:P=L/t;break;default:P=L}return B?P:D.a(P)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return w[this.$L]},M.locale=function(k,O){if(!k)return this.$L;var B=this.clone(),P=A(k,O,!0);return P&&(B.$L=P),B},M.clone=function(){return D.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},$}(),R=T.prototype;return I.prototype=R,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",c],["$M",d],["$y",u],["$D",m]].forEach(function($){R[$[1]]=function(M){return this.$g(M,$[0],$[1])}}),I.extend=function($,M){return $.$i||($(M,T,I),$.$i=!0),I},I.locale=A,I.isDayjs=S,I.unix=function($){return I(1e3*$)},I.en=w[N],I.Ls=w,I.p={},I}()),Bl.exports}var Ac=Tc(Nc()),Vl=typeof global=="object"&&global&&global.Object===Object&&global,Ec=typeof self=="object"&&self&&self.Object===Object&&self,tt=Vl||Ec||Function("return this")(),It=tt.Symbol,Ll=Object.prototype,Oc=Ll.hasOwnProperty,Bc=Ll.toString,ro=It?It.toStringTag:void 0,Vc=Object.prototype.toString,Fl=It?It.toStringTag:void 0;function Lo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Fl&&Fl in Object(t)?function(o){var n=Oc.call(o,ro),a=o[ro];try{o[ro]=void 0;var l=!0}catch{}var r=Bc.call(o);return l&&(n?o[ro]=a:delete o[ro]),r}(t):function(o){return Vc.call(o)}(t)}function $l(t){return t!=null&&typeof t=="object"}function Il(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Lc(t){if(!Il(t))return!1;var o=Lo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var Dl,jn=tt["__core-js_shared__"],vl=(Dl=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||""))?"Symbol(src)_1."+Dl:"",Fc=Function.prototype.toString;function Ct(t){if(t!=null){try{return Fc.call(t)}catch{}try{return t+""}catch{}}return""}var $c=/^\[object .+?Constructor\]$/,Ic=Function.prototype,Dc=Object.prototype,vc=Ic.toString,Mc=Dc.hasOwnProperty,Pc=RegExp("^"+vc.call(Mc).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jc(t){return!(!Il(t)||(o=t,vl&&vl in o))&&(Lc(t)?Pc:$c).test(Ct(t));var o}function wt(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return jc(n)?n:void 0}var Rn=wt(tt,"WeakMap");(function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function Ml(t){return $l(t)&&Lo(t)=="[object Arguments]"}var Pl=Object.prototype,Rc=Pl.hasOwnProperty,Uc=Pl.propertyIsEnumerable;Ml(function(){return arguments}());var jl=typeof fe=="object"&&fe&&!fe.nodeType&&fe,Rl=jl&&typeof module=="object"&&module&&!module.nodeType&&module,Ul=Rl&&Rl.exports===jl?tt.Buffer:void 0;Ul&&Ul.isBuffer;var zl=typeof fe=="object"&&fe&&!fe.nodeType&&fe,io=zl&&typeof module=="object"&&module&&!module.nodeType&&module,Un=io&&io.exports===zl&&Vl.process,Dt=function(){try{var t=io&&io.require&&io.require("util").types;return t||Un&&Un.binding&&Un.binding("util")}catch{}}();Dt&&Dt.isTypedArray,wt(Object,"create");var zn=wt(tt,"Map"),Gn=wt(tt,"DataView"),Hn=wt(tt,"Promise"),Wn=wt(tt,"Set"),Gl="[object Map]",Hl="[object Promise]",Wl="[object Set]",Yl="[object WeakMap]",ql="[object DataView]",zc=Ct(Gn),Gc=Ct(zn),Hc=Ct(Hn),Wc=Ct(Wn),Yc=Ct(Rn),vt=Lo;(Gn&&vt(new Gn(new ArrayBuffer(1)))!=ql||zn&&vt(new zn)!=Gl||Hn&&vt(Hn.resolve())!=Hl||Wn&&vt(new Wn)!=Wl||Rn&&vt(new Rn)!=Yl)&&(vt=function(t){var o=Lo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?Ct(n):"";if(a)switch(a){case zc:return ql;case Gc:return Gl;case Hc:return Hl;case Wc:return Wl;case Yc:return Yl}return o}),tt.Uint8Array;var Kl=It?It.prototype:void 0;Kl&&Kl.valueOf,Dt&&Dt.isMap,Dt&&Dt.isSet;const Xl=(t,o)=>{const n=Object.assign({dayjs:Ac},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},Mt=(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=Xl(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," ")),t=t.replace(/Qfw\((.*?)\)/,(i,d)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(d):d)},pe=(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 qc(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 Kc=(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}},Xc=(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}},Pt=(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=Xl(c)),t=t.replace(s,i)}catch{t=t.replace(s,c)}}return t};function Qc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const Jc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=gt(()=>{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 _="",S=t.labelFormatter;S===""&&(S="{c}");const{seriesName:A,name:I,value:D,data:T}=w||{};return _+=Mt(S,{textData:Object.assign({name:I,value:D,a:A,b:I,c:D||0},T)},{useNewline:!0,useSpace:!0}),_}},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 _=[];for(const S of w){const A=parseFloat(S);isNaN(A)||_.push(A)}h.itemStyle.barBorderRadius=_}}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),b.push(h)}return b}),i=gt(()=>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+=`${Pt(l,N)}<br/>`}u+=Mt(m,{textData:Object.assign({marker:C,name:f,value:h,Qfw:qc,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(`
|
|
61
|
+
`],...function({vnode:p,recurseCount:u}){const m=u>0?`... (${u} recursive calls)`:"",g=!!p.component&&p.component.parent==null,C=` at <${Al(p.component,p.type,g)}`,b=">"+m;return p.props?[C,...hc(p.props),b]:[C+b]}(i))}),c}(l)),console.warn(...r)}(function(){const r=ml.pop();bt=r===void 0||r})()}function hc(t){const o=[],n=Object.keys(t);return n.slice(0,3).forEach(a=>{o.push(...Cl(a,t[a]))}),n.length>3&&o.push(" ..."),o}function Cl(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}`]:gl(o)?(o=Cl(t,Ft(o.value),!0),n?o:[`${t}=Ref<`,o,">"]):Oo(o)?[`${t}=fn${o.name?`<${o.name}>`:""}`]:(o=Ft(o),n?o:[`${t}=`,o])}const wl={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 Dn(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"?wl[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 Dn(C,null,10,[s,m,g])}(function(u,m,g,C=!0){if(process.env.NODE_ENV!=="production"){const f=wl[m];if(g&&(b=g,yt.push(b)),In("Unhandled error"+(f?` during execution of ${f}`:"")),g&&yt.pop(),C)throw u;console.error(u)}else console.error(u);var b})(s,i,p,d)})(r,o,n)}return l}let Bo=!1,vn=!1;const He=[];let pt=0;const $t=[];let We=null,ut=0;const bc=Promise.resolve();function yc(t){He.length&&He.includes(t,Bo&&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=no(r);s<o||s===o&&r.pre?n=l+1:a=l}return n}(t.id),0,t),kl())}function kl(){Bo||vn||(vn=!0,bc.then(xl))}const no=t=>t.id==null?1/0:t.id,gc=(t,o)=>{const n=no(t)-no(o);if(n===0){if(t.pre&&!o.pre)return-1;if(o.pre&&!t.pre)return 1}return n};function xl(t){vn=!1,Bo=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),He.sort(gc);const o=process.env.NODE_ENV!=="production"?n=>Sl(t,n):il;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;Dn(n,null,14)}}}finally{pt=0,He.length=0,function(n){if($t.length){const a=[...new Set($t)];if($t.length=0,We)return void We.push(...a);for(We=a,process.env.NODE_ENV!=="production"&&(n=n||new Map),We.sort((l,r)=>no(l)-no(r)),ut=0;ut<We.length;ut++)process.env.NODE_ENV!=="production"&&Sl(n,We[ut])||We[ut]();We=null,ut=0}}(t),Bo=!1,(He.length||$t.length)&&xl(t)}}function Sl(t,o){if(t.has(o)){const n=t.get(o);if(n>100){const a=o.ownerInstance,l=a&&Nl(a.type);return In(`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 ao=new Set;process.env.NODE_ENV!=="production"&&($n().__VUE_HMR_RUNTIME__={createRecord:Mn(function(t,o){return Vo.has(t)?!1:(Vo.set(t,{initialDef:lo(o),instances:new Set}),!0)}),rerender:Mn(function(t,o){const n=Vo.get(t);n&&(n.initialDef.render=o,[...n.instances].forEach(a=>{o&&(a.render=o,lo(a.type).render=o),a.renderCache=[],a.update()}))}),reload:Mn(function(t,o){const n=Vo.get(t);if(!n)return;o=lo(o),_l(n.initialDef,o);const a=[...n.instances];for(const r of a){const s=lo(r.type);ao.has(s)||(s!==n.initialDef&&_l(s,o),ao.add(s)),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(ao.add(s),r.ceReload(o.styles),ao.delete(s)):r.parent?yc(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)ao.delete(lo(r.type))},sl(l)?$t.push(...l):We&&We.includes(l,l.allowRecurse?ut+1:ut)||$t.push(l),kl();var l})});const Vo=new Map;function lo(t){return Oo(o=t)&&"__vccOpts"in o?t.__vccOpts:t;var o}function _l(t,o){Fn(t,o);for(const n in t)n==="__file"||n in o||delete t[n]}function Mn(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 Pn;process.env.NODE_ENV;let Tl="__VUE_INSTANCE_SETTERS__";(Pn=$n()[Tl])||(Pn=$n()[Tl]=[]),Pn.push(t=>t);const Cc=/(?:^|[-_])(\w)/g,wc=t=>t.replace(Cc,o=>o.toUpperCase()).replace(/[-_]/g,"");function Nl(t,o=!0){return Oo(t)?t.displayName||t.name:t.name||o&&t.__name}function Al(t,o,n=!1){let a=Nl(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?wc(a):n?"App":"Anonymous"}const gt=(t,o)=>function(n,a,l=!1){let r,s;const c=Oo(n);return c?(r=n,s=process.env.NODE_ENV!=="production"?()=>{console.warn("Write operation failed: computed value is readonly")}:il):(r=n.get,s=n.set),new mc(r,s,c||!s,l)}(t,0,!1);function kc(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var El,Ol={exports:{}};function xc(){return El||(El=1,Ol.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 M=["th","st","nd","rd"],k=$%100;return"["+$+(M[(k-20)%10]||M[k]||M[0])+"]"}},h=function($,M,k){var O=String($);return!O||O.length>=M?$:""+Array(M+1-O.length).join(k)+$},y={s:h,z:function($){var M=-$.utcOffset(),k=Math.abs(M),O=Math.floor(k/60),B=k%60;return(M<=0?"+":"-")+h(O,2,"0")+":"+h(B,2,"0")},m:function $(M,k){if(M.date()<k.date())return-$(k,M);var O=12*(k.year()-M.year())+(k.month()-M.month()),B=M.clone().add(O,d),P=k-B<0,F=M.clone().add(O+(P?-1:1),d);return+(-(O+(k-B)/(P?B-F:F-B))||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 S="$isDayjsObject",_=function($){return $ instanceof T||!(!$||!$[S])},A=function $(M,k,O){var B;if(!M)return N;if(typeof M=="string"){var P=M.toLowerCase();w[P]&&(B=P),k&&(w[P]=k,B=P);var F=M.split("-");if(!B&&F.length>1)return $(F[0])}else{var E=M.name;w[E]=M,B=E}return!O&&B&&(N=B),B||!O&&N},I=function($,M){if(_($))return $.clone();var k=typeof M=="object"?M:{};return k.date=$,k.args=arguments,new T(k)},D=y;D.l=A,D.i=_,D.w=function($,M){return I($,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var T=function(){function $(k){this.$L=A(k.locale,null,!0),this.parse(k),this.$x=this.$x||k.x||{},this[S]=!0}var M=$.prototype;return M.parse=function(k){this.$d=function(O){var B=O.date,P=O.utc;if(B===null)return new Date(NaN);if(D.u(B))return new Date;if(B instanceof Date)return new Date(B);if(typeof B=="string"&&!/Z$/i.test(B)){var F=B.match(C);if(F){var E=F[2]-1||0,V=(F[7]||"0").substring(0,3);return P?new Date(Date.UTC(F[1],E,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)):new Date(F[1],E,F[3]||1,F[4]||0,F[5]||0,F[6]||0,V)}}return new Date(B)}(k),this.init()},M.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()},M.$utils=function(){return D},M.isValid=function(){return this.$d.toString()!==g},M.isSame=function(k,O){var B=I(k);return this.startOf(O)<=B&&B<=this.endOf(O)},M.isAfter=function(k,O){return I(k)<this.startOf(O)},M.isBefore=function(k,O){return this.endOf(O)<I(k)},M.$g=function(k,O,B){return D.u(k)?this[O]:this.set(B,k)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(k,O){var B=this,P=!!D.u(O)||O,F=D.p(k),E=function(X,J){var oe=D.w(B.$u?Date.UTC(B.$y,J,X):new Date(B.$y,J,X),B);return P?oe:oe.endOf(c)},V=function(X,J){return D.w(B.toDate()[X].apply(B.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(J)),B)},x=this.$W,L=this.$M,v=this.$D,U="set"+(this.$u?"UTC":"");switch(F){case u:return P?E(1,0):E(31,11);case d:return P?E(1,L):E(0,L+1);case i:var G=this.$locale().weekStart||0,Y=(x<G?x+7:x)-G;return E(P?v-Y:v+(6-Y),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()}},M.endOf=function(k){return this.startOf(k,!1)},M.$set=function(k,O){var B,P=D.p(k),F="set"+(this.$u?"UTC":""),E=(B={},B[c]=F+"Date",B[m]=F+"Date",B[d]=F+"Month",B[u]=F+"FullYear",B[s]=F+"Hours",B[r]=F+"Minutes",B[l]=F+"Seconds",B[a]=F+"Milliseconds",B)[P],V=P===c?this.$D+(O-this.$W):O;if(P===d||P===u){var x=this.clone().set(m,1);x.$d[E](V),x.init(),this.$d=x.set(m,Math.min(this.$D,x.daysInMonth())).$d}else E&&this.$d[E](V);return this.init(),this},M.set=function(k,O){return this.clone().$set(k,O)},M.get=function(k){return this[D.p(k)]()},M.add=function(k,O){var B,P=this;k=Number(k);var F=D.p(O),E=function(L){var v=I(P);return D.w(v.date(v.date()+Math.round(L*k)),P)};if(F===d)return this.set(d,this.$M+k);if(F===u)return this.set(u,this.$y+k);if(F===c)return E(1);if(F===i)return E(7);var V=(B={},B[r]=o,B[s]=n,B[l]=t,B)[F]||1,x=this.$d.getTime()+k*V;return D.w(x,this)},M.subtract=function(k,O){return this.add(-1*k,O)},M.format=function(k){var O=this,B=this.$locale();if(!this.isValid())return B.invalidDate||g;var P=k||"YYYY-MM-DDTHH:mm:ssZ",F=D.z(this),E=this.$H,V=this.$m,x=this.$M,L=B.weekdays,v=B.months,U=B.meridiem,G=function(J,oe,ae,ye){return J&&(J[oe]||J(O,P))||ae[oe].slice(0,ye)},Y=function(J){return D.s(E%12||12,J,"0")},X=U||function(J,oe,ae){var ye=J<12?"AM":"PM";return ae?ye.toLowerCase():ye};return P.replace(b,function(J,oe){return oe||function(ae){switch(ae){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return x+1;case"MM":return D.s(x+1,2,"0");case"MMM":return G(B.monthsShort,x,v,3);case"MMMM":return G(v,x);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return G(B.weekdaysMin,O.$W,L,2);case"ddd":return G(B.weekdaysShort,O.$W,L,3);case"dddd":return L[O.$W];case"H":return String(E);case"HH":return D.s(E,2,"0");case"h":return Y(1);case"hh":return Y(2);case"a":return X(E,V,!0);case"A":return X(E,V,!1);case"m":return String(V);case"mm":return D.s(V,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return F}return null}(J)||F.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(k,O,B){var P,F=this,E=D.p(O),V=I(k),x=(V.utcOffset()-this.utcOffset())*o,L=this-V,v=function(){return D.m(F,V)};switch(E){case u:P=v()/12;break;case d:P=v();break;case p:P=v()/3;break;case i:P=(L-x)/6048e5;break;case c:P=(L-x)/864e5;break;case s:P=L/n;break;case r:P=L/o;break;case l:P=L/t;break;default:P=L}return B?P:D.a(P)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return w[this.$L]},M.locale=function(k,O){if(!k)return this.$L;var B=this.clone(),P=A(k,O,!0);return P&&(B.$L=P),B},M.clone=function(){return D.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},$}(),R=T.prototype;return I.prototype=R,[["$ms",a],["$s",l],["$m",r],["$H",s],["$W",c],["$M",d],["$y",u],["$D",m]].forEach(function($){R[$[1]]=function(M){return this.$g(M,$[0],$[1])}}),I.extend=function($,M){return $.$i||($(M,T,I),$.$i=!0),I},I.locale=A,I.isDayjs=_,I.unix=function($){return I(1e3*$)},I.en=w[N],I.Ls=w,I.p={},I}()),Ol.exports}var Sc=kc(xc()),Bl=typeof global=="object"&&global&&global.Object===Object&&global,_c=typeof self=="object"&&self&&self.Object===Object&&self,tt=Bl||_c||Function("return this")(),It=tt.Symbol,Vl=Object.prototype,Tc=Vl.hasOwnProperty,Nc=Vl.toString,ro=It?It.toStringTag:void 0,Ac=Object.prototype.toString,Ll=It?It.toStringTag:void 0;function Lo(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Ll&&Ll in Object(t)?function(o){var n=Tc.call(o,ro),a=o[ro];try{o[ro]=void 0;var l=!0}catch{}var r=Nc.call(o);return l&&(n?o[ro]=a:delete o[ro]),r}(t):function(o){return Ac.call(o)}(t)}function Fl(t){return t!=null&&typeof t=="object"}function $l(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function Ec(t){if(!$l(t))return!1;var o=Lo(t);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[object Proxy]"}var Il,jn=tt["__core-js_shared__"],Dl=(Il=/[^.]+$/.exec(jn&&jn.keys&&jn.keys.IE_PROTO||""))?"Symbol(src)_1."+Il:"",Oc=Function.prototype.toString;function Ct(t){if(t!=null){try{return Oc.call(t)}catch{}try{return t+""}catch{}}return""}var Bc=/^\[object .+?Constructor\]$/,Vc=Function.prototype,Lc=Object.prototype,Fc=Vc.toString,$c=Lc.hasOwnProperty,Ic=RegExp("^"+Fc.call($c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dc(t){return!(!$l(t)||(o=t,Dl&&Dl in o))&&(Ec(t)?Ic:Bc).test(Ct(t));var o}function wt(t,o){var n=function(a,l){return a==null?void 0:a[l]}(t,o);return Dc(n)?n:void 0}var Rn=wt(tt,"WeakMap");(function(){try{var t=wt(Object,"defineProperty");return t({},"",{}),t}catch{}})();function vl(t){return Fl(t)&&Lo(t)=="[object Arguments]"}var Ml=Object.prototype,vc=Ml.hasOwnProperty,Mc=Ml.propertyIsEnumerable;vl(function(){return arguments}());var Pl=typeof he=="object"&&he&&!he.nodeType&&he,jl=Pl&&typeof module=="object"&&module&&!module.nodeType&&module,Rl=jl&&jl.exports===Pl?tt.Buffer:void 0;Rl&&Rl.isBuffer;var Ul=typeof he=="object"&&he&&!he.nodeType&&he,io=Ul&&typeof module=="object"&&module&&!module.nodeType&&module,Un=io&&io.exports===Ul&&Bl.process,Dt=function(){try{var t=io&&io.require&&io.require("util").types;return t||Un&&Un.binding&&Un.binding("util")}catch{}}();Dt&&Dt.isTypedArray,wt(Object,"create");var zn=wt(tt,"Map"),Gn=wt(tt,"DataView"),Hn=wt(tt,"Promise"),Wn=wt(tt,"Set"),zl="[object Map]",Gl="[object Promise]",Hl="[object Set]",Wl="[object WeakMap]",Yl="[object DataView]",Pc=Ct(Gn),jc=Ct(zn),Rc=Ct(Hn),Uc=Ct(Wn),zc=Ct(Rn),vt=Lo;(Gn&&vt(new Gn(new ArrayBuffer(1)))!=Yl||zn&&vt(new zn)!=zl||Hn&&vt(Hn.resolve())!=Gl||Wn&&vt(new Wn)!=Hl||Rn&&vt(new Rn)!=Wl)&&(vt=function(t){var o=Lo(t),n=o=="[object Object]"?t.constructor:void 0,a=n?Ct(n):"";if(a)switch(a){case Pc:return Yl;case jc:return zl;case Rc:return Gl;case Uc:return Hl;case zc:return Wl}return o}),tt.Uint8Array;var ql=It?It.prototype:void 0;ql&&ql.valueOf,Dt&&Dt.isMap,Dt&&Dt.isSet;const Kl=(t,o)=>{const n=Object.assign({dayjs:Sc},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},Mt=(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=Kl(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," ")),t=t.replace(/Qfw\((.*?)\)/,(i,d)=>o!=null&&o.Qfw?o==null?void 0:o.Qfw(d):d)},pe=(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 Gc(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 Hc=(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}},Wc=(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}},Pt=(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=Kl(c)),t=t.replace(s,i)}catch{t=t.replace(s,c)}}return t};function Yc(t){return t.isShowMarkLine?{markLine:{data:[{type:t.markLineType}]}}:{}}const qc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=gt(()=>{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 S="",_=t.labelFormatter;_===""&&(_="{c}");const{seriesName:A,name:I,value:D,data:T}=w||{};return S+=Mt(_,{textData:Object.assign({name:I,value:D,a:A,b:I,c:D||0},T)},{useNewline:!0,useSpace:!0}),S}},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 S=[];for(const _ of w){const A=parseFloat(_);isNaN(A)||S.push(A)}h.itemStyle.barBorderRadius=S}}t.isShowMarkLine&&(h.markLine={data:[{type:t.markLineType}]}),b.push(h)}return b}),i=gt(()=>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+=`${Pt(l,N)}<br/>`}u+=Mt(m,{textData:Object.assign({marker:C,name:f,value:h,Qfw:Gc,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
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=Mt(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: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:d=>(typeof d!="string"||d[0]!=="0"||isNaN(+d)||(d=(+d).toString()),Pt(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?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:d=>Pt(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:dt(c)}},
|
|
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},td=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=gt(()=>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=gt(()=>{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 _=[];for(const S of w){const A=parseFloat(S);isNaN(A)||_.push(A)}N.borderRadius=_}}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=gt(()=>{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=>Pt(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+=Mt(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: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(c),series:dt(s)}},od=(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 Jc(a,l,r);case"line":return Zc(a,l,r);case"pie":return ed(a,l,r);case"comboGraph":return td(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 b;const n=Z.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Zl(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],g=[];for(const f of m){const h=ft((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>er(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=er(N,o),_={};return N!=null&&N.dateFormat&&(_.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,..._}});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:_,dataType:S="component",customValue:A}=h,I=Jl(h);Yn({sqlCondition:I,renderUsedComponents:o,id:y,dateFormat:_,prop:w,keyName:N,dataType:S,customValue:A}),u.push(I)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ft(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},so=(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||""};Yn({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 Jl(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 nd=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Zl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Zl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:c="component",customValue:i}=n,d=Jl(n);Yn({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 nd)delete n[p]}}function Yn(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(pe(f,"date")){let N;if(h?N=me():N=me(g),b&&g){const{mode:w,type:_,value:S}=b;if(S)switch(_){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:_,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 I=null;if(h&&(A==="startTime"?I=me().subtract(N,w):A==="endTime"&&(I=me())),m[A]&&(I=me(m[A])),b){const{type:D,value:T,mode:R}=b;switch(D){case"add":I=I&&I.add(T,R);break;case"minus":I=I&&I.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(_&&S){const D=me(S).diff(me(_),p)+1;switch(u){case"add":I=I&&I.add(D,p);break;case"minus":I=I&&I.subtract(D,p)}}}else if(!isNaN(+d))switch(u){case"add":I=I&&I.add(d,p);break;case"minus":I=I&&I.subtract(d,p)}}if(I&&(o.fieldValue=I==null?void 0:I.format(y)),A==="rangeValue"&&_&&S){const D=ad(y);D&&(o.fieldValue=me(S).diff(me(_),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 Fo=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 er(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 ad(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 ld(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=rd(a))}}return n}function rd(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 tr=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],or=t=>({0:"文本",1:"数值",2:"日期"})[t],nr=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("、")},ar=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("、")},lr=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",id=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ha,CaretDownOutlined:za,LoadingOutlined:Us,Draggable:Bt,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(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 I;A!=null&&A.isLeaf||(I=A.dataViewColumns)==null||I.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 I={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};S?(S.loading=!0,I.indexTypeGuid=S.indexTypeGuid,I.isLeaf=S.isLeaf):d&&(I.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${Se}/diagram/sourceList`,I,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:$={}}=T.data;if(R){const{rows:M=[],total:k=0}=$;M==null||M.forEach(O=>{var B;(S==null?void 0:S.isLeaf)==="1"||t.graphicConfig.dataSourceId?(B=O.dataViewColumns)==null||B.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):O.show=!1}),S?(S.children=M,S.show=!0,M!=null&&M.length||(S.noData=!0)):(c.value=e.unref(c).concat(M),d.totalResult=+k,((D=e.unref(c))==null?void 0:D.length)>=k&&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:I=[]}=A;I!=null&&I.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:or,mapScope:tr,getLoadType:nr,getUseType:ar,getSourceType:lr}}}),vy="",sd={key:0,class:"no-data"},cd={class:"column-item"},dd=["onClick"],pd={key:3,class:"item-name"},ud={key:0},fd={class:"column-item"},md={key:0},hd={key:1},bd={key:2},yd={key:3},gd=["onClick"],Cd={class:"column-child-item"},wd={class:"field"},kd={class:"column-child-item-name"};function xd(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",sd,"暂无数据")):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",cd,[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",pd,e.toDisplayString(C.indexTypeCode+"."+C.indexTypeName),1)):e.createCommentVNode("",!0)],8,dd)]),C.show?(e.openBlock(),e.createElementBlock("div",ud,[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",fd,[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",md,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",hd,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0),C.dataTo?(e.openBlock(),e.createElementBlock("div",bd,"数据来源:"+e.toDisplayString(t.getSourceType(C.dataTo)),1)):e.createCommentVNode("",!0),C.meaning?(e.openBlock(),e.createElementBlock("div",yd,"指标含义:"+e.toDisplayString(C.meaning),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,gd)]),_: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",Cd,[e.createElementVNode("span",wd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",kd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const _d=ne(id,[["render",xd],["__scopeId","data-v-eb6815db"]]),Sd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ha,CaretDownOutlined:za,IndSourceList:_d,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Bt,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(Ve)),a=e.inject(Le),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(Qt),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:I,data:D={}}=A.data;if(I){const{rows:T=[],total:R=0}=D;T==null||T.forEach($=>{var M;$.show=!1,(M=$.dataViewColumns)==null||M.forEach(k=>{k.show=!0,k.edit=!1,k.title&&(k.label=k.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=Z.debounce(()=>{d.currentPage=1,m()},200),f=(S,A)=>{d.pageSize=A,d.currentPage=S,m()};e.onMounted(()=>{m()});const h=e.inject(be),y=e.computed(()=>{const S=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const I in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),I)&&S.includes(I)){const D=e.unref(h)[I];Array.isArray(D)&&(A=A.concat(D))}return A}),N=(S=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const I of e.unref(y))if(!S.find(T=>T.parentId===I.parentId)){A=!0;break}}else for(const I of e.unref(y))if(!S.find(T=>T.typeGuid===I.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:g,mapScope:tr,mapDataSetScope:or,onSearch:C,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(S,A)=>{const I=A.dataViewColumns[S.oldIndex];let D={};A.dataSetParams&&(D=A.dataSetParams),I&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...I,dataTo:A.dataTo,dataSetParams:D,meaning:A.meaning,theFormula:A.theFormula,theUnit:A.theUnit})),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:lr,getLoadType:nr,getUseType:ar,graphicConfig:h,indSourceRef:i}}}),My="",Td={class:"data-source-list"},Nd={class:"columns"},Ad={class:"column-item"},Ed={key:0},Od={key:1},Bd={key:2},Vd=["onClick"],Ld={key:0},Fd={class:"column-child-item"},$d={class:"column-child-item-name"};function Id(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",Td,[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",Nd,[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",Ad,[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",Ed,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",Od,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0),C.meaning?(e.openBlock(),e.createElementBlock("div",Bd,"指标含义:"+e.toDisplayString(C.meaning),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,Vd)]),_:2},1024)]),C.show?(e.openBlock(),e.createElementBlock("div",Ld,[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",Fd,[e.createTextVNode(" 【"+e.toDisplayString(f.scope==="FIELD"?t.mapDataSetScope(f.genericType):t.mapScope(f.scope))+"】 ",1),e.createElementVNode("span",$d,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 Dd=ne(Sd,[["render",Id],["__scopeId","data-v-0a17825c"]]),vd=e.defineComponent({name:"DataList",components:{DataSourceList:Dd,DataViewList:fi},setup(){return{source:e.inject(Qt)}}});function Md(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 Pd=ne(vd,[["render",Md]]),rr={mounted(t){t.focus()}},jd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Bt,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:Xa},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(be),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(M=>!e.unref(u).find(k=>k.columnName===M.name)||T.columnName===M.name),$=[];return R.forEach((M,k)=>{$.includes(M.name)?M.name=`${M.name}_ecanrepeat_${k}`:$.push(M.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 k,O;const T=((k=e.unref(r)[t.type])==null?void 0:k.slice())||[],R=T[t.index],{label:$,name:M}=t.item;e.unref(p)==="2"?R.sort={label:$,columnName:M,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((O=e.unref(u))!=null&&O.length?R.sort=Z.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=Z.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[Z.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 M=($=(R=t.item)==null?void 0:R.sort)==null?void 0:$.customOrderColumns;M==null?g():d.value=M}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(M=>M.name===T);$&&(R.label=$.label,$.defaultCode?R.defaultCode=$.defaultCode:delete R.defaultCode)}}}}}),Py="",Rd={class:"button-wrapper"},Ud={class:"list-wrapper"},zd={class:"button-wrapper"},Gd={class:"sort-item"};function Hd(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",Rd,[e.createVNode(s,{primary:"",onClick:t.onAddSort},{default:e.withCtx(()=>[e.createTextVNode(" 新增 ")]),_:1},8,["onClick"])]),e.createElementVNode("div",Ud,[(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",zd,[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",Gd,e.toDisplayString(C),1)]),_:1},8,["modelValue","onChange"])]),_:1})]),_:1},8,["activeKey"])]),_:1},8,["visible","onCancel"])}const Wd=ne(jd,[["render",Hd],["__scopeId","data-v-6a468e35"]]),Yd=e.defineComponent({name:"CustomGroupModal",directives:{focus:rr},components:{CloseOutlined:to,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 x=e.unref(p).map(L=>L.title);return new Set(x)}),m=e.ref([]);e.watch(()=>e.unref(p).length,x=>{m.value=new Array(x).fill(!1)});const g=e.computed(()=>{let x=0;return e.unref(p).forEach(L=>{var v;(v=L.data)==null||v.forEach(U=>{U.checked&&x++})}),x}),C=()=>{const x=e.unref(c);if(!x){j.message.error("创建分组名不能空");return}e.unref(u).has(x)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:x,data:[]}),r=!0,c.value="")},b=()=>{var v,U;const x=e.unref(i);if(!x){j.message.error("值名称不能空");return}let L=!0;if((v=e.unref(p))!=null&&v.length)for(const G of e.unref(p)){if((U=G==null?void 0:G.data)!=null&&U.length){for(const Y of G.data)if(Y.label===x){L=!1;break}}if(!L)break}L?(e.unref(p)[0].data.push({label:x,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=x=>{e.unref(p).splice(x,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(g)===0){j.message.error("当前移入分组已选个数为0");return}const x=e.unref(h);if(x==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[x]){j.message.error("移入分组不存在,请重新选择");return}const L=[],v=e.unref(p).length;for(let U=0;U<v;U++){const G=e.unref(p)[U];e.unref(p)[U].data=G.data.filter(Y=>(Y.checked&&L.push({...Y,checked:!1}),!Y.checked))}e.unref(p)[x].data=[...L,...e.unref(p)[x].data],r=!0},N=x=>{e.unref(m)[x]=!0},w=x=>{e.unref(m)[x]=!1},_=(x,L)=>{const v=x.target.value;e.unref(u).has(v)&&j.message.error("组名不能相同,请修改"),e.unref(p)[L].title=v,r=!0},S=e.inject(be),A=e.inject(Ae),I=e.computed(()=>e.unref(S).source),D=e.computed(()=>e.unref(S).dataViewId),T=e.ref(!1),R=()=>{var X,J;const x=e.unref(p);let L="";e.unref(T)&&(L=(X=x[0])==null?void 0:X.title);const v=x==null?void 0:x.length,U={};for(let oe=1;oe<v;oe++){const ae=x[oe]||{},{title:ye,data:ce}=ae;U[ye]=(ce==null?void 0:ce.map(ge=>ge.label))||[]}const G=((J=e.unref(S)[t.type])==null?void 0:J.slice())||[],Y=G[t.index];Y.customGroup={groupInfoMap:U,otherGroupName:L},A({[t.type]:G})},$=e.ref(!1),M=()=>{$.value=!0},k=()=>{$.value=!1},O=()=>{k(),r&&R(),r=!1},B=()=>{r=!0},P=new Set,F=async()=>{const x=t.item.customGroup||{},L=x.otherGroupName,v=x.groupInfoMap;(L===""||L==null)&&(T.value=!1),e.unref(p)[0]={title:L||"未分组",data:[]};let U=1;for(const G in v)if(Object.prototype.hasOwnProperty.call(v,G)){const X=v[G].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:G,data:X},U++}await E()},E=async()=>{var x;try{const L=await n.post(`${Se}/diagram/groupvalue`,{source:e.unref(I),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:v,data:U=[]}=L.data;if(v){const G=[];(x=U==null?void 0:U.slice(0,200))==null||x.forEach(Y=>{P.has(Y)||G.push({label:Y,checked:!1})}),e.unref(p)[0].data=G}}catch(L){console.error(L)}};return e.watch($,x=>{x&&F(),window.changeShowTable&&window.changeShowTable(!x)},{flush:"post"}),o({showModal:M}),{visible:$,title:s,activeKey:d,customGroupList:p,onCancel:O,useOtherGroup:T,selectCount:g,createGroupTitle:c,createValueTitle:i,onAddGroup:C,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:_,onFinishEditTitle:w,onUseOtherGroup:B,onAddValue:b,customGroupEditTitleList:m}}}),jy="",Ry="",qd={class:"custom-group-header"},Kd={class:"move-and-create"},Xd={class:"select-tip"},Qd={class:"select-count"},Jd={style:{display:"flex","align-items":"center"}},Zd={class:"create-group"},ep={class:"create-group",style:{"margin-left":"40px"}},tp={class:"custom-group-content"},op=["onClick"],np={class:"extra"},ap={class:"custom-group-list"},lp={class:"text"};function rp(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",qd,[e.createElementVNode("div",Kd,[e.createElementVNode("div",null,[e.createElementVNode("span",Xd,[e.createTextVNode(" 已选"),e.createElementVNode("span",Qd,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",Jd,[e.createElementVNode("div",Zd,[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",ep,[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",tp,[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,op))]),extra:e.withCtx(()=>[e.createElementVNode("div",np,[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",ap,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.data,(w,_)=>(e.openBlock(),e.createBlock(g,{color:"red",checked:w.checked,"onUpdate:checked":S=>w.checked=S,class:"custom-group",key:_},{default:e.withCtx(()=>[e.createElementVNode("span",lp,e.toDisplayString(w.label),1)]),_:2},1032,["checked","onUpdate:checked"]))),128))])]),_:2},1024))),128))]),_:1},8,["activeKey"])])]),_:1},8,["title","visible","onCancel"])}const ip=ne(Yd,[["render",rp],["__scopeId","data-v-8e480e07"]]);let he=(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 sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},qn={},cp={get exports(){return qn},set exports(t){qn=t}};(function(t,o){(function(n,a){t.exports=a()})(sp,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)}}})})(cp);const dp=qn;me.extend(dp);const pp=e.defineComponent({name:"Condition",components:{CloseOutlined:to,DownOutlined:$s,AppstoreAddOutlined:mn,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:Nn},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,Re,Qe,ht,At,Je,lt,Ue,Et,rt,ko,Ko,Xo,Kt;const o=(Yt=window==null?void 0:window.config)==null?void 0:Yt.pageId,n=e.inject(be),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ya),s=e.inject(ze),c=e.ref(!1),i=me(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:ie="",id:se="",type:de}=te;de==="ecanRangePicker"?W.push({value:`${se}-startTime`,label:`${ie||se}-开始时间值`,keyName:`${ie||se}-startTime`,id:se},{value:`${se}-endTime`,label:`${ie||se}-结束时间值`,keyName:`${ie||se}-endTime`,id:se}):W.push({value:se,label:`${ie||se}`,keyName:`${ie||se}`,id:se})}),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"}],_=e.ref({fieldName:(qt=t.data)==null?void 0:qt.fieldName,fieldType:(Re=t.data)==null?void 0:Re.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(ht=t.data)==null?void 0:ht.id,fieldValue:S(),label:(At=t.data)==null?void 0:At.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(lt=t.data)==null?void 0:lt.indexCode,indexCodeNum:(Ue=t.data)==null?void 0:Ue.indexCodeNum,dataType:((Et=t.data)==null?void 0:Et.dataType)||"",componentId:((rt=t.data)==null?void 0:rt.componentId)||"",useCurrentTime:!!((ko=t.data)!=null&&ko.useCurrentTime),keyValue:(Ko=t.data)==null?void 0:Ko.keyValue,modelKey:(Xo=t.data)==null?void 0:Xo.modelKey,prop:(Kt=t.data)==null?void 0:Kt.prop});function S(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&me(te);if(K==="component"){const ie=e.unref(d).find(se=>se.keyName===te);return ie?ie.value:te}else return te}const A=e.ref([]),I=e.ref(!1),D=e.computed(()=>_.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const ie=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],se=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(ie.includes(W)){let de=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!se.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(ie.includes(Te)?de=de.concat(Ze.filter(it=>it.show)):de=de.concat(Ze))}te=de}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(de=>({...de,label:de.label||de.title,value:de.name}))}),{updateCondition:R,deleteCondition:$,addCondition:M}=e.inject(_o,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),k=()=>{$(t.index,t.path)};e.watch(_,W=>{const K=Z.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=>{_.value.fieldValue="",_.value.useCurrentTime=W});const O=W=>{var z;const K=e.unref(T).find(H=>H.value===W)||{},{name:te,genericType:ie,id:se,edvDataSetId:de,label:Te,typeGuid:Ze,indexCode:it,indexCodeNum:Xt}=K;_.value={id:se,fieldName:te,fieldType:ie,label:Te,rule:"",fieldValue:ie==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:it,edvDataSetId:de,indexCodeNum:Xt,dataType:"",useCurrentTime:!1,keyValue:((z=e.unref(_))==null?void 0:z.keyValue)||he(),modelKey:"",prop:""}},B=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(_).componentId=K.id||""},P=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"}]}),F=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(_).rule);return K&&(W=K.label),W}),E=e.computed(()=>{let W={fontSize:"12px"};return e.unref(F)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),x=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(_).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&&(V.value=(W=ie==null?void 0:ie.slice(0,200))==null?void 0:W.map(se=>({label:se,value:se})))}catch(K){console.error(K)}},L=W=>{e.unref(_).rule=W,e.unref(_).fieldValue=e.unref(_).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&x()},v=W=>{e.unref(_).dataType=W,e.unref(_).fieldValue="",e.unref(_).modelKey="",e.unref(_).prop=""},U=e.ref(),G=W=>{U.value=W,e.unref(_).fieldValue=(W==null?void 0:W.join(","))||""},Y=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 se,de,Te,Ze,it,Xt,z,H,q,Q;if(_.value.dataType=((se=t.data)==null?void 0:se.dataType)||"",_.value.componentId=((de=t.data)==null?void 0:de.componentId)||"",_.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,_.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,_.value.prop=(it=t.data)==null?void 0:it.prop,e.unref(_).fieldType==="DATE"){const{activeKey:le,dateCalcTypes:re=[]}=t.data||{};if(e.unref(_).dateFormat=(Xt=t.data)==null?void 0:Xt.dateFormat,e.unref(_).activeKey=le,e.unref(_).calcWays=((z=t.data)==null?void 0:z.calcWays)||[],e.unref(_).dateCalcTypes=re,e.unref(_).useCurrentTime&&e.unref(_).dataType!=="component"&&(c.value=!0),le===5){const ee=e.unref(_).calcWays[0];if(ee){const ue=ee.split("-");e.unref(f).expression=ue[0],e.unref(f).around=ue[1]}e.unref(f).unit=re[0]||"YEAR"}else{e.unref(_).radioValue=((H=t.data)==null?void 0:H.radioValue)||"";const ee=e.unref(h).find(ue=>{var Ce;return ue.key===((Ce=t.data)==null?void 0:Ce.activeKey)});ee&&ge(ee,t.data)}}else U.value=((Q=(q=t.data)==null?void 0:q.fieldValue)==null?void 0:Q.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=_.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&x();const{source:ie}=e.unref(n);ie==="EDV_DATA_SET"&&await a.get(`${Se}/dataset/`+e.unref(n).edvDataSetId||"",{headers:{Authentication:l,operateContext:"ygt"}}).then(le=>{le.data.success&&(console.log(le.data),A.value=le.data.data.column.map(re=>({...re,genericType:re.columnCategory==="0"?"TEXT":re.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:le.data.data.id,name:re.columnName,label:re.columnName})))}).catch(le=>{console.error(le)})});const X=W=>{if(e.unref(_).activeKey===W){e.unref(h)[W].radioValue=e.unref(_).radioValue,e.unref(h)[e.unref(_).activeKey]&&(e.unref(h)[e.unref(_).activeKey].radioValue=e.unref(_).radioValue,e.unref(_).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(_).calcWays[0]:e.unref(_).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(_).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,ie=K.type,se=e.unref(_).dateFormat,de=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,ie,se,de,Te)},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,se=e.unref(_).radioValue;let de=0,Te=0;return se==="1"?de=Math.abs(e.unref(_).calcWays[0]):se==="2"&&(Te=e.unref(_).calcWays[0]),at(se,te,ie,de,Te)},ae=(W,K,te,ie)=>{if(g.value=!0,K.radioValue===ie){const se=W.target.value;te==="+"?K.value=me().add(se,K.type).format(e.unref(_).dateFormat):K.value=me().subtract(se,K.type).format(e.unref(_).dateFormat)}},ye=(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},ce=()=>{e.unref(_).activeKey=5,e.unref(_).dateCalcTypes=[e.unref(f).unit],e.unref(_).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,I.value=!1};function ge(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 at(W,K,te,ie,se){if(W==="1")return me().subtract(ie,K).format(te);if(W==="2")return me().add(se,K).format(te);if(W==="3"){if(K==="years")return me().startOf("year").format(te);if(K==="quarters")return me().startOf("quarter").format(te);if(K==="months")return me().startOf("month").format(te);if(K==="days")return me().format(te)}else if(W==="4"){if(K==="years")return me().endOf("year").format(te);if(K==="quarters")return me().endOf("quarter").format(te);if(K==="months")return me().endOf("month").format(te)}return""}const Wt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Nt=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(_).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:O,condition:_,valueOptions:V,onRuleChange:L,onDataTypeChange:v,onFieldValueSelectChange:G,fieldValues:U,onDelete:k,isDateType:D,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:F,downIconStyle:E,popoverVisible:I,dateRadioStyle:C,showTime:g,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Nt,handleMenuClick:Y,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:ae,okDatePickConfig:ye,onChangeComponent:B,filterOption:Wt,okCustomConfig:ce,clickConditionMenu:({key:W})=>{M(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),Uy="",zy="",up={class:"condition"},fp=["title"],mp={class:"rule"},hp={class:"data-type"},bp={key:0,class:"field-value",style:{display:"flex","align-items":"center"}},yp={class:"popover-content-wrap"},gp={key:0,class:"use-current-time"},Cp={class:"tabFilterRadio"},wp={key:0},kp={key:1},xp={style:{"margin-left":"10px"}},_p={style:{"margin-left":"10px"}},Sp={style:{position:"absolute",bottom:"10px"}},Tp={style:{display:"flex"}},Np={style:{position:"absolute",bottom:"10px",left:"0","text-align":"center",width:"100%"}};function Ap(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"),_=e.resolveComponent("a-tabs"),S=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),I=e.resolveComponent("menu-outlined"),D=e.resolveComponent("close-outlined");return e.openBlock(),e.createElementBlock("div",up,[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,fp)]),_:2},1032,["value"]))),128))]),_:1},8,["value","onChange"]),e.createElementVNode("div",mp,[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,M=>(e.openBlock(),e.createBlock(i,{key:M.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value&&t.condition.dateFormat===M.value?"color: #1890FF;":"")},e.toDisplayString(M.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",hp,[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",bp,[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",yp,[t.condition.dataType!=="component"?(e.openBlock(),e.createElementBlock("div",gp,[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(_,{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",Cp,[e.createVNode(N,{value:T.radioValue,"onUpdate:value":$=>T.radioValue=$,onChange:$=>t.changeRadioValue($,T)},{default:e.withCtx(()=>[t.showTime?(e.openBlock(),e.createElementBlock("div",wp,"相对当前时间:"+e.toDisplayString(T.value),1)):(e.openBlock(),e.createElementBlock("div",kp,"相对当前时间:"+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",xp,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",_p,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",Sp,[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",Tp,[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",Np,[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(I,{class:"more-icon"})]),_:1}),e.createVNode(D,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const Ep=ne(pp,[["render",Ap],["__scopeId","data-v-29a39def"]]),Op=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},type:{type:String,default:""},path:{type:String,default:""}},components:{Condition:Ep}}),Gy="",Bp={key:0,class:"condition-list"},Vp={key:0,class:"condition-container"},Lp={key:0,class:"condition-text"},Fp={key:1,class:"condition-text"},$p={class:"conditions"};function Ip(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",Bp,[(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",Vp,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Lp,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Fp,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",$p,[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 Dp=ne(Op,[["render",Ip],["__scopeId","data-v-553c1496"]]),vp=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=Z.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),Hy="",ir=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),Mp={class:"truncations"},Pp={class:"rule"},jp={class:"field-value"},Rp={class:"field-value"},Up=ir(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),zp=ir(()=>e.createElementVNode("div",{class:"text"},"分组",-1)),Gp=["onClick"];function Hp(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",Mp,[(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",Pp,[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",jp,[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",Rp,[Up,e.createVNode(i,{value:d.name,"onUpdate:value":u=>d.name=u,style:{width:"100px",margin:"0 10px"}},null,8,["value","onUpdate:value"]),zp]),e.createElementVNode("div",{class:"clear-truncation",onClick:u=>t.clearData(d)},"清空",8,Gp)]))),128))])}const Wp=ne(vp,[["render",Hp],["__scopeId","data-v-f543c690"]]),Yp=e.defineComponent({name:"FilterModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""}},components:{ConditionList:Dp,TruncationList:Wp,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 O;return`添加过滤条件-${((O=t.item)==null?void 0:O.label)||""}`},l=e.inject(be),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var O;return(O=e.unref(l))==null?void 0:O.dataSourceId}),i=e.inject(Le),d=e.inject(So),p=e.ref([]),u=e.ref([]),m=e.ref(!1),g=e.inject(Qt),C=O=>{var B;for(const P of O)(B=P.conditions)!=null&&B.length?C(P.conditions):P.keyValue=he()};e.watch(m,O=>{var B,P,F,E;if(O){if(Array.isArray((B=t.item)==null?void 0:B.conditions)){const V=Z.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);C(V),p.value=V}Array.isArray((F=t.item)==null?void 0:F.truncations)?u.value=Z.cloneDeep((E=t.item)==null?void 0:E.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!O)},{flush:"post"});let b=!1;const f=O=>{var B;b=!0,e.unref(p)==null||((B=e.unref(p))==null?void 0:B.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==O?p.value=[{join:O,conditions:[e.unref(p)[0],{keyValue:he()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===O&&p.value[0].conditions.push({keyValue:he()}))};e.provide(_o,{updateCondition(O,B,P){var V;b=!0;let F=e.unref(p);const E=P.split("-");if(E!=null&&E.length)for(const x of E)if(F[x])F=(V=F[x])==null?void 0:V.conditions;else break;Array.isArray(F)&&F[B]&&(F[B]=O)},deleteCondition(O,B){var E,V,x;b=!0;let P=e.unref(p);const F=B.split("-");if(F!=null&&F.length){for(const L of F)if(P[L])P=(E=P[L])==null?void 0:E.conditions;else break;if(Array.isArray(P)&&P[O])if(P.splice(O,1),P.length===1){if(F.length>0){const L=F.length-1,v=F[L],U=F.slice(0,L);let G=e.unref(p),Y="";for(const X of U)if(G[X])Y=(V=G[X])==null?void 0:V.join,G=(x=G[X])==null?void 0:x.conditions;else break;if(Y===P[0].join){if(Array.isArray(P[0].conditions)){const X=Z.cloneDeep(P[0].conditions);G.splice(+v,1),G.splice(+v,0,...X)}}else G[v]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(O,B,P){var x,L;b=!0;let F=e.unref(p),E="";const V=O.split("-");if(V!=null&&V.length){for(const v of V)if(F[v])E=(x=F[v])==null?void 0:x.join,F=(L=F[v])==null?void 0:L.conditions;else break;if(E===P)F.splice(B+1,0,{keyValue:he()});else{const v=Z.cloneDeep(F[B]);F[B]={join:P,conditions:[v,{keyValue:he()}]}}}}});const h=O=>{b=!0,u.value=O},y=e.computed(()=>{var B;const O=[];return(B=e.unref(s))==null||B.forEach(P=>{const{keyName:F="",id:E="",type:V}=P;V==="ecanRangePicker"?O.push({value:`${E}-startTime`,label:`${F||E}-开始时间值`,keyName:`${F||E}-startTime`},{value:`${E}-endTime`,label:`${F||E}-结束时间值`,keyName:`${F||E}-endTime`}):O.push({value:E,label:`${F||E}`,keyName:`${F||E}`})}),O}),N=()=>{var x,L,v;const O=ft(((x=e.unref(l))==null?void 0:x.controlList)||[]),B=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],P=ft(Z.cloneDeep(B[t.index].conditions));B[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((v=e.unref(u))!=null&&v.length)&&(B[t.index].truncations=e.unref(u));const F=ft(e.unref(p));for(const U of F)if(U.dataType==="component"&&U.fieldValue){const G=e.unref(y).find(Y=>Y.value===U.fieldValue);G&&(U.fieldValue=G.keyName)}const E=P.filter(U=>!F.find(G=>G.componentId===U.componentId)).filter(U=>!O.find(G=>G.id===U.componentId)),V=F.filter(U=>!P.find(G=>G.componentId===U.componentId));w(E,V),r({[t.type]:B,sqlConditions:Ql({...e.unref(l),[t.type]:B},e.unref(s))})};function w(O,B){var F;const P=O.map(E=>({...E,delete:!0})).concat(B.map(E=>({...E,add:!0})));for(const E of P){const V=e.unref(s).find(x=>x.id===E.componentId);if(V){const{type:x,id:L,events:v=[]}=V,U=Fo(x);if(E.add)v.find(G=>{var Y;return G.on===U&&G.target===((Y=e.unref(i))==null?void 0:Y.id)&&G.emit==="refreshData"})||d({id:L,events:[...v,{on:U,target:(F=e.unref(i))==null?void 0:F.id,emit:"refreshData"}].reverse()});else if(E.delete){const G=v.findIndex(Y=>{var X;return Y.on===U&&Y.target===((X=e.unref(i))==null?void 0:X.id)&&Y.emit==="refreshData"});G!==-1&&(v.splice(G,1),d({id:L,events:v}))}}}}const _=()=>{m.value=!0},S=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,S()},I=()=>{S()},D=e.inject(Be),T=e.unref(e.inject(Ve)),R=(k=window==null?void 0:window.config)==null?void 0:k.pageId,$=e.ref([]);e.provide(ya,$);const M=async O=>{var B;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:F}=O,E=await D.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:F},{headers:{Authentication:T,operateContext:"ygt"}}),{success:V,data:x=[]}=E.data;V&&((B=x==null?void 0:x.dataViewColumns)!=null&&B.length)&&($.value=x.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,O=>{O&&m.value&&e.unref(g)!=="EDV_DATA_SET"&&M(O)}),o({showModal:_}),{visible:m,onOk:A,onCancel:I,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:g}}}),Wy="",qp={class:"header"},Kp={class:"header"};function Xp(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",qp,[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",Kp,[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 Qp=ne(Yp,[["render",Xp],["__scopeId","data-v-38f115c6"]]),Jp=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(be),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}}}),Yy="",Zp=t=>(e.pushScopeId("data-v-de6a1755"),t=t(),e.popScopeId(),t),eu={class:"config-name"},tu=Zp(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"名称:",-1));function ou(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",eu,[tu,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 nu=ne(Jp,[["render",ou],["__scopeId","data-v-de6a1755"]]),au=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(be),l=e.inject(Ae),r=e.inject(ze),s=e.inject(Le),c=e.inject(So),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=Z.cloneDeep(y),i.value=Z.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},g=()=>{var _,S;const h=ft(((_=e.unref(a))==null?void 0:_.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(I=>I.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(I=>I.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const I=e.unref(r).find(D=>D.id===A.componentId);if(I){const{type:D,id:T,events:R=[]}=I,$=Fo(D);if(A.add)R.find(M=>{var k;return M.on===$&&M.target===((k=e.unref(s))==null?void 0:k.id)&&M.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 M=R.findIndex(k=>{var O;return k.on===$&&k.target===((O=e.unref(s))==null?void 0:O.id)&&k.emit==="refreshData"});M!==-1&&(R.splice(M,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}}}),qy="",lu=t=>(e.pushScopeId("data-v-08af1ef8"),t=t(),e.popScopeId(),t),ru={class:"sort-by-cpnt"},iu=lu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"控件:",-1));function su(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",ru,[iu,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 cu=ne(au,[["render",su],["__scopeId","data-v-08af1ef8"]]),du=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(be),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}}}),Ky="",pu=t=>(e.pushScopeId("data-v-aa1c298e"),t=t(),e.popScopeId(),t),uu={class:"dim-by-count"},fu=pu(()=>e.createElementVNode("div",{style:{"word-break":"keep-all"}},"维度:",-1));function mu(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",uu,[fu,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 hu=ne(du,[["render",mu],["__scopeId","data-v-aa1c298e"]]),Kn=(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:Kn(t,l.children)&&(n=Kn(t,l.children)))}return n},bu=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:Bs},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(be),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(()=>{var R;let T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d));return(R=e.unref(p))!=null&&R.length&&(T=e.unref(d).concat(e.unref(p))),t.mode==="edit"?(T==null?void 0:T.filter($=>{var M;return $.id!==((M=t.item)==null?void 0:M.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 M=document.selection.createRange();M.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const M=R.selectionStart,k=R.selectionEnd;let O=M;$=$.substring(0,M)+T+$.substring(k,$.length),O+=T.length,R.selectionStart=R.selectionEnd=O}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([]),_=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})},I=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,_.value=!1};return e.watch(b,T=>{const R=N.map($=>$.title.indexOf(T)>-1?Kn($.key,S.value):null).filter(($,M,k)=>$&&k.indexOf($)===M);w.value=R,b.value=T,_.value=!0}),e.onMounted(()=>{I()}),{fieldList:u,varList:m,myValue:g,calculMethods:h,funcDescsData:S,searchFuncValue:b,expandedKeys:w,autoExpandParent:_,activeKey:C,selectedElem:y,onExpand:D}}}),Xy="",Qy="",sr=t=>(e.pushScopeId("data-v-4217a6cb"),t=t(),e.popScopeId(),t),yu={class:"formula-calculation"},gu={class:"field-area"},Cu={style:{"text-align":"center",padding:"10px 0"}},wu=["onClick"],ku=["onClick"],xu={class:"cal_right_bottom"},_u={class:"cal_fu"},Su=["onClick"],Tu={class:"function-wrap"},Nu={class:"wrap-search"},Au={class:"tree-box"},Eu=sr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Ou=sr(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"示例:",-1)),Bu={key:0},Vu={style:{color:"#f50"}},Lu={key:1},Fu=["onClick"],$u={class:"cal_a"};function Iu(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",yu,[e.createVNode(b,{style:{height:"100%"}},{default:e.withCtx(()=>[e.createVNode(i,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",gu,[e.createElementVNode("div",Cu,[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,wu))),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,ku))),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",xu,[e.createElementVNode("ul",_u,[(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,Su))),128))]),e.createVNode(C,{placement:"topRight",trigger:"click",overlayClassName:"func-popover"},{content:e.withCtx(()=>[e.createElementVNode("div",Tu,[e.createElementVNode("div",Nu,[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",Au,[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",Bu,[e.createTextVNode(e.toDisplayString(f.substr(0,f.indexOf(t.searchFuncValue)))+" ",1),e.createElementVNode("span",Vu,e.toDisplayString(t.searchFuncValue),1),e.createTextVNode(" "+e.toDisplayString(f.substr(f.indexOf(t.searchFuncValue)+t.searchFuncValue.length)),1)])):(e.openBlock(),e.createElementBlock("span",Lu,e.toDisplayString(f),1)),h?(e.openBlock(),e.createElementBlock("span",{key:2,class:"insertsty",onClick:w=>t.selectedElem(f,"function")},"插入",8,Fu)):e.createCommentVNode("",!0)]),_:2},[h?{name:"title",fn:e.withCtx(()=>[e.createElementVNode("div",null,[Eu,e.createElementVNode("span",null,e.toDisplayString(y),1)]),e.createElementVNode("div",null,[Ou,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",$u,[e.createTextVNode(" 更多函数 "),e.createVNode(g,{style:{"font-size":"12px",margin:"2px 0 0 2px",color:"#1890ff"}})])]),_:1})])]),_:1})]),_:1})])}const Du=ne(bu,[["render",Iu],["__scopeId","data-v-4217a6cb"]]),vu=e.defineComponent({name:"CalculationModal",components:{FormulaCalculation:Du,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:ic},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(be),l=e.inject(Ae),r=e.inject(Le),s=e.computed(()=>e.unref(n)),c=e.computed(()=>e.unref(a)[t.type]||[]),i=e.computed(()=>{const k=["leftAxisList","rightAxisList","queryColumnList","indicators"];let O=[];for(const B of k)Object.prototype.hasOwnProperty.call(e.unref(a),B)&&(O=O.concat(e.unref(a)[B]));return O}),d={span:4},p={span:18},u={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},m={value:0,unit:"YEAR",around:"before"},g=e.ref({}),C=e.ref(),b=e.ref(!1),f=e.ref();e.watch(b,k=>{if(k)if(t.mode==="edit"){const{label:O,calcType:B,formula:P,builtInValueSource:F,builtInFormula:E,builtInCalcWay:V}=t.item;if(f.value={label:O,calcType:B,formula:P,builtInValueSource:F,builtInFormula:E,builtInCalcWay:V},E==="DATE_OFFSET"){const x=V.split("-");(x==null?void 0:x.length)===3&&(g.value={value:x[0],unit:x[1],around:x[2]})}}else t.mode==="add"&&(f.value=Z.cloneDeep(u),g.value=Z.cloneDeep(m));else f.value=Z.cloneDeep(u),g.value=Z.cloneDeep(m);window.changeShowTable&&window.changeShowTable(!k)},{immediate:!0,deep:!0});let h=!1;const y=()=>{h=!0},N=k=>{const O=e.unref(s).find(B=>B.id===k);O&&(f.value.builtInCalcWay=O.keyName),h=!0},w=()=>{var F;const k=((F=e.unref(a)[t.type])==null?void 0:F.slice())||[],{label:O,builtInFormula:B}=e.unref(f)||{},P={};if(B==="DATE_OFFSET"&&(P.builtInCalcWay=`${e.unref(g).value}-${e.unref(g).unit}-${e.unref(g).around}`),t.mode==="add"){const E=he();pe(e.unref(r).type,["indexPanel"])&&k.forEach(V=>{V.show=!1}),k.push({...e.unref(f),...P,id:E,show:!0,name:O})}else t.mode==="edit"&&(k[t.index]={...k[t.index],...e.unref(f),...P,name:O});l({[t.type]:k})},_=()=>{b.value=!0},S=()=>{b.value=!1},A=async(k,O)=>{if(O==="")return Promise.reject(new Error("请输入指标名"));{const B=e.unref(i).find(P=>P.label===O);return B?B.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},I=e.computed(()=>{let k={label:[{required:!0,validator:A,trigger:"change"}]};return f.value.calcType==="BUILT_IN"&&(k={...k,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),k}),D=()=>{C.value.validate().then(()=>{h&&w(),h=!1,S()})},T=()=>{C.value.clearValidate(),S()},R=()=>{h=!0,e.unref(f).builtInCalcWay=""},$=e.computed(()=>{let k="";const O=e.unref(f).builtInCalcWay,B=e.unref(f).builtInValueSource;if(!B||!O)return k;switch(e.unref(f).builtInFormula){case"BUILT_IN_RANK":{O==="ASC"?k="【"+B+"】由小到大在所有值中的排名":k="【"+B+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{k=`所有【】的
|
|
63
|
+
`;let f=p;if(g!=null&&g.length){for(const h of g){const y=Mt(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: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:d=>(typeof d!="string"||d[0]!=="0"||isNaN(+d)||(d=(+d).toString()),Pt(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?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:d=>Pt(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:dt(c)}},Kc=(t,o,n)=>{const a=t.yAxisLabelFormatter,l=t.xAxisLabelFormatter,{dimensions:r=[],dataset:s=[]}=o,c=gt(()=>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=gt(()=>{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)}),Yc(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+=Mt(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:dt(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=>Pt(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=>Pt(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:dt(i)}},Xc=(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 Mt(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},Qc=(t,o,n)=>{const{dimensions:a=[],dataset:l=[]}=o,r=gt(()=>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=gt(()=>{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 S=[];for(const _ of w){const A=parseFloat(_);isNaN(A)||S.push(A)}N.borderRadius=S}}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=gt(()=>{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=>Pt(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+=Mt(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: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(c),series:dt(s)}},Jc=(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 qc(a,l,r);case"line":return Kc(a,l,r);case"pie":return Xc(a,l,r);case"comboGraph":return Qc(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},Xl=(t,o)=>{var b;const n=Z.cloneDeep((t==null?void 0:t.controlList)||[]),{classificationList:a=[],rowHeaderList:l=[],dimensionList:r=[],seriesList:s=[],leftAxisList:c=[],rightAxisList:i=[],queryColumnList:d=[],indicators:p=[]}=t;Jl(n,o);const u=n,m=[...a,...l,...r,...s,...c,...i,...d,...p],g=[];for(const f of m){const h=ft((f==null?void 0:f.conditions)||[]);if(h!=null&&h.length){const y=h.filter(N=>Zl(N,o)?(N==null?void 0:N.dataType)==="component":!1).map(N=>{const w=Zl(N,o),S={};return N!=null&&N.dateFormat&&(S.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,...S}});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:S,dataType:_="component",customValue:A}=h,I=Ql(h);Yn({sqlCondition:I,renderUsedComponents:o,id:y,dateFormat:S,prop:w,keyName:N,dataType:_,customValue:A}),u.push(I)}for(let f=u.length-1;f>=0;f--){const h=u[f];h.globalCondition||ft(u).find(N=>N.alias===h.alias&&N.globalCondition)&&u.splice(f,1)}return u},so=(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||""};Yn({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 Ql(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 Zc=["keyValue","conditionKey","conditionLabel","conditionName","conditionValueType","customValue","id","keyName"];function Jl(t,o){if(t!=null&&t.length)for(const n of t)if(n!=null&&n.conditions)Jl(n.conditions,o);else{const{id:a,keyName:l,prop:r,format:s,dataType:c="component",customValue:i}=n,d=Ql(n);Yn({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 Zc)delete n[p]}}function Yn(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(pe(f,"date")){let N;if(h?N=fe():N=fe(g),b&&g){const{mode:w,type:S,value:_}=b;if(_)switch(S){case"add":N=N.add(_,w);break;case"minus":N=N.subtract(_,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:S,endTime:_}=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 I=null;if(h&&(A==="startTime"?I=fe().subtract(N,w):A==="endTime"&&(I=fe())),m[A]&&(I=fe(m[A])),b){const{type:D,value:T,mode:R}=b;switch(D){case"add":I=I&&I.add(T,R);break;case"minus":I=I&&I.subtract(T,R)}}if(d&&p&&u){if(d==="rangeValue"){if(S&&_){const D=fe(_).diff(fe(S),p)+1;switch(u){case"add":I=I&&I.add(D,p);break;case"minus":I=I&&I.subtract(D,p)}}}else if(!isNaN(+d))switch(u){case"add":I=I&&I.add(d,p);break;case"minus":I=I&&I.subtract(d,p)}}if(I&&(o.fieldValue=I==null?void 0:I.format(y)),A==="rangeValue"&&S&&_){const D=ed(y);D&&(o.fieldValue=fe(_).diff(fe(S),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 Fo=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 Zl(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 ed(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 td(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=od(a))}}return n}function od(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 er=t=>({DIM:"维度",BUILT_IN_DIM:"维度",IDX:"指标",BUILT_IN_IDX:"指标",FIELD:"数据集"})[t],tr=t=>({0:"文本",1:"数值",2:"日期"})[t],or=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("、")},nr=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("、")},ar=t=>t==="0"?"指标库":t==="1"?"视图":t==="2"?"数据集":"其他",nd=e.defineComponent({name:"IndSourceList",components:{CaretRightOutlined:Ga,CaretDownOutlined:Ua,LoadingOutlined:Ms,Draggable:Bt,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 S;const a=(S=window==null?void 0:window.config)==null?void 0:S.pageId,l=e.inject(Be),r=e.unref(e.inject(Ve)),s=e.inject("setItemDisabled",_=>!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,_=>{t.isSub&&(_==null||_.forEach(A=>{var I;A!=null&&A.isLeaf||(I=A.dataViewColumns)==null||I.forEach(D=>{D.show=!0,D.edit=!1,D.title&&(D.label=D.title)})}),c.value=_)},{deep:!0,immediate:!0});const g=()=>{var _;t.isSub||(_=e.unref(i))==null||_.removeEventListener("scroll",y)},C=async _=>{var D;if(e.unref(p))return;const A=t.graphicConfig?t.graphicConfig.dataSourceId:"";p.value=!0;const I={source:t.source,pageId:a,dataSourceId:A,indexName:u.value};_?(_.loading=!0,I.indexTypeGuid=_.indexTypeGuid,I.isLeaf=_.isLeaf):d&&(I.queryRequest={pageSize:d.pageSize,pageNum:d.currentPage});try{const T=await l.post(`${_e}/diagram/sourceList`,I,{headers:{Authentication:r,operateContext:"ygt"}}),{success:R,data:$={}}=T.data;if(R){const{rows:M=[],total:k=0}=$;M==null||M.forEach(O=>{var B;(_==null?void 0:_.isLeaf)==="1"||t.graphicConfig.dataSourceId?(B=O.dataViewColumns)==null||B.forEach(P=>{P.show=!0,P.edit=!1,P.title&&(P.label=P.title)}):O.show=!1}),_?(_.children=M,_.show=!0,M!=null&&M.length||(_.noData=!0)):(c.value=e.unref(c).concat(M),d.totalResult=+k,((D=e.unref(c))==null?void 0:D.length)>=k&&g())}_&&(_.loading=!1),p.value=!1}catch{_&&(_.loading=!1),p.value=!1}},b=async _=>{const A=c.value[_],{children:I=[]}=A;I!=null&&I.length?A.show=!A.show:!A.noData&&A.isLeaf?C(A):A.noData&&(A.show=!A.show)},f=(_,A)=>{o("onDragStart",_,A)},h=_=>{_.show=!_.show},y=_=>{_.target.scrollTop+_.target.clientHeight+20>=_.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 _=>{var A;g(),m.value=!0,d.currentPage=1,d.totalResult=0,c.value=[],u.value=_,await N(),m.value=!1,(A=e.unref(i))==null||A.addEventListener("scroll",y)};return e.onMounted(async()=>{var _;t.isSub||(N(),(_=e.unref(i))==null||_.addEventListener("scroll",y))}),e.onUnmounted(()=>{g()}),n({handleSearch:w}),{columnRef:i,sourceList:c,searchLoading:m,onToggleGroup:b,onToggleSource:h,setItemDisabled:s,onDragStart:f,mapDataSetScope:tr,mapScope:er,getLoadType:or,getUseType:nr,getSourceType:ar}}}),By="",ad={key:0,class:"no-data"},ld={class:"column-item"},rd=["onClick"],id={key:3,class:"item-name"},sd={key:0},cd={class:"column-item"},dd={key:0},pd={key:1},ud={key:2},fd={key:3},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"),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",ad,"暂无数据")):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",ld,[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",id,e.toDisplayString(C.indexTypeCode+"."+C.indexTypeName),1)):e.createCommentVNode("",!0)],8,rd)]),C.show?(e.openBlock(),e.createElementBlock("div",sd,[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",cd,[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",dd,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",pd,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0),C.dataTo?(e.openBlock(),e.createElementBlock("div",ud,"数据来源:"+e.toDisplayString(t.getSourceType(C.dataTo)),1)):e.createCommentVNode("",!0),C.meaning?(e.openBlock(),e.createElementBlock("div",fd,"指标含义:"+e.toDisplayString(C.meaning),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,md)]),_: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",hd,[e.createElementVNode("span",bd," 【"+e.toDisplayString(b.scope==="FIELD"?t.mapDataSetScope(b.genericType):t.mapScope(b.scope))+"】 ",1),e.createElementVNode("span",yd,e.toDisplayString(b.label),1)])]),_:2},1032,["modelValue","onUpdate:modelValue","disabled","onStart"])):e.createCommentVNode("",!0)],2))),128))]}),_:1},8,["spinning"])],2)}const Cd=ne(nd,[["render",gd],["__scopeId","data-v-eb6815db"]]),wd=e.defineComponent({name:"DataSourceList",components:{CaretRightOutlined:Ga,CaretDownOutlined:Ua,IndSourceList:Cd,AInputSearch:j.InputSearch,ASpin:j.Spin,APagination:j.Pagination,Draggable:Bt,ATooltip:j.Tooltip},setup(){var S;const t=(S=window==null?void 0:window.config)==null?void 0:S.pageId,o=e.inject(Be),n=e.unref(e.inject(Ve)),a=e.inject(Le),l=e.computed(()=>{var _;return(_=e.unref(a))==null?void 0:_.graphicConfig}),r=e.computed(()=>{var _;return(_=e.unref(l))==null?void 0:_.dataSourceId}),s=e.ref([]),c=e.ref(!1),i=e.ref(),d=e.reactive({pageSize:20,currentPage:1,totalResult:0}),p=e.inject(Qt),u=e.ref(""),m=async()=>{if(e.unref(h).source==="INDICATOR_LIB")return;c.value=!0;const _={source:e.unref(p),indexName:e.unref(u),pageId:t,dataSourceId:e.unref(r),queryRequest:{pageSize:d.pageSize,pageNum:d.currentPage}};_.source==="EDV_DATA_SET"&&(_.edvDataSetName=_.indexName,delete _.indexName);try{const A=await o.post(`${_e}/diagram/sourceList`,_,{headers:{Authentication:n,operateContext:"ygt"}});c.value=!1;const{success:I,data:D={}}=A.data;if(I){const{rows:T=[],total:R=0}=D;T==null||T.forEach($=>{var M;$.show=!1,(M=$.dataViewColumns)==null||M.forEach(k=>{k.show=!0,k.edit=!1,k.title&&(k.label=k.title)})}),s.value=T,d.totalResult=+R}}catch{c.value=!1}},g=_=>{s.value[_].show=!s.value[_].show},C=()=>{var _;d.currentPage=1,m(),e.unref(h).source==="INDICATOR_LIB"&&((_=e.unref(i))==null||_.handleSearch(e.unref(u)))},b=Z.debounce(()=>{d.currentPage=1,m()},200),f=(_,A)=>{d.pageSize=A,d.currentPage=_,m()};e.onMounted(()=>{m()});const h=e.inject(be),y=e.computed(()=>{const _=["classificationList","rowHeaderList","dimensionList","queryColumnList"];let A=[];for(const I in e.unref(h))if(Object.prototype.hasOwnProperty.call(e.unref(h),I)&&_.includes(I)){const D=e.unref(h)[I];Array.isArray(D)&&(A=A.concat(D))}return A}),N=(_=[])=>{let A=!1;if(e.unref(p)==="EDV_DATA_SET"){for(const I of e.unref(y))if(!_.find(T=>T.parentId===I.parentId)){A=!0;break}}else for(const I of e.unref(y))if(!_.find(T=>T.typeGuid===I.typeGuid)){A=!0;break}return A};return e.provide("setItemDisabled",N),{dataSourceList:s,dataSourceLoading:c,pagination:d,onToggleGroup:g,mapScope:er,mapDataSetScope:tr,onSearch:C,onChange:b,source:p,onPaginationChange:f,searchText:u,setItemDisabled:N,onDragStart:(_,A)=>{const I=A.dataViewColumns[_.oldIndex];let D={};A.dataSetParams&&(D=A.dataSetParams),I&&(sessionStorage.setItem("indicator-list-item",JSON.stringify({...I,dataTo:A.dataTo,dataSetParams:D,meaning:A.meaning,theFormula:A.theFormula,theUnit:A.theUnit})),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:ar,getLoadType:or,getUseType:nr,graphicConfig:h,indSourceRef:i}}}),Vy="",kd={class:"data-source-list"},xd={class:"columns"},Sd={class:"column-item"},_d={key:0},Td={key:1},Nd={key:2},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",kd,[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",xd,[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",_d,"数据使用系统:"+e.toDisplayString(t.getUseType(C.useType)),1)):e.createCommentVNode("",!0),C.systemSource?(e.openBlock(),e.createElementBlock("div",Td,"制度出处:"+e.toDisplayString(C.systemSource),1)):e.createCommentVNode("",!0),C.meaning?(e.openBlock(),e.createElementBlock("div",Nd,"指标含义:"+e.toDisplayString(C.meaning),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=ne(wd,[["render",Vd],["__scopeId","data-v-0a17825c"]]),Fd=e.defineComponent({name:"DataList",components:{DataSourceList:Ld,DataViewList:ci},setup(){return{source:e.inject(Qt)}}});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=ne(Fd,[["render",$d]]),lr={mounted(t){t.focus()}},Dd=e.defineComponent({name:"CustomSortModal",props:{item:{type:Object,default:()=>({})},index:{type:Number,default:0},type:{type:String,default:""},sortList:{type:Array,default:()=>[]}},components:{Draggable:Bt,AModal:j.Modal,AButton:j.Button,ASelect:j.Select,ASelectOption:j.SelectOption,DeleteOutlined:Ka},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(be),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(M=>!e.unref(u).find(k=>k.columnName===M.name)||T.columnName===M.name),$=[];return R.forEach((M,k)=>{$.includes(M.name)?M.name=`${M.name}_ecanrepeat_${k}`:$.push(M.name)}),R},g=async()=>{try{const T=await a.post(`${_e}/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 k,O;const T=((k=e.unref(r)[t.type])==null?void 0:k.slice())||[],R=T[t.index],{label:$,name:M}=t.item;e.unref(p)==="2"?R.sort={label:$,columnName:M,type:"CUSTOM",customOrderColumns:e.unref(d)}:e.unref(p)==="1"&&((O=e.unref(u))!=null&&O.length?R.sort=Z.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=Z.cloneDeep(R):u.value=[]):(p.value=(R==null?void 0:R.type)==="CUSTOM"?"2":"1",e.unref(p)==="1"?u.value=[Z.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 M=($=(R=t.item)==null?void 0:R.sort)==null?void 0:$.customOrderColumns;M==null?g():d.value=M}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(M=>M.name===T);$&&(R.label=$.label,$.defaultCode?R.defaultCode=$.defaultCode:delete R.defaultCode)}}}}}),Ly="",vd={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",vd,[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=ne(Dd,[["render",Rd],["__scopeId","data-v-6a468e35"]]),zd=e.defineComponent({name:"CustomGroupModal",directives:{focus:lr},components:{CloseOutlined:to,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 x=e.unref(p).map(L=>L.title);return new Set(x)}),m=e.ref([]);e.watch(()=>e.unref(p).length,x=>{m.value=new Array(x).fill(!1)});const g=e.computed(()=>{let x=0;return e.unref(p).forEach(L=>{var v;(v=L.data)==null||v.forEach(U=>{U.checked&&x++})}),x}),C=()=>{const x=e.unref(c);if(!x){j.message.error("创建分组名不能空");return}e.unref(u).has(x)?j.message.error("分组名已存在,请重新命名"):(e.unref(p).push({title:x,data:[]}),r=!0,c.value="")},b=()=>{var v,U;const x=e.unref(i);if(!x){j.message.error("值名称不能空");return}let L=!0;if((v=e.unref(p))!=null&&v.length)for(const G of e.unref(p)){if((U=G==null?void 0:G.data)!=null&&U.length){for(const Y of G.data)if(Y.label===x){L=!1;break}}if(!L)break}L?(e.unref(p)[0].data.push({label:x,checked:!1}),r=!0,i.value=""):j.message.error("名称已存在,请重新命名")},f=x=>{e.unref(p).splice(x,1),r=!0},h=e.ref(null),y=()=>{if(e.unref(g)===0){j.message.error("当前移入分组已选个数为0");return}const x=e.unref(h);if(x==null){j.message.error("请选择移入分组");return}if(!e.unref(p)[x]){j.message.error("移入分组不存在,请重新选择");return}const L=[],v=e.unref(p).length;for(let U=0;U<v;U++){const G=e.unref(p)[U];e.unref(p)[U].data=G.data.filter(Y=>(Y.checked&&L.push({...Y,checked:!1}),!Y.checked))}e.unref(p)[x].data=[...L,...e.unref(p)[x].data],r=!0},N=x=>{e.unref(m)[x]=!0},w=x=>{e.unref(m)[x]=!1},S=(x,L)=>{const v=x.target.value;e.unref(u).has(v)&&j.message.error("组名不能相同,请修改"),e.unref(p)[L].title=v,r=!0},_=e.inject(be),A=e.inject(Ae),I=e.computed(()=>e.unref(_).source),D=e.computed(()=>e.unref(_).dataViewId),T=e.ref(!1),R=()=>{var X,J;const x=e.unref(p);let L="";e.unref(T)&&(L=(X=x[0])==null?void 0:X.title);const v=x==null?void 0:x.length,U={};for(let oe=1;oe<v;oe++){const ae=x[oe]||{},{title:ye,data:ce}=ae;U[ye]=(ce==null?void 0:ce.map(ge=>ge.label))||[]}const G=((J=e.unref(_)[t.type])==null?void 0:J.slice())||[],Y=G[t.index];Y.customGroup={groupInfoMap:U,otherGroupName:L},A({[t.type]:G})},$=e.ref(!1),M=()=>{$.value=!0},k=()=>{$.value=!1},O=()=>{k(),r&&R(),r=!1},B=()=>{r=!0},P=new Set,F=async()=>{const x=t.item.customGroup||{},L=x.otherGroupName,v=x.groupInfoMap;(L===""||L==null)&&(T.value=!1),e.unref(p)[0]={title:L||"未分组",data:[]};let U=1;for(const G in v)if(Object.prototype.hasOwnProperty.call(v,G)){const X=v[G].map(J=>(P.add(J),{label:J,checked:!1}));e.unref(p)[U]={title:G,data:X},U++}await E()},E=async()=>{var x;try{const L=await n.post(`${_e}/diagram/groupvalue`,{source:e.unref(I),dataViewId:e.unref(D),groupColumn:t.item.name,hrpIndexTypeGuid:t.item.typeGuid,pageId:a,pageFlag:!0,edvDataSetId:e.unref(_).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:v,data:U=[]}=L.data;if(v){const G=[];(x=U==null?void 0:U.slice(0,200))==null||x.forEach(Y=>{P.has(Y)||G.push({label:Y,checked:!1})}),e.unref(p)[0].data=G}}catch(L){console.error(L)}};return e.watch($,x=>{x&&F(),window.changeShowTable&&window.changeShowTable(!x)},{flush:"post"}),o({showModal:M}),{visible:$,title:s,activeKey:d,customGroupList:p,onCancel:O,useOtherGroup:T,selectCount:g,createGroupTitle:c,createValueTitle:i,onAddGroup:C,onDeleteGroup:f,onMoveInGroup:y,selectGroupIndex:h,onEditTitle:N,onTitleChange:S,onFinishEditTitle:w,onUseOtherGroup:B,onAddValue:b,customGroupEditTitleList:m}}}),Fy="",$y="",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,S)=>(e.openBlock(),e.createBlock(g,{color:"red",checked:w.checked,"onUpdate:checked":_=>w.checked=_,class:"custom-group",key:S},{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=ne(zd,[["render",op],["__scopeId","data-v-8e480e07"]]);let me=(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:{},qn={},lp={get exports(){return qn},set exports(t){qn=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=qn;fe.extend(rp);const ip=e.defineComponent({name:"Condition",components:{CloseOutlined:to,DownOutlined:Bs,AppstoreAddOutlined:mn,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:Nn},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,Re,Qe,ht,At,Je,lt,Ue,Et,rt,ko,Ko,Xo,Kt;const o=(Yt=window==null?void 0:window.config)==null?void 0:Yt.pageId,n=e.inject(be),a=e.inject(Be),l=e.unref(e.inject(Ve)),r=e.inject(ba),s=e.inject(ze),c=e.ref(!1),i=fe(),d=e.computed(()=>{var K;const W=[];return(K=e.unref(s))==null||K.forEach(te=>{const{keyName:ie="",id:se="",type:de}=te;de==="ecanRangePicker"?W.push({value:`${se}-startTime`,label:`${ie||se}-开始时间值`,keyName:`${ie||se}-startTime`,id:se},{value:`${se}-endTime`,label:`${ie||se}-结束时间值`,keyName:`${ie||se}-endTime`,id:se}):W.push({value:se,label:`${ie||se}`,keyName:`${ie||se}`,id:se})}),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"}],S=e.ref({fieldName:(qt=t.data)==null?void 0:qt.fieldName,fieldType:(Re=t.data)==null?void 0:Re.fieldType,rule:(Qe=t.data)==null?void 0:Qe.rule,id:(ht=t.data)==null?void 0:ht.id,fieldValue:_(),label:(At=t.data)==null?void 0:At.label,targetSource:"",typeGuid:(Je=t.data)==null?void 0:Je.typeGuid,indexCode:(lt=t.data)==null?void 0:lt.indexCode,indexCodeNum:(Ue=t.data)==null?void 0:Ue.indexCodeNum,dataType:((Et=t.data)==null?void 0:Et.dataType)||"",componentId:((rt=t.data)==null?void 0:rt.componentId)||"",useCurrentTime:!!((ko=t.data)!=null&&ko.useCurrentTime),keyValue:(Ko=t.data)==null?void 0:Ko.keyValue,modelKey:(Xo=t.data)==null?void 0:Xo.modelKey,prop:(Kt=t.data)==null?void 0:Kt.prop});function _(){const{fieldType:W="",dataType:K="",fieldValue:te=""}=t.data;if(W==="DATE"&&K==="time")return te&&fe(te);if(K==="component"){const ie=e.unref(d).find(se=>se.keyName===te);return ie?ie.value:te}else return te}const A=e.ref([]),I=e.ref(!1),D=e.computed(()=>S.value.fieldType==="DATE"),T=e.computed(()=>{const W=t.type,{source:K}=e.unref(n);let te=[];const ie=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],se=["controlList","sqlConditions","variableList","variableConditions"];if(K==="EDV_DATA_SET")te=A.value;else if(ie.includes(W)){let de=[];for(const Te in e.unref(n))if(Object.prototype.hasOwnProperty.call(e.unref(n),Te)&&!se.includes(Te)){const Ze=e.unref(n)[Te];Array.isArray(Ze)&&(ie.includes(Te)?de=de.concat(Ze.filter(it=>it.show)):de=de.concat(Ze))}te=de}else["leftAxisList","rightAxisList","indicators"].includes(W)&&(te=e.unref(r));return te.map(de=>({...de,label:de.label||de.title,value:de.name}))}),{updateCondition:R,deleteCondition:$,addCondition:M}=e.inject(So,{updateCondition:(W,K,te)=>{},deleteCondition:(W,K)=>{},addCondition:(W,K,te)=>{}}),k=()=>{$(t.index,t.path)};e.watch(S,W=>{const K=Z.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=>{S.value.fieldValue="",S.value.useCurrentTime=W});const O=W=>{var z;const K=e.unref(T).find(H=>H.value===W)||{},{name:te,genericType:ie,id:se,edvDataSetId:de,label:Te,typeGuid:Ze,indexCode:it,indexCodeNum:Xt}=K;S.value={id:se,fieldName:te,fieldType:ie,label:Te,rule:"",fieldValue:ie==="DATE"?null:void 0,targetSource:"",typeGuid:Ze,indexCode:it,edvDataSetId:de,indexCodeNum:Xt,dataType:"",useCurrentTime:!1,keyValue:((z=e.unref(S))==null?void 0:z.keyValue)||me(),modelKey:"",prop:""}},B=W=>{const K=e.unref(d).find(te=>te.value===W)||{};e.unref(S).componentId=K.id||""},P=e.computed(()=>{const W=e.unref(S).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"}]}),F=e.computed(()=>{let W="";const K=e.unref(P).find(te=>te.value===e.unref(S).rule);return K&&(W=K.label),W}),E=e.computed(()=>{let W={fontSize:"12px"};return e.unref(F)||(W={...W,position:"absolute",right:"11px",top:"9px"}),W}),V=e.ref([]),x=async()=>{var W;if(!(e.unref(V).length>0))try{const K=await a.post(`${_e}/diagram/groupvalue`,{source:e.unref(m),dataViewId:e.unref(u),groupColumn:e.unref(S).fieldName,hrpIndexTypeGuid:e.unref(S).typeGuid,pageId:o,pageFlag:!0,edvDataSetId:e.unref(S).edvDataSetId||""},{headers:{Authentication:l,operateContext:"ygt"}}),{success:te,data:ie=[]}=K.data;te&&(V.value=(W=ie==null?void 0:ie.slice(0,200))==null?void 0:W.map(se=>({label:se,value:se})))}catch(K){console.error(K)}},L=W=>{e.unref(S).rule=W,e.unref(S).fieldValue=e.unref(S).fieldType==="DATE"?null:void 0,["IN","NOT_IN"].includes(W)&&x()},v=W=>{e.unref(S).dataType=W,e.unref(S).fieldValue="",e.unref(S).modelKey="",e.unref(S).prop=""},U=e.ref(),G=W=>{U.value=W,e.unref(S).fieldValue=(W==null?void 0:W.join(","))||""},Y=W=>{const{keyPath:K}=W;e.unref(S).rule=K[0],e.unref(S).dataType=K[1],e.unref(S).dateFormat=K[2],e.unref(S).fieldValue="",e.unref(S).modelKey="",e.unref(S).prop=""};e.onMounted(async()=>{var se,de,Te,Ze,it,Xt,z,H,q,Q;if(S.value.dataType=((se=t.data)==null?void 0:se.dataType)||"",S.value.componentId=((de=t.data)==null?void 0:de.componentId)||"",S.value.keyValue=(Te=t.data)==null?void 0:Te.keyValue,S.value.modelKey=(Ze=t.data)==null?void 0:Ze.modelKey,S.value.prop=(it=t.data)==null?void 0:it.prop,e.unref(S).fieldType==="DATE"){const{activeKey:le,dateCalcTypes:re=[]}=t.data||{};if(e.unref(S).dateFormat=(Xt=t.data)==null?void 0:Xt.dateFormat,e.unref(S).activeKey=le,e.unref(S).calcWays=((z=t.data)==null?void 0:z.calcWays)||[],e.unref(S).dateCalcTypes=re,e.unref(S).useCurrentTime&&e.unref(S).dataType!=="component"&&(c.value=!0),le===5){const ee=e.unref(S).calcWays[0];if(ee){const ue=ee.split("-");e.unref(f).expression=ue[0],e.unref(f).around=ue[1]}e.unref(f).unit=re[0]||"YEAR"}else{e.unref(S).radioValue=((H=t.data)==null?void 0:H.radioValue)||"";const ee=e.unref(h).find(ue=>{var Ce;return ue.key===((Ce=t.data)==null?void 0:Ce.activeKey)});ee&&ge(ee,t.data)}}else U.value=((Q=(q=t.data)==null?void 0:q.fieldValue)==null?void 0:Q.split(","))||[];const{fieldType:W,fieldName:K,rule:te}=S.value;W!=="DATE"&&K&&te&&["IN","NOT_IN"].includes(te)&&x();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(le=>{le.data.success&&(console.log(le.data),A.value=le.data.data.column.map(re=>({...re,genericType:re.columnCategory==="0"?"TEXT":re.columnCategory==="1"?"NUMBER":"DATE",edvDataSetId:le.data.data.id,name:re.columnName,label:re.columnName})))}).catch(le=>{console.error(le)})});const X=W=>{if(e.unref(S).activeKey===W){e.unref(h)[W].radioValue=e.unref(S).radioValue,e.unref(h)[e.unref(S).activeKey]&&(e.unref(h)[e.unref(S).activeKey].radioValue=e.unref(S).radioValue,e.unref(S).radioValue==="1"?e.unref(h)[W].beforeNum=e.unref(S).calcWays[0]:e.unref(S).radioValue==="2"&&(e.unref(h)[W].afterNum=e.unref(S).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,ie=K.type,se=e.unref(S).dateFormat,de=Math.abs(K.beforeNum),Te=K.afterNum;K.value=at(te,ie,se,de,Te)},oe=W=>{const K=e.unref(S).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(S).dateFormat,se=e.unref(S).radioValue;let de=0,Te=0;return se==="1"?de=Math.abs(e.unref(S).calcWays[0]):se==="2"&&(Te=e.unref(S).calcWays[0]),at(se,te,ie,de,Te)},ae=(W,K,te,ie)=>{if(g.value=!0,K.radioValue===ie){const se=W.target.value;te==="+"?K.value=fe().add(se,K.type).format(e.unref(S).dateFormat):K.value=fe().subtract(se,K.type).format(e.unref(S).dateFormat)}},ye=(W,K)=>{e.unref(S).calcWays||(e.unref(S).calcWays=[]),e.unref(S).activeKey=K,e.unref(S).radioValue=W.radioValue,W.radioValue==="1"?e.unref(S).calcWays[0]="-"+W.beforeNum:W.radioValue==="2"?e.unref(S).calcWays[0]=W.afterNum:W.radioValue==="3"?K===4?e.unref(S).calcWays[0]="0":e.unref(S).calcWays[0]="BEGIN":W.radioValue==="4"&&(e.unref(S).calcWays[0]="END"),K===0?e.unref(S).dateCalcTypes=["YEAR"]:K===1?e.unref(S).dateCalcTypes=["QUARTER"]:K===2?e.unref(S).dateCalcTypes=["MONTH"]:K===3?e.unref(S).dateCalcTypes=["WEEK"]:K===4&&(e.unref(S).dateCalcTypes=["DAY"]),I.value=!1},ce=()=>{e.unref(S).activeKey=5,e.unref(S).dateCalcTypes=[e.unref(f).unit],e.unref(S).calcWays[0]=`${e.unref(f).expression}-${e.unref(f).around}`,I.value=!1};function ge(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 at(W,K,te,ie,se){if(W==="1")return fe().subtract(ie,K).format(te);if(W==="2")return fe().add(se,K).format(te);if(W==="3"){if(K==="years")return fe().startOf("year").format(te);if(K==="quarters")return fe().startOf("quarter").format(te);if(K==="months")return fe().startOf("month").format(te);if(K==="days")return fe().format(te)}else if(W==="4"){if(K==="years")return fe().endOf("year").format(te);if(K==="quarters")return fe().endOf("quarter").format(te);if(K==="months")return fe().endOf("month").format(te)}return""}const Wt=(W,K)=>K.label.toLowerCase().indexOf(W.toLowerCase())>=0,Nt=e.computed(()=>!["IN","NOT_IN"].includes(e.unref(S).rule));return{fieldOptions:T,ruleOptions:P,onFieldChange:O,condition:S,valueOptions:V,onRuleChange:L,onDataTypeChange:v,onFieldValueSelectChange:G,fieldValues:U,onDelete:k,isDateType:D,formatList:b,tabDateList:h,compareList:y,menuRule:N,dateBtnLabel:F,downIconStyle:E,popoverVisible:I,dateRadioStyle:C,showTime:g,controlList:d,keyNameOptions:p,dataTypeList:w,customTabData:f,isUseCurrentTime:c,currentTime:i,isShowCustomDataType:Nt,handleMenuClick:Y,changeTabInitDate:X,changeRadioValue:J,getFieldValue:oe,blurCompare:ae,okDatePickConfig:ye,onChangeComponent:B,filterOption:Wt,okCustomConfig:ce,clickConditionMenu:({key:W})=>{M(t.path,t.index,W==="2"?"||":"&&")},dataSetfieldOptions:A}}}),Iy="",Dy="",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 Sp(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"),S=e.resolveComponent("a-tabs"),_=e.resolveComponent("appstore-add-outlined"),A=e.resolveComponent("a-popover"),I=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,M=>(e.openBlock(),e.createBlock(i,{key:M.value},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(t.condition.rule===T.value&&t.condition.dataType===R.value&&t.condition.dateFormat===M.value?"color: #1890FF;":"")},e.toDisplayString(M.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(S,{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(_)])]),_: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(I,{class:"more-icon"})]),_:1}),e.createVNode(D,{class:"delete-icon",onClick:t.onDelete},null,8,["onClick"])])}const _p=ne(ip,[["render",Sp],["__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:_p}}),vy="",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=ne(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=Z.cloneDeep(t.list):a.value=[{num:0,rule:"",name:"其他"}]}),{ruleOptions:n,truncationList:a,clearData:r=>{r.rule="",r.num=0,r.name=""}}}}),My="",rr=t=>(e.pushScopeId("data-v-f543c690"),t=t(),e.popScopeId(),t),$p={class:"truncations"},Ip={class:"rule"},Dp={class:"field-value"},vp={class:"field-value"},Mp=rr(()=>e.createElementVNode("div",{class:"text"},"将其余项设为",-1)),Pp=rr(()=>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",Dp,[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",vp,[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=ne(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 k;const n=e.ref("1"),a=()=>{var O;return`添加过滤条件-${((O=t.item)==null?void 0:O.label)||""}`},l=e.inject(be),r=e.inject(Ae),s=e.inject(ze),c=e.computed(()=>{var O;return(O=e.unref(l))==null?void 0:O.dataSourceId}),i=e.inject(Le),d=e.inject(_o),p=e.ref([]),u=e.ref([]),m=e.ref(!1),g=e.inject(Qt),C=O=>{var B;for(const P of O)(B=P.conditions)!=null&&B.length?C(P.conditions):P.keyValue=me()};e.watch(m,O=>{var B,P,F,E;if(O){if(Array.isArray((B=t.item)==null?void 0:B.conditions)){const V=Z.cloneDeep(((P=t.item)==null?void 0:P.conditions)||[]);C(V),p.value=V}Array.isArray((F=t.item)==null?void 0:F.truncations)?u.value=Z.cloneDeep((E=t.item)==null?void 0:E.truncations)||[]:u.value=[{rule:"",num:0,name:"其他"}]}window.changeShowTable&&window.changeShowTable(!O)},{flush:"post"});let b=!1;const f=O=>{var B;b=!0,e.unref(p)==null||((B=e.unref(p))==null?void 0:B.length)===0?p.value=[{}]:e.unref(p)[0]!=null&&(e.unref(p)[0].conditions==null||e.unref(p)[0].join!==O?p.value=[{join:O,conditions:[e.unref(p)[0],{keyValue:me()}]}]:e.unref(p)[0].conditions.length>1&&e.unref(p)[0].join===O&&p.value[0].conditions.push({keyValue:me()}))};e.provide(So,{updateCondition(O,B,P){var V;b=!0;let F=e.unref(p);const E=P.split("-");if(E!=null&&E.length)for(const x of E)if(F[x])F=(V=F[x])==null?void 0:V.conditions;else break;Array.isArray(F)&&F[B]&&(F[B]=O)},deleteCondition(O,B){var E,V,x;b=!0;let P=e.unref(p);const F=B.split("-");if(F!=null&&F.length){for(const L of F)if(P[L])P=(E=P[L])==null?void 0:E.conditions;else break;if(Array.isArray(P)&&P[O])if(P.splice(O,1),P.length===1){if(F.length>0){const L=F.length-1,v=F[L],U=F.slice(0,L);let G=e.unref(p),Y="";for(const X of U)if(G[X])Y=(V=G[X])==null?void 0:V.join,G=(x=G[X])==null?void 0:x.conditions;else break;if(Y===P[0].join){if(Array.isArray(P[0].conditions)){const X=Z.cloneDeep(P[0].conditions);G.splice(+v,1),G.splice(+v,0,...X)}}else G[v]=P[0]}}else P.length===0&&(p.value=[])}},addCondition(O,B,P){var x,L;b=!0;let F=e.unref(p),E="";const V=O.split("-");if(V!=null&&V.length){for(const v of V)if(F[v])E=(x=F[v])==null?void 0:x.join,F=(L=F[v])==null?void 0:L.conditions;else break;if(E===P)F.splice(B+1,0,{keyValue:me()});else{const v=Z.cloneDeep(F[B]);F[B]={join:P,conditions:[v,{keyValue:me()}]}}}}});const h=O=>{b=!0,u.value=O},y=e.computed(()=>{var B;const O=[];return(B=e.unref(s))==null||B.forEach(P=>{const{keyName:F="",id:E="",type:V}=P;V==="ecanRangePicker"?O.push({value:`${E}-startTime`,label:`${F||E}-开始时间值`,keyName:`${F||E}-startTime`},{value:`${E}-endTime`,label:`${F||E}-结束时间值`,keyName:`${F||E}-endTime`}):O.push({value:E,label:`${F||E}`,keyName:`${F||E}`})}),O}),N=()=>{var x,L,v;const O=ft(((x=e.unref(l))==null?void 0:x.controlList)||[]),B=((L=e.unref(l)[t.type])==null?void 0:L.slice())||[],P=ft(Z.cloneDeep(B[t.index].conditions));B[t.index].conditions=e.unref(p),["classificationList","rowHeaderList","dimensionList"].includes(t.type)&&((v=e.unref(u))!=null&&v.length)&&(B[t.index].truncations=e.unref(u));const F=ft(e.unref(p));for(const U of F)if(U.dataType==="component"&&U.fieldValue){const G=e.unref(y).find(Y=>Y.value===U.fieldValue);G&&(U.fieldValue=G.keyName)}const E=P.filter(U=>!F.find(G=>G.componentId===U.componentId)).filter(U=>!O.find(G=>G.id===U.componentId)),V=F.filter(U=>!P.find(G=>G.componentId===U.componentId));w(E,V),r({[t.type]:B,sqlConditions:Xl({...e.unref(l),[t.type]:B},e.unref(s))})};function w(O,B){var F;const P=O.map(E=>({...E,delete:!0})).concat(B.map(E=>({...E,add:!0})));for(const E of P){const V=e.unref(s).find(x=>x.id===E.componentId);if(V){const{type:x,id:L,events:v=[]}=V,U=Fo(x);if(E.add)v.find(G=>{var Y;return G.on===U&&G.target===((Y=e.unref(i))==null?void 0:Y.id)&&G.emit==="refreshData"})||d({id:L,events:[...v,{on:U,target:(F=e.unref(i))==null?void 0:F.id,emit:"refreshData"}].reverse()});else if(E.delete){const G=v.findIndex(Y=>{var X;return Y.on===U&&Y.target===((X=e.unref(i))==null?void 0:X.id)&&Y.emit==="refreshData"});G!==-1&&(v.splice(G,1),d({id:L,events:v}))}}}}const S=()=>{m.value=!0},_=()=>{p.value=[],m.value=!1},A=()=>{b&&N(),b=!1,_()},I=()=>{_()},D=e.inject(Be),T=e.unref(e.inject(Ve)),R=(k=window==null?void 0:window.config)==null?void 0:k.pageId,$=e.ref([]);e.provide(ba,$);const M=async O=>{var B;if(["leftAxisList","rightAxisList","indicators","queryColumnList"].includes(t.type))try{const{id:P,indexCode:F}=O,E=await D.post(`${_e}/diagram/hrpIndexWithComplex`,{pageId:R,dataSourceId:e.unref(c),indexGuid:P,indexCode:F},{headers:{Authentication:T,operateContext:"ygt"}}),{success:V,data:x=[]}=E.data;V&&((B=x==null?void 0:x.dataViewColumns)!=null&&B.length)&&($.value=x.dataViewColumns.map(L=>({...L,label:L.title||L.label})))}catch(P){console.error(P)}};return e.watch(()=>t.item,O=>{O&&m.value&&e.unref(g)!=="EDV_DATA_SET"&&M(O)}),o({showModal:S}),{visible:m,onOk:A,onCancel:I,handleTitle:a,conditionList:p,truncationList:u,addCondition:f,onUpdatetruncation:h,activeKey:n,source:g}}}),Py="",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=ne(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(be),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}}}),jy="",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=ne(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(be),l=e.inject(Ae),r=e.inject(ze),s=e.inject(Le),c=e.inject(_o),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=Z.cloneDeep(y),i.value=Z.cloneDeep(y),n.value=!0},m=()=>{n.value=!1},g=()=>{var S,_;const h=ft(((S=e.unref(a))==null?void 0:S.controlList)||[]),y=p.filter(A=>!e.unref(i).includes(A)).filter(A=>!h.find(I=>I.id===A)),N=e.unref(i).filter(A=>!p.includes(A)).filter(A=>!h.find(I=>I.id===A)),w=y.map(A=>({componentId:A,delete:!0})).concat(N.map(A=>({componentId:A,add:!0})));for(const A of w){const I=e.unref(r).find(D=>D.id===A.componentId);if(I){const{type:D,id:T,events:R=[]}=I,$=Fo(D);if(A.add)R.find(M=>{var k;return M.on===$&&M.target===((k=e.unref(s))==null?void 0:k.id)&&M.emit==="refreshData"})||c({id:T,events:[...R,{on:$,target:(_=e.unref(s))==null?void 0:_.id,emit:"refreshData"}].reverse()});else if(A.delete){const M=R.findIndex(k=>{var O;return k.on===$&&k.target===((O=e.unref(s))==null?void 0:O.id)&&k.emit==="refreshData"});M!==-1&&(R.splice(M,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}}}),Ry="",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=ne(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(be),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}}}),Uy="",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=ne(ru,[["render",du],["__scopeId","data-v-aa1c298e"]]),Kn=(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:Kn(t,l.children)&&(n=Kn(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:Ns},emits:["update:value","change"],setup(t,{emit:o}){const n=e.inject(Be),a=e.unref(e.inject(Ve)),l=e.inject(be),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(()=>{var R;let T=e.unref(r).concat(e.unref(c)).concat(e.unref(i)).concat(e.unref(d));return(R=e.unref(p))!=null&&R.length&&(T=e.unref(d).concat(e.unref(p))),t.mode==="edit"?(T==null?void 0:T.filter($=>{var M;return $.id!==((M=t.item)==null?void 0:M.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 M=document.selection.createRange();M.text=T}else if(typeof R.selectionStart=="number"&&typeof R.selectionEnd=="number"){const M=R.selectionStart,k=R.selectionEnd;let O=M;$=$.substring(0,M)+T+$.substring(k,$.length),O+=T.length,R.selectionStart=R.selectionEnd=O}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([]),S=e.ref(!0),_=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})},I=async()=>{try{const T=await n.get(`${_e}/diagram/funcdescs`,{},{headers:{Authentication:a,operateContext:"ygt"}}),{success:R,data:$=[]}=T.data;R&&($!=null&&$.length)&&(A($),_.value=$)}catch(T){console.error(T)}},D=T=>{w.value=T,S.value=!1};return e.watch(b,T=>{const R=N.map($=>$.title.indexOf(T)>-1?Kn($.key,_.value):null).filter(($,M,k)=>$&&k.indexOf($)===M);w.value=R,b.value=T,S.value=!0}),e.onMounted(()=>{I()}),{fieldList:u,varList:m,myValue:g,calculMethods:h,funcDescsData:_,searchFuncValue:b,expandedKeys:w,autoExpandParent:S,activeKey:C,selectedElem:y,onExpand:D}}}),zy="",Gy="",ir=t=>(e.pushScopeId("data-v-4217a6cb"),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"},Su={class:"tree-box"},_u=ir(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"描述:",-1)),Tu=ir(()=>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",Su,[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,[_u,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=ne(uu,[["render",Vu],["__scopeId","data-v-4217a6cb"]]),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:nc},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(be),l=e.inject(Ae),r=e.inject(Le),s=e.computed(()=>e.unref(n)),c=e.computed(()=>e.unref(a)[t.type]||[]),i=e.computed(()=>{const k=["leftAxisList","rightAxisList","queryColumnList","indicators"];let O=[];for(const B of k)Object.prototype.hasOwnProperty.call(e.unref(a),B)&&(O=O.concat(e.unref(a)[B]));return O}),d={span:4},p={span:18},u={label:"",calcType:"FORMULA",formula:void 0,builtInValueSource:void 0,builtInFormula:void 0,builtInCalcWay:void 0},m={value:0,unit:"YEAR",around:"before"},g=e.ref({}),C=e.ref(),b=e.ref(!1),f=e.ref();e.watch(b,k=>{if(k)if(t.mode==="edit"){const{label:O,calcType:B,formula:P,builtInValueSource:F,builtInFormula:E,builtInCalcWay:V}=t.item;if(f.value={label:O,calcType:B,formula:P,builtInValueSource:F,builtInFormula:E,builtInCalcWay:V},E==="DATE_OFFSET"){const x=V.split("-");(x==null?void 0:x.length)===3&&(g.value={value:x[0],unit:x[1],around:x[2]})}}else t.mode==="add"&&(f.value=Z.cloneDeep(u),g.value=Z.cloneDeep(m));else f.value=Z.cloneDeep(u),g.value=Z.cloneDeep(m);window.changeShowTable&&window.changeShowTable(!k)},{immediate:!0,deep:!0});let h=!1;const y=()=>{h=!0},N=k=>{const O=e.unref(s).find(B=>B.id===k);O&&(f.value.builtInCalcWay=O.keyName),h=!0},w=()=>{var F;const k=((F=e.unref(a)[t.type])==null?void 0:F.slice())||[],{label:O,builtInFormula:B}=e.unref(f)||{},P={};if(B==="DATE_OFFSET"&&(P.builtInCalcWay=`${e.unref(g).value}-${e.unref(g).unit}-${e.unref(g).around}`),t.mode==="add"){const E=me();pe(e.unref(r).type,["indexPanel"])&&k.forEach(V=>{V.show=!1}),k.push({...e.unref(f),...P,id:E,show:!0,name:O})}else t.mode==="edit"&&(k[t.index]={...k[t.index],...e.unref(f),...P,name:O});l({[t.type]:k})},S=()=>{b.value=!0},_=()=>{b.value=!1},A=async(k,O)=>{if(O==="")return Promise.reject(new Error("请输入指标名"));{const B=e.unref(i).find(P=>P.label===O);return B?B.id===t.item.id?Promise.resolve():Promise.reject(new Error("指标名不能重复")):Promise.resolve()}},I=e.computed(()=>{let k={label:[{required:!0,validator:A,trigger:"change"}]};return f.value.calcType==="BUILT_IN"&&(k={...k,builtInFormula:[{required:!0,message:"请选择内置公式"}],builtInValueSource:[{required:!0,message:"请选择数值来自"}],builtInCalcWay:[{required:!0,message:"请选择取数原则"}]}),k}),D=()=>{C.value.validate().then(()=>{h&&w(),h=!1,_()})},T=()=>{C.value.clearValidate(),_()},R=()=>{h=!0,e.unref(f).builtInCalcWay=""},$=e.computed(()=>{let k="";const O=e.unref(f).builtInCalcWay,B=e.unref(f).builtInValueSource;if(!B||!O)return k;switch(e.unref(f).builtInFormula){case"BUILT_IN_RANK":{O==="ASC"?k="【"+B+"】由小到大在所有值中的排名":k="【"+B+"】由大到小在所有值中的排名";break}case"BUILT_IN_RANK_IN_GROUPO":{k=`所有【】的
|
|
65
65
|
`,O==="ASC"?k=k+"【"+B+"】由小到大的组内的排名":k=k+"【"+B+"】由大到小的组内的排名";break}case"BUILT_IN_ALL_VALUE":{let P="";switch(O){case"SUM":{P="求和";break}case"AVG":{P="求平均值";break}case"MIN":{P="求最小值";break}case"MAX":{P="求最大值";break}}k="将所有【"+B+"】"+P;break}case"BUILT_IN_ALL_VALUE_IN_GROUPO":{let P="";switch(k=`所有【】的
|
|
66
|
-
`,O){case"SUM":{P="求和";break}case"AVG":{P="求平均值";break}case"MIN":{P="求最小值";break}case"MAX":{P="求最大值";break}}k=k+"将所有【"+B+"】"+P;break}}return k}),M=(k,O)=>O.keyName.toLowerCase().indexOf(k.toLowerCase())>=0;return o({showModal:_}),{visible:b,onCancel:T,labelCol:d,wrapperCol:p,formState:f,builtInValueSourceList:c,onOK:D,onChange:y,formRules:I,accessLogic:$,formRef:C,onChangeBuiltInFormula:R,componentList:s,onChangeComponent:N,filterOption:M,offsetConfig:g}}}),Jy="",Zy="",Mu={key:0,class:"accesstip"},Pu={style:{display:"flex","align-items":"center"}};function ju(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",Mu," 蓝色字段跟随您后续维度设置的顺序而变化,以获取相应的"+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",Pu,[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 Ru=ne(vu,[["render",ju],["__scopeId","data-v-c0f19502"]]),Uu=e.defineComponent({name:"DataConfigCard",directives:{focus:rr},components:{CalculationModal:Ru,FilterModal:Qp,CustomGroupModal:ip,SettingOutlined:hc,DeleteOutlined:Xa,CopyOutlined:_s,InfoCircleOutlined:Ms,CustomSortModal:Wd,PlusOutlined:nc,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:Bt,ConfigName:nu,SortByCpnt:cu,DimByCount:hu},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(be),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(Qt),d=e.ref(),p=e.computed({get(){var z;return((z=e.unref(n))==null?void 0:z.compositeIndicator)||!1},set(z){a({compositeIndicator:z})}}),u=(z={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let q=!1;if(z.scope==="FIELD"&&(q=!0,z.genericType==="0"&&r.includes(H)&&(q=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(H)&&(q=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(H)&&(q=!0),H==="dimensionList"){const le=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(le==null?void 0:le.length)===1&&(q=!1)}return q},m=e.computed(()=>{var z;return pe((z=e.unref(de))==null?void 0:z.type,["dataSelect"])&&t.type==="indicators"}),g=(z="{}")=>{var H,q;try{const Q=JSON.parse(z);if(!u(Q))return;const le=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate","scatter"])||e.unref(m)||pe(e.unref(de).type,["indexPanel"]))&&le.forEach(ue=>{ue.show=!1}),b(le,Q),Q.randomKey=he(),le.push(Q);const{type:re}=t,ee={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const ue=((q=e.unref(n))==null?void 0:q.variableList)||[];let Ce=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(re)&&(Ce="[]"),Ce){const we=JSON.parse(Ce);if(we!=null&&we.length)for(const _e of we)ue.unshift({..._e,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?_e.defaultValue:null,dateTypeValue:null,format:_e.valueFormat&&_e.valueFormat.toUpperCase()||null,variableName:_e.name,variableType:_e.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:he(),disabled:e.unref(i)==="EDV_DATA_SET"})}ee.variableList=ue,ee.variableConditions=so(ue,l)}a({[t.type]:le,...ee}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},C=(z="{}")=>{var H;try{const{cardItem:q,type:Q,index:le}=JSON.parse(z);if(!u(q)||Q===t.type)return;const re=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];b(re,q),re.push(q);const ee=e.unref(n)[Q].slice()||[];ee.splice(le,1),a({[t.type]:re,[Q]:ee})}catch(q){console.error(q)}};function b(z,H){const q=[];if(z.forEach(Q=>{Q.label.includes(H.label)&&q.push(Q.label.split(H.label)[1])}),q.length>=1){for(let Q=1;Q<=q.length;Q++)if(!q.includes(Q+"")){H.label=H.label+Q;break}}}const f=(z,H)=>{var le,re;const q=(le=z.target)==null?void 0:le.checked,Q=((re=e.unref(n)[t.type])==null?void 0:re.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate"])||e.unref(m)||pe(e.unref(de).type,["indexPanel"]))&&Q.forEach(ee=>{ee.show=!1}),Q[H].show=q,a({[t.type]:Q})},h=z=>{var q;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];H.splice(z,1),a({[t.type]:H})},y=()=>{sessionStorage.setItem("indicator-card-item","")},N=z=>{const H=sessionStorage.getItem("indicator-list-item"),q=sessionStorage.getItem("indicator-card-item");H?g(H):q&&C(q)},w=z=>{var ue,Ce;const{newIndex:H,oldIndex:q,from:Q,to:le}=z,re=Q.id,ee=le.id;if(H>=0&&q>=0){if(re===ee){const we=((ue=e.unref(n)[t.type])==null?void 0:ue.slice())||[],_e=we.splice(q,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}else if(t.type===ee){const we=((Ce=e.unref(n)[ee])==null?void 0:Ce.slice())||[];if(we!=null&&we.length){const _e=we.splice(we.length-1,1)[0];_e&&(we.splice(H,0,_e),a({[t.type]:we}))}}}},_=(z,H)=>{const q=z.oldIndex,Q=H[q];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:q}))},S=e.computed(()=>e.unref(n)[t.type]||[]),A=e.ref([]);let I=!1;e.watch(()=>e.unref(S).length,z=>{A.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const D=z=>{var q,Q,le;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];if((Q=H[z])!=null&&Q.randomKey){const re=((le=e.unref(n))==null?void 0:le.variableList)||[];for(let ee=re.length-1;ee>=0;ee--)re[ee].randomKey===H[z].randomKey&&re.splice(ee,1);a({variableConditions:so(re,l),variableList:re})}H.splice(z,1),a({[t.type]:H})},T=z=>{A.value[z]=!0},R=()=>{I=!0},$=(z,H,q)=>{var Q,le,re,ee;if(A.value[H]=!1,I){const ue=(Q=z.target)==null?void 0:Q.value,Ce=((le=e.unref(n)[t.type])==null?void 0:le.slice())||[],we=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.formula)==null?void 0:Ne.includes(q)}).map(ke=>ke.id),_e=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.builtInValueSource)==null?void 0:Ne.includes(q)}).map(ke=>ke.id);if(we!=null&&we.length)for(const ke of we){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.formula=Ne.formula.replaceAll(q,ue)}if(_e!=null&&_e.length)for(const ke of _e){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(q,ue)}if(Ce[H].label=ue,(re=Ce[H])!=null&&re.randomKey){const ke=((ee=e.unref(n))==null?void 0:ee.variableList)||[],Ne=ke.filter(Ot=>Ot.randomKey===Ce[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(Ot=>{Ot.label=ue}),a({variableConditions:so(ke,l),variableList:ke})}a({[t.type]:Ce})}I=!1},M="DEFAULT",k=e.computed(()=>{const z=[],{scope:H}=e.unref(d)||{},q=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const ee=Z.cloneDeep(e.unref(d));delete ee.show,delete ee.truncations,delete ee.conditions,ee.hrpIndexComplexid+="_code",ee.id+="_code",ee.typeGuid+="_code",ee.label=ee.name+"_编码",ee.name=ee.typeGuid,ee.defaultCode=ee.typeGuid,z.push(ee)}const{leftAxisList:Q=[],rightAxisList:le=[],indicators:re=[]}=e.unref(n)||{};return[...q,...z,...Q,...le,...re]}),O=(z={},H,q="ASC")=>{var Ce;const{label:Q,name:le,id:re,defaultCode:ee}=z,ue=((Ce=e.unref(n)[t.type])==null?void 0:Ce.slice())||[];re===M?delete ue[H].sort:ue[H].sort={label:Q,columnName:le,type:"NORMAL",order:q,defaultCode:ee},a({[t.type]:ue})},B=(z={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:le}=z,{label:re,order:ee}=le||{};return re&&ee===H?`${Q}(${re})`:Q},P=e.ref(),F=e.ref(),E=e.ref(),V=e.ref(),x=(z={},H)=>{var q;P.value=z,F.value=H,(q=e.unref(E))==null||q.showModal(z)},L=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),v=(z={},H)=>{var q;P.value=z,F.value=H,(q=e.unref(V))==null||q.showModal()},U=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),G=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Y=[{name:"是",value:1},{name:"否",value:0}],X=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].aggregate=z,a({[t.type]:q})},J=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].distinct=z,a({[t.type]:q})},oe=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].dateFormat=z,a({[t.type]:q})},ae=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,ye=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,ce=(z={})=>{var H;return"过滤"+(z!=null&&z.conditions&&((H=z==null?void 0:z.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ge=e.ref(),at=e.ref(),Wt=e.ref(),Nt=e.ref(),wo=(z={},H)=>{P.value=z,F.value=H,e.unref(ge).showModal()},Yt=(z={},H)=>{P.value=z,F.value=H,e.unref(at).showModal(z)},qt=(z={},H)=>{P.value=z,F.value=H,e.unref(Wt).showModal(z)},Re=(z={},H)=>{P.value=z,F.value=H,e.unref(Nt).showModal(z,e.unref(K))},Qe=e.ref(),ht=e.ref("add"),At=(z,H,q)=>{var Q;ht.value=z,z==="edit"&&(P.value=H,F.value=q),(Q=e.unref(Qe))==null||Q.showModal()},Je=e.inject(Be),lt=e.unref(e.inject(Ve)),Ue=e.ref([]),Et=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;pe(e.unref(de).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{ko()});const rt=e.ref(""),ko=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!pe(e.unref(de).type,"select"))return;const{classificationList:H=[]}=e.unref(n),q=H.find(ee=>ee.show);if(q!=null&&q.parentId){if(e.unref(rt)===q.parentId)return;rt.value=q.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await Je.get(`${Se}/dataset/`+q.parentId,{headers:{Authentication:lt,operateContext:"ygt"}}),{success:le,data:re=[]}=Q.data;if(le){const ee=re.column.map(ue=>({label:ue.columnName,value:ue.columnName}));e.unref(n).selectFieldOptions=ee,Ue.value=ee}},Ko=async()=>{const{source:z}=e.unref(n);if(!pe(e.unref(de).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await ko();else{const H=await Je.post(`${Se}/diagram/dimFields`,{},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:q,data:Q=[]}=H.data;q&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},Xo=(z,H)=>{const q=e.unref(n)[t.type]||{};q[H]=z,a({[t.type]:q})},Kt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],W=e.ref({}),K=e.ref([]),te=async(z,H)=>{var Q;const{name:q}=H;if(!Kt.includes(t.type)&&z&&Ye(H,"indexCode")){const le=await Je.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:lt,operateContext:"ygt"}}),{success:re,data:ee}=le.data;re&&ee&&(K.value=(ee==null?void 0:ee.dataViewColumns)||[],W.value[q]={name:ee.name,code:ee.indexCode})}},ie=z=>{d.value=z},se=z=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",z),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},de=e.inject(Le),Te=e.computed(()=>t.type==="indicators"&&e.unref(de).type==="ecanTable"),Ze=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),it=e.computed(()=>{var z,H;return pe((z=e.unref(de))==null?void 0:z.type,["table"])&&((H=e.unref(n))==null?void 0:H.isIndexSet)}),Xt=e.computed(()=>!Kt.includes(t.type)&&!e.unref(m)&&(!e.unref(it)||t.type!=="indicators"));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(de).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ko())}),{onCheckboxChange:f,onDropEnd:h,onDragItemEnd:y,onDragItemAdd:N,onDragItemSort:w,onDragItemStart:_,cardItemList:S,onDelete:D,onEdit:T,onCommitLabelChange:$,sortList:k,onSort:O,handleSortTitle:B,showCustomSortModal:x,customSortModalRef:E,currentItem:P,currentIndex:F,handleCustomSortTitle:L,handleCustomGroupTitle:U,customGroupModalRef:V,showCustomGroupModal:v,editLabelList:A,onLabelChange:R,aggregateList:G,distinctList:Y,onAggregateChange:X,onDistinctChange:J,onDateFormatChange:oe,handleAggregateTitle:ae,handleDistinctTitle:ye,onShowCalculationModal:At,handleFilterTitle:ce,filterModalRef:ge,configNameRef:at,sortByCpntRef:Wt,dimByCountRef:Nt,showFilterModal:wo,calculationModalRef:Qe,calculationModalMode:ht,formatList:o,fieldOptions:Ue,fieldData:Et,onFieldChange:Xo,onVisibleChange:te,onClickSetting:ie,copyDataViewName:se,dataViewMap:W,isShowConfigName:Te,showConfigNameModal:Yt,dimensionType:Kt,isShowSortByCpnt:Ze,showSortByCpntModal:qt,dataSelectIndicators:m,showDimByCountModal:Re,selectedComponent:de,lowerCaseIncludes:pe,isShowCalcBtn:Xt,isIndexSet:it,indexSetList:c,compositeIndicator:p}}}),eg="",tg="",kt=t=>(e.pushScopeId("data-v-5bdf57b3"),t=t(),e.popScopeId(),t),zu={class:"title"},Gu={class:"title-text"},Hu={class:"field-wrap"},Wu={class:"field-item"},Yu=kt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),qu={class:"field-item"},Ku=kt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Xu={key:0,class:"field-item"},Qu=kt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),Ju={class:"title"},Zu={class:"title-text"},ef=kt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),tf=kt(()=>e.createElementVNode("span",null,"添加计算指标",-1)),of={class:"card-item-wrap"},nf={class:"card-item-inner"},af=["onClick"],lf=["onClick"],rf=["onClick"],sf={style:{display:"flex","align-items":"center"}},cf=["title"],df=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),pf={style:{display:"flex","align-items":"center"}},uf=["title"],ff=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标编码:",-1));function mf(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"),_=e.resolveComponent("draggable"),S=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),I=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"),M=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",zu,[e.createElementVNode("div",Gu,e.toDisplayString(t.title),1)])]),default:e.withCtx(()=>[e.createElementVNode("div",Hu,[e.createElementVNode("div",Wu,[Yu,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",qu,[Ku,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",Xu,[Qu,e.createVNode(c,{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",Ju,[e.createElementVNode("div",Zu,[e.createTextVNode(e.toDisplayString(t.title)+" ",1),t.type==="dimensionList"?(e.openBlock(),e.createBlock(p,{key:0,title:"提示",placement:"topLeft"},{content:e.withCtx(()=>[ef]),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(k=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),tf])):t.isIndexSet?(e.openBlock(),e.createBlock(c,{key:1,checked:t.compositeIndicator,"onUpdate:checked":o[4]||(o[4]=k=>t.compositeIndicator=k)},{default:e.withCtx(()=>[e.createTextVNode("复合指标")]),_:1},8,["checked"])):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[5]||(o[5]=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[6]||(o[6]=k=>t.onDragItemStart(k,t.cardItemList))},{item:e.withCtx(({element:k,index:O})=>[e.createElementVNode("div",of,[e.createVNode(c,{class:"card-item",checked:k.show,onChange:B=>t.onCheckboxChange(B,O)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[!t.editLabelList[O]&&k.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])},e.toDisplayString(k.label),9,af)):e.createCommentVNode("",!0),!t.editLabelList[O]&&!k.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])}," 请点击填入名字 ",8,lf)):e.createCommentVNode("",!0),t.editLabelList[O]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":k.label,size:"small",onBlur:B=>t.onCommitLabelChange(B,O,k.label),onPressEnter:B=>t.onCommitLabelChange(B,O,k.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[M]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(k.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(B=>t.onShowCalculationModal("edit",k,O),["prevent","stop"])}," fx ",8,rf)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:B=>t.onVisibleChange(B,k)},{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:B=>t.showCustomSortModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(C,{onClick:B=>t.showCustomGroupModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(b),k.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,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDateFormatChange(B.value,O)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(k.dateFormat===B.value||!k.dateFormat&&B.value==="YYYY-MM-DD"?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(C,{onClick:B=>t.showFilterModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(k)),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(k.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onAggregateChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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:B=>t.showConfigNameModal(k,O)},{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:B=>t.showSortByCpntModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),k.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(C,{onClick:B=>t.showDimByCountModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(k.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDistinctChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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[k.name]?(e.openBlock(),e.createBlock(C,{key:0,onClick:B=>t.copyDataViewName(t.dataViewMap[k.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",sf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].name},[df,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].name),1)],8,cf),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(C,{key:1,onClick:B=>t.copyDataViewName(t.dataViewMap[k.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",pf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].code},[ff,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].code),1)],8,uf),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:B=>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(B=>t.onDelete(O),["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(I,{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 hf=ne(Uu,[["render",mf],["__scopeId","data-v-5bdf57b3"]]),bf={classificationList:{title:"分类"},seriesList:{title:"系列"},leftAxisList:{title:"左值轴"},rightAxisList:{title:"右值轴"},indicators:{title:"数值"},queryColumnList:{title:"查询列"},rowHeaderList:{title:"行表头"},formFields:{title:"字段"},dimensionList:{title:"维度"},indexLibColumns:{title:"查询列"}},yf=e.defineComponent({name:"DataConfigGroup",components:{DataConfigCard:hf},setup(){const t=["classificationList","seriesList","leftAxisList","rightAxisList","indicators","rowHeaderList","queryColumnList"],o=e.inject(Le),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=Z.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"],indexPanel:["indicators"]},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=bf,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}}}),og="",ng="",gf={class:"data-group"};function Cf(t,o,n,a,l,r){const s=e.resolveComponent("data-config-card");return e.openBlock(),e.createElementBlock("div",gf,[(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 wf=ne(yf,[["render",Cf],["__scopeId","data-v-62322ee7"]]),kf=[{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"]}],cr=[{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])})),xf={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:""},...cr]}},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:""},...cr]}},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值;
|
|
66
|
+
`,O){case"SUM":{P="求和";break}case"AVG":{P="求平均值";break}case"MIN":{P="求最小值";break}case"MAX":{P="求最大值";break}}k=k+"将所有【"+B+"】"+P;break}}return k}),M=(k,O)=>O.keyName.toLowerCase().indexOf(k.toLowerCase())>=0;return o({showModal:S}),{visible:b,onCancel:T,labelCol:d,wrapperCol:p,formState:f,builtInValueSourceList:c,onOK:D,onChange:y,formRules:I,accessLogic:$,formRef:C,onChangeBuiltInFormula:R,componentList:s,onChangeComponent:N,filterOption:M,offsetConfig:g}}}),Hy="",Wy="",$u={key:0,class:"accesstip"},Iu={style:{display:"flex","align-items":"center"}};function Du(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 vu=ne(Fu,[["render",Du],["__scopeId","data-v-c0f19502"]]),Mu=e.defineComponent({name:"DataConfigCard",directives:{focus:lr},components:{CalculationModal:vu,FilterModal:Yp,CustomGroupModal:np,SettingOutlined:pc,DeleteOutlined:Ka,CopyOutlined:Cs,InfoCircleOutlined:$s,CustomSortModal:Ud,PlusOutlined:Zs,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:Bt,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(be),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(Qt),d=e.ref(),p=e.computed({get(){var z;return((z=e.unref(n))==null?void 0:z.compositeIndicator)||!1},set(z){a({compositeIndicator:z})}}),u=(z={})=>{var Q;const{type:H}=t;if(e.unref(i)==="SQL_VIEW")return!0;e.unref(i)==="EDV_DATA_SET"&&a({edvDataSetId:z.parentId});let q=!1;if(z.scope==="FIELD"&&(q=!0,z.genericType==="0"&&r.includes(H)&&(q=!1)),["IDX","BUILT_IN_IDX"].includes(z.scope)?r.includes(H)&&(q=!0):["DIM","BUILT_IN_DIM"].includes(z.scope)&&s.includes(H)&&(q=!0),H==="dimensionList"){const le=((Q=e.unref(n)[H])==null?void 0:Q.slice())||[];(le==null?void 0:le.length)===1&&(q=!1)}return q},m=e.computed(()=>{var z;return pe((z=e.unref(de))==null?void 0:z.type,["dataSelect"])&&t.type==="indicators"}),g=(z="{}")=>{var H,q;try{const Q=JSON.parse(z);if(!u(Q))return;const le=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate","scatter"])||e.unref(m)||pe(e.unref(de).type,["indexPanel"]))&&le.forEach(ue=>{ue.show=!1}),b(le,Q),Q.randomKey=me(),le.push(Q);const{type:re}=t,ee={};if(["IDX","BUILT_IN_IDX","FIELD"].includes(Q.scope)){const ue=((q=e.unref(n))==null?void 0:q.variableList)||[];let Ce=sessionStorage.getItem("indicator-variates");if(Q.scope==="FIELD"&&!r.includes(re)&&(Ce="[]"),Ce){const we=JSON.parse(Ce);if(we!=null&&we.length)for(const Se of we)ue.unshift({...Se,dataType:"",id:null,variableValue:e.unref(i)==="EDV_DATA_SET"?Se.defaultValue:null,dateTypeValue:null,format:Se.valueFormat&&Se.valueFormat.toUpperCase()||null,variableName:Se.name,variableType:Se.valueType,label:Q.label,randomKey:Q.randomKey,keyValue:me(),disabled:e.unref(i)==="EDV_DATA_SET"})}ee.variableList=ue,ee.variableConditions=so(ue,l)}a({[t.type]:le,...ee}),sessionStorage.setItem("indicator-list-item",""),sessionStorage.setItem("indicator-variates","")}catch(Q){console.error(Q)}},C=(z="{}")=>{var H;try{const{cardItem:q,type:Q,index:le}=JSON.parse(z);if(!u(q)||Q===t.type)return;const re=((H=e.unref(n)[t.type])==null?void 0:H.slice())||[];b(re,q),re.push(q);const ee=e.unref(n)[Q].slice()||[];ee.splice(le,1),a({[t.type]:re,[Q]:ee})}catch(q){console.error(q)}};function b(z,H){const q=[];if(z.forEach(Q=>{Q.label.includes(H.label)&&q.push(Q.label.split(H.label)[1])}),q.length>=1){for(let Q=1;Q<=q.length;Q++)if(!q.includes(Q+"")){H.label=H.label+Q;break}}}const f=(z,H)=>{var le,re;const q=(le=z.target)==null?void 0:le.checked,Q=((re=e.unref(n)[t.type])==null?void 0:re.slice())||[];(t.type==="seriesList"||t.type==="classificationList"&&!pe(e.unref(de).type,["list","circulate"])||e.unref(m)||pe(e.unref(de).type,["indexPanel"]))&&Q.forEach(ee=>{ee.show=!1}),Q[H].show=q,a({[t.type]:Q})},h=z=>{var q;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];H.splice(z,1),a({[t.type]:H})},y=()=>{sessionStorage.setItem("indicator-card-item","")},N=z=>{const H=sessionStorage.getItem("indicator-list-item"),q=sessionStorage.getItem("indicator-card-item");H?g(H):q&&C(q)},w=z=>{var ue,Ce;const{newIndex:H,oldIndex:q,from:Q,to:le}=z,re=Q.id,ee=le.id;if(H>=0&&q>=0){if(re===ee){const we=((ue=e.unref(n)[t.type])==null?void 0:ue.slice())||[],Se=we.splice(q,1)[0];Se&&(we.splice(H,0,Se),a({[t.type]:we}))}else if(t.type===ee){const we=((Ce=e.unref(n)[ee])==null?void 0:Ce.slice())||[];if(we!=null&&we.length){const Se=we.splice(we.length-1,1)[0];Se&&(we.splice(H,0,Se),a({[t.type]:we}))}}}},S=(z,H)=>{const q=z.oldIndex,Q=H[q];Q&&sessionStorage.setItem("indicator-card-item",JSON.stringify({cardItem:Q,type:t.type,index:q}))},_=e.computed(()=>e.unref(n)[t.type]||[]),A=e.ref([]);let I=!1;e.watch(()=>e.unref(_).length,z=>{A.value=new Array(z).fill(!1)},{flush:"post",immediate:!0});const D=z=>{var q,Q,le;const H=((q=e.unref(n)[t.type])==null?void 0:q.slice())||[];if((Q=H[z])!=null&&Q.randomKey){const re=((le=e.unref(n))==null?void 0:le.variableList)||[];for(let ee=re.length-1;ee>=0;ee--)re[ee].randomKey===H[z].randomKey&&re.splice(ee,1);a({variableConditions:so(re,l),variableList:re})}H.splice(z,1),a({[t.type]:H})},T=z=>{A.value[z]=!0},R=()=>{I=!0},$=(z,H,q)=>{var Q,le,re,ee;if(A.value[H]=!1,I){const ue=(Q=z.target)==null?void 0:Q.value,Ce=((le=e.unref(n)[t.type])==null?void 0:le.slice())||[],we=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.formula)==null?void 0:Ne.includes(q)}).map(ke=>ke.id),Se=Ce.filter(ke=>{var Ne;return(Ne=ke==null?void 0:ke.builtInValueSource)==null?void 0:Ne.includes(q)}).map(ke=>ke.id);if(we!=null&&we.length)for(const ke of we){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.formula=Ne.formula.replaceAll(q,ue)}if(Se!=null&&Se.length)for(const ke of Se){const Ne=Ce.find(Ot=>Ot.id===ke);Ne.builtInValueSource=Ne.builtInValueSource.replaceAll(q,ue)}if(Ce[H].label=ue,(re=Ce[H])!=null&&re.randomKey){const ke=((ee=e.unref(n))==null?void 0:ee.variableList)||[],Ne=ke.filter(Ot=>Ot.randomKey===Ce[H].randomKey);Ne!=null&&Ne.length&&Ne.forEach(Ot=>{Ot.label=ue}),a({variableConditions:so(ke,l),variableList:ke})}a({[t.type]:Ce})}I=!1},M="DEFAULT",k=e.computed(()=>{const z=[],{scope:H}=e.unref(d)||{},q=e.unref(n)[t.type]||[];if(H==="DIM"&&!e.unref(d).typeGuid.includes("_code")){const ee=Z.cloneDeep(e.unref(d));delete ee.show,delete ee.truncations,delete ee.conditions,ee.hrpIndexComplexid+="_code",ee.id+="_code",ee.typeGuid+="_code",ee.label=ee.name+"_编码",ee.name=ee.typeGuid,ee.defaultCode=ee.typeGuid,z.push(ee)}const{leftAxisList:Q=[],rightAxisList:le=[],indicators:re=[]}=e.unref(n)||{};return[...q,...z,...Q,...le,...re]}),O=(z={},H,q="ASC")=>{var Ce;const{label:Q,name:le,id:re,defaultCode:ee}=z,ue=((Ce=e.unref(n)[t.type])==null?void 0:Ce.slice())||[];re===M?delete ue[H].sort:ue[H].sort={label:Q,columnName:le,type:"NORMAL",order:q,defaultCode:ee},a({[t.type]:ue})},B=(z={},H="ASC")=>{const Q={ASC:"升序",DESC:"降序"}[H],{sort:le}=z,{label:re,order:ee}=le||{};return re&&ee===H?`${Q}(${re})`:Q},P=e.ref(),F=e.ref(),E=e.ref(),V=e.ref(),x=(z={},H)=>{var q;P.value=z,F.value=H,(q=e.unref(E))==null||q.showModal(z)},L=z=>"排序"+(z!=null&&z.sort?"(已配置)":""),v=(z={},H)=>{var q;P.value=z,F.value=H,(q=e.unref(V))==null||q.showModal()},U=z=>"自定义分组"+((z==null?void 0:z.customGroup)!=null?"(已配置)":""),G=[{name:"总和",value:"SUM"},{name:"平均数",value:"AVG"},{name:"最小值",value:"MIN"},{name:"最大值",value:"MAX"},{name:"计数",value:"COUNT"}],Y=[{name:"是",value:1},{name:"否",value:0}],X=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].aggregate=z,a({[t.type]:q})},J=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].distinct=z,a({[t.type]:q})},oe=(z,H)=>{var Q;const q=((Q=e.unref(n)[t.type])==null?void 0:Q.slice())||[];q[H].dateFormat=z,a({[t.type]:q})},ae=(z="SUM")=>`汇总方式(${{SUM:"总和",AVG:"平均数",MIN:"最小值",MAX:"最大值",COUNT:"计数"}[z]})`,ye=z=>`是否去重(${{0:"否",1:"是"}[z]||"否"})`,ce=(z={})=>{var H;return"过滤"+(z!=null&&z.conditions&&((H=z==null?void 0:z.conditions)==null?void 0:H.length)>0?"(已配置)":"")},ge=e.ref(),at=e.ref(),Wt=e.ref(),Nt=e.ref(),wo=(z={},H)=>{P.value=z,F.value=H,e.unref(ge).showModal()},Yt=(z={},H)=>{P.value=z,F.value=H,e.unref(at).showModal(z)},qt=(z={},H)=>{P.value=z,F.value=H,e.unref(Wt).showModal(z)},Re=(z={},H)=>{P.value=z,F.value=H,e.unref(Nt).showModal(z,e.unref(K))},Qe=e.ref(),ht=e.ref("add"),At=(z,H,q)=>{var Q;ht.value=z,z==="edit"&&(P.value=H,F.value=q),(Q=e.unref(Qe))==null||Q.showModal()},Je=e.inject(Be),lt=e.unref(e.inject(Ve)),Ue=e.ref([]),Et=e.computed(()=>e.unref(n)[t.type]||{});e.watch(n,()=>{var z;pe(e.unref(de).type,["scatter","valueline"])&&((z=e.unref(n))!=null&&z.indicators)&&(Ue.value=e.unref(n).indicators.map(H=>({label:H.label,value:H.label})))}),e.watch(()=>n.value.classificationList,()=>{ko()});const rt=e.ref(""),ko=async()=>{const{source:z}=e.unref(n);if(z!=="EDV_DATA_SET"||!pe(e.unref(de).type,"select"))return;const{classificationList:H=[]}=e.unref(n),q=H.find(ee=>ee.show);if(q!=null&&q.parentId){if(e.unref(rt)===q.parentId)return;rt.value=q.parentId}else{e.unref(n).selectFieldOptions=[],Ue.value=[],rt.value="";return}const Q=await Je.get(`${_e}/dataset/`+q.parentId,{headers:{Authentication:lt,operateContext:"ygt"}}),{success:le,data:re=[]}=Q.data;if(le){const ee=re.column.map(ue=>({label:ue.columnName,value:ue.columnName}));e.unref(n).selectFieldOptions=ee,Ue.value=ee}},Ko=async()=>{const{source:z}=e.unref(n);if(!pe(e.unref(de).type,["scatter","valueline"]))try{if(z==="EDV_DATA_SET")await ko();else{const H=await Je.post(`${_e}/diagram/dimFields`,{},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:q,data:Q=[]}=H.data;q&&(e.unref(n).selectFieldOptions=Q||[],Ue.value=Q)}}catch(H){console.error(H)}},Xo=(z,H)=>{const q=e.unref(n)[t.type]||{};q[H]=z,a({[t.type]:q})},Kt=["classificationList","seriesList","rowHeaderList","queryColumnList","dimensionList"],W=e.ref({}),K=e.ref([]),te=async(z,H)=>{var Q;const{name:q}=H;if(!Kt.includes(t.type)&&z&&Ye(H,"indexCode")){const le=await Je.post(`${_e}/diagram/hrpIndexWithComplex`,{dataSourceId:"",indexGuid:H.id,indexCode:H.indexCode,pageId:(Q=window==null?void 0:window.config)==null?void 0:Q.pageId},{headers:{Authentication:lt,operateContext:"ygt"}}),{success:re,data:ee}=le.data;re&&ee&&(K.value=(ee==null?void 0:ee.dataViewColumns)||[],W.value[q]={name:ee.name,code:ee.indexCode})}},ie=z=>{d.value=z},se=z=>{const H=document.createElement("input");document.body.appendChild(H),H.setAttribute("value",z),H.select(),document.execCommand("copy"),document.body.removeChild(H),j.message.success("复制成功")},de=e.inject(Le),Te=e.computed(()=>t.type==="indicators"&&e.unref(de).type==="ecanTable"),Ze=e.computed(()=>!!["indicators","classificationList","leftAxisList","rightAxisList"].includes(t.type)),it=e.computed(()=>{var z,H;return pe((z=e.unref(de))==null?void 0:z.type,["table"])&&((H=e.unref(n))==null?void 0:H.isIndexSet)}),Xt=e.computed(()=>!Kt.includes(t.type)&&!e.unref(m)&&(!e.unref(it)||t.type!=="indicators"));return e.onMounted(()=>{t.type==="formFields"&&(e.unref(de).type==="ecanDataSelect"?Ue.value=[{label:"维度编码",value:"_code"},{label:"维度值",value:"_value"}]:Ko())}),{onCheckboxChange:f,onDropEnd:h,onDragItemEnd:y,onDragItemAdd:N,onDragItemSort:w,onDragItemStart:S,cardItemList:_,onDelete:D,onEdit:T,onCommitLabelChange:$,sortList:k,onSort:O,handleSortTitle:B,showCustomSortModal:x,customSortModalRef:E,currentItem:P,currentIndex:F,handleCustomSortTitle:L,handleCustomGroupTitle:U,customGroupModalRef:V,showCustomGroupModal:v,editLabelList:A,onLabelChange:R,aggregateList:G,distinctList:Y,onAggregateChange:X,onDistinctChange:J,onDateFormatChange:oe,handleAggregateTitle:ae,handleDistinctTitle:ye,onShowCalculationModal:At,handleFilterTitle:ce,filterModalRef:ge,configNameRef:at,sortByCpntRef:Wt,dimByCountRef:Nt,showFilterModal:wo,calculationModalRef:Qe,calculationModalMode:ht,formatList:o,fieldOptions:Ue,fieldData:Et,onFieldChange:Xo,onVisibleChange:te,onClickSetting:ie,copyDataViewName:se,dataViewMap:W,isShowConfigName:Te,showConfigNameModal:Yt,dimensionType:Kt,isShowSortByCpnt:Ze,showSortByCpntModal:qt,dataSelectIndicators:m,showDimByCountModal:Re,selectedComponent:de,lowerCaseIncludes:pe,isShowCalcBtn:Xt,isIndexSet:it,indexSetList:c,compositeIndicator:p}}}),Yy="",qy="",kt=t=>(e.pushScopeId("data-v-5bdf57b3"),t=t(),e.popScopeId(),t),Pu={class:"title"},ju={class:"title-text"},Ru={class:"field-wrap"},Uu={class:"field-item"},zu=kt(()=>e.createElementVNode("div",{class:"item-label"},"名称:",-1)),Gu={class:"field-item"},Hu=kt(()=>e.createElementVNode("div",{class:"item-label"},"值:",-1)),Wu={key:0,class:"field-item"},Yu=kt(()=>e.createElementVNode("div",{class:"item-label",style:{width:"20px"}},null,-1)),qu={class:"title"},Ku={class:"title-text"},Xu=kt(()=>e.createElementVNode("p",null,"配置了维度后,会使用返回数据的第一条中以【维度名】为key的值作为显示值",-1)),Qu=kt(()=>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=kt(()=>e.createElementVNode("span",{style:{"font-weight":"bold"}},"指标名:",-1)),rf={style:{display:"flex","align-items":"center"}},sf=["title"],cf=kt(()=>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"),S=e.resolveComponent("draggable"),_=e.resolveComponent("custom-sort-modal"),A=e.resolveComponent("custom-group-modal"),I=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"),M=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]=k=>t.onFieldChange(k,"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]=k=>t.onFieldChange(k,"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]=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",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(k=>t.onShowCalculationModal("add"),["prevent","stop"]))},[e.createVNode(u,{class:"add-calculation-icon"}),Qu])):t.isIndexSet?(e.openBlock(),e.createBlock(c,{key:1,checked:t.compositeIndicator,"onUpdate:checked":o[4]||(o[4]=k=>t.compositeIndicator=k)},{default:e.withCtx(()=>[e.createTextVNode("复合指标")]),_:1},8,["checked"])):e.createCommentVNode("",!0)])]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(t.type+"-list"),style:{height:"100%",padding:"10px"}},[e.createVNode(S,{modelValue:t.cardItemList,"onUpdate:modelValue":o[5]||(o[5]=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[6]||(o[6]=k=>t.onDragItemStart(k,t.cardItemList))},{item:e.withCtx(({element:k,index:O})=>[e.createElementVNode("div",Ju,[e.createVNode(c,{class:"card-item",checked:k.show,onChange:B=>t.onCheckboxChange(B,O)},{default:e.withCtx(()=>[e.createElementVNode("div",Zu,[!t.editLabelList[O]&&k.label?(e.openBlock(),e.createElementBlock("div",{key:0,class:"name",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])},e.toDisplayString(k.label),9,ef)):e.createCommentVNode("",!0),!t.editLabelList[O]&&!k.label?(e.openBlock(),e.createElementBlock("div",{key:1,class:"name placeholder",onClick:e.withModifiers(B=>t.onEdit(O),["prevent","stop"])}," 请点击填入名字 ",8,tf)):e.createCommentVNode("",!0),t.editLabelList[O]?e.withDirectives((e.openBlock(),e.createBlock(m,{key:2,"default-value":k.label,size:"small",onBlur:B=>t.onCommitLabelChange(B,O,k.label),onPressEnter:B=>t.onCommitLabelChange(B,O,k.label),onChange:t.onLabelChange},null,8,["default-value","onBlur","onPressEnter","onChange"])),[[M]]):e.createCommentVNode("",!0),["FORMULA","BUILT_IN","COMPONENT"].includes(k.calcType)?(e.openBlock(),e.createElementBlock("span",{key:3,class:"calculation-icon",onClick:e.withModifiers(B=>t.onShowCalculationModal("edit",k,O),["prevent","stop"])}," fx ",8,of)):e.createCommentVNode("",!0),t.type!=="indexLibColumns"?(e.openBlock(),e.createBlock(N,{key:4,trigger:["click"],onVisibleChange:B=>t.onVisibleChange(B,k)},{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:B=>t.showCustomSortModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomSortTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(C,{onClick:B=>t.showCustomGroupModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleCustomGroupTitle(k)),1)]),_:2},1032,["onClick"]),e.createVNode(b),k.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,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDateFormatChange(B.value,O)},{default:e.withCtx(()=>[e.createElementVNode("span",{style:e.normalizeStyle(k.dateFormat===B.value||!k.dateFormat&&B.value==="YYYY-MM-DD"?"color: #1890FF;":"")},e.toDisplayString(B.label),5)]),_:2},1032,["onClick"]))),128))]),_:2},1024),e.createVNode(b)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createVNode(C,{onClick:B=>t.showFilterModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.handleFilterTitle(k)),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(k.aggregate)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.aggregateList,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onAggregateChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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:B=>t.showConfigNameModal(k,O)},{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:B=>t.showSortByCpntModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联组件排序 ")]),_:2},1032,["onClick"]),e.createVNode(b)],64)):e.createCommentVNode("",!0),k.name==="the_count"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:4},[e.createVNode(C,{onClick:B=>t.showDimByCountModal(k,O)},{default:e.withCtx(()=>[e.createTextVNode(" 关联维度 ")]),_:2},1032,["onClick"]),e.createVNode(b),e.createVNode(f,{title:t.handleDistinctTitle(k.distinct)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.distinctList,B=>(e.openBlock(),e.createBlock(C,{style:{"white-space":"nowrap"},key:B.value,onClick:P=>t.onDistinctChange(B.value,O)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B.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[k.name]?(e.openBlock(),e.createBlock(C,{key:0,onClick:B=>t.copyDataViewName(t.dataViewMap[k.name].name)},{default:e.withCtx(()=>[e.createElementVNode("div",nf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].name},[lf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.name].name),1)],8,af),e.createVNode(h,{style:{color:"#52C41A","margin-left":"10px"},title:"点击复制"})])]),_:2},1032,["onClick"])):e.createCommentVNode("",!0),t.dataViewMap[k.name]?(e.openBlock(),e.createBlock(C,{key:1,onClick:B=>t.copyDataViewName(t.dataViewMap[k.name].code)},{default:e.withCtx(()=>[e.createElementVNode("div",rf,[e.createElementVNode("span",{class:"data-view-name",title:t.dataViewMap[k.name].code},[cf,e.createTextVNode(" "+e.toDisplayString(t.dataViewMap[k.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:B=>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(B=>t.onDelete(O),["prevent"])},null,8,["onClick"])):e.createCommentVNode("",!0)])]),_:2},1032,["checked","onChange"])])]),_:1},8,["modelValue","id","disabled","onAdd","onSort","onEnd"])],2),e.createVNode(_,{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(I,{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=ne(Mu,[["render",df],["__scopeId","data-v-5bdf57b3"]]),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(Le),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=Z.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"],indexPanel:["indicators"]},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}}}),Ky="",Xy="",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=ne(ff,[["render",hf],["__scopeId","data-v-62322ee7"]]),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"]}],sr=[{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:""},...sr]}},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:""},...sr]}},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轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量`}}},_f=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 Sf(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 Tf=ne(_f,[["render",Sf]]),Nf=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 Af(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 dr=ne(Nf,[["render",Af]]),Ef=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 Of(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 Bf=ne(Ef,[["render",Of]]),Vf=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 Lf(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 Ff=ne(Vf,[["render",Lf]]),$f=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 If(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 Df=ne($f,[["render",If]]);var Ee="top",ve="bottom",Me="right",Oe="left",Xn="auto",co=[Ee,ve,Me,Oe],jt="start",po="end",vf="clippingParents",pr="viewport",uo="popper",Mf="reference",ur=co.reduce(function(t,o){return t.concat([o+"-"+jt,o+"-"+po])},[]),fr=[].concat(co,[Xn]).reduce(function(t,o){return t.concat([o,o+"-"+jt,o+"-"+po])},[]),Pf="beforeRead",jf="read",Rf="afterRead",Uf="beforeMain",zf="main",Gf="afterMain",Hf="beforeWrite",Wf="write",Yf="afterWrite",qf=[Pf,jf,Rf,Uf,zf,Gf,Hf,Wf,Yf];function qe(t){return t?(t.nodeName||"").toLowerCase():null}function Ie(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var o=t.ownerDocument;return o&&o.defaultView||window}return t}function xt(t){var o=Ie(t).Element;return t instanceof o||t instanceof Element}function Pe(t){var o=Ie(t).HTMLElement;return t instanceof o||t instanceof HTMLElement}function Qn(t){if(typeof ShadowRoot>"u")return!1;var o=Ie(t).ShadowRoot;return t instanceof o||t instanceof ShadowRoot}function Kf(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];!Pe(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 Xf(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},{});!Pe(l)||!qe(l)||(Object.assign(l.style,c),Object.keys(r).forEach(function(i){l.removeAttribute(i)}))})}}const Qf={name:"applyStyles",enabled:!0,phase:"write",fn:Kf,effect:Xf,requires:["computeStyles"]};function Ke(t){return t.split("-")[0]}var _t=Math.max,$o=Math.min,Rt=Math.round;function Jn(){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 mr(){return!/^((?!chrome|android).)*safari/i.test(Jn())}function Ut(t,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),l=1,r=1;o&&Pe(t)&&(l=t.offsetWidth>0&&Rt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Rt(a.height)/t.offsetHeight||1);var s=xt(t)?Ie(t):window,c=s.visualViewport,i=!mr()&&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 Zn(t){var o=Ut(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 hr(t,o){var n=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(n&&Qn(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 Ie(t).getComputedStyle(t)}function Jf(t){return["table","td","th"].indexOf(qe(t))>=0}function mt(t){return((xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Io(t){return qe(t)==="html"?t:t.assignedSlot||t.parentNode||(Qn(t)?t.host:null)||mt(t)}function br(t){return!Pe(t)||ot(t).position==="fixed"?null:t.offsetParent}function Zf(t){var o=/firefox/i.test(Jn()),n=/Trident/i.test(Jn());if(n&&Pe(t)){var a=ot(t);if(a.position==="fixed")return null}var l=Io(t);for(Qn(l)&&(l=l.host);Pe(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 fo(t){for(var o=Ie(t),n=br(t);n&&Jf(n)&&ot(n).position==="static";)n=br(n);return n&&(qe(n)==="html"||qe(n)==="body"&&ot(n).position==="static")?o:n||Zf(t)||o}function ea(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mo(t,o,n){return _t(t,$o(o,n))}function em(t,o,n){var a=mo(t,o,n);return a>n?n:a}function yr(){return{top:0,right:0,bottom:0,left:0}}function gr(t){return Object.assign({},yr(),t)}function Cr(t,o){return o.reduce(function(n,a){return n[a]=t,n},{})}var tm=function(o,n){return o=typeof o=="function"?o(Object.assign({},n.rects,{placement:n.placement})):o,gr(typeof o!="number"?o:Cr(o,co))};function om(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=ea(c),d=[Oe,Me].indexOf(c)>=0,p=d?"height":"width";if(!(!r||!s)){var u=tm(l.padding,n),m=Zn(r),g=i==="y"?Ee:Oe,C=i==="y"?ve:Me,b=n.rects.reference[p]+n.rects.reference[i]-s[i]-n.rects.popper[p],f=s[i]-n.rects.reference[i],h=fo(r),y=h?i==="y"?h.clientHeight||0:h.clientWidth||0:0,N=b/2-f/2,w=u[g],_=y-m[p]-u[C],S=y/2-m[p]/2+N,A=mo(w,S,_),I=i;n.modifiersData[a]=(o={},o[I]=A,o.centerOffset=A-S,o)}}function nm(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)||hr(o.elements.popper,l)&&(o.elements.arrow=l))}const am={name:"arrow",enabled:!0,phase:"main",fn:om,effect:nm,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zt(t){return t.split("-")[1]}var lm={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rm(t,o){var n=t.x,a=t.y,l=o.devicePixelRatio||1;return{x:Rt(n*l)/l||0,y:Rt(a*l)/l||0}}function wr(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,_=window;if(d){var S=fo(n),A="clientHeight",I="clientWidth";if(S===Ie(n)&&(S=mt(n),ot(S).position!=="static"&&c==="absolute"&&(A="scrollHeight",I="scrollWidth")),S=S,l===Ee||(l===Oe||l===Me)&&r===po){w=ve;var D=u&&S===_&&_.visualViewport?_.visualViewport.height:S[A];b-=D-a.height,b*=i?1:-1}if(l===Oe||(l===Ee||l===ve)&&r===po){N=Me;var T=u&&S===_&&_.visualViewport?_.visualViewport.width:S[I];g-=T-a.width,g*=i?1:-1}}var R=Object.assign({position:c},d&&lm),$=p===!0?rm({x:g,y:b},Ie(n)):{x:g,y:b};if(g=$.x,b=$.y,i){var M;return Object.assign({},R,(M={},M[w]=y?"0":"",M[N]=h?"0":"",M.transform=(_.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",M))}return Object.assign({},R,(o={},o[w]=y?b+"px":"",o[N]=h?g+"px":"",o.transform="",o))}function im(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:zt(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,wr(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,wr(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 sm={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:im,data:{}};var Do={passive:!0};function cm(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=Ie(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",n.update,Do)}),c&&i.addEventListener("resize",n.update,Do),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Do)}),c&&i.removeEventListener("resize",n.update,Do)}}const dm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cm,data:{}};var pm={left:"right",right:"left",bottom:"top",top:"bottom"};function vo(t){return t.replace(/left|right|bottom|top/g,function(o){return pm[o]})}var um={start:"end",end:"start"};function kr(t){return t.replace(/start|end/g,function(o){return um[o]})}function ta(t){var o=Ie(t),n=o.pageXOffset,a=o.pageYOffset;return{scrollLeft:n,scrollTop:a}}function oa(t){return Ut(mt(t)).left+ta(t).scrollLeft}function fm(t,o){var n=Ie(t),a=mt(t),l=n.visualViewport,r=a.clientWidth,s=a.clientHeight,c=0,i=0;if(l){r=l.width,s=l.height;var d=mr();(d||!d&&o==="fixed")&&(c=l.offsetLeft,i=l.offsetTop)}return{width:r,height:s,x:c+oa(t),y:i}}function mm(t){var o,n=mt(t),a=ta(t),l=(o=t.ownerDocument)==null?void 0:o.body,r=_t(n.scrollWidth,n.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),s=_t(n.scrollHeight,n.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),c=-a.scrollLeft+oa(t),i=-a.scrollTop;return ot(l||n).direction==="rtl"&&(c+=_t(n.clientWidth,l?l.clientWidth:0)-r),{width:r,height:s,x:c,y:i}}function na(t){var o=ot(t),n=o.overflow,a=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function xr(t){return["html","body","#document"].indexOf(qe(t))>=0?t.ownerDocument.body:Pe(t)&&na(t)?t:xr(Io(t))}function ho(t,o){var n;o===void 0&&(o=[]);var a=xr(t),l=a===((n=t.ownerDocument)==null?void 0:n.body),r=Ie(a),s=l?[r].concat(r.visualViewport||[],na(a)?a:[]):a,c=o.concat(s);return l?c:c.concat(ho(Io(s)))}function aa(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function hm(t,o){var n=Ut(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 _r(t,o,n){return o===pr?aa(fm(t,n)):xt(o)?hm(o,n):aa(mm(mt(t)))}function bm(t){var o=ho(Io(t)),n=["absolute","fixed"].indexOf(ot(t).position)>=0,a=n&&Pe(t)?fo(t):t;return xt(a)?o.filter(function(l){return xt(l)&&hr(l,a)&&qe(l)!=="body"}):[]}function ym(t,o,n,a){var l=o==="clippingParents"?bm(t):[].concat(o),r=[].concat(l,[n]),s=r[0],c=r.reduce(function(i,d){var p=_r(t,d,a);return i.top=_t(p.top,i.top),i.right=$o(p.right,i.right),i.bottom=$o(p.bottom,i.bottom),i.left=_t(p.left,i.left),i},_r(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 Sr(t){var o=t.reference,n=t.element,a=t.placement,l=a?Ke(a):null,r=a?zt(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 ve:i={x:s,y:o.y+o.height};break;case Me: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?ea(l):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case jt:i[d]=i[d]-(o[p]/2-n[p]/2);break;case po:i[d]=i[d]+(o[p]/2-n[p]/2);break}}return i}function bo(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?vf:c,d=n.rootBoundary,p=d===void 0?pr:d,u=n.elementContext,m=u===void 0?uo:u,g=n.altBoundary,C=g===void 0?!1:g,b=n.padding,f=b===void 0?0:b,h=gr(typeof f!="number"?f:Cr(f,co)),y=m===uo?Mf:uo,N=t.rects.popper,w=t.elements[C?y:m],_=ym(xt(w)?w:w.contextElement||mt(t.elements.popper),i,p,s),S=Ut(t.elements.reference),A=Sr({reference:S,element:N,strategy:"absolute",placement:l}),I=aa(Object.assign({},N,A)),D=m===uo?I:S,T={top:_.top-D.top+h.top,bottom:D.bottom-_.bottom+h.bottom,left:_.left-D.left+h.left,right:D.right-_.right+h.right},R=t.modifiersData.offset;if(m===uo&&R){var $=R[l];Object.keys(T).forEach(function(M){var k=[Me,ve].indexOf(M)>=0?1:-1,O=[Ee,ve].indexOf(M)>=0?"y":"x";T[M]+=$[O]*k})}return T}function gm(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?fr:i,p=zt(a),u=p?c?ur:ur.filter(function(C){return zt(C)===p}):co,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]=bo(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 Cm(t){if(Ke(t)===Xn)return[];var o=vo(t);return[kr(t),o,kr(o)]}function wm(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?[vo(f)]:Cm(f)),w=[f].concat(N).reduce(function(U,G){return U.concat(Ke(G)===Xn?gm(o,{placement:G,boundary:p,rootBoundary:u,padding:d,flipVariations:C,allowedAutoPlacements:b}):G)},[]),_=o.rects.reference,S=o.rects.popper,A=new Map,I=!0,D=w[0],T=0;T<w.length;T++){var R=w[T],$=Ke(R),M=zt(R)===jt,k=[Ee,ve].indexOf($)>=0,O=k?"width":"height",B=bo(o,{placement:R,boundary:p,rootBoundary:u,altBoundary:m,padding:d}),P=k?M?Me:Oe:M?ve:Ee;_[O]>S[O]&&(P=vo(P));var F=vo(P),E=[];if(r&&E.push(B[$]<=0),c&&E.push(B[P]<=0,B[F]<=0),E.every(function(U){return U})){D=R,I=!1;break}A.set(R,E)}if(I)for(var V=C?3:1,x=function(G){var Y=w.find(function(X){var J=A.get(X);if(J)return J.slice(0,G).every(function(oe){return oe})});if(Y)return D=Y,"break"},L=V;L>0;L--){var v=x(L);if(v==="break")break}o.placement!==D&&(o.modifiersData[a]._skip=!0,o.placement=D,o.reset=!0)}}const km={name:"flip",enabled:!0,phase:"main",fn:wm,requiresIfExists:["offset"],data:{_skip:!1}};function Tr(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 Nr(t){return[Ee,Me,ve,Oe].some(function(o){return t[o]>=0})}function xm(t){var o=t.state,n=t.name,a=o.rects.reference,l=o.rects.popper,r=o.modifiersData.preventOverflow,s=bo(o,{elementContext:"reference"}),c=bo(o,{altBoundary:!0}),i=Tr(s,a),d=Tr(c,l,r),p=Nr(i),u=Nr(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 _m={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xm};function Sm(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,Me].indexOf(a)>=0?{x:c,y:s}:{x:s,y:c}}function Tm(t){var o=t.state,n=t.options,a=t.name,l=n.offset,r=l===void 0?[0,0]:l,s=fr.reduce(function(p,u){return p[u]=Sm(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 Nm={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tm};function Am(t){var o=t.state,n=t.name;o.modifiersData[n]=Sr({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const Em={name:"popperOffsets",enabled:!0,phase:"read",fn:Am,data:{}};function Om(t){return t==="x"?"y":"x"}function Bm(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=bo(o,{boundary:i,rootBoundary:d,padding:u,altBoundary:p}),h=Ke(o.placement),y=zt(o.placement),N=!y,w=ea(h),_=Om(w),S=o.modifiersData.popperOffsets,A=o.rects.reference,I=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 M,k=w==="y"?Ee:Oe,O=w==="y"?ve:Me,B=w==="y"?"height":"width",P=S[w],F=P+f[k],E=P-f[O],V=g?-I[B]/2:0,x=y===jt?A[B]:I[B],L=y===jt?-I[B]:-A[B],v=o.elements.arrow,U=g&&v?Zn(v):{width:0,height:0},G=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:yr(),Y=G[k],X=G[O],J=mo(0,A[B],U[B]),oe=N?A[B]/2-V-J-Y-T.mainAxis:x-J-Y-T.mainAxis,ae=N?-A[B]/2+V+J+X+T.mainAxis:L+J+X+T.mainAxis,ye=o.elements.arrow&&fo(o.elements.arrow),ce=ye?w==="y"?ye.clientTop||0:ye.clientLeft||0:0,ge=(M=R==null?void 0:R[w])!=null?M:0,at=P+oe-ge-ce,Wt=P+ae-ge,Nt=mo(g?$o(F,at):F,P,g?_t(E,Wt):E);S[w]=Nt,$[w]=Nt-P}if(c){var wo,Yt=w==="x"?Ee:Oe,qt=w==="x"?ve:Me,Re=S[_],Qe=_==="y"?"height":"width",ht=Re+f[Yt],At=Re-f[qt],Je=[Ee,Oe].indexOf(h)!==-1,lt=(wo=R==null?void 0:R[_])!=null?wo:0,Ue=Je?ht:Re-A[Qe]-I[Qe]-lt+T.altAxis,Et=Je?Re+A[Qe]+I[Qe]-lt-T.altAxis:At,rt=g&&Je?em(Ue,Re,Et):mo(g?Ue:ht,Re,g?Et:At);S[_]=rt,$[_]=rt-Re}o.modifiersData[a]=$}}const Vm={name:"preventOverflow",enabled:!0,phase:"main",fn:Bm,requiresIfExists:["offset"]};function Lm(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Fm(t){return t===Ie(t)||!Pe(t)?ta(t):Lm(t)}function $m(t){var o=t.getBoundingClientRect(),n=Rt(o.width)/t.offsetWidth||1,a=Rt(o.height)/t.offsetHeight||1;return n!==1||a!==1}function Im(t,o,n){n===void 0&&(n=!1);var a=Pe(o),l=Pe(o)&&$m(o),r=mt(o),s=Ut(t,l,n),c={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(a||!a&&!n)&&((qe(o)!=="body"||na(r))&&(c=Fm(o)),Pe(o)?(i=Ut(o,!0),i.x+=o.clientLeft,i.y+=o.clientTop):r&&(i.x=oa(r))),{x:s.left+c.scrollLeft-i.x,y:s.top+c.scrollTop-i.y,width:s.width,height:s.height}}function Dm(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 vm(t){var o=Dm(t);return qf.reduce(function(n,a){return n.concat(o.filter(function(l){return l.phase===a}))},[])}function Mm(t){var o;return function(){return o||(o=new Promise(function(n){Promise.resolve().then(function(){o=void 0,n(t())})})),o}}function Pm(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 Ar={placement:"bottom",modifiers:[],strategy:"absolute"};function Er(){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 jm(t){t===void 0&&(t={});var o=t,n=o.defaultModifiers,a=n===void 0?[]:n,l=o.defaultOptions,r=l===void 0?Ar:l;return function(c,i,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ar,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:xt(c)?ho(c):c.contextElement?ho(c.contextElement):[],popper:ho(i)};var N=vm(Pm([].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(Er(y,N)){p.rects={reference:Im(y,fo(N),p.options.strategy==="fixed"),popper:Zn(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 _=p.orderedModifiers[w],S=_.fn,A=_.options,I=A===void 0?{}:A,D=_.name;typeof S=="function"&&(p=S({state:p,options:I,name:D,instance:g})||p)}}}},update:Mm(function(){return new Promise(function(f){g.forceUpdate(),f(p)})}),destroy:function(){b(),m=!0}};if(!Er(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 _=w({state:p,name:h,instance:g,options:N}),S=function(){};u.push(_||S)}})}function b(){u.forEach(function(f){return f()}),u=[]}return g}}var Rm=[dm,Em,sm,Qf,Nm,km,Vm,am,_m],Um=jm({defaultModifiers:Rm});function la(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 Or(t,o){if(t){if(typeof t=="string")return la(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)?la(t,o):void 0}}function zm(t){return function(o){if(Array.isArray(o))return la(o)}(t)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(t)||Or(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 Gt(t){return Gt=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},Gt(t)}function Br(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 Vr(t){return function(){var o=this,n=arguments;return new Promise(function(a,l){var r=t.apply(o,n);function s(i){Br(r,a,l,s,c,"next",i)}function c(i){Br(r,a,l,s,c,"throw",i)}s(void 0)})}}var Lr={exports:{}},Fr={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})(Fr),function(t){var o=Fr.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(E,V,x){E[V]=x.value},i=typeof Symbol=="function"?Symbol:{},d=i.iterator||"@@iterator",p=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function m(E,V,x){return Object.defineProperty(E,V,{value:x,enumerable:!0,configurable:!0,writable:!0}),E[V]}try{m({},"")}catch{m=function(V,x,L){return V[x]=L}}function g(E,V,x,L){var v=V&&V.prototype instanceof w?V:w,U=Object.create(v.prototype),G=new P(L||[]);return c(U,"_invoke",{value:M(E,x,G)}),U}function C(E,V,x){try{return{type:"normal",arg:E.call(V,x)}}catch(L){return{type:"throw",arg:L}}}l.wrap=g;var b="suspendedStart",f="suspendedYield",h="executing",y="completed",N={};function w(){}function _(){}function S(){}var A={};m(A,d,function(){return this});var I=Object.getPrototypeOf,D=I&&I(I(F([])));D&&D!==r&&s.call(D,d)&&(A=D);var T=S.prototype=w.prototype=Object.create(A);function R(E){["next","throw","return"].forEach(function(V){m(E,V,function(x){return this._invoke(V,x)})})}function $(E,V){function x(v,U,G,Y){var X=C(E[v],E,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(ae){x("next",ae,G,Y)},function(ae){x("throw",ae,G,Y)}):V.resolve(oe).then(function(ae){J.value=ae,G(J)},function(ae){return x("throw",ae,G,Y)})}Y(X.arg)}var L;c(this,"_invoke",{value:function(v,U){function G(){return new V(function(Y,X){x(v,U,Y,X)})}return L=L?L.then(G,G):G()}})}function M(E,V,x){var L=b;return function(v,U){if(L===h)throw new Error("Generator is already running");if(L===y){if(v==="throw")throw U;return{value:a,done:!0}}for(x.method=v,x.arg=U;;){var G=x.delegate;if(G){var Y=k(G,x);if(Y){if(Y===N)continue;return Y}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(L===b)throw L=y,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);L=h;var X=C(E,V,x);if(X.type==="normal"){if(L=x.done?y:f,X.arg===N)continue;return{value:X.arg,done:x.done}}X.type==="throw"&&(L=y,x.method="throw",x.arg=X.arg)}}}function k(E,V){var x=V.method,L=E.iterator[x];if(L===a)return V.delegate=null,x==="throw"&&E.iterator.return&&(V.method="return",V.arg=a,k(E,V),V.method==="throw")||x!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+x+"' method")),N;var v=C(L,E.iterator,V.arg);if(v.type==="throw")return V.method="throw",V.arg=v.arg,V.delegate=null,N;var U=v.arg;return U?U.done?(V[E.resultName]=U.value,V.next=E.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 O(E){var V={tryLoc:E[0]};1 in E&&(V.catchLoc=E[1]),2 in E&&(V.finallyLoc=E[2],V.afterLoc=E[3]),this.tryEntries.push(V)}function B(E){var V=E.completion||{};V.type="normal",delete V.arg,E.completion=V}function P(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(O,this),this.reset(!0)}function F(E){if(E||E===""){var V=E[d];if(V)return V.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var x=-1,L=function v(){for(;++x<E.length;)if(s.call(E,x))return v.value=E[x],v.done=!1,v;return v.value=a,v.done=!0,v};return L.next=L}}throw new TypeError(o(E)+" is not iterable")}return _.prototype=S,c(T,"constructor",{value:S,configurable:!0}),c(S,"constructor",{value:_,configurable:!0}),_.displayName=m(S,u,"GeneratorFunction"),l.isGeneratorFunction=function(E){var V=typeof E=="function"&&E.constructor;return!!V&&(V===_||(V.displayName||V.name)==="GeneratorFunction")},l.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,S):(E.__proto__=S,m(E,u,"GeneratorFunction")),E.prototype=Object.create(T),E},l.awrap=function(E){return{__await:E}},R($.prototype),m($.prototype,p,function(){return this}),l.AsyncIterator=$,l.async=function(E,V,x,L,v){v===void 0&&(v=Promise);var U=new $(g(E,V,x,L),v);return l.isGeneratorFunction(V)?U:U.next().then(function(G){return G.done?G.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(E){var V=Object(E),x=[];for(var L in V)x.push(L);return x.reverse(),function v(){for(;x.length;){var U=x.pop();if(U in V)return v.value=U,v.done=!1,v}return v.done=!0,v}},l.values=F,P.prototype={constructor:P,reset:function(E){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(B),!E)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 E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var V=this;function x(X,J){return U.type="throw",U.arg=E,V.next=X,J&&(V.method="next",V.arg=a),!!J}for(var L=this.tryEntries.length-1;L>=0;--L){var v=this.tryEntries[L],U=v.completion;if(v.tryLoc==="root")return x("end");if(v.tryLoc<=this.prev){var G=s.call(v,"catchLoc"),Y=s.call(v,"finallyLoc");if(G&&Y){if(this.prev<v.catchLoc)return x(v.catchLoc,!0);if(this.prev<v.finallyLoc)return x(v.finallyLoc)}else if(G){if(this.prev<v.catchLoc)return x(v.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<v.finallyLoc)return x(v.finallyLoc)}}}},abrupt:function(E,V){for(var x=this.tryEntries.length-1;x>=0;--x){var L=this.tryEntries[x];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var v=L;break}}v&&(E==="break"||E==="continue")&&v.tryLoc<=V&&V<=v.finallyLoc&&(v=null);var U=v?v.completion:{};return U.type=E,U.arg=V,v?(this.method="next",this.next=v.finallyLoc,N):this.complete(U)},complete:function(E,V){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&V&&(this.next=V),N},finish:function(E){for(var V=this.tryEntries.length-1;V>=0;--V){var x=this.tryEntries[V];if(x.finallyLoc===E)return this.complete(x.completion,x.afterLoc),B(x),N}},catch:function(E){for(var V=this.tryEntries.length-1;V>=0;--V){var x=this.tryEntries[V];if(x.tryLoc===E){var L=x.completion;if(L.type==="throw"){var v=L.arg;B(x)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(E,V,x){return this.delegate={iterator:F(E),resultName:V,nextLoc:x},this.method==="next"&&(this.arg=a),N}},l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Lr);var Mo=Lr.exports(),Po=Mo;try{regeneratorRuntime=Mo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Mo:Function("r","regeneratorRuntime = r")(Mo)}function Gm(t){var o=function(n,a){if(Gt(n)!=="object"||n===null)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var r=l.call(n,a||"default");if(Gt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}(t,"string");return Gt(o)==="symbol"?o:String(o)}function ra(t,o,n){return(o=Gm(o))in t?Object.defineProperty(t,o,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[o]=n,t}var jo=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)})}}}}),$r=function(t){return e.pushScopeId("data-v-24517fec"),t=t(),e.popScopeId(),t},Hm=$r(function(){return e.createElementVNode("div",{class:"saturation-white"},null,-1)}),Wm=$r(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}"),jo.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"]))},[Hm,Wm,e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],36)},jo.__scopeId="data-v-24517fec",jo.__file="src/picker/Saturation.vue";var Ro=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)})}}}}),Ym={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}"),Ro.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",Ym,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},Ro.__scopeId="data-v-78b9f4f0",Ro.__file="src/picker/Hue.vue";var Uo=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)})}}}}),qm={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}"),Uo.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",qm,null,512),e.createElementVNode("div",{class:"slider",style:e.normalizeStyle(t.sliderStyle)},null,4)],32)},Uo.__scopeId="data-v-24dc9656",Uo.__file="src/picker/Alpha.vue";var zo=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")}}}}),Km={class:"input"},Xm={class:"label"},Qm=[".value"];function yo(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)||Or(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 Ir(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 je(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Ir(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ir(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}"),zo.render=function(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Km,[e.createElementVNode("span",Xm,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,Qm)])},zo.__scopeId="data-v-d52a4d02",zo.__file="src/picker/InputValue.vue";var Dr=function(t,o,n){return[t,o*n/((t=(2-o)*n)<1?t:2-t)||0,t/2]},vr={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Go=function(t){t=Math.min(Math.round(t),255);var o=Math.floor(t/16),n=t%16;return"".concat(vr[o]||o).concat(vr[n]||n)},Mr=function(t){var o=t.r,n=t.g,a=t.b;return isNaN(o)||isNaN(n)||isNaN(a)?"":"#".concat(Go(o)).concat(Go(n)).concat(Go(a))},Ht=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)},go=function(t,o,n){t=6*Ht(t,360),o=Ht(o,100),n=Ht(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)}},Pr=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=Dr(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=go(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(Mr(go(a,l,r))).concat(Go(255*s))}else switch(o){case"hsl":var m=Dr(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=go(a,l,r),C=g.r,b=g.g,f=g.b;return"rgb(".concat(C,", ").concat(b,", ").concat(f,")");default:return Mr(go(a,l,r))}},Ho=function(t){var o=t.r,n=t.g,a=t.b;o=Ht(o,255),n=Ht(n,255),a=Ht(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}},jr=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)}},Rr=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]}},ia=function(t,o,n){if(typeof t=="string"&&t!==""){var a=sa(t,ca(t),n),l=Hr(a);return Pr(l,o,n)}return""},Ur=function(t){var o=yo(t.match(/(\d(\.\d+)?)+/g),4);return{r:o[0],g:o[1],b:o[2],a:o[3]}},zr=function(t){var o=yo(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}},Gr=function(t){var o=yo(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)}},sa=function(t,o){if(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])switch(o){case"rgb":var n=Ur(t),a=n.r,l=n.g,r=n.b,s=n.a;return je(je({},Ho({r:a,g:l,b:r})),{},{a:+s});case"hsv":var c=Gr(t);return{h:c.h,s:c.s,v:c.v,a:c.a};case"hsl":var i=zr(t),d=i.h,p=i.s,u=i.l,m=i.a;return je(je({},jr({h:d,s:p,l:u})),{},{a:+m});default:var g=Rr(t),C=g.r,b=g.g,f=g.b,h=g.a;return je(je({},Ho({r:C,g:b,b:f})),{},{a:h/255})}else switch(o){case"rgb":return je(je({},Ho(Ur(t))),{},{a:1});case"hsv":var y=Gr(t);return{h:y.h,s:y.s,v:y.v,a:1};case"hsl":return je(je({},jr(zr(t))),{},{a:1});default:return je(je({},Ho(Rr(t))),{},{a:1})}},ca=function(t){return t.match(/^#/)?"hex":t.match(/^rgb/)?"rgb":t.match(/^hsl/)?"hsl":t.match(/^hsv/)?"hsv":"hex"},Hr=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}},Co=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}}}),Jm=["draggable"];nt(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"),Co.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,Jm)},Co.__scopeId="data-v-02da71fd",Co.__file="src/color-item/ColorItem.vue";var Wo=e.defineComponent({name:"Colors",components:{ColorItem:Co},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 ia(a,"hex",!0)})})}}}),Zm={class:"colors"};function Wr(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?Wr(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(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}"),Wo.render=function(t,o,n,a,l,r){var s=e.resolveComponent("color-item");return e.openBlock(),e.createElementBlock("div",Zm,[(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))])},Wo.__scopeId="data-v-0f8b52a8",Wo.__file="src/picker/Colors.vue";var Yo=e.defineComponent({name:"Picker",components:{Colors:Wo,Saturation:jo,Hue:Ro,Alpha:Uo,InputValue:zo},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=ca(N);return Hr(sa(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=Pr(Xe({},y),t.format,t.showAlpha),s.value=Xe({},y)):s.value=null,c.value=w;var _=i();JSON.stringify(y)!==JSON.stringify(_)&&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 go(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 _=sa(y,N,w),S=_.h,A=_.s,I=_.v;if(!(isNaN(S)||isNaN(A)||isNaN(I))){var D=1,T=_.a;isNaN(T)||(D=T),r.value={h:S,s:A,v:I,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,_=t.format,S=function(A,I,D){if(D)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(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(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(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,_,w);S?h(N,_,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=ca(y);w?h(y,w,!0):r.value=null}}}}}),eh={class:"picker-inner"},th={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}"),Yo.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",eh,[e.createElementVNode("div",th,[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)},Yo.__scopeId="data-v-6ceadec6",Yo.__file="src/picker/Picker.vue";var qo=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"):""}})}}}),oh=[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 Yr(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 da(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Yr(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Yr(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}"),qo.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(oh),4)},qo.__scopeId="data-v-ceb1719c",qo.__file="src/add-color-item/AddColorItem.vue";var St=null,Tt=e.defineComponent({name:"ColorPicker",components:{ColorItem:Co,Picker:Yo,AddColorItem:qo},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 ia(k,"hex",t.showAlpha)})});e.watch(function(){return t.value},function(){var k=t.value||"",O=Array.isArray(k)?k:[k];a.value=O.map(function(B){return ia(B,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(){St.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 O=k.state,B=O.styles,P=O.placement,F=B.popper;u.value=da(da(da({},F),p),{},{transformOrigin:P==="top"?"center bottom":""})}}]},e.watch(function(){return[e.unref(i),e.unref(d)]},function(k,O){var B,P=yo(k,2),F=P[0],E=P[1],V=yo(O,2),x=V[0],L=V[1];if(F&&E&&(x!==F||L!==x)){(B=St)===null||B===void 0||B.destroy();var v=F.$el||F,U=E.$el||E;e.nextTick(function(){St=Um(v,U,m)})}}),e.onBeforeUnmount(function(){var k;St&&((k=St)===null||k===void 0||k.destroy(),St=null)}),{instance:St,style:u}),y=h.style,N=function(){e.unref(b)==null&&(b.value=e.unref(M)[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]))},_=e.ref(),S=function(){var k=Vr(Po.mark(function O(B){var P,F,E,V;return Po.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(F=B.target,(E=(P=F.dataset)===null||P===void 0?void 0:P.index)!=null&&E!==""){x.next=4;break}return x.abrupt("return");case 4:if(V=+E,e.unref(r)!==V){x.next=7;break}return x.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=F;case 10:case"end":return x.stop()}},O)}));return function(O){return k.apply(this,arguments)}}(),A=function(){var k=Vr(Po.mark(function O(B){var P,F,E,V,x;return Po.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(V=B.target,!(!((P=e.unref(_))!==null&&P!==void 0&&P.isEqualNode(V))&&(!((F=e.unref(_))===null||F===void 0)&&F.contains(V)))){L.next=4;break}return L.abrupt("return");case 4:if(x=(E=e.unref(f))===null||E===void 0?void 0:E.$el,!(x!=null&&x.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()}},O)}));return function(O){return k.apply(this,arguments)}}();e.watch(c,function(){e.unref(c)&&(N(),clearTimeout(C))});var I,D=e.ref(t.max>e.unref(a).length),T=e.computed(function(){return typeof t.popupContainer=="string"||Gt(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 k,O;(k=e.unref(_))===null||k===void 0||k.setAttribute("pick-colors-theme",e.unref($)),(O=e.unref(f))===null||O===void 0||(O=O.$el)===null||O===void 0||O.setAttribute("pick-colors-theme",e.unref($))})},{immediate:!0}),e.provide("theme",{theme:$});var M=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(k){return(t.addColor?e.unref(a).length>0:e.unref(a).length>1)&&e.unref(r)===k},selectedColor:s,selectedIndex:r,isShowPicker:c,addColorItemShow:D,onPickerChange:function(k){var O=e.unref(r),B=e.unref(a).slice(),P=e.unref(a).length;if(O!=null){O>=0?B[O]=k:(r.value=P,B.push(k));var F="";F=Array.isArray(t.value)||t.addColor?B:k,t.value===void 0?a.value=Array.isArray(F)?F:[F]:(n("update:value",F),n("change",F,k,O)),t.addColor&&P>=t.max&&(D.value=!1,n("overflowMax"))}},colorPicker:_,onColorClick:S,pickerRef:f,onColorItemDragStart:function(k){k.dataTransfer.effectAllowed="move";var O=k.target;I=+O.dataset.index},onColorItemDragOver:function(k){},onColorItemDrop:function(k){var O=+k.target.dataset.index,B=zm(e.unref(a)),P=B[I];B.splice(I,1);var F=B.slice(0,O),E=B.splice(O),V=F.concat([P]).concat(E);n("update:value",V),n("change",V,V[I],I)},colorItemsRef:M,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)}"),Tt.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)},Tt.__scopeId="data-v-3c43ade8",Tt.__file="src/ColorPicker.vue";const nh=e.defineComponent({name:"ColorPick",components:{PickColors:Tt,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}}}}),lg="",ah={class:"color-pick"};function lh(t,o,n,a,l,r){const s=e.resolveComponent("a-input"),c=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",ah,[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 rh=ne(nh,[["render",lh],["__scopeId","data-v-2ee2749b"]]),ih=e.defineComponent({name:"ColorGroupPick",components:{PickColors:Tt},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}`)}}}}),rg="",sh={class:"color-group-pick"};function ch(t,o,n,a,l,r){const s=e.resolveComponent("pick-colors");return e.openBlock(),e.createElementBlock("div",sh,[e.createVNode(s,{value:t.value,"add-color":"",max:t.max,onChange:t.onColorsChange,onOverflowMax:t.onOverflowMax},null,8,["value","max","onChange","onOverflowMax"])])}const dh=ne(ih,[["render",ch],["__scopeId","data-v-b2be8322"]]),ph=e.defineComponent({name:"FormGroup",components:{Draggable:Bt,AppstoreAddOutlined:mn,MinusCircleOutlined:Ks,PickColors:Tt,InputNumber:dr,PlusCircleOutlined:Zs},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"}}}),ig="",uh={class:"form-group"},fh={class:"form-row"},mh={key:0,class:"label"},hh={key:1,class:"label"},bh={class:"icon-group"};function yh(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",uh,[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",fh,[(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",mh,e.toDisplayString(u.useLabelIndex?u.label[p]+(p+1):u.label[p]),1)):(e.openBlock(),e.createElementBlock("span",hh,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",bh,[(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 gh=ne(ph,[["render",yh],["__scopeId","data-v-f0c0ab4d"]]),Ch=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 wh(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 kh=ne(Ch,[["render",wh]]),xh=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 _h(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 Sh=ne(xh,[["render",_h]]),Th=e.defineComponent({name:"PropsToForm",components:{Input:Tf,InputNumber:dr,RadioGroup:Bf,Select:Ff,Switch:Df,ColorPick:rh,ColorGroupPick:dh,FormGroup:gh,Textarea:kh,Slider:Sh},props:{props:{type:Object,require:!0},disabled:{type:Boolean,default:!1},componentType:{type:String,default:""}},setup(t){const o=e.inject(xo),n=e.inject(be),a=e.inject(Qo),l=e.inject(Jo),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:_,props:S}=C;g[b]={...C,valueProp:h,value:f,events:{[y]:(A,I=!0)=>{I?(s({[b]:A}),_&&_(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"?{}:Z.reduce(m,(g,C,b)=>{const f=xf[b];if(Array.isArray(f)){const h=f.find(y=>{const{onlyType:N,excludeType:w}=y;return N==null&&w==null?!0:N?pe(e.unref(r),N):w?!pe(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]=Z.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:pe}}}),sg="",Nh={class:"props-to-form"},Ah={key:0,class:"prop-item"},Eh={class:"label"},Oh={class:"component-wrapper"};function Bh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Nh,[(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",Ah,[e.createElementVNode("span",Eh,e.toDisplayString(s.label),1),e.createElementVNode("div",Oh,[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 Vh=ne(Th,[["render",Bh],["__scopeId","data-v-62456472"]]);function Lh(){return new Worker("/assets/editor.worker-02df2e61.js")}function Fh(){return new Worker("/assets/json.worker-867823a6.js")}function $h(){return new Worker("/assets/ts.worker-7254b425.js")}const Ih=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 Fh:s==="typescript"||s==="javascript"?new $h:new Lh}};const n=e.ref();let a=null;const l={light:"vs",dark:"vs-dark"};return e.onMounted(()=>{a=ti.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(Z.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}}}),cg="",Dh={class:"editor",ref:"dom"};function vh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Dh,null,512)}const qr=ne(Ih,[["render",vh],["__scopeId","data-v-71e88372"]]),Mh=e.defineComponent({name:"Condition",components:{CloseOutlined:to,MenuOutlined:Nn,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(_o,{updateCondition:(d,p,u)=>{},deleteCondition:(d,p)=>{},addCondition:(d,p,u)=>{}});e.watch(n,d=>{a(Z.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)||he()}),{ruleOptions:o,condition:n,onRuleChange:s,clickConditionMenu:c,onDelete:i}}}),dg="",Ph={class:"condition"};function jh(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",Ph,[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 Rh=ne(Mh,[["render",jh],["__scopeId","data-v-9fcdf54d"]]),Uh=e.defineComponent({name:"ConditionList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""}},components:{Condition:Rh}}),pg="",zh={key:0,class:"condition-list"},Gh={key:0,class:"condition-container"},Hh={key:0,class:"condition-text"},Wh={key:1,class:"condition-text"},Yh={class:"conditions"};function qh(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",zh,[(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",Gh,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",Hh,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Wh,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Yh,[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 Kh=ne(Uh,[["render",qh],["__scopeId","data-v-49c6481f"]]),Xh=e.defineComponent({components:{ConditionList:Kh,PickColors:Tt,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=he()};e.watch(a,b=>{var f,h,y;if(b){if(Array.isArray((f=t.data)==null?void 0:f.conditions)){const N=Z.cloneDeep(((h=t.data)==null?void 0:h.conditions)||[]);d(N),l.value=N}r.value=Z.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:he()}]: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:he()}]}]:e.unref(l)[0].conditions.length>1&&e.unref(l)[0].join===b&&l.value[0].conditions.push({key:he()}))};e.provide(_o,{updateCondition(b,f,h){var w;let y=l.value;const N=h.split("-");if(h&&(N!=null&&N.length))for(const _ of N)if(y[+_])y=(w=y[+_])==null?void 0:w.conditions;else break;Array.isArray(y)&&y[f]&&(y[f]=b)},deleteCondition(b,f){var N,w,_;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],I=y.slice(0,S);let D=e.unref(l),T="";for(const R of I)if(D[+R])T=(w=D[+R])==null?void 0:w.join,D=(_=D[+R])==null?void 0:_.conditions;else break;if(T===h[0].join){if(Array.isArray(h[0].conditions)){const R=Z.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 _,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=(_=y[+A])==null?void 0:_.join,y=(S=y[+A])==null?void 0:S.conditions;else break;if(N===h)y.splice(f+1,0,{key:he()});else{const A=Z.cloneDeep(y[f]);y[f]={join:h,conditions:[A,{key:he()}]}}}});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}}}),ug="",pa=t=>(e.pushScopeId("data-v-a29d848a"),t=t(),e.popScopeId(),t),Qh={class:"config-wrap"},Jh={class:"wrap-item left"},Zh={class:"title"},eb={class:"border"},tb={class:"wrap-item right"},ob=pa(()=>e.createElementVNode("div",{class:"title"},"属性配置",-1)),nb={class:"border"},ab={class:"row"},lb=pa(()=>e.createElementVNode("div",null,"字体颜色:",-1)),rb={class:"row"},ib=pa(()=>e.createElementVNode("div",null,"图标:",-1)),sb={style:{display:"flex","align-items":"center","justify-items":"center"}};function cb(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",Qh,[e.createElementVNode("div",Jh,[e.createElementVNode("div",Zh,[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",eb,[e.createVNode(c,{class:"condition-list",list:t.conditionList,level:0},null,8,["list"])])]),e.createElementVNode("div",tb,[ob,e.createElementVNode("div",nb,[e.createElementVNode("div",ab,[lb,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",rb,[ib,e.createElementVNode("div",sb,[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 db=ne(Xh,[["render",cb],["__scopeId","data-v-a29d848a"]]),pb=e.defineComponent({components:{AModal:j.Modal,AButton:j.Button,ATable:j.Table,ConditionWrap:db,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,_)=>{const{value:S,rule:A}=w;w.conditions?N+=`(${p(w.conditions,w.join)})`:S&&A&&(N+=`value ${A} '${S}'`),N+=`${_===h.length-1?"":y?" "+y+" ":""}`}),N},u=h=>{i.value=[],d.value=h;const{rules:y,conditionCode:N,conditions:w,attribute:_}=h;if(y)i.value=Z.cloneDeep(y);else if(N){const S={conditionCode:N,conditions:w,attribute:_,name:"新条件"};i.value.push(Z.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=Z.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 ub(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 fb=ne(pb,[["render",ub]]),mb=[{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}],hb=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:qr,CodeOutlined:Cs,ConditionsTable:fb},setup(){const t=e.inject(Le),o=e.inject(be),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 _,S,A,I;let w=[];if(l.value=[],n.value){const D=((A=e.unref(o))==null?void 0:A.rowHeaderList)||[],T=((I=e.unref(o))==null?void 0:I.indicators)||[];w=[...D,...T]}else{const D=((_=e.unref(o))==null?void 0:_.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,_)=>{w.style=_.target.checked,w.style?w.renderBool===void 0&&(w.renderBool=!1):delete w.renderBool},m=(w,_,S)=>{w&&_&&(r=w,s=_,c.value=w[_]||"",d.value=!0,i.value=S)},g=w=>{try{c.value=w}catch(_){console.error(_)}},C=()=>{r&&s&&(r[s]=c.value),c.value="",d.value=!1},b=e.ref(),f=e.ref(0),h=e.ref();return{configColumns:mb,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}}}),fg="",bb={class:"table-column-config"};function yb(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",bb,[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 gb=ne(hb,[["render",yb],["__scopeId","data-v-bb095396"]]),Cb=[{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}],wb=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(Le),o=e.inject(be),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:Cb,graphicConfig:o,columnsConfigMap:l,activePanel:n}}}),mg="";function kb(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 xb=ne(wb,[["render",kb],["__scopeId","data-v-72761110"]]),_b=e.defineComponent({name:"StyleConfigGroup",props:{componentType:{type:String,default:""},isGroupTable:{type:Boolean,default:!1}},components:{PropsToForm:Vh,TableColumnConfig:gb,Editor:qr,AFormItem:j.FormItem,ASelect:j.Select,ASelectOption:j.SelectOption,ACollapse:j.Collapse,ACollapsePanel:j.CollapsePanel,ASwitch:j.Switch,IndicatorContainer:xb},setup(t){const o=e.ref([]),n=e.ref(["表格"]),a=e.inject(xo),l=e.inject(ba),r=e.inject(Qo),s=e.inject(Jo),c=e.inject(ha),i=e.inject(Le),d=S=>{r({...en[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(()=>kf.map(S=>{const{props:A,title:I,enableProps:D,onlyType:T,excludeType:R}=S,$=[];A.forEach(O=>{typeof O=="string"&&(u.includes(O)?t.isGroupTable&&$.push(O):$.push(O))});let M,k;return t.componentType==="table"&&(T!=null&&T.includes(t.componentType))?(M=typeof D=="string"&&l.value?l.value[D]:void 0,k=Z.pick(e.unref(l),$)):(M=typeof D=="string"&&a.value?a.value[D]:void 0,k=Z.pick(e.unref(a),$)),{title:I,enableProps:M,enablePropsName:D,onlyType:T,excludeType:R,props:k}}).filter(({props:S})=>Object.keys(S).length>0)),g=(S,A)=>{const{onlyType:I,excludeType:D}=S;return I==null&&D==null?!0:I?pe(A,I):D?!pe(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(I){console.error(I)}},_=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:_}}}),hg="",bg="",Sb={class:"style-group"};function Tb(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",Sb,[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 Nb=ne(_b,[["render",Tb],["__scopeId","data-v-9a2fa8f5"]]),Ab=e.defineComponent({name:"Card",components:{CloseOutlined:to,AInput:j.Input,ASelect:j.Select,MenuOutlined:Nn,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(So),a=e.inject(Ca),l=e.inject(Zo),{onUpdateControl:r,onDeleteControl:s,onAddMenuControl:c}=e.inject("CHANGE_CONTROL",{onUpdateControl:x=>{},onDeleteControl:x=>{},onAddMenuControl:(x,L,v)=>{}}),i=e.computed(()=>{var x;return(x=e.unref(o))==null?void 0:x.filter(L=>L.keyName!=="")}),d=e.computed(()=>{const x=[];return e.unref(l)||x.push({keyName:"父页面",id:"PARENT"}),[...x,...e.unref(i)]}),p=e.computed(()=>{var v,U;const x=[],L=(v=e.unref(i))==null?void 0:v.find(G=>{var Y;return G.id===((Y=t.control)==null?void 0:Y.id)});if(L){const G=L.type,Y=Z.pick(L,["value","startTime","endTime"]);(U=Object.keys(Y))!=null&&U.length||(Y.value="");for(const X in Y)if(Object.prototype.hasOwnProperty.call(Y,X)){const J=e.unref(a)[X];if(Array.isArray(J)){const oe=J.find(ae=>pe(G,ae.onlyType));oe&&x.push({label:oe.label,value:X})}else x.push({label:J.label,value:X})}}return x}),u=()=>{s({index:t.index,path:t.path}),g(t.control.id)},m=({key:x})=>{c(t.path,t.index,x==="2"?"||":"&&")};function g(x){const L=e.unref(i).find(v=>v.id===x);if(L){const{type:v,id:U,events:G=[]}=L,Y=Fo(v),X=G.findIndex(J=>{var oe;return J.on===Y&&J.target===((oe=e.unref(A))==null?void 0:oe.id)&&J.emit==="refreshData"});X!==-1&&(G.splice(X,1),n({id:U,events:G}))}}const C=x=>{const L={...t.control};if(L.id=x,L.customValue="",x){const v=e.unref(i).find(U=>U.id===x);v&&(L.keyName=v.keyName,D(v,x))}delete L.prop,r({control:L,index:t.index,path:t.path})},b=e.ref(""),f=()=>{b.value=t.control.id},h=x=>{r({control:{...t.control,prop:x},index:t.index,path:t.path})},y=x=>{r({control:{...t.control,prop:x.target.value},index:t.index,path:t.path})},N=x=>{r({control:{...t.control,rule:x},index:t.index,path:t.path})},w=x=>{const L={...t.control};L.modelKey&&(L.modelKey=""),L.prop&&(L.prop=""),L.format&&(L.format=""),r({control:{...L,dataType:x,customValue:"",id:"",keyName:""},index:t.index,path:t.path})},_=x=>{r({control:{...t.control,customValue:x.target.value},index:t.index,path:t.path})},S=x=>{const L={...t.control};x==null?delete L.mode:L.mode=x,delete L.conditionLabel,delete L.conditionName,delete L.conditionKey,delete L.conditionValueType,r({control:L,index:t.index,path:t.path})},A=e.inject(Le),I=e.inject(be);function D(x,L){var X,J;const{type:v,id:U,events:G=[]}=x,Y=Fo(v);e.unref(b)&&L!==e.unref(b)&&(ft(((X=e.unref(I))==null?void 0:X.controlList)||[]).find(ae=>ae.id===e.unref(b))||g(e.unref(b))),G.find(oe=>{var ae;return oe.on===Y&&oe.target===((ae=e.unref(A))==null?void 0:ae.id)&&oe.emit==="refreshData"})||n({id:U,events:[...G,{on:Y,target:(J=e.unref(A))==null?void 0:J.id,emit:"refreshData"}].reverse()})}const T=(x,L)=>{if(x){const{label:v,name:U,id:G,genericType:Y,indexCode:X,typeGuid:J,indexCodeNum:oe}=L||{},ae={...t.control,conditionKey:G,conditionLabel:v,conditionName:U,conditionValueType:Y,indexCode:X,typeGuid:J,indexCodeNum:oe};Ye(ae,"rule")||(ae.rule="EQUAL"),Ye(ae,"dataType")||(ae.dataType="component"),r({control:ae,index:t.index,path:t.path})}else{const v={...t.control};delete v.conditionLabel,delete v.conditionName,delete v.conditionKey,delete v.conditionValueType,r({control:v,index:t.index,path:t.path})}},R=(x,L)=>{var v;return(v=L==null?void 0:L.keyName)==null?void 0:v.toLowerCase().includes(x==null?void 0:x.toLowerCase())},$=(x,L)=>{var v;return(v=L==null?void 0:L.label)==null?void 0:v.toLowerCase().includes(x==null?void 0:x.toLowerCase())},M=e.computed(()=>{const x=t.conditionOptions.find(v=>v.id===t.control.conditionKey);let L="";return x&&(L=(x==null?void 0:x.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"}]:[]}),k=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],O=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(Y=>Y.id===L),G=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];pe(U==null?void 0:U.type,G)&&(x=!0)}return L==="PARENT"&&(x=!0),x}),B=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(G=>G.id===L);pe((U==null?void 0:U.type)||"","range")&&(x=!0)}return L==="PARENT"&&(x=!0),x}),P=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(G=>G.id===L);pe((U==null?void 0:U.type)||"",["date","range"])&&(x=!0)}return x});return{propOptions:p,usedComponentList:i,onDelete:u,onIdChange:C,onIdFocus:f,onPropChange:h,onParentPropChange:y,onModeChange:S,onRuleChange:N,onDataTypeChange:w,onCustomValueChange:_,onConditionKeyChange:T,idFilterOption:R,filterOption:$,onFormatChange:x=>{r({control:{...t.control,format:x},index:t.index,path:t.path})},onModelPropChange:x=>{r({control:{...t.control,modelKey:x.target.value},index:t.index,path:t.path})},clickConditionMenu:m,ruleOption:M,dataTypeOption:k,isShowProp:B,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:d}}}),yg="",gg="",Eb={class:"control-card"};function Ob(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",Eb,[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 Bb=ne(Ab,[["render",Ob],["__scopeId","data-v-f2a646f1"]]),Vb=e.defineComponent({name:"ControlList",props:{list:{type:Array,default:()=>[]},level:{type:Number,default:0},path:{type:String,default:""},conditionOptions:{type:Array,default:()=>[]}},components:{ControlCard:Bb}}),Cg="",Lb={key:0,class:"condition-list"},Fb={key:0,class:"condition-container"},$b={key:0,class:"condition-text"},Ib={key:1,class:"condition-text"},Db={class:"conditions"};function vb(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",Lb,[(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",Fb,[i.conditions.length>1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[i.join==="||"?(e.openBlock(),e.createElementBlock("div",$b,"或")):e.createCommentVNode("",!0),i.join==="&&"?(e.openBlock(),e.createElementBlock("div",Ib,"且")):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),e.createElementVNode("div",Db,[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 Mb=ne(Vb,[["render",vb],["__scopeId","data-v-2588920e"]]),Pb=e.defineComponent({name:"ControlGroup",props:{conditionOptions:{type:Array,default:()=>[]}},components:{ControlList:Mb,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(be),l=e.inject(Ae),r=e.inject(ga),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:Ql({...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:he()}]}):h[0]!=null&&(h[0].conditions==null||h[0].join!==f?i({controlList:[{join:f,conditions:[h[0],{keyValue:he()}]}]}):h[0].conditions.length>1&&h[0].join===f&&(h[0].conditions.push({keyValue:he()}),i({controlList:h})))},p=f=>{var S,A,I,D;const{index:h,path:y}=f;let N=Z.cloneDeep((S=e.unref(s))==null?void 0:S.slice()),w=N;const _=y.split("-");if(_!=null&&_.length){for(const T of _)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(_.length>0){const T=_.length-1,R=_[T],$=_.slice(0,T);let M=N,k="";for(const O of $)if(M[O])k=(I=M[O])==null?void 0:I.join,M=(D=M[O])==null?void 0:D.conditions;else break;if(k===w[0].join){if(Array.isArray(w[0].conditions)){const O=Z.cloneDeep(w[0].conditions);M.splice(+R,1),M.splice(+R,0,...O)}}else M[R]=w[0]}}else w.length===0&&(N=[]);i({controlList:N})}},u=f=>{var A,I;const{control:h,index:y,path:N}=f,w=Z.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let _=w;const S=N.split("-");if(S!=null&&S.length)for(const D of S)if(_[D])_=(I=_[D])==null?void 0:I.conditions;else break;Array.isArray(_)&&_[y]&&(_[y]=h),i({controlList:w})},m=(f,h,y)=>{var A,I,D;const N=Z.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let w=N,_="";const S=f.split("-");if(S!=null&&S.length){for(const T of S)if(w[T])_=(I=w[T])==null?void 0:I.join,w=(D=w[T])==null?void 0:D.conditions;else break;if(_===y)w.splice(h+1,0,{keyValue:he()});else{const T=Z.cloneDeep(w[h]);w[h]={join:y,conditions:[T,{keyValue:he()}]}}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}}}),wg="",jb=t=>(e.pushScopeId("data-v-9d5f3b17"),t=t(),e.popScopeId(),t),Rb={class:"control-group"},Ub={class:"control-group-header"},zb={class:"sync-wrap"},Gb=jb(()=>e.createElementVNode("div",{class:"title"}," 将此全局过滤条件配置同步至选中组件的指标库配置中。若被选中组件已有全局过滤条件将会被覆盖! ",-1)),Hb={key:0,class:"selected-total"},Wb={class:"operate-container"},Yb={class:"control-group-content"};function qb(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",Rb,[e.createElementVNode("div",Ub,[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",zb,[Gb,t.indicatorComponents.length?(e.openBlock(),e.createElementBlock("div",Hb,e.toDisplayString(t.selectedIds.length)+" / "+e.toDisplayString(t.indicatorComponents.length)+" 项 ",1)):e.createCommentVNode("",!0),e.createElementVNode("div",Wb,[e.createVNode(c,{style:{width:"75%"},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",Yb,[e.createVNode(d,{class:"condition-list",list:t.controlList,level:0,conditionOptions:t.conditionOptions},null,8,["list","conditionOptions"])])])}const Kb=ne(Pb,[["render",qb],["__scopeId","data-v-9d5f3b17"]]),Xb=e.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},label:String},components:{CloseOutlined:to,AppstoreAddOutlined:mn,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"}],c=[{label:"间隔值",value:"rangeValue"},{label:"开始时间",value:"startTime"},{label:"结束时间",value:"endTime"}],i=e.ref(Z.cloneDeep(t.item));e.watch(i,w=>{o("update",{...w,label:t.label},t.index)},{deep:!0});const d=e.computed(()=>{var _;let w=null;if(((_=e.unref(i))==null?void 0:_.dataType)==="component"){const S=e.unref(l).find(A=>{var I;return A.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(d)&&(w=pe(e.unref(d).type,"range")),w}),m=e.computed(()=>{let w=!1;return e.unref(d)&&(pe(e.unref(d).type,"range")?["startTime","endTime"].includes(e.unref(i).dateTypeValue)&&(w=!0):pe(e.unref(d).type,"date")&&(w=!0)),w}),g=(w,_)=>{w&&(e.unref(i).keyName=_.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,_)=>{var S;return(S=_==null?void 0:_.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")}}}}),kg="",Qb={class:"variable-item"},Jb=["title"],Zb={class:"popover-content-wrap"},ey={style:{display:"flex"}};function ty(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",Qb,[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]=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",Zb,[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",ey,[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 oy=ne(Xb,[["render",ty],["__scopeId","data-v-0d77395a"]]),ny=e.defineComponent({name:"VariableGroup",components:{VariableItem:oy},setup(){const t=e.inject(be),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:so(i,n),variableList:i})};return{variableList:a,onAddVariable:()=>{const i=Z.cloneDeep(e.unref(a));i.push({keyValue:he(),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=Z.cloneDeep(e.unref(a));p[d]=i,l(p)}},onDeleteItem:i=>{if(i>=0){const d=Z.cloneDeep(e.unref(a));d.splice(i,1),l(d)}}}}}),xg="",ay={class:"variable-group"},ly={class:"variable-group-header"},ry={class:"variable-group-content"};function iy(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",ay,[e.createElementVNode("div",ly,[e.createVNode(s,{onClick:t.onAddVariable},{default:e.withCtx(()=>[e.createTextVNode("添加变量")]),_:1},8,["onClick"])])]),e.createElementVNode("div",ry,[(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 sy=ne(ny,[["render",iy],["__scopeId","data-v-fd60cd09"]]),Kr=(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:_,preview:S=!1,sqlConditions:A=[],rowHeaderList:I=[]}=r||{};m==null&&(pe(s,["table","card"])?m="1":m="2");let D;if(Array.isArray(C)&&C.length>0){const k=C.length;for(let O=0;O<k;O++){const B=C[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;if(E||k===1){D={label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,typeGuid:v,conditions:a(L)};break}}}let T;if(Array.isArray(b)&&b.length>0){const k=b.length;for(let O=0;O<k;O++){const B=b[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;if(E||k===1){T={label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,conditions:a(L),typeGuid:v};break}}}const R=[];if(Array.isArray(I)&&I.length>0){const k=I.length;for(let O=0;O<k;O++){const B=I[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;R.push({typeGuid:v,label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,conditions:a(L)})}}const $=[];y==null||y.forEach(k=>{$.push(o(k))});const M=[];if(f==null||f.forEach(k=>{k.location="LEFT",M.push(l(k))}),h==null||h.forEach(k=>{k.location="RIGHT",M.push(l(k))}),N==null||N.forEach(k=>{k.location="LEFT",M.push(l(k))}),i||s==="card"){if(g="grouptable",M.length===0||R.length===0)return}else{if(m==="1"&&$.length===0)return;if(m==="2"&&M.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:M,queryColumns:$,pageFlag:!0,sqlConditions:A,rowHeaders:R,dataSourceId:w,idxLibMode:_,preview:S})}catch(k){console.error(k)}}},cy=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(be)||{},i=e.inject(xo)||{},d=e.ref(null),p=e.ref(null),u=e.ref(),m=e.ref(!1),g=e.ref(!1),C=e.computed(()=>g.value?li: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:od(D,e.unref(b),C.value)}),y=(D=[],T,R=!1)=>{const $=R?T:null;b.value=Kc(D,$)},N=(D=[],T)=>{b.value=Xc(D,T)},w=async()=>{var D,T,R;try{const $=Kr({graphicConfig:e.unref(a.value),type:(D=e.unref(n.value))==null?void 0:D.type,request:l,indicatorToken:s});m.value=!0;const M=await $(),{columns:k=[],rows:O=[]}=((T=M==null?void 0:M.data)==null?void 0:T.data)??{};if(((R=e.unref(n.value))==null?void 0:R.type)==="pie"){let B=[];if(k.length>0){const P=k[0],F=k[1];B=O.map(E=>({name:E[P],value:E[F]}))}N(B)}else{let B;k.length>0&&(B={name:k[0],types:k.slice(1).map(P=>({label:P,value:P}))}),y(O,B,!0)}}catch($){console.error($)}finally{m.value=!1}},_={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},S=()=>{e.unref(b).dataset.length===0?u.value.setOption(_,!0):u.value.setOption(h.value,!0)},A=()=>{e.unref(n.value).type!=="customGraph"&&w()},I=()=>{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(I),r.observe(p.value)),u.value=ai.init(d.value)}),e.onBeforeUnmount(()=>{u.value.dispose(),r&&(r.disconnect(),r=null)}),o({refreshData:A}),{echartRef:d,loading:m}}}),_g="",dy={class:"ecan-chart-graph",ref:"chartWrapRef"},py={style:{width:"100%",height:"100%"},ref:"echartRef"};function uy(t,o,n,a,l,r){const s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",dy,[e.createVNode(s,{spinning:t.loading,wrapperClassName:"chart-spin",tip:"数据加载中..."},{default:e.withCtx(()=>[e.createElementVNode("div",py,null,512)]),_:1},8,["spinning"])],512)}const Xr=ne(cy,[["render",uy],["__scopeId","data-v-845f7ab1"]]),fy=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(Le),n=e.ref([]),a=e.ref([]),l=e.inject(Be),r=e.inject(Ve)||"",s=async()=>{var c;try{const d=await Kr({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:ld,columnsConfigMap:e.unref(o).columnsConfigMap}}}),my={key:0};function hy(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",my,e.toDisplayString(t.handleFormat(i,c)),1)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source","pagination"])}const by=ne(fy,[["render",hy]]),yy=e.defineComponent({name:"DataConfig",components:{DataGroup:wf,StyleGroup:Nb,ChartGraph:Xr,ATabs:j.Tabs,ATabPane:j.TabPane,ControlGroup:Kb,VariableGroup:sy,AButton:j.Button,ReloadOutlined:pc,TableGraph:by},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(Le),i=e.inject(ma),d=e.inject(be),p=e.inject(ze),u=e.inject(wa),m=e.inject(Zo),g=e.inject(ka),C=["text","proportion","select","checkbox","radio","radar","circulate"],b=e.computed(()=>{const F=Z.cloneDeep(e.unref(c));h(F);const E=Z.pick(F,Z.without(Object.keys(F),"position","top","left","width","height"));pe(F.type,C)?(E.height=F.height,E.width=F.width):E.height="290px";const V=Z.cloneDeep(e.unref(d));return V.pageMode="design",V.componentList=p,V.preview=!0,V.pageConfig=u,pe(F.type,"pivottable")&&(e.unref(n)&&(E.height=e.unref(n).$el.clientHeight-20+"px",E.width=e.unref(n).$el.clientWidth+"px"),E.fullMode=!0,V.preview=!1,delete V.pageMode),{...E,graphicConfig:V,toolboxShow:!1,sourceLeft:F.left,sourceTop:F.top}}),f=e.computed(()=>{var L,v;const{token:F,context:E}=e.unref(c),V=(((L=e.unref(s))==null?void 0:L.clientWidth)||0)+"px",x=(((v=e.unref(s))==null?void 0:v.clientHeight)||0)+"px";return{id:e.unref(c).componentId,name:e.unref(c).name,keyName:e.unref(c).keyName,type:"pivotTable",width:V,height:x,graphicConfig:e.unref(c).graphicConfig,dimensionList:e.unref(c).dimensionList||[],fullMode:!0,globalModel:new Map,indicatorUrl:"/api",indicatorToken:F,context:E}});function h(F){var E,V,x,L;["#ffffff","#fff"].includes((E=F==null?void 0:F.color)==null?void 0:E.toLowerCase())&&(F.color="#000"),["#ffffff","#fff"].includes((V=F==null?void 0:F.variableColor)==null?void 0:V.toLowerCase())&&(F.variableColor="#000"),["#ffffff","#fff"].includes((x=F==null?void 0:F.increaseColor)==null?void 0:x.toLowerCase())&&(F.increaseColor="#000"),["#ffffff","#fff"].includes((L=F==null?void 0:F.declineColor)==null?void 0:L.toLowerCase())&&(F.declineColor="#000")}const y=e.computed(()=>{let F=!0;return pe(e.unref(b).type,C)&&(F=!1),F}),N=e.computed(()=>{var F;return(F=e.unref(b))==null?void 0:F.type}),w=e.computed(()=>{var F;return!!((F=e.unref(b))!=null&&F.isGroupTable)}),_=F=>{const E=F==="1";E&&N.value==="table"&&$(),window.changeShowTable&&window.changeShowTable(E),F==="3"&&T()},S=e.ref([]),A=e.inject(Be),I=e.unref(e.inject(Ve)),D=(P=window==null?void 0:window.config)==null?void 0:P.pageId;function T(){var G;const{leftAxisList:F=[],rightAxisList:E=[],queryColumnList:V=[],indicators:x=[],dataSourceId:L=""}=e.unref(d),v=[...F,...E,...V,...x],U={};for(const Y of v){const{id:X="",indexCode:J=""}=Y;X&&!Ye(Y,"calcType")&&!U[X]&&(U[X]=J)}if((G=Object.keys(U))!=null&&G.length){const Y=[];for(const X in U)Y.push(new Promise((J,oe)=>{A.post(`${Se}/diagram/hrpIndexWithComplex`,{pageId:D,indexGuid:X,indexCode:U[X],dataSourceId:L},{headers:{Authentication:I,operateContext:"ygt"}}).then(ae=>{var ge;const{success:ye,data:ce=[]}=ae.data;ye&&((ge=ce==null?void 0:ce.dataViewColumns)!=null&&ge.length)?J(ce.dataViewColumns):oe(ce)}).catch(ae=>{oe(ae)})}));Promise.all(Y).then(X=>{if(X!=null&&X.length){const J=X.reduce((oe,ae)=>oe.filter(ye=>ae.find(ce=>ce.typeGuid===ye.typeGuid)));R(J.filter(oe=>oe.typeGuid))}})}else R([])}function R(F){var ye;const{classificationList:E=[],seriesList:V=[],leftAxisList:x=[],rightAxisList:L=[],indicators:v=[],rowHeaderList:U=[],queryColumnList:G=[]}=e.unref(d),Y=Z.cloneDeep([...E,...V,...x,...L,...v,...U,...G]);if(Y!=null&&Y.length)for(const ce of Y)ce.id=ce.name;const X=[{label:"日期(内置)",name:"日期(内置)",id:"the_date",genericType:"DATE",typeGuid:"the_date",indexCode:null},{label:"单位编号(内置)",name:"单位编号(内置)",id:"hbdwbh",genericType:"TEXT",typeGuid:"hbdwbh",indexCode:null},{label:"单位名称(内置)",name:"单位名称(内置)",id:"hbdwbh_name",genericType:"TEXT",typeGuid:"hbdwbh_name",indexCode:null},{label:"年(内置)",name:"年(内置)",id:"the_year",genericType:"TEXT",typeGuid:"the_year",indexCode:null},{label:"月(内置)",name:"月(内置)",id:"the_month",genericType:"TEXT",typeGuid:"the_month",indexCode:null},{label:"日(内置)",name:"日(内置)",id:"the_day",genericType:"TEXT",typeGuid:"the_day",indexCode:null},...F.map(ce=>({...ce,id:ce.name,label:ce.title||ce.label})),...Y];if(((ye=e.unref(c))==null?void 0:ye.type)==="ecanSelect"){const{selectFieldOptions:ce=[]}=e.unref(d);if(X.unshift({label:"上级编码",name:"上级编码",id:"parentCode",genericType:"TEXT"}),ce!=null&&ce.length)for(const ge of ce)X.unshift({label:ge.label,name:ge.value,id:ge.value,genericType:"TEXT"})}const J=new Map,oe=X.length;for(let ce=0;ce<oe;ce++){const ge=X[ce],{id:at}=ge||{};J.set(at,ge)}const ae=[...J];S.value=ae.map(([ce,ge])=>ge)}const $=()=>{var E;let F;i&&N.value==="table"?F=window.updateConfig:F=(E=e.unref(r))==null?void 0:E.refreshData,typeof F=="function"&&F()},M=e.inject(Ae),k=()=>{var F;M({variableConditions:so(((F=e.unref(d))==null?void 0:F.variableList)||[],p)})};e.provide(ha,$),e.watch(d,()=>{$()},{deep:!0,flush:"post"}),e.onMounted(()=>{m.value&&$()});const O=()=>e.unref(r).getSaveData(),B=({type:F,data:E})=>{if(F==="10"){const{dimensions:V,indicators:x}=Z.cloneDeep(E),L=[];if(V){for(const v of V)v.showTitle&&(v.label=v.showTitle),L.push({key:v.name,label:v.showTitle,width:null,position:v.positionType||"rows"});for(const v of x)v.showTitle&&(v.label=v.showTitle)}M({dimensionList:L,queryColumnList:V,indicators:x}),b.value.dimensionList=L}};return o({getSaveData:O}),{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:k,onChange:_,onPivotTableChange:B}}}),Sg="",gy={key:0,class:"ecan-pivot-table",ref:"pivotTableWrapRef"},Cy={key:0,id:"table-wrap",class:"chart-component",ref:"tableWrapRef",style:{width:"100%",height:"290px"}};function wy(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",gy,[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",Cy,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 ky=ne(yy,[["render",wy],["__scopeId","data-v-41131686"]]),xy=e.defineComponent({name:"IndicatorLibrary",components:{DataList:Pd,DataConfig:ky},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?Z.cloneDeep(e.unref(c).graphicConfig):e.ref({});m=e.ref(m);let g=e.unref(c).chartsOptions?Z.cloneDeep(e.unref(c).chartsOptions):e.ref(Z.cloneDeep(en.line));g=e.ref(g);let C=e.unref(c).tableOptions?Z.cloneDeep(e.unref(c).tableOptions):e.ref(Z.cloneDeep(ri));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,_=()=>{l.value=!0,e.unref(c).graphicConfig&&(m.value=Z.cloneDeep(e.unref(c).graphicConfig)),e.unref(c).chartsOptions&&(g.value=Z.cloneDeep(e.unref(c).chartsOptions||en.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(fa,{setDataList:f,getDataList:w});const I=T=>{n("updateUsedComponent",T)},D=(T,R)=>{n("updateComponentsConfig",T,{controlList:R})};return e.provide(Zo,u),e.provide(ka,t.isIframeMode),e.provide(Le,c),e.provide(be,m),e.provide(xo,g),e.provide(ba,C),e.provide(Qt,r),e.provide(ma,p),e.provide(Ve,s),e.provide(Ae,h),e.provide(Qo,y),e.provide(Jo,N),e.provide(ze,i),e.provide(So,I),e.provide(ga,D),e.provide(Ca,t.mapAttributeProps),e.provide(wa,t.pageConfig),o({graphicConfig:m,chartsOptions:g,updateIndicatorData:_}),{isUpdate:l,isPivotTable:u,dataConfigRef:a}}}),Tg="",_y={key:0,class:"config-modal"},Sy={key:0,class:"config-modal-left"};function Ty(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",_y,[t.isPivotTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Sy,[e.createVNode(s)])),e.createElementVNode("div",{class:e.normalizeClass(["config-modal-right",t.isPivotTable?"full":""])},[e.createVNode(c,{ref:"dataConfigRef"},null,512)],2)]))}const Qr=ua(ne(xy,[["render",Ty],["__scopeId","data-v-e77110fb"]])),Jr=ua(Xr),Zr=Object.freeze(Object.defineProperty({__proto__:null,EcanChartGraph:Jr,EcanIndicatorLibrary:Qr},Symbol.toStringTag,{value:"Module"})),Ny={install:(t,o)=>{const{request:n}=o;t.provide("$request",n),Object.keys(Zr).forEach(a=>{const l=Zr[a];l.install&&t.use(l)})}};fe.EcanChartGraph=Jr,fe.EcanIndicatorLibrary=Qr,fe.default=Ny,Object.defineProperties(fe,{__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=ne(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 Sf(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 cr=ne(xf,[["render",Sf]]),_f=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=ne(_f,[["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=ne(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=ne(Bf,[["render",Vf]]);var Ee="top",ve="bottom",Me="right",Oe="left",Xn="auto",co=[Ee,ve,Me,Oe],jt="start",po="end",Ff="clippingParents",dr="viewport",uo="popper",$f="reference",pr=co.reduce(function(t,o){return t.concat([o+"-"+jt,o+"-"+po])},[]),ur=[].concat(co,[Xn]).reduce(function(t,o){return t.concat([o,o+"-"+jt,o+"-"+po])},[]),If="beforeRead",Df="read",vf="afterRead",Mf="beforeMain",Pf="main",jf="afterMain",Rf="beforeWrite",Uf="write",zf="afterWrite",Gf=[If,Df,vf,Mf,Pf,jf,Rf,Uf,zf];function qe(t){return t?(t.nodeName||"").toLowerCase():null}function Ie(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var o=t.ownerDocument;return o&&o.defaultView||window}return t}function xt(t){var o=Ie(t).Element;return t instanceof o||t instanceof Element}function Pe(t){var o=Ie(t).HTMLElement;return t instanceof o||t instanceof HTMLElement}function Qn(t){if(typeof ShadowRoot>"u")return!1;var o=Ie(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];!Pe(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},{});!Pe(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 St=Math.max,$o=Math.min,Rt=Math.round;function Jn(){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 fr(){return!/^((?!chrome|android).)*safari/i.test(Jn())}function Ut(t,o,n){o===void 0&&(o=!1),n===void 0&&(n=!1);var a=t.getBoundingClientRect(),l=1,r=1;o&&Pe(t)&&(l=t.offsetWidth>0&&Rt(a.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Rt(a.height)/t.offsetHeight||1);var s=xt(t)?Ie(t):window,c=s.visualViewport,i=!fr()&&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 Zn(t){var o=Ut(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 mr(t,o){var n=o.getRootNode&&o.getRootNode();if(t.contains(o))return!0;if(n&&Qn(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 Ie(t).getComputedStyle(t)}function qf(t){return["table","td","th"].indexOf(qe(t))>=0}function mt(t){return((xt(t)?t.ownerDocument:t.document)||window.document).documentElement}function Io(t){return qe(t)==="html"?t:t.assignedSlot||t.parentNode||(Qn(t)?t.host:null)||mt(t)}function hr(t){return!Pe(t)||ot(t).position==="fixed"?null:t.offsetParent}function Kf(t){var o=/firefox/i.test(Jn()),n=/Trident/i.test(Jn());if(n&&Pe(t)){var a=ot(t);if(a.position==="fixed")return null}var l=Io(t);for(Qn(l)&&(l=l.host);Pe(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 fo(t){for(var o=Ie(t),n=hr(t);n&&qf(n)&&ot(n).position==="static";)n=hr(n);return n&&(qe(n)==="html"||qe(n)==="body"&&ot(n).position==="static")?o:n||Kf(t)||o}function ea(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function mo(t,o,n){return St(t,$o(o,n))}function Xf(t,o,n){var a=mo(t,o,n);return a>n?n:a}function br(){return{top:0,right:0,bottom:0,left:0}}function yr(t){return Object.assign({},br(),t)}function gr(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,yr(typeof o!="number"?o:gr(o,co))};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=ea(c),d=[Oe,Me].indexOf(c)>=0,p=d?"height":"width";if(!(!r||!s)){var u=Qf(l.padding,n),m=Zn(r),g=i==="y"?Ee:Oe,C=i==="y"?ve:Me,b=n.rects.reference[p]+n.rects.reference[i]-s[i]-n.rects.popper[p],f=s[i]-n.rects.reference[i],h=fo(r),y=h?i==="y"?h.clientHeight||0:h.clientWidth||0:0,N=b/2-f/2,w=u[g],S=y-m[p]-u[C],_=y/2-m[p]/2+N,A=mo(w,_,S),I=i;n.modifiersData[a]=(o={},o[I]=A,o.centerOffset=A-_,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)||mr(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 zt(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:Rt(n*l)/l||0,y:Rt(a*l)/l||0}}function Cr(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,S=window;if(d){var _=fo(n),A="clientHeight",I="clientWidth";if(_===Ie(n)&&(_=mt(n),ot(_).position!=="static"&&c==="absolute"&&(A="scrollHeight",I="scrollWidth")),_=_,l===Ee||(l===Oe||l===Me)&&r===po){w=ve;var D=u&&_===S&&S.visualViewport?S.visualViewport.height:_[A];b-=D-a.height,b*=i?1:-1}if(l===Oe||(l===Ee||l===ve)&&r===po){N=Me;var T=u&&_===S&&S.visualViewport?S.visualViewport.width:_[I];g-=T-a.width,g*=i?1:-1}}var R=Object.assign({position:c},d&&tm),$=p===!0?om({x:g,y:b},Ie(n)):{x:g,y:b};if(g=$.x,b=$.y,i){var M;return Object.assign({},R,(M={},M[w]=y?"0":"",M[N]=h?"0":"",M.transform=(S.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",M))}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:zt(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,Cr(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,Cr(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 Do={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=Ie(o.elements.popper),d=[].concat(o.scrollParents.reference,o.scrollParents.popper);return r&&d.forEach(function(p){p.addEventListener("scroll",n.update,Do)}),c&&i.addEventListener("resize",n.update,Do),function(){r&&d.forEach(function(p){p.removeEventListener("scroll",n.update,Do)}),c&&i.removeEventListener("resize",n.update,Do)}}const rm={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:lm,data:{}};var im={left:"right",right:"left",bottom:"top",top:"bottom"};function vo(t){return t.replace(/left|right|bottom|top/g,function(o){return im[o]})}var sm={start:"end",end:"start"};function wr(t){return t.replace(/start|end/g,function(o){return sm[o]})}function ta(t){var o=Ie(t),n=o.pageXOffset,a=o.pageYOffset;return{scrollLeft:n,scrollTop:a}}function oa(t){return Ut(mt(t)).left+ta(t).scrollLeft}function cm(t,o){var n=Ie(t),a=mt(t),l=n.visualViewport,r=a.clientWidth,s=a.clientHeight,c=0,i=0;if(l){r=l.width,s=l.height;var d=fr();(d||!d&&o==="fixed")&&(c=l.offsetLeft,i=l.offsetTop)}return{width:r,height:s,x:c+oa(t),y:i}}function dm(t){var o,n=mt(t),a=ta(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),c=-a.scrollLeft+oa(t),i=-a.scrollTop;return ot(l||n).direction==="rtl"&&(c+=St(n.clientWidth,l?l.clientWidth:0)-r),{width:r,height:s,x:c,y:i}}function na(t){var o=ot(t),n=o.overflow,a=o.overflowX,l=o.overflowY;return/auto|scroll|overlay|hidden/.test(n+l+a)}function kr(t){return["html","body","#document"].indexOf(qe(t))>=0?t.ownerDocument.body:Pe(t)&&na(t)?t:kr(Io(t))}function ho(t,o){var n;o===void 0&&(o=[]);var a=kr(t),l=a===((n=t.ownerDocument)==null?void 0:n.body),r=Ie(a),s=l?[r].concat(r.visualViewport||[],na(a)?a:[]):a,c=o.concat(s);return l?c:c.concat(ho(Io(s)))}function aa(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=Ut(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 xr(t,o,n){return o===dr?aa(cm(t,n)):xt(o)?pm(o,n):aa(dm(mt(t)))}function um(t){var o=ho(Io(t)),n=["absolute","fixed"].indexOf(ot(t).position)>=0,a=n&&Pe(t)?fo(t):t;return xt(a)?o.filter(function(l){return xt(l)&&mr(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=xr(t,d,a);return i.top=St(p.top,i.top),i.right=$o(p.right,i.right),i.bottom=$o(p.bottom,i.bottom),i.left=St(p.left,i.left),i},xr(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 Sr(t){var o=t.reference,n=t.element,a=t.placement,l=a?Ke(a):null,r=a?zt(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 ve:i={x:s,y:o.y+o.height};break;case Me: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?ea(l):null;if(d!=null){var p=d==="y"?"height":"width";switch(r){case jt:i[d]=i[d]-(o[p]/2-n[p]/2);break;case po:i[d]=i[d]+(o[p]/2-n[p]/2);break}}return i}function bo(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?dr:d,u=n.elementContext,m=u===void 0?uo:u,g=n.altBoundary,C=g===void 0?!1:g,b=n.padding,f=b===void 0?0:b,h=yr(typeof f!="number"?f:gr(f,co)),y=m===uo?$f:uo,N=t.rects.popper,w=t.elements[C?y:m],S=fm(xt(w)?w:w.contextElement||mt(t.elements.popper),i,p,s),_=Ut(t.elements.reference),A=Sr({reference:_,element:N,strategy:"absolute",placement:l}),I=aa(Object.assign({},N,A)),D=m===uo?I:_,T={top:S.top-D.top+h.top,bottom:D.bottom-S.bottom+h.bottom,left:S.left-D.left+h.left,right:D.right-S.right+h.right},R=t.modifiersData.offset;if(m===uo&&R){var $=R[l];Object.keys(T).forEach(function(M){var k=[Me,ve].indexOf(M)>=0?1:-1,O=[Ee,ve].indexOf(M)>=0?"y":"x";T[M]+=$[O]*k})}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?ur:i,p=zt(a),u=p?c?pr:pr.filter(function(C){return zt(C)===p}):co,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]=bo(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)===Xn)return[];var o=vo(t);return[wr(t),o,wr(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?[vo(f)]:hm(f)),w=[f].concat(N).reduce(function(U,G){return U.concat(Ke(G)===Xn?mm(o,{placement:G,boundary:p,rootBoundary:u,padding:d,flipVariations:C,allowedAutoPlacements:b}):G)},[]),S=o.rects.reference,_=o.rects.popper,A=new Map,I=!0,D=w[0],T=0;T<w.length;T++){var R=w[T],$=Ke(R),M=zt(R)===jt,k=[Ee,ve].indexOf($)>=0,O=k?"width":"height",B=bo(o,{placement:R,boundary:p,rootBoundary:u,altBoundary:m,padding:d}),P=k?M?Me:Oe:M?ve:Ee;S[O]>_[O]&&(P=vo(P));var F=vo(P),E=[];if(r&&E.push(B[$]<=0),c&&E.push(B[P]<=0,B[F]<=0),E.every(function(U){return U})){D=R,I=!1;break}A.set(R,E)}if(I)for(var V=C?3:1,x=function(G){var Y=w.find(function(X){var J=A.get(X);if(J)return J.slice(0,G).every(function(oe){return oe})});if(Y)return D=Y,"break"},L=V;L>0;L--){var v=x(L);if(v==="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 Tr(t){return[Ee,Me,ve,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=bo(o,{elementContext:"reference"}),c=bo(o,{altBoundary:!0}),i=_r(s,a),d=_r(c,l,r),p=Tr(i),u=Tr(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,Me].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=ur.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 Sm(t){var o=t.state,n=t.name;o.modifiersData[n]=Sr({reference:o.rects.reference,element:o.rects.popper,strategy:"absolute",placement:o.placement})}const _m={name:"popperOffsets",enabled:!0,phase:"read",fn:Sm,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=bo(o,{boundary:i,rootBoundary:d,padding:u,altBoundary:p}),h=Ke(o.placement),y=zt(o.placement),N=!y,w=ea(h),S=Tm(w),_=o.modifiersData.popperOffsets,A=o.rects.reference,I=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(_){if(r){var M,k=w==="y"?Ee:Oe,O=w==="y"?ve:Me,B=w==="y"?"height":"width",P=_[w],F=P+f[k],E=P-f[O],V=g?-I[B]/2:0,x=y===jt?A[B]:I[B],L=y===jt?-I[B]:-A[B],v=o.elements.arrow,U=g&&v?Zn(v):{width:0,height:0},G=o.modifiersData["arrow#persistent"]?o.modifiersData["arrow#persistent"].padding:br(),Y=G[k],X=G[O],J=mo(0,A[B],U[B]),oe=N?A[B]/2-V-J-Y-T.mainAxis:x-J-Y-T.mainAxis,ae=N?-A[B]/2+V+J+X+T.mainAxis:L+J+X+T.mainAxis,ye=o.elements.arrow&&fo(o.elements.arrow),ce=ye?w==="y"?ye.clientTop||0:ye.clientLeft||0:0,ge=(M=R==null?void 0:R[w])!=null?M:0,at=P+oe-ge-ce,Wt=P+ae-ge,Nt=mo(g?$o(F,at):F,P,g?St(E,Wt):E);_[w]=Nt,$[w]=Nt-P}if(c){var wo,Yt=w==="x"?Ee:Oe,qt=w==="x"?ve:Me,Re=_[S],Qe=S==="y"?"height":"width",ht=Re+f[Yt],At=Re-f[qt],Je=[Ee,Oe].indexOf(h)!==-1,lt=(wo=R==null?void 0:R[S])!=null?wo:0,Ue=Je?ht:Re-A[Qe]-I[Qe]-lt+T.altAxis,Et=Je?Re+A[Qe]+I[Qe]-lt-T.altAxis:At,rt=g&&Je?Xf(Ue,Re,Et):mo(g?Ue:ht,Re,g?Et:At);_[S]=rt,$[S]=rt-Re}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===Ie(t)||!Pe(t)?ta(t):Em(t)}function Bm(t){var o=t.getBoundingClientRect(),n=Rt(o.width)/t.offsetWidth||1,a=Rt(o.height)/t.offsetHeight||1;return n!==1||a!==1}function Vm(t,o,n){n===void 0&&(n=!1);var a=Pe(o),l=Pe(o)&&Bm(o),r=mt(o),s=Ut(t,l,n),c={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(a||!a&&!n)&&((qe(o)!=="body"||na(r))&&(c=Om(o)),Pe(o)?(i=Ut(o,!0),i.x+=o.clientLeft,i.y+=o.clientTop):r&&(i.x=oa(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 Nr={placement:"bottom",modifiers:[],strategy:"absolute"};function Ar(){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 Dm(t){t===void 0&&(t={});var o=t,n=o.defaultModifiers,a=n===void 0?[]:n,l=o.defaultOptions,r=l===void 0?Nr:l;return function(c,i,d){d===void 0&&(d=r);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nr,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:xt(c)?ho(c):c.contextElement?ho(c.contextElement):[],popper:ho(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(Ar(y,N)){p.rects={reference:Vm(y,fo(N),p.options.strategy==="fixed"),popper:Zn(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 S=p.orderedModifiers[w],_=S.fn,A=S.options,I=A===void 0?{}:A,D=S.name;typeof _=="function"&&(p=_({state:p,options:I,name:D,instance:g})||p)}}}},update:$m(function(){return new Promise(function(f){g.forceUpdate(),f(p)})}),destroy:function(){b(),m=!0}};if(!Ar(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 S=w({state:p,name:h,instance:g,options:N}),_=function(){};u.push(S||_)}})}function b(){u.forEach(function(f){return f()}),u=[]}return g}}var vm=[rm,_m,am,Yf,xm,ym,Am,em,Cm],Mm=Dm({defaultModifiers:vm});function la(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 Er(t,o){if(t){if(typeof t=="string")return la(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)?la(t,o):void 0}}function Pm(t){return function(o){if(Array.isArray(o))return la(o)}(t)||function(o){if(typeof Symbol<"u"&&o[Symbol.iterator]!=null||o["@@iterator"]!=null)return Array.from(o)}(t)||Er(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 Gt(t){return Gt=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},Gt(t)}function Or(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 Br(t){return function(){var o=this,n=arguments;return new Promise(function(a,l){var r=t.apply(o,n);function s(i){Or(r,a,l,s,c,"next",i)}function c(i){Or(r,a,l,s,c,"throw",i)}s(void 0)})}}var Vr={exports:{}},Lr={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})(Lr),function(t){var o=Lr.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(E,V,x){E[V]=x.value},i=typeof Symbol=="function"?Symbol:{},d=i.iterator||"@@iterator",p=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function m(E,V,x){return Object.defineProperty(E,V,{value:x,enumerable:!0,configurable:!0,writable:!0}),E[V]}try{m({},"")}catch{m=function(V,x,L){return V[x]=L}}function g(E,V,x,L){var v=V&&V.prototype instanceof w?V:w,U=Object.create(v.prototype),G=new P(L||[]);return c(U,"_invoke",{value:M(E,x,G)}),U}function C(E,V,x){try{return{type:"normal",arg:E.call(V,x)}}catch(L){return{type:"throw",arg:L}}}l.wrap=g;var b="suspendedStart",f="suspendedYield",h="executing",y="completed",N={};function w(){}function S(){}function _(){}var A={};m(A,d,function(){return this});var I=Object.getPrototypeOf,D=I&&I(I(F([])));D&&D!==r&&s.call(D,d)&&(A=D);var T=_.prototype=w.prototype=Object.create(A);function R(E){["next","throw","return"].forEach(function(V){m(E,V,function(x){return this._invoke(V,x)})})}function $(E,V){function x(v,U,G,Y){var X=C(E[v],E,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(ae){x("next",ae,G,Y)},function(ae){x("throw",ae,G,Y)}):V.resolve(oe).then(function(ae){J.value=ae,G(J)},function(ae){return x("throw",ae,G,Y)})}Y(X.arg)}var L;c(this,"_invoke",{value:function(v,U){function G(){return new V(function(Y,X){x(v,U,Y,X)})}return L=L?L.then(G,G):G()}})}function M(E,V,x){var L=b;return function(v,U){if(L===h)throw new Error("Generator is already running");if(L===y){if(v==="throw")throw U;return{value:a,done:!0}}for(x.method=v,x.arg=U;;){var G=x.delegate;if(G){var Y=k(G,x);if(Y){if(Y===N)continue;return Y}}if(x.method==="next")x.sent=x._sent=x.arg;else if(x.method==="throw"){if(L===b)throw L=y,x.arg;x.dispatchException(x.arg)}else x.method==="return"&&x.abrupt("return",x.arg);L=h;var X=C(E,V,x);if(X.type==="normal"){if(L=x.done?y:f,X.arg===N)continue;return{value:X.arg,done:x.done}}X.type==="throw"&&(L=y,x.method="throw",x.arg=X.arg)}}}function k(E,V){var x=V.method,L=E.iterator[x];if(L===a)return V.delegate=null,x==="throw"&&E.iterator.return&&(V.method="return",V.arg=a,k(E,V),V.method==="throw")||x!=="return"&&(V.method="throw",V.arg=new TypeError("The iterator does not provide a '"+x+"' method")),N;var v=C(L,E.iterator,V.arg);if(v.type==="throw")return V.method="throw",V.arg=v.arg,V.delegate=null,N;var U=v.arg;return U?U.done?(V[E.resultName]=U.value,V.next=E.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 O(E){var V={tryLoc:E[0]};1 in E&&(V.catchLoc=E[1]),2 in E&&(V.finallyLoc=E[2],V.afterLoc=E[3]),this.tryEntries.push(V)}function B(E){var V=E.completion||{};V.type="normal",delete V.arg,E.completion=V}function P(E){this.tryEntries=[{tryLoc:"root"}],E.forEach(O,this),this.reset(!0)}function F(E){if(E||E===""){var V=E[d];if(V)return V.call(E);if(typeof E.next=="function")return E;if(!isNaN(E.length)){var x=-1,L=function v(){for(;++x<E.length;)if(s.call(E,x))return v.value=E[x],v.done=!1,v;return v.value=a,v.done=!0,v};return L.next=L}}throw new TypeError(o(E)+" is not iterable")}return S.prototype=_,c(T,"constructor",{value:_,configurable:!0}),c(_,"constructor",{value:S,configurable:!0}),S.displayName=m(_,u,"GeneratorFunction"),l.isGeneratorFunction=function(E){var V=typeof E=="function"&&E.constructor;return!!V&&(V===S||(V.displayName||V.name)==="GeneratorFunction")},l.mark=function(E){return Object.setPrototypeOf?Object.setPrototypeOf(E,_):(E.__proto__=_,m(E,u,"GeneratorFunction")),E.prototype=Object.create(T),E},l.awrap=function(E){return{__await:E}},R($.prototype),m($.prototype,p,function(){return this}),l.AsyncIterator=$,l.async=function(E,V,x,L,v){v===void 0&&(v=Promise);var U=new $(g(E,V,x,L),v);return l.isGeneratorFunction(V)?U:U.next().then(function(G){return G.done?G.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(E){var V=Object(E),x=[];for(var L in V)x.push(L);return x.reverse(),function v(){for(;x.length;){var U=x.pop();if(U in V)return v.value=U,v.done=!1,v}return v.done=!0,v}},l.values=F,P.prototype={constructor:P,reset:function(E){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(B),!E)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 E=this.tryEntries[0].completion;if(E.type==="throw")throw E.arg;return this.rval},dispatchException:function(E){if(this.done)throw E;var V=this;function x(X,J){return U.type="throw",U.arg=E,V.next=X,J&&(V.method="next",V.arg=a),!!J}for(var L=this.tryEntries.length-1;L>=0;--L){var v=this.tryEntries[L],U=v.completion;if(v.tryLoc==="root")return x("end");if(v.tryLoc<=this.prev){var G=s.call(v,"catchLoc"),Y=s.call(v,"finallyLoc");if(G&&Y){if(this.prev<v.catchLoc)return x(v.catchLoc,!0);if(this.prev<v.finallyLoc)return x(v.finallyLoc)}else if(G){if(this.prev<v.catchLoc)return x(v.catchLoc,!0)}else{if(!Y)throw new Error("try statement without catch or finally");if(this.prev<v.finallyLoc)return x(v.finallyLoc)}}}},abrupt:function(E,V){for(var x=this.tryEntries.length-1;x>=0;--x){var L=this.tryEntries[x];if(L.tryLoc<=this.prev&&s.call(L,"finallyLoc")&&this.prev<L.finallyLoc){var v=L;break}}v&&(E==="break"||E==="continue")&&v.tryLoc<=V&&V<=v.finallyLoc&&(v=null);var U=v?v.completion:{};return U.type=E,U.arg=V,v?(this.method="next",this.next=v.finallyLoc,N):this.complete(U)},complete:function(E,V){if(E.type==="throw")throw E.arg;return E.type==="break"||E.type==="continue"?this.next=E.arg:E.type==="return"?(this.rval=this.arg=E.arg,this.method="return",this.next="end"):E.type==="normal"&&V&&(this.next=V),N},finish:function(E){for(var V=this.tryEntries.length-1;V>=0;--V){var x=this.tryEntries[V];if(x.finallyLoc===E)return this.complete(x.completion,x.afterLoc),B(x),N}},catch:function(E){for(var V=this.tryEntries.length-1;V>=0;--V){var x=this.tryEntries[V];if(x.tryLoc===E){var L=x.completion;if(L.type==="throw"){var v=L.arg;B(x)}return v}}throw new Error("illegal catch attempt")},delegateYield:function(E,V,x){return this.delegate={iterator:F(E),resultName:V,nextLoc:x},this.method==="next"&&(this.arg=a),N}},l}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(Vr);var Mo=Vr.exports(),Po=Mo;try{regeneratorRuntime=Mo}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=Mo:Function("r","regeneratorRuntime = r")(Mo)}function jm(t){var o=function(n,a){if(Gt(n)!=="object"||n===null)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var r=l.call(n,a||"default");if(Gt(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}(t,"string");return Gt(o)==="symbol"?o:String(o)}function ra(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 jo=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)})}}}}),Fr=function(t){return e.pushScopeId("data-v-24517fec"),t=t(),e.popScopeId(),t},Rm=Fr(function(){return e.createElementVNode("div",{class:"saturation-white"},null,-1)}),Um=Fr(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}"),jo.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)},jo.__scopeId="data-v-24517fec",jo.__file="src/picker/Saturation.vue";var Ro=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}"),Ro.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)},Ro.__scopeId="data-v-78b9f4f0",Ro.__file="src/picker/Hue.vue";var Uo=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}"),Uo.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)},Uo.__scopeId="data-v-24dc9656",Uo.__file="src/picker/Alpha.vue";var zo=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 yo(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)||Er(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 $r(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 je(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?$r(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):$r(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}"),zo.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)])},zo.__scopeId="data-v-d52a4d02",zo.__file="src/picker/InputValue.vue";var Ir=function(t,o,n){return[t,o*n/((t=(2-o)*n)<1?t:2-t)||0,t/2]},Dr={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Go=function(t){t=Math.min(Math.round(t),255);var o=Math.floor(t/16),n=t%16;return"".concat(Dr[o]||o).concat(Dr[n]||n)},vr=function(t){var o=t.r,n=t.g,a=t.b;return isNaN(o)||isNaN(n)||isNaN(a)?"":"#".concat(Go(o)).concat(Go(n)).concat(Go(a))},Ht=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)},go=function(t,o,n){t=6*Ht(t,360),o=Ht(o,100),n=Ht(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)}},Mr=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=Ir(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=go(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(go(a,l,r))).concat(Go(255*s))}else switch(o){case"hsl":var m=Ir(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=go(a,l,r),C=g.r,b=g.g,f=g.b;return"rgb(".concat(C,", ").concat(b,", ").concat(f,")");default:return vr(go(a,l,r))}},Ho=function(t){var o=t.r,n=t.g,a=t.b;o=Ht(o,255),n=Ht(n,255),a=Ht(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}},Pr=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)}},jr=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]}},ia=function(t,o,n){if(typeof t=="string"&&t!==""){var a=sa(t,ca(t),n),l=Gr(a);return Mr(l,o,n)}return""},Rr=function(t){var o=yo(t.match(/(\d(\.\d+)?)+/g),4);return{r:o[0],g:o[1],b:o[2],a:o[3]}},Ur=function(t){var o=yo(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}},zr=function(t){var o=yo(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)}},sa=function(t,o){if(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])switch(o){case"rgb":var n=Rr(t),a=n.r,l=n.g,r=n.b,s=n.a;return je(je({},Ho({r:a,g:l,b:r})),{},{a:+s});case"hsv":var c=zr(t);return{h:c.h,s:c.s,v:c.v,a:c.a};case"hsl":var i=Ur(t),d=i.h,p=i.s,u=i.l,m=i.a;return je(je({},Pr({h:d,s:p,l:u})),{},{a:+m});default:var g=jr(t),C=g.r,b=g.g,f=g.b,h=g.a;return je(je({},Ho({r:C,g:b,b:f})),{},{a:h/255})}else switch(o){case"rgb":return je(je({},Ho(Rr(t))),{},{a:1});case"hsv":var y=zr(t);return{h:y.h,s:y.s,v:y.v,a:1};case"hsl":return je(je({},Pr(Ur(t))),{},{a:1});default:return je(je({},Ho(jr(t))),{},{a:1})}},ca=function(t){return t.match(/^#/)?"hex":t.match(/^rgb/)?"rgb":t.match(/^hsl/)?"hsl":t.match(/^hsv/)?"hsv":"hex"},Gr=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}},Co=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}"),Co.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)},Co.__scopeId="data-v-02da71fd",Co.__file="src/color-item/ColorItem.vue";var Wo=e.defineComponent({name:"Colors",components:{ColorItem:Co},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 ia(a,"hex",!0)})})}}}),Km={class:"colors"};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 Xe(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){ra(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(".colors[data-v-0f8b52a8]{align-items:center;display:flex;flex-wrap:wrap;margin-top:5px}.color-item[data-v-0f8b52a8]{margin:5px}"),Wo.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))])},Wo.__scopeId="data-v-0f8b52a8",Wo.__file="src/picker/Colors.vue";var Yo=e.defineComponent({name:"Picker",components:{Colors:Wo,Saturation:jo,Hue:Ro,Alpha:Uo,InputValue:zo},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=ca(N);return Gr(sa(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=Mr(Xe({},y),t.format,t.showAlpha),s.value=Xe({},y)):s.value=null,c.value=w;var S=i();JSON.stringify(y)!==JSON.stringify(S)&&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 go(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 S=sa(y,N,w),_=S.h,A=S.s,I=S.v;if(!(isNaN(_)||isNaN(A)||isNaN(I))){var D=1,T=S.a;isNaN(T)||(D=T),r.value={h:_,s:A,v:I,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,S=t.format,_=function(A,I,D){if(D)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(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(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(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,S,w);_?h(N,S,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=ca(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}"),Yo.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)},Yo.__scopeId="data-v-6ceadec6",Yo.__file="src/picker/Picker.vue";var qo=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 Wr(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 da(t){for(var o=1;o<arguments.length;o++){var n=arguments[o]!=null?arguments[o]:{};o%2?Wr(Object(n),!0).forEach(function(a){ra(t,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Wr(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}"),qo.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)},qo.__scopeId="data-v-ceb1719c",qo.__file="src/add-color-item/AddColorItem.vue";var _t=null,Tt=e.defineComponent({name:"ColorPicker",components:{ColorItem:Co,Picker:Yo,AddColorItem:qo},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 ia(k,"hex",t.showAlpha)})});e.watch(function(){return t.value},function(){var k=t.value||"",O=Array.isArray(k)?k:[k];a.value=O.map(function(B){return ia(B,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(k){var O=k.state,B=O.styles,P=O.placement,F=B.popper;u.value=da(da(da({},F),p),{},{transformOrigin:P==="top"?"center bottom":""})}}]},e.watch(function(){return[e.unref(i),e.unref(d)]},function(k,O){var B,P=yo(k,2),F=P[0],E=P[1],V=yo(O,2),x=V[0],L=V[1];if(F&&E&&(x!==F||L!==x)){(B=_t)===null||B===void 0||B.destroy();var v=F.$el||F,U=E.$el||E;e.nextTick(function(){_t=Mm(v,U,m)})}}),e.onBeforeUnmount(function(){var k;_t&&((k=_t)===null||k===void 0||k.destroy(),_t=null)}),{instance:_t,style:u}),y=h.style,N=function(){e.unref(b)==null&&(b.value=e.unref(M)[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]))},S=e.ref(),_=function(){var k=Br(Po.mark(function O(B){var P,F,E,V;return Po.wrap(function(x){for(;;)switch(x.prev=x.next){case 0:if(F=B.target,(E=(P=F.dataset)===null||P===void 0?void 0:P.index)!=null&&E!==""){x.next=4;break}return x.abrupt("return");case 4:if(V=+E,e.unref(r)!==V){x.next=7;break}return x.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=F;case 10:case"end":return x.stop()}},O)}));return function(O){return k.apply(this,arguments)}}(),A=function(){var k=Br(Po.mark(function O(B){var P,F,E,V,x;return Po.wrap(function(L){for(;;)switch(L.prev=L.next){case 0:if(V=B.target,!(!((P=e.unref(S))!==null&&P!==void 0&&P.isEqualNode(V))&&(!((F=e.unref(S))===null||F===void 0)&&F.contains(V)))){L.next=4;break}return L.abrupt("return");case 4:if(x=(E=e.unref(f))===null||E===void 0?void 0:E.$el,!(x!=null&&x.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()}},O)}));return function(O){return k.apply(this,arguments)}}();e.watch(c,function(){e.unref(c)&&(N(),clearTimeout(C))});var I,D=e.ref(t.max>e.unref(a).length),T=e.computed(function(){return typeof t.popupContainer=="string"||Gt(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 k,O;(k=e.unref(S))===null||k===void 0||k.setAttribute("pick-colors-theme",e.unref($)),(O=e.unref(f))===null||O===void 0||(O=O.$el)===null||O===void 0||O.setAttribute("pick-colors-theme",e.unref($))})},{immediate:!0}),e.provide("theme",{theme:$});var M=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(k){return(t.addColor?e.unref(a).length>0:e.unref(a).length>1)&&e.unref(r)===k},selectedColor:s,selectedIndex:r,isShowPicker:c,addColorItemShow:D,onPickerChange:function(k){var O=e.unref(r),B=e.unref(a).slice(),P=e.unref(a).length;if(O!=null){O>=0?B[O]=k:(r.value=P,B.push(k));var F="";F=Array.isArray(t.value)||t.addColor?B:k,t.value===void 0?a.value=Array.isArray(F)?F:[F]:(n("update:value",F),n("change",F,k,O)),t.addColor&&P>=t.max&&(D.value=!1,n("overflowMax"))}},colorPicker:S,onColorClick:_,pickerRef:f,onColorItemDragStart:function(k){k.dataTransfer.effectAllowed="move";var O=k.target;I=+O.dataset.index},onColorItemDragOver:function(k){},onColorItemDrop:function(k){var O=+k.target.dataset.index,B=Pm(e.unref(a)),P=B[I];B.splice(I,1);var F=B.slice(0,O),E=B.splice(O),V=F.concat([P]).concat(E);n("update:value",V),n("change",V,V[I],I)},colorItemsRef:M,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)}"),Tt.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)},Tt.__scopeId="data-v-3c43ade8",Tt.__file="src/ColorPicker.vue";const Zm=e.defineComponent({name:"ColorPick",components:{PickColors:Tt,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}}}}),Jy="",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=ne(Zm,[["render",th],["__scopeId","data-v-2ee2749b"]]),nh=e.defineComponent({name:"ColorGroupPick",components:{PickColors:Tt},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}`)}}}}),Zy="",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=ne(nh,[["render",lh],["__scopeId","data-v-b2be8322"]]),ih=e.defineComponent({name:"FormGroup",components:{Draggable:Bt,AppstoreAddOutlined:mn,MinusCircleOutlined:Hs,PickColors:Tt,InputNumber:cr,PlusCircleOutlined:Ks},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"}}}),eg="",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=ne(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=ne(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=ne(gh,[["render",Ch]]),kh=e.defineComponent({name:"PropsToForm",components:{Input:kf,InputNumber:cr,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(xo),n=e.inject(be),a=e.inject(Qo),l=e.inject(Jo),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:S,props:_}=C;g[b]={...C,valueProp:h,value:f,events:{[y]:(A,I=!0)=>{I?(s({[b]:A}),S&&S(b,A,s,e.unref(n))):s({})},...N},...d(w),props:{..._,...u(_,e.unref(n))}}},i=e.computed(()=>{const m=t.props;return m==null||typeof m!="object"?{}:Z.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?pe(e.unref(r),N):w?!pe(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]=Z.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:pe}}}),tg="",xh={class:"props-to-form"},Sh={key:0,class:"prop-item"},_h={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",Sh,[e.createElementVNode("span",_h,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=ne(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=Qr.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(Z.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}}}),og="",Lh={class:"editor",ref:"dom"};function Fh(t,o,n,a,l,r){return e.openBlock(),e.createElementBlock("div",Lh,null,512)}const Yr=ne(Vh,[["render",Fh],["__scopeId","data-v-71e88372"]]),$h=e.defineComponent({name:"Condition",components:{CloseOutlined:to,MenuOutlined:Nn,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(So,{updateCondition:(d,p,u)=>{},deleteCondition:(d,p)=>{},addCondition:(d,p,u)=>{}});e.watch(n,d=>{a(Z.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)||me()}),{ruleOptions:o,condition:n,onRuleChange:s,clickConditionMenu:c,onDelete:i}}}),ng="",Ih={class:"condition"};function Dh(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 vh=ne($h,[["render",Dh],["__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:vh}}),ag="",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=ne(Mh,[["render",Gh],["__scopeId","data-v-49c6481f"]]),Wh=e.defineComponent({components:{ConditionList:Hh,PickColors:Tt,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=me()};e.watch(a,b=>{var f,h,y;if(b){if(Array.isArray((f=t.data)==null?void 0:f.conditions)){const N=Z.cloneDeep(((h=t.data)==null?void 0:h.conditions)||[]);d(N),l.value=N}r.value=Z.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:me()}]: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:me()}]}]:e.unref(l)[0].conditions.length>1&&e.unref(l)[0].join===b&&l.value[0].conditions.push({key:me()}))};e.provide(So,{updateCondition(b,f,h){var w;let y=l.value;const N=h.split("-");if(h&&(N!=null&&N.length))for(const S of N)if(y[+S])y=(w=y[+S])==null?void 0:w.conditions;else break;Array.isArray(y)&&y[f]&&(y[f]=b)},deleteCondition(b,f){var N,w,S;if(!f){l.value=[];return}let h=e.unref(l);const y=f.split("-");if(y!=null&&y.length){for(const _ of y)if(h[+_])h=(N=h[+_])==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 _=y.length-1,A=y[_],I=y.slice(0,_);let D=e.unref(l),T="";for(const R of I)if(D[+R])T=(w=D[+R])==null?void 0:w.join,D=(S=D[+R])==null?void 0:S.conditions;else break;if(T===h[0].join){if(Array.isArray(h[0].conditions)){const R=Z.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 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=(S=y[+A])==null?void 0:S.join,y=(_=y[+A])==null?void 0:_.conditions;else break;if(N===h)y.splice(f+1,0,{key:me()});else{const A=Z.cloneDeep(y[f]);y[f]={join:h,conditions:[A,{key:me()}]}}}});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}}}),lg="",pa=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=pa(()=>e.createElementVNode("div",{class:"title"},"属性配置",-1)),Zh={class:"border"},eb={class:"row"},tb=pa(()=>e.createElementVNode("div",null,"字体颜色:",-1)),ob={class:"row"},nb=pa(()=>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=ne(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,S)=>{const{value:_,rule:A}=w;w.conditions?N+=`(${p(w.conditions,w.join)})`:_&&A&&(N+=`value ${A} '${_}'`),N+=`${S===h.length-1?"":y?" "+y+" ":""}`}),N},u=h=>{i.value=[],d.value=h;const{rules:y,conditionCode:N,conditions:w,attribute:S}=h;if(y)i.value=Z.cloneDeep(y);else if(N){const _={conditionCode:N,conditions:w,attribute:S,name:"新条件"};i.value.push(Z.cloneDeep(_)),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=Z.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=ne(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:Yr,CodeOutlined:hs,ConditionsTable:cb},setup(){const t=e.inject(Le),o=e.inject(be),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 S,_,A,I;let w=[];if(l.value=[],n.value){const D=((A=e.unref(o))==null?void 0:A.rowHeaderList)||[],T=((I=e.unref(o))==null?void 0:I.indicators)||[];w=[...D,...T]}else{const D=((S=e.unref(o))==null?void 0:S.queryColumnList)||[],T=((_=e.unref(o))==null?void 0:_.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,S)=>{w.style=S.target.checked,w.style?w.renderBool===void 0&&(w.renderBool=!1):delete w.renderBool},m=(w,S,_)=>{w&&S&&(r=w,s=S,c.value=w[S]||"",d.value=!0,i.value=_)},g=w=>{try{c.value=w}catch(S){console.error(S)}},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}}}),rg="",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=ne(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(Le),o=e.inject(be),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}}}),ig="";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=ne(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:Yr,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(xo),l=e.inject(ha),r=e.inject(Qo),s=e.inject(Jo),c=e.inject(ma),i=e.inject(Le),d=_=>{r({...en[_]},!1),e.unref(i).type=e.unref(p),c()},p=e.computed(()=>{var _;return(_=e.unref(a))==null?void 0:_.type}),u=["showTotalBool","totalName","expandAll"],m=e.computed(()=>yf.map(_=>{const{props:A,title:I,enableProps:D,onlyType:T,excludeType:R}=_,$=[];A.forEach(O=>{typeof O=="string"&&(u.includes(O)?t.isGroupTable&&$.push(O):$.push(O))});let M,k;return t.componentType==="table"&&(T!=null&&T.includes(t.componentType))?(M=typeof D=="string"&&l.value?l.value[D]:void 0,k=Z.pick(e.unref(l),$)):(M=typeof D=="string"&&a.value?a.value[D]:void 0,k=Z.pick(e.unref(a),$)),{title:I,enableProps:M,enablePropsName:D,onlyType:T,excludeType:R,props:k}}).filter(({props:_})=>Object.keys(_).length>0)),g=(_,A)=>{const{onlyType:I,excludeType:D}=_;return I==null&&D==null?!0:I?pe(A,I):D?!pe(A,D):!1},C=(_,A)=>(A==null||A.stopPropagation(),_),b=(_,A)=>{A!=null&&r({[A]:_})},f=e.computed(()=>JSON.stringify(e.unref(a),null,2)),h=_=>{try{const A=JSON.parse(_||"{}");r(A,!1)}catch(A){console.error(A)}},y=e.ref(""),N=_=>{try{y.value=_}catch(A){console.error(A)}},w=(_,A)=>{try{s({[A]:_})}catch(I){console.error(I)}},S=e.computed(()=>{var _;return["customGraph"].includes((_=e.unref(a))==null?void 0:_.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:S}}}),sg="",cg="",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=ne(Cb,[["render",kb],["__scopeId","data-v-9a2fa8f5"]]),Sb=e.defineComponent({name:"Card",components:{CloseOutlined:to,AInput:j.Input,ASelect:j.Select,MenuOutlined:Nn,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(_o),a=e.inject(ga),l=e.inject(Zo),{onUpdateControl:r,onDeleteControl:s,onAddMenuControl:c}=e.inject("CHANGE_CONTROL",{onUpdateControl:x=>{},onDeleteControl:x=>{},onAddMenuControl:(x,L,v)=>{}}),i=e.computed(()=>{var x;return(x=e.unref(o))==null?void 0:x.filter(L=>L.keyName!=="")}),d=e.computed(()=>{const x=[];return e.unref(l)||x.push({keyName:"父页面",id:"PARENT"}),[...x,...e.unref(i)]}),p=e.computed(()=>{var v,U;const x=[],L=(v=e.unref(i))==null?void 0:v.find(G=>{var Y;return G.id===((Y=t.control)==null?void 0:Y.id)});if(L){const G=L.type,Y=Z.pick(L,["value","startTime","endTime"]);(U=Object.keys(Y))!=null&&U.length||(Y.value="");for(const X in Y)if(Object.prototype.hasOwnProperty.call(Y,X)){const J=e.unref(a)[X];if(Array.isArray(J)){const oe=J.find(ae=>pe(G,ae.onlyType));oe&&x.push({label:oe.label,value:X})}else x.push({label:J.label,value:X})}}return x}),u=()=>{s({index:t.index,path:t.path}),g(t.control.id)},m=({key:x})=>{c(t.path,t.index,x==="2"?"||":"&&")};function g(x){const L=e.unref(i).find(v=>v.id===x);if(L){const{type:v,id:U,events:G=[]}=L,Y=Fo(v),X=G.findIndex(J=>{var oe;return J.on===Y&&J.target===((oe=e.unref(A))==null?void 0:oe.id)&&J.emit==="refreshData"});X!==-1&&(G.splice(X,1),n({id:U,events:G}))}}const C=x=>{const L={...t.control};if(L.id=x,L.customValue="",x){const v=e.unref(i).find(U=>U.id===x);v&&(L.keyName=v.keyName,D(v,x))}delete L.prop,r({control:L,index:t.index,path:t.path})},b=e.ref(""),f=()=>{b.value=t.control.id},h=x=>{r({control:{...t.control,prop:x},index:t.index,path:t.path})},y=x=>{r({control:{...t.control,prop:x.target.value},index:t.index,path:t.path})},N=x=>{r({control:{...t.control,rule:x},index:t.index,path:t.path})},w=x=>{const L={...t.control};L.modelKey&&(L.modelKey=""),L.prop&&(L.prop=""),L.format&&(L.format=""),r({control:{...L,dataType:x,customValue:"",id:"",keyName:""},index:t.index,path:t.path})},S=x=>{r({control:{...t.control,customValue:x.target.value},index:t.index,path:t.path})},_=x=>{const L={...t.control};x==null?delete L.mode:L.mode=x,delete L.conditionLabel,delete L.conditionName,delete L.conditionKey,delete L.conditionValueType,r({control:L,index:t.index,path:t.path})},A=e.inject(Le),I=e.inject(be);function D(x,L){var X,J;const{type:v,id:U,events:G=[]}=x,Y=Fo(v);e.unref(b)&&L!==e.unref(b)&&(ft(((X=e.unref(I))==null?void 0:X.controlList)||[]).find(ae=>ae.id===e.unref(b))||g(e.unref(b))),G.find(oe=>{var ae;return oe.on===Y&&oe.target===((ae=e.unref(A))==null?void 0:ae.id)&&oe.emit==="refreshData"})||n({id:U,events:[...G,{on:Y,target:(J=e.unref(A))==null?void 0:J.id,emit:"refreshData"}].reverse()})}const T=(x,L)=>{if(x){const{label:v,name:U,id:G,genericType:Y,indexCode:X,typeGuid:J,indexCodeNum:oe}=L||{},ae={...t.control,conditionKey:G,conditionLabel:v,conditionName:U,conditionValueType:Y,indexCode:X,typeGuid:J,indexCodeNum:oe};Ye(ae,"rule")||(ae.rule="EQUAL"),Ye(ae,"dataType")||(ae.dataType="component"),r({control:ae,index:t.index,path:t.path})}else{const v={...t.control};delete v.conditionLabel,delete v.conditionName,delete v.conditionKey,delete v.conditionValueType,r({control:v,index:t.index,path:t.path})}},R=(x,L)=>{var v;return(v=L==null?void 0:L.keyName)==null?void 0:v.toLowerCase().includes(x==null?void 0:x.toLowerCase())},$=(x,L)=>{var v;return(v=L==null?void 0:L.label)==null?void 0:v.toLowerCase().includes(x==null?void 0:x.toLowerCase())},M=e.computed(()=>{const x=t.conditionOptions.find(v=>v.id===t.control.conditionKey);let L="";return x&&(L=(x==null?void 0:x.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"}]:[]}),k=[{label:"自定义值",value:""},{label:"组件值",value:"component"}],O=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(Y=>Y.id===L),G=["table","bar","combograph","line","pie","radar","scatter","list","circulate"];pe(U==null?void 0:U.type,G)&&(x=!0)}return L==="PARENT"&&(x=!0),x}),B=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(G=>G.id===L);pe((U==null?void 0:U.type)||"","range")&&(x=!0)}return L==="PARENT"&&(x=!0),x}),P=e.computed(()=>{let x=!1;const{id:L="",dataType:v="component"}=t.control;if(L&&v==="component"){const U=e.unref(i).find(G=>G.id===L);pe((U==null?void 0:U.type)||"",["date","range"])&&(x=!0)}return x});return{propOptions:p,usedComponentList:i,onDelete:u,onIdChange:C,onIdFocus:f,onPropChange:h,onParentPropChange:y,onModeChange:_,onRuleChange:N,onDataTypeChange:w,onCustomValueChange:S,onConditionKeyChange:T,idFilterOption:R,filterOption:$,onFormatChange:x=>{r({control:{...t.control,format:x},index:t.index,path:t.path})},onModelPropChange:x=>{r({control:{...t.control,modelKey:x.target.value},index:t.index,path:t.path})},clickConditionMenu:m,ruleOption:M,dataTypeOption:k,isShowProp:B,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:d}}}),dg="",pg="",_b={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",_b,[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=ne(Sb,[["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}}),ug="",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=ne(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(be),l=e.inject(Ae),r=e.inject(ya),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:Xl({...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:me()}]}):h[0]!=null&&(h[0].conditions==null||h[0].join!==f?i({controlList:[{join:f,conditions:[h[0],{keyValue:me()}]}]}):h[0].conditions.length>1&&h[0].join===f&&(h[0].conditions.push({keyValue:me()}),i({controlList:h})))},p=f=>{var _,A,I,D;const{index:h,path:y}=f;let N=Z.cloneDeep((_=e.unref(s))==null?void 0:_.slice()),w=N;const S=y.split("-");if(S!=null&&S.length){for(const T of S)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(S.length>0){const T=S.length-1,R=S[T],$=S.slice(0,T);let M=N,k="";for(const O of $)if(M[O])k=(I=M[O])==null?void 0:I.join,M=(D=M[O])==null?void 0:D.conditions;else break;if(k===w[0].join){if(Array.isArray(w[0].conditions)){const O=Z.cloneDeep(w[0].conditions);M.splice(+R,1),M.splice(+R,0,...O)}}else M[R]=w[0]}}else w.length===0&&(N=[]);i({controlList:N})}},u=f=>{var A,I;const{control:h,index:y,path:N}=f,w=Z.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let S=w;const _=N.split("-");if(_!=null&&_.length)for(const D of _)if(S[D])S=(I=S[D])==null?void 0:I.conditions;else break;Array.isArray(S)&&S[y]&&(S[y]=h),i({controlList:w})},m=(f,h,y)=>{var A,I,D;const N=Z.cloneDeep((A=e.unref(s))==null?void 0:A.slice());let w=N,S="";const _=f.split("-");if(_!=null&&_.length){for(const T of _)if(w[T])S=(I=w[T])==null?void 0:I.join,w=(D=w[T])==null?void 0:D.conditions;else break;if(S===y)w.splice(h+1,0,{keyValue:me()});else{const T=Z.cloneDeep(w[h]);w[h]={join:y,conditions:[T,{keyValue:me()}]}}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}}}),fg="",Db=t=>(e.pushScopeId("data-v-9d5f3b17"),t=t(),e.popScopeId(),t),vb={class:"control-group"},Mb={class:"control-group-header"},Pb={class:"sync-wrap"},jb=Db(()=>e.createElementVNode("div",{class:"title"}," 将此全局过滤条件配置同步至选中组件的指标库配置中。若被选中组件已有全局过滤条件将会被覆盖! ",-1)),Rb={key:0,class:"selected-total"},Ub={class:"operate-container"},zb={class:"control-group-content"};function Gb(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",vb,[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,t.indicatorComponents.length?(e.openBlock(),e.createElementBlock("div",Rb,e.toDisplayString(t.selectedIds.length)+" / "+e.toDisplayString(t.indicatorComponents.length)+" 项 ",1)):e.createCommentVNode("",!0),e.createElementVNode("div",Ub,[e.createVNode(c,{style:{width:"75%"},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",zb,[e.createVNode(d,{class:"condition-list",list:t.controlList,level:0,conditionOptions:t.conditionOptions},null,8,["list","conditionOptions"])])])}const Hb=ne(Ib,[["render",Gb],["__scopeId","data-v-9d5f3b17"]]),Wb=e.defineComponent({name:"VariableCard",props:{item:{type:Object,default:()=>({})},index:{type:Number,require:!0},label:String},components:{CloseOutlined:to,AppstoreAddOutlined:mn,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(S=>S.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(Z.cloneDeep(t.item));e.watch(i,w=>{o("update",{...w,label:t.label},t.index)},{deep:!0});const d=e.computed(()=>{var S;let w=null;if(((S=e.unref(i))==null?void 0:S.dataType)==="component"){const _=e.unref(l).find(A=>{var I;return A.id===((I=e.unref(i))==null?void 0:I.id)});_&&(w=_)}return w}),p=e.computed(()=>{var S;let w=!1;return((S=e.unref(i))==null?void 0:S.variableType)==="DATE"&&(w=!0),w}),u=e.computed(()=>{let w=!1;return e.unref(d)&&(w=pe(e.unref(d).type,"range")),w}),m=e.computed(()=>{let w=!1;return e.unref(d)&&(pe(e.unref(d).type,"range")?["startTime","endTime"].includes(e.unref(i).dateTypeValue)&&(w=!0):pe(e.unref(d).type,"date")&&(w=!0)),w}),g=(w,S)=>{w&&(e.unref(i).keyName=S.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,S)=>{var _;return(_=S==null?void 0:S.keyName)==null?void 0:_.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")}}}}),mg="",Yb={class:"variable-item"},qb=["title"],Kb={class:"popover-content-wrap"},Xb={style:{display:"flex"}};function Qb(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",Yb,[t.variableData.randomKey?(e.openBlock(),e.createElementBlock("div",{key:0,class:"var-indicator",title:t.label},e.toDisplayString(t.label),9,qb)):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",Kb,[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",Xb,[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 Jb=ne(Wb,[["render",Qb],["__scopeId","data-v-0d77395a"]]),Zb=e.defineComponent({name:"VariableGroup",components:{VariableItem:Jb},setup(){const t=e.inject(be),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:so(i,n),variableList:i})};return{variableList:a,onAddVariable:()=>{const i=Z.cloneDeep(e.unref(a));i.push({keyValue:me(),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=Z.cloneDeep(e.unref(a));p[d]=i,l(p)}},onDeleteItem:i=>{if(i>=0){const d=Z.cloneDeep(e.unref(a));d.splice(i,1),l(d)}}}}}),hg="",ey={class:"variable-group"},ty={class:"variable-group-header"},oy={class:"variable-group-content"};function ny(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",ey,[e.createElementVNode("div",ty,[e.createVNode(s,{onClick:t.onAddVariable},{default:e.withCtx(()=>[e.createTextVNode("添加变量")]),_:1},8,["onClick"])])]),e.createElementVNode("div",oy,[(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 ay=ne(Zb,[["render",ny],["__scopeId","data-v-fd60cd09"]]),qr=(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:S,preview:_=!1,sqlConditions:A=[],rowHeaderList:I=[]}=r||{};m==null&&(pe(s,["table","card"])?m="1":m="2");let D;if(Array.isArray(C)&&C.length>0){const k=C.length;for(let O=0;O<k;O++){const B=C[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;if(E||k===1){D={label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,typeGuid:v,conditions:a(L)};break}}}let T;if(Array.isArray(b)&&b.length>0){const k=b.length;for(let O=0;O<k;O++){const B=b[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;if(E||k===1){T={label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,conditions:a(L),typeGuid:v};break}}}const R=[];if(Array.isArray(I)&&I.length>0){const k=I.length;for(let O=0;O<k;O++){const B=I[O]||{},{label:P="",name:F="",show:E=!1,sort:V,customGroup:x,conditions:L,typeGuid:v}=B;R.push({typeGuid:v,label:P.trim(),columnName:F,show:E,sort:V,customGroup:x,conditions:a(L)})}}const $=[];y==null||y.forEach(k=>{$.push(o(k))});const M=[];if(f==null||f.forEach(k=>{k.location="LEFT",M.push(l(k))}),h==null||h.forEach(k=>{k.location="RIGHT",M.push(l(k))}),N==null||N.forEach(k=>{k.location="LEFT",M.push(l(k))}),i||s==="card"){if(g="grouptable",M.length===0||R.length===0)return}else{if(m==="1"&&$.length===0)return;if(m==="2"&&M.length===0)return}try{return await c.post(`${_e}/diagram`,{source:d,dataViewId:p,plugin:u,layer:m,chartType:g,classification:D,series:T,indicatorList:M,queryColumns:$,pageFlag:!0,sqlConditions:A,rowHeaders:R,dataSourceId:w,idxLibMode:S,preview:_})}catch(k){console.error(k)}}},ly=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(be)||{},i=e.inject(xo)||{},d=e.ref(null),p=e.ref(null),u=e.ref(),m=e.ref(!1),g=e.ref(!1),C=e.computed(()=>g.value?ti: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:Jc(D,e.unref(b),C.value)}),y=(D=[],T,R=!1)=>{const $=R?T:null;b.value=Hc(D,$)},N=(D=[],T)=>{b.value=Wc(D,T)},w=async()=>{var D,T,R;try{const $=qr({graphicConfig:e.unref(a.value),type:(D=e.unref(n.value))==null?void 0:D.type,request:l,indicatorToken:s});m.value=!0;const M=await $(),{columns:k=[],rows:O=[]}=((T=M==null?void 0:M.data)==null?void 0:T.data)??{};if(((R=e.unref(n.value))==null?void 0:R.type)==="pie"){let B=[];if(k.length>0){const P=k[0],F=k[1];B=O.map(E=>({name:E[P],value:E[F]}))}N(B)}else{let B;k.length>0&&(B={name:k[0],types:k.slice(1).map(P=>({label:P,value:P}))}),y(O,B,!0)}}catch($){console.error($)}finally{m.value=!1}},S={title:{text:"暂无数据",x:"center",y:"center",textStyle:{fontSize:14,fontWeight:"normal"}}},_=()=>{e.unref(b).dataset.length===0?u.value.setOption(S,!0):u.value.setOption(h.value,!0)},A=()=>{e.unref(n.value).type!=="customGraph"&&w()},I=()=>{var D;(D=u.value)==null||D.resize()};return e.watch(h,()=>{_()},{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(I),r.observe(p.value)),u.value=ei.init(d.value)}),e.onBeforeUnmount(()=>{u.value.dispose(),r&&(r.disconnect(),r=null)}),o({refreshData:A}),{echartRef:d,loading:m}}}),bg="",ry={class:"ecan-chart-graph",ref:"chartWrapRef"},iy={style:{width:"100%",height:"100%"},ref:"echartRef"};function sy(t,o,n,a,l,r){const s=e.resolveComponent("a-spin");return e.openBlock(),e.createElementBlock("div",ry,[e.createVNode(s,{spinning:t.loading,wrapperClassName:"chart-spin",tip:"数据加载中..."},{default:e.withCtx(()=>[e.createElementVNode("div",iy,null,512)]),_:1},8,["spinning"])],512)}const cy=ne(ly,[["render",sy],["__scopeId","data-v-845f7ab1"]]),dy=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(Le),n=e.ref([]),a=e.ref([]),l=e.inject(Be),r=e.inject(Ve)||"",s=async()=>{var c;try{const d=await qr({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:td,columnsConfigMap:e.unref(o).columnsConfigMap}}}),py={key:0};function uy(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",py,e.toDisplayString(t.handleFormat(i,c)),1)):e.createCommentVNode("",!0)]),_:1},8,["columns","data-source","pagination"])}const fy=ne(dy,[["render",uy]]),my=e.defineComponent({name:"DataConfig",components:{DataGroup:bf,StyleGroup:xb,ChartGraph:cy,ATabs:j.Tabs,ATabPane:j.TabPane,ControlGroup:Hb,VariableGroup:ay,AButton:j.Button,ReloadOutlined:ic,TableGraph:fy},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(Le),i=e.inject(fa),d=e.inject(be),p=e.inject(ze),u=e.inject(Ca),m=e.inject(Zo),g=e.inject(wa),C=["text","proportion","select","checkbox","radio","radar","circulate"],b=e.computed(()=>{const F=Z.cloneDeep(e.unref(c));h(F);const E=Z.pick(F,Z.without(Object.keys(F),"position","top","left","width","height"));pe(F.type,C)?(E.height=F.height,E.width=F.width):E.height="290px";const V=Z.cloneDeep(e.unref(d));return V.pageMode="design",V.componentList=p,V.preview=!0,V.pageConfig=u,pe(F.type,"pivottable")&&(e.unref(n)&&(E.height=e.unref(n).$el.clientHeight-20+"px",E.width=e.unref(n).$el.clientWidth+"px"),E.fullMode=!0,V.preview=!1,delete V.pageMode),{...E,graphicConfig:V,toolboxShow:!1,sourceLeft:F.left,sourceTop:F.top}}),f=e.computed(()=>{var L,v;const{token:F,context:E}=e.unref(c),V=(((L=e.unref(s))==null?void 0:L.clientWidth)||0)+"px",x=(((v=e.unref(s))==null?void 0:v.clientHeight)||0)+"px";return{id:e.unref(c).componentId,name:e.unref(c).name,keyName:e.unref(c).keyName,type:"pivotTable",width:V,height:x,graphicConfig:e.unref(c).graphicConfig,dimensionList:e.unref(c).dimensionList||[],fullMode:!0,globalModel:new Map,indicatorUrl:"/api",indicatorToken:F,context:E}});function h(F){var E,V,x,L;["#ffffff","#fff"].includes((E=F==null?void 0:F.color)==null?void 0:E.toLowerCase())&&(F.color="#000"),["#ffffff","#fff"].includes((V=F==null?void 0:F.variableColor)==null?void 0:V.toLowerCase())&&(F.variableColor="#000"),["#ffffff","#fff"].includes((x=F==null?void 0:F.increaseColor)==null?void 0:x.toLowerCase())&&(F.increaseColor="#000"),["#ffffff","#fff"].includes((L=F==null?void 0:F.declineColor)==null?void 0:L.toLowerCase())&&(F.declineColor="#000")}const y=e.computed(()=>{let F=!0;return pe(e.unref(b).type,C)&&(F=!1),F}),N=e.computed(()=>{var F;return(F=e.unref(b))==null?void 0:F.type}),w=e.computed(()=>{var F;return!!((F=e.unref(b))!=null&&F.isGroupTable)}),S=F=>{const E=F==="1";E&&N.value==="table"&&$(),window.changeShowTable&&window.changeShowTable(E),F==="3"&&T()},_=e.ref([]),A=e.inject(Be),I=e.unref(e.inject(Ve)),D=(P=window==null?void 0:window.config)==null?void 0:P.pageId;function T(){var G;const{leftAxisList:F=[],rightAxisList:E=[],queryColumnList:V=[],indicators:x=[],dataSourceId:L=""}=e.unref(d),v=[...F,...E,...V,...x],U={};for(const Y of v){const{id:X="",indexCode:J=""}=Y;X&&!Ye(Y,"calcType")&&!U[X]&&(U[X]=J)}if((G=Object.keys(U))!=null&&G.length){const Y=[];for(const X in U)Y.push(new Promise((J,oe)=>{A.post(`${_e}/diagram/hrpIndexWithComplex`,{pageId:D,indexGuid:X,indexCode:U[X],dataSourceId:L},{headers:{Authentication:I,operateContext:"ygt"}}).then(ae=>{var ge;const{success:ye,data:ce=[]}=ae.data;ye&&((ge=ce==null?void 0:ce.dataViewColumns)!=null&&ge.length)?J(ce.dataViewColumns):oe(ce)}).catch(ae=>{oe(ae)})}));Promise.all(Y).then(X=>{if(X!=null&&X.length){const J=X.reduce((oe,ae)=>oe.filter(ye=>ae.find(ce=>ce.typeGuid===ye.typeGuid)));R(J.filter(oe=>oe.typeGuid))}})}else R([])}function R(F){var ye;const{classificationList:E=[],seriesList:V=[],leftAxisList:x=[],rightAxisList:L=[],indicators:v=[],rowHeaderList:U=[],queryColumnList:G=[]}=e.unref(d),Y=Z.cloneDeep([...E,...V,...x,...L,...v,...U,...G]);if(Y!=null&&Y.length)for(const ce of Y)ce.id=ce.name;const X=[{label:"日期(内置)",name:"日期(内置)",id:"the_date",genericType:"DATE",typeGuid:"the_date",indexCode:null},{label:"单位编号(内置)",name:"单位编号(内置)",id:"hbdwbh",genericType:"TEXT",typeGuid:"hbdwbh",indexCode:null},{label:"单位名称(内置)",name:"单位名称(内置)",id:"hbdwbh_name",genericType:"TEXT",typeGuid:"hbdwbh_name",indexCode:null},{label:"年(内置)",name:"年(内置)",id:"the_year",genericType:"TEXT",typeGuid:"the_year",indexCode:null},{label:"月(内置)",name:"月(内置)",id:"the_month",genericType:"TEXT",typeGuid:"the_month",indexCode:null},{label:"日(内置)",name:"日(内置)",id:"the_day",genericType:"TEXT",typeGuid:"the_day",indexCode:null},...F.map(ce=>({...ce,id:ce.name,label:ce.title||ce.label})),...Y];if(((ye=e.unref(c))==null?void 0:ye.type)==="ecanSelect"){const{selectFieldOptions:ce=[]}=e.unref(d);if(X.unshift({label:"上级编码",name:"上级编码",id:"parentCode",genericType:"TEXT"}),ce!=null&&ce.length)for(const ge of ce)X.unshift({label:ge.label,name:ge.value,id:ge.value,genericType:"TEXT"})}const J=new Map,oe=X.length;for(let ce=0;ce<oe;ce++){const ge=X[ce],{id:at}=ge||{};J.set(at,ge)}const ae=[...J];_.value=ae.map(([ce,ge])=>ge)}const $=()=>{var E;let F;i&&N.value==="table"?F=window.updateConfig:F=(E=e.unref(r))==null?void 0:E.refreshData,typeof F=="function"&&F()},M=e.inject(Ae),k=()=>{var F;M({variableConditions:so(((F=e.unref(d))==null?void 0:F.variableList)||[],p)})};e.provide(ma,$),e.watch(d,()=>{$()},{deep:!0,flush:"post"}),e.onMounted(()=>{m.value&&$()});const O=()=>e.unref(r).getSaveData(),B=({type:F,data:E})=>{if(F==="10"){const{dimensions:V,indicators:x}=Z.cloneDeep(E),L=[];if(V){for(const v of V)v.showTitle&&(v.label=v.showTitle),L.push({key:v.name,label:v.showTitle,width:null,position:v.positionType||"rows"});for(const v of x)v.showTitle&&(v.label=v.showTitle)}M({dimensionList:L,queryColumnList:V,indicators:x}),b.value.dimensionList=L}};return o({getSaveData:O}),{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:_,tableProps:f,dataConfigPaneRef:n,refreshData:$,refreshAction:k,onChange:S,onPivotTableChange:B}}}),yg="",hy={key:0,class:"ecan-pivot-table",ref:"pivotTableWrapRef"},by={key:0,id:"table-wrap",class:"chart-component",ref:"tableWrapRef",style:{width:"100%",height:"290px"}};function yy(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",hy,[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",by,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 gy=ne(my,[["render",yy],["__scopeId","data-v-41131686"]]);e.defineComponent({name:"IndicatorLibrary",components:{DataList:Id,DataConfig:gy},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?Z.cloneDeep(e.unref(c).graphicConfig):e.ref({});m=e.ref(m);let g=e.unref(c).chartsOptions?Z.cloneDeep(e.unref(c).chartsOptions):e.ref(Z.cloneDeep(en.line));g=e.ref(g);let C=e.unref(c).tableOptions?Z.cloneDeep(e.unref(c).tableOptions):e.ref(Z.cloneDeep(oi));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,S=()=>{l.value=!0,e.unref(c).graphicConfig&&(m.value=Z.cloneDeep(e.unref(c).graphicConfig)),e.unref(c).chartsOptions&&(g.value=Z.cloneDeep(e.unref(c).chartsOptions||en.line)),e.nextTick(()=>{l.value=!1})},_=()=>({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=_,window.getPivotGraphicData=A,t.request&&e.provide(Be,t.request),e.provide(ua,{setDataList:f,getDataList:w});const I=T=>{n("updateUsedComponent",T)},D=(T,R)=>{n("updateComponentsConfig",T,{controlList:R})};return e.provide(Zo,u),e.provide(wa,t.isIframeMode),e.provide(Le,c),e.provide(be,m),e.provide(xo,g),e.provide(ha,C),e.provide(Qt,r),e.provide(fa,p),e.provide(Ve,s),e.provide(Ae,h),e.provide(Qo,y),e.provide(Jo,N),e.provide(ze,i),e.provide(_o,I),e.provide(ya,D),e.provide(ga,t.mapAttributeProps),e.provide(Ca,t.pageConfig),o({graphicConfig:m,chartsOptions:g,updateIndicatorData:S}),{isUpdate:l,isPivotTable:u,dataConfigRef:a}}});const gg="",Kr=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Cy={install:(t,o)=>{const{request:n}=o;t.provide("$request",n),Object.keys(Kr).forEach(a=>{const l=Kr[a];l.install&&t.use(l)})}};he.default=Cy,Object.defineProperties(he,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
75
75
|
//# sourceMappingURL=index.umd.js.map
|