@univerjs-pro/bases-dashboard-ui 1.3.0 → 1.4.0

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.
Files changed (105) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/types/components/BasePivotChartEditor.d.ts +9 -9
  77. package/lib/types/components/mobile/BasePivotChartEditor.d.ts +9 -9
  78. package/lib/types/utils/dashboard-formula-shape.d.ts +4 -4
  79. package/lib/types/utils/dashboard-text.d.ts +2 -2
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/cs-CZ.js +1 -1
  84. package/lib/umd/locale/de-DE.js +1 -1
  85. package/lib/umd/locale/en-US.js +1 -1
  86. package/lib/umd/locale/es-ES.js +1 -1
  87. package/lib/umd/locale/fa-IR.js +1 -1
  88. package/lib/umd/locale/fr-FR.js +1 -1
  89. package/lib/umd/locale/id-ID.js +1 -1
  90. package/lib/umd/locale/it-IT.js +1 -1
  91. package/lib/umd/locale/ja-JP.js +1 -1
  92. package/lib/umd/locale/ko-KR.js +1 -1
  93. package/lib/umd/locale/nl-NL.js +1 -1
  94. package/lib/umd/locale/pl-PL.js +1 -1
  95. package/lib/umd/locale/pt-BR.js +1 -1
  96. package/lib/umd/locale/ru-RU.js +1 -1
  97. package/lib/umd/locale/sk-SK.js +1 -1
  98. package/lib/umd/locale/th-TH.js +1 -1
  99. package/lib/umd/locale/tr-TR.js +1 -1
  100. package/lib/umd/locale/uk-UA.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -1
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +23 -23
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x30b590=_0x1e15;(function(_0x281c2c,_0x145da1){const _0x4f7909=_0x1e15,_0x229c15=_0x281c2c();while(!![]){try{const _0x4a4bf4=parseInt(_0x4f7909(0x310))/0x1+parseInt(_0x4f7909(0x2e4))/0x2*(-parseInt(_0x4f7909(0x3cd))/0x3)+-parseInt(_0x4f7909(0x163))/0x4+parseInt(_0x4f7909(0x184))/0x5+parseInt(_0x4f7909(0xfb))/0x6+-parseInt(_0x4f7909(0x4a9))/0x7+parseInt(_0x4f7909(0x36e))/0x8;if(_0x4a4bf4===_0x145da1)break;else _0x229c15['push'](_0x229c15['shift']());}catch(_0x36f64d){_0x229c15['push'](_0x229c15['shift']());}}}(_0x520f,0x881fe),Object[_0x30b590(0x1a7)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/bases-dashboard'),t=require('@univerjs-pro/bases-ui'),n=require('@univerjs-pro/chart-ui'),r=require('@univerjs-pro/license'),i=require('@univerjs-pro/shape-editor'),a=require('@univerjs/core'),o=require('@univerjs/docs-ui'),s=require('@univerjs/icons'),c=require('rxjs'),l=require('@univerjs-pro/bases'),u=require('@univerjs-pro/collaboration-client'),d=require('@univerjs-pro/engine-shape'),f=require('@univerjs/design'),p=require('@univerjs/protocol'),m=require('@univerjs/ui'),h=require('react'),g=require('react/jsx-runtime'),_=require('@univerjs-pro/engine-chart'),v=require('react-dom'),y=require('@univerjs-pro/engine-pivot');var b=_0x30b590(0x297),x='1.3.0';const S=_0x30b590(0x138),C={};function w(_0x27ab89,_0x5e7a91){const _0x2a3ac7=_0x30b590;let _0x426f27=(0x0,m[_0x2a3ac7(0x155)])(a[_0x2a3ac7(0x164)]),_0x243cec=(0x0,e['canEditBaseDashboard'])(_0x426f27,_0x27ab89,_0x5e7a91);return(0x0,m['useObservable'])(()=>_0x426f27[_0x2a3ac7(0x11e)][_0x2a3ac7(0x26c)]((0x0,c['map'])(()=>(0x0,e[_0x2a3ac7(0x3ae)])(_0x426f27,_0x27ab89,_0x5e7a91))),_0x243cec,!0x1,[_0x5e7a91,_0x426f27,_0x27ab89]);}function T(_0x3b900e,_0x228aaa,_0x32d3a2){const _0x131567=_0x30b590;let _0x277989=(0x0,m[_0x131567(0x155)])(a[_0x131567(0x164)]),_0x46c358=(0x0,e[_0x131567(0x33b)])(_0x277989,_0x3b900e,_0x228aaa,_0x32d3a2);return(0x0,m[_0x131567(0xe2)])(()=>_0x277989[_0x131567(0x11e)]['pipe']((0x0,c[_0x131567(0x48a)])(()=>(0x0,e[_0x131567(0x33b)])(_0x277989,_0x3b900e,_0x228aaa,_0x32d3a2))),_0x46c358,!0x1,[_0x277989,_0x228aaa,_0x3b900e,_0x32d3a2]);}function E(_0x10ffc9,_0xbaf4ab=_0x30b590(0x225)){const _0x263a60=_0x30b590;return{'backgroundImage':'url('+JSON[_0x263a60(0x198)](_0x10ffc9)+')','backgroundPosition':_0xbaf4ab===_0x263a60(0x336)?_0x263a60(0x156):_0x263a60(0x334),'backgroundRepeat':_0xbaf4ab==='repeat'?_0x263a60(0x336):_0x263a60(0x44e),'backgroundSize':_0xbaf4ab===_0x263a60(0x225)?_0x263a60(0x225):_0x263a60(0x337)};}const D={'alignment':_0x30b590(0x362),'currency':_0x30b590(0x101),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x30b590(0x337),'numberFormat':_0x30b590(0x2b4)},O={'CNY':'¥','EUR':'€','USD':'$'};function k(_0x205520){const _0x487cfe=_0x30b590;var _0x1808fd;let _0x385bc2=te(((_0x1808fd=_0x205520['shapeData']['formulaBinding'])==null||(_0x1808fd=_0x1808fd[_0x487cfe(0x255)])==null?void 0x0:_0x1808fd[_0x487cfe(0x303)])??'');return{...D,..._0x385bc2,..._0x205520[_0x487cfe(0x434)]};}function A(_0x726722,_0x42a334){const _0x481d3d=_0x30b590;let _0x56777b={..._0x726722[_0x481d3d(0x434)],..._0x42a334},_0x253398=k({..._0x726722,'appearance':_0x56777b}),_0xeee392=_0x726722['shapeData'][_0x481d3d(0x44d)]??{'formula':''};return{..._0x726722,'appearance':_0x56777b,'shapeData':{..._0x726722[_0x481d3d(0x34e)],'formulaBinding':{..._0xeee392,'numberFormat':{'pattern':j(_0x253398[_0x481d3d(0x255)],_0x253398[_0x481d3d(0x13b)],_0x253398[_0x481d3d(0x2c4)])}}}};}function _0x520f(){const _0x38934a=['config$','span','version','labelId','currentTarget','dataset','useState','univer-size-4','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','getFieldPositionInfoById','ChartTrendlineSection','refreshChartRuntime','MoreHorizontalIcon','function','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.chart.section.wordCloud','useRef','bases-dashboard-ui.dashboardInspector.style','indexOf','bases-dashboard-ui.dashboard.undo','acquireChartRuntime','cornerView','indicatorLine','base-dashboard-pivot-chart-','ShapeTypeEnum','bases-dashboard-ui.pivot.displayName','find','tbody','ChartEditorCapability','Treemap','bases-dashboard-ui.dashboardInspector.right','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','ChartHostAdapter','UniverChartMobileUIPlugin','replace','createElement','MobileChartEditorProvider','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','Candlestick','bases-dashboard-ui.dashboardInspector.uploadImage','addEventListener','toDate','move','heatmap','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','ChartSeriesSection','contains','appearance','change$','radar','bases-dashboard-ui.chart.section.histogram','kind','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','chartTypeCanUseTrendLine','bases-dashboard-ui.pivot.layoutCompact','IImageIoService','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.operators.isNotEmpty','dashboard-text-','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.dataSource','innerHeight','from','bases-dashboard-ui.dashboardInspector.compact','true','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.ascending','split','LESS_THAN_OR_EQUAL','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','DEFAULT_CHART_RELATION_VALUES','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','formulaBinding','no-repeat','Row','chartRowDirection','name','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','dashboardOrder','textStyle','text','setStyle','data','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.dashboard.search','options','dispose','allSeriesStyle','document','IAttachmentIoService','border','div','univer-flex\x20univer-min-h-full\x20univer-flex-col','format','univer-size-8\x20univer-p-0\x20univer-text-red-500','scrollHeight','bases-dashboard-ui.pivot.repeatRowLabels','VerticalAxis','isFinite','supports','setConfig','ThemeService','bases-dashboard-ui.pivot.pivotConfiguration','showRowGrandTotal','univer-h-full\x20univer-w-full\x20univer-bg-transparent','ChartCommonDataMappingSection','onDrop','Style','univer-size-5\x20univer-text-primary-600','flex-start','tableOrder','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','depthAxis','getRenderColor','_injector','bases-dashboard-ui.pivot.chartConfiguration','bases-dashboard-ui.operators.isNot','percent','#,##0','ChartRadarStyleSection','operand','IBaseDashboardUIExtensionRegistryService','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','PivotLayoutTypeEnum','bases-dashboard-ui.dashboardInspector.backgroundImage','setLabelFilterInfo','pointerY','Pie','presentation','call','ChartEditPanelTab','resizeDirection','index','map','Number','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','snapshot','CreateBaseDashboardCommand','IndicatorLine','set','clientX','field','number','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Injector','WaterfallSeries','image/*','PivotDataFieldDataTypeEnum','getDashboard','getResource','pointermove','univer-relative\x20univer-z-10','change','dashboard-','ILayoutService','Legend','BaseViewType','destructive','getOwnPropertyDescriptor','univer-w-24','bases-dashboard-ui.mobile.moveDown','Relation','bases-dashboard-ui.dashboard.addWidget','minmax(0,\x203fr)\x20minmax(0,\x202fr)','3354995AtDeTj','rowSpan','ArrowUpIcon','errorType','stdDevp','get','GripVerticalIcon','rowView','bases-dashboard-ui.dashboardInspector.sourceUnavailable','initial','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','Axes','accept','BaseChartRuntimeService','item','univer-truncate','bases-dashboard-ui.dashboard.image','dashboard-chart-setup','gray','baseChartDataAnimation','repeatColLabels','lastCol','base-pivot-chart-style','getOptions','valueIndex','PieStyle','useCallback','bases-dashboard-ui.chart.section.candlestick','add','bases-dashboard-ui.pivot.fields','widgetOrder','toUpperCase','aside','bases-dashboard-ui.chart.section.radar','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','waterfallStyle','isArray','info','MobileDropdownMenu','pointerX','date','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.general','univer-mt-2','push','RecordId','univer-grid\x20univer-gap-3','average','bases-dashboard-ui.pivot.calculationFailed','table','countNums','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','wordCloud','DatePicker','pageOverThenDown','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','ProtectIcon','Positive','flatMap','numfmt','stdDev','bases-dashboard-ui.chart.section.chord','formulaToEditorFormula','DEFAULT_CHART_PIE_VALUES','createChartInstance','segmented','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.cancel','isConnected','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','NOT_CONTAINS','CreatedAt','dataModel','TextIcon','dataView','createPortal','bases-dashboard-ui.dashboard.pivotChart','header','ChartLineAndAreaSection','ChartWaterfallStyleTarget','bases-dashboard-ui.dashboardInspector.unchecked','DEFAULT_CHART_INDICATOR_LINE_VALUES','IS_NOT_EMPTY','bases-dashboard-ui.dashboardInspector.description','Series','tables','bases-dashboard-ui.pivot.filters','borderRadius','Chord','dashboard-chart-style','univer-text-sm','PivotTableFiledAreaEnum','chart','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','compact','clientWidth','setLayout','ChartWordCloudStyleSection','color','thead','bases-dashboard-ui.dashboardInspector.textSize','useObservable','separator','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','backgroundColor','bases-dashboard-ui.dashboardInspector.replaceImage','resolveBasePivotChartRowDirection','univer-max-h-40\x20univer-text-base','univer-flex\x20univer-min-h-0\x20univer-flex-1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','then','Bubble','UniverBasesUIPlugin','skip','LineAndArea','addImageSourceCache','HorizontalAxis','Column','baseOn','BASES_DASHBOARD_GRID_COLUMNS','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','ChartIcon','PenIcon','length','toFormulaMenuTables','DEFAULT_CHART_HEATMAP_VALUES','3797166Ouqizr','fontSizeMode','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','ChartPieStyleSection','onSettings','bases-dashboard-ui.pivot.valuePosition','USD','ChartNumberFormatAtom','fill','Input','BaseMobileDrawer','original','varp','Image','sourceType','pareto','disposeWithMe','bases-dashboard-ui.pivot.addToFilter','pageView','displayMode','focusUnit','widgets','ChartThemeService','univer-w-full','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','defaultValue','Text','CHART_DATA_UPDATE_ANIMATION_DURATION','toMenuFields','getBoundingClientRect','resize','constructor','updateValuePosition','type','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','permissionPointUpdate$','shapeText','bases-dashboard-ui.dashboardInspector.editFormula','alignment','layout','Inject','Subtotal','conditions','descending','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','ChartGradientFillField','rows','click','BEFORE','bases-dashboard-ui.chart.common.horizontalAxis','target','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','clientY','style','getValueIndex','colView','src','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','minmax(0,\x201fr)','bases-dashboard-ui.dashboard.rename','ChartSectionAccordion','bases-dashboard-ui.config','boxSizing','documentElement','decimalPlaces','markNotReady','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','scrollWidth','createParagraphId','bases-dashboard-ui.pivot.dataSource','filter','backgroundImage','markReady','toLocaleLowerCase','bases-dashboard-ui.mobile.permissions','startY','repeatRowLabels','getBaseDashboardPermissionObjectId','ceil','renameField','PivotTableIcon','Radar','ManualFilter','getCurrentTheme','bases-dashboard-ui.chart.common.editChart','bases-dashboard-ui.dashboard.configure','bases-dashboard-ui.dashboardInspector.percent','dashboards','bases-dashboard-ui.operators.isEmpty','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','useDependency','0\x200','overflow','bases-dashboard-ui.pivot.selectAll','createFormulaShapeData','packageName','bases-dashboard-ui.dashboard.widgetActions','Select','DeleteIcon','row','every','getImageSourceCache','onMoveUp','bases-dashboard-ui.dashboardInspector.close','1196272GVswND','IPermissionService','blur','scrollbarClassName','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','bases-dashboard-ui.chart.section.treemap','openObjectPermissionDialog','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','darkMode$','univer-pointer-events-auto\x20univer-opacity-100','DEFAULT_CHART_SERIES_VALUES','bases-dashboard-ui.chart.section.sunburst','_createContext','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.operators.greaterThanOrEqual','pluginName','ChartTypeField','bases-dashboard-ui.dashboardInspector.cover','bases-dashboard-ui.pivot.searchFields','RTLChartStyle','Escape','subscribe','createBasePivotTable','toPrimitive','getAttachmentUrl','merge','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.dashboardInspector.clear','UpdateBaseDashboardCommand','PivotDataFieldSortOperatorEnum','bases-dashboard-ui.dashboardInspector.currency','ChartSectionAccordionTrigger','1130250EMUeDt','lastRow','bases-dashboard-ui.chart.section.paretoLine','MoreDownIcon','bases-dashboard-ui.pivot.defaultName','ChartRenderMode','sum','register','UniverBaseDashboardPlugin','toChartModelUpdate','univer-flex','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-mx-auto\x20univer-size-6','rowFields','fillType','Date','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.dashboardInspector.repeat','isTopTotal','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','stringify','bases-dashboard-ui.dashboardInspector.backgroundColor','flex-end','Value','lineStrokeType','activeRuntimeModel','UUID','end','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.dashboardInspector.checked','UNIVER_BASE','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','rowSubtotalPosition','keydown','Progress','defineProperty','round','outline','children','bases-dashboard-ui.dashboardInspector.delete','bases-dashboard-ui.chart.waterfall.subtotal','setSubtotalType','bases-dashboard-ui.dashboardInspector.currencyCode','setSortInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ChartThreeDSection','bases-dashboard-ui.pivot.addToValue','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','view','bases-dashboard-ui.pivot.stdDevPopulation','disconnect','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.pivot.layout','values','bases-dashboard-ui.dashboard.fullScreen','entries','formatMap','area','BASE_DASHBOARD_UI_PLUGIN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','label','bottom','isSubtotal','ChartEditPanel','createRenderInput','Tooltip','ChartLegendSection','cumulativeLineStyle','config','bases-dashboard-ui.chart.section.paretoBar','bases-dashboard-ui.pivot.dropFieldsHere','prefix','bases-dashboard-ui.pivot.min','localeKey','ChartHeatmapStyleSection','DEFAULT_CHART_WATERFALL_STYLE_VALUES','bases-dashboard-ui.pivot.max','conjunction','DeleteBaseDashboardCommand','BaseFieldType','Data','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','BaseMobileFilterOperand','relation','bases-dashboard-ui.pivot.blank','img','univer-w-full\x20univer-justify-start','bases-dashboard-ui.operators.notContains','GeneralSeries','default','var','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','bases-dashboard-ui.chart.common.chartStyle','bases-dashboard-ui.pivot.sourceFields','BaseDashboardWidgetType','bases-dashboard-ui.pivot.showColumnSubtotal','DEFAULT_CHART_TITLE_VALUES','UniverLicensePlugin','string','button','bases-dashboard-ui.operators.lessThanOrEqual','bases-dashboard-ui.dashboardInspector.decimalPlaces','RightVerticalAxis','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-cursor-grab','chartType','join','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','CHART_TYPE_CATALOG','DEFAULT_CHART_LINE_AND_AREA_VALUES','observe','bases-dashboard-ui.chart.common.series','ChartTypeBits','changed$','forEach','bases-dashboard-ui.pivot.repeatColumnLabels','ChartParetoSeriesSection','fieldId','DEFAULT_CHART_TRENDLINE_VALUES','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.dashboardInspector.custom','ChartStyleSection','imageSourceType','MultipleGrandTotal','None','bases-dashboard-ui.mobile.moveUp','ascending','rightY','Plugin','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','ChartTypeSpecificDataSection','borderClassName','system','univer-grid\x20univer-gap-4','matchMedia','LESS_THAN','UndoIcon','headerMap','ChartStyle','\x20/\x20','isBottomTotal','Trendline','univer-flex-1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','current','setCurrentUnitForType','_localeService','dashboard-widget-','bases-dashboard-ui.dashboardInspector.left','MultiSelect','model','bases-dashboard-ui.pivot.options','ChartAxisSection','univer-size-5\x20univer-rotate-90','visibilityState','univer-grid\x20univer-gap-4\x20univer-p-4','preventDefault','Sankey','getChartRuntime','cover','Fragment','univer-mb-3\x20univer-text-sm\x20univer-font-medium','base64Cache','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','_chartThemeService','UndoCommand','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-shrink-0\x20univer-px-3','PivotTableValuePositionEnum','ChartEditPanelTabs','documentStyle','stopPropagation','bases-dashboard-ui.pivot.showRowGrandTotal','DEFAULT_CHART_STYLE_VALUES','Rating','onStarting','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','decorate','input','\x20has\x20no\x20render\x20config.','source','chart-and-table','bases-dashboard-ui.dashboardInspector.alignment','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','useChartEditorHasRightAxis','jsx','bases-dashboard-ui.dashboardInspector.numberFormat','getFieldCountByArea','IConfigService','MobileChartEditorControls','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','IUniverInstanceService','darkMode','pivotViewId','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','BaseDashboard','waterfall.negative','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.dashboardInspector.removeImage','_element','ChartWaterfallSetupFields','univer-w-36','FormulaEditorPanel','bases-dashboard-ui.pivot.numberFormat','dateKit','headerRowCount','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','numberFormat','columnFields','bases-dashboard-ui.chart.section.gauge','pivot','article','bases-dashboard-ui.pivot.addToColumn','bases-dashboard-ui.dashboard.deleteWidget','CalendarIcon','ChartUIService','touchDependencies','replaceChildren','ShapeLineTypeEnum','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.pageWrap','PivotSubtotalPositionEnum','Line','DescendingIcon','grouped','bases-dashboard-ui.dashboardInspector.selectOption','max','saveImage','pipe','title','bind','ChartThemeField','bases-dashboard-ui.pivot.chartAndTable','ChartSectionAccordionItem','ExpandIcon','GrandTotal','CloseIcon','releaseChartRuntime','bases-dashboard-ui.dashboardInspector.loading','ChartFunnelStyleSection','column','ICommandService','ChartTypeSpecificSetupSection','requestFullscreen','univer-mt-2\x20univer-w-full','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.reset','columnSpan','bases-dashboard-ui.pivot.removeField','ChartRelationStyleSection','ParetoLineSeries','matches','ParetoBarSeries','base-pivot-chart-','bases-dashboard-ui.pivot.downThenAcross','bases-dashboard-ui.chart.common.heatmap','iterator','Heatmap','setFieldFormat','onReady','onMoveDown','bases-dashboard-ui.dashboard.redo','getDataFieldByTableId','univer-flex\x20univer-justify-end\x20univer-gap-2','top','Person','renderTransition','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','showRowSubtotal','floor','@univerjs-pro/bases-dashboard-ui','ShapeFormulaService','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','symbol','UnitObject','catch','fullscreenElement','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Histogram','scrollTop','ChartEditBlockTitle','tableFieldId','removeField','valuePosition','IUndoRedoService','Dom','chartId','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.textColor','alt','saveAttachment','onRemove','dataStream','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','UpdateBasePivotViewCommand','Sunburst','Base\x20dashboard\x20chart\x20','BaseFilterConjunction','barStyle','general','bases-dashboard-ui.chart.section.indicatorLine','Textarea','bases-dashboard-ui.dashboardInspector.editData','bases-dashboard-ui.chart.chartTypes.','Checkbox','buildChartTypeSelectOptions','_config','debounce','bases-dashboard-ui.dashboard.formulaShape','bases-dashboard-ui.pivot.layoutTabular','getRect','fontSize','useMemo','ChartTypeSpecificStyleSection','innerWidth','currency','PivotCellStyleTypeEnum','redos','DEFAULT_CHART_FUNNEL_VALUES','files','Pareto','bases-dashboard-ui.chart.common.customize','resolve','bases-dashboard-ui.dashboard.tableFilter','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','ChartColorField','chartTypeSupportsLineAndAreaStyle','Pivot','bases-dashboard-ui.dashboardInspector.number','dataAggregation','key','select','bases-dashboard-ui.chart.section.funnel','paragraphId','fit','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.dashboard.editWidget','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-gap-2','bases-dashboard-ui.pivot.description','hidden','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.pivot.name','General','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','showColSubtotal','univer-cursor-grabbing','2yasnjU','Filter','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.pivot.confirm','prototype','direction$','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','NumberFormat','syncLayout','fullscreenchange','fieldOrder','right','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','IS_NOT','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.after','bases-dashboard-ui.dashboard.delete','section','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','min','file','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.pivot.average','baseChartDataAnimationDuration','MobileFormulaEditorPanel','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','WordCloud','small','univer-flex\x20univer-flex-col','pattern','RedoIcon','error','DEFAULT_CHART_WATERFALL_SETUP_VALUES','univer-flex\x20univer-items-center\x20univer-gap-2','pie','ActivateBaseViewOperation','includes','ImageSourceType','undoRedoStatus$','items','RoundRect','isErrorValue','272476rkrZbX','parentElement','PivotSubtotalTypeEnum','IBaseViewUIRegistryService','normalizeEditorFormulaForConfig','clientHeight','context','currentTheme$','rowCount','FilterIcon','chartBitsUtils','bases-dashboard-ui.pivot.top','FormulaShape','primary','AscendingIcon','SearchIcon','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','YYYY-MM-DD','toJSON','description','Segmented','ILogService','TableFilter','measure','Funnel','bases-dashboard-ui.pivot.rowSubtotalPosition','dimension','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','filterInfo','product','Group','titles','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','border-box','bases-dashboard-ui.dashboardInspector.data','univer-min-w-0\x20univer-flex-1','center','IncreaseIcon','repeat','auto','valueFields','height','InputNumber','canEditBasePivotView','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','SetBasePermissionCommand','DEFAULT_CHART_AXIS_VALUES','bases-dashboard-ui.pivot.countNumbers','RemoveBaseDashboardWidgetCommand','bases-dashboard-ui.chart.section.waterfall','trim','NumberIcon','unsubscribe','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','removeEventListener','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.dashboardInspector.formula','onMove','itemTypes','list','useChartEditorChartType','slice','shapeData','bases-dashboard-ui.chart.common.chartAndAxisTitles','subtotal','value','rightYAxis','sortInfo','base-pivot-chart','startX','ChartEditorProvider','bases-dashboard-ui.dashboardInspector.dragWidget','Gauge','ChartSectionAccordionContent','Disposable','getResult','UniverShapeEditorPlugin','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.dashboardInspector.enterValue','getPresentation','DEFAULT_CHART_LEGEND_VALUES','left','BaseFilterOperator','some','lineAndArea','dataFieldId','ChartWaterfallStyleSection','object','dom','chartTypeSupportsCapability','axis','IS_EMPTY','ChartAndAxisTitles','8870760KFgJUK','viewOrder','delete','views','closest','clsx','getTableFieldsByDataFieldId','bases-dashboard-ui.pivot.stdDev','funnel','row:','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','count','undos','UniverBasesMobileUIPlugin','bases-dashboard-ui.dashboardInspector.contain','UpsertBaseDashboardWidgetCommand','trendline','DropdownMenu','UpdatedAt','transparent','ChartEditPanelSection','bases-dashboard-ui.pivot.display','bases-dashboard-ui.chart.chartTypes.line','corner:','GridlinesAndTicks','executeCommand','BaseUnitCollaborationStatus','univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.fieldSettings','getSnapshot','column:','jsxs','colCount','displayName','rootContainerElement','bases-dashboard-ui.chart.chartTypes.area','series','waterfall','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.operators.is','addFieldWithSourceId','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','onCommit','MobileDialog','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.pivot.values','size','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','width','univer-bg-transparent\x20dark:!univer-bg-transparent','base-pivot-chart-configuration','[data-dashboard-widget]','orient','bases-dashboard-ui.chart.section.gridlinesAndTicks','PivotFilterTypeEnum','paragraphs','onDragStart','BaseDashboardResourceService','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','has','Boxplot','DEFAULT_CHART_PARETO_VALUES','formula','updateFieldPosition','canEditBaseDashboard','ObjectPermissionButton','style$','group','ChartIndicatorLineSection','AFTER','setOptions','onCancel','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.chart.common.verticalAxis','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','blank','decimal','univer-grid\x20univer-gap-2\x20univer-p-3','base-pivot-options','renderRevision','bases-dashboard-ui.pivot.summarizeBy','getRuntimeContext','ownerDocument','px\x20solid\x20','bases-dashboard-ui.pivot.pageDirection','base-pivot-chart-setup','bases-dashboard-ui.chart.common.legend','defaultPrevented','fields','PivotChart','filterFields','bases-dashboard-ui.pivot.tableOnly','tabular','test','base-pivot-fields','2712939lEzkYk','SolidFill','ChartStackField','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','onFilter','univer-text-gray-400','tableId','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','UniverInstanceType','pageWrap','bases-dashboard-ui.pivot.sum','base-pivot-table-configuration','onDragEnd','Button','contain','_configService','useEffect','textColor','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.count','isPrefixValue','doc','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','subItem','mode','SingleSelect','getUnit','univer-min-h-11\x20univer-px-3\x20univer-text-base','DependentOn','LocaleService','pageRows','RedoCommand','body','SolidLine','bases-dashboard-ui.chart.common.setup','isHeader','custom','bases-dashboard-ui.pivot.calculating','ChartTitlesSection','createDomChartInstance','univer-m-3','getId','\x20/\x20span\x20','generateRandomId','bases-dashboard-ui.pivot.acrossThenDown','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','getDirection','operator','onDragOver','bases-dashboard-ui.chart.common.trendline','ChartViewStateRegistry','Currency','GREATER_THAN','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','grandTotal'];_0x520f=function(){return _0x38934a;};return _0x520f();}function j(_0x380553,_0x4c1eea,_0xe7dfb0){const _0xc83580=_0x30b590;let _0x2c1b7d=Math['max'](0x0,Math[_0xc83580(0x2f9)](0x8,Math[_0xc83580(0x1a8)](_0x4c1eea))),_0x56cd5f=_0x2c1b7d?'.'+'0'[_0xc83580(0x336)](_0x2c1b7d):'';switch(_0x380553){case _0xc83580(0x493):return'0'+_0x56cd5f;case _0xc83580(0x47a):return'0'+_0x56cd5f+'%';case _0xc83580(0x2c4):return(O[_0xe7dfb0]??_0xe7dfb0)+_0xc83580(0x47b)+_0x56cd5f;case _0xc83580(0x268):return _0xc83580(0x47b)+_0x56cd5f;case'compact':case _0xc83580(0x2b4):return'General';}}function ee(_0x42eb3c,_0x3505e8,_0x519adb){const _0x3d6145=_0x30b590;return _0x519adb['numberFormat']!==_0x3d6145(0xdb)||typeof _0x3505e8!=_0x3d6145(0x493)||!Number[_0x3d6145(0x467)](_0x3505e8)?_0x42eb3c:new Intl[(_0x3d6145(0x2ed))](void 0x0,{'notation':_0x3d6145(0xdb),'minimumFractionDigits':_0x519adb[_0x3d6145(0x13b)]??0x0,'maximumFractionDigits':_0x519adb[_0x3d6145(0x13b)]??0x0})['format'](_0x3505e8);}function te(_0x1b3bef){const _0xfad56c=_0x30b590;var _0x5502cd,_0x31bd59;if(!_0x1b3bef||_0x1b3bef===_0xfad56c(0x2e0))return{};let _0x5e3c99=_0x1b3bef['match'](/\.([0#]+)/),_0x1d5cce=(_0x5e3c99==null||(_0x5502cd=_0x5e3c99[0x1])==null?void 0x0:_0x5502cd['length'])??0x0;if(_0x1b3bef['includes']('%'))return{'decimalPlaces':_0x1d5cce,'numberFormat':_0xfad56c(0x47a)};let _0x2b88f5=(_0x31bd59=Object[_0xfad56c(0x1bc)](O)[_0xfad56c(0x41e)](([,_0x477bb7])=>_0x1b3bef['includes'](_0x477bb7)))==null?void 0x0:_0x31bd59[0x0];return _0x2b88f5?{'currency':_0x2b88f5,'decimalPlaces':_0x1d5cce,'numberFormat':_0xfad56c(0x2c4)}:{'decimalPlaces':_0x1d5cce,'numberFormat':_0x1b3bef['includes'](',')?_0xfad56c(0x268):_0xfad56c(0x493)};}const ne={'center':_0x30b590(0x334),'left':_0x30b590(0x472),'right':_0x30b590(0x19a)};function M({dashboardId:_0x92442a,unitId:_0x3ff1cb,widget:_0x45cc0c}){const _0xb26ff7=_0x30b590;var _0x36fe75,_0x135781,_0x25f1e3,_0x5789c8,_0x4f001a,_0x5d9b51,_0x5df078,_0x2fd324,_0x21e482;let _0x66fa03=(0x0,m[_0xb26ff7(0x155)])(i[_0xb26ff7(0x298)]),_0x5441a5=(0x0,m['useDependency'])(a[_0xb26ff7(0x43c)]),_0x5d6c4b=(0x0,m[_0xb26ff7(0x155)])(a[_0xb26ff7(0x3ea)]),_0x4d4941=(0x0,h[_0xb26ff7(0x2c1)])(()=>({'hostType':a[_0xb26ff7(0x3d5)]['UNIVER_BASE'],'unitId':_0x3ff1cb,'subUnitId':_0x92442a,'shapeId':_0x45cc0c['id']}),[_0x92442a,_0x3ff1cb,_0x45cc0c['id']]),[_0xe5c97c,_0x2d96d2]=(0x0,h[_0xb26ff7(0x40a)])(()=>_0x66fa03[_0xb26ff7(0x360)](_0x4d4941)),[_0x3747db,_0x4f4025]=(0x0,h[_0xb26ff7(0x40a)])(()=>{const _0xfc8241=_0xb26ff7;var _0x3ca53a;return(_0x3ca53a=_0x66fa03[_0xfc8241(0x35b)](_0x4d4941))==null?void 0x0:_0x3ca53a[_0xfc8241(0x351)];}),[_0x4c5767,_0x208396]=(0x0,h[_0xb26ff7(0x40a)])(),_0x2a21f1=(0x0,h['useRef'])(null),_0x3f41dd=(0x0,h[_0xb26ff7(0x414)])(null),_0xf26d65=k(_0x45cc0c);(0x0,h[_0xb26ff7(0x3dd)])(()=>{let _0x1cdc78=_0x66fa03['presentationChanged$']['subscribe'](_0x3bcb0=>{const _0x69d7c1=_0x1e15;_0x3bcb0['unitId']===_0x3ff1cb&&_0x3bcb0['subUnitId']===_0x92442a&&_0x3bcb0['shapeId']===_0x45cc0c['id']&&(_0x2d96d2(_0x3bcb0[_0x69d7c1(0x485)]),_0x4f4025(_0x3bcb0['result'][_0x69d7c1(0x351)]));});return()=>_0x1cdc78['unsubscribe']();},[_0x92442a,_0x66fa03,_0x4d4941,_0x3ff1cb,_0x45cc0c['id']]),(0x0,h[_0xb26ff7(0x3dd)])(()=>{const _0x3f7bc3=_0xb26ff7;let _0x47d47c=_0xf26d65['backgroundImage'];if(!_0x47d47c||_0x47d47c[_0x3f7bc3(0x109)]!==a[_0x3f7bc3(0x30b)]['UUID'])return;let _0x2f8c62=_0x5441a5[_0x3f7bc3(0x160)](_0x47d47c[_0x3f7bc3(0x23a)],_0x47d47c[_0x3f7bc3(0x109)]);if(_0x2f8c62!=null&&_0x2f8c62[_0x3f7bc3(0x133)])return;let _0x28e4a1=!0x0;return _0x5441a5['getImage'](_0x47d47c[_0x3f7bc3(0x23a)])[_0x3f7bc3(0xeb)](_0x5ec6c2=>{const _0x5e2a39=_0x3f7bc3;_0x28e4a1&&_0x208396({'source':_0x47d47c[_0x5e2a39(0x23a)],'value':_0x5ec6c2});})[_0x3f7bc3(0x29c)](()=>void 0x0),()=>{_0x28e4a1=!0x1;};},[_0xf26d65[_0xb26ff7(0x142)],_0x5441a5]);let _0x592b95=((_0x36fe75=_0xf26d65[_0xb26ff7(0x142)])==null?void 0x0:_0x36fe75[_0xb26ff7(0x109)])===a[_0xb26ff7(0x30b)][_0xb26ff7(0x19e)]?((_0x135781=_0x5441a5['getImageSourceCache'](_0xf26d65['backgroundImage'][_0xb26ff7(0x23a)],_0xf26d65[_0xb26ff7(0x142)][_0xb26ff7(0x109)]))==null?void 0x0:_0x135781[_0xb26ff7(0x133)])??((_0x4c5767==null?void 0x0:_0x4c5767['source'])===_0xf26d65['backgroundImage']['source']?_0x4c5767[_0xb26ff7(0x351)]:''):((_0x25f1e3=_0xf26d65['backgroundImage'])==null?void 0x0:_0x25f1e3[_0xb26ff7(0x23a)])??'',_0x2a9ddc=_0x45cc0c[_0xb26ff7(0x34e)][_0xb26ff7(0x11f)],_0x2e9ca0=_0x2a9ddc&&_0xb26ff7(0x4f1)in _0x2a9ddc?(_0x5789c8=_0x2a9ddc[_0xb26ff7(0x4f1)])==null?void 0x0:_0x5789c8[_0xb26ff7(0x3e2)]:void 0x0,_0x3a3b2d=ee((_0xe5c97c==null?void 0x0:_0xe5c97c[_0xb26ff7(0x455)])??'',_0x3747db,_0xf26d65),_0x2d2044=_0x45cc0c[_0xb26ff7(0x34e)][_0xb26ff7(0x103)],_0x37d4a9=_0x45cc0c['shapeData']['stroke'],_0x1e4b1f=_0x2e9ca0==null||(_0x4f001a=_0x2e9ca0[_0xb26ff7(0x230)])==null?void 0x0:_0x4f001a[_0xb26ff7(0x454)],_0x20a8de=_0x45cc0c[_0xb26ff7(0x323)]??_0x45cc0c[_0xb26ff7(0x26d)]??'';return(0x0,h[_0xb26ff7(0x3dd)])(()=>{const _0x3275ae=_0xb26ff7;let _0x567599=_0x2a21f1[_0x3275ae(0x216)],_0x22fd07=_0x3f41dd[_0x3275ae(0x216)];if(!_0x567599||!_0x22fd07)return;let _0x3dc163=()=>{const _0xb27701=_0x3275ae;if(_0xf26d65[_0xb27701(0xfc)]==='custom'||!_0x567599[_0xb27701(0xdc)]||!_0x567599['clientHeight']){_0x22fd07[_0xb27701(0x130)][_0xb27701(0x2c0)]=_0xf26d65[_0xb27701(0x2c0)]+'px';return;}let _0x8e94c1=0x1,_0x5dab43=0x48,_0x5796ff=_0x8e94c1;for(;_0x8e94c1<=_0x5dab43;){let _0x2f5c1c=Math['floor']((_0x8e94c1+_0x5dab43)/0x2);_0x22fd07[_0xb27701(0x130)][_0xb27701(0x2c0)]=_0x2f5c1c+'px',_0x22fd07[_0xb27701(0x13e)]<=_0x567599['clientWidth']&&_0x22fd07[_0xb27701(0x464)]<=_0x567599[_0xb27701(0x315)]?(_0x5796ff=_0x2f5c1c,_0x8e94c1=_0x2f5c1c+0x1):_0x5dab43=_0x2f5c1c-0x1;}_0x22fd07['style']['fontSize']=_0x5796ff+'px';};if(_0x3dc163(),typeof ResizeObserver>'u')return;let _0x47671f=new ResizeObserver(_0x3dc163);return _0x47671f[_0x3275ae(0x1f4)](_0x567599),()=>_0x47671f['disconnect']();},[_0xf26d65[_0xb26ff7(0x2c0)],_0xf26d65['fontSizeMode'],_0x3a3b2d]),(0x0,g[_0xb26ff7(0x38d)])(_0xb26ff7(0x460),{'data-dashboard-formula-shape':_0x45cc0c['id'],'className':_0xb26ff7(0x29e),'style':{'backgroundColor':((_0x5d9b51=_0x45cc0c[_0xb26ff7(0x434)])==null?void 0x0:_0x5d9b51[_0xb26ff7(0xe5)])??((_0x2d2044==null?void 0x0:_0x2d2044[_0xb26ff7(0x192)])===d['ShapeFillEnum'][_0xb26ff7(0x3ce)]?_0x2d2044[_0xb26ff7(0xdf)]??void 0x0:void 0x0),'border':(_0x37d4a9==null?void 0x0:_0x37d4a9[_0xb26ff7(0x19c)])===d[_0xb26ff7(0x260)][_0xb26ff7(0x3ee)]?(_0x37d4a9[_0xb26ff7(0x39e)]??0x1)+_0xb26ff7(0x3c1)+(_0x37d4a9[_0xb26ff7(0xdf)]??'currentColor'):void 0x0,'borderRadius':_0x45cc0c['shapeType']===d[_0xb26ff7(0x41c)][_0xb26ff7(0x30e)]?0xc:void 0x0,'color':((_0x5df078=_0x45cc0c['appearance'])==null?void 0x0:_0x5df078[_0xb26ff7(0x3de)])??(_0xe5c97c==null?void 0x0:_0xe5c97c[_0xb26ff7(0xdf)])??(_0x1e4b1f==null||(_0x2fd324=_0x1e4b1f['cl'])==null?void 0x0:_0x2fd324['rgb'])??void 0x0,'fontWeight':_0x1e4b1f!=null&&_0x1e4b1f['bl']?0x258:void 0x0,'textAlign':_0xf26d65[_0xb26ff7(0x121)]},'children':[_0x592b95&&(0x0,g['jsx'])(_0xb26ff7(0x1db),{'src':_0x592b95,'alt':'','aria-hidden':_0xb26ff7(0x445),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x21e482=_0xf26d65[_0xb26ff7(0x142)])==null?void 0x0:_0x21e482[_0xb26ff7(0x2d7)])??_0xb26ff7(0x225)}}),(0x0,g[_0xb26ff7(0x38d)])(_0xb26ff7(0x460),{'className':_0xb26ff7(0x248),'children':[_0x20a8de&&(0x0,g[_0xb26ff7(0x23f)])(_0xb26ff7(0x460),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x20a8de}),(0x0,g[_0xb26ff7(0x23f)])('div',{'ref':_0x2a21f1,'data-dashboard-formula-value':!0x0,'aria-label':_0x20a8de||_0x5d6c4b['t'](_0xb26ff7(0x2bd)),'className':_0xb26ff7(0x113),'style':{'justifyContent':ne[_0xf26d65[_0xb26ff7(0x121)]]},'children':(0x0,g['jsx'])(_0xb26ff7(0x405),{'ref':_0x3f41dd,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0xf26d65[_0xb26ff7(0xfc)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x3a3b2d})})]})]});}function N(_0x2e5562,_0xd44e31){return function(_0x46a84b,_0x40daf1){_0xd44e31(_0x46a84b,_0x40daf1,_0x2e5562);};}function P(_0x28d58e,_0x11d6ac,_0x47f021,_0x577dd0){const _0x388072=_0x30b590;var _0x4240b=arguments[_0x388072(0xf8)],_0x38cbf8=_0x4240b<0x3?_0x11d6ac:_0x577dd0===null?_0x577dd0=Object[_0x388072(0x4a3)](_0x11d6ac,_0x47f021):_0x577dd0,_0x2ea273;if(typeof Reflect==_0x388072(0x368)&&typeof Reflect['decorate']==_0x388072(0x411))_0x38cbf8=Reflect[_0x388072(0x237)](_0x28d58e,_0x11d6ac,_0x47f021,_0x577dd0);else{for(var _0x4ecedf=_0x28d58e[_0x388072(0xf8)]-0x1;_0x4ecedf>=0x0;_0x4ecedf--)(_0x2ea273=_0x28d58e[_0x4ecedf])&&(_0x38cbf8=(_0x4240b<0x3?_0x2ea273(_0x38cbf8):_0x4240b>0x3?_0x2ea273(_0x11d6ac,_0x47f021,_0x38cbf8):_0x2ea273(_0x11d6ac,_0x47f021))||_0x38cbf8);}return _0x4240b>0x3&&_0x38cbf8&&Object[_0x388072(0x1a7)](_0x11d6ac,_0x47f021,_0x38cbf8),_0x38cbf8;}let F=class{constructor(_0x40a2cc,_0x5d91f9,_0x1ad72e){const _0x487b0f=_0x30b590;this['_localeService']=_0x40a2cc,this[_0x487b0f(0x22a)]=_0x5d91f9,this['_renderModelManager']=_0x1ad72e;}['createDomChartInstance'](){const _0xad6651=_0x30b590;return this['_renderModelManager'][_0xad6651(0x4e9)](_[_0xad6651(0x189)]['Dom'],this['_createContext']());}['createRenderInput'](_0x13d0df){const _0x7cfaaf=_0x30b590;let _0x4ff40e=_0x13d0df[_0x7cfaaf(0x21c)][_0x7cfaaf(0x1ca)];if(!_0x4ff40e)throw Error(_0x7cfaaf(0x2b1)+_0x13d0df['chartId']+_0x7cfaaf(0x239));let _0x3b1283=this[_0x7cfaaf(0x218)][_0x7cfaaf(0x3fb)]();return{'config':_0x4ff40e,'style':(0x0,_['resolveChartRuntimeStyle'])({..._0x13d0df[_0x7cfaaf(0x21c)]['style'],'runtime':_0x13d0df['model'][_0x7cfaaf(0x3bf)](_0x3b1283),'direction':_0x3b1283},_0x4ff40e[_0x7cfaaf(0x11c)])};}[_0x30b590(0x170)](){const _0x10813c=_0x30b590;return{'resolveHostStyle':({style:_0x28c5c0})=>(0x0,_['resolveDefaultChartHostFrameStyle'])({'style':_0x28c5c0,'getRenderColor':_0x34eb78=>this[_0x10813c(0x22a)][_0x10813c(0x476)](_0x34eb78)}),'resolveRenderBackgroundColor':({hostStyle:_0x272edb})=>_0x272edb[_0x10813c(0x103)]};}};F=P([N(0x0,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)])),N(0x1,(0x0,a['Inject'])(_[_0x30b590(0x111)])),N(0x2,_['IChartRenderModelManagerService'])],F);function I(_0x4757a5,_0x10b9fc){const _0x16c570=_0x30b590;var _0xed5c7;_0x4757a5[_0x16c570(0x130)][_0x16c570(0xe5)]=_0x10b9fc[_0x16c570(0x103)]??_0x16c570(0x381),_0x4757a5[_0x16c570(0x130)][_0x16c570(0x45f)]=(_0xed5c7=_0x10b9fc['border'])!=null&&_0xed5c7[_0x16c570(0xdf)]&&_0x10b9fc['border']['width']?_0x10b9fc[_0x16c570(0x45f)]['width']+_0x16c570(0x3c1)+_0x10b9fc[_0x16c570(0x45f)][_0x16c570(0xdf)]:'',_0x4757a5[_0x16c570(0x130)][_0x16c570(0xd4)]=_0x10b9fc['radius']?_0x10b9fc['radius']+'px':'',_0x4757a5[_0x16c570(0x130)][_0x16c570(0x157)]=_0x16c570(0x2dd),_0x4757a5['style'][_0x16c570(0x139)]=_0x16c570(0x331);}function L(_0x3c44c1){'@babel/helpers - typeof';const _0xb292b4=_0x30b590;return L=typeof Symbol==_0xb292b4(0x411)&&typeof Symbol[_0xb292b4(0x289)]=='symbol'?function(_0x9b7bee){return typeof _0x9b7bee;}:function(_0x56f93a){const _0x4bcab0=_0xb292b4;return _0x56f93a&&typeof Symbol=='function'&&_0x56f93a[_0x4bcab0(0x11a)]===Symbol&&_0x56f93a!==Symbol[_0x4bcab0(0x2e8)]?_0x4bcab0(0x29a):typeof _0x56f93a;},L(_0x3c44c1);}function R(_0x5e1fba,_0x11a4ce){const _0x1d72b6=_0x30b590;if(L(_0x5e1fba)!=_0x1d72b6(0x368)||!_0x5e1fba)return _0x5e1fba;var _0x3e46fa=_0x5e1fba[Symbol[_0x1d72b6(0x17b)]];if(_0x3e46fa!==void 0x0){var _0x5adfab=_0x3e46fa[_0x1d72b6(0x486)](_0x5e1fba,_0x11a4ce||_0x1d72b6(0x1df));if(L(_0x5adfab)!=_0x1d72b6(0x368))return _0x5adfab;throw TypeError(_0x1d72b6(0x44c));}return(_0x11a4ce===_0x1d72b6(0x1e8)?String:Number)(_0x5e1fba);}function z(_0x2f3fe5){const _0xf3aa40=_0x30b590;var _0x2e17d7=R(_0x2f3fe5,_0xf3aa40(0x1e8));return L(_0x2e17d7)==_0xf3aa40(0x29a)?_0x2e17d7:_0x2e17d7+'';}function B(_0x2b367b,_0x3e435f,_0x4f9725){const _0x5eb4b3=_0x30b590;return(_0x3e435f=z(_0x3e435f))in _0x2b367b?Object[_0x5eb4b3(0x1a7)](_0x2b367b,_0x3e435f,{'value':_0x4f9725,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b367b[_0x3e435f]=_0x4f9725,_0x2b367b;}var V=class extends a[_0x30b590(0x35a)]{constructor(_0x3bfacb,_0x182e1b){const _0x589cc4=_0x30b590;super(),this[_0x589cc4(0x2a7)]=_0x3bfacb,this[_0x589cc4(0x24d)]=_0x182e1b,B(this,_0x589cc4(0x3e5),_[_0x589cc4(0x189)][_0x589cc4(0x2a6)]);}[_0x30b590(0x2bf)](){const _0x24facb=_0x30b590;return{'width':Math[_0x24facb(0x26a)](0x1,this[_0x24facb(0x24d)][_0x24facb(0xdc)]),'height':Math[_0x24facb(0x26a)](0x1,this[_0x24facb(0x24d)][_0x24facb(0x315)])};}[_0x30b590(0x456)](_0x4434c4){const _0x2a5668=_0x30b590;I(this[_0x2a5668(0x24d)],_0x4434c4);}async['ensureMount'](){const _0x5261c1=_0x30b590;return this[_0x5261c1(0x24d)];}['checkMounted'](){const _0x2c4f82=_0x30b590;return this[_0x2c4f82(0x24d)][_0x2c4f82(0x4ed)];}[_0x30b590(0x2ee)](){}[_0x30b590(0x143)](){}[_0x30b590(0x13c)](){}};function re({isRowDirection:_0x35a10d,runtime:_0x173546}){const _0x288947=_0x30b590;let _0x5ac912=(0x0,h[_0x288947(0x414)])(null),_0x24af15=(0x0,m[_0x288947(0x155)])(a['LocaleService']),_0x440244=(0x0,m['useDependency'])(a[_0x288947(0x325)]),_0x40ca81=(0x0,m['useDependency'])(F),_0x1f69da=(0x0,m[_0x288947(0x155)])(a['ThemeService']);return(0x0,h[_0x288947(0x3dd)])(()=>{const _0x4cbef8=_0x288947;let _0x382f96=_0x5ac912[_0x4cbef8(0x216)];if(!_0x382f96)return;_0x382f96[_0x4cbef8(0x25f)]();let {chartId:_0x47f710,model:_0x45e37d}=_0x173546,_0x257d6b=_0x45e37d['dataSource'],_0x23a5a0=new V(_0x47f710,_0x382f96),_0x554e72=_0x40ca81[_0x4cbef8(0x3f4)](),_0x4093dd=!0x1,_0x552072=null,_0x313004=null,_0x731dcd=null,_0x2e6253=null,_0x468750=!0x1,_0x265147=!0x1,_0x5d0400=Promise[_0x4cbef8(0x2cb)]();_0x554e72[_0x4cbef8(0x26e)](_0x23a5a0);let _0x4d8dc3=()=>{const _0x490529=_0x4cbef8;var _0x30a448,_0x5842dc,_0x2ee15b,_0x1dff99;if(document[_0x490529(0x220)]===_0x490529(0x2dd)||(_0x30a448=(_0x5842dc=window)[_0x490529(0x20c)])!=null&&(_0x30a448=_0x30a448[_0x490529(0x486)](_0x5842dc,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x30a448[_0x490529(0x284)]||(_0x2ee15b=(_0x1dff99=window)['matchMedia'])!=null&&(_0x2ee15b=_0x2ee15b['call'](_0x1dff99,'print'))!=null&&_0x2ee15b['matches']||!_0x382f96['isConnected'])return!0x1;let _0x3622d7=_0x382f96[_0x490529(0x118)]();return _0x3622d7['width']>0x0&&_0x3622d7[_0x490529(0x339)]>0x0&&_0x3622d7[_0x490529(0x2f1)]>0x0&&_0x3622d7['bottom']>0x0&&_0x3622d7[_0x490529(0x362)]<window[_0x490529(0x2c3)]&&_0x3622d7[_0x490529(0x291)]<window[_0x490529(0x442)];},_0x25bcb7=()=>{const _0x5747f1=_0x4cbef8;_0x313004!==null&&clearTimeout(_0x313004),_0x382f96['dataset'][_0x5747f1(0x4bc)]='true',_0x382f96['dataset'][_0x5747f1(0x2fd)]=String(_[_0x5747f1(0x116)]),_0x313004=setTimeout(()=>{const _0x4eba52=_0x5747f1;_0x313004=null,delete _0x382f96[_0x4eba52(0x409)]['baseChartDataAnimation'],delete _0x382f96['dataset']['baseChartDataAnimationDuration'];},_[_0x5747f1(0x116)]);},_0xcf295e=(0x0,a[_0x4cbef8(0x2bc)])(()=>{const _0x2baa28=_0x4cbef8;if(_0x4093dd||(_0x552072!==null&&(clearTimeout(_0x552072),_0x552072=null),!_0x45e37d['config']))return;let _0x2219fa=_0x265147;_0x265147=!0x1,_0x382f96[_0x2baa28(0x409)]['chartType']=String(_0x45e37d[_0x2baa28(0x1ef)]),_0x382f96['dataset'][_0x2baa28(0x450)]=String(_0x35a10d);let _0x5c7e3e=_0x40ca81[_0x2baa28(0x1c6)](_0x173546),_0x3602a1={'chartId':_0x47f710,'config':_0x5c7e3e['config'],'style':_0x5c7e3e[_0x2baa28(0x130)]};_0x5d0400=_0x5d0400[_0x2baa28(0xeb)](async()=>{const _0x3c1e77=_0x2baa28;_0x4093dd||(_0x382f96[_0x3c1e77(0x409)][_0x3c1e77(0x3bd)]=String(Number(_0x382f96[_0x3c1e77(0x409)][_0x3c1e77(0x3bd)]??0x0)+0x1),_0x2219fa&&_0x731dcd&&_0x554e72[_0x3c1e77(0x293)]&&_0x4d8dc3()?(await _0x554e72[_0x3c1e77(0x293)](_0x731dcd,_0x3602a1,{'duration':_['CHART_DATA_UPDATE_ANIMATION_DURATION']}),_0x4093dd||_0x25bcb7()):await _0x554e72['render'](_0x3602a1),_0x731dcd=_0x3602a1);})[_0x2baa28(0x29c)](_0x1e69be=>_0x440244[_0x2baa28(0x305)](_0x2baa28(0x3b8),_0x1e69be));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x4e0bce=(_0x41f26f=!0x1)=>{_0x265147||=_0x41f26f,!_0x468750&&(_0x468750=!0x0,queueMicrotask(()=>{_0x468750=!0x1,_0x4093dd||_0xcf295e();}));},_0x50d6db=[_0x257d6b['data$']['subscribe'](_0x33e875=>{const _0x513a23=_0x4cbef8;let _0x2bf9b3=JSON[_0x513a23(0x198)](_0x33e875);_0x2e6253!=null&&_0x2e6253!==_0x2bf9b3&&_0x4e0bce(!0x0),_0x2e6253=_0x2bf9b3;}),_0x45e37d[_0x4cbef8(0x404)][_0x4cbef8(0x179)](_0x2cf2c8=>{_0x2cf2c8&&_0x4e0bce();}),_0x45e37d[_0x4cbef8(0x3b0)][_0x4cbef8(0x179)](()=>_0x4e0bce()),_0x24af15[_0x4cbef8(0x2e9)][_0x4cbef8(0x179)](()=>_0x4e0bce()),(0x0,c['combineLatest'])([_0x1f69da[_0x4cbef8(0x317)],_0x1f69da[_0x4cbef8(0x16c)]])[_0x4cbef8(0x26c)]((0x0,c[_0x4cbef8(0xee)])(0x1))['subscribe'](()=>_0x4e0bce())],_0x18dc96=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x3d59f8=_0x4cbef8;_0x4093dd||(_0x23a5a0[_0x3d59f8(0x2ee)](),_0x552072!==null&&clearTimeout(_0x552072),_0x552072=setTimeout(()=>_0x4e0bce(),0x64));});return _0x18dc96==null||_0x18dc96[_0x4cbef8(0x1f4)](_0x382f96),()=>{const _0x5f54ae=_0x4cbef8;_0x4093dd=!0x0,_0xcf295e['cancel'](),_0x552072!==null&&clearTimeout(_0x552072),_0x313004!==null&&clearTimeout(_0x313004),delete _0x382f96[_0x5f54ae(0x409)][_0x5f54ae(0x4bc)],delete _0x382f96[_0x5f54ae(0x409)]['baseChartDataAnimationDuration'],_0x18dc96==null||_0x18dc96[_0x5f54ae(0x1b6)](),_0x50d6db[_0x5f54ae(0x1f8)](_0x17df87=>_0x17df87[_0x5f54ae(0x344)]()),_0x554e72[_0x5f54ae(0x45b)](),_0x23a5a0[_0x5f54ae(0x45b)](),_0x382f96[_0x5f54ae(0x25f)]();};},[_0x35a10d,_0x24af15,_0x440244,_0x40ca81,_0x173546,_0x1f69da]),(0x0,g['jsx'])(_0x288947(0x460),{'ref':_0x5ac912,'data-u-comp':_0x288947(0x354),'className':_0x288947(0x3fa)});}function ie({filters:_0x55f617,onRuntimeChange:_0x16a66c,unitId:_0x3f809,widget:_0x50e8a7}){const _0x4e311b=_0x30b590;let _0x1959fc=(0x0,m[_0x4e311b(0x155)])(a[_0x4e311b(0x245)]),_0x1409f9=(0x0,m[_0x4e311b(0x155)])(a[_0x4e311b(0x3ea)]),_0x3a6a09=(0x0,m['useDependency'])(a['ILogService']),_0x46f5ba=(0x0,m[_0x4e311b(0x155)])(e[_0x4e311b(0x4b6)]),[_0x4e0531,_0x34a0b5]=(0x0,h[_0x4e311b(0x40a)])(null),[_0x5b4e2b,_0x140150]=(0x0,h['useState'])(!0x1),[_0xbd85da,_0xd7c770]=(0x0,h[_0x4e311b(0x40a)])(null),_0x431352=(0x0,h[_0x4e311b(0x414)])(_0x4e311b(0x41b)+(0x0,a[_0x4e311b(0x3f8)])(0x8)),_0x58a98d=_0x1959fc[_0x4e311b(0x3e7)](_0x3f809,a['UniverInstanceType'][_0x4e311b(0x1a2)]),_0xc2f696=_0x58a98d==null?void 0x0:_0x58a98d[_0x4e311b(0x38b)]()[_0x4e311b(0x4fe)][_0x50e8a7[_0x4e311b(0x3d3)]],_0x2c63c3=_0xc2f696==null?void 0x0:_0xc2f696['views'][_0x50e8a7['pivotViewId']],_0x311eba=H(_0x2c63c3);if((0x0,h['useEffect'])(()=>{const _0x575c79=_0x4e311b;if(!_0x311eba)return;let _0x396b92=_0x431352['current'];return _0x46f5ba[_0x575c79(0x418)](_0x396b92,{'unitId':_0x3f809,'tableId':_0x50e8a7[_0x575c79(0x3d3)],'viewId':_0x50e8a7[_0x575c79(0x247)],'filters':[]}),()=>{const _0x5137d6=_0x575c79;_0x46f5ba[_0x5137d6(0x275)](_0x3f809,_0x396b92),_0x16a66c==null||_0x16a66c(_0x50e8a7['id'],null);};},[_0x311eba,_0x16a66c,_0x46f5ba,_0x3f809,_0x50e8a7['id'],_0x50e8a7[_0x4e311b(0x247)],_0x50e8a7[_0x4e311b(0x3d3)]]),(0x0,h[_0x4e311b(0x3dd)])(()=>{const _0x3fad1d=_0x4e311b;if(!H(_0x2c63c3))return;let _0x2c8960=!0x0,_0x5be680=_0x50e8a7[_0x3fad1d(0xd9)]??_0x2c63c3['config'][_0x3fad1d(0xd9)],_0x1a6783={'unitId':_0x3f809,'tableId':_0x50e8a7[_0x3fad1d(0x3d3)],'viewId':_0x50e8a7[_0x3fad1d(0x247)],'filters':[_0x2c63c3[_0x3fad1d(0x141)]??null,..._0x55f617]};return _0x46f5ba['refreshChartRuntime'](_0x3f809,_0x431352['current'],_0x1a6783,_0x5be680)['then'](_0x13705d=>{const _0x54a900=_0x3fad1d;if(!_0x2c8960||!_0x13705d)return;let _0x37b169=_0x46f5ba[_0x54a900(0x224)](_0x3f809,_0x431352[_0x54a900(0x216)])??null;_0x34a0b5(_0x13705d),_0xd7c770(_0x37b169),_0x140150(!0x1),_0x16a66c==null||_0x16a66c(_0x50e8a7['id'],_0x37b169);})['catch'](_0x150880=>{const _0x5cf850=_0x3fad1d;_0x3a6a09[_0x5cf850(0x305)](_0x5cf850(0x32b),_0x150880),_0x2c8960&&(_0x34a0b5(null),_0x140150(!0x0));}),()=>{_0x2c8960=!0x1;};},[_0x55f617,_0x3a6a09,_0x16a66c,_0x46f5ba,_0x3f809,_0x2c63c3,_0x50e8a7['chart'],_0x50e8a7['id'],_0x50e8a7[_0x4e311b(0x247)],_0x50e8a7[_0x4e311b(0x3d3)]]),!H(_0x2c63c3))return(0x0,g[_0x4e311b(0x23f)])(_0x4e311b(0x460),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x1409f9['t'](_0x4e311b(0x4b1))});let _0x70e520=_0x46f5ba[_0x4e311b(0x224)](_0x3f809,_0x431352['current'])===_0xbd85da?_0xbd85da:null;return _0x4e0531&&_0x70e520?(0x0,g[_0x4e311b(0x23f)])(re,{'isRowDirection':(0x0,e[_0x4e311b(0xe7)])((_0x50e8a7[_0x4e311b(0xd9)]??_0x2c63c3[_0x4e311b(0x1ca)][_0x4e311b(0xd9)])[_0x4e311b(0x3a2)]),'runtime':_0x70e520}):(0x0,g[_0x4e311b(0x23f)])(_0x4e311b(0x460),{'className':_0x4e311b(0x197),'children':_0x1409f9['t'](_0x5b4e2b?'bases-dashboard-ui.pivot.calculationFailed':_0x4e311b(0x3f2))});}function H(_0x4865b6){const _0x32e6ed=_0x30b590;return(_0x4865b6==null?void 0x0:_0x4865b6[_0x32e6ed(0x11c)])===a['BaseViewType'][_0x32e6ed(0x2d0)]&&typeof _0x4865b6[_0x32e6ed(0x1ca)]==_0x32e6ed(0x368)&&_0x4865b6['config']!==null&&_0x32e6ed(0x258)in _0x4865b6['config']&&_0x32e6ed(0xd9)in _0x4865b6[_0x32e6ed(0x1ca)];}const ae={'alignment':_0x30b590(0x362),'fontSize':0x12,'fontSizeMode':_0x30b590(0x337)};function oe(_0x414a16){return{...ae,..._0x414a16['appearance']};}function U(_0x50a34c){const _0x5837b5=_0x30b590;var _0x8df60a;return((_0x8df60a=_0x50a34c[_0x5837b5(0x3ed)])==null?void 0x0:_0x8df60a[_0x5837b5(0x2ad)]['replace'](/\r\n$/,'')[_0x5837b5(0x426)](/\r/g,'\x0a'))??'';}function se(_0x489ab8,_0x5740bc){const _0x48b874=_0x30b590;var _0x45305f;let _0x37cc1a=_0x5740bc['replace'](/\r\n|\r/g,'\x0a')[_0x48b874(0x448)]('\x0a'),_0x554e3a=_0x37cc1a[_0x48b874(0x1f0)]('\x0d')+'\x0d\x0a',_0x3be3ec=((_0x45305f=_0x489ab8[_0x48b874(0x3ed)])==null?void 0x0:_0x45305f[_0x48b874(0x3a5)])??[],_0x44a6ca=new Set(_0x3be3ec[_0x48b874(0x48a)](_0x1fccaa=>_0x1fccaa[_0x48b874(0x2d6)])),_0x3c0151=0x0,_0x4b6b70=_0x37cc1a['map']((_0xaaf58c,_0xb131f8)=>{const _0x5c0bb4=_0x48b874;_0x3c0151+=_0xaaf58c['length'];let _0x5d30e6={..._0x3be3ec[_0xb131f8]??{'startIndex':_0x3c0151,'paragraphId':(0x0,a[_0x5c0bb4(0x13f)])(_0x44a6ca)},'startIndex':_0x3c0151};return _0x3c0151+=0x1,_0x5d30e6;});return{..._0x489ab8,'body':{..._0x489ab8[_0x48b874(0x3ed)],'dataStream':_0x554e3a,'paragraphs':_0x4b6b70,'textRuns':[]}};}function ce({widget:_0x9d023e}){const _0x30564b=_0x30b590;let _0x833f5f=(0x0,m[_0x30564b(0x155)])(a[_0x30564b(0x46a)]),_0x31d684=(0x0,m[_0x30564b(0x155)])(a['LocaleService']),_0x2c89d5=(0x0,m[_0x30564b(0xe2)])(()=>_0x833f5f[_0x30564b(0x317)],_0x833f5f[_0x30564b(0x14e)](),!0x1,[_0x833f5f]),_0x2a019a=(0x0,h[_0x30564b(0x414)])(null),_0x37e919=(0x0,h[_0x30564b(0x414)])(null),_0x457388=oe(_0x9d023e),_0xff501=_0x457388[_0x30564b(0xe5)]??_0x2c89d5[_0x30564b(0x4bb)][0x0],_0x40c422=_0x457388[_0x30564b(0x3de)]??_0x2c89d5[_0x30564b(0x4bb)][0x3e8],_0x232482=U(_0x9d023e[_0x30564b(0x45d)]);return(0x0,h[_0x30564b(0x3dd)])(()=>{const _0x2e812b=_0x30564b;let _0x5d32b9=_0x2a019a[_0x2e812b(0x216)],_0x411a1f=_0x37e919['current'];if(!_0x5d32b9||!_0x411a1f)return;let _0x48e604=()=>{const _0x23fd18=_0x2e812b;if(_0x457388['fontSizeMode']===_0x23fd18(0x3f1)||!_0x5d32b9[_0x23fd18(0xdc)]||!_0x5d32b9['clientHeight']){_0x411a1f[_0x23fd18(0x130)][_0x23fd18(0x2c0)]=_0x457388[_0x23fd18(0x2c0)]+'px';return;}let _0x2cb17f=0x8,_0x33b6c8=0x48,_0x57312c=_0x2cb17f;for(;_0x2cb17f<=_0x33b6c8;){let _0x4b2150=Math[_0x23fd18(0x296)]((_0x2cb17f+_0x33b6c8)/0x2);_0x411a1f[_0x23fd18(0x130)]['fontSize']=_0x4b2150+'px',_0x411a1f['scrollWidth']<=_0x5d32b9[_0x23fd18(0xdc)]&&_0x411a1f[_0x23fd18(0x464)]<=_0x5d32b9[_0x23fd18(0x315)]?(_0x57312c=_0x4b2150,_0x2cb17f=_0x4b2150+0x1):_0x33b6c8=_0x4b2150-0x1;}_0x411a1f[_0x23fd18(0x130)][_0x23fd18(0x2c0)]=_0x57312c+'px';};if(_0x48e604(),typeof ResizeObserver>'u')return;let _0x136cf9=new ResizeObserver(_0x48e604);return _0x136cf9['observe'](_0x5d32b9),()=>_0x136cf9[_0x2e812b(0x1b6)]();},[_0x457388[_0x30564b(0x2c0)],_0x457388[_0x30564b(0xfc)],_0x232482]),(0x0,g[_0x30564b(0x23f)])(_0x30564b(0x460),{'data-dashboard-text-widget':_0x9d023e['id'],'className':_0x30564b(0x207),'style':{'backgroundColor':_0xff501,'color':_0x40c422},'children':(0x0,g[_0x30564b(0x23f)])('div',{'ref':_0x2a019a,'data-dashboard-text-content':!0x0,'aria-label':_0x31d684['t'](_0x30564b(0x3b6)),'className':_0x30564b(0x474),'children':(0x0,g[_0x30564b(0x23f)])(_0x30564b(0x460),{'ref':_0x37e919,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x457388['fontSizeMode'],'className':_0x30564b(0x2f8),'style':{'textAlign':_0x457388[_0x30564b(0x121)]},'children':_0x232482})})});}function le({dashboard:_0x594813,editable:_0x253f7f=!0x0,onSelectWidget:_0x4b45bc,renderWidget:_0x21e152,renderWidgetActions:_0x126147,selectedWidgetId:_0x35fd09,widgetLabel:_0x3f9078}){const _0x55de5b=_0x30b590;return(0x0,g['jsx'])(_0x55de5b(0x460),{'data-dashboard-scroll-container':!0x0,'className':(0x0,f['clsx'])('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',f[_0x55de5b(0x166)]),'onClick':_0x253f7f?_0x88dc1=>{const _0x36c6d1=_0x55de5b;if(!(_0x88dc1[_0x36c6d1(0x12d)]instanceof Node)||!_0x88dc1[_0x36c6d1(0x408)][_0x36c6d1(0x433)](_0x88dc1['target']))return;let _0x461ed7=_0x88dc1[_0x36c6d1(0x12d)]instanceof Element?_0x88dc1[_0x36c6d1(0x12d)]:_0x88dc1[_0x36c6d1(0x12d)][_0x36c6d1(0x311)];_0x461ed7!=null&&_0x461ed7[_0x36c6d1(0x372)](_0x36c6d1(0x3a1))||_0x4b45bc==null||_0x4b45bc();}:void 0x0,'children':(0x0,g[_0x55de5b(0x23f)])(_0x55de5b(0x460),{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x594813['widgetOrder'][_0x55de5b(0x48a)](_0x5f32d5=>{const _0x2e348c=_0x55de5b;let _0x4a7673=_0x594813[_0x2e348c(0x110)][_0x5f32d5];if(!_0x4a7673)return null;let _0x44bb91=Math[_0x2e348c(0x26a)](0xb4,_0x4a7673[_0x2e348c(0x122)]['rowSpan']*e[_0x2e348c(0xfd)]);return(0x0,g['jsxs'])('article',{'data-dashboard-widget':_0x4a7673['id'],'aria-label':_0x4a7673[_0x2e348c(0x26d)]??_0x3f9078(_0x4a7673),'className':(0x0,f[_0x2e348c(0x373)])('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x4a7673[_0x2e348c(0x11c)]===e[_0x2e348c(0x1e4)][_0x2e348c(0x108)]||_0x4a7673[_0x2e348c(0x11c)]===e[_0x2e348c(0x1e4)]['FormulaShape']?_0x2e348c(0x39f):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x253f7f&&_0x35fd09===_0x4a7673['id']?_0x2e348c(0x2ea):_0x2e348c(0x389)),'style':{'minHeight':_0x44bb91,'height':_0x44bb91},'tabIndex':_0x253f7f?0x0:void 0x0,'onClick':_0x253f7f?()=>_0x4b45bc==null?void 0x0:_0x4b45bc(_0x4a7673['id']):void 0x0,'onFocus':_0x253f7f?()=>_0x4b45bc==null?void 0x0:_0x4b45bc(_0x4a7673['id']):void 0x0,'children':[_0x253f7f&&(0x0,g['jsx'])('div',{'className':_0x2e348c(0x3d0),'children':_0x126147==null?void 0x0:_0x126147(_0x4a7673)}),(0x0,g[_0x2e348c(0x23f)])(_0x2e348c(0x460),{'className':_0x2e348c(0x412),'children':_0x21e152(_0x4a7673)})]},_0x4a7673['id']);})})});}let W=class extends n[_0x30b590(0x25d)]{constructor(_0x16eb24){const _0x52ea6a=_0x30b590;super(_0x16eb24),B(this,_0x52ea6a(0x19d),null);}['executeChartUpdateConfig'](_0x41883c){}};W=P([N(0x0,(0x0,a[_0x30b590(0x123)])(n[_0x30b590(0x3ff)]))],W);function ue({children:_0x1e01d6}){const _0x55dd46=_0x30b590;return(0x0,g['jsx'])(n[_0x55dd46(0x243)],{'children':_0x1e01d6});}function G(_0x54c6be){const _0x217c5e=_0x30b590;return(0x0,g[_0x217c5e(0x23f)])(f['MobileSelect'],{..._0x54c6be});}function de(_0x2a9bda){const _0x42e08c=_0x30b590;return(0x0,g[_0x42e08c(0x23f)])(f[_0x42e08c(0x4cf)],{..._0x2a9bda});}function fe(_0x1c589a){const _0x4d1669=_0x30b590;return(0x0,g[_0x4d1669(0x23f)])(f[_0x4d1669(0x399)],{..._0x1c589a});}var pe;const K={'axis':{...n[_0x30b590(0x33e)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0x30b590(0x2c7)],'heatmap':n[_0x30b590(0xfa)],'indicatorLine':n['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':n[_0x30b590(0x361)],'lineAndArea':n[_0x30b590(0x1f3)],'pareto':n['DEFAULT_CHART_PARETO_VALUES'],'pie':n[_0x30b590(0x4e8)],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n[_0x30b590(0x44b)],'useValueAsSymbolSize':!0x0},'series':{...n['DEFAULT_CHART_SERIES_VALUES'],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0x30b590(0x177)][_0x30b590(0x45c)])==null?void 0x0:pe['rightYAxis'])??!0x1}},'style':n[_0x30b590(0x233)],'titles':n[_0x30b590(0x1e6)],'trendline':n[_0x30b590(0x1fc)],'waterfall':{...n[_0x30b590(0x306)],'useSubtotal':!0x0},'waterfallStyle':n['DEFAULT_CHART_WATERFALL_STYLE_VALUES'],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},me=[_[_0x30b590(0x1f6)][_0x30b590(0x266)],_[_0x30b590(0x1f6)][_0x30b590(0x14c)],_[_0x30b590(0x1f6)][_0x30b590(0x300)],_[_0x30b590(0x1f6)]['Scatter'],_[_0x30b590(0x1f6)]['Funnel'],_[_0x30b590(0x1f6)][_0x30b590(0x4a6)],_[_0x30b590(0x1f6)][_0x30b590(0x223)],_[_0x30b590(0x1f6)]['Heatmap'],_[_0x30b590(0x1f6)]['Boxplot'],_[_0x30b590(0x1f6)][_0x30b590(0x42b)],_['ChartTypeBits']['Histogram'],_[_0x30b590(0x1f6)]['Treemap'],_[_0x30b590(0x1f6)][_0x30b590(0x2b0)],_['ChartTypeBits']['Gauge'],_[_0x30b590(0x1f6)][_0x30b590(0xd5)]];function he(_0x1b88b2){const _0x1b1ad1=_0x30b590;let {config:_0x5f2e0e,onChange:_0x3021b1,runtime:_0x11ebab,tableName:_0x5e2d02}=_0x1b88b2,_0x59b0f0=(0x0,m[_0x1b1ad1(0x155)])(W),_0xf95458=(0x0,m[_0x1b1ad1(0x155)])(a['LocaleService']),[_0x483fb3,_0x3d4348]=(0x0,h[_0x1b1ad1(0x40a)])(n[_0x1b1ad1(0x487)][_0x1b1ad1(0x1d6)]),_0x3c7996=(0x0,h[_0x1b1ad1(0x2c1)])(()=>new n[(_0x1b1ad1(0x424))](_0x11ebab[_0x1b1ad1(0x21c)],{'commit':_0x1c108f=>{const _0x4629f7=_0x1b1ad1;var _0x3c9410;let _0x10c5b8=_0x11ebab[_0x4629f7(0x21c)],_0x1ea90d=(0x0,_['toChartModelUpdate'])(_0x1c108f,{'series':(_0x3c9410=_0x10c5b8['config'])==null?void 0x0:_0x3c9410[_0x4629f7(0x392)],'currentChartType':_0x10c5b8[_0x4629f7(0x1ef)],'currentStyle':_0x10c5b8['style'],'currentContext':_0x10c5b8[_0x4629f7(0x316)],'currentDataAggregation':_0x10c5b8[_0x4629f7(0x2d2)]});_0x3021b1({'chart':ge(_0x5f2e0e[_0x4629f7(0xd9)],_0x1ea90d)});}}),[_0x5f2e0e[_0x1b1ad1(0xd9)],_0x3021b1,_0x11ebab]),_0x373df2=(0x0,h[_0x1b1ad1(0x2c1)])(()=>(0x0,n[_0x1b1ad1(0x2ba)])(n[_0x1b1ad1(0x1f2)][_0x1b1ad1(0x48a)](_0x1fbe45=>({..._0x1fbe45,'label':_0xf95458['t'](be(_0x1fbe45[_0x1b1ad1(0x407)]))}))),[_0xf95458]);return(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x428)],{'chartUIService':_0x59b0f0,'hostAdapter':_0x3c7996,'children':(0x0,g[_0x1b1ad1(0x38d)])(_0x1b1ad1(0x460),{'className':_0x1b1ad1(0x2ff),'children':[(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x22f)],{'ariaLabel':_0xf95458['t'](_0x1b1ad1(0x14f)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xf95458['t'](_0x1b1ad1(0x3ef)),'panelId':'base-pivot-chart-setup','value':n[_0x1b1ad1(0x487)][_0x1b1ad1(0x1d6)]},{'label':_0xf95458['t'](_0x1b1ad1(0x2ca)),'panelId':_0x1b1ad1(0x4bf),'value':n[_0x1b1ad1(0x487)][_0x1b1ad1(0x470)]}],'value':_0x483fb3,'onChange':_0x3d4348}),_0x483fb3===n[_0x1b1ad1(0x487)]['Data']?(0x0,g[_0x1b1ad1(0x23f)])(n['ChartEditPanel'],{'id':_0x1b1ad1(0x3c3),'label':_0xf95458['t'](_0x1b1ad1(0x3ef)),'children':(0x0,g[_0x1b1ad1(0x38d)])(_0x1b1ad1(0x460),{'className':_0x1b1ad1(0x2ae),'children':[(0x0,g['jsx'])(n['ChartTypeField'],{'options':_0x373df2}),(0x0,g['jsx'])(n['ChartTypeSpecificSetupSection'],{}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x26f)],{}),(0x0,g[_0x1b1ad1(0x23f)])(_e,{}),(0x0,g[_0x1b1ad1(0x23f)])(n['ChartStackField'],{}),(0x0,g[_0x1b1ad1(0x38d)])('div',{'children':[(0x0,g[_0x1b1ad1(0x23f)])(n['ChartEditBlockTitle'],{'title':_0xf95458['t'](_0x1b1ad1(0x140))}),(0x0,g[_0x1b1ad1(0x23f)])(f[_0x1b1ad1(0x104)],{'disabled':!0x0,'value':_0x5e2d02})]}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x46e)],{'orientationControl':(0x0,g[_0x1b1ad1(0x23f)])(f['Button'],{'size':_0x1b1ad1(0x301),'onClick':()=>_0x3021b1({'chart':{..._0x5f2e0e[_0x1b1ad1(0xd9)],'orient':_0x5f2e0e[_0x1b1ad1(0xd9)][_0x1b1ad1(0x3a2)]===_0x1b1ad1(0x15e)?'column':_0x1b1ad1(0x15e)}}),'children':_0xf95458['t'](_0x1b1ad1(0x4eb))})}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x208)],{}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x24e)],{'defaultValues':K['waterfall']}),(0x0,g['jsxs'])(_0x1b1ad1(0x460),{'children':[(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x2a1)],{'title':_0xf95458['t'](_0x1b1ad1(0x383))}),(0x0,g[_0x1b1ad1(0x23f)])(G,{'value':_0x5f2e0e[_0x1b1ad1(0x10e)],'options':[{'value':_0x1b1ad1(0x23b),'label':_0xf95458['t'](_0x1b1ad1(0x270))},{'value':'chart','label':_0xf95458['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1b1ad1(0x4da),'label':_0xf95458['t'](_0x1b1ad1(0x3c9))}],'onChange':_0x40212f=>{const _0x516dd0=_0x1b1ad1;(_0x40212f===_0x516dd0(0x23b)||_0x40212f===_0x516dd0(0xd9)||_0x40212f===_0x516dd0(0x4da))&&_0x3021b1({'displayMode':_0x40212f});}})]})]})}):(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x1c5)],{'id':_0x1b1ad1(0x4bf),'label':_0xf95458['t']('bases-dashboard-ui.chart.common.customize'),'children':(0x0,g[_0x1b1ad1(0x23f)])(ve,{})})]})});}function ge(_0x4a0c0f,_0x1b746d){const _0x12d253=_0x30b590;return{..._0x4a0c0f,'type':_0x1b746d[_0x12d253(0x1ef)]??_0x4a0c0f[_0x12d253(0x11c)],'style':_0x1b746d[_0x12d253(0x130)]??_0x4a0c0f[_0x12d253(0x130)],'context':_0x1b746d[_0x12d253(0x316)]??_0x4a0c0f[_0x12d253(0x316)],'dataAggregation':_0x1b746d['dataAggregation']??_0x4a0c0f[_0x12d253(0x2d2)]};}function _e(){const _0xabd77a=_0x30b590;let _0x499553=(0x0,n[_0xabd77a(0x34c)])();return(0x0,g[_0xabd77a(0x23f)])(n[_0xabd77a(0x128)],{'visible':me['every'](_0x509094=>!_['chartBitsUtils'][_0xabd77a(0xf3)](_0x499553,_0x509094))});}function q(_0x215772){const _0x3f9618=_0x30b590;return(0x0,g[_0x3f9618(0x38d)])(n[_0x3f9618(0x271)],{'id':_0x215772['id'],'children':[(0x0,g[_0x3f9618(0x23f)])(n['ChartSectionAccordionTrigger'],{'children':_0x215772[_0x3f9618(0x1c2)]}),(0x0,g[_0x3f9618(0x23f)])(n[_0x3f9618(0x359)],{'children':_0x215772[_0x3f9618(0x1aa)]})]});}function ve(){const _0x3478a8=_0x30b590;let _0x541697=(0x0,m[_0x3478a8(0x155)])(a[_0x3478a8(0x3ea)]),_0x1f8c86=(0x0,n['useChartEditorChartType'])(),_0x5da0d4=(0x0,n['useChartEditorHasRightAxis'])(),[_0x18f118,_0x4b3c0e]=(0x0,h[_0x3478a8(0x40a)])(null),_0x537436=_['chartBitsUtils'][_0x3478a8(0xf3)](_0x1f8c86,_['ChartTypeBits'][_0x3478a8(0x484)]),_0x13e61c=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x14c)],_0x385499=_0x1f8c86===_[_0x3478a8(0x1f6)]['WordCloud'],_0x37c829=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x328)],_0xd3e1d9=_[_0x3478a8(0x31a)][_0x3478a8(0xf3)](_0x1f8c86,_[_0x3478a8(0x1f6)][_0x3478a8(0xec)]),_0x39efa0=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x4a6)],_0x22778e=_0x1f8c86===_[_0x3478a8(0x1f6)]['Waterfall'],_0x3a0c18=_0x1f8c86===_[_0x3478a8(0x1f6)][_0x3478a8(0x2c9)],_0x3e206d=_0x1f8c86===_[_0x3478a8(0x1f6)][_0x3478a8(0x28a)],_0x4616bc=(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n[_0x3478a8(0x420)][_0x3478a8(0x1de)])&&!_0xd3e1d9&&!_0x3a0c18,_0x1f3082=ye(_0x1f8c86,_0x541697);return(0x0,g[_0x3478a8(0x38d)])(n['ChartSectionAccordion'],{'value':_0x18f118,'onChange':_0x4b3c0e,'children':[(0x0,g['jsx'])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x210)],'label':_0x541697['t'](_0x3478a8(0x1e2)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1ff)],{'defaultValues':K[_0x3478a8(0x130)]})}),(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x36d)],'label':_0x541697['t'](_0x3478a8(0x34f)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x3f3)],{'commitMode':_0x3478a8(0x165),'defaultValues':K[_0x3478a8(0x32f)]})}),(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1b1)],{'section':_0x3478a8(0x1b4)}),_0x4616bc&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x4fd)],'label':_0x541697['t'](_0x3478a8(0x1f5)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x432)],{'defaultValues':K[_0x3478a8(0x392)],'NumberFormatField':n[_0x3478a8(0x102)]})}),_0x22778e&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x496)],'label':_0x541697['t'](_0x3478a8(0x341)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x367)],{'defaultValues':K['waterfallStyle'],'getDefaultBucketName':({seriesName:_0xe5acbc,target:_0x53e8d2})=>_0x53e8d2===_['ChartWaterfallStyleTarget'][_0x3478a8(0x124)]?_0x541697['t'](_0x3478a8(0x1ac)):_0xe5acbc?_0xe5acbc+'-('+_0x541697['t']('bases-dashboard-ui.chart.'+(_0x53e8d2===_[_0x3478a8(0x4f8)][_0x3478a8(0x4e2)]?'waterfall.positive':_0x3478a8(0x24a)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x3a0c18&&(0x0,g['jsxs'])(g['Fragment'],{'children':[(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['ParetoBarSeries'],'label':_0x541697['t'](_0x3478a8(0x1cb)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1fa)],{'defaultValues':K[_0x3478a8(0x10a)],'NumberFormatField':n[_0x3478a8(0x102)],'showDataPointEditor':!0x0,'target':_0x3478a8(0x2b3)})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x283)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1fa)],{'defaultValues':K[_0x3478a8(0x10a)],'NumberFormatField':n[_0x3478a8(0x102)],'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x537436&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x4c2)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g['jsx'])(n[_0x3478a8(0xfe)],{'defaultValues':K[_0x3478a8(0x308)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x385499&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x300)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0xde)],{'defaultValues':K[_0x3478a8(0x4dd)]})}),_0x13e61c&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x14c)],'label':_0x541697['t'](_0x3478a8(0x4ca)),'children':(0x0,g[_0x3478a8(0x23f)])(n['ChartRadarStyleSection'],{'defaultValues':K[_0x3478a8(0x436)]})}),_0x37c829&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Funnel'],'label':_0x541697['t'](_0x3478a8(0x2d5)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x277)],{'defaultValues':K[_0x3478a8(0x376)],'gapControl':_0x3478a8(0x2d4)})}),_0x3e206d&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Heatmap'],'label':_0x541697['t'](_0x3478a8(0x288)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1d0)],{'defaultValues':K[_0x3478a8(0x430)]})}),_0x39efa0&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Relation'],'label':_0x541697['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x282)],{'defaultValues':K['relation']})}),(0x0,n[_0x3478a8(0x2cf)])(_0x1f8c86)&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0xef)],'label':_0x541697['t'](_[_0x3478a8(0x31a)][_0x3478a8(0xf3)](_0x1f8c86,_[_0x3478a8(0x1f6)]['Area'])?_0x3478a8(0x391):_0x3478a8(0x384)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x4f7)],{'defaultValues':K[_0x3478a8(0x365)],'lineStyleControl':_0x3478a8(0x4ea)})}),(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n[_0x3478a8(0x420)]['Legend'])&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x4a0)],'label':_0x541697['t'](_0x3478a8(0x3c4)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x1c8)],{'defaultValues':K['legend']})}),(0x0,n['chartTypeSupportsCapability'])(_0x1f8c86,n[_0x3478a8(0x420)][_0x3478a8(0x4b4)])&&(0x0,g['jsxs'])(g[_0x3478a8(0x226)],{'children':[(0x0,g['jsx'])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0xf1)],'label':_0x541697['t'](_0x3478a8(0x12c)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x21e)],{'axis':'x','defaultValues':K[_0x3478a8(0x36b)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x466)],'label':_0x541697['t'](_0x3478a8(0x3b7)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x21e)],{'axis':'y','defaultValues':K[_0x3478a8(0x36b)],'NumberFormatField':n[_0x3478a8(0x102)]})}),(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1b1)],{'section':'depthAxis'}),_0x5da0d4&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['RightVerticalAxis'],'label':_0x541697['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':(0x0,g['jsx'])(n[_0x3478a8(0x21e)],{'axis':_0x3478a8(0x205),'defaultValues':K['axis'],'NumberFormatField':n[_0x3478a8(0x102)]})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x386)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':(0x0,g[_0x3478a8(0x23f)])(n['ChartGridlinesAndTicksSection'],{'defaultValues':K['axis']})})]}),(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n['ChartEditorCapability']['IndicatorLine'])&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['IndicatorLine'],'label':_0x541697['t'](_0x3478a8(0x2b5)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x3b2)],{'defaultValues':K[_0x3478a8(0x41a)]})}),(0x0,_[_0x3478a8(0x43a)])(_0x1f8c86)&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x213)],'label':_0x541697['t'](_0x3478a8(0x3fe)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x40e)],{'defaultValues':K[_0x3478a8(0x37e)]})}),_0x1f3082&&(0x0,g['jsx'])(q,{'id':_0x1f3082['id'],'label':_0x1f3082[_0x3478a8(0x1c2)],'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x2c2)],{})})]});}function ye(_0x217252,_0x27eeed){const _0x48ae38=_0x30b590;let _0x2effec={[_[_0x48ae38(0x1f6)][_0x48ae38(0x42b)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x42b)],'localeKey':_0x48ae38(0x4c4)},[_['ChartTypeBits'][_0x48ae38(0x29f)]]:{'id':n['ChartEditPanelSection'][_0x48ae38(0x29f)],'localeKey':_0x48ae38(0x437)},[_['ChartTypeBits'][_0x48ae38(0x421)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x421)],'localeKey':_0x48ae38(0x168)},[_['ChartTypeBits'][_0x48ae38(0x2b0)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x2b0)],'localeKey':_0x48ae38(0x16f)},[_[_0x48ae38(0x1f6)]['Gauge']]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x358)],'localeKey':_0x48ae38(0x257)},[_[_0x48ae38(0x1f6)]['Chord']]:{'id':n['ChartEditPanelSection'][_0x48ae38(0xd5)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x217252];return _0x2effec?{'id':_0x2effec['id'],'label':_0x27eeed['t'](_0x2effec['localeKey'])}:null;}function be(_0x3034e4){const _0x4d7de2=_0x30b590;return _0x4d7de2(0x2b8)+_0x3034e4;}function xe({onChange:_0x1c4fef,onEditData:_0x511f85,runtime:_0x33fc89,sourceChart:_0x3c9a5d,sourceName:_0x51a303,widget:_0x1441cc}){const _0x2f8026=_0x30b590;let _0x55515f=(0x0,m['useDependency'])(W),_0x21adf7=(0x0,m[_0x2f8026(0x155)])(a[_0x2f8026(0x3ea)]),[_0x2a58c9,_0x7b7859]=(0x0,h[_0x2f8026(0x40a)])(n['ChartEditPanelTab'][_0x2f8026(0x1d6)]),_0x4f491d=_0x1441cc[_0x2f8026(0xd9)]??_0x3c9a5d,_0x58a438=(0x0,h[_0x2f8026(0x2c1)])(()=>new n['ChartHostAdapter'](_0x33fc89[_0x2f8026(0x21c)],{'commit':_0x2ef6db=>{const _0x19840d=_0x2f8026;var _0x4ac4cb;let _0x12d970=_0x33fc89['model'],_0x52d834=(0x0,_[_0x19840d(0x18d)])(_0x2ef6db,{'series':(_0x4ac4cb=_0x12d970[_0x19840d(0x1ca)])==null?void 0x0:_0x4ac4cb['series'],'currentChartType':_0x12d970['chartType'],'currentStyle':_0x12d970[_0x19840d(0x130)],'currentContext':_0x12d970[_0x19840d(0x316)],'currentDataAggregation':_0x12d970[_0x19840d(0x2d2)]});_0x1c4fef({..._0x1441cc,'chart':ge(_0x4f491d,_0x52d834)})[_0x19840d(0x29c)](()=>void 0x0);}}),[_0x4f491d,_0x1c4fef,_0x33fc89,_0x1441cc]),_0x58fb6d=(0x0,h[_0x2f8026(0x2c1)])(()=>(0x0,n[_0x2f8026(0x2ba)])(n[_0x2f8026(0x1f2)]['map'](_0x782d72=>({..._0x782d72,'label':_0x21adf7['t'](Se(_0x782d72[_0x2f8026(0x407)]))}))),[_0x21adf7]);return(0x0,g['jsx'])(n[_0x2f8026(0x356)],{'chartUIService':_0x55515f,'hostAdapter':_0x58a438,'children':(0x0,g[_0x2f8026(0x38d)])('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x2f8026(0x23f)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x21adf7['t'](_0x2f8026(0x14f)),'className':_0x2f8026(0x22d),'items':[{'label':_0x21adf7['t'](_0x2f8026(0x3ef)),'panelId':'dashboard-chart-setup','value':n[_0x2f8026(0x487)]['Data']},{'label':_0x21adf7['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':n['ChartEditPanelTab']['Style']}],'value':_0x2a58c9,'onChange':_0x7b7859}),_0x2a58c9===n[_0x2f8026(0x487)][_0x2f8026(0x1d6)]?(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x1c5)],{'id':'dashboard-chart-setup','label':_0x21adf7['t'](_0x2f8026(0x3ef)),'children':(0x0,g[_0x2f8026(0x38d)])(_0x2f8026(0x460),{'className':_0x2f8026(0x2ae),'children':[(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x174)],{'options':_0x58fb6d}),(0x0,g['jsx'])(n[_0x2f8026(0x27a)],{}),(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x26f)],{}),(0x0,g[_0x2f8026(0x23f)])(_e,{}),(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x3cf)],{}),(0x0,g['jsxs'])(_0x2f8026(0x460),{'children':[(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x2a1)],{'title':_0x21adf7['t'](_0x2f8026(0x441))}),(0x0,g[_0x2f8026(0x23f)])(f['Input'],{'disabled':!0x0,'value':_0x51a303}),(0x0,g[_0x2f8026(0x23f)])(f[_0x2f8026(0x3da)],{'className':_0x2f8026(0x27c),'onClick':_0x511f85,'children':_0x21adf7['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):(0x0,g['jsx'])(n['ChartEditPanel'],{'id':_0x2f8026(0xd6),'label':_0x21adf7['t'](_0x2f8026(0x2ca)),'children':(0x0,g['jsx'])(ve,{})})]})});}function Se(_0xd4aa08){return'bases-dashboard-ui.chart.chartTypes.'+_0xd4aa08;}const Ce=[_0x30b590(0x2b4),'number','percent',_0x30b590(0x2c4),_0x30b590(0x268),_0x30b590(0xdb)];function we({base:_0x1daa74,onChange:_0x531761,onSelectBackgroundImage:_0x29c4ee,widget:_0x5ccd8c}){const _0xa0b1f6=_0x30b590;var _0x16b8dc;let _0x12577b=(0x0,m[_0xa0b1f6(0x155)])(a[_0xa0b1f6(0x3ea)]),_0x163ade=(0x0,m[_0xa0b1f6(0x155)])(a[_0xa0b1f6(0x46a)]),_0x2541e5=(0x0,m[_0xa0b1f6(0xe2)])(()=>_0x163ade[_0xa0b1f6(0x317)],_0x163ade['getCurrentTheme'](),!0x1,[_0x163ade]),_0x3e31f8=(0x0,m[_0xa0b1f6(0xe2)])(()=>_0x163ade[_0xa0b1f6(0x16c)],_0x163ade[_0xa0b1f6(0x246)],!0x1,[_0x163ade]),[_0x564fd6,_0x20caf5]=(0x0,h[_0xa0b1f6(0x40a)])(_0xa0b1f6(0x457)),[_0x1fb7b4,_0x34ece5]=(0x0,h[_0xa0b1f6(0x40a)])(!0x1),_0x24e944=k(_0x5ccd8c),_0x281d8f=_0x1daa74[_0xa0b1f6(0x38b)]()['tables'][_0x5ccd8c[_0xa0b1f6(0x3d3)]],_0x1e7a5b=_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x36f)]['find'](_0xc67790=>_0x281d8f[_0xa0b1f6(0x371)][_0xc67790]),_0x4e698a=_0x1e7a5b?_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x371)][_0x1e7a5b]:void 0x0,_0x1f257a=_0x281d8f&&_0x4e698a?(0x0,t[_0xa0b1f6(0xf9)])(_0x1daa74[_0xa0b1f6(0x38b)](),_0x281d8f,_0x4e698a)[_0xa0b1f6(0x48a)](_0x11209c=>({..._0x11209c,'current':!0x1})):[],_0x4e1d3f=((_0x16b8dc=_0x5ccd8c['shapeData']['formulaBinding'])==null?void 0x0:_0x16b8dc[_0xa0b1f6(0x3ac)])??'',_0x1cbde4=_0x188bb8=>_0x531761(A(_0x5ccd8c,_0x188bb8))[_0xa0b1f6(0x29c)](()=>void 0x0),_0x392e1d=_0x34a907=>_0x531761({..._0x5ccd8c,'description':_0x34a907})[_0xa0b1f6(0x29c)](()=>void 0x0);return(0x0,g[_0xa0b1f6(0x38d)])('div',{'data-dashboard-formula-inspector':!0x0,'className':_0xa0b1f6(0x134),'children':[(0x0,g['jsx'])(f[_0xa0b1f6(0x324)],{'className':_0xa0b1f6(0x3f5),'items':[{'value':'data','label':_0x12577b['t'](_0xa0b1f6(0x332))},{'value':'style','label':_0x12577b['t'](_0xa0b1f6(0x415))}],'value':_0x564fd6,'onChange':_0x20caf5}),(0x0,g[_0xa0b1f6(0x23f)])(_0xa0b1f6(0x460),{'className':_0xa0b1f6(0x39a),'children':_0x564fd6===_0xa0b1f6(0x457)?(0x0,g[_0xa0b1f6(0x38d)])('div',{'className':_0xa0b1f6(0x20b),'children':[(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x4fc)),'children':(0x0,g['jsx'])(f[_0xa0b1f6(0x104)],{'value':_0x5ccd8c['description']??_0x5ccd8c['title']??'','onChange':_0x392e1d,'onBlur':_0x4c52f7=>_0x392e1d(_0x4c52f7[_0xa0b1f6(0x12d)][_0xa0b1f6(0x351)])})}),(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x441)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x104)],{'disabled':!0x0,'value':(_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x451)])??_0x12577b['t'](_0xa0b1f6(0x4b1))})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x348)),'children':[(0x0,g['jsx'])(f['Input'],{'disabled':!0x0,'value':(0x0,t[_0xa0b1f6(0x4e7)])(_0x4e1d3f,_0x1f257a)}),(0x0,g[_0xa0b1f6(0x23f)])(f['Button'],{'className':_0xa0b1f6(0x27c),'onClick':()=>_0x34ece5(!0x0),'children':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):(0x0,g['jsxs'])('div',{'className':_0xa0b1f6(0x20b),'children':[(0x0,g[_0xa0b1f6(0x23f)])(n['ChartColorField'],{'emptyLabel':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x12577b['t'](_0xa0b1f6(0x199)),'pickerFallbackValue':_0x3e31f8?_0x2541e5[_0xa0b1f6(0x4bb)][0x384]:_0x2541e5['gray'][0x0],'resetLabel':_0x12577b['t'](_0xa0b1f6(0x27f)),'value':_0x24e944['backgroundColor']??null,'onChange':_0x2b36fb=>_0x1cbde4({'backgroundColor':_0x2b36fb??void 0x0})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x481)),'children':[(0x0,g[_0xa0b1f6(0x38d)])('div',{'className':'univer-flex\x20univer-gap-2','children':[(0x0,g[_0xa0b1f6(0x38d)])(f[_0xa0b1f6(0x3da)],{'className':'univer-flex-1','onClick':()=>{const _0x13bd18=_0xa0b1f6;_0x29c4ee()[_0x13bd18(0xeb)](_0x450d4a=>{const _0x3826d5=_0x13bd18;if(_0x450d4a){var _0x430257;return _0x1cbde4({'backgroundImage':{..._0x450d4a,'fit':((_0x430257=_0x24e944[_0x3826d5(0x142)])==null?void 0x0:_0x430257[_0x3826d5(0x2d7)])??'cover'}});}})[_0x13bd18(0x29c)](()=>void 0x0);},'children':[(0x0,g[_0xa0b1f6(0x23f)])(s['IncreaseIcon'],{}),_0x24e944[_0xa0b1f6(0x142)]?_0x12577b['t'](_0xa0b1f6(0xe6)):_0x12577b['t'](_0xa0b1f6(0x42c))]}),_0x24e944[_0xa0b1f6(0x142)]&&(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x3da)],{'aria-label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x1cbde4({'backgroundImage':void 0x0}),'children':(0x0,g['jsx'])(s[_0xa0b1f6(0x15d)],{})})]}),_0x24e944[_0xa0b1f6(0x142)]&&(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'className':_0xa0b1f6(0x4d4),'items':[{'value':_0xa0b1f6(0x225),'label':_0x12577b['t'](_0xa0b1f6(0x175))},{'value':_0xa0b1f6(0x3db),'label':_0x12577b['t'](_0xa0b1f6(0x37c))}],'value':_0x24e944[_0xa0b1f6(0x142)][_0xa0b1f6(0x2d7)],'onChange':_0x109681=>_0x1cbde4({'backgroundImage':_0x24e944[_0xa0b1f6(0x142)]?{..._0x24e944['backgroundImage'],'fit':_0x109681}:void 0x0})})]}),(0x0,g[_0xa0b1f6(0x23f)])(n[_0xa0b1f6(0x2ce)],{'emptyLabel':_0x12577b['t'](_0xa0b1f6(0x2a9)),'label':_0x12577b['t'](_0xa0b1f6(0x2a9)),'pickerFallbackValue':_0x3e31f8?_0x2541e5['gray'][0x32]:_0x2541e5[_0xa0b1f6(0x4bb)][0x3e8],'resetLabel':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x24e944[_0xa0b1f6(0x3de)]??null,'onChange':_0x4fbc7d=>_0x1cbde4({'textColor':_0x4fbc7d??void 0x0})}),(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'items':[{'value':_0xa0b1f6(0x362),'label':_0x12577b['t'](_0xa0b1f6(0x21a))},{'value':'center','label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0xa0b1f6(0x2f1),'label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x24e944[_0xa0b1f6(0x121)],'onChange':_0x438210=>_0x1cbde4({'alignment':_0x438210})})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0xe1)),'children':[(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'items':[{'value':_0xa0b1f6(0x337),'label':_0x12577b['t'](_0xa0b1f6(0x35d))},{'value':_0xa0b1f6(0x3f1),'label':_0x12577b['t'](_0xa0b1f6(0x1fe))}],'value':_0x24e944[_0xa0b1f6(0xfc)],'onChange':_0x388fa0=>_0x1cbde4({'fontSizeMode':_0x388fa0})}),_0x24e944[_0xa0b1f6(0xfc)]===_0xa0b1f6(0x3f1)&&(0x0,g['jsx'])(f[_0xa0b1f6(0x33a)],{'className':_0xa0b1f6(0x4d4),'min':0xc,'max':0x78,'value':_0x24e944['fontSize'],'onChange':_0x1a00aa=>_0x1cbde4({'fontSize':_0x1a00aa??0x28,'fontSizeMode':_0xa0b1f6(0x3f1)})})]}),(0x0,g['jsx'])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x240)),'children':(0x0,g[_0xa0b1f6(0x23f)])(G,{'value':_0x24e944['numberFormat'],'options':[{'value':_0xa0b1f6(0x2b4),'label':_0x12577b['t'](_0xa0b1f6(0x4d3))},{'value':_0xa0b1f6(0x493),'label':_0x12577b['t'](_0xa0b1f6(0x2d1))},{'value':_0xa0b1f6(0x47a),'label':_0x12577b['t'](_0xa0b1f6(0x151))},{'value':_0xa0b1f6(0x2c4),'label':_0x12577b['t'](_0xa0b1f6(0x182))},{'value':_0xa0b1f6(0x268),'label':_0x12577b['t'](_0xa0b1f6(0x2f4))},{'value':_0xa0b1f6(0xdb),'label':_0x12577b['t'](_0xa0b1f6(0x444))}],'onChange':_0x2de0b4=>{let _0x134d5a=Ce['find'](_0x944ea0=>_0x944ea0===_0x2de0b4);_0x134d5a&&_0x1cbde4({'numberFormat':_0x134d5a});}})}),_0x24e944[_0xa0b1f6(0x255)]===_0xa0b1f6(0x2c4)&&(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x1ae)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x104)],{'value':_0x24e944[_0xa0b1f6(0x2c4)],'onChange':_0x11d580=>_0x1cbde4({'currency':_0x11d580[_0xa0b1f6(0x34d)](0x0,0x3)[_0xa0b1f6(0x4c8)]()})})}),_0x24e944[_0xa0b1f6(0x255)]!==_0xa0b1f6(0x2b4)&&(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x1eb)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x33a)],{'min':0x0,'max':0x8,'value':_0x24e944['decimalPlaces'],'onChange':_0x5bf1f4=>_0x1cbde4({'decimalPlaces':_0x5bf1f4??0x0})})})]})}),_0x1fb7b4&&(0x0,g[_0xa0b1f6(0x23f)])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g['jsx'])(t[_0xa0b1f6(0x2fe)],{'tables':_0x1f257a,'formula':(0x0,t[_0xa0b1f6(0x4e7)])(_0x4e1d3f,_0x1f257a),'onCancel':()=>_0x34ece5(!0x1),'onSave':_0x44409a=>{const _0x45961d=_0xa0b1f6;let _0x5c668e=_0x5ccd8c[_0x45961d(0x34e)][_0x45961d(0x44d)]??{'formula':''};return _0x531761({..._0x5ccd8c,'shapeData':{..._0x5ccd8c['shapeData'],'formulaBinding':{..._0x5c668e,'formula':(0x0,t['normalizeEditorFormulaForConfig'])(_0x44409a,_0x1f257a)}}})[_0x45961d(0xeb)](()=>_0x34ece5(!0x1))[_0x45961d(0x29c)](()=>void 0x0);}})})]});}function J({children:_0x26b27f,label:_0x16ecd1}){const _0x5d4c20=_0x30b590;return(0x0,g[_0x5d4c20(0x38d)])('div',{'role':_0x5d4c20(0x3b1),'aria-label':_0x16ecd1,'className':_0x5d4c20(0x345),'children':[(0x0,g[_0x5d4c20(0x23f)])('span',{'children':_0x16ecd1}),_0x26b27f]});}function Te({disabled:_0x1b78f4,fields:_0x8e59bb,filter:_0x4ba482,onChange:_0x5a40a5}){const _0x81fd1d=_0x30b590;let _0x4df99d=(0x0,m[_0x81fd1d(0x155)])(m[_0x81fd1d(0x49f)])[_0x81fd1d(0x390)]??null,[_0x40a315,_0x5c9ecc]=(0x0,h[_0x81fd1d(0x40a)])(null),_0x29b285=(0x0,m[_0x81fd1d(0x155)])(a[_0x81fd1d(0x3ea)]),_0x3a98be=(_0x4ba482==null?void 0x0:_0x4ba482[_0x81fd1d(0x125)])??[];if(!_0x3a98be[_0x81fd1d(0xf8)])return(0x0,g[_0x81fd1d(0x38d)])('div',{'className':_0x81fd1d(0x429),'children':[(0x0,g[_0x81fd1d(0x23f)])(s[_0x81fd1d(0x319)],{'className':_0x81fd1d(0x190)}),(0x0,g[_0x81fd1d(0x23f)])(_0x81fd1d(0x405),{'className':_0x81fd1d(0xd7),'children':_0x29b285['t'](_0x81fd1d(0x2cc))})]});let _0x13c511=_0x40a315==null?void 0x0:_0x3a98be[_0x40a315],_0x1372d5=_0x8e59bb[_0x81fd1d(0x41e)](_0x1be4d8=>_0x1be4d8['id']===(_0x13c511==null?void 0x0:_0x13c511[_0x81fd1d(0x1fb)]));return(0x0,g[_0x81fd1d(0x38d)])(_0x81fd1d(0x460),{'className':_0x81fd1d(0x3bb),'children':[_0x3a98be[_0x81fd1d(0x48a)]((_0x4ae278,_0x3e314f)=>{const _0x4ad339=_0x81fd1d;var _0x572876;return(0x0,g['jsxs'])(f['Button'],{'disabled':_0x1b78f4,'onClick':()=>_0x5c9ecc(_0x3e314f),'children':[(0x0,g[_0x4ad339(0x23f)])(_0x4ad339(0x405),{'children':((_0x572876=_0x8e59bb['find'](_0x42b62e=>_0x42b62e['id']===_0x4ae278[_0x4ad339(0x1fb)]))==null?void 0x0:_0x572876[_0x4ad339(0x451)])??_0x4ae278[_0x4ad339(0x1fb)]}),(0x0,g['jsx'])('span',{'className':_0x4ad339(0x4b8),'children':String(_0x4ae278[_0x4ad339(0x47d)]??'')})]},_0x4ae278['fieldId']+'-'+_0x3e314f);}),_0x1372d5&&_0x13c511&&_0x40a315!=null&&_0x4df99d&&(0x0,v[_0x81fd1d(0x4f4)])((0x0,g[_0x81fd1d(0x23f)])(t[_0x81fd1d(0x1d8)],{'field':_0x1372d5,'value':_0x13c511[_0x81fd1d(0x47d)],'onClose':()=>_0x5c9ecc(null),'onSave':_0x3cbd7e=>{const _0xa52814=_0x81fd1d;_0x5a40a5({'conjunction':(_0x4ba482==null?void 0x0:_0x4ba482[_0xa52814(0x1d3)])??a['BaseFilterConjunction']['AND'],'conditions':_0x3a98be[_0xa52814(0x48a)]((_0x1f7986,_0x4937f7)=>_0x4937f7===_0x40a315?{..._0x1f7986,'operand':_0x3cbd7e}:_0x1f7986)}),_0x5c9ecc(null);}}),_0x4df99d)]});}function Ee({fields:_0x52a9b3,filter:_0x8b9810,onChange:_0x4703ce,onClear:_0x3c794f}){const _0x1d96fb=_0x30b590;let _0xd3d2ff=(0x0,m[_0x1d96fb(0x155)])(a['LocaleService']);return(0x0,g[_0x1d96fb(0x38d)])(_0x1d96fb(0x460),{'children':[(0x0,g[_0x1d96fb(0x23f)])(t['BaseMobileFilterPanel'],{'fields':_0x52a9b3,'value':_0x8b9810??{'conjunction':a[_0x1d96fb(0x2b2)]['AND'],'conditions':[]},'onChange':_0x4703ce}),(0x0,g[_0x1d96fb(0x23f)])(f['Button'],{'onClick':_0x3c794f,'children':_0xd3d2ff['t'](_0x1d96fb(0x27f))})]});}function De({base:_0x5c785f,chartRuntime:_0x45cf74,onChange:_0xf1484e,onClose:_0x57c61c,onSelectBackgroundImage:_0x5d6ce5,onSelectImage:_0x105451,unitId:_0x5687d7,widget:_0x213d52}){const _0x3b47a7=_0x30b590;let _0x41af3e=(0x0,m[_0x3b47a7(0x155)])(a['ICommandService']),_0x13617d=(0x0,m[_0x3b47a7(0x155)])(a[_0x3b47a7(0x3ea)]),_0x13c47a=_0x5c785f['getSnapshot'](),_0x24eac1=_0x3b47a7(0x3d3)in _0x213d52?_0x13c47a['tables'][_0x213d52[_0x3b47a7(0x3d3)]]:void 0x0,_0x370fae=_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x3c7)]?_0x24eac1==null?void 0x0:_0x24eac1[_0x3b47a7(0x371)][_0x213d52[_0x3b47a7(0x247)]]:void 0x0,_0x55fcb2=_0x13617d['t'](Pe(_0x213d52)),_0xaf80e0=(0x0,g[_0x3b47a7(0x38d)])(_0x3b47a7(0x4c9),{'data-dashboard-inspector':!0x0,'className':_0x3b47a7(0x47f),'children':[_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x3c7)]&&(Ne(_0x370fae)&&_0x45cf74?(0x0,g[_0x3b47a7(0x23f)])(xe,{'runtime':_0x45cf74,'sourceChart':_0x370fae[_0x3b47a7(0x1ca)][_0x3b47a7(0xd9)],'sourceName':((_0x24eac1==null?void 0x0:_0x24eac1[_0x3b47a7(0x451)])??'')+_0x3b47a7(0x211)+_0x370fae[_0x3b47a7(0x451)],'widget':_0x213d52,'onChange':_0xf1484e,'onEditData':()=>{const _0x89f2f0=_0x3b47a7;_0x41af3e[_0x89f2f0(0x387)](t[_0x89f2f0(0x309)]['id'],{'unitId':_0x5687d7,'tableId':_0x213d52[_0x89f2f0(0x3d3)],'viewId':_0x213d52[_0x89f2f0(0x247)]})[_0x89f2f0(0x29c)](()=>void 0x0);}}):(0x0,g[_0x3b47a7(0x23f)])(je,{'message':Ne(_0x370fae)?_0x13617d['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x13617d['t'](_0x3b47a7(0x4b1))})),_0x213d52['type']===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x31c)]&&(0x0,g['jsx'])(we,{'base':_0x5c785f,'widget':_0x213d52,'onChange':_0xf1484e,'onSelectBackgroundImage':_0x5d6ce5}),_0x213d52['type']===e['BaseDashboardWidgetType'][_0x3b47a7(0x326)]&&(0x0,g[_0x3b47a7(0x23f)])(ke,{'base':_0x5c785f,'onChange':_0xf1484e,'widget':_0x213d52}),_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x115)]&&(0x0,g[_0x3b47a7(0x23f)])(Ae,{'onChange':_0xf1484e,'widget':_0x213d52}),_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x108)]&&(0x0,g[_0x3b47a7(0x23f)])(Oe,{'onChange':_0xf1484e,'onSelectImage':_0x105451,'widget':_0x213d52})]});return(0x0,g[_0x3b47a7(0x23f)])(t[_0x3b47a7(0x105)],{'title':_0x55fcb2,'onClose':_0x57c61c,'children':_0xaf80e0});}function Oe({onChange:_0x130885,onSelectImage:_0x381282,widget:_0x2bc30b}){const _0x52512c=_0x30b590;let _0x84b0e0=(0x0,m[_0x52512c(0x155)])(a[_0x52512c(0x3ea)]);return(0x0,g['jsxs'])(_0x52512c(0x460),{'className':_0x52512c(0x221),'children':[(0x0,g['jsxs'])(f[_0x52512c(0x3da)],{'className':_0x52512c(0x112),'onClick':()=>_0x381282()[_0x52512c(0xeb)](_0x1da39b=>_0x1da39b&&_0x130885({..._0x2bc30b,'source':_0x1da39b[_0x52512c(0x23a)],'sourceType':_0x1da39b[_0x52512c(0x109)],'alt':_0x1da39b['name']}))[_0x52512c(0x29c)](()=>void 0x0),'children':[(0x0,g[_0x52512c(0x23f)])(s[_0x52512c(0x335)],{}),_0x84b0e0['t'](_0x52512c(0xe6))]}),(0x0,g['jsxs'])(_0x52512c(0x1c2),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x52512c(0x23f)])(_0x52512c(0x405),{'children':_0x84b0e0['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),(0x0,g[_0x52512c(0x23f)])(f['Segmented'],{'items':[{'value':_0x52512c(0x225),'label':_0x84b0e0['t'](_0x52512c(0x175))},{'value':_0x52512c(0x336),'label':_0x84b0e0['t'](_0x52512c(0x195))},{'value':_0x52512c(0x106),'label':_0x84b0e0['t'](_0x52512c(0x171))}],'value':_0x2bc30b[_0x52512c(0x10e)]??'cover','onChange':_0x41b5a9=>_0x130885({..._0x2bc30b,'displayMode':_0x41b5a9})[_0x52512c(0x29c)](()=>void 0x0)})]})]});}function ke({base:_0x14a343,onChange:_0x1140f1,widget:_0x3964a8}){const _0x2ccf7c=_0x30b590;let _0x596d79=_0x14a343['getSnapshot']()['tables'][_0x3964a8[_0x2ccf7c(0x3d3)]],_0x19b2f0=_0x596d79==null?void 0x0:_0x596d79[_0x2ccf7c(0x36f)]['find'](_0x354499=>_0x596d79[_0x2ccf7c(0x371)][_0x354499]),_0x56f2ca=_0x19b2f0?_0x596d79==null?void 0x0:_0x596d79[_0x2ccf7c(0x371)][_0x19b2f0]:void 0x0,_0x39b4cd=_0x596d79&&_0x56f2ca?(0x0,t[_0x2ccf7c(0x117)])(_0x596d79,_0x56f2ca):[];return(0x0,g[_0x2ccf7c(0x23f)])(Ee,{'fields':_0x39b4cd,'filter':_0x3964a8['filter'],'onChange':_0x426b71=>_0x1140f1({..._0x3964a8,'filter':_0x426b71})[_0x2ccf7c(0x29c)](()=>void 0x0),'onClear':()=>_0x1140f1({..._0x3964a8,'filter':null})['catch'](()=>void 0x0)});}function Ae({onChange:_0x417f71,widget:_0x34df56}){const _0x2a997e=_0x30b590;let _0x301c3a=(0x0,m[_0x2a997e(0x155)])(a[_0x2a997e(0x3ea)]),_0x371023=(0x0,m[_0x2a997e(0x155)])(a['ThemeService']),_0x2796dd=(0x0,m[_0x2a997e(0xe2)])(()=>_0x371023[_0x2a997e(0x317)],_0x371023[_0x2a997e(0x14e)](),!0x1,[_0x371023]),_0x1f6939=oe(_0x34df56),_0x8a934=_0xaf8631=>_0x417f71({..._0x34df56,'appearance':{..._0x1f6939,..._0xaf8631}})[_0x2a997e(0x29c)](()=>void 0x0);return(0x0,g[_0x2a997e(0x38d)])(_0x2a997e(0x460),{'className':_0x2a997e(0x440),'children':[(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x2b6)],{'className':_0x2a997e(0xe8),'defaultValue':U(_0x34df56[_0x2a997e(0x45d)]),'rows':0x8,'onBlur':_0x153392=>_0x417f71({..._0x34df56,'document':se(_0x34df56[_0x2a997e(0x45d)],_0x153392[_0x2a997e(0x12d)]['value'])})[_0x2a997e(0x29c)](()=>void 0x0)}),(0x0,g[_0x2a997e(0x23f)])(n[_0x2a997e(0x2ce)],{'emptyLabel':_0x301c3a['t'](_0x2a997e(0x199)),'label':_0x301c3a['t'](_0x2a997e(0x199)),'pickerFallbackValue':_0x2796dd['gray'][0x0],'resetLabel':_0x301c3a['t'](_0x2a997e(0x27f)),'value':_0x1f6939[_0x2a997e(0xe5)]??null,'onChange':_0x27796c=>_0x8a934({'backgroundColor':_0x27796c??void 0x0})}),(0x0,g[_0x2a997e(0x23f)])(n[_0x2a997e(0x2ce)],{'emptyLabel':_0x301c3a['t'](_0x2a997e(0x2a9)),'label':_0x301c3a['t'](_0x2a997e(0x2a9)),'pickerFallbackValue':_0x2796dd[_0x2a997e(0x4bb)][0x3e8],'resetLabel':_0x301c3a['t'](_0x2a997e(0x27f)),'value':_0x1f6939[_0x2a997e(0x3de)]??null,'onChange':_0x809104=>_0x8a934({'textColor':_0x809104??void 0x0})}),(0x0,g[_0x2a997e(0x23f)])(Me,{'label':_0x301c3a['t'](_0x2a997e(0x23c)),'children':(0x0,g[_0x2a997e(0x23f)])(f['Segmented'],{'items':[{'value':'left','label':_0x301c3a['t'](_0x2a997e(0x21a))},{'value':_0x2a997e(0x334),'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x2a997e(0x2f1),'label':_0x301c3a['t'](_0x2a997e(0x422))}],'value':_0x1f6939['alignment'],'onChange':_0x2a891f=>_0x8a934({'alignment':_0x2a891f})})}),(0x0,g[_0x2a997e(0x38d)])(Me,{'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x324)],{'items':[{'value':_0x2a997e(0x337),'label':_0x301c3a['t'](_0x2a997e(0x35d))},{'value':_0x2a997e(0x3f1),'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x1f6939['fontSizeMode'],'onChange':_0x58b0de=>_0x8a934({'fontSizeMode':_0x58b0de})}),_0x1f6939[_0x2a997e(0xfc)]===_0x2a997e(0x3f1)&&(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x33a)],{'className':_0x2a997e(0x4d4),'min':0xa,'max':0x78,'value':_0x1f6939[_0x2a997e(0x2c0)],'onChange':_0x5df28f=>_0x8a934({'fontSize':_0x5df28f??0x12,'fontSizeMode':_0x2a997e(0x3f1)})})]})]});}function je({message:_0x301fd6}){const _0x169102=_0x30b590;return(0x0,g[_0x169102(0x23f)])('div',{'className':_0x169102(0x12e),'children':_0x301fd6});}function Me({children:_0x7e7c09,label:_0xb176bc}){const _0x309808=_0x30b590;return(0x0,g['jsxs'])('div',{'role':_0x309808(0x3b1),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g['jsx'])('span',{'children':_0xb176bc}),_0x7e7c09]});}function Ne(_0x4db607){const _0x466384=_0x30b590;return(_0x4db607==null?void 0x0:_0x4db607[_0x466384(0x11c)])===a[_0x466384(0x4a1)][_0x466384(0x2d0)]&&typeof _0x4db607[_0x466384(0x1ca)]==_0x466384(0x368)&&_0x4db607[_0x466384(0x1ca)]!==null&&_0x466384(0x258)in _0x4db607[_0x466384(0x1ca)]&&'chart'in _0x4db607[_0x466384(0x1ca)];}function Pe(_0x3b30f1){const _0x2a8a03=_0x30b590;switch(_0x3b30f1[_0x2a8a03(0x11c)]){case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x3c7)]:return _0x2a8a03(0x4f5);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x326)]:return'bases-dashboard-ui.dashboard.tableFilter';case e['BaseDashboardWidgetType']['Text']:return _0x2a8a03(0x3b6);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x108)]:return _0x2a8a03(0x4b9);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x31c)]:return _0x2a8a03(0x2bd);}}function Fe({onDelete:_0x4ef602,onEdit:_0x5a1dac,onMoveUp:_0x2a8c17,onMoveDown:_0x20836b}){const _0x55808c=_0x30b590;let [_0x4383ad,_0x1bb5c9]=(0x0,h[_0x55808c(0x40a)])(!0x1),_0x455731=(0x0,m['useDependency'])(a[_0x55808c(0x3ea)]),_0x44cee7=_0x455731['t'](_0x55808c(0x2d9)),_0x2d5606=_0x455731['t'](_0x55808c(0x25b)),_0x2b1477=_0x455731['t'](_0x55808c(0x15b)),_0x4a163d=[{'type':'item','children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0xf7)],{'className':'univer-size-4','aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])('span',{'children':_0x44cee7})]}),'onSelect':_0x5a1dac},..._0x2a8c17?[{'type':_0x55808c(0x4b7),'children':(0x0,g['jsxs'])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0x4ab)],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g['jsx'])(_0x55808c(0x405),{'children':_0x455731['t'](_0x55808c(0x203))})]}),'onSelect':_0x2a8c17}]:[],..._0x20836b?[{'type':_0x55808c(0x4b7),'children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s['ArrowDownIcon'],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])(_0x55808c(0x405),{'children':_0x455731['t'](_0x55808c(0x4a5))})]}),'onSelect':_0x20836b}]:[],{'type':_0x55808c(0xe3)},{'type':_0x55808c(0x4b7),'variant':_0x55808c(0x4a2),'children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0x15d)],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])(_0x55808c(0x405),{'children':_0x2d5606})]}),'onSelect':_0x4ef602}];return(0x0,g[_0x55808c(0x23f)])(f['DropdownMenu'],{'open':_0x4383ad,'onOpenChange':_0x1bb5c9,'align':_0x55808c(0x19f),'sideOffset':0x4,'items':_0x4a163d[_0x55808c(0x48a)](_0x50769a=>({..._0x50769a,'className':_0x50769a['type']===_0x55808c(0x4b7)?_0x55808c(0x3e8):void 0x0})),'children':(0x0,g['jsx'])(f[_0x55808c(0x3da)],{'type':_0x55808c(0x1e9),'size':_0x55808c(0x301),'variant':_0x55808c(0x455),'onPointerDown':_0x4a53a1=>_0x4a53a1[_0x55808c(0x222)](),'onClick':()=>_0x1bb5c9(_0x3a6817=>!_0x3a6817),'title':_0x2b1477,'aria-label':_0x2b1477,'className':_0x55808c(0x44a),'children':(0x0,g[_0x55808c(0x23f)])(s['MoreHorizontalIcon'],{'className':'univer-size-4','aria-hidden':_0x55808c(0x445)})})});}function Ie({dashboardId:_0xf3541b,presentation:_0x3b5788=!0x1,unitId:_0x324b20}){const _0x42113a=_0x30b590;let _0x210b07=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x495)]),_0x6346e7=(0x0,m[_0x42113a(0x155)])(a['ObjectPermissionService']);(0x0,m[_0x42113a(0xe2)])(_0x6346e7[_0x42113a(0x1f7)],0x0);let _0x49c893=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x279)]),_0x198054=(0x0,m['useDependency'])(u[_0x42113a(0x45e)]),_0x2cae03=(0x0,m['useDependency'])(a['IImageIoService']),_0x15e2ed=(0x0,m['useDependency'])(a['IUniverInstanceService']),_0x3700ab=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x3ea)]),_0x26fff3=(0x0,m['useDependency'])(e['BaseDashboardResourceService']),_0x415d9a=(0x0,m['useDependency'])(a['IUndoRedoService']),[_0x280aca,_0x36adcb]=(0x0,h['useState'])(!0x1),[_0x20f97a,_0x598ed0]=(0x0,h['useState'])(),[_0xc40e04,_0x2ee31f]=(0x0,h[_0x42113a(0x40a)])(!0x1),[_0x401eed,_0x4e6fde]=(0x0,h[_0x42113a(0x40a)])(()=>new Map()),_0x58cedd=(0x0,h[_0x42113a(0x4c3)])((_0x340a62,_0x4dd5ca)=>{_0x4e6fde(_0x31b059=>{const _0x1c2557=_0x1e15;let _0x4cc419=new Map(_0x31b059);return _0x4dd5ca?_0x4cc419[_0x1c2557(0x490)](_0x340a62,_0x4dd5ca):_0x4cc419[_0x1c2557(0x370)](_0x340a62),_0x4cc419;});},[]),_0x828c48=(0x0,m['useObservable'])(()=>_0x26fff3[_0x42113a(0x435)][_0x42113a(0x26c)]((0x0,c[_0x42113a(0x48a)])(()=>_0x26fff3[_0x42113a(0x499)](_0x324b20,_0xf3541b))),_0x26fff3[_0x42113a(0x499)](_0x324b20,_0xf3541b),!0x1,[_0xf3541b,_0x26fff3,_0x324b20]),_0x1a184f=_0x15e2ed[_0x42113a(0x3e7)](_0x324b20,a[_0x42113a(0x3d5)][_0x42113a(0x1a2)]),_0xa61fbf=(0x0,m[_0x42113a(0xe2)])(()=>_0x415d9a[_0x42113a(0x30c)],{'undos':0x0,'redos':0x0},!0x1,[_0x415d9a]),_0x2ffe1e=w(_0x324b20,_0xf3541b);if((0x0,h[_0x42113a(0x3dd)])(()=>{const _0x45e783=_0x42113a;_0x15e2ed['setCurrentUnitForType'](_0x324b20),_0x15e2ed[_0x45e783(0x10f)](_0x324b20);},[_0x15e2ed,_0x324b20]),!_0x828c48||!_0x1a184f)return null;let _0x434a3f={'unitId':_0x324b20,'objectId':(0x0,l[_0x42113a(0x148)])(_0xf3541b),'objectType':p[_0x42113a(0x29b)][_0x42113a(0x249)]},_0x337cda=(_0x5a9e56,_0x24dbf3)=>{const _0x4bc5b9=_0x42113a;let _0x2d4eac=[..._0x828c48[_0x4bc5b9(0x4c7)]],_0xd63833=_0x2d4eac[_0x4bc5b9(0x416)](_0x5a9e56),_0x3e3b4b=_0xd63833+_0x24dbf3;if(!(_0xd63833<0x0||_0x3e3b4b<0x0||_0x3e3b4b>=_0x2d4eac[_0x4bc5b9(0xf8)]))return[_0x2d4eac[_0xd63833],_0x2d4eac[_0x3e3b4b]]=[_0x2d4eac[_0x3e3b4b],_0x2d4eac[_0xd63833]],_0x49c893[_0x4bc5b9(0x387)](e[_0x4bc5b9(0x180)]['id'],{'unitId':_0x324b20,'dashboard':{..._0x828c48,'widgetOrder':_0x2d4eac}});},_0x1f27cb=_0x5639af=>_0x49c893['executeCommand'](e[_0x42113a(0x37d)]['id'],{'unitId':_0x324b20,'dashboardId':_0xf3541b,'widget':_0x5639af})['catch'](()=>void 0x0),_0x320651=(_0x2b3c19,_0x1b030f,_0x4bf11b)=>{const _0x61a087=_0x42113a;let _0x177477=Math[_0x61a087(0x26a)](0x0,..._0x828c48[_0x61a087(0x4c7)][_0x61a087(0x4e3)](_0xab80e4=>{const _0x38611c=_0x61a087;var _0x4bbc9a;let _0x6dc157=(_0x4bbc9a=_0x828c48['widgets'][_0xab80e4])==null?void 0x0:_0x4bbc9a['layout'];return _0x6dc157?[_0x6dc157[_0x38611c(0x15e)]+_0x6dc157[_0x38611c(0x4aa)]]:[];})),_0x18d66c='dashboard-widget-'+(0x0,a[_0x61a087(0x3f8)])(0x8),_0x340c7a={'column':0x0,'row':_0x177477,'columnSpan':_0x1b030f,'rowSpan':_0x4bf11b};switch(_0x2b3c19[_0x61a087(0x11c)]){case e[_0x61a087(0x1e4)][_0x61a087(0x3c7)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x326)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x115)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x108)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x31c)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});}},_0x460d8d=_0x1a184f[_0x42113a(0x38b)](),_0x54a4e7=_0x460d8d[_0x42113a(0x473)][_0x42113a(0x4e3)](_0x20ecd6=>{const _0x25ab66=_0x42113a;let _0x58f30c=_0x460d8d['tables'][_0x20ecd6];if(!_0x58f30c)return[];let _0x33120d=_0x58f30c[_0x25ab66(0x36f)][_0x25ab66(0x4e3)](_0x28910c=>{const _0x2d80f4=_0x25ab66;let _0x57c4bc=_0x58f30c[_0x2d80f4(0x371)][_0x28910c];return We(_0x57c4bc)?[{'type':_0x2d80f4(0x4b7),'children':_0x57c4bc[_0x2d80f4(0x451)],'onSelect':()=>_0x320651({'type':e[_0x2d80f4(0x1e4)]['PivotChart'],'tableId':_0x20ecd6,'pivotViewId':_0x28910c,'chart':{..._0x57c4bc[_0x2d80f4(0x1ca)][_0x2d80f4(0xd9)]}},0x6,0xa)}]:[];});return[{'type':_0x25ab66(0x3e4),'children':_0x58f30c[_0x25ab66(0x451)],'options':[..._0x33120d,..._0x33120d[_0x25ab66(0xf8)]?[{'type':_0x25ab66(0xe3)}]:[],{'type':_0x25ab66(0x4b7),'children':_0x3700ab['t'](_0x25ab66(0x2cc)),'onSelect':()=>_0x320651({'type':e[_0x25ab66(0x1e4)]['TableFilter'],'tableId':_0x20ecd6,'filter':null},0x6,0x8)}]}];}),_0x28ee50=[..._0x54a4e7,..._0x54a4e7[_0x42113a(0xf8)]?[{'type':_0x42113a(0xe3)}]:[],{'type':_0x42113a(0x4b7),'children':_0x3700ab['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x320651({'type':e['BaseDashboardWidgetType'][_0x42113a(0x115)],'document':Be()},0x4,0x6)},{'type':_0x42113a(0x4b7),'children':_0x3700ab['t'](_0x42113a(0x4b9)),'onSelect':()=>Ve(_0x198054)[_0x42113a(0xeb)](_0x56dc33=>_0x56dc33&&_0x320651({'type':e['BaseDashboardWidgetType'][_0x42113a(0x108)],'source':_0x56dc33['source'],'sourceType':_0x56dc33[_0x42113a(0x109)],'alt':_0x56dc33[_0x42113a(0x451)],'displayMode':_0x42113a(0x225)},0x4,0x6))},{'type':_0x42113a(0x4b7),'children':_0x3700ab['t'](_0x42113a(0x2bd)),'onSelect':()=>{const _0x59c1f7=_0x42113a;let _0xf188de=_0x460d8d[_0x59c1f7(0x473)][_0x59c1f7(0x41e)](_0x2d10cb=>_0x460d8d[_0x59c1f7(0x4fe)][_0x2d10cb]);_0xf188de&&_0x320651({'type':e[_0x59c1f7(0x1e4)][_0x59c1f7(0x31c)],'tableId':_0xf188de,'shapeType':d[_0x59c1f7(0x41c)][_0x59c1f7(0x30e)],'shapeData':(0x0,i[_0x59c1f7(0x159)])(),'description':_0x3700ab['t'](_0x59c1f7(0x2bd))},0x4,0x6);}}],_0x1b899c=_0x20f97a?_0x828c48[_0x42113a(0x110)][_0x20f97a]:void 0x0,_0x49eac4=()=>_0x2ee31f(_0x2cdd09=>!_0x2cdd09),_0x28f384=_0x3b5788||_0xc40e04,_0x15b60c=_0x2ffe1e&&!_0x28f384;return(0x0,g[_0x42113a(0x23f)])(ue,{'children':(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x460),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xc40e04?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x42113a(0x49c))+_0x42113a(0x1c0),'children':[_0xc40e04&&(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'onClick':()=>_0x2ee31f(!0x1),'children':_0x3700ab['t'](_0x42113a(0x162))}),!_0x28f384&&(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x4f6),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0xf6)],{'className':_0x42113a(0x471)}),(0x0,g[_0x42113a(0x23f)])('h2',{'className':_0x42113a(0x431),'children':_0x828c48[_0x42113a(0x451)]}),_0x6346e7[_0x42113a(0x468)](_0x434a3f)&&(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'variant':_0x42113a(0x455),'disabled':!_0x6346e7['canView'](_0x434a3f),'aria-label':_0x3700ab['t'](_0x42113a(0x145)),'onClick':()=>{const _0x87080a=_0x42113a;(0x0,m[_0x87080a(0x169)])(_0x210b07,{'target':_0x434a3f,'name':_0x828c48[_0x87080a(0x451)],'commandId':l[_0x87080a(0x33d)]['id'],'exists':()=>!!_0x26fff3[_0x87080a(0x499)](_0x324b20,_0xf3541b)});},'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x4e1)],{})}),(0x0,g['jsx'])(t[_0x42113a(0x388)],{'unitId':_0x324b20}),(0x0,g['jsx'])(f['Button'],{'type':_0x42113a(0x1e9),'size':_0x42113a(0x301),'variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x417)),'disabled':!_0x2ffe1e||_0xa61fbf[_0x42113a(0x37a)]===0x0,'onClick':()=>_0x49c893[_0x42113a(0x387)](a['UndoCommand']['id'])[_0x42113a(0x29c)](()=>void 0x0),'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x20e)],{})}),(0x0,g['jsx'])(f[_0x42113a(0x3da)],{'type':_0x42113a(0x1e9),'size':'small','variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x28e)),'disabled':!_0x2ffe1e||_0xa61fbf[_0x42113a(0x2c6)]===0x0,'onClick':()=>_0x49c893[_0x42113a(0x387)](a[_0x42113a(0x3ec)]['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x304)],{})}),(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'type':_0x42113a(0x1e9),'size':_0x42113a(0x301),'variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x1bb)),'onClick':_0x49eac4,'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x272)],{})}),(0x0,g['jsx'])(de,{'items':_0x28ee50,'children':(0x0,g[_0x42113a(0x38d)])(f[_0x42113a(0x3da)],{'variant':'primary','disabled':!_0x2ffe1e,'children':[(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x335)],{}),_0x3700ab['t'](_0x42113a(0x4a7))]})})]}),(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x460),{'className':_0x42113a(0xe9),'children':[(0x0,g['jsx'])(_0x42113a(0x460),{'className':'univer-min-w-0\x20univer-flex-1','children':(0x0,g[_0x42113a(0x23f)])(le,{'dashboard':_0x828c48,'editable':_0x15b60c,'widgetLabel':_0x43a996=>_0x3700ab['t'](Ue(_0x43a996[_0x42113a(0x11c)])),'selectedWidgetId':_0x15b60c?_0x20f97a:void 0x0,'onSelectWidget':_0x15b60c?_0x87a857=>{_0x598ed0(_0x87a857),_0x87a857||_0x36adcb(!0x1);}:void 0x0,'renderWidget':_0x3aa8c2=>(0x0,g[_0x42113a(0x23f)])(Le,{'base':_0x1a184f,'dashboard':_0x828c48,'unitId':_0x324b20,'widget':_0x3aa8c2,'onChange':_0x1f27cb,'onChartRuntimeChange':_0x58cedd}),'renderWidgetActions':_0x5d1765=>(0x0,g[_0x42113a(0x23f)])(Fe,{'onMoveUp':_0x828c48[_0x42113a(0x4c7)]['indexOf'](_0x5d1765['id'])>0x0?()=>_0x337cda(_0x5d1765['id'],-0x1):void 0x0,'onMoveDown':_0x828c48[_0x42113a(0x4c7)][_0x42113a(0x416)](_0x5d1765['id'])<_0x828c48['widgetOrder'][_0x42113a(0xf8)]-0x1?()=>_0x337cda(_0x5d1765['id'],0x1):void 0x0,'onEdit':()=>{_0x598ed0(_0x5d1765['id']),_0x36adcb(!0x0);},'onDelete':()=>{const _0x3be0ed=_0x42113a;_0x20f97a===_0x5d1765['id']&&(_0x598ed0(void 0x0),_0x36adcb(!0x1)),_0x49c893[_0x3be0ed(0x387)](e[_0x3be0ed(0x340)]['id'],{'unitId':_0x324b20,'dashboardId':_0xf3541b,'widgetId':_0x5d1765['id']})[_0x3be0ed(0x29c)](()=>void 0x0);}})})}),_0x15b60c&&_0x280aca&&_0x1b899c&&(0x0,g[_0x42113a(0x23f)])(De,{'base':_0x1a184f,'chartRuntime':_0x401eed[_0x42113a(0x4ae)](_0x1b899c['id']),'unitId':_0x324b20,'widget':_0x1b899c,'onChange':_0x1f27cb,'onClose':()=>_0x36adcb(!0x1),'onSelectBackgroundImage':()=>He(_0x2cae03),'onSelectImage':()=>Ve(_0x198054)})]})]})});}function Le({base:_0xf2b37c,dashboard:_0x92ceb4,onChange:_0x173403,onChartRuntimeChange:_0x80e4f4,unitId:_0x3d154a,widget:_0x4feea7}){const _0x1c44f0=_0x30b590;let _0x223d5d=(0x0,h[_0x1c44f0(0x2c1)])(()=>_0x92ceb4[_0x1c44f0(0x4c7)][_0x1c44f0(0x4e3)](_0x38ffd0=>{const _0x5d9b2f=_0x1c44f0;let _0xe8cf59=_0x92ceb4[_0x5d9b2f(0x110)][_0x38ffd0];return(_0xe8cf59==null?void 0x0:_0xe8cf59[_0x5d9b2f(0x11c)])===e['BaseDashboardWidgetType']['TableFilter']&&_0xe8cf59[_0x5d9b2f(0x3d3)]===(_0x5d9b2f(0x3d3)in _0x4feea7?_0x4feea7[_0x5d9b2f(0x3d3)]:'')&&_0xe8cf59[_0x5d9b2f(0x141)]?[_0xe8cf59[_0x5d9b2f(0x141)]]:[];}),[_0x92ceb4,_0x4feea7]);switch(_0x4feea7[_0x1c44f0(0x11c)]){case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x3c7)]:return(0x0,g[_0x1c44f0(0x23f)])(ie,{'filters':_0x223d5d,'unitId':_0x3d154a,'widget':_0x4feea7,'onRuntimeChange':_0x80e4f4});case e['BaseDashboardWidgetType']['TableFilter']:return(0x0,g[_0x1c44f0(0x23f)])(Te,{'fields':Re(_0xf2b37c,_0x4feea7[_0x1c44f0(0x3d3)]),'filter':_0x4feea7['filter'],'onChange':_0x50b868=>_0x173403({..._0x4feea7,'filter':_0x50b868})['catch'](()=>void 0x0)});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x115)]:return(0x0,g[_0x1c44f0(0x23f)])(ce,{'widget':_0x4feea7});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x108)]:return(0x0,g[_0x1c44f0(0x23f)])(ze,{'widget':_0x4feea7});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x31c)]:return(0x0,g[_0x1c44f0(0x23f)])(M,{'dashboardId':_0x92ceb4['id'],'unitId':_0x3d154a,'widget':_0x4feea7});}}function Re(_0x503da8,_0x40402c){const _0x33449c=_0x30b590;let _0x5a171f=_0x503da8[_0x33449c(0x38b)]()['tables'][_0x40402c],_0x3f19b3=_0x5a171f==null?void 0x0:_0x5a171f[_0x33449c(0x36f)]['find'](_0x3c325d=>_0x5a171f[_0x33449c(0x371)][_0x3c325d]),_0x553ca9=_0x3f19b3?_0x5a171f==null?void 0x0:_0x5a171f[_0x33449c(0x371)][_0x3f19b3]:void 0x0;return _0x5a171f&&_0x553ca9?(0x0,t['toMenuFields'])(_0x5a171f,_0x553ca9):[];}function ze({widget:_0x3a327a}){const _0x2bbd0b=_0x30b590;let _0x389859=(0x0,m['useDependency'])(u['IAttachmentIoService']),[_0x5acbe2,_0x5d0cb2]=(0x0,h[_0x2bbd0b(0x40a)])(_0x3a327a[_0x2bbd0b(0x109)]===a[_0x2bbd0b(0x30b)]['UUID']?'':_0x3a327a[_0x2bbd0b(0x23a)]);return(0x0,h[_0x2bbd0b(0x3dd)])(()=>{const _0x555f73=_0x2bbd0b;let _0x3e3579=!0x0;return _0x389859[_0x555f73(0x17c)](_0x3a327a[_0x555f73(0x23a)],_0x3a327a[_0x555f73(0x109)])[_0x555f73(0xeb)](_0x3c5233=>{_0x3e3579&&_0x5d0cb2(_0x3c5233);})[_0x555f73(0x29c)](()=>void 0x0),()=>{_0x3e3579=!0x1;};},[_0x389859,_0x3a327a['source'],_0x3a327a[_0x2bbd0b(0x109)]]),_0x5acbe2?(0x0,g[_0x2bbd0b(0x23f)])(_0x2bbd0b(0x460),{'role':_0x3a327a[_0x2bbd0b(0x2aa)]?_0x2bbd0b(0x1db):void 0x0,'aria-label':_0x3a327a[_0x2bbd0b(0x2aa)]||void 0x0,'data-dashboard-image':_0x3a327a['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x5acbe2,_0x3a327a[_0x2bbd0b(0x10e)])}):null;}function Be(){const _0x3c28fb=_0x30b590;let _0x2b1e94=(0x0,a['createParagraphId'])(new Set());return{'id':_0x3c28fb(0x43f)+(0x0,a[_0x3c28fb(0x3f8)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2b1e94}]},'documentStyle':{}};}function Ve(_0x1fafe0){return new Promise(_0x111979=>{const _0x390321=_0x1e15;let _0x38dc4e=document['createElement'](_0x390321(0x238));_0x38dc4e[_0x390321(0x11c)]=_0x390321(0x2fa),_0x38dc4e[_0x390321(0x4b5)]=_0x390321(0x497),_0x38dc4e[_0x390321(0x42d)]('change',()=>{const _0x3befb2=_0x390321;var _0x30e50b;let _0x543c33=(_0x30e50b=_0x38dc4e[_0x3befb2(0x2c8)])==null?void 0x0:_0x30e50b[0x0];_0x543c33?_0x1fafe0[_0x3befb2(0x2ab)](_0x543c33)[_0x3befb2(0xeb)](_0x1fe3a8=>{const _0x93550e=_0x3befb2;!_0x1fe3a8[_0x93550e(0x23a)]||_0x1fe3a8[_0x93550e(0x109)]===void 0x0?_0x111979(null):_0x111979({'name':_0x1fe3a8[_0x93550e(0x451)],'source':_0x1fe3a8[_0x93550e(0x23a)],'sourceType':_0x1fe3a8['sourceType']});})[_0x3befb2(0x29c)](()=>_0x111979(null)):_0x111979(null);},{'once':!0x0}),_0x38dc4e['click']();});}function He(_0x33fd90){return new Promise(_0x2bac86=>{const _0x4342da=_0x1e15;let _0x5eb571=document[_0x4342da(0x427)](_0x4342da(0x238));_0x5eb571[_0x4342da(0x11c)]=_0x4342da(0x2fa),_0x5eb571[_0x4342da(0x4b5)]='image/*',_0x5eb571[_0x4342da(0x42d)](_0x4342da(0x49d),()=>{var _0x3891c9;let _0x43fe9b=(_0x3891c9=_0x5eb571['files'])==null?void 0x0:_0x3891c9[0x0];_0x43fe9b?_0x33fd90['saveImage'](_0x43fe9b)['then'](_0x3916cc=>{const _0x4702dc=_0x1e15;if(!(_0x3916cc!=null&&_0x3916cc[_0x4702dc(0x23a)]))_0x2bac86(null);else{if(_0x3916cc[_0x4702dc(0x228)]){let _0x480c19=new Image();_0x480c19['src']=_0x3916cc[_0x4702dc(0x228)],_0x33fd90['addImageSourceCache'](_0x3916cc[_0x4702dc(0x23a)],_0x3916cc[_0x4702dc(0x200)],_0x480c19);}_0x2bac86({'source':_0x3916cc[_0x4702dc(0x23a)],'sourceType':_0x3916cc[_0x4702dc(0x200)]});}})['catch'](()=>_0x2bac86(null)):_0x2bac86(null);},{'once':!0x0}),_0x5eb571['click']();});}function Ue(_0x7b743a){const _0x374c07=_0x30b590;switch(_0x7b743a){case e[_0x374c07(0x1e4)]['PivotChart']:return _0x374c07(0x4f5);case e['BaseDashboardWidgetType'][_0x374c07(0x326)]:return _0x374c07(0x2cc);case e['BaseDashboardWidgetType']['Text']:return _0x374c07(0x3b6);case e[_0x374c07(0x1e4)][_0x374c07(0x108)]:return'bases-dashboard-ui.dashboard.image';case e[_0x374c07(0x1e4)][_0x374c07(0x31c)]:return _0x374c07(0x2bd);}}function We(_0x2fd353){const _0x563862=_0x30b590;return(_0x2fd353==null?void 0x0:_0x2fd353[_0x563862(0x11c)])===a[_0x563862(0x4a1)]['Pivot']&&typeof _0x2fd353[_0x563862(0x1ca)]==_0x563862(0x368)&&_0x2fd353['config']!==null&&_0x563862(0x258)in _0x2fd353[_0x563862(0x1ca)]&&_0x563862(0xd9)in _0x2fd353[_0x563862(0x1ca)];}function Ge({pivot:_0x55870f,view:_0x36f207}){const _0x126d59=_0x30b590;let _0x293669=(0x0,m[_0x126d59(0x155)])(a[_0x126d59(0x3ea)]),_0x114a20=(0x0,h[_0x126d59(0x2c1)])(()=>Ke(_0x36f207,_0x55870f,_0x293669['t'](_0x126d59(0x2fb))),[_0x293669,_0x55870f,_0x36f207]);return(0x0,g[_0x126d59(0x38d)])('div',{'className':_0x126d59(0x154),'children':[_0x114a20[_0x126d59(0x3eb)][_0x126d59(0xf8)]>0x0&&(0x0,g[_0x126d59(0x23f)])(_0x126d59(0x4da),{'className':_0x126d59(0x1d7),'children':(0x0,g[_0x126d59(0x23f)])(_0x126d59(0x41f),{'children':qe(_0x114a20['pageRows'])})}),(0x0,g[_0x126d59(0x38d)])('table',{'className':_0x126d59(0x4ee),'children':[_0x114a20[_0x126d59(0x253)]>0x0&&(0x0,g['jsx'])(_0x126d59(0xe0),{'className':_0x126d59(0x18f),'children':qe(_0x114a20[_0x126d59(0x129)][_0x126d59(0x34d)](0x0,_0x114a20['headerRowCount']))}),(0x0,g['jsx'])('tbody',{'children':qe(_0x114a20[_0x126d59(0x129)][_0x126d59(0x34d)](_0x114a20['headerRowCount']))})]})]});}function Ke(_0x529d51,_0x3260d9,_0x2951c5){const _0x1cb00c=_0x30b590;let _0x583537=_0x529d51['colView'][_0x1cb00c(0x318)],_0x23543a=_0x529d51['rowView'][_0x1cb00c(0x38e)],_0x1424e7=_0x529d51[_0x1cb00c(0x4f3)][_0x1cb00c(0x318)],_0x12547f=_0x529d51[_0x1cb00c(0x4f3)][_0x1cb00c(0x38e)],_0x42854f=Array[_0x1cb00c(0x443)]({'length':_0x583537+_0x1424e7},(_0x249095,_0x4be753)=>Array['from']({'length':_0x23543a+_0x12547f},(_0x1155ec,_0x3ccc30)=>{const _0x34db36=_0x1cb00c;var _0x10ad9f,_0x440677;if(_0x4be753<_0x583537&&_0x3ccc30<_0x23543a)return Je(_0x529d51[_0x34db36(0x419)],_0x4be753,_0x3ccc30,void 0x0,_0x2951c5,!0x0,!0x1,_0x34db36(0x385)+_0x4be753+':'+_0x3ccc30);if(_0x4be753<_0x583537){var _0x14f0c9;let _0x3f4203=_0x3ccc30-_0x23543a,_0x65b9e0=(_0x14f0c9=_0x529d51['colView'][_0x34db36(0x20f)][_0x4be753])==null?void 0x0:_0x14f0c9[_0x34db36(0x2a2)];return Je(_0x529d51[_0x34db36(0x132)],_0x4be753,_0x3f4203,_0x65b9e0?_0x529d51['formatMap'][_0x65b9e0]:void 0x0,_0x2951c5,!0x0,Ze(_0x529d51[_0x34db36(0x132)]['info'][_0x3f4203]),_0x34db36(0x38c)+_0x4be753+':'+_0x3f4203);}if(_0x3ccc30<_0x23543a){var _0x2e4608;let _0xaf1907=_0x4be753-_0x583537,_0xab56b8=(_0x2e4608=_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x20f)][_0x3ccc30])==null?void 0x0:_0x2e4608[_0x34db36(0x2a2)];return Je(_0x529d51[_0x34db36(0x4b0)],_0xaf1907,_0x3ccc30,_0xab56b8?_0x529d51[_0x34db36(0x1bd)][_0xab56b8]:void 0x0,_0x2951c5,!0x0,Ze(_0x529d51['rowView'][_0x34db36(0x4ce)][_0xaf1907]),_0x34db36(0x377)+_0xaf1907+':'+_0x3ccc30);}let _0x48cac2=_0x4be753-_0x583537,_0x1f6b9d=_0x3ccc30-_0x23543a,_0x41d7f8=Math[_0x34db36(0x26a)](((_0x10ad9f=_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x4ce)][_0x48cac2])==null?void 0x0:_0x10ad9f[_0x34db36(0x4c1)])??-0x1,((_0x440677=_0x529d51[_0x34db36(0x132)][_0x34db36(0x4ce)][_0x1f6b9d])==null?void 0x0:_0x440677[_0x34db36(0x4c1)])??-0x1),_0x16f09f=_0x3260d9[_0x34db36(0x338)][_0x41d7f8<0x0?0x0:_0x41d7f8];return Je(_0x529d51[_0x34db36(0x4f3)],_0x48cac2,_0x1f6b9d,_0x16f09f?_0x529d51[_0x34db36(0x1bd)][_0x16f09f]:void 0x0,_0x2951c5,!0x1,Ze(_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x4ce)][_0x48cac2])||Ze(_0x529d51[_0x34db36(0x132)][_0x34db36(0x4ce)][_0x1f6b9d]),'data:'+_0x48cac2+':'+_0x1f6b9d);}));return{'headerColumnCount':_0x23543a,'headerRowCount':_0x583537,'pageRows':_0x529d51[_0x1cb00c(0x10d)]['lastRow']<0x0||_0x529d51[_0x1cb00c(0x10d)][_0x1cb00c(0x4be)]<0x0?[]:Array[_0x1cb00c(0x443)]({'length':_0x529d51[_0x1cb00c(0x10d)][_0x1cb00c(0x185)]+0x1},(_0x28a3a8,_0x323e2c)=>Array[_0x1cb00c(0x443)]({'length':_0x529d51['pageView']['lastCol']+0x1},(_0x5d5cab,_0x26e6f3)=>Je(_0x529d51[_0x1cb00c(0x10d)],_0x323e2c,_0x26e6f3,void 0x0,_0x2951c5,!0x0,!0x1,'page:'+_0x323e2c+':'+_0x26e6f3))),'rows':_0x42854f};}function qe(_0x3da1f7){return _0x3da1f7['map'](_0x3897be=>{const _0x57ca89=_0x1e15;var _0x313146;return(0x0,g[_0x57ca89(0x23f)])('tr',{'children':_0x3897be['map'](_0xa651f6=>{const _0x1afb23=_0x57ca89;let _0x1d1f52=_0xa651f6[_0x1afb23(0x3f0)]?'th':'td';return(0x0,g[_0x1afb23(0x23f)])(_0x1d1f52,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0xa651f6['isTotal']?_0x1afb23(0x215):'')+_0x1afb23(0x320)+(_0xa651f6[_0x1afb23(0x3f0)]?'':'univer-text-right')+_0x1afb23(0x1b0),'children':_0xa651f6[_0x1afb23(0x351)]},_0xa651f6[_0x1afb23(0x2d3)]);})},(_0x313146=_0x3897be[0x0])==null?void 0x0:_0x313146['key']);});}function Je(_0x289f21,_0x36f134,_0x4cee7b,_0x2d0fbe,_0x512d98,_0x2dce23,_0x4177e6,_0x4e90ff){const _0x4e7e3c=_0x30b590;var _0x260580;let _0x5042ae=(_0x260580=_0x289f21[_0x4e7e3c(0x457)][_0x36f134])==null?void 0x0:_0x260580[_0x4cee7b],_0x2e3a71=_0x5042ae==null?void 0x0:_0x5042ae['s'],_0x5368cd=_0x4177e6||_0x2e3a71===y[_0x4e7e3c(0x2c5)][_0x4e7e3c(0x273)]||_0x2e3a71===y[_0x4e7e3c(0x2c5)][_0x4e7e3c(0x201)];return{'isHeader':_0x2dce23,'isTotal':_0x5368cd||_0x2e3a71===y['PivotCellStyleTypeEnum'][_0x4e7e3c(0x124)],'key':_0x4e90ff,'style':_0x2e3a71,'value':_0x5368cd&&Xe(_0x5042ae==null?void 0x0:_0x5042ae['v'])?_0x512d98:Ye(_0x5042ae,_0x2d0fbe)};}function Ye(_0x490ec7,_0x392a39){const _0xd1f1c4=_0x30b590;let _0x18d59c=_0x490ec7==null?void 0x0:_0x490ec7['v'];return(0x0,y[_0xd1f1c4(0x3e1)])(_0x18d59c)?String(_0x18d59c[_0xd1f1c4(0x351)]??_0x18d59c[_0xd1f1c4(0x1cd)]??''):(0x0,y[_0xd1f1c4(0x30f)])(_0x18d59c)?'#'+_0x18d59c[_0xd1f1c4(0x4ac)]:_0x392a39&&typeof _0x18d59c==_0xd1f1c4(0x493)?a['numfmt'][_0xd1f1c4(0x462)](_0x392a39,_0x18d59c):String(_0x18d59c??'');}function Xe(_0x3c9981){return _0x3c9981===void 0x0||_0x3c9981==='';}function Ze(_0x37d2c1){const _0x926a3c=_0x30b590;return!!(_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x212)]||_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x196)]||_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x1c4)]||(_0x37d2c1==null?void 0x0:_0x37d2c1['rowType'])===_0x926a3c(0x403));}const Qe=[{'area':y['PivotTableFiledAreaEnum']['Filter'],'key':_0x30b590(0x3c8),'label':_0x30b590(0xd3)},{'area':y[_0x30b590(0xd8)]['Column'],'key':_0x30b590(0x256),'label':_0x30b590(0x43d)},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x44f)],'key':_0x30b590(0x191),'label':_0x30b590(0x24b)},{'area':y[_0x30b590(0xd8)][_0x30b590(0x19b)],'key':'valueFields','label':_0x30b590(0x39b)}],$e=[{'value':y[_0x30b590(0x312)]['sum'],'localeKey':_0x30b590(0x3d7)},{'value':y[_0x30b590(0x312)][_0x30b590(0x379)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':y[_0x30b590(0x312)]['countNums'],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x4d8)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':y[_0x30b590(0x312)][_0x30b590(0x26a)],'localeKey':_0x30b590(0x1d2)},{'value':y[_0x30b590(0x312)]['min'],'localeKey':_0x30b590(0x1ce)},{'value':y[_0x30b590(0x312)][_0x30b590(0x32d)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0x30b590(0x312)][_0x30b590(0x4e5)],'localeKey':_0x30b590(0x375)},{'value':y[_0x30b590(0x312)]['stdDevp'],'localeKey':_0x30b590(0x1b5)},{'value':y['PivotSubtotalTypeEnum']['var'],'localeKey':_0x30b590(0x446)},{'value':y[_0x30b590(0x312)][_0x30b590(0x107)],'localeKey':_0x30b590(0x1a0)}];function et(_0xd1adf7){const _0x10ca33=_0x30b590;let {config:_0x55c202,onChange:_0x309493,table:_0x3b4067}=_0xd1adf7,_0x44ac2d=(0x0,m[_0x10ca33(0x155)])(a[_0x10ca33(0x3ea)]),[_0x2fe6f0,_0x3caaee]=(0x0,h[_0x10ca33(0x40a)])(_0x10ca33(0x3c6)),[_0x51f9c0,_0x24675a]=(0x0,h[_0x10ca33(0x40a)])(''),[_0x4fa926,_0x40d95b]=(0x0,h[_0x10ca33(0x40a)])(null),[_0x26ae9f,_0x148322]=(0x0,h[_0x10ca33(0x40a)])(null),[_0x287df2,_0x40fad0]=(0x0,h[_0x10ca33(0x40a)])(null),[_0xf5e19d,_0x196d27]=(0x0,h[_0x10ca33(0x40a)])(null),_0xf2a435=(0x0,h[_0x10ca33(0x414)])(null),_0x1dfaec=(0x0,h[_0x10ca33(0x2c1)])(()=>_0x3b4067[_0x10ca33(0x2f0)][_0x10ca33(0x4e3)](_0xec4f5a=>{const _0x406f08=_0x10ca33;let _0x203c20=_0x3b4067['fields'][_0xec4f5a];return _0x203c20&&_0x203c20['system']!==!0x0&&_0x203c20[_0x406f08(0x11c)]!==a[_0x406f08(0x1d5)]['RecordId']?[_0x203c20]:[];})['filter'](_0x2ddab2=>_0x2ddab2[_0x10ca33(0x451)]['toLocaleLowerCase']()[_0x10ca33(0x30a)](_0x51f9c0[_0x10ca33(0x342)]()[_0x10ca33(0x144)]())),[_0x51f9c0,_0x3b4067]),_0x4ffd7b=_0x1c5641=>{const _0x15feec=_0x10ca33;let _0x4c81b8=(0x0,e[_0x15feec(0x17a)])(_0x3b4067,_0x55c202['pivot']);try{_0x1c5641(_0x4c81b8),_0x309493({'pivot':_0x4c81b8[_0x15feec(0x322)]()});}finally{_0x4c81b8['dispose']();}},_0xe1df4=(_0x567ceb,_0x2a4d57)=>{_0x4fa926&&(_0x4ffd7b(_0x1ab661=>{const _0x1a6bdf=_0x1e15;if(_0x4fa926['kind']===_0x1a6bdf(0x492)){let _0x89c7c8=_0x1ab661['getFieldPositionInfoById'](_0x4fa926['id']),_0x2af94b=_0x89c7c8['area']===_0x567ceb&&_0x89c7c8[_0x1a6bdf(0x489)]<_0x2a4d57?_0x2a4d57-0x1:_0x2a4d57;_0x1ab661[_0x1a6bdf(0x3ad)](_0x4fa926['id'],_0x567ceb,_0x2af94b);}else ct(_0x1ab661,_0x4fa926['id'],_0x567ceb,_0x2a4d57);}),_0x40d95b(null),_0x148322(null));};return(0x0,g[_0x10ca33(0x38d)])(_0x10ca33(0x460),{'className':_0x10ca33(0x461),'children':[(0x0,g[_0x10ca33(0x23f)])(n[_0x10ca33(0x22f)],{'ariaLabel':_0x44ac2d['t'](_0x10ca33(0x46b)),'className':_0x10ca33(0x22d),'items':[{'label':_0x44ac2d['t'](_0x10ca33(0x4c6)),'panelId':_0x10ca33(0x3cc),'value':_0x10ca33(0x3c6)},{'label':_0x44ac2d['t'](_0x10ca33(0x21d)),'panelId':_0x10ca33(0x3bc),'value':_0x10ca33(0x45a)}],'value':_0x2fe6f0,'onChange':_0x3caaee}),(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'ref':_0xf2a435,'className':(0x0,f[_0x10ca33(0x373)])(_0x10ca33(0x294),f['scrollbarClassName']),'onDragOver':_0x569f4f=>{const _0xf2d00a=_0x10ca33;let _0x4a60a3=_0xf2a435[_0xf2d00a(0x216)];if(!_0x4a60a3)return;let _0x2d97fe=_0x4a60a3[_0xf2d00a(0x118)]();_0x569f4f['clientY']<_0x2d97fe[_0xf2d00a(0x291)]+0x30?_0x4a60a3['scrollTop']-=0x10:_0x569f4f[_0xf2d00a(0x12f)]>_0x2d97fe[_0xf2d00a(0x1c3)]-0x30&&(_0x4a60a3[_0xf2d00a(0x2a0)]+=0x10);},'children':_0x2fe6f0===_0x10ca33(0x45a)?(0x0,g[_0x10ca33(0x23f)])(st,{'config':_0x55c202,'commit':_0x4ffd7b}):(0x0,g['jsxs'])(_0x10ca33(0x460),{'className':_0x10ca33(0x27e),'children':[(0x0,g[_0x10ca33(0x38d)])('div',{'children':[(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'className':_0x10ca33(0x439),'children':_0x44ac2d['t'](_0x10ca33(0x1e3))}),(0x0,g[_0x10ca33(0x23f)])(f[_0x10ca33(0x104)],{'allowClear':!0x0,'slot':(0x0,g[_0x10ca33(0x23f)])(s['SearchIcon'],{}),'value':_0x51f9c0,'placeholder':_0x44ac2d['t'](_0x10ca33(0x176)),'onChange':_0x24675a}),(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'className':_0x10ca33(0x1e1),'children':_0x1dfaec[_0x10ca33(0x48a)](_0xb2ccbf=>(0x0,g[_0x10ca33(0x23f)])(tt,{'config':_0x55c202,'field':_0xb2ccbf,'onAdd':_0x2f700f=>_0x4ffd7b(_0x596ac7=>ct(_0x596ac7,_0xb2ccbf['id'],_0x2f700f,_0x596ac7[_0x10ca33(0x241)](_0x2f700f))),'onCheckedChange':_0x3f439f=>_0x4ffd7b(_0x24a16f=>{const _0x5bd17f=_0x10ca33;let _0x43c927=_0x24a16f['getTableFieldsByDataFieldId'](_0xb2ccbf['id']);if(!_0x3f439f)_0x43c927['forEach'](_0x2d3e7e=>_0x24a16f[_0x5bd17f(0x2a3)](_0x2d3e7e[_0x5bd17f(0x3f6)]()));else{if(_0x43c927['length']===0x0){let _0x32d0f3=ut(_0xb2ccbf)?y['PivotTableFiledAreaEnum'][_0x5bd17f(0x19b)]:y[_0x5bd17f(0xd8)][_0x5bd17f(0x44f)];_0x24a16f['addFieldWithSourceId'](_0xb2ccbf['id'],_0x32d0f3);}}}),'onDragStart':()=>_0x40d95b({'kind':'source','id':_0xb2ccbf['id']})},_0xb2ccbf['id']))})]}),(0x0,g['jsx'])('div',{'className':_0x10ca33(0x4d7),'children':Qe['map'](_0x3490a4=>(0x0,g[_0x10ca33(0x23f)])(rt,{'area':_0x3490a4[_0x10ca33(0x1be)],'dropTarget':_0x26ae9f,'fields':_0x55c202['pivot'][_0x3490a4[_0x10ca33(0x2d3)]],'label':_0x44ac2d['t'](_0x3490a4[_0x10ca33(0x1c2)]),'snapshot':_0x55c202[_0x10ca33(0x258)],'onDragEnd':()=>{_0x40d95b(null),_0x148322(null);},'onDragStart':_0x20f3e6=>_0x40d95b({'kind':_0x10ca33(0x492),'id':_0x20f3e6,'area':_0x3490a4[_0x10ca33(0x1be)]}),'onDragOver':_0x52ca38=>_0x148322({'area':_0x3490a4[_0x10ca33(0x1be)],'index':_0x52ca38}),'onDrop':_0x3dabc1=>_0xe1df4(_0x3490a4[_0x10ca33(0x1be)],_0x3dabc1),'onFilter':_0x40fad0,'onMove':(_0xe1b8ce,_0x56ed36,_0x23b497)=>_0x4ffd7b(_0x2d238b=>_0x2d238b[_0x10ca33(0x3ad)](_0xe1b8ce,_0x56ed36,_0x23b497)),'onRemove':_0x58862d=>_0x4ffd7b(_0x5d8046=>_0x5d8046[_0x10ca33(0x2a3)](_0x58862d)),'onSettings':_0x196d27},_0x3490a4[_0x10ca33(0x1be)]))}),_0x287df2&&(0x0,g['jsx'])(at,{'fieldId':_0x287df2,'snapshot':_0x55c202[_0x10ca33(0x258)],'table':_0x3b4067,'onCancel':()=>_0x40fad0(null),'onCommit':(_0x2be029,_0x37445a)=>{_0x4ffd7b(_0x7d6890=>{const _0x1c3fe2=_0x1e15;let _0x44a8ed=_0x7d6890[_0x1c3fe2(0x28f)](_0x287df2),_0x4daf2b=(_0x44a8ed==null?void 0x0:_0x44a8ed[_0x1c3fe2(0x30d)])??[];_0x7d6890[_0x1c3fe2(0x482)](_0x287df2,{'type':y['PivotFilterTypeEnum'][_0x1c3fe2(0x14d)],'list':_0x2be029,'isAll':_0x2be029[_0x1c3fe2(0xf8)]===_0x4daf2b[_0x1c3fe2(0xf8)]}),_0x7d6890[_0x1c3fe2(0x1af)](_0x287df2,_0x37445a===void 0x0?void 0x0:{'type':_0x37445a});}),_0x40fad0(null);}},_0x287df2),_0xf5e19d&&(0x0,g[_0x10ca33(0x23f)])(ot,{'field':_0x55c202[_0x10ca33(0x258)][_0x10ca33(0x327)][_0xf5e19d],'onCancel':()=>_0x196d27(null),'onCommit':(_0x73c21e,_0x21fdfd,_0x51bc9d)=>{_0x4ffd7b(_0x5a7f05=>{const _0x5ac847=_0x1e15;_0x5a7f05[_0x5ac847(0x14a)](_0xf5e19d,_0x73c21e),_0x5a7f05[_0x5ac847(0x1ad)](_0xf5e19d,_0x21fdfd),_0x5a7f05[_0x5ac847(0x28b)](_0xf5e19d,_0x51bc9d||void 0x0);}),_0x196d27(null);}},_0xf5e19d)]})})]});}function tt(_0x4173bd){const _0xd0ddcd=_0x30b590;let {config:_0x31209f,field:_0xba86d5,onAdd:_0x1930b7,onCheckedChange:_0x184033,onDragStart:_0x5cedaf}=_0x4173bd,_0x3bab75=(0x0,m[_0xd0ddcd(0x155)])(a[_0xd0ddcd(0x3ea)]),_0x201c31=[...Object[_0xd0ddcd(0x1ba)](_0x31209f[_0xd0ddcd(0x258)][_0xd0ddcd(0x32a)]),...Object['values'](_0x31209f['pivot'][_0xd0ddcd(0x327)])][_0xd0ddcd(0x364)](_0x186108=>_0x186108[_0xd0ddcd(0x366)]===_0xba86d5['id']),_0x3e25df=Qe[_0xd0ddcd(0x48a)](_0x198174=>({'type':_0xd0ddcd(0x4b7),'children':_0x3bab75['t'](dt(_0x198174[_0xd0ddcd(0x1be)])),'onSelect':()=>_0x1930b7(_0x198174['area'])}));return(0x0,g[_0xd0ddcd(0x38d)])(_0xd0ddcd(0x460),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0xd0ddcd(0x16a),'onDragStart':_0x5cedaf,'children':[(0x0,g[_0xd0ddcd(0x23f)])(f[_0xd0ddcd(0x2b9)],{'checked':_0x201c31,'onChange':_0xef77aa=>_0x184033(!!_0xef77aa)}),(0x0,g[_0xd0ddcd(0x23f)])(nt,{'field':_0xba86d5}),(0x0,g[_0xd0ddcd(0x23f)])(_0xd0ddcd(0x405),{'className':_0xd0ddcd(0x16b),'children':_0xba86d5[_0xd0ddcd(0x451)]}),(0x0,g[_0xd0ddcd(0x23f)])(de,{'align':_0xd0ddcd(0x19f),'items':_0x3e25df,'children':(0x0,g['jsx'])(f['Button'],{'variant':_0xd0ddcd(0x455),'aria-label':_0x3bab75['t'](_0xd0ddcd(0x38a)),'children':(0x0,g[_0xd0ddcd(0x23f)])(s[_0xd0ddcd(0x187)],{})})})]});}function nt({field:_0x14e4fd}){const _0x4a8b99=_0x30b590;return ut(_0x14e4fd)?(0x0,g[_0x4a8b99(0x23f)])(s['NumberIcon'],{'className':_0x4a8b99(0x3d2)}):_0x14e4fd['type']===a['BaseFieldType'][_0x4a8b99(0x193)]||_0x14e4fd[_0x4a8b99(0x11c)]===a['BaseFieldType'][_0x4a8b99(0x4f0)]||_0x14e4fd[_0x4a8b99(0x11c)]===a['BaseFieldType'][_0x4a8b99(0x380)]?(0x0,g['jsx'])(s[_0x4a8b99(0x25c)],{'className':_0x4a8b99(0x3d2)}):(0x0,g['jsx'])(s[_0x4a8b99(0x4f2)],{'className':_0x4a8b99(0x3d2)});}function rt(_0x14c3a6){const _0x5e4cae=_0x30b590;let {area:_0x1d1f9a,dropTarget:_0x542cd8,fields:_0x1691e3,label:_0x310b91,snapshot:_0x4813d4}=_0x14c3a6,_0x40f6ad=(0x0,m['useDependency'])(a[_0x5e4cae(0x3ea)]);return(0x0,g[_0x5e4cae(0x38d)])('section',{'className':(0x0,f[_0x5e4cae(0x373)])(_0x5e4cae(0x244),f[_0x5e4cae(0x209)]),'onDragOver':_0x39f08c=>{const _0x4715a3=_0x5e4cae;_0x39f08c['preventDefault'](),_0x14c3a6[_0x4715a3(0x3fd)](_0x1691e3[_0x4715a3(0xf8)]);},'onDrop':_0xe114c3=>{const _0x57f344=_0x5e4cae;_0xe114c3[_0x57f344(0x222)](),_0x14c3a6[_0x57f344(0x46f)]((_0x542cd8==null?void 0x0:_0x542cd8['area'])===_0x1d1f9a?_0x542cd8['index']:_0x1691e3[_0x57f344(0xf8)]);},'children':[(0x0,g[_0x5e4cae(0x23f)])('div',{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x310b91}),(0x0,g[_0x5e4cae(0x38d)])(_0x5e4cae(0x460),{'className':_0x5e4cae(0x302),'children':[_0x1691e3['map']((_0x2b31ac,_0x163c5a)=>{const _0x57fd35=_0x5e4cae;let _0x3f2454=_0x4813d4[_0x57fd35(0x32a)][_0x2b31ac]??_0x4813d4['measure'][_0x2b31ac];if(!_0x3f2454)return null;let _0x54488e=(_0x542cd8==null?void 0x0:_0x542cd8['area'])===_0x1d1f9a&&_0x542cd8[_0x57fd35(0x489)]===_0x163c5a;return(0x0,g['jsxs'])(_0x57fd35(0x460),{'onDragOver':_0xda50fc=>{const _0x3cf7eb=_0x57fd35;_0xda50fc[_0x3cf7eb(0x222)](),_0xda50fc['stopPropagation']();let _0x29d19c=_0xda50fc[_0x3cf7eb(0x408)][_0x3cf7eb(0x118)]();_0x14c3a6[_0x3cf7eb(0x3fd)](_0x163c5a+ +(_0xda50fc['clientY']>_0x29d19c[_0x3cf7eb(0x291)]+_0x29d19c['height']/0x2));},'onDrop':_0x47ef4c=>{const _0x29f35f=_0x57fd35;_0x47ef4c[_0x29f35f(0x222)](),_0x47ef4c[_0x29f35f(0x231)](),_0x14c3a6[_0x29f35f(0x46f)]((_0x542cd8==null?void 0x0:_0x542cd8[_0x29f35f(0x1be)])===_0x1d1f9a?_0x542cd8[_0x29f35f(0x489)]:_0x163c5a);},'children':[_0x54488e&&(0x0,g[_0x57fd35(0x23f)])(_0x57fd35(0x460),{'className':_0x57fd35(0x1f1)}),(0x0,g[_0x57fd35(0x23f)])(it,{'area':_0x1d1f9a,'field':_0x3f2454,'onDragEnd':_0x14c3a6[_0x57fd35(0x3d9)],'onDragStart':()=>_0x14c3a6[_0x57fd35(0x3a6)](_0x2b31ac),'onFilter':()=>_0x14c3a6[_0x57fd35(0x3d1)](_0x2b31ac),'onMove':_0xa7749e=>_0x14c3a6[_0x57fd35(0x349)](_0x2b31ac,_0xa7749e,0x0),'onMoveUp':_0x163c5a>0x0?()=>_0x14c3a6[_0x57fd35(0x349)](_0x2b31ac,_0x1d1f9a,_0x163c5a-0x1):void 0x0,'onMoveDown':_0x163c5a<_0x1691e3['length']-0x1?()=>_0x14c3a6['onMove'](_0x2b31ac,_0x1d1f9a,_0x163c5a+0x1):void 0x0,'onRemove':()=>_0x14c3a6[_0x57fd35(0x2ac)](_0x2b31ac),'onSettings':()=>_0x14c3a6[_0x57fd35(0xff)](_0x2b31ac)})]},_0x2b31ac);}),(_0x542cd8==null?void 0x0:_0x542cd8[_0x5e4cae(0x1be)])===_0x1d1f9a&&_0x542cd8[_0x5e4cae(0x489)]===_0x1691e3[_0x5e4cae(0xf8)]&&(0x0,g[_0x5e4cae(0x23f)])('div',{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1691e3[_0x5e4cae(0xf8)]===0x0&&(0x0,g['jsx'])(_0x5e4cae(0x460),{'className':_0x5e4cae(0x40c),'children':_0x40f6ad['t'](_0x5e4cae(0x1e3))})]})]});}function it(_0x34c628){const _0x482bf1=_0x30b590;let _0x3c188f=(0x0,m[_0x482bf1(0x155)])(a[_0x482bf1(0x3ea)]),_0x10e2a9=_0x34c628[_0x482bf1(0x1be)]===y[_0x482bf1(0xd8)][_0x482bf1(0x19b)],_0x45d66c=[...Qe['filter'](_0x1c80e5=>_0x1c80e5[_0x482bf1(0x1be)]!==_0x34c628['area'])['map'](_0x356d2e=>({'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](dt(_0x356d2e[_0x482bf1(0x1be)])),'onSelect':()=>_0x34c628['onMove'](_0x356d2e['area'])})),..._0x34c628[_0x482bf1(0x161)]?[{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x34c628['onMoveUp']}]:[],..._0x34c628[_0x482bf1(0x28d)]?[{'type':'item','children':_0x3c188f['t'](_0x482bf1(0x4a5)),'onSelect':_0x34c628[_0x482bf1(0x28d)]}]:[],{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](_0x482bf1(0x281)),'onSelect':_0x34c628['onRemove']},{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](_0x10e2a9?'bases-dashboard-ui.pivot.fieldSettings':_0x482bf1(0x2de)),'onSelect':_0x10e2a9?_0x34c628[_0x482bf1(0xff)]:_0x34c628[_0x482bf1(0x3d1)]}];return(0x0,g['jsxs'])(_0x482bf1(0x460),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x482bf1(0x1c1),'onDragEnd':_0x34c628[_0x482bf1(0x3d9)],'onDragStart':_0x34c628[_0x482bf1(0x3a6)],'children':[(0x0,g[_0x482bf1(0x23f)])(f[_0x482bf1(0x1c7)],{'title':_0x34c628['field']['displayName'],'children':(0x0,g['jsx'])(_0x482bf1(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x34c628[_0x482bf1(0x492)][_0x482bf1(0x38f)]})}),(0x0,g[_0x482bf1(0x23f)])(de,{'align':_0x482bf1(0x19f),'items':_0x45d66c,'children':(0x0,g[_0x482bf1(0x23f)])(f[_0x482bf1(0x3da)],{'variant':'text','aria-label':_0x3c188f['t'](_0x482bf1(0x38a)),'children':(0x0,g[_0x482bf1(0x23f)])(s['MoreDownIcon'],{})})})]});}function at(_0x5dd69c){const _0x369a62=_0x30b590;var _0x59435e,_0x2fb9d6;let _0x1990af=(0x0,m[_0x369a62(0x155)])(a[_0x369a62(0x3ea)]),{format:_0x547e21,items:_0x572ecf,itemTypes:_0x5173cc}=(0x0,h[_0x369a62(0x2c1)])(()=>{const _0x414d75=_0x369a62;let _0x288187=(0x0,e[_0x414d75(0x17a)])(_0x5dd69c[_0x414d75(0x4da)],_0x5dd69c[_0x414d75(0x48d)]);try{let _0x3eb619=_0x288187['getDataFieldByTableId'](_0x5dd69c[_0x414d75(0x1fb)]);return{'format':_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x462)],'items':[...(_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x30d)])??[]],'itemTypes':[...(_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x34a)])??[]]};}finally{_0x288187[_0x414d75(0x45b)]();}},[_0x5dd69c[_0x369a62(0x1fb)],_0x5dd69c[_0x369a62(0x48d)],_0x5dd69c['table']]),_0x105040=(_0x59435e=_0x5dd69c['snapshot']['dimension'][_0x5dd69c[_0x369a62(0x1fb)]])==null?void 0x0:_0x59435e[_0x369a62(0x32c)],[_0x58644b,_0x4bcdc6]=(0x0,h[_0x369a62(0x40a)])((_0x105040==null?void 0x0:_0x105040[_0x369a62(0x11c)])===y['PivotFilterTypeEnum'][_0x369a62(0x14d)]?_0x105040['list']:_0x572ecf),[_0x5e67d1,_0x23f2ec]=(0x0,h[_0x369a62(0x40a)])((_0x2fb9d6=_0x5dd69c[_0x369a62(0x48d)][_0x369a62(0x32a)][_0x5dd69c[_0x369a62(0x1fb)]])==null||(_0x2fb9d6=_0x2fb9d6[_0x369a62(0x353)])==null?void 0x0:_0x2fb9d6[_0x369a62(0x11c)]),_0x4b2f7d=_0x58644b[_0x369a62(0xf8)]===_0x572ecf['length'],_0x34d2ee=(0x0,g[_0x369a62(0x38d)])('section',{'className':(0x0,f[_0x369a62(0x373)])(_0x369a62(0x299),f[_0x369a62(0x209)]),'children':[(0x0,g[_0x369a62(0x23f)])('div',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x1990af['t']('bases-dashboard-ui.pivot.filterField')}),(0x0,g['jsxs'])('div',{'className':_0x369a62(0x18e),'children':[(0x0,g[_0x369a62(0x38d)])(f[_0x369a62(0x3da)],{'className':_0x369a62(0x214),'variant':_0x5e67d1===y[_0x369a62(0x181)][_0x369a62(0x204)]?_0x369a62(0x31d):'default','onClick':()=>_0x23f2ec(y['PivotDataFieldSortOperatorEnum'][_0x369a62(0x204)]),'children':[(0x0,g[_0x369a62(0x23f)])(s[_0x369a62(0x31e)],{}),_0x1990af['t']('bases-dashboard-ui.pivot.ascending')]}),(0x0,g['jsxs'])(f['Button'],{'className':_0x369a62(0x214),'variant':_0x5e67d1===y[_0x369a62(0x181)][_0x369a62(0x126)]?_0x369a62(0x31d):_0x369a62(0x1df),'onClick':()=>_0x23f2ec(y[_0x369a62(0x181)]['descending']),'children':[(0x0,g['jsx'])(s[_0x369a62(0x267)],{}),_0x1990af['t']('bases-dashboard-ui.pivot.descending')]})]}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x3e3),'children':[(0x0,g['jsxs'])(_0x369a62(0x1c2),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x369a62(0x23f)])(f['Checkbox'],{'checked':_0x4b2f7d,'indeterminate':_0x58644b['length']>0x0&&!_0x4b2f7d,'onChange':()=>_0x4bcdc6(_0x4b2f7d?[]:_0x572ecf)}),_0x1990af['t'](_0x369a62(0x158))]}),_0x572ecf['map']((_0x17bfb9,_0xa81d38)=>(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x1c2),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g['jsx'])(f[_0x369a62(0x2b9)],{'checked':_0x58644b[_0x369a62(0x30a)](_0x17bfb9),'onChange':()=>_0x4bcdc6(_0x897c23=>_0x897c23['includes'](_0x17bfb9)?_0x897c23[_0x369a62(0x141)](_0x476614=>_0x476614!==_0x17bfb9):[..._0x897c23,_0x17bfb9])}),(0x0,g[_0x369a62(0x23f)])(_0x369a62(0x405),{'className':_0x369a62(0x4b8),'children':lt(_0x17bfb9,_0x5173cc[_0xa81d38],_0x547e21,_0x1990af['t']('bases-dashboard-ui.pivot.blank'))})]},_0x17bfb9))]}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x2a8),'children':[(0x0,g[_0x369a62(0x23f)])(f[_0x369a62(0x3da)],{'variant':'link','onClick':()=>_0x5dd69c['onCommit'](_0x572ecf,_0x5e67d1),'children':_0x1990af['t'](_0x369a62(0x2d8))}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x2db),'children':[(0x0,g[_0x369a62(0x23f)])(f['Button'],{'onClick':_0x5dd69c['onCancel'],'children':_0x1990af['t'](_0x369a62(0x4ec))}),(0x0,g['jsx'])(f['Button'],{'variant':'primary','disabled':_0x58644b[_0x369a62(0xf8)]===0x0,'onClick':()=>_0x5dd69c[_0x369a62(0x398)](_0x58644b,_0x5e67d1),'children':_0x1990af['t'](_0x369a62(0x2e7))})]})]})]});return(0x0,g['jsx'])(t['BaseMobileDrawer'],{'title':_0x1990af['t'](_0x369a62(0x2de)),'onClose':_0x5dd69c[_0x369a62(0x3b5)],'children':_0x34d2ee});}function ot(_0x4d5a52){const _0x36d433=_0x30b590;var _0x483d7f,_0x2dee21,_0x187b91;let _0x94e85f=(0x0,m['useDependency'])(a[_0x36d433(0x3ea)]),[_0x4f4fdd,_0x55e559]=(0x0,h[_0x36d433(0x40a)])(((_0x483d7f=_0x4d5a52[_0x36d433(0x492)])==null?void 0x0:_0x483d7f[_0x36d433(0x38f)])??''),[_0x315b45,_0x3b7053]=(0x0,h[_0x36d433(0x40a)])(((_0x2dee21=_0x4d5a52['field'])==null?void 0x0:_0x2dee21[_0x36d433(0x350)])??y['PivotSubtotalTypeEnum'][_0x36d433(0x18a)]),[_0x371787,_0x32f409]=(0x0,h['useState'])(((_0x187b91=_0x4d5a52[_0x36d433(0x492)])==null?void 0x0:_0x187b91['format'])??'');if(!_0x4d5a52[_0x36d433(0x492)])return null;let _0x28d9af=(0x0,g['jsxs'])(_0x36d433(0x2f7),{'className':(0x0,f[_0x36d433(0x373)])('univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x36d433(0x209)]),'children':[(0x0,g[_0x36d433(0x23f)])(_0x36d433(0x460),{'className':_0x36d433(0x2da),'children':_0x94e85f['t'](_0x36d433(0x38a))}),(0x0,g[_0x36d433(0x38d)])(_0x36d433(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x94e85f['t'](_0x36d433(0x41d)),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x104)],{'value':_0x4f4fdd,'onChange':_0x55e559})]}),(0x0,g[_0x36d433(0x38d)])(_0x36d433(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x94e85f['t'](_0x36d433(0x3be)),(0x0,g[_0x36d433(0x23f)])(G,{'value':String(_0x315b45),'options':$e[_0x36d433(0x48a)](_0x165019=>({'value':String(_0x165019['value']),'label':_0x94e85f['t'](_0x165019[_0x36d433(0x1cf)])})),'onChange':_0x4e030a=>{const _0x51e567=_0x36d433;let _0x2b378c=$e['find'](_0x375cd8=>String(_0x375cd8[_0x51e567(0x351)])===_0x4e030a);_0x2b378c&&_0x3b7053(_0x2b378c[_0x51e567(0x351)]);}})]}),(0x0,g['jsxs'])(_0x36d433(0x1c2),{'className':_0x36d433(0x13d),'children':[_0x94e85f['t'](_0x36d433(0x251)),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x104)],{'value':_0x371787,'onChange':_0x32f409})]}),(0x0,g[_0x36d433(0x38d)])('div',{'className':_0x36d433(0x290),'children':[(0x0,g['jsx'])(f[_0x36d433(0x3da)],{'onClick':_0x4d5a52['onCancel'],'children':_0x94e85f['t'](_0x36d433(0x4ec))}),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x3da)],{'variant':_0x36d433(0x31d),'disabled':!_0x4f4fdd['trim'](),'onClick':()=>_0x4d5a52[_0x36d433(0x398)](_0x4f4fdd[_0x36d433(0x342)](),_0x315b45,_0x371787),'children':_0x94e85f['t'](_0x36d433(0x2e7))})]})]});return(0x0,g[_0x36d433(0x23f)])(t['BaseMobileDrawer'],{'title':_0x94e85f['t'](_0x36d433(0x38a)),'onClose':_0x4d5a52[_0x36d433(0x3b5)],'children':_0x28d9af});}function st(_0x3476d8){const _0x4ff643=_0x30b590;let {config:_0x1a289c,commit:_0x416fb5}=_0x3476d8,_0x191d0f=(0x0,m[_0x4ff643(0x155)])(a[_0x4ff643(0x3ea)]),_0x4835f0=_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x45a)],_0x88316b=_0x3e3798=>_0x416fb5(_0x75e506=>_0x75e506[_0x4ff643(0x3b4)]({..._0x75e506[_0x4ff643(0x4c0)](),..._0x3e3798}));return(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x460),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x1b9)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x122)]),'options':[{'value':String(y[_0x4ff643(0x480)][_0x4ff643(0x3ca)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(y['PivotLayoutTypeEnum'][_0x4ff643(0xdb)]),'label':_0x191d0f['t'](_0x4ff643(0x43b))},{'value':String(y[_0x4ff643(0x480)][_0x4ff643(0x1a9)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x38d671=>{const _0xd7a9de=_0x4ff643;let _0x505f45=[y[_0xd7a9de(0x480)][_0xd7a9de(0x3ca)],y[_0xd7a9de(0x480)][_0xd7a9de(0xdb)],y[_0xd7a9de(0x480)][_0xd7a9de(0x1a9)]]['find'](_0x9768ac=>String(_0x9768ac)===_0x38d671);_0x505f45!==void 0x0&&_0x416fb5(_0x277701=>_0x277701[_0xd7a9de(0xdd)](_0x505f45));}})]}),[{'key':_0x4ff643(0x147),'label':_0x4ff643(0x465),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x4ff643(0x1f9),'defaultValue':!0x1},{'key':_0x4ff643(0x295),'label':_0x4ff643(0x458),'defaultValue':!0x0},{'key':_0x4ff643(0x46c),'label':_0x4ff643(0x232),'defaultValue':!0x0},{'key':'showColSubtotal','label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x4ff643(0x48a)](_0x30f7c6=>(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x3d4),'children':[(0x0,g[_0x4ff643(0x23f)])(f['Checkbox'],{'checked':!!(_0x4835f0[_0x30f7c6[_0x4ff643(0x2d3)]]??_0x30f7c6[_0x4ff643(0x114)]),'disabled':_0x30f7c6['key']===_0x4ff643(0x147)&&_0x1a289c['pivot']['layout']===y[_0x4ff643(0x480)][_0x4ff643(0xdb)],'onChange':_0xdc0ac8=>_0x88316b({[_0x30f7c6['key']]:!!_0xdc0ac8})}),_0x191d0f['t'](_0x30f7c6[_0x4ff643(0x1c2)])]},_0x30f7c6[_0x4ff643(0x2d3)])),_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x122)]===y[_0x4ff643(0x480)][_0x4ff643(0x1a9)]&&(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x329)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x4835f0[_0x4ff643(0x1a4)]??y[_0x4ff643(0x265)]['top']),'options':[{'value':String(y[_0x4ff643(0x265)][_0x4ff643(0x291)]),'label':_0x191d0f['t'](_0x4ff643(0x31b))},{'value':String(y[_0x4ff643(0x265)][_0x4ff643(0x1c3)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x140cd5=>{const _0x2613d7=_0x4ff643;let _0x52f7a9=[y['PivotSubtotalPositionEnum'][_0x2613d7(0x291)],y[_0x2613d7(0x265)][_0x2613d7(0x1c3)]]['find'](_0x4e8246=>String(_0x4e8246)===_0x140cd5);_0x52f7a9!==void 0x0&&_0x88316b({'rowSubtotalPosition':_0x52f7a9});}})]}),(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t']('bases-dashboard-ui.pivot.valuePosition'),(0x0,g['jsx'])(G,{'className':_0x4ff643(0x24f),'value':String(_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x2a4)]===y[_0x4ff643(0x22e)][_0x4ff643(0x202)]?y[_0x4ff643(0x22e)][_0x4ff643(0xf2)]:_0x1a289c['pivot']['valuePosition']),'options':[{'value':String(y[_0x4ff643(0x22e)]['Column']),'label':_0x191d0f['t'](_0x4ff643(0x43d))},{'value':String(y[_0x4ff643(0x22e)]['Row']),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x144fd2=>{const _0x471aeb=_0x4ff643;let _0x9c99b4=[y[_0x471aeb(0x22e)]['Column'],y[_0x471aeb(0x22e)]['Row']][_0x471aeb(0x41e)](_0x2dc2d6=>String(_0x2dc2d6)===_0x144fd2);_0x9c99b4!==void 0x0&&_0x416fb5(_0x365f96=>_0x365f96[_0x471aeb(0x11b)](_0x9c99b4,_0x365f96[_0x471aeb(0x131)]()<0x0?0x0:_0x365f96[_0x471aeb(0x131)]()));}})]}),(0x0,g['jsxs'])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x264)),(0x0,g['jsx'])(f['InputNumber'],{'className':_0x4ff643(0x4a4),'min':0x1,'max':0x14,'value':_0x4835f0[_0x4ff643(0x3d6)]??0x1,'onChange':_0x43ff99=>{const _0x1bf5f4=_0x4ff643;let _0x2cb995=Number(_0x43ff99);Number[_0x1bf5f4(0x467)](_0x2cb995)&&_0x2cb995>=0x1&&_0x88316b({'pageWrap':_0x2cb995});}})]}),(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x3c2)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x4835f0[_0x4ff643(0x4df)]??!0x1),'options':[{'value':'false','label':_0x191d0f['t'](_0x4ff643(0x287))},{'value':_0x4ff643(0x445),'label':_0x191d0f['t'](_0x4ff643(0x3f9))}],'onChange':_0x29a353=>_0x88316b({'pageOverThenDown':_0x29a353===_0x4ff643(0x445)})})]})]});}function ct(_0x18a984,_0x1c1062,_0x4deb97,_0x3fba22){const _0x40d750=_0x30b590;let _0x1bc190=_0x18a984[_0x40d750(0x374)](_0x1c1062)[_0x40d750(0x41e)](_0x119fef=>_0x18a984[_0x40d750(0x40d)](_0x119fef[_0x40d750(0x3f6)]())['area']!==y['PivotTableFiledAreaEnum'][_0x40d750(0x19b)]);_0x4deb97!==y[_0x40d750(0xd8)]['Value']&&_0x1bc190?_0x18a984[_0x40d750(0x3ad)](_0x1bc190['getId'](),_0x4deb97,_0x3fba22):_0x18a984[_0x40d750(0x396)](_0x1c1062,_0x4deb97,_0x3fba22);}function lt(_0x2bf1d6,_0xd5c934,_0x4e759f,_0x2cb198){const _0x4d11c9=_0x30b590;return _0xd5c934===y[_0x4d11c9(0x498)][_0x4d11c9(0x3b9)]?_0x2cb198:_0xd5c934===y[_0x4d11c9(0x498)]['date']&&_0x4e759f?a[_0x4d11c9(0x4e4)]['format'](_0x4e759f,Number(_0x2bf1d6)):_0x2bf1d6;}function ut(_0x4e0da1){const _0x2824d3=_0x30b590;return _0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x48b)]||_0x4e0da1[_0x2824d3(0x11c)]===a[_0x2824d3(0x1d5)][_0x2824d3(0x400)]||_0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x1a6)]||_0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x234)];}function dt(_0x34cae7){const _0x58b62d=_0x30b590;switch(_0x34cae7){case y[_0x58b62d(0xd8)][_0x58b62d(0x44f)]:return _0x58b62d(0x194);case y[_0x58b62d(0xd8)]['Column']:return _0x58b62d(0x25a);case y[_0x58b62d(0xd8)][_0x58b62d(0x19b)]:return'bases-dashboard-ui.pivot.addToValue';default:return'bases-dashboard-ui.pivot.addToFilter';}}function ft({config:_0x19614a,onChange:_0x136f5e,runtime:_0x1bbaf1,table:_0x577208}){const _0xc0ea5a=_0x30b590;let _0x3ba1cf=(0x0,m[_0xc0ea5a(0x155)])(a[_0xc0ea5a(0x3ea)]),[_0xd27b47,_0x40d9b7]=(0x0,h[_0xc0ea5a(0x40a)])(_0xc0ea5a(0xd9));return(0x0,g[_0xc0ea5a(0x38d)])(_0xc0ea5a(0x4c9),{'className':_0xc0ea5a(0x4b3),'children':[(0x0,g[_0xc0ea5a(0x23f)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x3ba1cf['t'](_0xc0ea5a(0x2df)),'className':_0xc0ea5a(0x4e0),'items':[{'label':_0x3ba1cf['t'](_0xc0ea5a(0x478)),'panelId':_0xc0ea5a(0x3a0),'value':_0xc0ea5a(0xd9)},{'label':_0x3ba1cf['t'](_0xc0ea5a(0x46b)),'panelId':_0xc0ea5a(0x3d8),'value':_0xc0ea5a(0x258)}],'value':_0xd27b47,'variant':_0xc0ea5a(0x4ea),'onChange':_0x40d9b7}),(0x0,g['jsx'])('div',{'className':_0xc0ea5a(0x452),'children':_0xd27b47==='chart'?_0x1bbaf1&&(0x0,g['jsx'])(he,{'config':_0x19614a,'runtime':_0x1bbaf1,'tableName':_0x577208[_0xc0ea5a(0x451)],'onChange':_0x136f5e}):(0x0,g['jsx'])(et,{'config':_0x19614a,'table':_0x577208,'onChange':_0x136f5e})})]});}function pt({tableId:_0x41729d,unitId:_0x58234f,viewId:_0x52e040}){const _0x86a241=_0x30b590;let [_0xe6d1fa,_0x167eee]=(0x0,h['useState'])(!0x1),_0x4640d2=(0x0,m[_0x86a241(0x155)])(a[_0x86a241(0x279)]),_0x5a81b5=(0x0,m['useDependency'])(a[_0x86a241(0x245)]),_0x1e72da=(0x0,m['useDependency'])(a[_0x86a241(0x325)]),_0x4d03d5=(0x0,m[_0x86a241(0x155)])(a[_0x86a241(0x3ea)]),_0x1d6b69=(0x0,m['useDependency'])(e[_0x86a241(0x4b6)]),[_0x3cb64f,_0x520adc]=(0x0,h[_0x86a241(0x40a)])(null),[_0x348af1,_0x19a1e4]=(0x0,h['useState'])(null),_0x69e9fe=(0x0,h[_0x86a241(0x414)])(_0x86a241(0x286)+(0x0,a[_0x86a241(0x3f8)])(0x8)),[_0x408780,_0x16f9f3]=(0x0,h['useState'])(!0x1),_0x39d9d2=_0x5a81b5[_0x86a241(0x3e7)](_0x58234f,a[_0x86a241(0x3d5)][_0x86a241(0x1a2)]),_0x5492d5=_0x39d9d2==null?void 0x0:_0x39d9d2['getSnapshot']()[_0x86a241(0x4fe)][_0x41729d],_0x3b7271=_0x5492d5==null?void 0x0:_0x5492d5['views'][_0x52e040],_0x34782c=mt(_0x3b7271),_0x3e8d63=T(_0x58234f,_0x41729d,_0x52e040);if((0x0,h[_0x86a241(0x3dd)])(()=>{const _0x3a4dd6=_0x86a241;if(!_0x34782c)return;let _0x1ce67f=_0x69e9fe[_0x3a4dd6(0x216)];return _0x1d6b69['acquireChartRuntime'](_0x1ce67f,{'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'filters':[]}),()=>{const _0x166876=_0x3a4dd6;_0x1d6b69[_0x166876(0x275)](_0x58234f,_0x1ce67f);};},[_0x34782c,_0x1d6b69,_0x41729d,_0x58234f,_0x52e040]),(0x0,h[_0x86a241(0x3dd)])(()=>{const _0x3e8734=_0x86a241;if(!mt(_0x3b7271))return;let _0x2766b=!0x0,_0x4f4911={'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'filters':[_0x3b7271[_0x3e8734(0x141)]??null]};return _0x1d6b69[_0x3e8734(0x40f)](_0x58234f,_0x69e9fe[_0x3e8734(0x216)],_0x4f4911)['then'](_0x4548a9=>{const _0x43ad1c=_0x3e8734;_0x2766b&&_0x4548a9&&(_0x520adc(_0x4548a9),_0x19a1e4(_0x1d6b69['getChartRuntime'](_0x58234f,_0x69e9fe[_0x43ad1c(0x216)])??null),_0x16f9f3(!0x1));})['catch'](_0x1b3604=>{const _0x5e9ec4=_0x3e8734;_0x1e72da[_0x5e9ec4(0x305)](_0x5e9ec4(0x263),_0x1b3604),_0x2766b&&(_0x520adc(null),_0x16f9f3(!0x0));}),()=>{_0x2766b=!0x1;};},[_0x1e72da,_0x1d6b69,_0x41729d,_0x58234f,_0x3b7271,_0x52e040]),!_0x5492d5||!mt(_0x3b7271))return null;let _0xae49dd=_0x1d6b69['getChartRuntime'](_0x58234f,_0x69e9fe[_0x86a241(0x216)])===_0x348af1?_0x348af1:null,_0x4967fd=_0x3cb64f?(0x0,g[_0x86a241(0x38d)])(_0x86a241(0x460),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x3b7271[_0x86a241(0x1ca)][_0x86a241(0x10e)]===_0x86a241(0x23b)?_0x86a241(0x4a8):_0x86a241(0x135)},'children':[_0x3b7271['config'][_0x86a241(0x10e)]!==_0x86a241(0x4da)&&_0xae49dd&&(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x22c),'children':(0x0,g[_0x86a241(0x23f)])(re,{'isRowDirection':(0x0,e[_0x86a241(0xe7)])(_0x3b7271[_0x86a241(0x1ca)]['chart']['orient']),'runtime':_0xae49dd})}),_0x3b7271[_0x86a241(0x1ca)][_0x86a241(0x10e)]!==_0x86a241(0xd9)&&(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x2eb),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x3b7271[_0x86a241(0x1ca)]['pivot'],'view':_0x3cb64f[_0x86a241(0x1b4)]})})]}):(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x378),'children':_0x408780?_0x4d03d5['t'](_0x86a241(0x4d9)):_0x4d03d5['t'](_0x86a241(0x3f2))}),_0x53c8e2=(0x0,g[_0x86a241(0x23f)])(ft,{'config':_0x3b7271[_0x86a241(0x1ca)],'runtime':_0xae49dd,'table':_0x5492d5,'onChange':_0xd81053=>{const _0x3dc4de=_0x86a241;_0x5a81b5[_0x3dc4de(0x217)](_0x58234f),_0x5a81b5[_0x3dc4de(0x10f)](_0x58234f),_0x4640d2[_0x3dc4de(0x387)](e[_0x3dc4de(0x2af)]['id'],{'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'patch':_0xd81053})['catch'](_0x7e2c4a=>_0x1e72da['error'](_0x3dc4de(0x402),_0x7e2c4a));}});return(0x0,g['jsx'])(ue,{'children':(0x0,g['jsxs'])(_0x86a241(0x460),{'className':_0x86a241(0x1a3),'children':[_0x3e8d63&&(0x0,g[_0x86a241(0x23f)])(f[_0x86a241(0x3da)],{'onClick':()=>_0x167eee(!0x0),'children':_0x4d03d5['t'](_0x86a241(0x478))}),(0x0,g['jsx'])(_0x86a241(0x460),{'className':_0x86a241(0x3df),'children':_0x4967fd}),_0x3e8d63&&_0xe6d1fa&&(0x0,g[_0x86a241(0x23f)])(t[_0x86a241(0x105)],{'title':_0x4d03d5['t'](_0x86a241(0x2df)),'onClose':()=>_0x167eee(!0x1),'children':_0x53c8e2})]})});}function mt(_0x402bb4){const _0x1e66cc=_0x30b590;return(_0x402bb4==null?void 0x0:_0x402bb4[_0x1e66cc(0x11c)])===a[_0x1e66cc(0x4a1)][_0x1e66cc(0x2d0)]&&typeof _0x402bb4[_0x1e66cc(0x1ca)]==_0x1e66cc(0x368)&&_0x402bb4[_0x1e66cc(0x1ca)]!==null&&_0x1e66cc(0x258)in _0x402bb4['config']&&_0x1e66cc(0xd9)in _0x402bb4[_0x1e66cc(0x1ca)]&&_0x1e66cc(0x10e)in _0x402bb4[_0x1e66cc(0x1ca)];}let ht=class extends a[_0x30b590(0x35a)]{constructor(_0x2b4178,_0x9f28b8,_0x963913,_0x4aebb9,_0x2d0c8c,_0x3c023c){const _0x54e9dd=_0x30b590;super(),this[_0x54e9dd(0x10b)](_0x9f28b8['register']({'type':a[_0x54e9dd(0x4a1)][_0x54e9dd(0x2d0)],'renderMode':_0x54e9dd(0x369),'icon':s[_0x54e9dd(0x14b)],'component':pt,'menu':{get 'label'(){const _0x454a84=_0x54e9dd;return _0x3c023c['t'](_0x454a84(0x2df));},get 'description'(){const _0x5d7695=_0x54e9dd;return _0x3c023c['t'](_0x5d7695(0x2dc));},get 'defaultName'(){return _0x3c023c['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x54e9dd(0x10b)](_0x2b4178[_0x54e9dd(0x18b)](gt(_0x963913,_0x4aebb9,_0x2d0c8c,_0x3c023c)));}};ht=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t[_0x30b590(0x313)]),N(0x2,(0x0,a[_0x30b590(0x123)])(e[_0x30b590(0x3a7)])),N(0x3,a['ICommandService']),N(0x4,a[_0x30b590(0x164)]),N(0x5,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)]))],ht);function gt(_0x14eef4,_0x3dc137,_0xc319f7,_0xac472e){const _0x3f70d0=_0x30b590;return{'change$':(0x0,c[_0x3f70d0(0x17d)])(_0x14eef4[_0x3f70d0(0x435)],_0xc319f7[_0x3f70d0(0x11e)]),'component':Ie,get 'labels'(){const _0x479006=_0x3f70d0;return{'add':_0xac472e['t'](_0x479006(0x347)),'configure':_0x1fd62c=>_0xac472e['t']('bases-dashboard-ui.dashboard.configure',_0x1fd62c),'delete':_0xac472e['t'](_0x479006(0x2f6)),'new':_0xac472e['t'](_0x479006(0x35e)),'rename':_0xac472e['t'](_0x479006(0x136)),'search':_0xac472e['t'](_0x479006(0x459)),'section':_0xac472e['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x346141=>{const _0x2a75e6=_0x3f70d0;let _0x5ec6f0=_0x14eef4['getResource'](_0x346141);return _0x5ec6f0[_0x2a75e6(0x453)][_0x2a75e6(0x4e3)](_0x39293e=>{const _0x5cd3ab=_0x2a75e6;let _0x23848a=_0x5ec6f0[_0x5cd3ab(0x152)][_0x39293e];return _0x23848a?[{'id':_0x23848a['id'],'name':_0x23848a[_0x5cd3ab(0x451)],'readonly':!(0x0,e['canEditBaseDashboard'])(_0xc319f7,_0x346141,_0x23848a['id'])}]:[];});},'create':async _0x1ecb2a=>{const _0x10e7cd=_0x3f70d0;let _0x44726a=_0x14eef4['getResource'](_0x1ecb2a),_0x3f1c29='dashboard-'+(0x0,a[_0x10e7cd(0x3f8)])(0x8),_0x1bdf97=_t(_0x44726a[_0x10e7cd(0x453)]['flatMap'](_0x3723de=>{const _0x378a6f=_0x10e7cd;let _0x5affe3=_0x44726a[_0x378a6f(0x152)][_0x3723de];return _0x5affe3?[_0x5affe3[_0x378a6f(0x451)]]:[];}),_0x1ffa58=>_0xac472e['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x1ffa58)));return await _0x3dc137[_0x10e7cd(0x387)](e[_0x10e7cd(0x48e)]['id'],{'unitId':_0x1ecb2a,'dashboard':{'id':_0x3f1c29,'name':_0x1bdf97,'widgetOrder':[],'widgets':{}}})?_0x3f1c29:null;},'rename':async(_0x186776,_0x439012,_0x41331b)=>{const _0x267e26=_0x3f70d0;let _0x55a777=_0x14eef4[_0x267e26(0x499)](_0x186776,_0x439012);return!!(_0x55a777&&await _0x3dc137[_0x267e26(0x387)](e[_0x267e26(0x180)]['id'],{'unitId':_0x186776,'dashboard':{..._0x55a777,'name':_0x41331b}}));},'remove':(_0x49a49b,_0x1b5275)=>_0x3dc137[_0x3f70d0(0x387)](e[_0x3f70d0(0x1d4)]['id'],{'unitId':_0x49a49b,'dashboardId':_0x1b5275})};}function _t(_0xaaf626,_0x186904){const _0x13054a=_0x30b590;let _0x4b6917=new Set(_0xaaf626),_0x202e81=_0x4b6917[_0x13054a(0x39c)]+0x1,_0x2811d7=_0x186904(_0x202e81);for(;_0x4b6917[_0x13054a(0x3a9)](_0x2811d7);)_0x202e81+=0x1,_0x2811d7=_0x186904(_0x202e81);return _0x2811d7;}let Y=class extends a[_0x30b590(0x206)]{constructor(_0x1035bd=C,_0x336561,_0x43e72c){const _0x2c160a=_0x30b590;super(),this['_config']=_0x1035bd,this[_0x2c160a(0x477)]=_0x336561,this[_0x2c160a(0x3dc)]=_0x43e72c;let {..._0x20af9d}=(0x0,a['merge'])({},C,this[_0x2c160a(0x2bb)]);this[_0x2c160a(0x3dc)][_0x2c160a(0x469)](S,_0x20af9d);}[_0x30b590(0x235)](){const _0xe007f=_0x30b590;this['_injector'][_0xe007f(0x4c5)]([F]),this[_0xe007f(0x477)][_0xe007f(0x4c5)]([W]),this[_0xe007f(0x477)][_0xe007f(0x4c5)]([ht]);}[_0x30b590(0x28c)](){const _0x525350=_0x30b590;(0x0,a[_0x525350(0x25e)])(this[_0x525350(0x477)],[[F],[W],[ht]]);}};B(Y,'type',a['UniverInstanceType'][_0x30b590(0x1a2)]),B(Y,_0x30b590(0x173),_0x30b590(0x1bf)),B(Y,'packageName',b),B(Y,_0x30b590(0x406),x),Y=P([(0x0,a['DependentOn'])(r[_0x30b590(0x1e7)],e[_0x30b590(0x18c)],t[_0x30b590(0x37b)],n[_0x30b590(0x425)],i[_0x30b590(0x35c)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a['Inject'])(a[_0x30b590(0x495)])),N(0x2,a['IConfigService'])],Y);function vt(_0x1ad99a,_0x3452f4,_0x4df187,_0x1d0eb5){const _0x817e38=_0x30b590;let _0x236d2d={..._0x1ad99a};if(_0x3452f4[_0x817e38(0x30a)]('w')){let _0x47b2ad=_0x1ad99a[_0x817e38(0x278)]+_0x1ad99a[_0x817e38(0x280)];_0x236d2d[_0x817e38(0x278)]=Math[_0x817e38(0x26a)](0x0,Math[_0x817e38(0x2f9)](_0x47b2ad-0x1,_0x1ad99a['column']+_0x4df187)),_0x236d2d['columnSpan']=_0x47b2ad-_0x236d2d[_0x817e38(0x278)];}else _0x3452f4[_0x817e38(0x30a)]('e')&&(_0x236d2d['columnSpan']=Math['max'](0x1,Math[_0x817e38(0x2f9)](e[_0x817e38(0xf4)]-_0x1ad99a[_0x817e38(0x278)],_0x1ad99a[_0x817e38(0x280)]+_0x4df187)));if(_0x3452f4[_0x817e38(0x30a)]('n')){let _0xd3e485=_0x1ad99a[_0x817e38(0x15e)]+_0x1ad99a[_0x817e38(0x4aa)];_0x236d2d[_0x817e38(0x15e)]=Math[_0x817e38(0x26a)](0x0,Math['min'](_0xd3e485-0x1,_0x1ad99a['row']+_0x1d0eb5)),_0x236d2d[_0x817e38(0x4aa)]=_0xd3e485-_0x236d2d[_0x817e38(0x15e)];}else _0x3452f4[_0x817e38(0x30a)]('s')&&(_0x236d2d[_0x817e38(0x4aa)]=Math[_0x817e38(0x26a)](0x1,_0x1ad99a[_0x817e38(0x4aa)]+_0x1d0eb5));return _0x236d2d;}function yt(_0x38ecd5){const _0x145e77=_0x30b590;let _0x24ae83=Math[_0x145e77(0x26a)](0x1,Math[_0x145e77(0x2f9)](e[_0x145e77(0xf4)],Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x280)])));return{'column':Math[_0x145e77(0x26a)](0x0,Math[_0x145e77(0x2f9)](e['BASES_DASHBOARD_GRID_COLUMNS']-_0x24ae83,Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x278)]))),'row':Math['max'](0x0,Math['round'](_0x38ecd5[_0x145e77(0x15e)])),'columnSpan':_0x24ae83,'rowSpan':Math['max'](0x1,Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x4aa)]))};}function bt(_0xa52afb,_0x49d2ee,_0x2d800a){const _0x208b93=_0x30b590;let _0x2bed05=new Map(_0xa52afb),_0x1e32f7=yt(_0x2d800a);_0x2bed05[_0x208b93(0x490)](_0x49d2ee,_0x1e32f7);let _0x23ada1=[[_0x49d2ee,_0x1e32f7]];for(let [_0x5e3202,_0x12afc4]of _0x2bed05){if(_0x5e3202===_0x49d2ee)continue;let _0x462bcb=yt(_0x12afc4);for(;_0x23ada1[_0x208b93(0x364)](([,_0x50aacf])=>St(_0x462bcb,_0x50aacf));)_0x462bcb={..._0x462bcb,'row':_0x462bcb[_0x208b93(0x15e)]+0x1};for(;_0x462bcb['row']>0x0;){let _0x5c5df7={..._0x462bcb,'row':_0x462bcb['row']-0x1};if(_0x23ada1[_0x208b93(0x364)](([,_0x43a98e])=>St(_0x5c5df7,_0x43a98e)))break;_0x462bcb=_0x5c5df7;}_0x23ada1[_0x208b93(0x4d5)]([_0x5e3202,_0x462bcb]),_0x2bed05[_0x208b93(0x490)](_0x5e3202,_0x462bcb);}return _0x2bed05;}function xt(_0x48fb1c,_0x1fe062,_0x47e1d7,_0x2c04f2=0x38,_0x2675b1=0x16){const _0x26f258=_0x30b590;return _0x48fb1c<_0x1fe062+_0x2c04f2?-Math[_0x26f258(0x149)](_0x2675b1*(0x1-Math[_0x26f258(0x26a)](0x0,_0x48fb1c-_0x1fe062)/_0x2c04f2)):_0x48fb1c>_0x47e1d7-_0x2c04f2?Math['ceil'](_0x2675b1*(0x1-Math[_0x26f258(0x26a)](0x0,_0x47e1d7-_0x48fb1c)/_0x2c04f2)):0x0;}function St(_0x5d25ff,_0x45a87d){const _0x57e645=_0x30b590;return _0x5d25ff[_0x57e645(0x278)]<_0x45a87d[_0x57e645(0x278)]+_0x45a87d[_0x57e645(0x280)]&&_0x5d25ff['column']+_0x5d25ff['columnSpan']>_0x45a87d['column']&&_0x5d25ff[_0x57e645(0x15e)]<_0x45a87d['row']+_0x45a87d['rowSpan']&&_0x5d25ff[_0x57e645(0x15e)]+_0x5d25ff[_0x57e645(0x4aa)]>_0x45a87d[_0x57e645(0x15e)];}const Ct=[{'direction':'nw','className':_0x30b590(0x254)},{'direction':'n','className':_0x30b590(0x1b3)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':_0x30b590(0x11d)},{'direction':'se','className':_0x30b590(0x261)},{'direction':'s','className':_0x30b590(0x2ec)},{'direction':'sw','className':'univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'w','className':_0x30b590(0x4dc)}];function wt({dashboard:_0x5234da,dragLabel:_0x323087,editable:_0x52ab52=!0x0,onLayoutsCommit:_0x202721,onSelectWidget:_0x44985e,renderWidget:_0xda5ba0,renderWidgetActions:_0x4fe516,resizeLabel:_0x2d7279,selectedWidgetId:_0x598fe6,widgetLabel:_0x29795}){const _0x57e339=_0x30b590;let _0x2449bd=(0x0,h[_0x57e339(0x414)])(null),_0x100c7c=(0x0,h[_0x57e339(0x414)])(null),[_0x570862,_0x5a2c39]=(0x0,h[_0x57e339(0x40a)])(!0x1),_0x3d5b23=(0x0,h[_0x57e339(0x2c1)])(()=>new Map(_0x5234da[_0x57e339(0x4c7)][_0x57e339(0x4e3)](_0x28e423=>{const _0x1db7d7=_0x57e339;let _0x3491c8=_0x5234da[_0x1db7d7(0x110)][_0x28e423];return _0x3491c8?[[_0x28e423,_0x3491c8[_0x1db7d7(0x122)]]]:[];})),[_0x5234da]),[_0x40f70c,_0x51af28]=(0x0,h[_0x57e339(0x40a)])(_0x3d5b23);(0x0,h[_0x57e339(0x3dd)])(()=>{const _0x473722=_0x57e339;_0x100c7c[_0x473722(0x216)]||_0x51af28(_0x3d5b23);},[_0x3d5b23]),(0x0,h[_0x57e339(0x3dd)])(()=>{const _0xa30977=_0x57e339;if(!_0x570862)return;let _0x28050a=_0x5ec717=>{const _0x3a20d5=_0x1e15;let _0x373bc2=_0x2449bd[_0x3a20d5(0x216)];if(!_0x373bc2)return null;let _0x279e38=_0x373bc2['getBoundingClientRect'](),_0x50176d=Math[_0x3a20d5(0x26a)](0x1,(_0x279e38[_0x3a20d5(0x39e)]-0x8*(e[_0x3a20d5(0xf4)]-0x1))/e[_0x3a20d5(0xf4)]),_0x46194e=Math[_0x3a20d5(0x1a8)]((_0x373bc2[_0x3a20d5(0x2a0)]-_0x5ec717['startScrollTop'])/(e[_0x3a20d5(0xfd)]+0x8)),_0x2e6244=Math['round']((_0x5ec717[_0x3a20d5(0x4d0)]-_0x5ec717[_0x3a20d5(0x355)])/(_0x50176d+0x8)),_0x1612df=Math[_0x3a20d5(0x1a8)]((_0x5ec717[_0x3a20d5(0x483)]-_0x5ec717[_0x3a20d5(0x146)])/(e[_0x3a20d5(0xfd)]+0x8))+_0x46194e,_0x4fd04c=_0x5ec717[_0x3a20d5(0x3e5)]===_0x3a20d5(0x42f)?{..._0x5ec717[_0x3a20d5(0x4b2)],'column':_0x5ec717[_0x3a20d5(0x4b2)][_0x3a20d5(0x278)]+_0x2e6244,'row':_0x5ec717[_0x3a20d5(0x4b2)][_0x3a20d5(0x15e)]+_0x1612df}:vt(_0x5ec717[_0x3a20d5(0x4b2)],_0x5ec717[_0x3a20d5(0x488)]??'se',_0x2e6244,_0x1612df),_0x375af3=bt(_0x5ec717['initialLayouts'],_0x5ec717['id'],_0x4fd04c);return _0x51af28(_0x375af3),_0x375af3;},_0x3a8ac2=_0x19edd8=>{const _0x21485e=_0x1e15;let _0x2f78e7=_0x100c7c[_0x21485e(0x216)];if(!_0x2f78e7)return;let _0xc4403b={..._0x2f78e7,'pointerX':_0x19edd8[_0x21485e(0x491)],'pointerY':_0x19edd8[_0x21485e(0x12f)]};_0x100c7c[_0x21485e(0x216)]=_0xc4403b;},_0x46eb8c=()=>{const _0xf829b3=_0x1e15;let _0x3fbae4=_0x100c7c[_0xf829b3(0x216)],_0x140ca3=_0x3fbae4?_0x28050a(_0x3fbae4):null;_0x100c7c[_0xf829b3(0x216)]=null,_0x5a2c39(!0x1),_0x140ca3&&_0x202721(_0x140ca3);},_0x3d64ec=0x0,_0x213978=()=>{const _0x3733d4=_0x1e15;let _0x121155=_0x2449bd[_0x3733d4(0x216)],_0x20e74d=_0x100c7c[_0x3733d4(0x216)];if(_0x121155&&_0x20e74d){let _0x115f77=_0x121155[_0x3733d4(0x118)](),_0xbb2c27=xt(_0x20e74d[_0x3733d4(0x483)],_0x115f77[_0x3733d4(0x291)],_0x115f77[_0x3733d4(0x1c3)]);_0xbb2c27!==0x0&&(_0x121155[_0x3733d4(0x2a0)]+=_0xbb2c27),_0x28050a(_0x20e74d),_0x3d64ec=requestAnimationFrame(_0x213978);}};return _0x3d64ec=requestAnimationFrame(_0x213978),window[_0xa30977(0x42d)](_0xa30977(0x49b),_0x3a8ac2),window[_0xa30977(0x42d)]('pointerup',_0x46eb8c),()=>{const _0x518b2c=_0xa30977;cancelAnimationFrame(_0x3d64ec),window['removeEventListener'](_0x518b2c(0x49b),_0x3a8ac2),window['removeEventListener']('pointerup',_0x46eb8c);};},[_0x570862,_0x202721]);let _0x159624=Math[_0x57e339(0x26a)](0x8,...Array[_0x57e339(0x443)](_0x40f70c[_0x57e339(0x1ba)]())[_0x57e339(0x48a)](_0x397e99=>_0x397e99[_0x57e339(0x15e)]+_0x397e99[_0x57e339(0x4aa)])),_0xd0ba07=(_0x258f32,_0x290c03,_0x1890ec,_0x54dcf2)=>{const _0x73d595=_0x57e339;_0x258f32['preventDefault'](),_0x258f32[_0x73d595(0x231)]();let _0x5d4460=_0x2449bd['current'],_0x4099f2={'id':_0x290c03['id'],'mode':_0x1890ec,'pointerX':_0x258f32[_0x73d595(0x491)],'pointerY':_0x258f32[_0x73d595(0x12f)],'startX':_0x258f32[_0x73d595(0x491)],'startY':_0x258f32['clientY'],'startScrollTop':(_0x5d4460==null?void 0x0:_0x5d4460[_0x73d595(0x2a0)])??0x0,'initial':_0x40f70c[_0x73d595(0x4ae)](_0x290c03['id'])??_0x290c03[_0x73d595(0x122)],'initialLayouts':new Map(_0x40f70c),'resizeDirection':_0x54dcf2};_0x100c7c['current']=_0x4099f2,_0x5a2c39(!0x0);};return(0x0,g[_0x57e339(0x23f)])(_0x57e339(0x460),{'ref':_0x2449bd,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x57e339(0x373)])(_0x57e339(0x2cd),f[_0x57e339(0x166)]),'onClick':_0x52ab52?_0x2b81ed=>{const _0x48853f=_0x57e339;if(!(_0x2b81ed[_0x48853f(0x12d)]instanceof Node)||!_0x2b81ed[_0x48853f(0x408)]['contains'](_0x2b81ed[_0x48853f(0x12d)]))return;let _0x402926=_0x2b81ed['target']instanceof Element?_0x2b81ed[_0x48853f(0x12d)]:_0x2b81ed[_0x48853f(0x12d)][_0x48853f(0x311)];_0x402926!=null&&_0x402926[_0x48853f(0x372)]('[data-dashboard-widget]')||_0x44985e==null||_0x44985e();}:void 0x0,'children':(0x0,g[_0x57e339(0x23f)])(_0x57e339(0x460),{'data-dashboard-grid':!0x0,'className':_0x57e339(0x42a),'style':{'gap':0x8,'gridAutoRows':e[_0x57e339(0xfd)],'minHeight':_0x159624*(e[_0x57e339(0xfd)]+0x8)},'children':_0x5234da[_0x57e339(0x4c7)]['map'](_0x25e19d=>{const _0x3712dc=_0x57e339;var _0x42493a;let _0x49c14f=_0x5234da[_0x3712dc(0x110)][_0x25e19d],_0x5aaee4=_0x40f70c[_0x3712dc(0x4ae)](_0x25e19d);return!_0x49c14f||!_0x5aaee4?null:(0x0,g[_0x3712dc(0x38d)])(_0x3712dc(0x259),{'data-dashboard-widget':_0x49c14f['id'],'aria-label':_0x49c14f['title']??_0x29795(_0x49c14f),'className':(0x0,f[_0x3712dc(0x373)])(_0x3712dc(0xf5),_0x49c14f[_0x3712dc(0x11c)]===e[_0x3712dc(0x1e4)][_0x3712dc(0x108)]||_0x49c14f['type']===e['BaseDashboardWidgetType'][_0x3712dc(0x31c)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x52ab52&&_0x598fe6===_0x49c14f['id']?_0x3712dc(0x2ea):_0x3712dc(0x389)),'style':{'gridColumn':_0x5aaee4[_0x3712dc(0x278)]+0x1+_0x3712dc(0x3f7)+_0x5aaee4[_0x3712dc(0x280)],'gridRow':_0x5aaee4[_0x3712dc(0x15e)]+0x1+'\x20/\x20span\x20'+_0x5aaee4[_0x3712dc(0x4aa)]},'tabIndex':_0x52ab52?0x0:void 0x0,'onClick':_0x52ab52?()=>_0x44985e==null?void 0x0:_0x44985e(_0x49c14f['id']):void 0x0,'onFocus':_0x52ab52?()=>_0x44985e==null?void 0x0:_0x44985e(_0x49c14f['id']):void 0x0,'children':[_0x52ab52&&(0x0,g[_0x3712dc(0x23f)])(_0x3712dc(0x1e9),{'type':'button','aria-label':_0x323087,'data-dashboard-drag-handle':_0x49c14f['id'],'className':(0x0,f[_0x3712dc(0x373)])(_0x3712dc(0x4cb),_0x570862&&((_0x42493a=_0x100c7c[_0x3712dc(0x216)])==null?void 0x0:_0x42493a['id'])===_0x49c14f['id']&&_0x100c7c[_0x3712dc(0x216)][_0x3712dc(0x3e5)]==='move'?_0x3712dc(0x2e3):_0x3712dc(0x1ee)),'onPointerDown':_0x1a5052=>_0xd0ba07(_0x1a5052,_0x49c14f,_0x3712dc(0x42f)),'children':(0x0,g[_0x3712dc(0x23f)])(s[_0x3712dc(0x4af)],{'className':_0x3712dc(0x21f),'aria-hidden':_0x3712dc(0x445)})}),_0x52ab52&&(0x0,g[_0x3712dc(0x23f)])(_0x3712dc(0x460),{'className':_0x3712dc(0x3d0),'children':_0x4fe516==null?void 0x0:_0x4fe516(_0x49c14f)}),(0x0,g['jsx'])(_0x3712dc(0x460),{'className':_0x3712dc(0x412),'children':_0xda5ba0(_0x49c14f)}),_0x52ab52&&Ct[_0x3712dc(0x48a)](({className:_0x2e3ed8,direction:_0x51a8e4})=>{const _0x4f0d42=_0x3712dc;let _0x1d07c9=_0x51a8e4[_0x4f0d42(0xf8)]===0x2;return(0x0,g[_0x4f0d42(0x23f)])(_0x4f0d42(0x1e9),{'type':_0x4f0d42(0x1e9),'aria-label':_0x2d7279,'data-dashboard-resize-handle':_0x51a8e4,'data-dashboard-resize-control':_0x1d07c9?_0x51a8e4:void 0x0,'data-dashboard-resize-edge':_0x1d07c9?void 0x0:_0x51a8e4,'className':(0x0,f[_0x4f0d42(0x373)])('univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x1d07c9?'univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600':'univer-border-0\x20univer-bg-transparent',_0x2e3ed8,_0x598fe6===_0x49c14f['id']&&_0x4f0d42(0x16d)),'onPointerDown':_0x1123f4=>_0xd0ba07(_0x1123f4,_0x49c14f,_0x4f0d42(0x119),_0x51a8e4)},_0x51a8e4);})]},_0x49c14f['id']);})})});}var Tt;const X={'axis':{...n[_0x30b590(0x33e)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n['DEFAULT_CHART_FUNNEL_VALUES'],'heatmap':n[_0x30b590(0xfa)],'indicatorLine':n[_0x30b590(0x4fa)],'legend':n[_0x30b590(0x361)],'lineAndArea':n[_0x30b590(0x1f3)],'pareto':n[_0x30b590(0x3ab)],'pie':n[_0x30b590(0x4e8)],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n['DEFAULT_CHART_RELATION_VALUES'],'useValueAsSymbolSize':!0x0},'series':{...n[_0x30b590(0x16e)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_[_0x30b590(0x177)][_0x30b590(0x45c)])==null?void 0x0:Tt[_0x30b590(0x352)])??!0x1}},'style':n[_0x30b590(0x233)],'titles':n[_0x30b590(0x1e6)],'trendline':n[_0x30b590(0x1fc)],'waterfall':{...n[_0x30b590(0x306)],'useSubtotal':!0x0},'waterfallStyle':n[_0x30b590(0x1d1)],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},Et=[_['ChartTypeBits'][_0x30b590(0x266)],_[_0x30b590(0x1f6)][_0x30b590(0x14c)],_[_0x30b590(0x1f6)][_0x30b590(0x300)],_[_0x30b590(0x1f6)]['Scatter'],_['ChartTypeBits']['Funnel'],_['ChartTypeBits'][_0x30b590(0x4a6)],_[_0x30b590(0x1f6)][_0x30b590(0x223)],_[_0x30b590(0x1f6)]['Heatmap'],_[_0x30b590(0x1f6)][_0x30b590(0x3aa)],_[_0x30b590(0x1f6)][_0x30b590(0x42b)],_['ChartTypeBits']['Histogram'],_[_0x30b590(0x1f6)][_0x30b590(0x421)],_[_0x30b590(0x1f6)][_0x30b590(0x2b0)],_[_0x30b590(0x1f6)][_0x30b590(0x358)],_[_0x30b590(0x1f6)][_0x30b590(0xd5)]];function Dt(_0x5e8898){const _0x4fcab4=_0x30b590;let {config:_0x3c11e2,onChange:_0x56ffdf,runtime:_0x5f4a81,tableName:_0x3de085}=_0x5e8898,_0x453248=(0x0,m[_0x4fcab4(0x155)])(W),_0x59b916=(0x0,m[_0x4fcab4(0x155)])(a[_0x4fcab4(0x3ea)]),[_0x41adc1,_0xb57dbe]=(0x0,h[_0x4fcab4(0x40a)])(n[_0x4fcab4(0x487)][_0x4fcab4(0x1d6)]),_0x501aa5=(0x0,h[_0x4fcab4(0x2c1)])(()=>new n[(_0x4fcab4(0x424))](_0x5f4a81[_0x4fcab4(0x21c)],{'commit':_0x4aa08c=>{const _0x386720=_0x4fcab4;var _0x38a7be;let _0x50bd51=_0x5f4a81[_0x386720(0x21c)],_0x204c71=(0x0,_[_0x386720(0x18d)])(_0x4aa08c,{'series':(_0x38a7be=_0x50bd51['config'])==null?void 0x0:_0x38a7be[_0x386720(0x392)],'currentChartType':_0x50bd51[_0x386720(0x1ef)],'currentStyle':_0x50bd51['style'],'currentContext':_0x50bd51['context'],'currentDataAggregation':_0x50bd51[_0x386720(0x2d2)]});_0x56ffdf({'chart':Ot(_0x3c11e2[_0x386720(0xd9)],_0x204c71)});}}),[_0x3c11e2['chart'],_0x56ffdf,_0x5f4a81]),_0x20e209=(0x0,h[_0x4fcab4(0x2c1)])(()=>(0x0,n[_0x4fcab4(0x2ba)])(n[_0x4fcab4(0x1f2)][_0x4fcab4(0x48a)](_0x474b9b=>({..._0x474b9b,'label':_0x59b916['t'](Mt(_0x474b9b[_0x4fcab4(0x407)]))}))),[_0x59b916]);return(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditorProvider'],{'chartUIService':_0x453248,'hostAdapter':_0x501aa5,'children':(0x0,g['jsxs'])(_0x4fcab4(0x460),{'className':_0x4fcab4(0x2ff),'children':[(0x0,g['jsx'])(n[_0x4fcab4(0x22f)],{'ariaLabel':_0x59b916['t'](_0x4fcab4(0x14f)),'className':_0x4fcab4(0x22d),'items':[{'label':_0x59b916['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x4fcab4(0x3c3),'value':n['ChartEditPanelTab'][_0x4fcab4(0x1d6)]},{'label':_0x59b916['t'](_0x4fcab4(0x2ca)),'panelId':_0x4fcab4(0x4bf),'value':n[_0x4fcab4(0x487)][_0x4fcab4(0x470)]}],'value':_0x41adc1,'onChange':_0xb57dbe}),_0x41adc1===n[_0x4fcab4(0x487)][_0x4fcab4(0x1d6)]?(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditPanel'],{'id':_0x4fcab4(0x3c3),'label':_0x59b916['t'](_0x4fcab4(0x3ef)),'children':(0x0,g[_0x4fcab4(0x38d)])(_0x4fcab4(0x460),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x174)],{'options':_0x20e209}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x27a)],{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x26f)],{}),(0x0,g['jsx'])(kt,{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x3cf)],{}),(0x0,g['jsxs'])('div',{'children':[(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditBlockTitle'],{'title':_0x59b916['t']('bases-dashboard-ui.pivot.dataSource')}),(0x0,g[_0x4fcab4(0x23f)])(f[_0x4fcab4(0x104)],{'disabled':!0x0,'value':_0x3de085})]}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x46e)],{'orientationControl':(0x0,g['jsx'])(f['Button'],{'size':_0x4fcab4(0x301),'onClick':()=>_0x56ffdf({'chart':{..._0x3c11e2['chart'],'orient':_0x3c11e2[_0x4fcab4(0xd9)]['orient']===_0x4fcab4(0x15e)?_0x4fcab4(0x278):'row'}}),'children':_0x59b916['t'](_0x4fcab4(0x4eb))})}),(0x0,g['jsx'])(n[_0x4fcab4(0x208)],{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x24e)],{'defaultValues':X[_0x4fcab4(0x393)]}),(0x0,g[_0x4fcab4(0x38d)])('div',{'children':[(0x0,g['jsx'])(n[_0x4fcab4(0x2a1)],{'title':_0x59b916['t'](_0x4fcab4(0x383))}),(0x0,g[_0x4fcab4(0x23f)])(f[_0x4fcab4(0x15c)],{'value':_0x3c11e2[_0x4fcab4(0x10e)],'options':[{'value':_0x4fcab4(0x23b),'label':_0x59b916['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x4fcab4(0xd9),'label':_0x59b916['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x4fcab4(0x4da),'label':_0x59b916['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x501d9f=>{const _0x4b9c54=_0x4fcab4;(_0x501d9f==='chart-and-table'||_0x501d9f===_0x4b9c54(0xd9)||_0x501d9f==='table')&&_0x56ffdf({'displayMode':_0x501d9f});}})]})]})}):(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x1c5)],{'id':'base-pivot-chart-style','label':_0x59b916['t'](_0x4fcab4(0x2ca)),'children':(0x0,g[_0x4fcab4(0x23f)])(At,{})})]})});}function Ot(_0x277d98,_0x42591d){const _0x3c8ed3=_0x30b590;return{..._0x277d98,'type':_0x42591d['chartType']??_0x277d98['type'],'style':_0x42591d['style']??_0x277d98[_0x3c8ed3(0x130)],'context':_0x42591d[_0x3c8ed3(0x316)]??_0x277d98['context'],'dataAggregation':_0x42591d[_0x3c8ed3(0x2d2)]??_0x277d98[_0x3c8ed3(0x2d2)]};}function kt(){const _0x189514=_0x30b590;let _0x5c4a98=(0x0,n['useChartEditorChartType'])();return(0x0,g[_0x189514(0x23f)])(n[_0x189514(0x128)],{'visible':Et[_0x189514(0x15f)](_0x5aecd2=>!_[_0x189514(0x31a)][_0x189514(0xf3)](_0x5c4a98,_0x5aecd2))});}function Z(_0x3a91cd){const _0x58a27e=_0x30b590;return(0x0,g[_0x58a27e(0x38d)])(n['ChartSectionAccordionItem'],{'id':_0x3a91cd['id'],'children':[(0x0,g[_0x58a27e(0x23f)])(n[_0x58a27e(0x183)],{'children':_0x3a91cd[_0x58a27e(0x1c2)]}),(0x0,g[_0x58a27e(0x23f)])(n[_0x58a27e(0x359)],{'children':_0x3a91cd[_0x58a27e(0x1aa)]})]});}function At(){const _0x5277e6=_0x30b590;let _0x3649df=(0x0,m[_0x5277e6(0x155)])(a[_0x5277e6(0x3ea)]),_0xe60106=(0x0,n[_0x5277e6(0x34c)])(),_0x559b38=(0x0,n[_0x5277e6(0x23e)])(),[_0x4179d6,_0x1a206e]=(0x0,h[_0x5277e6(0x40a)])(null),_0x4652c2=_[_0x5277e6(0x31a)][_0x5277e6(0xf3)](_0xe60106,_[_0x5277e6(0x1f6)][_0x5277e6(0x484)]),_0x36165b=_0xe60106===_[_0x5277e6(0x1f6)][_0x5277e6(0x14c)],_0x52f03f=_0xe60106===_[_0x5277e6(0x1f6)]['WordCloud'],_0x14a2dc=_0xe60106===_[_0x5277e6(0x1f6)][_0x5277e6(0x328)],_0x271acb=_['chartBitsUtils'][_0x5277e6(0xf3)](_0xe60106,_['ChartTypeBits']['Bubble']),_0x3e01d1=_0xe60106===_[_0x5277e6(0x1f6)]['Relation'],_0x34cb66=_0xe60106===_['ChartTypeBits']['Waterfall'],_0x103d81=_0xe60106===_[_0x5277e6(0x1f6)]['Pareto'],_0x38c904=_0xe60106===_[_0x5277e6(0x1f6)]['Heatmap'],_0x272c7f=(0x0,n[_0x5277e6(0x36a)])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x1de)])&&!_0x271acb&&!_0x103d81,_0xcd97b0=jt(_0xe60106,_0x3649df);return(0x0,g[_0x5277e6(0x38d)])(n[_0x5277e6(0x137)],{'value':_0x4179d6,'onChange':_0x1a206e,'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x210)],'label':_0x3649df['t'](_0x5277e6(0x1e2)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x1ff)],{'defaultValues':X[_0x5277e6(0x130)]})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x36d)],'label':_0x3649df['t'](_0x5277e6(0x34f)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x3f3)],{'commitMode':'blur','defaultValues':X[_0x5277e6(0x32f)]})}),(0x0,g['jsx'])(n[_0x5277e6(0x1b1)],{'section':'view'}),_0x272c7f&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4fd)],'label':_0x3649df['t'](_0x5277e6(0x1f5)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x432)],{'defaultValues':X[_0x5277e6(0x392)],'NumberFormatField':n[_0x5277e6(0x102)]})}),_0x34cb66&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x496)],'label':_0x3649df['t'](_0x5277e6(0x341)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x367)],{'defaultValues':X[_0x5277e6(0x4cc)],'getDefaultBucketName':({seriesName:_0x2ba625,target:_0x1098aa})=>_0x1098aa===_[_0x5277e6(0x4f8)][_0x5277e6(0x124)]?_0x3649df['t'](_0x5277e6(0x1ac)):_0x2ba625?_0x2ba625+'-('+_0x3649df['t']('bases-dashboard-ui.chart.'+(_0x1098aa===_[_0x5277e6(0x4f8)][_0x5277e6(0x4e2)]?'waterfall.positive':_0x5277e6(0x24a)))+')':'','NumberFormatField':n[_0x5277e6(0x102)]})}),_0x103d81&&(0x0,g[_0x5277e6(0x38d)])(g[_0x5277e6(0x226)],{'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x285)],'label':_0x3649df['t'](_0x5277e6(0x1cb)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1fa)],{'defaultValues':X[_0x5277e6(0x10a)],'NumberFormatField':n[_0x5277e6(0x102)],'showDataPointEditor':!0x0,'target':_0x5277e6(0x2b3)})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['ParetoLineSeries'],'label':_0x3649df['t'](_0x5277e6(0x186)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1fa)],{'defaultValues':X[_0x5277e6(0x10a)],'NumberFormatField':n[_0x5277e6(0x102)],'showDataPointEditor':!0x1,'target':_0x5277e6(0x1c9)})})]}),_0x4652c2&&(0x0,g['jsx'])(Z,{'id':n['ChartEditPanelSection'][_0x5277e6(0x4c2)],'label':_0x3649df['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0xfe)],{'defaultValues':X[_0x5277e6(0x308)],'NumberFormatField':n[_0x5277e6(0x102)]})}),_0x52f03f&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x300)],'label':_0x3649df['t'](_0x5277e6(0x413)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartWordCloudStyleSection'],{'defaultValues':X[_0x5277e6(0x4dd)]})}),_0x36165b&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x14c)],'label':_0x3649df['t'](_0x5277e6(0x4ca)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x47c)],{'defaultValues':X[_0x5277e6(0x436)]})}),_0x14a2dc&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x328)],'label':_0x3649df['t'](_0x5277e6(0x2d5)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartFunnelStyleSection'],{'defaultValues':X[_0x5277e6(0x376)],'gapControl':'select'})}),_0x38c904&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['Heatmap'],'label':_0x3649df['t']('bases-dashboard-ui.chart.common.heatmap'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1d0)],{'defaultValues':X[_0x5277e6(0x430)]})}),_0x3e01d1&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4a6)],'label':_0x3649df['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x282)],{'defaultValues':X[_0x5277e6(0x1d9)]})}),(0x0,n['chartTypeSupportsLineAndAreaStyle'])(_0xe60106)&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0xef)],'label':_0x3649df['t'](_[_0x5277e6(0x31a)]['baseOn'](_0xe60106,_[_0x5277e6(0x1f6)]['Area'])?_0x5277e6(0x391):_0x5277e6(0x384)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x4f7)],{'defaultValues':X[_0x5277e6(0x365)],'lineStyleControl':_0x5277e6(0x4ea)})}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x4a0)])&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4a0)],'label':_0x3649df['t'](_0x5277e6(0x3c4)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1c8)],{'defaultValues':X['legend']})}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x4b4)])&&(0x0,g[_0x5277e6(0x38d)])(g['Fragment'],{'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0xf1)],'label':_0x3649df['t'](_0x5277e6(0x12c)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x21e)],{'axis':'x','defaultValues':X[_0x5277e6(0x36b)],'NumberFormatField':n[_0x5277e6(0x102)]})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x466)],'label':_0x3649df['t'](_0x5277e6(0x3b7)),'children':(0x0,g['jsx'])(n['ChartAxisSection'],{'axis':'y','defaultValues':X[_0x5277e6(0x36b)],'NumberFormatField':n[_0x5277e6(0x102)]})}),(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1b1)],{'section':_0x5277e6(0x475)}),_0x559b38&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x1ec)],'label':_0x3649df['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartAxisSection'],{'axis':_0x5277e6(0x205),'defaultValues':X['axis'],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['GridlinesAndTicks'],'label':_0x3649df['t'](_0x5277e6(0x3a3)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartGridlinesAndTicksSection'],{'defaultValues':X[_0x5277e6(0x36b)]})})]}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x48f)])&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x48f)],'label':_0x3649df['t'](_0x5277e6(0x2b5)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x3b2)],{'defaultValues':X[_0x5277e6(0x41a)]})}),(0x0,_['chartTypeCanUseTrendLine'])(_0xe60106)&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)]['Trendline'],'label':_0x3649df['t'](_0x5277e6(0x3fe)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x40e)],{'defaultValues':X['trendline']})}),_0xcd97b0&&(0x0,g['jsx'])(Z,{'id':_0xcd97b0['id'],'label':_0xcd97b0[_0x5277e6(0x1c2)],'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x2c2)],{})})]});}function jt(_0x26823d,_0x362bbb){const _0x2786e4=_0x30b590;let _0x274731={[_[_0x2786e4(0x1f6)]['Candlestick']]:{'id':n['ChartEditPanelSection'][_0x2786e4(0x42b)],'localeKey':_0x2786e4(0x4c4)},[_[_0x2786e4(0x1f6)][_0x2786e4(0x29f)]]:{'id':n[_0x2786e4(0x382)][_0x2786e4(0x29f)],'localeKey':_0x2786e4(0x437)},[_[_0x2786e4(0x1f6)][_0x2786e4(0x421)]]:{'id':n[_0x2786e4(0x382)][_0x2786e4(0x421)],'localeKey':_0x2786e4(0x168)},[_[_0x2786e4(0x1f6)]['Sunburst']]:{'id':n[_0x2786e4(0x382)]['Sunburst'],'localeKey':_0x2786e4(0x16f)},[_['ChartTypeBits'][_0x2786e4(0x358)]]:{'id':n['ChartEditPanelSection'][_0x2786e4(0x358)],'localeKey':_0x2786e4(0x257)},[_[_0x2786e4(0x1f6)][_0x2786e4(0xd5)]]:{'id':n[_0x2786e4(0x382)]['Chord'],'localeKey':_0x2786e4(0x4e6)}}[_0x26823d];return _0x274731?{'id':_0x274731['id'],'label':_0x362bbb['t'](_0x274731[_0x2786e4(0x1cf)])}:null;}function Mt(_0x37ae8b){return'bases-dashboard-ui.chart.chartTypes.'+_0x37ae8b;}function Nt({onChange:_0x404628,onEditData:_0x2f663b,runtime:_0x13f10d,sourceChart:_0x167cb6,sourceName:_0x707fde,widget:_0x503711}){const _0x973716=_0x30b590;let _0x37eb8d=(0x0,m[_0x973716(0x155)])(W),_0x419863=(0x0,m['useDependency'])(a[_0x973716(0x3ea)]),[_0x167f14,_0x290bfd]=(0x0,h[_0x973716(0x40a)])(n[_0x973716(0x487)][_0x973716(0x1d6)]),_0x48f0f2=_0x503711[_0x973716(0xd9)]??_0x167cb6,_0x14c007=(0x0,h[_0x973716(0x2c1)])(()=>new n[(_0x973716(0x424))](_0x13f10d[_0x973716(0x21c)],{'commit':_0x27b9f9=>{const _0x3781b0=_0x973716;var _0x1a96f9;let _0x3ba1f0=_0x13f10d[_0x3781b0(0x21c)],_0x537661=(0x0,_['toChartModelUpdate'])(_0x27b9f9,{'series':(_0x1a96f9=_0x3ba1f0[_0x3781b0(0x1ca)])==null?void 0x0:_0x1a96f9[_0x3781b0(0x392)],'currentChartType':_0x3ba1f0[_0x3781b0(0x1ef)],'currentStyle':_0x3ba1f0['style'],'currentContext':_0x3ba1f0[_0x3781b0(0x316)],'currentDataAggregation':_0x3ba1f0[_0x3781b0(0x2d2)]});_0x404628({..._0x503711,'chart':Ot(_0x48f0f2,_0x537661)})[_0x3781b0(0x29c)](()=>void 0x0);}}),[_0x48f0f2,_0x404628,_0x13f10d,_0x503711]),_0x53217f=(0x0,h['useMemo'])(()=>(0x0,n[_0x973716(0x2ba)])(n[_0x973716(0x1f2)][_0x973716(0x48a)](_0x4b309f=>({..._0x4b309f,'label':_0x419863['t'](Pt(_0x4b309f['labelId']))}))),[_0x419863]);return(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x356)],{'chartUIService':_0x37eb8d,'hostAdapter':_0x14c007,'children':(0x0,g[_0x973716(0x38d)])('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x973716(0x134),'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x22f)],{'ariaLabel':_0x419863['t'](_0x973716(0x14f)),'className':_0x973716(0x22d),'items':[{'label':_0x419863['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x973716(0x4ba),'value':n['ChartEditPanelTab']['Data']},{'label':_0x419863['t'](_0x973716(0x2ca)),'panelId':_0x973716(0xd6),'value':n[_0x973716(0x487)][_0x973716(0x470)]}],'value':_0x167f14,'onChange':_0x290bfd}),_0x167f14===n[_0x973716(0x487)][_0x973716(0x1d6)]?(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x1c5)],{'id':'dashboard-chart-setup','label':_0x419863['t']('bases-dashboard-ui.chart.common.setup'),'children':(0x0,g[_0x973716(0x38d)])(_0x973716(0x460),{'className':_0x973716(0x2ae),'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x174)],{'options':_0x53217f}),(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x27a)],{}),(0x0,g[_0x973716(0x23f)])(n['ChartThemeField'],{}),(0x0,g[_0x973716(0x23f)])(kt,{}),(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x3cf)],{}),(0x0,g[_0x973716(0x38d)])(_0x973716(0x460),{'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x2a1)],{'title':_0x419863['t'](_0x973716(0x441))}),(0x0,g[_0x973716(0x23f)])(f[_0x973716(0x104)],{'disabled':!0x0,'value':_0x707fde}),(0x0,g[_0x973716(0x23f)])(f['Button'],{'className':_0x973716(0x27c),'onClick':_0x2f663b,'children':_0x419863['t'](_0x973716(0x2b7))})]})]})}):(0x0,g[_0x973716(0x23f)])(n['ChartEditPanel'],{'id':'dashboard-chart-style','label':_0x419863['t'](_0x973716(0x2ca)),'children':(0x0,g[_0x973716(0x23f)])(At,{})})]})});}function Pt(_0x2a59c1){return'bases-dashboard-ui.chart.chartTypes.'+_0x2a59c1;}const Ft=[_0x30b590(0x2b4),_0x30b590(0x493),_0x30b590(0x47a),_0x30b590(0x2c4),_0x30b590(0x268),_0x30b590(0xdb)];function It({base:_0x11f3d6,onChange:_0x57bd05,onSelectBackgroundImage:_0x4a283a,widget:_0x1ced93}){const _0x32793f=_0x30b590;var _0x67cc47;let _0x1c8d2b=(0x0,m[_0x32793f(0x155)])(a[_0x32793f(0x3ea)]),_0xd4db12=(0x0,m[_0x32793f(0x155)])(a[_0x32793f(0x46a)]),_0x4382ca=(0x0,m[_0x32793f(0xe2)])(()=>_0xd4db12[_0x32793f(0x317)],_0xd4db12['getCurrentTheme'](),!0x1,[_0xd4db12]),_0x3d7615=(0x0,m[_0x32793f(0xe2)])(()=>_0xd4db12[_0x32793f(0x16c)],_0xd4db12['darkMode'],!0x1,[_0xd4db12]),[_0x10544c,_0x14f504]=(0x0,h[_0x32793f(0x40a)])(_0x32793f(0x457)),[_0x1f5a74,_0x1a59c9]=(0x0,h['useState'])(!0x1),_0x3f7801=k(_0x1ced93),_0x593012=_0x11f3d6['getSnapshot']()['tables'][_0x1ced93[_0x32793f(0x3d3)]],_0x3ac114=_0x593012==null?void 0x0:_0x593012['viewOrder'][_0x32793f(0x41e)](_0x479584=>_0x593012[_0x32793f(0x371)][_0x479584]),_0xb58321=_0x3ac114?_0x593012==null?void 0x0:_0x593012[_0x32793f(0x371)][_0x3ac114]:void 0x0,_0x559d54=_0x593012&&_0xb58321?(0x0,t['toFormulaMenuTables'])(_0x11f3d6[_0x32793f(0x38b)](),_0x593012,_0xb58321)[_0x32793f(0x48a)](_0x35df58=>({..._0x35df58,'current':!0x1})):[],_0x514639=((_0x67cc47=_0x1ced93[_0x32793f(0x34e)][_0x32793f(0x44d)])==null?void 0x0:_0x67cc47['formula'])??'',_0x4dfff5=_0x35585a=>_0x57bd05(A(_0x1ced93,_0x35585a))[_0x32793f(0x29c)](()=>void 0x0),_0x27bf6c=_0x195322=>_0x57bd05({..._0x1ced93,'description':_0x195322})[_0x32793f(0x29c)](()=>void 0x0);return(0x0,g[_0x32793f(0x38d)])('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x32793f(0x23f)])(f['Segmented'],{'className':_0x32793f(0x3f5),'items':[{'value':_0x32793f(0x457),'label':_0x1c8d2b['t'](_0x32793f(0x332))},{'value':'style','label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x10544c,'onChange':_0x14f504}),(0x0,g[_0x32793f(0x23f)])(_0x32793f(0x460),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x10544c===_0x32793f(0x457)?(0x0,g['jsxs'])(_0x32793f(0x460),{'className':_0x32793f(0x20b),'children':[(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x4fc)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x104)],{'value':_0x1ced93[_0x32793f(0x323)]??_0x1ced93[_0x32793f(0x26d)]??'','onChange':_0x27bf6c,'onBlur':_0xced135=>_0x27bf6c(_0xced135[_0x32793f(0x12d)][_0x32793f(0x351)])})}),(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x441)),'children':(0x0,g['jsx'])(f[_0x32793f(0x104)],{'disabled':!0x0,'value':(_0x593012==null?void 0x0:_0x593012[_0x32793f(0x451)])??_0x1c8d2b['t'](_0x32793f(0x4b1))})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x104)],{'disabled':!0x0,'value':(0x0,t[_0x32793f(0x4e7)])(_0x514639,_0x559d54)}),(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x3da)],{'className':_0x32793f(0x27c),'onClick':()=>_0x1a59c9(!0x0),'children':_0x1c8d2b['t'](_0x32793f(0x120))})]})]}):(0x0,g[_0x32793f(0x38d)])('div',{'className':_0x32793f(0x20b),'children':[(0x0,g[_0x32793f(0x23f)])(n[_0x32793f(0x2ce)],{'emptyLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1c8d2b['t'](_0x32793f(0x199)),'pickerFallbackValue':_0x3d7615?_0x4382ca['gray'][0x384]:_0x4382ca['gray'][0x0],'resetLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x3f7801['backgroundColor']??null,'onChange':_0x35f494=>_0x4dfff5({'backgroundColor':_0x35f494??void 0x0})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[(0x0,g[_0x32793f(0x38d)])(_0x32793f(0x460),{'className':_0x32793f(0x2db),'children':[(0x0,g[_0x32793f(0x38d)])(f[_0x32793f(0x3da)],{'className':_0x32793f(0x214),'onClick':()=>{const _0x4595ca=_0x32793f;_0x4a283a()['then'](_0xa3c407=>{if(_0xa3c407){var _0x2700ca;return _0x4dfff5({'backgroundImage':{..._0xa3c407,'fit':((_0x2700ca=_0x3f7801['backgroundImage'])==null?void 0x0:_0x2700ca['fit'])??'cover'}});}})[_0x4595ca(0x29c)](()=>void 0x0);},'children':[(0x0,g['jsx'])(s[_0x32793f(0x335)],{}),_0x3f7801[_0x32793f(0x142)]?_0x1c8d2b['t'](_0x32793f(0xe6)):_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x3f7801[_0x32793f(0x142)]&&(0x0,g['jsx'])(f[_0x32793f(0x3da)],{'aria-label':_0x1c8d2b['t'](_0x32793f(0x24c)),'title':_0x1c8d2b['t'](_0x32793f(0x24c)),'onClick':()=>_0x4dfff5({'backgroundImage':void 0x0}),'children':(0x0,g[_0x32793f(0x23f)])(s[_0x32793f(0x15d)],{})})]}),_0x3f7801['backgroundImage']&&(0x0,g['jsx'])(f[_0x32793f(0x324)],{'className':_0x32793f(0x4d4),'items':[{'value':_0x32793f(0x225),'label':_0x1c8d2b['t'](_0x32793f(0x175))},{'value':'contain','label':_0x1c8d2b['t'](_0x32793f(0x37c))}],'value':_0x3f7801[_0x32793f(0x142)]['fit'],'onChange':_0x5e1fd2=>_0x4dfff5({'backgroundImage':_0x3f7801[_0x32793f(0x142)]?{..._0x3f7801['backgroundImage'],'fit':_0x5e1fd2}:void 0x0})})]}),(0x0,g[_0x32793f(0x23f)])(n[_0x32793f(0x2ce)],{'emptyLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x1c8d2b['t'](_0x32793f(0x2a9)),'pickerFallbackValue':_0x3d7615?_0x4382ca[_0x32793f(0x4bb)][0x32]:_0x4382ca[_0x32793f(0x4bb)][0x3e8],'resetLabel':_0x1c8d2b['t'](_0x32793f(0x27f)),'value':_0x3f7801[_0x32793f(0x3de)]??null,'onChange':_0x374649=>_0x4dfff5({'textColor':_0x374649??void 0x0})}),(0x0,g['jsx'])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x23c)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x324)],{'items':[{'value':'left','label':_0x1c8d2b['t'](_0x32793f(0x21a))},{'value':'center','label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x1c8d2b['t'](_0x32793f(0x422))}],'value':_0x3f7801[_0x32793f(0x121)],'onChange':_0x12d0b3=>_0x4dfff5({'alignment':_0x12d0b3})})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x324)],{'items':[{'value':_0x32793f(0x337),'label':_0x1c8d2b['t'](_0x32793f(0x35d))},{'value':_0x32793f(0x3f1),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x3f7801[_0x32793f(0xfc)],'onChange':_0x5d5618=>_0x4dfff5({'fontSizeMode':_0x5d5618})}),_0x3f7801[_0x32793f(0xfc)]===_0x32793f(0x3f1)&&(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x33a)],{'className':_0x32793f(0x4d4),'min':0xc,'max':0x78,'value':_0x3f7801['fontSize'],'onChange':_0x3ba841=>_0x4dfff5({'fontSize':_0x3ba841??0x28,'fontSizeMode':_0x32793f(0x3f1)})})]}),(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x240)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x15c)],{'value':_0x3f7801[_0x32793f(0x255)],'options':[{'value':_0x32793f(0x2b4),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x32793f(0x493),'label':_0x1c8d2b['t'](_0x32793f(0x2d1))},{'value':_0x32793f(0x47a),'label':_0x1c8d2b['t'](_0x32793f(0x151))},{'value':_0x32793f(0x2c4),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x32793f(0x268),'label':_0x1c8d2b['t'](_0x32793f(0x2f4))},{'value':_0x32793f(0xdb),'label':_0x1c8d2b['t'](_0x32793f(0x444))}],'onChange':_0x3ae46f=>{const _0x2c4f01=_0x32793f;let _0x4946f4=Ft[_0x2c4f01(0x41e)](_0x146505=>_0x146505===_0x3ae46f);_0x4946f4&&_0x4dfff5({'numberFormat':_0x4946f4});}})}),_0x3f7801[_0x32793f(0x255)]===_0x32793f(0x2c4)&&(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x1ae)),'children':(0x0,g[_0x32793f(0x23f)])(f['Input'],{'value':_0x3f7801[_0x32793f(0x2c4)],'onChange':_0x5e12e8=>_0x4dfff5({'currency':_0x5e12e8[_0x32793f(0x34d)](0x0,0x3)[_0x32793f(0x4c8)]()})})}),_0x3f7801['numberFormat']!=='general'&&(0x0,g['jsx'])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x33a)],{'min':0x0,'max':0x8,'value':_0x3f7801[_0x32793f(0x13b)],'onChange':_0x1bcf59=>_0x4dfff5({'decimalPlaces':_0x1bcf59??0x0})})})]})}),_0x1f5a74&&(0x0,g['jsx'])(f['Dialog'],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x32793f(0x23f)])(t[_0x32793f(0x250)],{'tables':_0x559d54,'formula':(0x0,t['formulaToEditorFormula'])(_0x514639,_0x559d54),'onCancel':()=>_0x1a59c9(!0x1),'onSave':_0x4ee9c0=>{const _0x355abf=_0x32793f;let _0x400dc1=_0x1ced93[_0x355abf(0x34e)][_0x355abf(0x44d)]??{'formula':''};return _0x57bd05({..._0x1ced93,'shapeData':{..._0x1ced93[_0x355abf(0x34e)],'formulaBinding':{..._0x400dc1,'formula':(0x0,t[_0x355abf(0x314)])(_0x4ee9c0,_0x559d54)}}})['then'](()=>_0x1a59c9(!0x1))[_0x355abf(0x29c)](()=>void 0x0);}})})]});}function Q({children:_0x544606,label:_0x37c643}){const _0x2c51f1=_0x30b590;return(0x0,g['jsxs'])(_0x2c51f1(0x460),{'role':_0x2c51f1(0x3b1),'aria-label':_0x37c643,'className':_0x2c51f1(0x345),'children':[(0x0,g['jsx'])(_0x2c51f1(0x405),{'children':_0x37c643}),_0x544606]});}const Lt={[a['BaseFilterOperator']['IS']]:_0x30b590(0x395),[a[_0x30b590(0x363)][_0x30b590(0x2f3)]]:_0x30b590(0x479),[a['BaseFilterOperator']['CONTAINS']]:'bases-dashboard-ui.operators.contains',[a['BaseFilterOperator'][_0x30b590(0x4ef)]]:_0x30b590(0x1dd),[a[_0x30b590(0x363)]['IS_EMPTY']]:_0x30b590(0x153),[a[_0x30b590(0x363)]['IS_NOT_EMPTY']]:_0x30b590(0x43e),[a[_0x30b590(0x363)][_0x30b590(0x401)]]:'bases-dashboard-ui.operators.greaterThan',[a[_0x30b590(0x363)]['GREATER_THAN_OR_EQUAL']]:_0x30b590(0x172),[a[_0x30b590(0x363)][_0x30b590(0x20d)]]:_0x30b590(0x17e),[a['BaseFilterOperator'][_0x30b590(0x449)]]:_0x30b590(0x1ea),[a[_0x30b590(0x363)][_0x30b590(0x12b)]]:'bases-dashboard-ui.operators.before',[a[_0x30b590(0x363)][_0x30b590(0x3b3)]]:_0x30b590(0x2f5)};function Rt({disabled:_0x464b39,fields:_0x1331e8,filter:_0xe5ba06,onChange:_0x2ae761}){const _0x33dfce=_0x30b590;let _0x3275e0=(0x0,m[_0x33dfce(0x155)])(a[_0x33dfce(0x3ea)]),_0x381db8=(_0xe5ba06==null?void 0x0:_0xe5ba06['conditions'])??[];return _0x381db8['length']?(0x0,g[_0x33dfce(0x23f)])(_0x33dfce(0x460),{'className':_0x33dfce(0x229),'children':_0x381db8[_0x33dfce(0x48a)]((_0x59c1e3,_0x37af06)=>{const _0x471089=_0x33dfce;let _0x3a90cb=_0x1331e8['find'](_0x2489b1=>_0x2489b1['id']===_0x59c1e3[_0x471089(0x1fb)]);return(0x0,g[_0x471089(0x38d)])(_0x471089(0x460),{'className':_0x471089(0x127),'children':[(0x0,g[_0x471089(0x38d)])('div',{'className':_0x471089(0x4d2),'children':[(0x0,g[_0x471089(0x23f)])(_0x471089(0x405),{'className':_0x471089(0x1ed),'children':(_0x3a90cb==null?void 0x0:_0x3a90cb[_0x471089(0x451)])??_0x59c1e3[_0x471089(0x1fb)]}),(0x0,g[_0x471089(0x23f)])('span',{'className':_0x471089(0x2e6),'children':_0x3275e0['t'](Lt[_0x59c1e3['operator']])})]}),Kt(_0x59c1e3[_0x471089(0x3fc)])&&(0x0,g['jsx'])(Bt,{'disabled':_0x464b39,'field':_0x3a90cb,'value':_0x59c1e3[_0x471089(0x47d)],'onChange':_0xffc29f=>_0x2ae761(Ut(_0xe5ba06,_0x37af06,{'operand':_0xffc29f}))})]},Yt(_0x381db8,_0x59c1e3,_0x37af06));})}):(0x0,g[_0x33dfce(0x38d)])(_0x33dfce(0x460),{'className':_0x33dfce(0x429),'children':[(0x0,g[_0x33dfce(0x23f)])(s[_0x33dfce(0x319)],{'className':_0x33dfce(0x190)}),(0x0,g[_0x33dfce(0x23f)])(_0x33dfce(0x405),{'className':_0x33dfce(0xd7),'children':_0x3275e0['t'](_0x33dfce(0x2cc))})]});}function zt({fields:_0x7a28bc,filter:_0x25e454,onChange:_0x1c98af,onClear:_0x1479a2}){const _0x4f8f96=_0x30b590;let _0x2b25c6=(0x0,m[_0x4f8f96(0x155)])(a['LocaleService']),_0xe3018a=(_0x25e454==null?void 0x0:_0x25e454[_0x4f8f96(0x125)])??[];return(0x0,g[_0x4f8f96(0x38d)])(_0x4f8f96(0x460),{'data-dashboard-filter-inspector':!0x0,'className':_0x4f8f96(0x423),'children':[_0xe3018a[_0x4f8f96(0x48a)]((_0x1fc659,_0x34d0d1)=>{const _0x450f48=_0x4f8f96;let _0x1b226a=_0x7a28bc['find'](_0x33c8cf=>_0x33c8cf['id']===_0x1fc659[_0x450f48(0x1fb)])??_0x7a28bc[0x0],_0x26e543=Wt(_0x1b226a);return(0x0,g[_0x450f48(0x38d)])(_0x450f48(0x2f7),{'className':_0x450f48(0xda),'children':[(0x0,g[_0x450f48(0x38d)])(_0x450f48(0x460),{'className':_0x450f48(0x39d),'children':[(0x0,g[_0x450f48(0x23f)])(f[_0x450f48(0x15c)],{'value':_0x1fc659[_0x450f48(0x1fb)],'options':_0x7a28bc[_0x450f48(0x48a)](_0x1a3759=>({'value':_0x1a3759['id'],'label':_0x1a3759[_0x450f48(0x451)]})),'onChange':_0x23301a=>{const _0x24b7a8=_0x450f48;let _0x128e3a=_0x7a28bc[_0x24b7a8(0x41e)](_0x129eb3=>_0x129eb3['id']===_0x23301a);if(!_0x128e3a)return;let _0x56dd42=Wt(_0x128e3a)[0x0];_0x1c98af(Ut(_0x25e454,_0x34d0d1,Ht(_0x128e3a,_0x56dd42)));}}),(0x0,g[_0x450f48(0x23f)])(f[_0x450f48(0x3da)],{'type':_0x450f48(0x1e9),'variant':_0x450f48(0x455),'aria-label':_0x2b25c6['t'](_0x450f48(0x1ab)),'className':_0x450f48(0x463),'onClick':()=>_0x1c98af(Vt(_0x25e454,_0xe3018a[_0x450f48(0x141)]((_0x250aa6,_0x3c5456)=>_0x3c5456!==_0x34d0d1))),'children':(0x0,g[_0x450f48(0x23f)])(s[_0x450f48(0x274)],{})})]}),(0x0,g[_0x450f48(0x23f)])(f['Select'],{'value':_0x1fc659[_0x450f48(0x3fc)],'options':_0x26e543[_0x450f48(0x48a)](_0xc976fd=>({'value':_0xc976fd,'label':_0x2b25c6['t'](Lt[_0xc976fd])})),'onChange':_0x508d3f=>{const _0x1bee9e=_0x450f48;let _0x7e699b=_0x26e543[_0x1bee9e(0x41e)](_0x379f83=>_0x379f83===_0x508d3f);_0x7e699b&&_0x1c98af(Ut(_0x25e454,_0x34d0d1,{'operator':_0x7e699b,'operand':Gt(_0x1b226a)}));}}),Kt(_0x1fc659['operator'])&&(0x0,g[_0x450f48(0x23f)])(Bt,{'field':_0x1b226a,'value':_0x1fc659[_0x450f48(0x47d)],'onChange':_0x2c450b=>_0x1c98af(Ut(_0x25e454,_0x34d0d1,{'operand':_0x2c450b}))})]},Yt(_0xe3018a,_0x1fc659,_0x34d0d1));}),(0x0,g[_0x4f8f96(0x38d)])(f[_0x4f8f96(0x3da)],{'type':_0x4f8f96(0x1e9),'variant':'text','className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x7a28bc[_0x4f8f96(0xf8)],'onClick':()=>{let _0x225dc2=_0x7a28bc[0x0];if(!_0x225dc2)return;let _0x136915=Wt(_0x225dc2)[0x0];_0x1c98af(Vt(_0x25e454,[..._0xe3018a,Ht(_0x225dc2,_0x136915)]));},'children':[(0x0,g[_0x4f8f96(0x23f)])(s[_0x4f8f96(0x335)],{}),_0x2b25c6['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0xe3018a['length']>0x0&&(0x0,g[_0x4f8f96(0x23f)])(f['Button'],{'type':'button','variant':'text','className':_0x4f8f96(0x112),'onClick':_0x1479a2,'children':_0x2b25c6['t'](_0x4f8f96(0x17f))})]});}function Bt({disabled:_0x1dc752,field:_0x2e39b1,onChange:_0x22aa68,value:_0x6d367b}){const _0x366191=_0x30b590;let _0x23732b=(0x0,m[_0x366191(0x155)])(a['LocaleService']),[_0x43d955,_0x1eaa49]=(0x0,h[_0x366191(0x40a)])({'value':_0x6d367b,'text':String(_0x6d367b??'')});Object['is'](_0x43d955[_0x366191(0x351)],_0x6d367b)||_0x1eaa49({'value':_0x6d367b,'text':String(_0x6d367b??'')});let _0x2943f0=_0x43d955[_0x366191(0x455)],_0x418f2c=_0xf71156=>_0x1eaa49({'value':_0x6d367b,'text':_0xf71156}),_0x2cdb3f=_0x2e39b1==null?void 0x0:_0x2e39b1['type'];if(_0x2cdb3f===a['BaseFieldType'][_0x366191(0x2b9)]){let _0x2f715e=_0x6d367b===!0x0||_0x6d367b===_0x366191(0x445);return(0x0,g['jsxs'])(f[_0x366191(0x3da)],{'type':_0x366191(0x1e9),'variant':_0x366191(0x1df),'disabled':_0x1dc752,'className':_0x366191(0x1dc),'onClick':()=>_0x22aa68(!_0x2f715e),'children':[(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x2b9)],{'checked':_0x2f715e,'disabled':_0x1dc752,'onChange':()=>void 0x0}),_0x2f715e?_0x23732b['t'](_0x366191(0x1a1)):_0x23732b['t'](_0x366191(0x4f9))]});}return Xt(_0x2cdb3f)?_0x1dc752?(0x0,g[_0x366191(0x23f)])(f['Button'],{'type':_0x366191(0x1e9),'variant':_0x366191(0x1df),'className':_0x366191(0x112),'disabled':!0x0,'children':(0x0,a[_0x366191(0x252)])(_0x6d367b==null||_0x6d367b===''?void 0x0:String(_0x6d367b))[_0x366191(0x462)](_0x366191(0x321))}):(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x4de)],{'className':'univer-w-full','value':(0x0,a[_0x366191(0x252)])(_0x6d367b==null||_0x6d367b===''?void 0x0:String(_0x6d367b))[_0x366191(0x42e)](),'onValueChange':_0x4df6d6=>_0x22aa68((0x0,a[_0x366191(0x252)])(_0x4df6d6)[_0x366191(0x462)](_0x366191(0x321)))}):Qt(_0x2e39b1)?(0x0,g[_0x366191(0x23f)])(f['MultipleSelect'],{'className':_0x366191(0x112),'disabled':_0x1dc752,'value':Array[_0x366191(0x4cd)](_0x6d367b)?_0x6d367b[_0x366191(0x48a)](String):[],'options':qt(_0x2e39b1),'onChange':_0x22aa68}):_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x3e6)]||_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x32e)]||_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x292)]?(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x15c)],{'className':_0x366191(0x112),'disabled':_0x1dc752,'value':String(_0x6d367b??''),'options':[{'value':'','label':_0x23732b['t'](_0x366191(0x269))},...qt(_0x2e39b1)],'onChange':_0x22aa68}):Zt(_0x2cdb3f)?(0x0,g['jsx'])(f['Input'],{'className':_0x366191(0x112),'disabled':_0x1dc752,'inputMode':_0x366191(0x3ba),'value':_0x2943f0,'aria-invalid':_0x2943f0!==''&&!Number[_0x366191(0x467)](Number(_0x2943f0)),'onChange':_0x1804b4=>{const _0x505e46=_0x366191;_0x418f2c(_0x1804b4),_0x1804b4===''?_0x22aa68(''):Number[_0x505e46(0x467)](Number(_0x1804b4))&&_0x22aa68(Number(_0x1804b4));},'onBlur':()=>_0x418f2c(String(_0x6d367b??''))}):(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x104)],{'disabled':_0x1dc752,'value':String(_0x6d367b??''),'placeholder':_0x23732b['t'](_0x366191(0x35f)),'onChange':_0x22aa68});}function Vt(_0x1b3bfb,_0x247df5){const _0x3ed07c=_0x30b590;return{'conjunction':(_0x1b3bfb==null?void 0x0:_0x1b3bfb[_0x3ed07c(0x1d3)])??a[_0x3ed07c(0x2b2)]['AND'],'conditions':_0x247df5};}function Ht(_0x5bc52f,_0x55cc83){return Kt(_0x55cc83)?{'fieldId':_0x5bc52f['id'],'operator':_0x55cc83,'operand':Gt(_0x5bc52f)}:{'fieldId':_0x5bc52f['id'],'operator':_0x55cc83};}function Ut(_0x25bb60,_0x45a101,_0x2ff309){const _0x3ad21b=_0x30b590;return Vt(_0x25bb60,((_0x25bb60==null?void 0x0:_0x25bb60[_0x3ad21b(0x125)])??[])[_0x3ad21b(0x48a)]((_0x58bbac,_0x1581bc)=>_0x1581bc===_0x45a101?{..._0x58bbac,..._0x2ff309}:_0x58bbac));}function Wt(_0x101ec3){const _0x2f3d38=_0x30b590;let _0x1f64f9=[a[_0x2f3d38(0x363)]['IS_EMPTY'],a['BaseFilterOperator'][_0x2f3d38(0x4fb)]];switch(_0x101ec3==null?void 0x0:_0x101ec3['type']){case a['BaseFieldType'][_0x2f3d38(0x48b)]:case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x400)]:case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x1a6)]:case a[_0x2f3d38(0x1d5)]['Rating']:return[a['BaseFilterOperator']['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a[_0x2f3d38(0x363)][_0x2f3d38(0x401)],a[_0x2f3d38(0x363)][_0x2f3d38(0x20d)],..._0x1f64f9];case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x193)]:case a[_0x2f3d38(0x1d5)]['CreatedAt']:case a[_0x2f3d38(0x1d5)]['UpdatedAt']:return[a[_0x2f3d38(0x363)]['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a[_0x2f3d38(0x363)]['BEFORE'],a['BaseFilterOperator'][_0x2f3d38(0x3b3)],..._0x1f64f9];case a['BaseFieldType'][_0x2f3d38(0x2b9)]:return[a[_0x2f3d38(0x363)]['IS'],a['BaseFilterOperator'][_0x2f3d38(0x2f3)]];default:return[a['BaseFilterOperator']['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a['BaseFilterOperator']['CONTAINS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x4ef)],..._0x1f64f9];}}function Gt(_0x59335d){const _0x26ed3f=_0x30b590;return _0x59335d?_0x59335d[_0x26ed3f(0x11c)]===a[_0x26ed3f(0x1d5)][_0x26ed3f(0x2b9)]?!0x1:Xt(_0x59335d['type'])?(0x0,a['dateKit'])()[_0x26ed3f(0x462)](_0x26ed3f(0x321)):Qt(_0x59335d)?[]:'':'';}function Kt(_0xec4f0a){const _0x43fc80=_0x30b590;return _0xec4f0a!==a[_0x43fc80(0x363)][_0x43fc80(0x36c)]&&_0xec4f0a!==a[_0x43fc80(0x363)]['IS_NOT_EMPTY'];}function qt(_0x28606f){const _0x3364b0=_0x30b590;var _0x3489fa;return(Array[_0x3364b0(0x4cd)](_0x28606f==null||(_0x3489fa=_0x28606f[_0x3364b0(0x1ca)])==null?void 0x0:_0x3489fa[_0x3364b0(0x45a)])?_0x28606f[_0x3364b0(0x1ca)]['options']:[])[_0x3364b0(0x48a)]((_0x3fc1d4,_0x53a84e)=>{const _0x44fe40=_0x3364b0;if(typeof _0x3fc1d4=='string')return{'label':_0x3fc1d4,'value':_0x3fc1d4};if(!Jt(_0x3fc1d4))return{'label':String(_0x53a84e+0x1),'value':String(_0x53a84e+0x1)};let _0x3e38d4=_0x3fc1d4,_0x1d9aa7=String(_0x3e38d4[_0x44fe40(0x451)]??_0x3e38d4['id']??_0x53a84e+0x1),_0x5aa645=String(_0x3e38d4['id']??_0x1d9aa7);return{'label':_0x1d9aa7,'value':/^opt-\d+$/[_0x44fe40(0x3cb)](_0x5aa645)?_0x1d9aa7:_0x5aa645};});}function Jt(_0x3f7a6e){return typeof _0x3f7a6e=='object'&&!!_0x3f7a6e;}function _0x1e15(_0x2f8666,_0xf451e1){_0x2f8666=_0x2f8666-0xd3;const _0x520f33=_0x520f();let _0x1e1554=_0x520f33[_0x2f8666];return _0x1e1554;}function Yt(_0x3da00a,_0x1e50d7,_0x46514a){const _0x2779ad=_0x30b590;let _0x493906=JSON[_0x2779ad(0x198)](_0x1e50d7);return _0x493906+'-'+_0x3da00a['slice'](0x0,_0x46514a)['filter'](_0x11efa0=>JSON['stringify'](_0x11efa0)===_0x493906)[_0x2779ad(0xf8)];}function Xt(_0x213b49){const _0x135196=_0x30b590;return _0x213b49===a['BaseFieldType'][_0x135196(0x193)]||_0x213b49===a['BaseFieldType'][_0x135196(0x4f0)]||_0x213b49===a[_0x135196(0x1d5)][_0x135196(0x380)];}function Zt(_0x1a5088){const _0x4ce4f3=_0x30b590;return _0x1a5088===a[_0x4ce4f3(0x1d5)]['Number']||_0x1a5088===a[_0x4ce4f3(0x1d5)]['Currency']||_0x1a5088===a[_0x4ce4f3(0x1d5)][_0x4ce4f3(0x1a6)]||_0x1a5088===a[_0x4ce4f3(0x1d5)][_0x4ce4f3(0x234)];}function Qt(_0x3e84ac){const _0xa37f10=_0x30b590;var _0x9c713e;return(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a['BaseFieldType'][_0xa37f10(0x21b)]||(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a['BaseFieldType'][_0xa37f10(0x32e)]||(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a[_0xa37f10(0x1d5)][_0xa37f10(0x292)]&&((_0x9c713e=_0x3e84ac['config'])==null?void 0x0:_0x9c713e['allowMultiple'])===!0x0;}function $t({base:_0x5339e6,chartRuntime:_0x412553,onChange:_0xf22c7f,onClose:_0x44fa23,onSelectBackgroundImage:_0x3175a9,onSelectImage:_0x4c5fbf,unitId:_0x1d576b,widget:_0x3f5b36}){const _0x143ab9=_0x30b590;let _0x3423a2=(0x0,m[_0x143ab9(0x155)])(a['ICommandService']),_0x4c27cb=(0x0,m[_0x143ab9(0x155)])(a[_0x143ab9(0x3ea)]),_0x3b6a3b=_0x5339e6[_0x143ab9(0x38b)](),_0x5e5f34=_0x143ab9(0x3d3)in _0x3f5b36?_0x3b6a3b[_0x143ab9(0x4fe)][_0x3f5b36[_0x143ab9(0x3d3)]]:void 0x0,_0x27cdab=_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x3c7)]?_0x5e5f34==null?void 0x0:_0x5e5f34[_0x143ab9(0x371)][_0x3f5b36[_0x143ab9(0x247)]]:void 0x0,_0x4f959c=_0x4c27cb['t'](sn(_0x3f5b36));return(0x0,g[_0x143ab9(0x38d)])(_0x143ab9(0x4c9),{'data-dashboard-inspector':!0x0,'className':_0x143ab9(0x3a8),'children':[(0x0,g[_0x143ab9(0x38d)])(_0x143ab9(0x4f6),{'className':_0x143ab9(0xe4),'children':[(0x0,g['jsx'])('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x4f959c}),(0x0,g['jsx'])(f[_0x143ab9(0x3da)],{'type':'button','size':_0x143ab9(0x301),'variant':_0x143ab9(0x455),'aria-label':_0x4c27cb['t'](_0x143ab9(0x162)),'onClick':_0x44fa23,'children':(0x0,g[_0x143ab9(0x23f)])(s[_0x143ab9(0x274)],{})})]}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x3c7)]&&(on(_0x27cdab)&&_0x412553?(0x0,g[_0x143ab9(0x23f)])(Nt,{'runtime':_0x412553,'sourceChart':_0x27cdab[_0x143ab9(0x1ca)][_0x143ab9(0xd9)],'sourceName':((_0x5e5f34==null?void 0x0:_0x5e5f34[_0x143ab9(0x451)])??'')+'\x20/\x20'+_0x27cdab[_0x143ab9(0x451)],'widget':_0x3f5b36,'onChange':_0xf22c7f,'onEditData':()=>{const _0x579bed=_0x143ab9;_0x3423a2[_0x579bed(0x387)](t[_0x579bed(0x309)]['id'],{'unitId':_0x1d576b,'tableId':_0x3f5b36['tableId'],'viewId':_0x3f5b36[_0x579bed(0x247)]})[_0x579bed(0x29c)](()=>void 0x0);}}):(0x0,g[_0x143ab9(0x23f)])(rn,{'message':on(_0x27cdab)?_0x4c27cb['t'](_0x143ab9(0x276)):_0x4c27cb['t'](_0x143ab9(0x4b1))})),_0x3f5b36['type']===e[_0x143ab9(0x1e4)][_0x143ab9(0x31c)]&&(0x0,g[_0x143ab9(0x23f)])(It,{'base':_0x5339e6,'widget':_0x3f5b36,'onChange':_0xf22c7f,'onSelectBackgroundImage':_0x3175a9}),_0x3f5b36[_0x143ab9(0x11c)]===e['BaseDashboardWidgetType'][_0x143ab9(0x326)]&&(0x0,g['jsx'])(tn,{'base':_0x5339e6,'onChange':_0xf22c7f,'widget':_0x3f5b36}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)]['Text']&&(0x0,g[_0x143ab9(0x23f)])(nn,{'onChange':_0xf22c7f,'widget':_0x3f5b36}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x108)]&&(0x0,g[_0x143ab9(0x23f)])(en,{'onChange':_0xf22c7f,'onSelectImage':_0x4c5fbf,'widget':_0x3f5b36})]});}function en({onChange:_0x54f5c3,onSelectImage:_0x4adb1d,widget:_0x5d88d4}){const _0x10a4ad=_0x30b590;let _0x352f66=(0x0,m[_0x10a4ad(0x155)])(a[_0x10a4ad(0x3ea)]);return(0x0,g[_0x10a4ad(0x38d)])(_0x10a4ad(0x460),{'className':_0x10a4ad(0x221),'children':[(0x0,g[_0x10a4ad(0x38d)])(f[_0x10a4ad(0x3da)],{'className':_0x10a4ad(0x112),'onClick':()=>_0x4adb1d()[_0x10a4ad(0xeb)](_0x3211f2=>_0x3211f2&&_0x54f5c3({..._0x5d88d4,'source':_0x3211f2[_0x10a4ad(0x23a)],'sourceType':_0x3211f2[_0x10a4ad(0x109)],'alt':_0x3211f2[_0x10a4ad(0x451)]}))[_0x10a4ad(0x29c)](()=>void 0x0),'children':[(0x0,g['jsx'])(s[_0x10a4ad(0x335)],{}),_0x352f66['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),(0x0,g['jsxs'])(_0x10a4ad(0x1c2),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x10a4ad(0x23f)])(_0x10a4ad(0x405),{'children':_0x352f66['t'](_0x10a4ad(0x481))}),(0x0,g[_0x10a4ad(0x23f)])(f[_0x10a4ad(0x324)],{'items':[{'value':'cover','label':_0x352f66['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x10a4ad(0x336),'label':_0x352f66['t'](_0x10a4ad(0x195))},{'value':_0x10a4ad(0x106),'label':_0x352f66['t']('bases-dashboard-ui.dashboardInspector.originalSize')}],'value':_0x5d88d4['displayMode']??_0x10a4ad(0x225),'onChange':_0x51b231=>_0x54f5c3({..._0x5d88d4,'displayMode':_0x51b231})[_0x10a4ad(0x29c)](()=>void 0x0)})]})]});}function tn({base:_0x428b5d,onChange:_0x23bdcf,widget:_0x2a86a2}){const _0x1bb31f=_0x30b590;let _0xeef0d=_0x428b5d[_0x1bb31f(0x38b)]()['tables'][_0x2a86a2['tableId']],_0x5ecc9f=_0xeef0d==null?void 0x0:_0xeef0d[_0x1bb31f(0x36f)][_0x1bb31f(0x41e)](_0x3b7d70=>_0xeef0d[_0x1bb31f(0x371)][_0x3b7d70]),_0x16aebc=_0x5ecc9f?_0xeef0d==null?void 0x0:_0xeef0d[_0x1bb31f(0x371)][_0x5ecc9f]:void 0x0,_0x307c7f=_0xeef0d&&_0x16aebc?(0x0,t['toMenuFields'])(_0xeef0d,_0x16aebc):[];return(0x0,g[_0x1bb31f(0x23f)])(zt,{'fields':_0x307c7f,'filter':_0x2a86a2[_0x1bb31f(0x141)],'onChange':_0x3e2d74=>_0x23bdcf({..._0x2a86a2,'filter':_0x3e2d74})[_0x1bb31f(0x29c)](()=>void 0x0),'onClear':()=>_0x23bdcf({..._0x2a86a2,'filter':null})[_0x1bb31f(0x29c)](()=>void 0x0)});}function nn({onChange:_0x99e83f,widget:_0x1b773d}){const _0x4125d3=_0x30b590;let _0x4ec522=(0x0,m[_0x4125d3(0x155)])(a[_0x4125d3(0x3ea)]),_0xa82c8f=(0x0,m[_0x4125d3(0x155)])(a[_0x4125d3(0x46a)]),_0x330ec8=(0x0,m[_0x4125d3(0xe2)])(()=>_0xa82c8f[_0x4125d3(0x317)],_0xa82c8f[_0x4125d3(0x14e)](),!0x1,[_0xa82c8f]),_0x36ff8f=oe(_0x1b773d),_0x3c0dd3=_0x2fc7ab=>_0x99e83f({..._0x1b773d,'appearance':{..._0x36ff8f,..._0x2fc7ab}})[_0x4125d3(0x29c)](()=>void 0x0);return(0x0,g[_0x4125d3(0x38d)])(_0x4125d3(0x460),{'className':_0x4125d3(0x440),'children':[(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x2b6)],{'defaultValue':U(_0x1b773d[_0x4125d3(0x45d)]),'rows':0x8,'onBlur':_0x36cbe5=>_0x99e83f({..._0x1b773d,'document':se(_0x1b773d[_0x4125d3(0x45d)],_0x36cbe5[_0x4125d3(0x12d)][_0x4125d3(0x351)])})['catch'](()=>void 0x0)}),(0x0,g[_0x4125d3(0x23f)])(n[_0x4125d3(0x2ce)],{'emptyLabel':_0x4ec522['t'](_0x4125d3(0x199)),'label':_0x4ec522['t'](_0x4125d3(0x199)),'pickerFallbackValue':_0x330ec8[_0x4125d3(0x4bb)][0x0],'resetLabel':_0x4ec522['t'](_0x4125d3(0x27f)),'value':_0x36ff8f[_0x4125d3(0xe5)]??null,'onChange':_0x3ed766=>_0x3c0dd3({'backgroundColor':_0x3ed766??void 0x0})}),(0x0,g[_0x4125d3(0x23f)])(n['ChartColorField'],{'emptyLabel':_0x4ec522['t'](_0x4125d3(0x2a9)),'label':_0x4ec522['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x330ec8[_0x4125d3(0x4bb)][0x3e8],'resetLabel':_0x4ec522['t'](_0x4125d3(0x27f)),'value':_0x36ff8f[_0x4125d3(0x3de)]??null,'onChange':_0x19172e=>_0x3c0dd3({'textColor':_0x19172e??void 0x0})}),(0x0,g[_0x4125d3(0x23f)])(an,{'label':_0x4ec522['t'](_0x4125d3(0x23c)),'children':(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x324)],{'items':[{'value':_0x4125d3(0x362),'label':_0x4ec522['t'](_0x4125d3(0x21a))},{'value':_0x4125d3(0x334),'label':_0x4ec522['t'](_0x4125d3(0x394))},{'value':_0x4125d3(0x2f1),'label':_0x4ec522['t'](_0x4125d3(0x422))}],'value':_0x36ff8f[_0x4125d3(0x121)],'onChange':_0x37884b=>_0x3c0dd3({'alignment':_0x37884b})})}),(0x0,g['jsxs'])(an,{'label':_0x4ec522['t'](_0x4125d3(0xe1)),'children':[(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x324)],{'items':[{'value':_0x4125d3(0x337),'label':_0x4ec522['t'](_0x4125d3(0x35d))},{'value':'custom','label':_0x4ec522['t'](_0x4125d3(0x1fe))}],'value':_0x36ff8f['fontSizeMode'],'onChange':_0x321796=>_0x3c0dd3({'fontSizeMode':_0x321796})}),_0x36ff8f[_0x4125d3(0xfc)]===_0x4125d3(0x3f1)&&(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x33a)],{'className':_0x4125d3(0x4d4),'min':0xa,'max':0x78,'value':_0x36ff8f[_0x4125d3(0x2c0)],'onChange':_0x5ec7fa=>_0x3c0dd3({'fontSize':_0x5ec7fa??0x12,'fontSizeMode':_0x4125d3(0x3f1)})})]})]});}function rn({message:_0x1e6b05}){const _0xe54511=_0x30b590;return(0x0,g[_0xe54511(0x23f)])(_0xe54511(0x460),{'className':_0xe54511(0x12e),'children':_0x1e6b05});}function an({children:_0xeb3bb0,label:_0x1a467e}){const _0x538f7c=_0x30b590;return(0x0,g[_0x538f7c(0x38d)])(_0x538f7c(0x460),{'role':_0x538f7c(0x3b1),'aria-':!0x0,'className':_0x538f7c(0x345),'children':[(0x0,g['jsx'])('span',{'children':_0x1a467e}),_0xeb3bb0]});}function on(_0x39afd3){const _0xc40bf9=_0x30b590;return(_0x39afd3==null?void 0x0:_0x39afd3[_0xc40bf9(0x11c)])===a[_0xc40bf9(0x4a1)][_0xc40bf9(0x2d0)]&&typeof _0x39afd3[_0xc40bf9(0x1ca)]==_0xc40bf9(0x368)&&_0x39afd3[_0xc40bf9(0x1ca)]!==null&&_0xc40bf9(0x258)in _0x39afd3[_0xc40bf9(0x1ca)]&&_0xc40bf9(0xd9)in _0x39afd3['config'];}function sn(_0x7c9662){const _0x31bc58=_0x30b590;switch(_0x7c9662[_0x31bc58(0x11c)]){case e[_0x31bc58(0x1e4)]['PivotChart']:return _0x31bc58(0x4f5);case e[_0x31bc58(0x1e4)][_0x31bc58(0x326)]:return _0x31bc58(0x2cc);case e[_0x31bc58(0x1e4)]['Text']:return _0x31bc58(0x3b6);case e[_0x31bc58(0x1e4)][_0x31bc58(0x108)]:return _0x31bc58(0x4b9);case e[_0x31bc58(0x1e4)]['FormulaShape']:return _0x31bc58(0x2bd);}}function cn({onDelete:_0x1b0ffb,onEdit:_0x528877}){const _0x138620=_0x30b590;let _0x2cd694=(0x0,m[_0x138620(0x155)])(a[_0x138620(0x3ea)]),_0xa7c90a=_0x2cd694['t'](_0x138620(0x2d9)),_0xc08858=_0x2cd694['t'](_0x138620(0x25b)),_0x3025fc=_0x2cd694['t'](_0x138620(0x15b));return(0x0,g[_0x138620(0x23f)])(f[_0x138620(0x37f)],{'items':[{'type':_0x138620(0x4b7),'children':(0x0,g[_0x138620(0x38d)])('span',{'className':_0x138620(0x307),'children':[(0x0,g[_0x138620(0x23f)])(s['PenIcon'],{'className':_0x138620(0x40b),'aria-hidden':'true'}),(0x0,g[_0x138620(0x23f)])(_0x138620(0x405),{'children':_0xa7c90a})]}),'onSelect':_0x528877},{'type':'separator'},{'type':_0x138620(0x4b7),'variant':'destructive','children':(0x0,g[_0x138620(0x38d)])(_0x138620(0x405),{'className':_0x138620(0x307),'children':[(0x0,g[_0x138620(0x23f)])(s['DeleteIcon'],{'className':_0x138620(0x40b),'aria-hidden':_0x138620(0x445)}),(0x0,g[_0x138620(0x23f)])('span',{'children':_0xc08858})]}),'onSelect':_0x1b0ffb}],'children':(0x0,g[_0x138620(0x23f)])(f[_0x138620(0x3da)],{'type':_0x138620(0x1e9),'size':'small','variant':'text','title':_0x3025fc,'aria-label':_0x3025fc,'className':_0x138620(0x1b8),'children':(0x0,g[_0x138620(0x23f)])(s[_0x138620(0x410)],{'className':'univer-size-4','aria-hidden':'true'})})});}function ln({dashboardId:_0x5986b9,presentation:_0x4747fd=!0x1,unitId:_0x4e1de3}){const _0x11e0c7=_0x30b590;let _0x3109ee=(0x0,m['useDependency'])(a[_0x11e0c7(0x279)]),_0x328193=(0x0,m[_0x11e0c7(0x155)])(u['IAttachmentIoService']),_0x5d4451=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x43c)]),_0x5469fb=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x245)]),_0xbc5056=(0x0,m[_0x11e0c7(0x155)])(a['LocaleService']),_0xfd3260=(0x0,m['useDependency'])(e[_0x11e0c7(0x3a7)]),_0xf0dbd1=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x2a5)]),_0x33b75b=(0x0,h[_0x11e0c7(0x414)])(null),[_0xa96d25,_0x47eabd]=(0x0,h[_0x11e0c7(0x40a)])(!0x1),[_0x5367f5,_0x164cb1]=(0x0,h['useState'])(),[_0x1accfc,_0x36605f]=(0x0,h[_0x11e0c7(0x40a)])(!0x1),[_0x2f5ff0,_0x1b9a68]=(0x0,h[_0x11e0c7(0x40a)])(()=>new Map()),_0x1b71d0=(0x0,h[_0x11e0c7(0x4c3)])((_0x773e0b,_0x3737c6)=>{_0x1b9a68(_0x25e291=>{const _0x2ac049=_0x1e15;let _0x2c5fa0=new Map(_0x25e291);return _0x3737c6?_0x2c5fa0[_0x2ac049(0x490)](_0x773e0b,_0x3737c6):_0x2c5fa0['delete'](_0x773e0b),_0x2c5fa0;});},[]),_0x4fe089=(0x0,m[_0x11e0c7(0xe2)])(()=>_0xfd3260['change$'][_0x11e0c7(0x26c)]((0x0,c[_0x11e0c7(0x48a)])(()=>_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9))),_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9),!0x1,[_0x5986b9,_0xfd3260,_0x4e1de3]),_0x1e82c4=_0x5469fb[_0x11e0c7(0x3e7)](_0x4e1de3,a[_0x11e0c7(0x3d5)][_0x11e0c7(0x1a2)]),_0x3f93fc=(0x0,m[_0x11e0c7(0xe2)])(()=>_0xf0dbd1[_0x11e0c7(0x30c)],{'undos':0x0,'redos':0x0},!0x1,[_0xf0dbd1]),_0x5c1f2a=w(_0x4e1de3,_0x5986b9);if((0x0,h['useEffect'])(()=>{const _0x21069d=_0x11e0c7;_0x5469fb['setCurrentUnitForType'](_0x4e1de3),_0x5469fb[_0x21069d(0x10f)](_0x4e1de3);},[_0x5469fb,_0x4e1de3]),(0x0,h[_0x11e0c7(0x3dd)])(()=>{const _0x1b1681=_0x11e0c7;let _0x4bdf19=_0x33b75b['current'],_0x17a405=_0x4bdf19==null?void 0x0:_0x4bdf19['ownerDocument'];if(!_0x4bdf19||!_0x17a405)return;let _0x339a17=()=>_0x36605f(_0x17a405[_0x1b1681(0x29d)]===_0x17a405[_0x1b1681(0x13a)]),_0x4248f3=_0x529998=>{const _0x5e05b5=_0x1b1681;_0x529998[_0x5e05b5(0x2d3)]===_0x5e05b5(0x178)&&!_0x529998[_0x5e05b5(0x3c5)]&&_0x17a405[_0x5e05b5(0x29d)]===_0x17a405['documentElement']&&_0x17a405['exitFullscreen']()['catch'](_0x339a17);};return _0x17a405[_0x1b1681(0x42d)]('fullscreenchange',_0x339a17),_0x17a405[_0x1b1681(0x42d)]('keydown',_0x4248f3),()=>{const _0x433611=_0x1b1681;_0x17a405['removeEventListener'](_0x433611(0x2ef),_0x339a17),_0x17a405[_0x433611(0x346)](_0x433611(0x1a5),_0x4248f3);};},[]),!_0x4fe089||!_0x1e82c4)return null;let _0xcf4e66=_0x2142e4=>_0x3109ee[_0x11e0c7(0x387)](e[_0x11e0c7(0x37d)]['id'],{'unitId':_0x4e1de3,'dashboardId':_0x5986b9,'widget':_0x2142e4})[_0x11e0c7(0x29c)](()=>void 0x0),_0x317748=(_0x105518,_0x5e85ba,_0xe32642)=>{const _0x19492b=_0x11e0c7;let _0x2ad6ea=Math[_0x19492b(0x26a)](0x0,..._0x4fe089['widgetOrder']['flatMap'](_0x57fdc8=>{const _0x34cf06=_0x19492b;var _0x3df892;let _0x372a09=(_0x3df892=_0x4fe089[_0x34cf06(0x110)][_0x57fdc8])==null?void 0x0:_0x3df892[_0x34cf06(0x122)];return _0x372a09?[_0x372a09['row']+_0x372a09[_0x34cf06(0x4aa)]]:[];})),_0x504a09=_0x19492b(0x219)+(0x0,a[_0x19492b(0x3f8)])(0x8),_0x4966fc={'column':0x0,'row':_0x2ad6ea,'columnSpan':_0x5e85ba,'rowSpan':_0xe32642};switch(_0x105518[_0x19492b(0x11c)]){case e[_0x19492b(0x1e4)]['PivotChart']:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e['BaseDashboardWidgetType']['TableFilter']:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e['BaseDashboardWidgetType'][_0x19492b(0x115)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e[_0x19492b(0x1e4)][_0x19492b(0x108)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e[_0x19492b(0x1e4)][_0x19492b(0x31c)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});}},_0x2429b2=_0x1e82c4[_0x11e0c7(0x38b)](),_0x32e3c3=_0x2429b2[_0x11e0c7(0x473)]['flatMap'](_0xc9dab3=>{const _0x52e063=_0x11e0c7;let _0x31b196=_0x2429b2[_0x52e063(0x4fe)][_0xc9dab3];if(!_0x31b196)return[];let _0x596eaa=_0x31b196[_0x52e063(0x36f)][_0x52e063(0x4e3)](_0x58f19=>{const _0xa82cbe=_0x52e063;let _0x59d43e=_0x31b196['views'][_0x58f19];return _n(_0x59d43e)?[{'type':_0xa82cbe(0x4b7),'children':_0x59d43e[_0xa82cbe(0x451)],'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType']['PivotChart'],'tableId':_0xc9dab3,'pivotViewId':_0x58f19,'chart':{..._0x59d43e[_0xa82cbe(0x1ca)][_0xa82cbe(0xd9)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x31b196['name'],'options':[..._0x596eaa,..._0x596eaa[_0x52e063(0xf8)]?[{'type':_0x52e063(0xe3)}]:[],{'type':_0x52e063(0x4b7),'children':_0xbc5056['t'](_0x52e063(0x2cc)),'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType'][_0x52e063(0x326)],'tableId':_0xc9dab3,'filter':null},0x6,0x8)}]}];}),_0x10667c=[..._0x32e3c3,..._0x32e3c3[_0x11e0c7(0xf8)]?[{'type':_0x11e0c7(0xe3)}]:[],{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x3b6)),'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType'][_0x11e0c7(0x115)],'document':pn()},0x4,0x6)},{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x4b9)),'onSelect':()=>mn(_0x328193)['then'](_0x12e7c8=>_0x12e7c8&&_0x317748({'type':e['BaseDashboardWidgetType'][_0x11e0c7(0x108)],'source':_0x12e7c8[_0x11e0c7(0x23a)],'sourceType':_0x12e7c8['sourceType'],'alt':_0x12e7c8[_0x11e0c7(0x451)],'displayMode':_0x11e0c7(0x225)},0x4,0x6))},{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x2bd)),'onSelect':()=>{const _0x3a8d35=_0x11e0c7;let _0x283297=_0x2429b2[_0x3a8d35(0x473)][_0x3a8d35(0x41e)](_0x552ed0=>_0x2429b2['tables'][_0x552ed0]);_0x283297&&_0x317748({'type':e[_0x3a8d35(0x1e4)][_0x3a8d35(0x31c)],'tableId':_0x283297,'shapeType':d[_0x3a8d35(0x41c)][_0x3a8d35(0x30e)],'shapeData':(0x0,i['createFormulaShapeData'])(),'description':_0xbc5056['t'](_0x3a8d35(0x2bd))},0x4,0x6);}}],_0x5a9e75=_0x5367f5?_0x4fe089[_0x11e0c7(0x110)][_0x5367f5]:void 0x0,_0x41e631=async()=>{const _0xc565d4=_0x11e0c7;let _0x2a1387=_0x33b75b[_0xc565d4(0x216)];if(!_0x2a1387)return;let _0x5135eb=_0x2a1387[_0xc565d4(0x3c0)];_0x5135eb[_0xc565d4(0x29d)]===_0x5135eb[_0xc565d4(0x13a)]?await _0x5135eb['exitFullscreen']():await _0x5135eb[_0xc565d4(0x13a)][_0xc565d4(0x27b)]();},_0x48e3f9=_0x4747fd||_0x1accfc,_0x1c8067=_0x5c1f2a&&!_0x48e3f9;return(0x0,g['jsxs'])('div',{'ref':_0x33b75b,'className':_0x11e0c7(0x33c)+(_0x1accfc?_0x11e0c7(0x262):_0x11e0c7(0x49c))+_0x11e0c7(0xea),'children':[!_0x48e3f9&&(0x0,g['jsxs'])(_0x11e0c7(0x4f6),{'className':_0x11e0c7(0x2f2),'children':[(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0xf6)],{'className':_0x11e0c7(0x471)}),(0x0,g[_0x11e0c7(0x23f)])('h2',{'className':_0x11e0c7(0x431),'children':_0x4fe089[_0x11e0c7(0x451)]}),(0x0,g[_0x11e0c7(0x23f)])(m[_0x11e0c7(0x3af)],{'target':{'unitId':_0x4e1de3,'objectId':(0x0,l[_0x11e0c7(0x148)])(_0x5986b9),'objectType':p['UnitObject'][_0x11e0c7(0x249)]},'name':_0x4fe089[_0x11e0c7(0x451)],'commandId':l[_0x11e0c7(0x33d)]['id'],'exists':()=>!!_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9)},_0x4e1de3+'/'+_0x5986b9),(0x0,g[_0x11e0c7(0x23f)])(t[_0x11e0c7(0x388)],{'unitId':_0x4e1de3}),(0x0,g['jsx'])(f[_0x11e0c7(0x3da)],{'type':_0x11e0c7(0x1e9),'size':'small','variant':_0x11e0c7(0x455),'aria-label':_0xbc5056['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x5c1f2a||_0x3f93fc['undos']===0x0,'onClick':()=>_0x3109ee[_0x11e0c7(0x387)](a[_0x11e0c7(0x22b)]['id'])[_0x11e0c7(0x29c)](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x20e)],{})}),(0x0,g['jsx'])(f[_0x11e0c7(0x3da)],{'type':'button','size':_0x11e0c7(0x301),'variant':'text','aria-label':_0xbc5056['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x5c1f2a||_0x3f93fc['redos']===0x0,'onClick':()=>_0x3109ee[_0x11e0c7(0x387)](a[_0x11e0c7(0x3ec)]['id'])[_0x11e0c7(0x29c)](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x304)],{})}),(0x0,g[_0x11e0c7(0x23f)])(f['Button'],{'type':_0x11e0c7(0x1e9),'size':_0x11e0c7(0x301),'variant':_0x11e0c7(0x455),'aria-label':_0xbc5056['t'](_0x11e0c7(0x1bb)),'onClick':()=>_0x41e631()['catch'](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x272)],{})}),(0x0,g[_0x11e0c7(0x23f)])(f['DropdownMenu'],{'items':_0x10667c,'children':(0x0,g[_0x11e0c7(0x38d)])(f['Button'],{'variant':_0x11e0c7(0x31d),'disabled':!_0x5c1f2a,'children':[(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x335)],{}),_0xbc5056['t'](_0x11e0c7(0x4a7))]})})]}),(0x0,g[_0x11e0c7(0x38d)])(_0x11e0c7(0x460),{'className':_0x11e0c7(0xe9),'children':[(0x0,g[_0x11e0c7(0x23f)])(_0x11e0c7(0x460),{'className':_0x11e0c7(0x333),'children':(0x0,g['jsx'])(wt,{'dashboard':_0x4fe089,'dragLabel':_0xbc5056['t'](_0x11e0c7(0x357)),'editable':_0x1c8067,'resizeLabel':_0xbc5056['t'](_0x11e0c7(0x1fd)),'widgetLabel':_0x5445e6=>_0xbc5056['t'](gn(_0x5445e6['type'])),'selectedWidgetId':_0x1c8067?_0x5367f5:void 0x0,'onSelectWidget':_0x1c8067?_0x3f930d=>{_0x164cb1(_0x3f930d),_0x3f930d||_0x47eabd(!0x1);}:void 0x0,'onLayoutsCommit':_0x1ee281=>{const _0x2ed0c1=_0x11e0c7;let _0x5167db={..._0x4fe089['widgets']};_0x1ee281[_0x2ed0c1(0x1f8)]((_0x2a0ead,_0x4cdfee)=>{let _0x21eddd=_0x5167db[_0x4cdfee];_0x21eddd&&(_0x5167db[_0x4cdfee]={..._0x21eddd,'layout':_0x2a0ead});}),_0x3109ee[_0x2ed0c1(0x387)](e[_0x2ed0c1(0x180)]['id'],{'unitId':_0x4e1de3,'dashboard':{..._0x4fe089,'widgets':_0x5167db}})[_0x2ed0c1(0x29c)](()=>void 0x0);},'renderWidget':_0x50723d=>(0x0,g[_0x11e0c7(0x23f)])(un,{'base':_0x1e82c4,'dashboard':_0x4fe089,'unitId':_0x4e1de3,'widget':_0x50723d,'onChange':_0xcf4e66,'onChartRuntimeChange':_0x1b71d0}),'renderWidgetActions':_0x2e46d8=>(0x0,g[_0x11e0c7(0x23f)])(cn,{'onEdit':()=>{_0x164cb1(_0x2e46d8['id']),_0x47eabd(!0x0);},'onDelete':()=>{const _0x4e8de2=_0x11e0c7;_0x5367f5===_0x2e46d8['id']&&(_0x164cb1(void 0x0),_0x47eabd(!0x1)),_0x3109ee[_0x4e8de2(0x387)](e[_0x4e8de2(0x340)]['id'],{'unitId':_0x4e1de3,'dashboardId':_0x5986b9,'widgetId':_0x2e46d8['id']})[_0x4e8de2(0x29c)](()=>void 0x0);}})})}),_0x1c8067&&_0xa96d25&&_0x5a9e75&&(0x0,g[_0x11e0c7(0x23f)])($t,{'base':_0x1e82c4,'chartRuntime':_0x2f5ff0[_0x11e0c7(0x4ae)](_0x5a9e75['id']),'unitId':_0x4e1de3,'widget':_0x5a9e75,'onChange':_0xcf4e66,'onClose':()=>_0x47eabd(!0x1),'onSelectBackgroundImage':()=>hn(_0x5d4451),'onSelectImage':()=>mn(_0x328193)})]})]});}function un({base:_0x1318a1,dashboard:_0x5d11ae,onChange:_0x4c37a7,onChartRuntimeChange:_0x3080ca,unitId:_0x2a678f,widget:_0x1b7f21}){const _0x3306b8=_0x30b590;let _0x349981=(0x0,h[_0x3306b8(0x2c1)])(()=>_0x5d11ae[_0x3306b8(0x4c7)]['flatMap'](_0x1e2be1=>{const _0x3463ca=_0x3306b8;let _0x52eaf9=_0x5d11ae[_0x3463ca(0x110)][_0x1e2be1];return(_0x52eaf9==null?void 0x0:_0x52eaf9[_0x3463ca(0x11c)])===e[_0x3463ca(0x1e4)][_0x3463ca(0x326)]&&_0x52eaf9[_0x3463ca(0x3d3)]===(_0x3463ca(0x3d3)in _0x1b7f21?_0x1b7f21[_0x3463ca(0x3d3)]:'')&&_0x52eaf9[_0x3463ca(0x141)]?[_0x52eaf9[_0x3463ca(0x141)]]:[];}),[_0x5d11ae,_0x1b7f21]);switch(_0x1b7f21[_0x3306b8(0x11c)]){case e[_0x3306b8(0x1e4)][_0x3306b8(0x3c7)]:return(0x0,g[_0x3306b8(0x23f)])(ie,{'filters':_0x349981,'unitId':_0x2a678f,'widget':_0x1b7f21,'onRuntimeChange':_0x3080ca});case e[_0x3306b8(0x1e4)][_0x3306b8(0x326)]:return(0x0,g[_0x3306b8(0x23f)])(Rt,{'fields':dn(_0x1318a1,_0x1b7f21['tableId']),'filter':_0x1b7f21[_0x3306b8(0x141)],'onChange':_0x3d868d=>_0x4c37a7({..._0x1b7f21,'filter':_0x3d868d})[_0x3306b8(0x29c)](()=>void 0x0)});case e[_0x3306b8(0x1e4)]['Text']:return(0x0,g[_0x3306b8(0x23f)])(ce,{'widget':_0x1b7f21});case e[_0x3306b8(0x1e4)]['Image']:return(0x0,g['jsx'])(fn,{'widget':_0x1b7f21});case e['BaseDashboardWidgetType'][_0x3306b8(0x31c)]:return(0x0,g[_0x3306b8(0x23f)])(M,{'dashboardId':_0x5d11ae['id'],'unitId':_0x2a678f,'widget':_0x1b7f21});}}function dn(_0x406ce2,_0x386bd5){const _0x5cbc10=_0x30b590;let _0x748735=_0x406ce2['getSnapshot']()['tables'][_0x386bd5],_0xaff37e=_0x748735==null?void 0x0:_0x748735[_0x5cbc10(0x36f)][_0x5cbc10(0x41e)](_0x45cdba=>_0x748735[_0x5cbc10(0x371)][_0x45cdba]),_0x5bd903=_0xaff37e?_0x748735==null?void 0x0:_0x748735['views'][_0xaff37e]:void 0x0;return _0x748735&&_0x5bd903?(0x0,t[_0x5cbc10(0x117)])(_0x748735,_0x5bd903):[];}function fn({widget:_0x1fa747}){const _0x3db408=_0x30b590;let _0x216536=(0x0,m[_0x3db408(0x155)])(u[_0x3db408(0x45e)]),[_0x1c606c,_0x493a60]=(0x0,h[_0x3db408(0x40a)])(_0x1fa747[_0x3db408(0x109)]===a[_0x3db408(0x30b)][_0x3db408(0x19e)]?'':_0x1fa747[_0x3db408(0x23a)]);return(0x0,h[_0x3db408(0x3dd)])(()=>{const _0xe147aa=_0x3db408;let _0x556cb0=!0x0;return _0x216536[_0xe147aa(0x17c)](_0x1fa747[_0xe147aa(0x23a)],_0x1fa747[_0xe147aa(0x109)])[_0xe147aa(0xeb)](_0x1d187c=>{_0x556cb0&&_0x493a60(_0x1d187c);})[_0xe147aa(0x29c)](()=>void 0x0),()=>{_0x556cb0=!0x1;};},[_0x216536,_0x1fa747['source'],_0x1fa747[_0x3db408(0x109)]]),_0x1c606c?(0x0,g[_0x3db408(0x23f)])(_0x3db408(0x460),{'role':_0x1fa747[_0x3db408(0x2aa)]?_0x3db408(0x1db):void 0x0,'aria-label':_0x1fa747[_0x3db408(0x2aa)]||void 0x0,'data-dashboard-image':_0x1fa747['id'],'className':_0x3db408(0x46d),'style':E(_0x1c606c,_0x1fa747[_0x3db408(0x10e)])}):null;}function pn(){const _0x1ad101=_0x30b590;let _0x355e2e=(0x0,a[_0x1ad101(0x13f)])(new Set());return{'id':_0x1ad101(0x43f)+(0x0,a['generateRandomId'])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x355e2e}]},'documentStyle':{}};}function mn(_0x812d67){return new Promise(_0x3e26cb=>{const _0x4fafe7=_0x1e15;let _0x58aff6=document[_0x4fafe7(0x427)](_0x4fafe7(0x238));_0x58aff6[_0x4fafe7(0x11c)]=_0x4fafe7(0x2fa),_0x58aff6[_0x4fafe7(0x4b5)]=_0x4fafe7(0x497),_0x58aff6['addEventListener'](_0x4fafe7(0x49d),()=>{const _0x1d9486=_0x4fafe7;var _0x569d16;let _0x13ebea=(_0x569d16=_0x58aff6[_0x1d9486(0x2c8)])==null?void 0x0:_0x569d16[0x0];_0x13ebea?_0x812d67[_0x1d9486(0x2ab)](_0x13ebea)['then'](_0x337f16=>{const _0x4e9a43=_0x1d9486;!_0x337f16[_0x4e9a43(0x23a)]||_0x337f16[_0x4e9a43(0x109)]===void 0x0?_0x3e26cb(null):_0x3e26cb({'name':_0x337f16['name'],'source':_0x337f16[_0x4e9a43(0x23a)],'sourceType':_0x337f16[_0x4e9a43(0x109)]});})['catch'](()=>_0x3e26cb(null)):_0x3e26cb(null);},{'once':!0x0}),_0x58aff6[_0x4fafe7(0x12a)]();});}function hn(_0x5bd42b){return new Promise(_0x307b9c=>{const _0xa587eb=_0x1e15;let _0x2f6fbf=document['createElement'](_0xa587eb(0x238));_0x2f6fbf[_0xa587eb(0x11c)]='file',_0x2f6fbf[_0xa587eb(0x4b5)]=_0xa587eb(0x497),_0x2f6fbf[_0xa587eb(0x42d)](_0xa587eb(0x49d),()=>{const _0x334991=_0xa587eb;var _0x2df101;let _0x2f80aa=(_0x2df101=_0x2f6fbf[_0x334991(0x2c8)])==null?void 0x0:_0x2df101[0x0];_0x2f80aa?_0x5bd42b[_0x334991(0x26b)](_0x2f80aa)[_0x334991(0xeb)](_0x12ee47=>{const _0x32c061=_0x334991;if(!(_0x12ee47!=null&&_0x12ee47[_0x32c061(0x23a)]))_0x307b9c(null);else{if(_0x12ee47[_0x32c061(0x228)]){let _0x4fecdb=new Image();_0x4fecdb[_0x32c061(0x133)]=_0x12ee47[_0x32c061(0x228)],_0x5bd42b[_0x32c061(0xf0)](_0x12ee47['source'],_0x12ee47[_0x32c061(0x200)],_0x4fecdb);}_0x307b9c({'source':_0x12ee47[_0x32c061(0x23a)],'sourceType':_0x12ee47[_0x32c061(0x200)]});}})[_0x334991(0x29c)](()=>_0x307b9c(null)):_0x307b9c(null);},{'once':!0x0}),_0x2f6fbf[_0xa587eb(0x12a)]();});}function gn(_0x126d4d){const _0x42bfd5=_0x30b590;switch(_0x126d4d){case e[_0x42bfd5(0x1e4)]['PivotChart']:return _0x42bfd5(0x4f5);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x326)]:return _0x42bfd5(0x2cc);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x115)]:return'bases-dashboard-ui.dashboard.text';case e['BaseDashboardWidgetType']['Image']:return _0x42bfd5(0x4b9);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x31c)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function _n(_0x541e88){const _0xd042ce=_0x30b590;return(_0x541e88==null?void 0x0:_0x541e88[_0xd042ce(0x11c)])===a[_0xd042ce(0x4a1)][_0xd042ce(0x2d0)]&&typeof _0x541e88[_0xd042ce(0x1ca)]==_0xd042ce(0x368)&&_0x541e88['config']!==null&&_0xd042ce(0x258)in _0x541e88[_0xd042ce(0x1ca)]&&'chart'in _0x541e88[_0xd042ce(0x1ca)];}const vn=[{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x2e5)],'key':'filterFields','label':_0x30b590(0xd3)},{'area':y[_0x30b590(0xd8)][_0x30b590(0xf2)],'key':_0x30b590(0x256),'label':'bases-dashboard-ui.pivot.columns'},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x44f)],'key':_0x30b590(0x191),'label':_0x30b590(0x24b)},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x19b)],'key':_0x30b590(0x338),'label':_0x30b590(0x39b)}],yn=[{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x18a)],'localeKey':_0x30b590(0x3d7)},{'value':y[_0x30b590(0x312)][_0x30b590(0x379)],'localeKey':_0x30b590(0x3e0)},{'value':y[_0x30b590(0x312)][_0x30b590(0x4db)],'localeKey':_0x30b590(0x33f)},{'value':y[_0x30b590(0x312)][_0x30b590(0x4d8)],'localeKey':_0x30b590(0x2fc)},{'value':y[_0x30b590(0x312)][_0x30b590(0x26a)],'localeKey':_0x30b590(0x1d2)},{'value':y[_0x30b590(0x312)][_0x30b590(0x2f9)],'localeKey':_0x30b590(0x1ce)},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x32d)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0x30b590(0x312)][_0x30b590(0x4e5)],'localeKey':_0x30b590(0x375)},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x4ad)],'localeKey':_0x30b590(0x1b5)},{'value':y[_0x30b590(0x312)][_0x30b590(0x1e0)],'localeKey':_0x30b590(0x446)},{'value':y[_0x30b590(0x312)][_0x30b590(0x107)],'localeKey':_0x30b590(0x1a0)}];function bn(_0x59c28f){const _0x5e4bda=_0x30b590;let {config:_0x4d49a9,onChange:_0x27e674,table:_0x41c4ae}=_0x59c28f,_0x35b95e=(0x0,m[_0x5e4bda(0x155)])(a[_0x5e4bda(0x3ea)]),[_0x5c60ad,_0x547e59]=(0x0,h['useState'])(_0x5e4bda(0x3c6)),[_0x31cc57,_0x520a19]=(0x0,h[_0x5e4bda(0x40a)])(''),[_0xb83190,_0x55a8e4]=(0x0,h['useState'])(null),[_0x589063,_0x51f307]=(0x0,h['useState'])(null),[_0x8d73e5,_0x365d19]=(0x0,h[_0x5e4bda(0x40a)])(null),[_0x27ca56,_0xd5e658]=(0x0,h[_0x5e4bda(0x40a)])(null),_0xc39d06=(0x0,h[_0x5e4bda(0x414)])(null),_0x45d5f5=(0x0,h[_0x5e4bda(0x2c1)])(()=>_0x41c4ae[_0x5e4bda(0x2f0)]['flatMap'](_0x29eeb7=>{const _0x51d518=_0x5e4bda;let _0x4c386d=_0x41c4ae['fields'][_0x29eeb7];return _0x4c386d&&_0x4c386d[_0x51d518(0x20a)]!==!0x0&&_0x4c386d[_0x51d518(0x11c)]!==a[_0x51d518(0x1d5)][_0x51d518(0x4d6)]?[_0x4c386d]:[];})['filter'](_0x5a9c64=>_0x5a9c64[_0x5e4bda(0x451)][_0x5e4bda(0x144)]()[_0x5e4bda(0x30a)](_0x31cc57['trim']()[_0x5e4bda(0x144)]())),[_0x31cc57,_0x41c4ae]),_0x184848=_0x5dc2c4=>{const _0x9ccd01=_0x5e4bda;let _0x3ae000=(0x0,e[_0x9ccd01(0x17a)])(_0x41c4ae,_0x4d49a9['pivot']);try{_0x5dc2c4(_0x3ae000),_0x27e674({'pivot':_0x3ae000[_0x9ccd01(0x322)]()});}finally{_0x3ae000['dispose']();}},_0x949f81=(_0x3e8f75,_0x316f3e)=>{_0xb83190&&(_0x184848(_0xb663d=>{const _0x2c1ea5=_0x1e15;if(_0xb83190[_0x2c1ea5(0x438)]===_0x2c1ea5(0x492)){let _0x2ea9b5=_0xb663d[_0x2c1ea5(0x40d)](_0xb83190['id']),_0x49c650=_0x2ea9b5['area']===_0x3e8f75&&_0x2ea9b5['index']<_0x316f3e?_0x316f3e-0x1:_0x316f3e;_0xb663d[_0x2c1ea5(0x3ad)](_0xb83190['id'],_0x3e8f75,_0x49c650);}else On(_0xb663d,_0xb83190['id'],_0x3e8f75,_0x316f3e);}),_0x55a8e4(null),_0x51f307(null));};return(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x461),'children':[(0x0,g['jsx'])(n['ChartEditPanelTabs'],{'ariaLabel':_0x35b95e['t'](_0x5e4bda(0x46b)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x35b95e['t'](_0x5e4bda(0x4c6)),'panelId':_0x5e4bda(0x3cc),'value':_0x5e4bda(0x3c6)},{'label':_0x35b95e['t'](_0x5e4bda(0x21d)),'panelId':_0x5e4bda(0x3bc),'value':'options'}],'value':_0x5c60ad,'onChange':_0x547e59}),(0x0,g[_0x5e4bda(0x23f)])(_0x5e4bda(0x460),{'ref':_0xc39d06,'className':(0x0,f['clsx'])(_0x5e4bda(0x294),f[_0x5e4bda(0x166)]),'onDragOver':_0x195a42=>{const _0x1ddb00=_0x5e4bda;let _0xc98504=_0xc39d06[_0x1ddb00(0x216)];if(!_0xc98504)return;let _0x5f2b0c=_0xc98504['getBoundingClientRect']();_0x195a42[_0x1ddb00(0x12f)]<_0x5f2b0c[_0x1ddb00(0x291)]+0x30?_0xc98504[_0x1ddb00(0x2a0)]-=0x10:_0x195a42['clientY']>_0x5f2b0c[_0x1ddb00(0x1c3)]-0x30&&(_0xc98504['scrollTop']+=0x10);},'children':_0x5c60ad===_0x5e4bda(0x45a)?(0x0,g[_0x5e4bda(0x23f)])(Dn,{'config':_0x4d49a9,'commit':_0x184848}):(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x27e),'children':[(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'children':[(0x0,g['jsx'])(_0x5e4bda(0x460),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x35b95e['t'](_0x5e4bda(0x1e3))}),(0x0,g['jsx'])(f['Input'],{'allowClear':!0x0,'slot':(0x0,g['jsx'])(s[_0x5e4bda(0x31f)],{}),'value':_0x31cc57,'placeholder':_0x35b95e['t'](_0x5e4bda(0x176)),'onChange':_0x520a19}),(0x0,g[_0x5e4bda(0x23f)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x1e1),'children':_0x45d5f5['map'](_0x3ce6e0=>(0x0,g[_0x5e4bda(0x23f)])(xn,{'config':_0x4d49a9,'field':_0x3ce6e0,'onAdd':_0x1e1e6c=>_0x184848(_0x2dde61=>On(_0x2dde61,_0x3ce6e0['id'],_0x1e1e6c,_0x2dde61[_0x5e4bda(0x241)](_0x1e1e6c))),'onCheckedChange':_0x467265=>_0x184848(_0x413dc1=>{const _0x511a16=_0x5e4bda;let _0x10ed4f=_0x413dc1['getTableFieldsByDataFieldId'](_0x3ce6e0['id']);if(!_0x467265)_0x10ed4f['forEach'](_0x58482c=>_0x413dc1[_0x511a16(0x2a3)](_0x58482c[_0x511a16(0x3f6)]()));else{if(_0x10ed4f['length']===0x0){let _0x125564=An(_0x3ce6e0)?y['PivotTableFiledAreaEnum']['Value']:y[_0x511a16(0xd8)]['Row'];_0x413dc1['addFieldWithSourceId'](_0x3ce6e0['id'],_0x125564);}}}),'onDragStart':()=>_0x55a8e4({'kind':_0x5e4bda(0x23a),'id':_0x3ce6e0['id']})},_0x3ce6e0['id']))})]}),(0x0,g['jsx'])('div',{'className':_0x5e4bda(0x48c),'children':vn['map'](_0x3a9a25=>(0x0,g[_0x5e4bda(0x23f)])(Cn,{'area':_0x3a9a25[_0x5e4bda(0x1be)],'dropTarget':_0x589063,'fields':_0x4d49a9[_0x5e4bda(0x258)][_0x3a9a25[_0x5e4bda(0x2d3)]],'label':_0x35b95e['t'](_0x3a9a25['label']),'snapshot':_0x4d49a9[_0x5e4bda(0x258)],'onDragEnd':()=>{_0x55a8e4(null),_0x51f307(null);},'onDragStart':_0x5d7190=>_0x55a8e4({'kind':_0x5e4bda(0x492),'id':_0x5d7190,'area':_0x3a9a25[_0x5e4bda(0x1be)]}),'onDragOver':_0x8a5b28=>_0x51f307({'area':_0x3a9a25['area'],'index':_0x8a5b28}),'onDrop':_0x47f746=>_0x949f81(_0x3a9a25['area'],_0x47f746),'onFilter':_0x365d19,'onRemove':_0xfa86b9=>_0x184848(_0x53ca54=>_0x53ca54[_0x5e4bda(0x2a3)](_0xfa86b9)),'onSettings':_0xd5e658},_0x3a9a25[_0x5e4bda(0x1be)]))}),_0x8d73e5&&(0x0,g['jsx'])(Tn,{'fieldId':_0x8d73e5,'snapshot':_0x4d49a9[_0x5e4bda(0x258)],'table':_0x41c4ae,'onCancel':()=>_0x365d19(null),'onCommit':(_0x30681d,_0x16a9b0)=>{_0x184848(_0x5622e3=>{const _0x54f587=_0x1e15;let _0x424c93=_0x5622e3[_0x54f587(0x28f)](_0x8d73e5),_0x43f037=(_0x424c93==null?void 0x0:_0x424c93['items'])??[];_0x5622e3[_0x54f587(0x482)](_0x8d73e5,{'type':y['PivotFilterTypeEnum'][_0x54f587(0x14d)],'list':_0x30681d,'isAll':_0x30681d[_0x54f587(0xf8)]===_0x43f037[_0x54f587(0xf8)]}),_0x5622e3[_0x54f587(0x1af)](_0x8d73e5,_0x16a9b0===void 0x0?void 0x0:{'type':_0x16a9b0});}),_0x365d19(null);}},_0x8d73e5),_0x27ca56&&(0x0,g[_0x5e4bda(0x23f)])(En,{'field':_0x4d49a9[_0x5e4bda(0x258)][_0x5e4bda(0x327)][_0x27ca56],'onCancel':()=>_0xd5e658(null),'onCommit':(_0x218260,_0x42a670,_0x31a165)=>{_0x184848(_0x32fdc3=>{const _0x535c16=_0x1e15;_0x32fdc3[_0x535c16(0x14a)](_0x27ca56,_0x218260),_0x32fdc3[_0x535c16(0x1ad)](_0x27ca56,_0x42a670),_0x32fdc3['setFieldFormat'](_0x27ca56,_0x31a165||void 0x0);}),_0xd5e658(null);}},_0x27ca56)]})})]});}function xn(_0x20964d){const _0x1c5561=_0x30b590;let {config:_0xa3f353,field:_0x497ae3,onAdd:_0x3846ae,onCheckedChange:_0x2dc639,onDragStart:_0x598c0f}=_0x20964d,_0x2746d8=(0x0,m[_0x1c5561(0x155)])(a[_0x1c5561(0x3ea)]),_0x59ced4=[...Object[_0x1c5561(0x1ba)](_0xa3f353['pivot'][_0x1c5561(0x32a)]),...Object['values'](_0xa3f353[_0x1c5561(0x258)][_0x1c5561(0x327)])][_0x1c5561(0x364)](_0x2f5f45=>_0x2f5f45[_0x1c5561(0x366)]===_0x497ae3['id']),_0x363f0c=vn[_0x1c5561(0x48a)](_0x77ad4e=>({'type':_0x1c5561(0x4b7),'children':_0x2746d8['t'](jn(_0x77ad4e[_0x1c5561(0x1be)])),'onSelect':()=>_0x3846ae(_0x77ad4e['area'])}));return(0x0,g[_0x1c5561(0x38d)])(_0x1c5561(0x460),{'draggable':!0x0,'className':_0x1c5561(0x16a),'onDragStart':_0x598c0f,'children':[(0x0,g[_0x1c5561(0x23f)])(s['GripVerticalIcon'],{'className':_0x1c5561(0x3d2)}),(0x0,g[_0x1c5561(0x23f)])(f[_0x1c5561(0x2b9)],{'checked':_0x59ced4,'onChange':_0x3b0c19=>_0x2dc639(!!_0x3b0c19)}),(0x0,g['jsx'])(Sn,{'field':_0x497ae3}),(0x0,g[_0x1c5561(0x23f)])(_0x1c5561(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x497ae3[_0x1c5561(0x451)]}),(0x0,g[_0x1c5561(0x23f)])(f[_0x1c5561(0x37f)],{'align':'end','items':_0x363f0c,'children':(0x0,g[_0x1c5561(0x23f)])(_0x1c5561(0x405),{'className':_0x1c5561(0x1b7),'children':(0x0,g[_0x1c5561(0x23f)])(s[_0x1c5561(0x187)],{})})})]});}function Sn({field:_0x43e6e3}){const _0x427af7=_0x30b590;return An(_0x43e6e3)?(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x343)],{'className':_0x427af7(0x3d2)}):_0x43e6e3[_0x427af7(0x11c)]===a[_0x427af7(0x1d5)]['Date']||_0x43e6e3[_0x427af7(0x11c)]===a[_0x427af7(0x1d5)]['CreatedAt']||_0x43e6e3['type']===a['BaseFieldType'][_0x427af7(0x380)]?(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x25c)],{'className':_0x427af7(0x3d2)}):(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x4f2)],{'className':_0x427af7(0x3d2)});}function Cn(_0x2fdc8f){const _0x2d4cb8=_0x30b590;let {area:_0x8b374f,dropTarget:_0x50adf3,fields:_0x2152b5,label:_0x4c6b39,snapshot:_0x306eb4}=_0x2fdc8f,_0x5597a5=(0x0,m[_0x2d4cb8(0x155)])(a['LocaleService']);return(0x0,g[_0x2d4cb8(0x38d)])(_0x2d4cb8(0x2f7),{'className':(0x0,f['clsx'])(_0x2d4cb8(0x244),f[_0x2d4cb8(0x209)]),'onDragOver':_0x24b728=>{const _0x2eb32c=_0x2d4cb8;_0x24b728[_0x2eb32c(0x222)](),_0x2fdc8f[_0x2eb32c(0x3fd)](_0x2152b5['length']);},'onDrop':_0x533dbe=>{const _0x25effb=_0x2d4cb8;_0x533dbe[_0x25effb(0x222)](),_0x2fdc8f[_0x25effb(0x46f)]((_0x50adf3==null?void 0x0:_0x50adf3[_0x25effb(0x1be)])===_0x8b374f?_0x50adf3[_0x25effb(0x489)]:_0x2152b5[_0x25effb(0xf8)]);},'children':[(0x0,g['jsx'])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x330),'children':_0x4c6b39}),(0x0,g[_0x2d4cb8(0x38d)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x302),'children':[_0x2152b5[_0x2d4cb8(0x48a)]((_0x21b7a5,_0x46fa97)=>{const _0x37d8cf=_0x2d4cb8;let _0x170a99=_0x306eb4['dimension'][_0x21b7a5]??_0x306eb4[_0x37d8cf(0x327)][_0x21b7a5];if(!_0x170a99)return null;let _0x5699af=(_0x50adf3==null?void 0x0:_0x50adf3[_0x37d8cf(0x1be)])===_0x8b374f&&_0x50adf3[_0x37d8cf(0x489)]===_0x46fa97;return(0x0,g[_0x37d8cf(0x38d)])(_0x37d8cf(0x460),{'onDragOver':_0x1412e4=>{const _0x245c88=_0x37d8cf;_0x1412e4[_0x245c88(0x222)](),_0x1412e4[_0x245c88(0x231)]();let _0x48da30=_0x1412e4['currentTarget']['getBoundingClientRect']();_0x2fdc8f[_0x245c88(0x3fd)](_0x46fa97+ +(_0x1412e4[_0x245c88(0x12f)]>_0x48da30[_0x245c88(0x291)]+_0x48da30['height']/0x2));},'onDrop':_0x4a9542=>{const _0x2ea83b=_0x37d8cf;_0x4a9542['preventDefault'](),_0x4a9542[_0x2ea83b(0x231)](),_0x2fdc8f['onDrop']((_0x50adf3==null?void 0x0:_0x50adf3[_0x2ea83b(0x1be)])===_0x8b374f?_0x50adf3['index']:_0x46fa97);},'children':[_0x5699af&&(0x0,g[_0x37d8cf(0x23f)])(_0x37d8cf(0x460),{'className':_0x37d8cf(0x1f1)}),(0x0,g['jsx'])(wn,{'area':_0x8b374f,'field':_0x170a99,'onDragEnd':_0x2fdc8f['onDragEnd'],'onDragStart':()=>_0x2fdc8f[_0x37d8cf(0x3a6)](_0x21b7a5),'onFilter':()=>_0x2fdc8f[_0x37d8cf(0x3d1)](_0x21b7a5),'onRemove':()=>_0x2fdc8f['onRemove'](_0x21b7a5),'onSettings':()=>_0x2fdc8f[_0x37d8cf(0xff)](_0x21b7a5)})]},_0x21b7a5);}),(_0x50adf3==null?void 0x0:_0x50adf3[_0x2d4cb8(0x1be)])===_0x8b374f&&_0x50adf3[_0x2d4cb8(0x489)]===_0x2152b5[_0x2d4cb8(0xf8)]&&(0x0,g[_0x2d4cb8(0x23f)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x1f1)}),_0x2152b5[_0x2d4cb8(0xf8)]===0x0&&(0x0,g[_0x2d4cb8(0x23f)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x40c),'children':_0x5597a5['t'](_0x2d4cb8(0x1cc))})]})]});}function wn(_0x2f7e84){const _0x56471b=_0x30b590;let _0x413bce=(0x0,m['useDependency'])(a[_0x56471b(0x3ea)]),_0x2e7327=_0x2f7e84[_0x56471b(0x1be)]===y[_0x56471b(0xd8)][_0x56471b(0x19b)],_0x1cbccd=[{'type':_0x56471b(0x4b7),'children':_0x413bce['t'](_0x56471b(0x281)),'onSelect':_0x2f7e84['onRemove']},{'type':'item','children':_0x413bce['t'](_0x2e7327?_0x56471b(0x38a):_0x56471b(0x2de)),'onSelect':_0x2e7327?_0x2f7e84[_0x56471b(0xff)]:_0x2f7e84['onFilter']}];return(0x0,g[_0x56471b(0x38d)])(_0x56471b(0x460),{'draggable':!0x0,'className':_0x56471b(0x1c1),'onDragEnd':_0x2f7e84['onDragEnd'],'onDragStart':_0x2f7e84[_0x56471b(0x3a6)],'children':[(0x0,g['jsx'])(s[_0x56471b(0x4af)],{'className':_0x56471b(0x3d2)}),(0x0,g[_0x56471b(0x23f)])(f[_0x56471b(0x1c7)],{'title':_0x2f7e84[_0x56471b(0x492)][_0x56471b(0x38f)],'children':(0x0,g[_0x56471b(0x23f)])(_0x56471b(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2f7e84[_0x56471b(0x492)][_0x56471b(0x38f)]})}),(0x0,g['jsx'])(f['DropdownMenu'],{'align':_0x56471b(0x19f),'items':_0x1cbccd,'children':(0x0,g[_0x56471b(0x23f)])(_0x56471b(0x405),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':(0x0,g['jsx'])(s[_0x56471b(0x187)],{})})})]});}function Tn(_0x29aef1){const _0x2b0384=_0x30b590;var _0x596181,_0x4fd9b4;let _0x22c2df=(0x0,m[_0x2b0384(0x155)])(a[_0x2b0384(0x3ea)]),{format:_0x18235d,items:_0x1a26e3,itemTypes:_0x1c7a7f}=(0x0,h[_0x2b0384(0x2c1)])(()=>{const _0x2d6762=_0x2b0384;let _0x452952=(0x0,e[_0x2d6762(0x17a)])(_0x29aef1[_0x2d6762(0x4da)],_0x29aef1[_0x2d6762(0x48d)]);try{let _0x524dfc=_0x452952[_0x2d6762(0x28f)](_0x29aef1[_0x2d6762(0x1fb)]);return{'format':_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x462)],'items':[...(_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x30d)])??[]],'itemTypes':[...(_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x34a)])??[]]};}finally{_0x452952[_0x2d6762(0x45b)]();}},[_0x29aef1[_0x2b0384(0x1fb)],_0x29aef1['snapshot'],_0x29aef1[_0x2b0384(0x4da)]]),_0x54df4a=(_0x596181=_0x29aef1['snapshot']['dimension'][_0x29aef1[_0x2b0384(0x1fb)]])==null?void 0x0:_0x596181[_0x2b0384(0x32c)],[_0xd2c1c8,_0x50202a]=(0x0,h[_0x2b0384(0x40a)])((_0x54df4a==null?void 0x0:_0x54df4a['type'])===y[_0x2b0384(0x3a4)]['ManualFilter']?_0x54df4a[_0x2b0384(0x34b)]:_0x1a26e3),[_0x3276e7,_0x455efb]=(0x0,h['useState'])((_0x4fd9b4=_0x29aef1[_0x2b0384(0x48d)][_0x2b0384(0x32a)][_0x29aef1[_0x2b0384(0x1fb)]])==null||(_0x4fd9b4=_0x4fd9b4[_0x2b0384(0x353)])==null?void 0x0:_0x4fd9b4[_0x2b0384(0x11c)]),_0x5f04c1=_0xd2c1c8[_0x2b0384(0xf8)]===_0x1a26e3[_0x2b0384(0xf8)];return(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x2f7),{'className':(0x0,f[_0x2b0384(0x373)])('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x2b0384(0x209)]),'children':[(0x0,g[_0x2b0384(0x23f)])(_0x2b0384(0x460),{'className':_0x2b0384(0x227),'children':_0x22c2df['t'](_0x2b0384(0x2de))}),(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x460),{'className':_0x2b0384(0x18e),'children':[(0x0,g[_0x2b0384(0x38d)])(f[_0x2b0384(0x3da)],{'className':_0x2b0384(0x214),'variant':_0x3276e7===y['PivotDataFieldSortOperatorEnum']['ascending']?_0x2b0384(0x31d):_0x2b0384(0x1df),'onClick':()=>_0x455efb(y[_0x2b0384(0x181)]['ascending']),'children':[(0x0,g[_0x2b0384(0x23f)])(s[_0x2b0384(0x31e)],{}),_0x22c2df['t'](_0x2b0384(0x447))]}),(0x0,g['jsxs'])(f[_0x2b0384(0x3da)],{'className':_0x2b0384(0x214),'variant':_0x3276e7===y[_0x2b0384(0x181)]['descending']?_0x2b0384(0x31d):_0x2b0384(0x1df),'onClick':()=>_0x455efb(y['PivotDataFieldSortOperatorEnum']['descending']),'children':[(0x0,g['jsx'])(s[_0x2b0384(0x267)],{}),_0x22c2df['t']('bases-dashboard-ui.pivot.descending')]})]}),(0x0,g['jsxs'])(_0x2b0384(0x460),{'className':_0x2b0384(0x3e3),'children':[(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x1c2),{'className':_0x2b0384(0x494),'children':[(0x0,g['jsx'])(f[_0x2b0384(0x2b9)],{'checked':_0x5f04c1,'indeterminate':_0xd2c1c8[_0x2b0384(0xf8)]>0x0&&!_0x5f04c1,'onChange':()=>_0x50202a(_0x5f04c1?[]:_0x1a26e3)}),_0x22c2df['t'](_0x2b0384(0x158))]}),_0x1a26e3['map']((_0x2f4c9c,_0x12ba2a)=>(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x1c2),{'className':_0x2b0384(0x494),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x2b9)],{'checked':_0xd2c1c8[_0x2b0384(0x30a)](_0x2f4c9c),'onChange':()=>_0x50202a(_0x5e3fe2=>_0x5e3fe2[_0x2b0384(0x30a)](_0x2f4c9c)?_0x5e3fe2[_0x2b0384(0x141)](_0x623eb8=>_0x623eb8!==_0x2f4c9c):[..._0x5e3fe2,_0x2f4c9c])}),(0x0,g['jsx'])(_0x2b0384(0x405),{'className':_0x2b0384(0x4b8),'children':kn(_0x2f4c9c,_0x1c7a7f[_0x12ba2a],_0x18235d,_0x22c2df['t'](_0x2b0384(0x1da)))})]},_0x2f4c9c))]}),(0x0,g[_0x2b0384(0x38d)])('div',{'className':_0x2b0384(0x2a8),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x3da)],{'variant':'link','onClick':()=>_0x29aef1[_0x2b0384(0x398)](_0x1a26e3,_0x3276e7),'children':_0x22c2df['t'](_0x2b0384(0x2d8))}),(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x460),{'className':_0x2b0384(0x2db),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x3da)],{'onClick':_0x29aef1[_0x2b0384(0x3b5)],'children':_0x22c2df['t'](_0x2b0384(0x4ec))}),(0x0,g[_0x2b0384(0x23f)])(f['Button'],{'variant':_0x2b0384(0x31d),'disabled':_0xd2c1c8['length']===0x0,'onClick':()=>_0x29aef1[_0x2b0384(0x398)](_0xd2c1c8,_0x3276e7),'children':_0x22c2df['t'](_0x2b0384(0x2e7))})]})]})]});}function En(_0x2c3394){const _0x524d08=_0x30b590;var _0x54deff,_0x46e1d1,_0x407e5d;let _0x80f464=(0x0,m[_0x524d08(0x155)])(a[_0x524d08(0x3ea)]),[_0x56105a,_0x34b4a1]=(0x0,h[_0x524d08(0x40a)])(((_0x54deff=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x54deff[_0x524d08(0x38f)])??''),[_0x462433,_0x2cf0f8]=(0x0,h[_0x524d08(0x40a)])(((_0x46e1d1=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x46e1d1[_0x524d08(0x350)])??y['PivotSubtotalTypeEnum'][_0x524d08(0x18a)]),[_0x9adfd2,_0x11fcf7]=(0x0,h[_0x524d08(0x40a)])(((_0x407e5d=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x407e5d['format'])??'');return _0x2c3394['field']?(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x2f7),{'className':(0x0,f[_0x524d08(0x373)])(_0x524d08(0x23d),f['borderClassName']),'children':[(0x0,g[_0x524d08(0x23f)])('div',{'className':_0x524d08(0x2da),'children':_0x80f464['t'](_0x524d08(0x38a))}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x80f464['t'](_0x524d08(0x41d)),(0x0,g['jsx'])(f[_0x524d08(0x104)],{'value':_0x56105a,'onChange':_0x34b4a1})]}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':_0x524d08(0x13d),'children':[_0x80f464['t']('bases-dashboard-ui.pivot.summarizeBy'),(0x0,g[_0x524d08(0x23f)])(f[_0x524d08(0x15c)],{'value':String(_0x462433),'options':yn[_0x524d08(0x48a)](_0x57abca=>({'value':String(_0x57abca[_0x524d08(0x351)]),'label':_0x80f464['t'](_0x57abca[_0x524d08(0x1cf)])})),'onChange':_0x4878c4=>{const _0x2aa262=_0x524d08;let _0x97e961=yn[_0x2aa262(0x41e)](_0x36157c=>String(_0x36157c[_0x2aa262(0x351)])===_0x4878c4);_0x97e961&&_0x2cf0f8(_0x97e961[_0x2aa262(0x351)]);}})]}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':_0x524d08(0x13d),'children':[_0x80f464['t'](_0x524d08(0x251)),(0x0,g['jsx'])(f[_0x524d08(0x104)],{'value':_0x9adfd2,'onChange':_0x11fcf7})]}),(0x0,g[_0x524d08(0x38d)])('div',{'className':_0x524d08(0x290),'children':[(0x0,g['jsx'])(f[_0x524d08(0x3da)],{'onClick':_0x2c3394[_0x524d08(0x3b5)],'children':_0x80f464['t'](_0x524d08(0x4ec))}),(0x0,g[_0x524d08(0x23f)])(f['Button'],{'variant':'primary','disabled':!_0x56105a[_0x524d08(0x342)](),'onClick':()=>_0x2c3394['onCommit'](_0x56105a[_0x524d08(0x342)](),_0x462433,_0x9adfd2),'children':_0x80f464['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x3b4d26){const _0x5a7a11=_0x30b590;let {config:_0x1379be,commit:_0x217200}=_0x3b4d26,_0x426374=(0x0,m['useDependency'])(a[_0x5a7a11(0x3ea)]),_0x207087=_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x45a)],_0x5edaf5=_0x48dfd1=>_0x217200(_0x5804b1=>_0x5804b1[_0x5a7a11(0x3b4)]({..._0x5804b1[_0x5a7a11(0x4c0)](),..._0x48dfd1}));return(0x0,g['jsxs'])('div',{'className':_0x5a7a11(0x27e),'children':[(0x0,g[_0x5a7a11(0x38d)])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x1b9)),(0x0,g['jsx'])(f[_0x5a7a11(0x15c)],{'className':_0x5a7a11(0x24f),'value':String(_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x122)]),'options':[{'value':String(y[_0x5a7a11(0x480)][_0x5a7a11(0x3ca)]),'label':_0x426374['t'](_0x5a7a11(0x2be))},{'value':String(y[_0x5a7a11(0x480)][_0x5a7a11(0xdb)]),'label':_0x426374['t'](_0x5a7a11(0x43b))},{'value':String(y[_0x5a7a11(0x480)]['outline']),'label':_0x426374['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x140e49=>{const _0x479873=_0x5a7a11;let _0x3c4c41=[y[_0x479873(0x480)][_0x479873(0x3ca)],y[_0x479873(0x480)][_0x479873(0xdb)],y[_0x479873(0x480)]['outline']]['find'](_0x3ce6f2=>String(_0x3ce6f2)===_0x140e49);_0x3c4c41!==void 0x0&&_0x217200(_0x4b93ac=>_0x4b93ac[_0x479873(0xdd)](_0x3c4c41));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x5a7a11(0x4bd),'label':_0x5a7a11(0x1f9),'defaultValue':!0x1},{'key':_0x5a7a11(0x295),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x5a7a11(0x46c),'label':_0x5a7a11(0x232),'defaultValue':!0x0},{'key':_0x5a7a11(0x2e2),'label':_0x5a7a11(0x1e5),'defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x4add6e=>(0x0,g['jsxs'])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x3d4),'children':[(0x0,g['jsx'])(f[_0x5a7a11(0x2b9)],{'checked':!!(_0x207087[_0x4add6e['key']]??_0x4add6e[_0x5a7a11(0x114)]),'disabled':_0x4add6e[_0x5a7a11(0x2d3)]==='repeatRowLabels'&&_0x1379be[_0x5a7a11(0x258)]['layout']===y[_0x5a7a11(0x480)][_0x5a7a11(0xdb)],'onChange':_0x5e4ff0=>_0x5edaf5({[_0x4add6e[_0x5a7a11(0x2d3)]]:!!_0x5e4ff0})}),_0x426374['t'](_0x4add6e['label'])]},_0x4add6e[_0x5a7a11(0x2d3)])),_0x1379be[_0x5a7a11(0x258)]['layout']===y[_0x5a7a11(0x480)][_0x5a7a11(0x1a9)]&&(0x0,g[_0x5a7a11(0x38d)])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x329)),(0x0,g[_0x5a7a11(0x23f)])(f[_0x5a7a11(0x15c)],{'className':_0x5a7a11(0x24f),'value':String(_0x207087['rowSubtotalPosition']??y[_0x5a7a11(0x265)][_0x5a7a11(0x291)]),'options':[{'value':String(y[_0x5a7a11(0x265)][_0x5a7a11(0x291)]),'label':_0x426374['t'](_0x5a7a11(0x31b))},{'value':String(y['PivotSubtotalPositionEnum'][_0x5a7a11(0x1c3)]),'label':_0x426374['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x50cbd2=>{const _0x2ddd50=_0x5a7a11;let _0x3177ed=[y[_0x2ddd50(0x265)][_0x2ddd50(0x291)],y['PivotSubtotalPositionEnum']['bottom']][_0x2ddd50(0x41e)](_0x2071ee=>String(_0x2071ee)===_0x50cbd2);_0x3177ed!==void 0x0&&_0x5edaf5({'rowSubtotalPosition':_0x3177ed});}})]}),(0x0,g['jsxs'])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x100)),(0x0,g[_0x5a7a11(0x23f)])(f[_0x5a7a11(0x15c)],{'className':'univer-w-36','value':String(_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x2a4)]===y['PivotTableValuePositionEnum'][_0x5a7a11(0x202)]?y[_0x5a7a11(0x22e)][_0x5a7a11(0xf2)]:_0x1379be['pivot'][_0x5a7a11(0x2a4)]),'options':[{'value':String(y[_0x5a7a11(0x22e)]['Column']),'label':_0x426374['t'](_0x5a7a11(0x43d))},{'value':String(y[_0x5a7a11(0x22e)][_0x5a7a11(0x44f)]),'label':_0x426374['t'](_0x5a7a11(0x24b))}],'onChange':_0x1405ec=>{const _0x4b8518=_0x5a7a11;let _0x34481d=[y[_0x4b8518(0x22e)][_0x4b8518(0xf2)],y[_0x4b8518(0x22e)]['Row']][_0x4b8518(0x41e)](_0xf59101=>String(_0xf59101)===_0x1405ec);_0x34481d!==void 0x0&&_0x217200(_0x50a473=>_0x50a473[_0x4b8518(0x11b)](_0x34481d,_0x50a473[_0x4b8518(0x131)]()<0x0?0x0:_0x50a473['getValueIndex']()));}})]}),(0x0,g['jsxs'])('label',{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t']('bases-dashboard-ui.pivot.pageWrap'),(0x0,g['jsx'])(f[_0x5a7a11(0x33a)],{'className':_0x5a7a11(0x4a4),'min':0x1,'max':0x14,'value':_0x207087[_0x5a7a11(0x3d6)]??0x1,'onChange':_0x379006=>{const _0x4606a2=_0x5a7a11;let _0x5140f2=Number(_0x379006);Number[_0x4606a2(0x467)](_0x5140f2)&&_0x5140f2>=0x1&&_0x5edaf5({'pageWrap':_0x5140f2});}})]}),(0x0,g[_0x5a7a11(0x38d)])('label',{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x3c2)),(0x0,g['jsx'])(f['Select'],{'className':_0x5a7a11(0x24f),'value':String(_0x207087[_0x5a7a11(0x4df)]??!0x1),'options':[{'value':'false','label':_0x426374['t'](_0x5a7a11(0x287))},{'value':_0x5a7a11(0x445),'label':_0x426374['t'](_0x5a7a11(0x3f9))}],'onChange':_0x57fa32=>_0x5edaf5({'pageOverThenDown':_0x57fa32==='true'})})]})]});}function On(_0x5d9bac,_0x1a0d15,_0x57604b,_0x2b9415){const _0x5b6ccf=_0x30b590;let _0x3dddf4=_0x5d9bac[_0x5b6ccf(0x374)](_0x1a0d15)[_0x5b6ccf(0x41e)](_0x6b5d96=>_0x5d9bac[_0x5b6ccf(0x40d)](_0x6b5d96[_0x5b6ccf(0x3f6)]())['area']!==y[_0x5b6ccf(0xd8)][_0x5b6ccf(0x19b)]);_0x57604b!==y[_0x5b6ccf(0xd8)]['Value']&&_0x3dddf4?_0x5d9bac[_0x5b6ccf(0x3ad)](_0x3dddf4[_0x5b6ccf(0x3f6)](),_0x57604b,_0x2b9415):_0x5d9bac[_0x5b6ccf(0x396)](_0x1a0d15,_0x57604b,_0x2b9415);}function kn(_0x362afe,_0x1971e0,_0x464ba2,_0xc13452){const _0x3ac469=_0x30b590;return _0x1971e0===y['PivotDataFieldDataTypeEnum'][_0x3ac469(0x3b9)]?_0xc13452:_0x1971e0===y[_0x3ac469(0x498)][_0x3ac469(0x4d1)]&&_0x464ba2?a[_0x3ac469(0x4e4)][_0x3ac469(0x462)](_0x464ba2,Number(_0x362afe)):_0x362afe;}function An(_0xb4d48){const _0x17ed8f=_0x30b590;return _0xb4d48[_0x17ed8f(0x11c)]===a['BaseFieldType'][_0x17ed8f(0x48b)]||_0xb4d48[_0x17ed8f(0x11c)]===a[_0x17ed8f(0x1d5)]['Currency']||_0xb4d48[_0x17ed8f(0x11c)]===a['BaseFieldType'][_0x17ed8f(0x1a6)]||_0xb4d48['type']===a[_0x17ed8f(0x1d5)][_0x17ed8f(0x234)];}function jn(_0xd6e6e4){const _0x50eac3=_0x30b590;switch(_0xd6e6e4){case y[_0x50eac3(0xd8)][_0x50eac3(0x44f)]:return _0x50eac3(0x194);case y[_0x50eac3(0xd8)][_0x50eac3(0xf2)]:return _0x50eac3(0x25a);case y[_0x50eac3(0xd8)][_0x50eac3(0x19b)]:return _0x50eac3(0x1b2);default:return _0x50eac3(0x10c);}}function Mn({config:_0x44dfdb,onChange:_0x2fb111,runtime:_0x4eee5c,table:_0x5d4f5c}){const _0x2973b5=_0x30b590;let _0x12e334=(0x0,m[_0x2973b5(0x155)])(a[_0x2973b5(0x3ea)]),[_0x349fe8,_0x502b9c]=(0x0,h[_0x2973b5(0x40a)])(_0x2973b5(0xd9));return(0x0,g[_0x2973b5(0x38d)])(_0x2973b5(0x4c9),{'className':_0x2973b5(0x236),'children':[(0x0,g[_0x2973b5(0x23f)])(n[_0x2973b5(0x22f)],{'ariaLabel':_0x12e334['t'](_0x2973b5(0x2df)),'className':_0x2973b5(0x4e0),'items':[{'label':_0x12e334['t'](_0x2973b5(0x478)),'panelId':'base-pivot-chart-configuration','value':'chart'},{'label':_0x12e334['t'](_0x2973b5(0x46b)),'panelId':_0x2973b5(0x3d8),'value':_0x2973b5(0x258)}],'value':_0x349fe8,'variant':'segmented','onChange':_0x502b9c}),(0x0,g[_0x2973b5(0x23f)])(_0x2973b5(0x460),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x349fe8===_0x2973b5(0xd9)?_0x4eee5c&&(0x0,g[_0x2973b5(0x23f)])(Dt,{'config':_0x44dfdb,'runtime':_0x4eee5c,'tableName':_0x5d4f5c['name'],'onChange':_0x2fb111}):(0x0,g[_0x2973b5(0x23f)])(bn,{'config':_0x44dfdb,'table':_0x5d4f5c,'onChange':_0x2fb111})})]});}function Nn({tableId:_0x2e1a8b,unitId:_0x1ea872,viewId:_0x5258f9}){const _0x1ae9f6=_0x30b590;let _0xc068e6=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x279)]),_0x1ec357=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x245)]),_0x247d08=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x325)]),_0x1d56c8=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x3ea)]),_0x502b53=(0x0,m[_0x1ae9f6(0x155)])(e[_0x1ae9f6(0x4b6)]),[_0x184610,_0x3e3c91]=(0x0,h['useState'])(null),[_0x217cf5,_0x39350c]=(0x0,h[_0x1ae9f6(0x40a)])(null),_0x1affb3=(0x0,h[_0x1ae9f6(0x414)])(_0x1ae9f6(0x286)+(0x0,a[_0x1ae9f6(0x3f8)])(0x8)),[_0x1f074d,_0x155ddf]=(0x0,h['useState'])(!0x1),_0x307e7b=_0x1ec357[_0x1ae9f6(0x3e7)](_0x1ea872,a[_0x1ae9f6(0x3d5)][_0x1ae9f6(0x1a2)]),_0x50842e=_0x307e7b==null?void 0x0:_0x307e7b[_0x1ae9f6(0x38b)]()[_0x1ae9f6(0x4fe)][_0x2e1a8b],_0x2f695d=_0x50842e==null?void 0x0:_0x50842e[_0x1ae9f6(0x371)][_0x5258f9],_0x3b8deb=Pn(_0x2f695d),_0x45767d=T(_0x1ea872,_0x2e1a8b,_0x5258f9);if((0x0,h['useEffect'])(()=>{const _0x585b29=_0x1ae9f6;if(!_0x3b8deb)return;let _0x2b8574=_0x1affb3['current'];return _0x502b53[_0x585b29(0x418)](_0x2b8574,{'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'filters':[]}),()=>{const _0x6fdce2=_0x585b29;_0x502b53[_0x6fdce2(0x275)](_0x1ea872,_0x2b8574);};},[_0x3b8deb,_0x502b53,_0x2e1a8b,_0x1ea872,_0x5258f9]),(0x0,h[_0x1ae9f6(0x3dd)])(()=>{const _0x3f3d15=_0x1ae9f6;if(!Pn(_0x2f695d))return;let _0x19a00d=!0x0,_0x2a1c21={'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'filters':[_0x2f695d['filter']??null]};return _0x502b53[_0x3f3d15(0x40f)](_0x1ea872,_0x1affb3['current'],_0x2a1c21)[_0x3f3d15(0xeb)](_0x5bacb2=>{const _0x452e22=_0x3f3d15;_0x19a00d&&_0x5bacb2&&(_0x3e3c91(_0x5bacb2),_0x39350c(_0x502b53[_0x452e22(0x224)](_0x1ea872,_0x1affb3[_0x452e22(0x216)])??null),_0x155ddf(!0x1));})[_0x3f3d15(0x29c)](_0x3bc312=>{const _0x140e92=_0x3f3d15;_0x247d08[_0x140e92(0x305)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x3bc312),_0x19a00d&&(_0x3e3c91(null),_0x155ddf(!0x0));}),()=>{_0x19a00d=!0x1;};},[_0x247d08,_0x502b53,_0x2e1a8b,_0x1ea872,_0x2f695d,_0x5258f9]),!_0x50842e||!Pn(_0x2f695d))return null;let _0x1a7221=_0x502b53[_0x1ae9f6(0x224)](_0x1ea872,_0x1affb3['current'])===_0x217cf5?_0x217cf5:null,_0x46bf6c=_0x184610?(0x0,g[_0x1ae9f6(0x38d)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x397),'style':{'gridTemplateRows':_0x2f695d['config']['displayMode']==='chart-and-table'?_0x1ae9f6(0x27d):_0x1ae9f6(0x135)},'children':[_0x2f695d['config'][_0x1ae9f6(0x10e)]!==_0x1ae9f6(0x4da)&&_0x1a7221&&(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x22c),'children':(0x0,g[_0x1ae9f6(0x23f)])(re,{'isRowDirection':(0x0,e[_0x1ae9f6(0xe7)])(_0x2f695d['config'][_0x1ae9f6(0xd9)]['orient']),'runtime':_0x1a7221})}),_0x2f695d[_0x1ae9f6(0x1ca)]['displayMode']!==_0x1ae9f6(0xd9)&&(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':(0x0,g[_0x1ae9f6(0x23f)])(Ge,{'pivot':_0x2f695d[_0x1ae9f6(0x1ca)][_0x1ae9f6(0x258)],'view':_0x184610[_0x1ae9f6(0x1b4)]})})]}):(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x378),'children':_0x1f074d?_0x1d56c8['t'](_0x1ae9f6(0x4d9)):_0x1d56c8['t']('bases-dashboard-ui.pivot.calculating')});return(0x0,g[_0x1ae9f6(0x38d)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x167),'children':[(0x0,g['jsx'])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x3df),'children':_0x46bf6c}),_0x45767d&&(0x0,g[_0x1ae9f6(0x23f)])(Mn,{'config':_0x2f695d['config'],'runtime':_0x1a7221,'table':_0x50842e,'onChange':_0x171dce=>{const _0x885d38=_0x1ae9f6;_0xc068e6[_0x885d38(0x387)](e[_0x885d38(0x2af)]['id'],{'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'patch':_0x171dce})['catch'](_0x2f66a7=>_0x247d08[_0x885d38(0x305)](_0x885d38(0x402),_0x2f66a7));}})]});}function Pn(_0x297c30){const _0x44dc84=_0x30b590;return(_0x297c30==null?void 0x0:_0x297c30[_0x44dc84(0x11c)])===a['BaseViewType'][_0x44dc84(0x2d0)]&&typeof _0x297c30['config']==_0x44dc84(0x368)&&_0x297c30['config']!==null&&'pivot'in _0x297c30[_0x44dc84(0x1ca)]&&_0x44dc84(0xd9)in _0x297c30['config']&&_0x44dc84(0x10e)in _0x297c30[_0x44dc84(0x1ca)];}let Fn=class extends a[_0x30b590(0x35a)]{constructor(_0xda30ed,_0x4ac64b,_0x5bf9f1,_0x23a471,_0xc17b30,_0x549c0f){const _0x2685ef=_0x30b590;super(),this[_0x2685ef(0x10b)](_0x4ac64b[_0x2685ef(0x18b)]({'type':a[_0x2685ef(0x4a1)][_0x2685ef(0x2d0)],'renderMode':_0x2685ef(0x369),'icon':s[_0x2685ef(0x14b)],'component':Nn,'menu':{get 'label'(){return _0x549c0f['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x72633c=_0x2685ef;return _0x549c0f['t'](_0x72633c(0x2dc));},get 'defaultName'(){const _0x22a493=_0x2685ef;return _0x549c0f['t'](_0x22a493(0x188));}}})),this[_0x2685ef(0x10b)](_0xda30ed[_0x2685ef(0x18b)](In(_0x5bf9f1,_0x23a471,_0xc17b30,_0x549c0f)));}};Fn=P([N(0x0,t[_0x30b590(0x47e)]),N(0x1,t[_0x30b590(0x313)]),N(0x2,(0x0,a['Inject'])(e[_0x30b590(0x3a7)])),N(0x3,a['ICommandService']),N(0x4,a[_0x30b590(0x164)]),N(0x5,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)]))],Fn);function In(_0x27382d,_0x5bd039,_0xd6d49c,_0x242567){const _0x1a50fb=_0x30b590;return{'change$':(0x0,c[_0x1a50fb(0x17d)])(_0x27382d[_0x1a50fb(0x435)],_0xd6d49c[_0x1a50fb(0x11e)]),'component':ln,get 'labels'(){const _0x3d94af=_0x1a50fb;return{'add':_0x242567['t'](_0x3d94af(0x347)),'configure':_0x3ce6c1=>_0x242567['t'](_0x3d94af(0x150),_0x3ce6c1),'delete':_0x242567['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x242567['t'](_0x3d94af(0x35e)),'rename':_0x242567['t'](_0x3d94af(0x136)),'search':_0x242567['t'](_0x3d94af(0x459)),'section':_0x242567['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x2f2426=>{const _0x217367=_0x1a50fb;let _0x53bc7a=_0x27382d['getResource'](_0x2f2426);return _0x53bc7a[_0x217367(0x453)][_0x217367(0x4e3)](_0x4384f2=>{const _0x1b7e8f=_0x217367;let _0x167e02=_0x53bc7a['dashboards'][_0x4384f2];return _0x167e02?[{'id':_0x167e02['id'],'name':_0x167e02[_0x1b7e8f(0x451)],'readonly':!(0x0,e[_0x1b7e8f(0x3ae)])(_0xd6d49c,_0x2f2426,_0x167e02['id'])}]:[];});},'create':async _0x5ed0d6=>{const _0x286347=_0x1a50fb;let _0x2f249f=_0x27382d[_0x286347(0x49a)](_0x5ed0d6),_0x384b19=_0x286347(0x49e)+(0x0,a['generateRandomId'])(0x8),_0x21973f=Ln(_0x2f249f[_0x286347(0x453)][_0x286347(0x4e3)](_0x3ef555=>{const _0x554da9=_0x286347;let _0x5c3715=_0x2f249f[_0x554da9(0x152)][_0x3ef555];return _0x5c3715?[_0x5c3715[_0x554da9(0x451)]]:[];}),_0x738981=>_0x242567['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x738981)));return await _0x5bd039['executeCommand'](e[_0x286347(0x48e)]['id'],{'unitId':_0x5ed0d6,'dashboard':{'id':_0x384b19,'name':_0x21973f,'widgetOrder':[],'widgets':{}}})?_0x384b19:null;},'rename':async(_0xc22fca,_0x3de666,_0x440ea6)=>{const _0x255552=_0x1a50fb;let _0x16a945=_0x27382d[_0x255552(0x499)](_0xc22fca,_0x3de666);return!!(_0x16a945&&await _0x5bd039[_0x255552(0x387)](e[_0x255552(0x180)]['id'],{'unitId':_0xc22fca,'dashboard':{..._0x16a945,'name':_0x440ea6}}));},'remove':(_0x4d6985,_0x286f53)=>_0x5bd039[_0x1a50fb(0x387)](e[_0x1a50fb(0x1d4)]['id'],{'unitId':_0x4d6985,'dashboardId':_0x286f53})};}function Ln(_0x13c6c3,_0xc0601b){const _0x43df45=_0x30b590;let _0x5a6a0b=new Set(_0x13c6c3),_0x558cfe=_0x5a6a0b[_0x43df45(0x39c)]+0x1,_0x443fb0=_0xc0601b(_0x558cfe);for(;_0x5a6a0b[_0x43df45(0x3a9)](_0x443fb0);)_0x558cfe+=0x1,_0x443fb0=_0xc0601b(_0x558cfe);return _0x443fb0;}let $=class extends a[_0x30b590(0x206)]{constructor(_0x78c1d1=C,_0x4ae454,_0x143793){const _0x3e915e=_0x30b590;super(),this[_0x3e915e(0x2bb)]=_0x78c1d1,this[_0x3e915e(0x477)]=_0x4ae454,this[_0x3e915e(0x3dc)]=_0x143793;let {..._0x59bb5e}=(0x0,a[_0x3e915e(0x17d)])({},C,this[_0x3e915e(0x2bb)]);this[_0x3e915e(0x3dc)]['setConfig'](S,_0x59bb5e);}[_0x30b590(0x235)](){const _0x319c0a=_0x30b590;this[_0x319c0a(0x477)][_0x319c0a(0x4c5)]([F]),this['_injector']['add']([W]),this[_0x319c0a(0x477)][_0x319c0a(0x4c5)]([Fn]);}[_0x30b590(0x28c)](){const _0x170c6e=_0x30b590;(0x0,a[_0x170c6e(0x25e)])(this[_0x170c6e(0x477)],[[F],[W],[Fn]]);}};B($,'type',a[_0x30b590(0x3d5)][_0x30b590(0x1a2)]),B($,_0x30b590(0x173),_0x30b590(0x1bf)),B($,_0x30b590(0x15a),b),B($,_0x30b590(0x406),x),$=P([(0x0,a[_0x30b590(0x3e9)])(r[_0x30b590(0x1e7)],e[_0x30b590(0x18c)],t[_0x30b590(0xed)],n['UniverChartUIPlugin'],i[_0x30b590(0x35c)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x495)])),N(0x2,a[_0x30b590(0x242)])],$),Object['defineProperty'](exports,'UniverBaseDashboardMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x30b590(0x1a7)](exports,'UniverBaseDashboardUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0x16f285=_0x2d20;(function(_0x2b74dc,_0x20e5ce){const _0x7fadd=_0x2d20,_0x3e77bd=_0x2b74dc();while(!![]){try{const _0x52d3d2=-parseInt(_0x7fadd(0x107))/0x1*(parseInt(_0x7fadd(0x30b))/0x2)+parseInt(_0x7fadd(0x35f))/0x3+parseInt(_0x7fadd(0x417))/0x4*(-parseInt(_0x7fadd(0x2a1))/0x5)+-parseInt(_0x7fadd(0x207))/0x6+-parseInt(_0x7fadd(0xb9))/0x7+parseInt(_0x7fadd(0xbb))/0x8*(-parseInt(_0x7fadd(0x3fa))/0x9)+parseInt(_0x7fadd(0x77))/0xa*(parseInt(_0x7fadd(0x31d))/0xb);if(_0x52d3d2===_0x20e5ce)break;else _0x3e77bd['push'](_0x3e77bd['shift']());}catch(_0xc6a712){_0x3e77bd['push'](_0x3e77bd['shift']());}}}(_0x131f,0x78e3c),Object[_0x16f285(0x215)](exports,Symbol[_0x16f285(0x463)],{'value':_0x16f285(0x1eb)}));let e=require('@univerjs-pro/bases-dashboard'),t=require('@univerjs-pro/bases-ui'),n=require('@univerjs-pro/chart-ui'),r=require('@univerjs-pro/license'),i=require('@univerjs-pro/shape-editor'),a=require('@univerjs/core'),o=require('@univerjs/docs-ui'),s=require('@univerjs/icons'),c=require('rxjs'),l=require('@univerjs-pro/bases'),u=require('@univerjs-pro/collaboration-client'),d=require('@univerjs-pro/engine-shape'),f=require('@univerjs/design'),p=require('@univerjs/protocol'),m=require('@univerjs/ui'),h=require('react'),g=require('react/jsx-runtime'),_=require('@univerjs-pro/engine-chart'),v=require('react-dom'),y=require('@univerjs-pro/engine-pivot');var b='@univerjs-pro/bases-dashboard-ui',x='1.4.0';const S='bases-dashboard-ui.config',C={};function w(_0x54606c,_0x2dde25){const _0x43bc5b=_0x16f285;let _0x3b611d=(0x0,m[_0x43bc5b(0x15f)])(a[_0x43bc5b(0x112)]),_0x224e7b=(0x0,e[_0x43bc5b(0x36b)])(_0x3b611d,_0x54606c,_0x2dde25);return(0x0,m['useObservable'])(()=>_0x3b611d[_0x43bc5b(0x49c)][_0x43bc5b(0x312)]((0x0,c[_0x43bc5b(0x201)])(()=>(0x0,e['canEditBaseDashboard'])(_0x3b611d,_0x54606c,_0x2dde25))),_0x224e7b,!0x1,[_0x2dde25,_0x3b611d,_0x54606c]);}function T(_0x413b6,_0x25bebb,_0x39af9d){const _0x4ecbaa=_0x16f285;let _0x1f110a=(0x0,m[_0x4ecbaa(0x15f)])(a[_0x4ecbaa(0x112)]),_0x3965a6=(0x0,e['canEditBasePivotView'])(_0x1f110a,_0x413b6,_0x25bebb,_0x39af9d);return(0x0,m[_0x4ecbaa(0x49b)])(()=>_0x1f110a[_0x4ecbaa(0x49c)]['pipe']((0x0,c[_0x4ecbaa(0x201)])(()=>(0x0,e[_0x4ecbaa(0x33c)])(_0x1f110a,_0x413b6,_0x25bebb,_0x39af9d))),_0x3965a6,!0x1,[_0x1f110a,_0x25bebb,_0x413b6,_0x39af9d]);}function E(_0x39db8e,_0x35beaa=_0x16f285(0x234)){const _0x479ea3=_0x16f285;return{'backgroundImage':_0x479ea3(0x4a8)+JSON['stringify'](_0x39db8e)+')','backgroundPosition':_0x35beaa===_0x479ea3(0x3c9)?_0x479ea3(0xbf):_0x479ea3(0x15d),'backgroundRepeat':_0x35beaa===_0x479ea3(0x3c9)?_0x479ea3(0x3c9):_0x479ea3(0x145),'backgroundSize':_0x35beaa===_0x479ea3(0x234)?_0x479ea3(0x234):_0x479ea3(0x1c0)};}const D={'alignment':_0x16f285(0x3d4),'currency':_0x16f285(0x221),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x16f285(0x1c0),'numberFormat':_0x16f285(0xcc)},O={'CNY':'¥','EUR':'€','USD':'$'};function _0x2d20(_0x18cf53,_0x59a182){_0x18cf53=_0x18cf53-0x76;const _0x131fbe=_0x131f();let _0x2d2018=_0x131fbe[_0x18cf53];return _0x2d2018;}function k(_0x2bed2f){const _0x2bcada=_0x16f285;var _0x2746ec;let _0x37367=te(((_0x2746ec=_0x2bed2f[_0x2bcada(0x1d5)][_0x2bcada(0xb6)])==null||(_0x2746ec=_0x2746ec[_0x2bcada(0x9d)])==null?void 0x0:_0x2746ec['pattern'])??'');return{...D,..._0x37367,..._0x2bed2f[_0x2bcada(0x82)]};}function A(_0x37908e,_0x10f31b){const _0x36b01=_0x16f285;let _0x336d0f={..._0x37908e['appearance'],..._0x10f31b},_0x261e92=k({..._0x37908e,'appearance':_0x336d0f}),_0x23ba2a=_0x37908e[_0x36b01(0x1d5)][_0x36b01(0xb6)]??{'formula':''};return{..._0x37908e,'appearance':_0x336d0f,'shapeData':{..._0x37908e['shapeData'],'formulaBinding':{..._0x23ba2a,'numberFormat':{'pattern':j(_0x261e92[_0x36b01(0x9d)],_0x261e92[_0x36b01(0x45c)],_0x261e92[_0x36b01(0x2d1)])}}}};}function j(_0x1c9f18,_0xd607c,_0x1fa214){const _0x430b7e=_0x16f285;let _0x138e53=Math['max'](0x0,Math[_0x430b7e(0x2a0)](0x8,Math['round'](_0xd607c))),_0x566e41=_0x138e53?'.'+'0'[_0x430b7e(0x3c9)](_0x138e53):'';switch(_0x1c9f18){case _0x430b7e(0x390):return'0'+_0x566e41;case'percent':return'0'+_0x566e41+'%';case _0x430b7e(0x2d1):return(O[_0x1fa214]??_0x1fa214)+_0x430b7e(0x375)+_0x566e41;case _0x430b7e(0x42c):return _0x430b7e(0x375)+_0x566e41;case _0x430b7e(0x3b1):case _0x430b7e(0xcc):return _0x430b7e(0x159);}}function ee(_0x3d12e5,_0xeeb69b,_0x35ac6c){const _0x5e2761=_0x16f285;return _0x35ac6c[_0x5e2761(0x9d)]!==_0x5e2761(0x3b1)||typeof _0xeeb69b!=_0x5e2761(0x390)||!Number[_0x5e2761(0xb4)](_0xeeb69b)?_0x3d12e5:new Intl['NumberFormat'](void 0x0,{'notation':_0x5e2761(0x3b1),'minimumFractionDigits':_0x35ac6c[_0x5e2761(0x45c)]??0x0,'maximumFractionDigits':_0x35ac6c[_0x5e2761(0x45c)]??0x0})[_0x5e2761(0x3e5)](_0xeeb69b);}function te(_0x186600){const _0x50d4ed=_0x16f285;var _0x2cc335,_0x3e8c88;if(!_0x186600||_0x186600===_0x50d4ed(0x159))return{};let _0x4074f3=_0x186600[_0x50d4ed(0xbd)](/\.([0#]+)/),_0x5af369=(_0x4074f3==null||(_0x2cc335=_0x4074f3[0x1])==null?void 0x0:_0x2cc335[_0x50d4ed(0x444)])??0x0;if(_0x186600[_0x50d4ed(0x8c)]('%'))return{'decimalPlaces':_0x5af369,'numberFormat':_0x50d4ed(0x253)};let _0xaf531a=(_0x3e8c88=Object[_0x50d4ed(0x3f2)](O)[_0x50d4ed(0x132)](([,_0x2dc670])=>_0x186600[_0x50d4ed(0x8c)](_0x2dc670)))==null?void 0x0:_0x3e8c88[0x0];return _0xaf531a?{'currency':_0xaf531a,'decimalPlaces':_0x5af369,'numberFormat':'currency'}:{'decimalPlaces':_0x5af369,'numberFormat':_0x186600[_0x50d4ed(0x8c)](',')?_0x50d4ed(0x42c):'number'};}const ne={'center':'center','left':_0x16f285(0x342),'right':_0x16f285(0x3c8)};function M({dashboardId:_0x2e71ad,unitId:_0x3e2cfa,widget:_0x45c89b}){const _0x3c86f0=_0x16f285;var _0x1f9a6d,_0x1ef8ce,_0x15ce8e,_0x10fe13,_0x36c946,_0x2977c3,_0x335d7f,_0x2a7f21,_0x30b170;let _0x3ee55c=(0x0,m['useDependency'])(i[_0x3c86f0(0x247)]),_0x485364=(0x0,m[_0x3c86f0(0x15f)])(a[_0x3c86f0(0x124)]),_0x518831=(0x0,m[_0x3c86f0(0x15f)])(a[_0x3c86f0(0x28c)]),_0x1fcec4=(0x0,h['useMemo'])(()=>({'hostType':a['UniverInstanceType'][_0x3c86f0(0x12b)],'unitId':_0x3e2cfa,'subUnitId':_0x2e71ad,'shapeId':_0x45c89b['id']}),[_0x2e71ad,_0x3e2cfa,_0x45c89b['id']]),[_0x2e0179,_0x33c98b]=(0x0,h[_0x3c86f0(0x450)])(()=>_0x3ee55c[_0x3c86f0(0x31f)](_0x1fcec4)),[_0xa7b8e9,_0x41efc9]=(0x0,h['useState'])(()=>{const _0x54421b=_0x3c86f0;var _0x6ffe01;return(_0x6ffe01=_0x3ee55c[_0x54421b(0x35b)](_0x1fcec4))==null?void 0x0:_0x6ffe01['value'];}),[_0x4fd1da,_0x7cd5d7]=(0x0,h['useState'])(),_0x3f977a=(0x0,h['useRef'])(null),_0x538995=(0x0,h['useRef'])(null),_0x4f8a9c=k(_0x45c89b);(0x0,h[_0x3c86f0(0x2e0)])(()=>{const _0x382529=_0x3c86f0;let _0x221fc8=_0x3ee55c[_0x382529(0x271)][_0x382529(0x385)](_0x550a9b=>{const _0x50d1ee=_0x382529;_0x550a9b['unitId']===_0x3e2cfa&&_0x550a9b[_0x50d1ee(0x323)]===_0x2e71ad&&_0x550a9b[_0x50d1ee(0x2bc)]===_0x45c89b['id']&&(_0x33c98b(_0x550a9b[_0x50d1ee(0x3bc)]),_0x41efc9(_0x550a9b[_0x50d1ee(0x130)][_0x50d1ee(0x44c)]));});return()=>_0x221fc8[_0x382529(0x2ce)]();},[_0x2e71ad,_0x3ee55c,_0x1fcec4,_0x3e2cfa,_0x45c89b['id']]),(0x0,h[_0x3c86f0(0x2e0)])(()=>{const _0x404f5c=_0x3c86f0;let _0x3e81d8=_0x4f8a9c[_0x404f5c(0x388)];if(!_0x3e81d8||_0x3e81d8[_0x404f5c(0x263)]!==a[_0x404f5c(0x1f5)][_0x404f5c(0x382)])return;let _0xc62590=_0x485364[_0x404f5c(0x31b)](_0x3e81d8[_0x404f5c(0x2fe)],_0x3e81d8['sourceType']);if(_0xc62590!=null&&_0xc62590[_0x404f5c(0x370)])return;let _0x2701cf=!0x0;return _0x485364['getImage'](_0x3e81d8[_0x404f5c(0x2fe)])[_0x404f5c(0x1ba)](_0x505114=>{const _0x1d0b4e=_0x404f5c;_0x2701cf&&_0x7cd5d7({'source':_0x3e81d8[_0x1d0b4e(0x2fe)],'value':_0x505114});})[_0x404f5c(0x2a3)](()=>void 0x0),()=>{_0x2701cf=!0x1;};},[_0x4f8a9c['backgroundImage'],_0x485364]);let _0x3ad8c3=((_0x1f9a6d=_0x4f8a9c[_0x3c86f0(0x388)])==null?void 0x0:_0x1f9a6d[_0x3c86f0(0x263)])===a[_0x3c86f0(0x1f5)]['UUID']?((_0x1ef8ce=_0x485364[_0x3c86f0(0x31b)](_0x4f8a9c[_0x3c86f0(0x388)]['source'],_0x4f8a9c['backgroundImage']['sourceType']))==null?void 0x0:_0x1ef8ce['src'])??((_0x4fd1da==null?void 0x0:_0x4fd1da[_0x3c86f0(0x2fe)])===_0x4f8a9c[_0x3c86f0(0x388)]['source']?_0x4fd1da[_0x3c86f0(0x44c)]:''):((_0x15ce8e=_0x4f8a9c[_0x3c86f0(0x388)])==null?void 0x0:_0x15ce8e[_0x3c86f0(0x2fe)])??'',_0x5c7b32=_0x45c89b['shapeData'][_0x3c86f0(0x80)],_0x539d57=_0x5c7b32&&_0x3c86f0(0x481)in _0x5c7b32?(_0x10fe13=_0x5c7b32[_0x3c86f0(0x481)])==null?void 0x0:_0x10fe13[_0x3c86f0(0x454)]:void 0x0,_0x5c96dd=ee((_0x2e0179==null?void 0x0:_0x2e0179[_0x3c86f0(0x326)])??'',_0xa7b8e9,_0x4f8a9c),_0x26cd3d=_0x45c89b['shapeData'][_0x3c86f0(0x28e)],_0x266f8f=_0x45c89b[_0x3c86f0(0x1d5)][_0x3c86f0(0x447)],_0x79f1a3=_0x539d57==null||(_0x36c946=_0x539d57[_0x3c86f0(0x196)])==null?void 0x0:_0x36c946[_0x3c86f0(0x378)],_0x64f048=_0x45c89b[_0x3c86f0(0x3e6)]??_0x45c89b[_0x3c86f0(0x2ba)]??'';return(0x0,h[_0x3c86f0(0x2e0)])(()=>{const _0x3e0360=_0x3c86f0;let _0x558ca5=_0x3f977a[_0x3e0360(0x1af)],_0x3e935=_0x538995[_0x3e0360(0x1af)];if(!_0x558ca5||!_0x3e935)return;let _0x325b8d=()=>{const _0x100de2=_0x3e0360;if(_0x4f8a9c['fontSizeMode']==='custom'||!_0x558ca5[_0x100de2(0x1ce)]||!_0x558ca5[_0x100de2(0xa1)]){_0x3e935[_0x100de2(0x468)][_0x100de2(0x174)]=_0x4f8a9c[_0x100de2(0x174)]+'px';return;}let _0x497596=0x1,_0x172f46=0x48,_0x535df8=_0x497596;for(;_0x497596<=_0x172f46;){let _0x32b828=Math[_0x100de2(0x261)]((_0x497596+_0x172f46)/0x2);_0x3e935[_0x100de2(0x468)][_0x100de2(0x174)]=_0x32b828+'px',_0x3e935[_0x100de2(0xe8)]<=_0x558ca5[_0x100de2(0x1ce)]&&_0x3e935['scrollHeight']<=_0x558ca5[_0x100de2(0xa1)]?(_0x535df8=_0x32b828,_0x497596=_0x32b828+0x1):_0x172f46=_0x32b828-0x1;}_0x3e935[_0x100de2(0x468)][_0x100de2(0x174)]=_0x535df8+'px';};if(_0x325b8d(),typeof ResizeObserver>'u')return;let _0x3ea719=new ResizeObserver(_0x325b8d);return _0x3ea719[_0x3e0360(0x476)](_0x558ca5),()=>_0x3ea719[_0x3e0360(0x2d7)]();},[_0x4f8a9c[_0x3c86f0(0x174)],_0x4f8a9c[_0x3c86f0(0x156)],_0x5c96dd]),(0x0,g[_0x3c86f0(0x2f3)])(_0x3c86f0(0x24a),{'data-dashboard-formula-shape':_0x45c89b['id'],'className':_0x3c86f0(0x438),'style':{'backgroundColor':((_0x2977c3=_0x45c89b['appearance'])==null?void 0x0:_0x2977c3[_0x3c86f0(0x47b)])??((_0x26cd3d==null?void 0x0:_0x26cd3d[_0x3c86f0(0x12e)])===d['ShapeFillEnum'][_0x3c86f0(0x456)]?_0x26cd3d['color']??void 0x0:void 0x0),'border':(_0x266f8f==null?void 0x0:_0x266f8f[_0x3c86f0(0x3f4)])===d['ShapeLineTypeEnum'][_0x3c86f0(0x1e0)]?(_0x266f8f[_0x3c86f0(0x316)]??0x1)+_0x3c86f0(0x453)+(_0x266f8f[_0x3c86f0(0x23f)]??'currentColor'):void 0x0,'borderRadius':_0x45c89b[_0x3c86f0(0x359)]===d[_0x3c86f0(0x358)][_0x3c86f0(0x22a)]?0xc:void 0x0,'color':((_0x335d7f=_0x45c89b['appearance'])==null?void 0x0:_0x335d7f[_0x3c86f0(0xa9)])??(_0x2e0179==null?void 0x0:_0x2e0179[_0x3c86f0(0x23f)])??(_0x79f1a3==null||(_0x2a7f21=_0x79f1a3['cl'])==null?void 0x0:_0x2a7f21[_0x3c86f0(0x403)])??void 0x0,'fontWeight':_0x79f1a3!=null&&_0x79f1a3['bl']?0x258:void 0x0,'textAlign':_0x4f8a9c[_0x3c86f0(0x355)]},'children':[_0x3ad8c3&&(0x0,g[_0x3c86f0(0x1d7)])(_0x3c86f0(0x114),{'src':_0x3ad8c3,'alt':'','aria-hidden':_0x3c86f0(0x1e7),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x30b170=_0x4f8a9c['backgroundImage'])==null?void 0x0:_0x30b170['fit'])??'cover'}}),(0x0,g['jsxs'])(_0x3c86f0(0x24a),{'className':_0x3c86f0(0x194),'children':[_0x64f048&&(0x0,g[_0x3c86f0(0x1d7)])('div',{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x64f048}),(0x0,g[_0x3c86f0(0x1d7)])(_0x3c86f0(0x24a),{'ref':_0x3f977a,'data-dashboard-formula-value':!0x0,'aria-label':_0x64f048||_0x518831['t'](_0x3c86f0(0x341)),'className':_0x3c86f0(0x36c),'style':{'justifyContent':ne[_0x4f8a9c['alignment']]},'children':(0x0,g[_0x3c86f0(0x1d7)])(_0x3c86f0(0x42b),{'ref':_0x538995,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x4f8a9c[_0x3c86f0(0x156)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x5c96dd})})]})]});}function N(_0x120d42,_0x55d1c9){return function(_0x2a7381,_0x48f94a){_0x55d1c9(_0x2a7381,_0x48f94a,_0x120d42);};}function P(_0x12c396,_0x4aaafa,_0x471a40,_0x4b9dd6){const _0x20a144=_0x16f285;var _0x5c53ce=arguments[_0x20a144(0x444)],_0x298e35=_0x5c53ce<0x3?_0x4aaafa:_0x4b9dd6===null?_0x4b9dd6=Object[_0x20a144(0x3e4)](_0x4aaafa,_0x471a40):_0x4b9dd6,_0x49bf0a;if(typeof Reflect==_0x20a144(0x396)&&typeof Reflect['decorate']==_0x20a144(0x297))_0x298e35=Reflect[_0x20a144(0x14b)](_0x12c396,_0x4aaafa,_0x471a40,_0x4b9dd6);else{for(var _0x321497=_0x12c396[_0x20a144(0x444)]-0x1;_0x321497>=0x0;_0x321497--)(_0x49bf0a=_0x12c396[_0x321497])&&(_0x298e35=(_0x5c53ce<0x3?_0x49bf0a(_0x298e35):_0x5c53ce>0x3?_0x49bf0a(_0x4aaafa,_0x471a40,_0x298e35):_0x49bf0a(_0x4aaafa,_0x471a40))||_0x298e35);}return _0x5c53ce>0x3&&_0x298e35&&Object[_0x20a144(0x215)](_0x4aaafa,_0x471a40,_0x298e35),_0x298e35;}let F=class{constructor(_0x361f57,_0x13c22d,_0x273a73){const _0x283af4=_0x16f285;this[_0x283af4(0x2a4)]=_0x361f57,this['_chartThemeService']=_0x13c22d,this[_0x283af4(0x398)]=_0x273a73;}['createDomChartInstance'](){const _0x3c06a3=_0x16f285;return this['_renderModelManager'][_0x3c06a3(0x404)](_[_0x3c06a3(0x350)]['Dom'],this[_0x3c06a3(0x3f7)]());}['createRenderInput'](_0x5352d4){const _0x33af1b=_0x16f285;let _0x1f8ed1=_0x5352d4[_0x33af1b(0x238)]['config'];if(!_0x1f8ed1)throw Error(_0x33af1b(0x368)+_0x5352d4['chartId']+'\x20has\x20no\x20render\x20config.');let _0x1c30de=this[_0x33af1b(0x2a4)][_0x33af1b(0x20b)]();return{'config':_0x1f8ed1,'style':(0x0,_[_0x33af1b(0x1be)])({..._0x5352d4[_0x33af1b(0x238)]['style'],'runtime':_0x5352d4[_0x33af1b(0x238)][_0x33af1b(0x2ad)](_0x1c30de),'direction':_0x1c30de},_0x1f8ed1['type'])};}[_0x16f285(0x3f7)](){const _0x5c6451=_0x16f285;return{'resolveHostStyle':({style:_0x213504})=>(0x0,_['resolveDefaultChartHostFrameStyle'])({'style':_0x213504,'getRenderColor':_0x118647=>this[_0x5c6451(0x264)]['getRenderColor'](_0x118647)}),'resolveRenderBackgroundColor':({hostStyle:_0x1fc10f})=>_0x1fc10f['fill']};}};F=P([N(0x0,(0x0,a['Inject'])(a[_0x16f285(0x28c)])),N(0x1,(0x0,a[_0x16f285(0xdb)])(_['ChartThemeService'])),N(0x2,_[_0x16f285(0x17e)])],F);function I(_0x58f9e3,_0xb304a8){const _0x36d6e5=_0x16f285;var _0xdc4053;_0x58f9e3[_0x36d6e5(0x468)][_0x36d6e5(0x47b)]=_0xb304a8[_0x36d6e5(0x28e)]??_0x36d6e5(0x423),_0x58f9e3[_0x36d6e5(0x468)][_0x36d6e5(0x175)]=(_0xdc4053=_0xb304a8[_0x36d6e5(0x175)])!=null&&_0xdc4053[_0x36d6e5(0x23f)]&&_0xb304a8[_0x36d6e5(0x175)]['width']?_0xb304a8['border']['width']+_0x36d6e5(0x453)+_0xb304a8[_0x36d6e5(0x175)]['color']:'',_0x58f9e3[_0x36d6e5(0x468)][_0x36d6e5(0x165)]=_0xb304a8['radius']?_0xb304a8[_0x36d6e5(0x464)]+'px':'',_0x58f9e3[_0x36d6e5(0x468)][_0x36d6e5(0x177)]=_0x36d6e5(0x164),_0x58f9e3[_0x36d6e5(0x468)][_0x36d6e5(0x8f)]=_0x36d6e5(0x100);}function L(_0x250b86){'@babel/helpers - typeof';const _0x320b63=_0x16f285;return L=typeof Symbol=='function'&&typeof Symbol[_0x320b63(0x279)]==_0x320b63(0x46a)?function(_0x4368c5){return typeof _0x4368c5;}:function(_0x3d050c){const _0x5105fb=_0x320b63;return _0x3d050c&&typeof Symbol==_0x5105fb(0x297)&&_0x3d050c[_0x5105fb(0x413)]===Symbol&&_0x3d050c!==Symbol[_0x5105fb(0xe4)]?_0x5105fb(0x46a):typeof _0x3d050c;},L(_0x250b86);}function R(_0x2298ba,_0x17f997){const _0xf36de0=_0x16f285;if(L(_0x2298ba)!=_0xf36de0(0x396)||!_0x2298ba)return _0x2298ba;var _0x293337=_0x2298ba[Symbol['toPrimitive']];if(_0x293337!==void 0x0){var _0x16ce01=_0x293337[_0xf36de0(0x128)](_0x2298ba,_0x17f997||'default');if(L(_0x16ce01)!=_0xf36de0(0x396))return _0x16ce01;throw TypeError(_0xf36de0(0x46f));}return(_0x17f997===_0xf36de0(0x439)?String:Number)(_0x2298ba);}function z(_0x3998b9){const _0x5f1737=_0x16f285;var _0x48bb51=R(_0x3998b9,_0x5f1737(0x439));return L(_0x48bb51)==_0x5f1737(0x46a)?_0x48bb51:_0x48bb51+'';}function B(_0x524dfa,_0x4c674e,_0x30127f){return(_0x4c674e=z(_0x4c674e))in _0x524dfa?Object['defineProperty'](_0x524dfa,_0x4c674e,{'value':_0x30127f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x524dfa[_0x4c674e]=_0x30127f,_0x524dfa;}var V=class extends a[_0x16f285(0x33e)]{constructor(_0x93f81a,_0x4acd4b){const _0xb5447=_0x16f285;super(),this[_0xb5447(0xea)]=_0x93f81a,this['_element']=_0x4acd4b,B(this,_0xb5447(0x7a),_[_0xb5447(0x350)]['Dom']);}['getRect'](){const _0x37427c=_0x16f285;return{'width':Math[_0x37427c(0xe9)](0x1,this[_0x37427c(0x122)][_0x37427c(0x1ce)]),'height':Math[_0x37427c(0xe9)](0x1,this[_0x37427c(0x122)][_0x37427c(0xa1)])};}[_0x16f285(0x37a)](_0x223661){const _0x18b9b8=_0x16f285;I(this[_0x18b9b8(0x122)],_0x223661);}async[_0x16f285(0x7e)](){const _0x7e6489=_0x16f285;return this[_0x7e6489(0x122)];}[_0x16f285(0xff)](){const _0x3e3f78=_0x16f285;return this[_0x3e3f78(0x122)][_0x3e3f78(0x2aa)];}[_0x16f285(0x192)](){}[_0x16f285(0x216)](){}[_0x16f285(0x490)](){}};function re({isRowDirection:_0x272c73,runtime:_0x2c26f3}){const _0x50c0bd=_0x16f285;let _0x2749e4=(0x0,h[_0x50c0bd(0x232)])(null),_0x1bbd69=(0x0,m[_0x50c0bd(0x15f)])(a[_0x50c0bd(0x28c)]),_0x15734d=(0x0,m[_0x50c0bd(0x15f)])(a[_0x50c0bd(0x3c2)]),_0x2c7b21=(0x0,m[_0x50c0bd(0x15f)])(F),_0x4e93a0=(0x0,m[_0x50c0bd(0x15f)])(a[_0x50c0bd(0x2b2)]);return(0x0,h[_0x50c0bd(0x2e0)])(()=>{const _0x3686e9=_0x50c0bd;let _0x47a275=_0x2749e4[_0x3686e9(0x1af)];if(!_0x47a275)return;_0x47a275['replaceChildren']();let {chartId:_0x3cbda2,model:_0x836129}=_0x2c26f3,_0x225850=_0x836129['dataSource'],_0x414e20=new V(_0x3cbda2,_0x47a275),_0x16554e=_0x2c7b21['createDomChartInstance'](),_0x40781c=!0x1,_0x5302ec=null,_0x53309b=null,_0x14f023=null,_0x5e1be9=null,_0x35ffc5=!0x1,_0x17c9a1=!0x1,_0x2e8050=Promise['resolve']();_0x16554e[_0x3686e9(0x11a)](_0x414e20);let _0x5a9758=()=>{const _0xfb085c=_0x3686e9;var _0x135071,_0x1d1f65,_0x555905,_0x349d13;if(document[_0xfb085c(0x269)]==='hidden'||(_0x135071=(_0x1d1f65=window)[_0xfb085c(0x48c)])!=null&&(_0x135071=_0x135071['call'](_0x1d1f65,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x135071[_0xfb085c(0x2e4)]||(_0x555905=(_0x349d13=window)[_0xfb085c(0x48c)])!=null&&(_0x555905=_0x555905['call'](_0x349d13,'print'))!=null&&_0x555905[_0xfb085c(0x2e4)]||!_0x47a275[_0xfb085c(0x2aa)])return!0x1;let _0x35e50e=_0x47a275[_0xfb085c(0x1b2)]();return _0x35e50e['width']>0x0&&_0x35e50e[_0xfb085c(0xd4)]>0x0&&_0x35e50e[_0xfb085c(0x2e8)]>0x0&&_0x35e50e[_0xfb085c(0x1d6)]>0x0&&_0x35e50e[_0xfb085c(0x3d4)]<window['innerWidth']&&_0x35e50e[_0xfb085c(0x32b)]<window[_0xfb085c(0x3f3)];},_0xf57f37=()=>{const _0x33627f=_0x3686e9;_0x53309b!==null&&clearTimeout(_0x53309b),_0x47a275[_0x33627f(0xdd)][_0x33627f(0x1a8)]='true',_0x47a275[_0x33627f(0xdd)]['baseChartDataAnimationDuration']=String(_[_0x33627f(0x1cf)]),_0x53309b=setTimeout(()=>{const _0x53fa34=_0x33627f;_0x53309b=null,delete _0x47a275[_0x53fa34(0xdd)][_0x53fa34(0x1a8)],delete _0x47a275['dataset'][_0x53fa34(0x8d)];},_[_0x33627f(0x1cf)]);},_0x1456d2=(0x0,a[_0x3686e9(0x179)])(()=>{const _0x5e707b=_0x3686e9;if(_0x40781c||(_0x5302ec!==null&&(clearTimeout(_0x5302ec),_0x5302ec=null),!_0x836129[_0x5e707b(0x84)]))return;let _0x337904=_0x17c9a1;_0x17c9a1=!0x1,_0x47a275[_0x5e707b(0xdd)]['chartType']=String(_0x836129[_0x5e707b(0x20a)]),_0x47a275[_0x5e707b(0xdd)][_0x5e707b(0x24e)]=String(_0x272c73);let _0x2df288=_0x2c7b21[_0x5e707b(0x2ef)](_0x2c26f3),_0x19e28e={'chartId':_0x3cbda2,'config':_0x2df288[_0x5e707b(0x84)],'style':_0x2df288[_0x5e707b(0x468)]};_0x2e8050=_0x2e8050['then'](async()=>{const _0x4e9067=_0x5e707b;_0x40781c||(_0x47a275[_0x4e9067(0xdd)]['renderRevision']=String(Number(_0x47a275[_0x4e9067(0xdd)][_0x4e9067(0x3d3)]??0x0)+0x1),_0x337904&&_0x14f023&&_0x16554e[_0x4e9067(0x471)]&&_0x5a9758()?(await _0x16554e['renderTransition'](_0x14f023,_0x19e28e,{'duration':_['CHART_DATA_UPDATE_ANIMATION_DURATION']}),_0x40781c||_0xf57f37()):await _0x16554e[_0x4e9067(0x2c9)](_0x19e28e),_0x14f023=_0x19e28e);})[_0x5e707b(0x2a3)](_0x4d815f=>_0x15734d['error']('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x4d815f));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x342869=(_0x4223e6=!0x1)=>{_0x17c9a1||=_0x4223e6,_0x35ffc5||(_0x35ffc5=!0x0,queueMicrotask(()=>{_0x35ffc5=!0x1,_0x40781c||_0x1456d2();}));},_0xbedfc5=[_0x225850[_0x3686e9(0x18c)][_0x3686e9(0x385)](_0x4122e4=>{const _0x2abbf7=_0x3686e9;let _0x1ea029=JSON[_0x2abbf7(0xfb)](_0x4122e4);_0x5e1be9!=null&&_0x5e1be9!==_0x1ea029&&_0x342869(!0x0),_0x5e1be9=_0x1ea029;}),_0x836129[_0x3686e9(0x374)][_0x3686e9(0x385)](_0x2a6770=>{_0x2a6770&&_0x342869();}),_0x836129[_0x3686e9(0x328)]['subscribe'](()=>_0x342869()),_0x1bbd69[_0x3686e9(0x311)][_0x3686e9(0x385)](()=>_0x342869()),(0x0,c[_0x3686e9(0x2ac)])([_0x4e93a0[_0x3686e9(0x230)],_0x4e93a0[_0x3686e9(0x30c)]])['pipe']((0x0,c[_0x3686e9(0x356)])(0x1))['subscribe'](()=>_0x342869())],_0xc0f368=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{_0x40781c||(_0x414e20['syncLayout'](),_0x5302ec!==null&&clearTimeout(_0x5302ec),_0x5302ec=setTimeout(()=>_0x342869(),0x64));});return _0xc0f368==null||_0xc0f368['observe'](_0x47a275),()=>{const _0x31cd6c=_0x3686e9;_0x40781c=!0x0,_0x1456d2['cancel'](),_0x5302ec!==null&&clearTimeout(_0x5302ec),_0x53309b!==null&&clearTimeout(_0x53309b),delete _0x47a275[_0x31cd6c(0xdd)][_0x31cd6c(0x1a8)],delete _0x47a275['dataset'][_0x31cd6c(0x8d)],_0xc0f368==null||_0xc0f368[_0x31cd6c(0x2d7)](),_0xbedfc5[_0x31cd6c(0x26f)](_0x400564=>_0x400564[_0x31cd6c(0x2ce)]()),_0x16554e[_0x31cd6c(0x23e)](),_0x414e20[_0x31cd6c(0x23e)](),_0x47a275['replaceChildren']();};},[_0x272c73,_0x1bbd69,_0x15734d,_0x2c7b21,_0x2c26f3,_0x4e93a0]),(0x0,g['jsx'])(_0x50c0bd(0x24a),{'ref':_0x2749e4,'data-u-comp':'base-pivot-chart','className':_0x50c0bd(0x40b)});}function ie({filters:_0xd37ab1,onRuntimeChange:_0x39a092,unitId:_0x32f1e0,widget:_0x1d3caf}){const _0x2f6a9f=_0x16f285;let _0x4b5b6c=(0x0,m[_0x2f6a9f(0x15f)])(a[_0x2f6a9f(0x365)]),_0x55366c=(0x0,m[_0x2f6a9f(0x15f)])(a[_0x2f6a9f(0x28c)]),_0x5ef3cd=(0x0,m[_0x2f6a9f(0x15f)])(a[_0x2f6a9f(0x3c2)]),_0xb268e3=(0x0,m['useDependency'])(e[_0x2f6a9f(0x2f7)]),[_0x49b075,_0x58a9c8]=(0x0,h[_0x2f6a9f(0x450)])(null),[_0x289013,_0x46b61f]=(0x0,h[_0x2f6a9f(0x450)])(!0x1),[_0x3beeb1,_0x2795b9]=(0x0,h['useState'])(null),_0x4b8856=(0x0,h[_0x2f6a9f(0x232)])('base-dashboard-pivot-chart-'+(0x0,a['generateRandomId'])(0x8)),_0xf59096=_0x4b5b6c['getUnit'](_0x32f1e0,a[_0x2f6a9f(0x1c6)][_0x2f6a9f(0x12b)]),_0x4c596e=_0xf59096==null?void 0x0:_0xf59096[_0x2f6a9f(0x1fc)]()['tables'][_0x1d3caf['tableId']],_0x225071=_0x4c596e==null?void 0x0:_0x4c596e[_0x2f6a9f(0x2dc)][_0x1d3caf[_0x2f6a9f(0x329)]],_0x294247=H(_0x225071);if((0x0,h['useEffect'])(()=>{const _0xb5c191=_0x2f6a9f;if(!_0x294247)return;let _0x5dfb79=_0x4b8856[_0xb5c191(0x1af)];return _0xb268e3[_0xb5c191(0x1b4)](_0x5dfb79,{'unitId':_0x32f1e0,'tableId':_0x1d3caf[_0xb5c191(0x135)],'viewId':_0x1d3caf[_0xb5c191(0x329)],'filters':[]}),()=>{_0xb268e3['releaseChartRuntime'](_0x32f1e0,_0x5dfb79),_0x39a092==null||_0x39a092(_0x1d3caf['id'],null);};},[_0x294247,_0x39a092,_0xb268e3,_0x32f1e0,_0x1d3caf['id'],_0x1d3caf[_0x2f6a9f(0x329)],_0x1d3caf[_0x2f6a9f(0x135)]]),(0x0,h[_0x2f6a9f(0x2e0)])(()=>{const _0x3f0587=_0x2f6a9f;if(!H(_0x225071))return;let _0x1f99f6=!0x0,_0x5c648c=_0x1d3caf[_0x3f0587(0x3ef)]??_0x225071['config']['chart'],_0x1c06b3={'unitId':_0x32f1e0,'tableId':_0x1d3caf[_0x3f0587(0x135)],'viewId':_0x1d3caf[_0x3f0587(0x329)],'filters':[_0x225071[_0x3f0587(0x39e)]??null,..._0xd37ab1]};return _0xb268e3[_0x3f0587(0xb0)](_0x32f1e0,_0x4b8856['current'],_0x1c06b3,_0x5c648c)['then'](_0x4bbf09=>{const _0x4d6e96=_0x3f0587;if(!_0x1f99f6||!_0x4bbf09)return;let _0x6cbc8b=_0xb268e3[_0x4d6e96(0x2b6)](_0x32f1e0,_0x4b8856[_0x4d6e96(0x1af)])??null;_0x58a9c8(_0x4bbf09),_0x2795b9(_0x6cbc8b),_0x46b61f(!0x1),_0x39a092==null||_0x39a092(_0x1d3caf['id'],_0x6cbc8b);})[_0x3f0587(0x2a3)](_0x2f873b=>{const _0x37ea68=_0x3f0587;_0x5ef3cd['error'](_0x37ea68(0x199),_0x2f873b),_0x1f99f6&&(_0x58a9c8(null),_0x46b61f(!0x0));}),()=>{_0x1f99f6=!0x1;};},[_0xd37ab1,_0x5ef3cd,_0x39a092,_0xb268e3,_0x32f1e0,_0x225071,_0x1d3caf[_0x2f6a9f(0x3ef)],_0x1d3caf['id'],_0x1d3caf[_0x2f6a9f(0x329)],_0x1d3caf['tableId']]),!H(_0x225071))return(0x0,g['jsx'])(_0x2f6a9f(0x24a),{'className':_0x2f6a9f(0x93),'children':_0x55366c['t'](_0x2f6a9f(0x2e5))});let _0x52b6c0=_0xb268e3['getChartRuntime'](_0x32f1e0,_0x4b8856[_0x2f6a9f(0x1af)])===_0x3beeb1?_0x3beeb1:null;return _0x49b075&&_0x52b6c0?(0x0,g[_0x2f6a9f(0x1d7)])(re,{'isRowDirection':(0x0,e[_0x2f6a9f(0x332)])((_0x1d3caf[_0x2f6a9f(0x3ef)]??_0x225071['config'][_0x2f6a9f(0x3ef)])['orient']),'runtime':_0x52b6c0}):(0x0,g[_0x2f6a9f(0x1d7)])(_0x2f6a9f(0x24a),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x55366c['t'](_0x289013?_0x2f6a9f(0x308):_0x2f6a9f(0x2df))});}function H(_0x1b77de){const _0x495829=_0x16f285;return(_0x1b77de==null?void 0x0:_0x1b77de[_0x495829(0x430)])===a[_0x495829(0x17b)][_0x495829(0x349)]&&typeof _0x1b77de[_0x495829(0x84)]=='object'&&_0x1b77de[_0x495829(0x84)]!==null&&_0x495829(0x418)in _0x1b77de['config']&&_0x495829(0x3ef)in _0x1b77de['config'];}const ae={'alignment':_0x16f285(0x3d4),'fontSize':0x12,'fontSizeMode':'auto'};function oe(_0x51fd80){const _0xbb78f1=_0x16f285;return{...ae,..._0x51fd80[_0xbb78f1(0x82)]};}function U(_0x56c056){const _0x27d6af=_0x16f285;var _0x274a20;return((_0x274a20=_0x56c056[_0x27d6af(0x290)])==null?void 0x0:_0x274a20[_0x27d6af(0x3e7)][_0x27d6af(0x94)](/\r\n$/,'')['replace'](/\r/g,'\x0a'))??'';}function se(_0x1bb5ef,_0x13010e){const _0x3d4d7c=_0x16f285;var _0x38ae2f;let _0x28ddd6=_0x13010e[_0x3d4d7c(0x94)](/\r\n|\r/g,'\x0a')['split']('\x0a'),_0x2b7eb4=_0x28ddd6[_0x3d4d7c(0x211)]('\x0d')+'\x0d\x0a',_0x549502=((_0x38ae2f=_0x1bb5ef[_0x3d4d7c(0x290)])==null?void 0x0:_0x38ae2f[_0x3d4d7c(0x395)])??[],_0x3d2a14=new Set(_0x549502[_0x3d4d7c(0x201)](_0x23ff32=>_0x23ff32[_0x3d4d7c(0x225)])),_0x526224=0x0,_0x309186=_0x28ddd6['map']((_0x1635e9,_0x30565c)=>{const _0x1aa65f=_0x3d4d7c;_0x526224+=_0x1635e9[_0x1aa65f(0x444)];let _0x756438={..._0x549502[_0x30565c]??{'startIndex':_0x526224,'paragraphId':(0x0,a[_0x1aa65f(0x1d8)])(_0x3d2a14)},'startIndex':_0x526224};return _0x526224+=0x1,_0x756438;});return{..._0x1bb5ef,'body':{..._0x1bb5ef[_0x3d4d7c(0x290)],'dataStream':_0x2b7eb4,'paragraphs':_0x309186,'textRuns':[]}};}function ce({widget:_0x95a812}){const _0x1bebb2=_0x16f285;let _0x4dbc85=(0x0,m[_0x1bebb2(0x15f)])(a[_0x1bebb2(0x2b2)]),_0xd18152=(0x0,m[_0x1bebb2(0x15f)])(a[_0x1bebb2(0x28c)]),_0x1d677d=(0x0,m[_0x1bebb2(0x49b)])(()=>_0x4dbc85[_0x1bebb2(0x230)],_0x4dbc85['getCurrentTheme'](),!0x1,[_0x4dbc85]),_0x3d0e07=(0x0,h[_0x1bebb2(0x232)])(null),_0x197671=(0x0,h[_0x1bebb2(0x232)])(null),_0x8a5cf9=oe(_0x95a812),_0x4695e0=_0x8a5cf9[_0x1bebb2(0x47b)]??_0x1d677d[_0x1bebb2(0x416)][0x0],_0x5e7bce=_0x8a5cf9['textColor']??_0x1d677d['gray'][0x3e8],_0x641156=U(_0x95a812['document']);return(0x0,h[_0x1bebb2(0x2e0)])(()=>{const _0x2a549d=_0x1bebb2;let _0x352d3c=_0x3d0e07[_0x2a549d(0x1af)],_0x32d439=_0x197671[_0x2a549d(0x1af)];if(!_0x352d3c||!_0x32d439)return;let _0x396811=()=>{const _0x1bba4e=_0x2a549d;if(_0x8a5cf9[_0x1bba4e(0x156)]===_0x1bba4e(0x459)||!_0x352d3c[_0x1bba4e(0x1ce)]||!_0x352d3c[_0x1bba4e(0xa1)]){_0x32d439['style']['fontSize']=_0x8a5cf9[_0x1bba4e(0x174)]+'px';return;}let _0x286d26=0x8,_0x4ee0ca=0x48,_0x1080e2=_0x286d26;for(;_0x286d26<=_0x4ee0ca;){let _0x8a4f7f=Math[_0x1bba4e(0x261)]((_0x286d26+_0x4ee0ca)/0x2);_0x32d439['style'][_0x1bba4e(0x174)]=_0x8a4f7f+'px',_0x32d439[_0x1bba4e(0xe8)]<=_0x352d3c[_0x1bba4e(0x1ce)]&&_0x32d439[_0x1bba4e(0x17f)]<=_0x352d3c[_0x1bba4e(0xa1)]?(_0x1080e2=_0x8a4f7f,_0x286d26=_0x8a4f7f+0x1):_0x4ee0ca=_0x8a4f7f-0x1;}_0x32d439['style'][_0x1bba4e(0x174)]=_0x1080e2+'px';};if(_0x396811(),typeof ResizeObserver>'u')return;let _0x88af9d=new ResizeObserver(_0x396811);return _0x88af9d[_0x2a549d(0x476)](_0x352d3c),()=>_0x88af9d['disconnect']();},[_0x8a5cf9[_0x1bebb2(0x174)],_0x8a5cf9['fontSizeMode'],_0x641156]),(0x0,g[_0x1bebb2(0x1d7)])(_0x1bebb2(0x24a),{'data-dashboard-text-widget':_0x95a812['id'],'className':_0x1bebb2(0x2e3),'style':{'backgroundColor':_0x4695e0,'color':_0x5e7bce},'children':(0x0,g['jsx'])(_0x1bebb2(0x24a),{'ref':_0x3d0e07,'data-dashboard-text-content':!0x0,'aria-label':_0xd18152['t'](_0x1bebb2(0x42e)),'className':_0x1bebb2(0x37c),'children':(0x0,g[_0x1bebb2(0x1d7)])(_0x1bebb2(0x24a),{'ref':_0x197671,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x8a5cf9[_0x1bebb2(0x156)],'className':_0x1bebb2(0x205),'style':{'textAlign':_0x8a5cf9[_0x1bebb2(0x355)]},'children':_0x641156})})});}function le({dashboard:_0x190760,editable:_0x227df1=!0x0,onSelectWidget:_0x42d3f8,renderWidget:_0x123029,renderWidgetActions:_0x504f1d,selectedWidgetId:_0x2fbba5,widgetLabel:_0x36e2c9}){const _0x3345ec=_0x16f285;return(0x0,g[_0x3345ec(0x1d7)])(_0x3345ec(0x24a),{'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x3345ec(0x19b)])('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',f[_0x3345ec(0x36e)]),'onClick':_0x227df1?_0x14b8a2=>{const _0x563e57=_0x3345ec;if(!(_0x14b8a2['target']instanceof Node)||!_0x14b8a2[_0x563e57(0x3b8)][_0x563e57(0x397)](_0x14b8a2[_0x563e57(0x242)]))return;let _0x11d9c4=_0x14b8a2[_0x563e57(0x242)]instanceof Element?_0x14b8a2[_0x563e57(0x242)]:_0x14b8a2[_0x563e57(0x242)][_0x563e57(0x1ef)];_0x11d9c4!=null&&_0x11d9c4['closest'](_0x563e57(0x4a1))||_0x42d3f8==null||_0x42d3f8();}:void 0x0,'children':(0x0,g[_0x3345ec(0x1d7)])(_0x3345ec(0x24a),{'data-dashboard-grid':!0x0,'className':_0x3345ec(0x12d),'children':_0x190760[_0x3345ec(0x2f8)]['map'](_0x311f82=>{const _0x5f512c=_0x3345ec;let _0x5a5789=_0x190760[_0x5f512c(0x1c8)][_0x311f82];if(!_0x5a5789)return null;let _0x574795=Math['max'](0xb4,_0x5a5789[_0x5f512c(0x3c1)][_0x5f512c(0x441)]*e['BASES_DASHBOARD_DEFAULT_ROW_HEIGHT']);return(0x0,g[_0x5f512c(0x2f3)])(_0x5f512c(0x1ed),{'data-dashboard-widget':_0x5a5789['id'],'aria-label':_0x5a5789['title']??_0x36e2c9(_0x5a5789),'className':(0x0,f[_0x5f512c(0x19b)])('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x5a5789[_0x5f512c(0x430)]===e[_0x5f512c(0x127)][_0x5f512c(0x17d)]||_0x5a5789[_0x5f512c(0x430)]===e[_0x5f512c(0x127)][_0x5f512c(0x2c0)]?_0x5f512c(0xfd):_0x5f512c(0x1bd),_0x227df1&&_0x2fbba5===_0x5a5789['id']?_0x5f512c(0x13f):_0x5f512c(0x89)),'style':{'minHeight':_0x574795,'height':_0x574795},'tabIndex':_0x227df1?0x0:void 0x0,'onClick':_0x227df1?()=>_0x42d3f8==null?void 0x0:_0x42d3f8(_0x5a5789['id']):void 0x0,'onFocus':_0x227df1?()=>_0x42d3f8==null?void 0x0:_0x42d3f8(_0x5a5789['id']):void 0x0,'children':[_0x227df1&&(0x0,g[_0x5f512c(0x1d7)])(_0x5f512c(0x24a),{'className':_0x5f512c(0x33a),'children':_0x504f1d==null?void 0x0:_0x504f1d(_0x5a5789)}),(0x0,g[_0x5f512c(0x1d7)])(_0x5f512c(0x24a),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x123029(_0x5a5789)})]},_0x5a5789['id']);})})});}let W=class extends n['ChartUIService']{constructor(_0x337e9e){super(_0x337e9e),B(this,'activeRuntimeModel',null);}[_0x16f285(0x310)](_0x10e4e7){}};W=P([N(0x0,(0x0,a[_0x16f285(0xdb)])(n[_0x16f285(0x2fd)]))],W);function ue({children:_0x5b26b1}){const _0x513b68=_0x16f285;return(0x0,g[_0x513b68(0x1d7)])(n['MobileChartEditorControls'],{'children':_0x5b26b1});}function G(_0x2f7733){const _0x588275=_0x16f285;return(0x0,g[_0x588275(0x1d7)])(f[_0x588275(0x314)],{..._0x2f7733});}function de(_0x42ea0d){const _0x342866=_0x16f285;return(0x0,g[_0x342866(0x1d7)])(f['MobileDropdownMenu'],{..._0x42ea0d});}function fe(_0x219599){const _0x544626=_0x16f285;return(0x0,g[_0x544626(0x1d7)])(f[_0x544626(0x274)],{..._0x219599});}var pe;const K={'axis':{...n[_0x16f285(0x469)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0x16f285(0x1d3)],'heatmap':n[_0x16f285(0x2c4)],'indicatorLine':n[_0x16f285(0x39f)],'legend':n['DEFAULT_CHART_LEGEND_VALUES'],'lineAndArea':n['DEFAULT_CHART_LINE_AND_AREA_VALUES'],'pareto':n[_0x16f285(0x391)],'pie':n['DEFAULT_CHART_PIE_VALUES'],'radar':n[_0x16f285(0x409)],'relation':{...n[_0x16f285(0x116)],'useValueAsSymbolSize':!0x0},'series':{...n[_0x16f285(0x2b5)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0x16f285(0xf7)]['allSeriesStyle'])==null?void 0x0:pe['rightYAxis'])??!0x1}},'style':n[_0x16f285(0x257)],'titles':n[_0x16f285(0x1c7)],'trendline':n[_0x16f285(0x2dd)],'waterfall':{...n[_0x16f285(0x440)],'useSubtotal':!0x0},'waterfallStyle':n[_0x16f285(0x3aa)],'wordCloud':n[_0x16f285(0x2ea)]},me=[_['ChartTypeBits']['Line'],_[_0x16f285(0x22f)][_0x16f285(0x330)],_[_0x16f285(0x22f)]['WordCloud'],_['ChartTypeBits'][_0x16f285(0x1ea)],_[_0x16f285(0x22f)][_0x16f285(0x2e9)],_['ChartTypeBits'][_0x16f285(0x1c1)],_[_0x16f285(0x22f)]['Sankey'],_[_0x16f285(0x22f)][_0x16f285(0x470)],_[_0x16f285(0x22f)][_0x16f285(0x3a2)],_[_0x16f285(0x22f)]['Candlestick'],_[_0x16f285(0x22f)][_0x16f285(0x38e)],_['ChartTypeBits'][_0x16f285(0x3eb)],_[_0x16f285(0x22f)][_0x16f285(0x7c)],_[_0x16f285(0x22f)][_0x16f285(0x372)],_[_0x16f285(0x22f)][_0x16f285(0x18b)]];function he(_0xa78dba){const _0x24f8c4=_0x16f285;let {config:_0x263d6b,onChange:_0x84933f,runtime:_0x4e4406,tableName:_0x41497e}=_0xa78dba,_0x448b3c=(0x0,m['useDependency'])(W),_0x4db2fb=(0x0,m[_0x24f8c4(0x15f)])(a['LocaleService']),[_0x8bf64f,_0x505aa0]=(0x0,h[_0x24f8c4(0x450)])(n[_0x24f8c4(0x222)][_0x24f8c4(0x9b)]),_0x4fbe81=(0x0,h[_0x24f8c4(0x4a4)])(()=>new n['ChartHostAdapter'](_0x4e4406[_0x24f8c4(0x238)],{'commit':_0x11cfe6=>{const _0x6bf393=_0x24f8c4;var _0x11ec81;let _0x183415=_0x4e4406[_0x6bf393(0x238)],_0x13ced0=(0x0,_['toChartModelUpdate'])(_0x11cfe6,{'series':(_0x11ec81=_0x183415[_0x6bf393(0x84)])==null?void 0x0:_0x11ec81[_0x6bf393(0x421)],'currentChartType':_0x183415[_0x6bf393(0x20a)],'currentStyle':_0x183415[_0x6bf393(0x468)],'currentContext':_0x183415['context'],'currentDataAggregation':_0x183415[_0x6bf393(0x255)]});_0x84933f({'chart':ge(_0x263d6b[_0x6bf393(0x3ef)],_0x13ced0)});}}),[_0x263d6b[_0x24f8c4(0x3ef)],_0x84933f,_0x4e4406]),_0x978627=(0x0,h['useMemo'])(()=>(0x0,n[_0x24f8c4(0x40e)])(n[_0x24f8c4(0x38d)]['map'](_0x55d498=>({..._0x55d498,'label':_0x4db2fb['t'](be(_0x55d498[_0x24f8c4(0x392)]))}))),[_0x4db2fb]);return(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x140)],{'chartUIService':_0x448b3c,'hostAdapter':_0x4fbe81,'children':(0x0,g['jsxs'])(_0x24f8c4(0x24a),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[(0x0,g['jsx'])(n[_0x24f8c4(0x286)],{'ariaLabel':_0x4db2fb['t'](_0x24f8c4(0x414)),'className':_0x24f8c4(0x21f),'items':[{'label':_0x4db2fb['t'](_0x24f8c4(0x4a5)),'panelId':'base-pivot-chart-setup','value':n['ChartEditPanelTab'][_0x24f8c4(0x9b)]},{'label':_0x4db2fb['t'](_0x24f8c4(0x3d0)),'panelId':'base-pivot-chart-style','value':n[_0x24f8c4(0x222)][_0x24f8c4(0x14e)]}],'value':_0x8bf64f,'onChange':_0x505aa0}),_0x8bf64f===n[_0x24f8c4(0x222)]['Data']?(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x41b)],{'id':_0x24f8c4(0x451),'label':_0x4db2fb['t'](_0x24f8c4(0x4a5)),'children':(0x0,g['jsxs'])('div',{'className':_0x24f8c4(0x1f3),'children':[(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x131)],{'options':_0x978627}),(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x28b)],{}),(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x206)],{}),(0x0,g[_0x24f8c4(0x1d7)])(_e,{}),(0x0,g['jsx'])(n[_0x24f8c4(0x1ac)],{}),(0x0,g[_0x24f8c4(0x2f3)])('div',{'children':[(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x1ff)],{'title':_0x4db2fb['t']('bases-dashboard-ui.pivot.dataSource')}),(0x0,g['jsx'])(f[_0x24f8c4(0x3cd)],{'disabled':!0x0,'value':_0x41497e})]}),(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x493)],{'orientationControl':(0x0,g[_0x24f8c4(0x1d7)])(f[_0x24f8c4(0x1bb)],{'size':_0x24f8c4(0x362),'onClick':()=>_0x84933f({'chart':{..._0x263d6b['chart'],'orient':_0x263d6b['chart'][_0x24f8c4(0xa4)]===_0x24f8c4(0x348)?'column':'row'}}),'children':_0x4db2fb['t'](_0x24f8c4(0x1c9))})}),(0x0,g['jsx'])(n[_0x24f8c4(0xfe)],{}),(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x187)],{'defaultValues':K[_0x24f8c4(0x295)]}),(0x0,g[_0x24f8c4(0x2f3)])(_0x24f8c4(0x24a),{'children':[(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x1ff)],{'title':_0x4db2fb['t'](_0x24f8c4(0x2a6))}),(0x0,g[_0x24f8c4(0x1d7)])(G,{'value':_0x263d6b['displayMode'],'options':[{'value':_0x24f8c4(0x133),'label':_0x4db2fb['t'](_0x24f8c4(0x2f6))},{'value':_0x24f8c4(0x3ef),'label':_0x4db2fb['t'](_0x24f8c4(0x260))},{'value':_0x24f8c4(0x3b5),'label':_0x4db2fb['t'](_0x24f8c4(0xe0))}],'onChange':_0x1a7b89=>{const _0x31f5a3=_0x24f8c4;(_0x1a7b89===_0x31f5a3(0x133)||_0x1a7b89===_0x31f5a3(0x3ef)||_0x1a7b89===_0x31f5a3(0x3b5))&&_0x84933f({'displayMode':_0x1a7b89});}})]})]})}):(0x0,g[_0x24f8c4(0x1d7)])(n[_0x24f8c4(0x41b)],{'id':_0x24f8c4(0x405),'label':_0x4db2fb['t']('bases-dashboard-ui.chart.common.customize'),'children':(0x0,g[_0x24f8c4(0x1d7)])(ve,{})})]})});}function ge(_0x333e21,_0x5bbcf2){const _0x1c8c68=_0x16f285;return{..._0x333e21,'type':_0x5bbcf2[_0x1c8c68(0x20a)]??_0x333e21['type'],'style':_0x5bbcf2['style']??_0x333e21[_0x1c8c68(0x468)],'context':_0x5bbcf2[_0x1c8c68(0x1f7)]??_0x333e21[_0x1c8c68(0x1f7)],'dataAggregation':_0x5bbcf2[_0x1c8c68(0x255)]??_0x333e21[_0x1c8c68(0x255)]};}function _e(){const _0x1eb9df=_0x16f285;let _0x561baa=(0x0,n[_0x1eb9df(0x10b)])();return(0x0,g['jsx'])(n[_0x1eb9df(0x9f)],{'visible':me[_0x1eb9df(0x448)](_0xaabfa3=>!_['chartBitsUtils'][_0x1eb9df(0x115)](_0x561baa,_0xaabfa3))});}function q(_0x47182e){const _0x357179=_0x16f285;return(0x0,g[_0x357179(0x2f3)])(n[_0x357179(0x4aa)],{'id':_0x47182e['id'],'children':[(0x0,g[_0x357179(0x1d7)])(n[_0x357179(0x478)],{'children':_0x47182e['label']}),(0x0,g[_0x357179(0x1d7)])(n[_0x357179(0x13c)],{'children':_0x47182e[_0x357179(0x3db)]})]});}function ve(){const _0x2a467b=_0x16f285;let _0x3f8575=(0x0,m[_0x2a467b(0x15f)])(a[_0x2a467b(0x28c)]),_0x2f6435=(0x0,n['useChartEditorChartType'])(),_0x37d132=(0x0,n['useChartEditorHasRightAxis'])(),[_0x312723,_0x12cde8]=(0x0,h[_0x2a467b(0x450)])(null),_0x3b8b3e=_[_0x2a467b(0x432)][_0x2a467b(0x115)](_0x2f6435,_[_0x2a467b(0x22f)][_0x2a467b(0x2f9)]),_0x5cfa9d=_0x2f6435===_[_0x2a467b(0x22f)][_0x2a467b(0x330)],_0x952ca=_0x2f6435===_[_0x2a467b(0x22f)][_0x2a467b(0x422)],_0x40cce4=_0x2f6435===_['ChartTypeBits'][_0x2a467b(0x2e9)],_0x3e55f6=_[_0x2a467b(0x432)]['baseOn'](_0x2f6435,_[_0x2a467b(0x22f)][_0x2a467b(0xb5)]),_0x1d67d9=_0x2f6435===_[_0x2a467b(0x22f)][_0x2a467b(0x1c1)],_0x58d3d9=_0x2f6435===_['ChartTypeBits'][_0x2a467b(0x2bf)],_0x55e7c5=_0x2f6435===_[_0x2a467b(0x22f)][_0x2a467b(0x202)],_0x92994c=_0x2f6435===_['ChartTypeBits'][_0x2a467b(0x470)],_0x4e550a=(0x0,n['chartTypeSupportsCapability'])(_0x2f6435,n[_0x2a467b(0x2b0)][_0x2a467b(0x9a)])&&!_0x3e55f6&&!_0x55e7c5,_0xf54d37=ye(_0x2f6435,_0x3f8575);return(0x0,g[_0x2a467b(0x2f3)])(n[_0x2a467b(0x3a0)],{'value':_0x312723,'onChange':_0x12cde8,'children':[(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n['ChartEditPanelSection'][_0x2a467b(0x26a)],'label':_0x3f8575['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x104)],{'defaultValues':K[_0x2a467b(0x468)]})}),(0x0,g['jsx'])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x488)],'label':_0x3f8575['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x15c)],{'commitMode':_0x2a467b(0x13b),'defaultValues':K['titles']})}),(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x239)],{'section':_0x2a467b(0x16d)}),_0x4e550a&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x303)],'label':_0x3f8575['t'](_0x2a467b(0x285)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x24b)],{'defaultValues':K[_0x2a467b(0x421)],'NumberFormatField':n[_0x2a467b(0x2b4)]})}),_0x58d3d9&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x1a1)],'label':_0x3f8575['t'](_0x2a467b(0x3b7)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x20e)],{'defaultValues':K['waterfallStyle'],'getDefaultBucketName':({seriesName:_0xe8b57b,target:_0x10eacd})=>_0x10eacd===_[_0x2a467b(0x369)][_0x2a467b(0x37b)]?_0x3f8575['t'](_0x2a467b(0x377)):_0xe8b57b?_0xe8b57b+'-('+_0x3f8575['t'](_0x2a467b(0x7f)+(_0x10eacd===_[_0x2a467b(0x369)]['Positive']?_0x2a467b(0x9c):_0x2a467b(0x408)))+')':'','NumberFormatField':n[_0x2a467b(0x2b4)]})}),_0x55e7c5&&(0x0,g[_0x2a467b(0x2f3)])(g[_0x2a467b(0x20f)],{'children':[(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n['ChartEditPanelSection']['ParetoBarSeries'],'label':_0x3f8575['t'](_0x2a467b(0x458)),'children':(0x0,g['jsx'])(n['ChartParetoSeriesSection'],{'defaultValues':K['pareto'],'NumberFormatField':n[_0x2a467b(0x2b4)],'showDataPointEditor':!0x0,'target':_0x2a467b(0x292)})}),(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x3e8)],'label':_0x3f8575['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartParetoSeriesSection'],{'defaultValues':K[_0x2a467b(0x315)],'NumberFormatField':n['ChartNumberFormatAtom'],'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x3b8b3e&&(0x0,g['jsx'])(q,{'id':n[_0x2a467b(0x265)]['PieStyle'],'label':_0x3f8575['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartPieStyleSection'],{'defaultValues':K[_0x2a467b(0x2ee)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x952ca&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x422)],'label':_0x3f8575['t'](_0x2a467b(0xc8)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x336)],{'defaultValues':K[_0x2a467b(0x272)]})}),_0x5cfa9d&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n['ChartEditPanelSection']['Radar'],'label':_0x3f8575['t'](_0x2a467b(0x27e)),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartRadarStyleSection'],{'defaultValues':K[_0x2a467b(0xa6)]})}),_0x40cce4&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x2e9)],'label':_0x3f8575['t'](_0x2a467b(0x401)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x173)],{'defaultValues':K[_0x2a467b(0x320)],'gapControl':'select'})}),_0x92994c&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x470)],'label':_0x3f8575['t'](_0x2a467b(0x189)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x30f)],{'defaultValues':K['heatmap']})}),_0x1d67d9&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x1c1)],'label':_0x3f8575['t'](_0x2a467b(0x496)),'children':(0x0,g['jsx'])(n[_0x2a467b(0x2c2)],{'defaultValues':K[_0x2a467b(0xb3)]})}),(0x0,n[_0x2a467b(0x30e)])(_0x2f6435)&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x389)],'label':_0x3f8575['t'](_[_0x2a467b(0x432)][_0x2a467b(0x115)](_0x2f6435,_['ChartTypeBits'][_0x2a467b(0x44d)])?_0x2a467b(0x47f):'bases-dashboard-ui.chart.chartTypes.line'),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartLineAndAreaSection'],{'defaultValues':K[_0x2a467b(0x38a)],'lineStyleControl':_0x2a467b(0x155)})}),(0x0,n[_0x2a467b(0x410)])(_0x2f6435,n[_0x2a467b(0x2b0)]['Legend'])&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x4a9)],'label':_0x3f8575['t'](_0x2a467b(0x304)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x110)],{'defaultValues':K[_0x2a467b(0x213)]})}),(0x0,n[_0x2a467b(0x410)])(_0x2f6435,n[_0x2a467b(0x2b0)][_0x2a467b(0xc9)])&&(0x0,g['jsxs'])(g[_0x2a467b(0x20f)],{'children':[(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x489)],'label':_0x3f8575['t'](_0x2a467b(0x497)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x2ab)],{'axis':'x','defaultValues':K['axis'],'NumberFormatField':n[_0x2a467b(0x2b4)]})}),(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x2ed)],'label':_0x3f8575['t'](_0x2a467b(0x8a)),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartAxisSection'],{'axis':'y','defaultValues':K['axis'],'NumberFormatField':n[_0x2a467b(0x2b4)]})}),(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x239)],{'section':_0x2a467b(0x180)}),_0x37d132&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x1f4)],'label':_0x3f8575['t'](_0x2a467b(0x33b)),'children':(0x0,g[_0x2a467b(0x1d7)])(n['ChartAxisSection'],{'axis':'rightY','defaultValues':K['axis'],'NumberFormatField':n[_0x2a467b(0x2b4)]})}),(0x0,g['jsx'])(q,{'id':n[_0x2a467b(0x265)]['GridlinesAndTicks'],'label':_0x3f8575['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x12f)],{'defaultValues':K[_0x2a467b(0x11b)]})})]}),(0x0,n[_0x2a467b(0x410)])(_0x2f6435,n[_0x2a467b(0x2b0)]['IndicatorLine'])&&(0x0,g['jsx'])(q,{'id':n[_0x2a467b(0x265)]['IndicatorLine'],'label':_0x3f8575['t'](_0x2a467b(0x294)),'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x3a7)],{'defaultValues':K['indicatorLine']})}),(0x0,_[_0x2a467b(0x250)])(_0x2f6435)&&(0x0,g[_0x2a467b(0x1d7)])(q,{'id':n[_0x2a467b(0x265)][_0x2a467b(0x92)],'label':_0x3f8575['t'](_0x2a467b(0x387)),'children':(0x0,g['jsx'])(n[_0x2a467b(0x2f5)],{'defaultValues':K[_0x2a467b(0x415)]})}),_0xf54d37&&(0x0,g['jsx'])(q,{'id':_0xf54d37['id'],'label':_0xf54d37['label'],'children':(0x0,g[_0x2a467b(0x1d7)])(n[_0x2a467b(0x44f)],{})})]});}function ye(_0x5dc475,_0x454e06){const _0x345cc0=_0x16f285;let _0x3e7765={[_[_0x345cc0(0x22f)]['Candlestick']]:{'id':n[_0x345cc0(0x265)][_0x345cc0(0x210)],'localeKey':_0x345cc0(0x23b)},[_[_0x345cc0(0x22f)][_0x345cc0(0x38e)]]:{'id':n['ChartEditPanelSection'][_0x345cc0(0x38e)],'localeKey':_0x345cc0(0x35d)},[_[_0x345cc0(0x22f)]['Treemap']]:{'id':n[_0x345cc0(0x265)]['Treemap'],'localeKey':_0x345cc0(0x3ac)},[_[_0x345cc0(0x22f)][_0x345cc0(0x7c)]]:{'id':n['ChartEditPanelSection'][_0x345cc0(0x7c)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_[_0x345cc0(0x22f)][_0x345cc0(0x372)]]:{'id':n[_0x345cc0(0x265)][_0x345cc0(0x372)],'localeKey':_0x345cc0(0x35a)},[_[_0x345cc0(0x22f)][_0x345cc0(0x18b)]]:{'id':n[_0x345cc0(0x265)][_0x345cc0(0x18b)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x5dc475];return _0x3e7765?{'id':_0x3e7765['id'],'label':_0x454e06['t'](_0x3e7765[_0x345cc0(0x43f)])}:null;}function be(_0x4e556b){const _0x299766=_0x16f285;return _0x299766(0x108)+_0x4e556b;}function xe({onChange:_0x15efd4,onEditData:_0x38f505,runtime:_0x4a0af9,sourceChart:_0x2c8ab9,sourceName:_0x360849,widget:_0xc95f83}){const _0x1a5899=_0x16f285;let _0x232a40=(0x0,m['useDependency'])(W),_0x1d744e=(0x0,m[_0x1a5899(0x15f)])(a['LocaleService']),[_0x4b88e5,_0x5b18d1]=(0x0,h['useState'])(n[_0x1a5899(0x222)][_0x1a5899(0x9b)]),_0x3d89ba=_0xc95f83[_0x1a5899(0x3ef)]??_0x2c8ab9,_0x17ebae=(0x0,h[_0x1a5899(0x4a4)])(()=>new n['ChartHostAdapter'](_0x4a0af9[_0x1a5899(0x238)],{'commit':_0x3a7ae2=>{const _0x3ef400=_0x1a5899;var _0x15e6e7;let _0x405b20=_0x4a0af9[_0x3ef400(0x238)],_0x3ded41=(0x0,_[_0x3ef400(0x268)])(_0x3a7ae2,{'series':(_0x15e6e7=_0x405b20[_0x3ef400(0x84)])==null?void 0x0:_0x15e6e7[_0x3ef400(0x421)],'currentChartType':_0x405b20[_0x3ef400(0x20a)],'currentStyle':_0x405b20['style'],'currentContext':_0x405b20[_0x3ef400(0x1f7)],'currentDataAggregation':_0x405b20[_0x3ef400(0x255)]});_0x15efd4({..._0xc95f83,'chart':ge(_0x3d89ba,_0x3ded41)})['catch'](()=>void 0x0);}}),[_0x3d89ba,_0x15efd4,_0x4a0af9,_0xc95f83]),_0x3a4683=(0x0,h[_0x1a5899(0x4a4)])(()=>(0x0,n[_0x1a5899(0x40e)])(n[_0x1a5899(0x38d)][_0x1a5899(0x201)](_0x40c357=>({..._0x40c357,'label':_0x1d744e['t'](Se(_0x40c357[_0x1a5899(0x392)]))}))),[_0x1d744e]);return(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x3fc)],{'chartUIService':_0x232a40,'hostAdapter':_0x17ebae,'children':(0x0,g[_0x1a5899(0x2f3)])(_0x1a5899(0x24a),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x286)],{'ariaLabel':_0x1d744e['t'](_0x1a5899(0x414)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1d744e['t'](_0x1a5899(0x4a5)),'panelId':_0x1a5899(0x1a4),'value':n['ChartEditPanelTab'][_0x1a5899(0x9b)]},{'label':_0x1d744e['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':n['ChartEditPanelTab']['Style']}],'value':_0x4b88e5,'onChange':_0x5b18d1}),_0x4b88e5===n[_0x1a5899(0x222)]['Data']?(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x41b)],{'id':_0x1a5899(0x1a4),'label':_0x1d744e['t'](_0x1a5899(0x4a5)),'children':(0x0,g['jsxs'])(_0x1a5899(0x24a),{'className':_0x1a5899(0x1f3),'children':[(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x131)],{'options':_0x3a4683}),(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x28b)],{}),(0x0,g['jsx'])(n['ChartThemeField'],{}),(0x0,g[_0x1a5899(0x1d7)])(_e,{}),(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x1ac)],{}),(0x0,g[_0x1a5899(0x2f3)])(_0x1a5899(0x24a),{'children':[(0x0,g[_0x1a5899(0x1d7)])(n['ChartEditBlockTitle'],{'title':_0x1d744e['t'](_0x1a5899(0x486))}),(0x0,g[_0x1a5899(0x1d7)])(f['Input'],{'disabled':!0x0,'value':_0x360849}),(0x0,g[_0x1a5899(0x1d7)])(f['Button'],{'className':'univer-mt-2\x20univer-w-full','onClick':_0x38f505,'children':_0x1d744e['t'](_0x1a5899(0x2c3))})]})]})}):(0x0,g[_0x1a5899(0x1d7)])(n[_0x1a5899(0x41b)],{'id':_0x1a5899(0x113),'label':_0x1d744e['t'](_0x1a5899(0x3d0)),'children':(0x0,g[_0x1a5899(0x1d7)])(ve,{})})]})});}function Se(_0x452cd0){const _0x120479=_0x16f285;return _0x120479(0x108)+_0x452cd0;}const Ce=[_0x16f285(0xcc),'number','percent',_0x16f285(0x2d1),_0x16f285(0x42c),_0x16f285(0x3b1)];function we({base:_0x2e355d,onChange:_0x52b866,onSelectBackgroundImage:_0x5a0914,widget:_0x5bd28c}){const _0x553a78=_0x16f285;var _0x44535f;let _0x3ad823=(0x0,m['useDependency'])(a[_0x553a78(0x28c)]),_0x2afccb=(0x0,m[_0x553a78(0x15f)])(a[_0x553a78(0x2b2)]),_0x57d166=(0x0,m[_0x553a78(0x49b)])(()=>_0x2afccb['currentTheme$'],_0x2afccb[_0x553a78(0x11f)](),!0x1,[_0x2afccb]),_0x22d77b=(0x0,m[_0x553a78(0x49b)])(()=>_0x2afccb[_0x553a78(0x30c)],_0x2afccb[_0x553a78(0x37e)],!0x1,[_0x2afccb]),[_0x3d375e,_0x321916]=(0x0,h[_0x553a78(0x450)])('data'),[_0x1882a8,_0x375350]=(0x0,h[_0x553a78(0x450)])(!0x1),_0x2391e9=k(_0x5bd28c),_0x923cd9=_0x2e355d[_0x553a78(0x1fc)]()[_0x553a78(0x252)][_0x5bd28c[_0x553a78(0x135)]],_0x3289de=_0x923cd9==null?void 0x0:_0x923cd9[_0x553a78(0x27b)][_0x553a78(0x132)](_0x438618=>_0x923cd9[_0x553a78(0x2dc)][_0x438618]),_0x415000=_0x3289de?_0x923cd9==null?void 0x0:_0x923cd9[_0x553a78(0x2dc)][_0x3289de]:void 0x0,_0x19e057=_0x923cd9&&_0x415000?(0x0,t[_0x553a78(0xf3)])(_0x2e355d['getSnapshot'](),_0x923cd9,_0x415000)[_0x553a78(0x201)](_0x3a88d6=>({..._0x3a88d6,'current':!0x1})):[],_0x5b44b2=((_0x44535f=_0x5bd28c[_0x553a78(0x1d5)][_0x553a78(0xb6)])==null?void 0x0:_0x44535f[_0x553a78(0x2b1)])??'',_0x3f25e6=_0xaeed4a=>_0x52b866(A(_0x5bd28c,_0xaeed4a))[_0x553a78(0x2a3)](()=>void 0x0),_0x4dcc04=_0x796a0b=>_0x52b866({..._0x5bd28c,'description':_0x796a0b})['catch'](()=>void 0x0);return(0x0,g[_0x553a78(0x2f3)])(_0x553a78(0x24a),{'data-dashboard-formula-inspector':!0x0,'className':_0x553a78(0x452),'children':[(0x0,g['jsx'])(f[_0x553a78(0x3f1)],{'className':_0x553a78(0x22c),'items':[{'value':_0x553a78(0xaf),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x553a78(0x468),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x3d375e,'onChange':_0x321916}),(0x0,g[_0x553a78(0x1d7)])(_0x553a78(0x24a),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3d375e===_0x553a78(0xaf)?(0x0,g['jsxs'])('div',{'className':'univer-grid\x20univer-gap-4','children':[(0x0,g[_0x553a78(0x1d7)])(J,{'label':_0x3ad823['t'](_0x553a78(0x46d)),'children':(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x3cd)],{'value':_0x5bd28c['description']??_0x5bd28c[_0x553a78(0x2ba)]??'','onChange':_0x4dcc04,'onBlur':_0x3ea5f8=>_0x4dcc04(_0x3ea5f8[_0x553a78(0x242)]['value'])})}),(0x0,g[_0x553a78(0x1d7)])(J,{'label':_0x3ad823['t'](_0x553a78(0x486)),'children':(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x3cd)],{'disabled':!0x0,'value':(_0x923cd9==null?void 0x0:_0x923cd9[_0x553a78(0x99)])??_0x3ad823['t'](_0x553a78(0x2e5))})}),(0x0,g['jsxs'])(J,{'label':_0x3ad823['t'](_0x553a78(0x209)),'children':[(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x3cd)],{'disabled':!0x0,'value':(0x0,t['formulaToEditorFormula'])(_0x5b44b2,_0x19e057)}),(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x1bb)],{'className':_0x553a78(0x26e),'onClick':()=>_0x375350(!0x0),'children':_0x3ad823['t'](_0x553a78(0x2cc))})]})]}):(0x0,g[_0x553a78(0x2f3)])(_0x553a78(0x24a),{'className':_0x553a78(0x29e),'children':[(0x0,g[_0x553a78(0x1d7)])(n[_0x553a78(0x347)],{'emptyLabel':_0x3ad823['t'](_0x553a78(0xd0)),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x22d77b?_0x57d166[_0x553a78(0x416)][0x384]:_0x57d166[_0x553a78(0x416)][0x0],'resetLabel':_0x3ad823['t'](_0x553a78(0x11d)),'value':_0x2391e9['backgroundColor']??null,'onChange':_0x3e15d5=>_0x3f25e6({'backgroundColor':_0x3e15d5??void 0x0})}),(0x0,g[_0x553a78(0x2f3)])(J,{'label':_0x3ad823['t'](_0x553a78(0x48f)),'children':[(0x0,g['jsxs'])(_0x553a78(0x24a),{'className':_0x553a78(0x3f5),'children':[(0x0,g[_0x553a78(0x2f3)])(f['Button'],{'className':_0x553a78(0x366),'onClick':()=>{const _0x36e3b5=_0x553a78;_0x5a0914()[_0x36e3b5(0x1ba)](_0x3a5736=>{const _0x2249cc=_0x36e3b5;if(_0x3a5736){var _0x25c925;return _0x3f25e6({'backgroundImage':{..._0x3a5736,'fit':((_0x25c925=_0x2391e9[_0x2249cc(0x388)])==null?void 0x0:_0x25c925['fit'])??'cover'}});}})[_0x36e3b5(0x2a3)](()=>void 0x0);},'children':[(0x0,g[_0x553a78(0x1d7)])(s[_0x553a78(0xc2)],{}),_0x2391e9[_0x553a78(0x388)]?_0x3ad823['t'](_0x553a78(0x495)):_0x3ad823['t'](_0x553a78(0x19f))]}),_0x2391e9[_0x553a78(0x388)]&&(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x1bb)],{'aria-label':_0x3ad823['t'](_0x553a78(0x1dc)),'title':_0x3ad823['t'](_0x553a78(0x1dc)),'onClick':()=>_0x3f25e6({'backgroundImage':void 0x0}),'children':(0x0,g['jsx'])(s[_0x553a78(0x1cd)],{})})]}),_0x2391e9[_0x553a78(0x388)]&&(0x0,g[_0x553a78(0x1d7)])(f['Segmented'],{'className':_0x553a78(0x21b),'items':[{'value':_0x553a78(0x234),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x553a78(0x383),'label':_0x3ad823['t'](_0x553a78(0x101))}],'value':_0x2391e9[_0x553a78(0x388)][_0x553a78(0x317)],'onChange':_0x1c7405=>_0x3f25e6({'backgroundImage':_0x2391e9[_0x553a78(0x388)]?{..._0x2391e9[_0x553a78(0x388)],'fit':_0x1c7405}:void 0x0})})]}),(0x0,g[_0x553a78(0x1d7)])(n[_0x553a78(0x347)],{'emptyLabel':_0x3ad823['t'](_0x553a78(0x1fa)),'label':_0x3ad823['t'](_0x553a78(0x1fa)),'pickerFallbackValue':_0x22d77b?_0x57d166['gray'][0x32]:_0x57d166[_0x553a78(0x416)][0x3e8],'resetLabel':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x2391e9[_0x553a78(0xa9)]??null,'onChange':_0x3f48c2=>_0x3f25e6({'textColor':_0x3f48c2??void 0x0})}),(0x0,g['jsx'])(J,{'label':_0x3ad823['t'](_0x553a78(0x18f)),'children':(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x3f1)],{'items':[{'value':_0x553a78(0x3d4),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x553a78(0x15d),'label':_0x3ad823['t'](_0x553a78(0x32e))},{'value':_0x553a78(0x2e8),'label':_0x3ad823['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x2391e9[_0x553a78(0x355)],'onChange':_0x1bae7f=>_0x3f25e6({'alignment':_0x1bae7f})})}),(0x0,g['jsxs'])(J,{'label':_0x3ad823['t'](_0x553a78(0x87)),'children':[(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x3f1)],{'items':[{'value':'auto','label':_0x3ad823['t'](_0x553a78(0x491))},{'value':_0x553a78(0x459),'label':_0x3ad823['t'](_0x553a78(0x298))}],'value':_0x2391e9[_0x553a78(0x156)],'onChange':_0x1c9a6f=>_0x3f25e6({'fontSizeMode':_0x1c9a6f})}),_0x2391e9[_0x553a78(0x156)]===_0x553a78(0x459)&&(0x0,g[_0x553a78(0x1d7)])(f[_0x553a78(0x39a)],{'className':_0x553a78(0x21b),'min':0xc,'max':0x78,'value':_0x2391e9[_0x553a78(0x174)],'onChange':_0x2eed99=>_0x3f25e6({'fontSize':_0x2eed99??0x28,'fontSizeMode':'custom'})})]}),(0x0,g[_0x553a78(0x1d7)])(J,{'label':_0x3ad823['t'](_0x553a78(0x343)),'children':(0x0,g[_0x553a78(0x1d7)])(G,{'value':_0x2391e9[_0x553a78(0x9d)],'options':[{'value':_0x553a78(0xcc),'label':_0x3ad823['t'](_0x553a78(0x1b5))},{'value':_0x553a78(0x390),'label':_0x3ad823['t'](_0x553a78(0xed))},{'value':_0x553a78(0x253),'label':_0x3ad823['t'](_0x553a78(0x1cb))},{'value':_0x553a78(0x2d1),'label':_0x3ad823['t'](_0x553a78(0x13e))},{'value':_0x553a78(0x42c),'label':_0x3ad823['t'](_0x553a78(0x3d9))},{'value':_0x553a78(0x3b1),'label':_0x3ad823['t'](_0x553a78(0x12c))}],'onChange':_0x417600=>{let _0xcd9cf1=Ce['find'](_0xbcd89f=>_0xbcd89f===_0x417600);_0xcd9cf1&&_0x3f25e6({'numberFormat':_0xcd9cf1});}})}),_0x2391e9[_0x553a78(0x9d)]===_0x553a78(0x2d1)&&(0x0,g['jsx'])(J,{'label':_0x3ad823['t'](_0x553a78(0x2de)),'children':(0x0,g[_0x553a78(0x1d7)])(f['Input'],{'value':_0x2391e9[_0x553a78(0x2d1)],'onChange':_0x2e68c6=>_0x3f25e6({'currency':_0x2e68c6['slice'](0x0,0x3)['toUpperCase']()})})}),_0x2391e9['numberFormat']!=='general'&&(0x0,g['jsx'])(J,{'label':_0x3ad823['t'](_0x553a78(0x98)),'children':(0x0,g['jsx'])(f[_0x553a78(0x39a)],{'min':0x0,'max':0x8,'value':_0x2391e9[_0x553a78(0x45c)],'onChange':_0x280fad=>_0x3f25e6({'decimalPlaces':_0x280fad??0x0})})})]})}),_0x1882a8&&(0x0,g['jsx'])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x553a78(0x1d7)])(t['MobileFormulaEditorPanel'],{'tables':_0x19e057,'formula':(0x0,t[_0x553a78(0x2fc)])(_0x5b44b2,_0x19e057),'onCancel':()=>_0x375350(!0x1),'onSave':_0x2a68fc=>{const _0x12e8a4=_0x553a78;let _0x43e490=_0x5bd28c['shapeData'][_0x12e8a4(0xb6)]??{'formula':''};return _0x52b866({..._0x5bd28c,'shapeData':{..._0x5bd28c[_0x12e8a4(0x1d5)],'formulaBinding':{..._0x43e490,'formula':(0x0,t['normalizeEditorFormulaForConfig'])(_0x2a68fc,_0x19e057)}}})[_0x12e8a4(0x1ba)](()=>_0x375350(!0x1))['catch'](()=>void 0x0);}})})]});}function J({children:_0x75173b,label:_0x54b766}){const _0x5b6362=_0x16f285;return(0x0,g['jsxs'])(_0x5b6362(0x24a),{'role':_0x5b6362(0x21a),'aria-label':_0x54b766,'className':_0x5b6362(0x474),'children':[(0x0,g[_0x5b6362(0x1d7)])(_0x5b6362(0x42b),{'children':_0x54b766}),_0x75173b]});}function Te({disabled:_0x109e1a,fields:_0x531c8c,filter:_0x3cbcc9,onChange:_0x42b07b}){const _0x7c8ae7=_0x16f285;let _0x34dacc=(0x0,m[_0x7c8ae7(0x15f)])(m[_0x7c8ae7(0x237)])[_0x7c8ae7(0x26d)]??null,[_0x49c6bf,_0x189755]=(0x0,h[_0x7c8ae7(0x450)])(null),_0x4d2614=(0x0,m[_0x7c8ae7(0x15f)])(a[_0x7c8ae7(0x28c)]),_0x111b10=(_0x3cbcc9==null?void 0x0:_0x3cbcc9[_0x7c8ae7(0x3ec)])??[];if(!_0x111b10['length'])return(0x0,g[_0x7c8ae7(0x2f3)])(_0x7c8ae7(0x24a),{'className':_0x7c8ae7(0x2e1),'children':[(0x0,g[_0x7c8ae7(0x1d7)])(s[_0x7c8ae7(0x492)],{'className':_0x7c8ae7(0x3c4)}),(0x0,g['jsx'])('span',{'className':_0x7c8ae7(0x1fe),'children':_0x4d2614['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x558361=_0x49c6bf==null?void 0x0:_0x111b10[_0x49c6bf],_0x422cb5=_0x531c8c[_0x7c8ae7(0x132)](_0x50baec=>_0x50baec['id']===(_0x558361==null?void 0x0:_0x558361[_0x7c8ae7(0x26c)]));return(0x0,g['jsxs'])(_0x7c8ae7(0x24a),{'className':_0x7c8ae7(0x1da),'children':[_0x111b10[_0x7c8ae7(0x201)]((_0x3cc7a7,_0x327b18)=>{const _0x4a0434=_0x7c8ae7;var _0x4980e6;return(0x0,g[_0x4a0434(0x2f3)])(f[_0x4a0434(0x1bb)],{'disabled':_0x109e1a,'onClick':()=>_0x189755(_0x327b18),'children':[(0x0,g['jsx'])(_0x4a0434(0x42b),{'children':((_0x4980e6=_0x531c8c[_0x4a0434(0x132)](_0x198769=>_0x198769['id']===_0x3cc7a7['fieldId']))==null?void 0x0:_0x4980e6[_0x4a0434(0x99)])??_0x3cc7a7['fieldId']}),(0x0,g[_0x4a0434(0x1d7)])('span',{'className':_0x4a0434(0x291),'children':String(_0x3cc7a7[_0x4a0434(0xec)]??'')})]},_0x3cc7a7[_0x4a0434(0x26c)]+'-'+_0x327b18);}),_0x422cb5&&_0x558361&&_0x49c6bf!=null&&_0x34dacc&&(0x0,v[_0x7c8ae7(0x1c5)])((0x0,g[_0x7c8ae7(0x1d7)])(t[_0x7c8ae7(0x16e)],{'field':_0x422cb5,'value':_0x558361[_0x7c8ae7(0xec)],'onClose':()=>_0x189755(null),'onSave':_0x2f6353=>{const _0x3a8962=_0x7c8ae7;_0x42b07b({'conjunction':(_0x3cbcc9==null?void 0x0:_0x3cbcc9[_0x3a8962(0x16a)])??a['BaseFilterConjunction']['AND'],'conditions':_0x111b10[_0x3a8962(0x201)]((_0x420e0d,_0x25fe16)=>_0x25fe16===_0x49c6bf?{..._0x420e0d,'operand':_0x2f6353}:_0x420e0d)}),_0x189755(null);}}),_0x34dacc)]});}function Ee({fields:_0x475d58,filter:_0x457a0c,onChange:_0x8eecff,onClear:_0x3e57b3}){const _0x4f3bbd=_0x16f285;let _0x3ab6aa=(0x0,m[_0x4f3bbd(0x15f)])(a[_0x4f3bbd(0x28c)]);return(0x0,g['jsxs'])(_0x4f3bbd(0x24a),{'children':[(0x0,g[_0x4f3bbd(0x1d7)])(t[_0x4f3bbd(0x428)],{'fields':_0x475d58,'value':_0x457a0c??{'conjunction':a['BaseFilterConjunction'][_0x4f3bbd(0x484)],'conditions':[]},'onChange':_0x8eecff}),(0x0,g['jsx'])(f[_0x4f3bbd(0x1bb)],{'onClick':_0x3e57b3,'children':_0x3ab6aa['t'](_0x4f3bbd(0x11d))})]});}function De({base:_0x1b0a45,chartRuntime:_0x2d146f,onChange:_0x5c420a,onClose:_0x10d9ba,onSelectBackgroundImage:_0x14acb4,onSelectImage:_0x21843e,unitId:_0x2f32f8,widget:_0x491413}){const _0x5627e4=_0x16f285;let _0x49348f=(0x0,m[_0x5627e4(0x15f)])(a[_0x5627e4(0x384)]),_0x68e3d6=(0x0,m[_0x5627e4(0x15f)])(a[_0x5627e4(0x28c)]),_0x1f44fe=_0x1b0a45['getSnapshot'](),_0xe10069='tableId'in _0x491413?_0x1f44fe[_0x5627e4(0x252)][_0x491413[_0x5627e4(0x135)]]:void 0x0,_0x37266c=_0x491413[_0x5627e4(0x430)]===e[_0x5627e4(0x127)][_0x5627e4(0x380)]?_0xe10069==null?void 0x0:_0xe10069[_0x5627e4(0x2dc)][_0x491413[_0x5627e4(0x329)]]:void 0x0,_0xde261b=_0x68e3d6['t'](Pe(_0x491413)),_0x1d8d43=(0x0,g[_0x5627e4(0x2f3)])(_0x5627e4(0x45f),{'data-dashboard-inspector':!0x0,'className':_0x5627e4(0x90),'children':[_0x491413[_0x5627e4(0x430)]===e['BaseDashboardWidgetType'][_0x5627e4(0x380)]&&(Ne(_0x37266c)&&_0x2d146f?(0x0,g[_0x5627e4(0x1d7)])(xe,{'runtime':_0x2d146f,'sourceChart':_0x37266c[_0x5627e4(0x84)][_0x5627e4(0x3ef)],'sourceName':((_0xe10069==null?void 0x0:_0xe10069[_0x5627e4(0x99)])??'')+'\x20/\x20'+_0x37266c['name'],'widget':_0x491413,'onChange':_0x5c420a,'onEditData':()=>{const _0x58a715=_0x5627e4;_0x49348f[_0x58a715(0x363)](t['ActivateBaseViewOperation']['id'],{'unitId':_0x2f32f8,'tableId':_0x491413[_0x58a715(0x135)],'viewId':_0x491413[_0x58a715(0x329)]})[_0x58a715(0x2a3)](()=>void 0x0);}}):(0x0,g[_0x5627e4(0x1d7)])(je,{'message':Ne(_0x37266c)?_0x68e3d6['t'](_0x5627e4(0x361)):_0x68e3d6['t'](_0x5627e4(0x2e5))})),_0x491413[_0x5627e4(0x430)]===e[_0x5627e4(0x127)][_0x5627e4(0x2c0)]&&(0x0,g[_0x5627e4(0x1d7)])(we,{'base':_0x1b0a45,'widget':_0x491413,'onChange':_0x5c420a,'onSelectBackgroundImage':_0x14acb4}),_0x491413[_0x5627e4(0x430)]===e[_0x5627e4(0x127)][_0x5627e4(0xfc)]&&(0x0,g[_0x5627e4(0x1d7)])(ke,{'base':_0x1b0a45,'onChange':_0x5c420a,'widget':_0x491413}),_0x491413[_0x5627e4(0x430)]===e[_0x5627e4(0x127)][_0x5627e4(0x2ec)]&&(0x0,g[_0x5627e4(0x1d7)])(Ae,{'onChange':_0x5c420a,'widget':_0x491413}),_0x491413[_0x5627e4(0x430)]===e[_0x5627e4(0x127)][_0x5627e4(0x17d)]&&(0x0,g['jsx'])(Oe,{'onChange':_0x5c420a,'onSelectImage':_0x21843e,'widget':_0x491413})]});return(0x0,g['jsx'])(t['BaseMobileDrawer'],{'title':_0xde261b,'onClose':_0x10d9ba,'children':_0x1d8d43});}function Oe({onChange:_0x1b4837,onSelectImage:_0x32c158,widget:_0x202904}){const _0x6825eb=_0x16f285;let _0xc8a992=(0x0,m[_0x6825eb(0x15f)])(a[_0x6825eb(0x28c)]);return(0x0,g[_0x6825eb(0x2f3)])('div',{'className':_0x6825eb(0x34b),'children':[(0x0,g[_0x6825eb(0x2f3)])(f['Button'],{'className':_0x6825eb(0x3d7),'onClick':()=>_0x32c158()[_0x6825eb(0x1ba)](_0x5ac04=>_0x5ac04&&_0x1b4837({..._0x202904,'source':_0x5ac04[_0x6825eb(0x2fe)],'sourceType':_0x5ac04[_0x6825eb(0x263)],'alt':_0x5ac04[_0x6825eb(0x99)]}))[_0x6825eb(0x2a3)](()=>void 0x0),'children':[(0x0,g[_0x6825eb(0x1d7)])(s[_0x6825eb(0xc2)],{}),_0xc8a992['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),(0x0,g[_0x6825eb(0x2f3)])(_0x6825eb(0x1d9),{'className':_0x6825eb(0x474),'children':[(0x0,g[_0x6825eb(0x1d7)])(_0x6825eb(0x42b),{'children':_0xc8a992['t'](_0x6825eb(0x48f))}),(0x0,g['jsx'])(f[_0x6825eb(0x3f1)],{'items':[{'value':_0x6825eb(0x234),'label':_0xc8a992['t'](_0x6825eb(0x3e0))},{'value':_0x6825eb(0x3c9),'label':_0xc8a992['t'](_0x6825eb(0x21d))},{'value':_0x6825eb(0x275),'label':_0xc8a992['t'](_0x6825eb(0x420))}],'value':_0x202904[_0x6825eb(0x1b0)]??_0x6825eb(0x234),'onChange':_0x2cb168=>_0x1b4837({..._0x202904,'displayMode':_0x2cb168})['catch'](()=>void 0x0)})]})]});}function ke({base:_0x3bb983,onChange:_0x3cf181,widget:_0x3aade5}){const _0x4b0593=_0x16f285;let _0x2ca815=_0x3bb983[_0x4b0593(0x1fc)]()['tables'][_0x3aade5[_0x4b0593(0x135)]],_0x58cd0d=_0x2ca815==null?void 0x0:_0x2ca815[_0x4b0593(0x27b)]['find'](_0x371803=>_0x2ca815[_0x4b0593(0x2dc)][_0x371803]),_0x35bca0=_0x58cd0d?_0x2ca815==null?void 0x0:_0x2ca815['views'][_0x58cd0d]:void 0x0,_0x39d189=_0x2ca815&&_0x35bca0?(0x0,t[_0x4b0593(0x49f)])(_0x2ca815,_0x35bca0):[];return(0x0,g[_0x4b0593(0x1d7)])(Ee,{'fields':_0x39d189,'filter':_0x3aade5['filter'],'onChange':_0x1322fe=>_0x3cf181({..._0x3aade5,'filter':_0x1322fe})[_0x4b0593(0x2a3)](()=>void 0x0),'onClear':()=>_0x3cf181({..._0x3aade5,'filter':null})[_0x4b0593(0x2a3)](()=>void 0x0)});}function Ae({onChange:_0x228881,widget:_0x2e6fbd}){const _0x3b3607=_0x16f285;let _0x2c9a04=(0x0,m[_0x3b3607(0x15f)])(a[_0x3b3607(0x28c)]),_0x48c59e=(0x0,m[_0x3b3607(0x15f)])(a[_0x3b3607(0x2b2)]),_0x1ba2db=(0x0,m[_0x3b3607(0x49b)])(()=>_0x48c59e['currentTheme$'],_0x48c59e[_0x3b3607(0x11f)](),!0x1,[_0x48c59e]),_0x1e37c0=oe(_0x2e6fbd),_0x21fa15=_0x1eca72=>_0x228881({..._0x2e6fbd,'appearance':{..._0x1e37c0,..._0x1eca72}})['catch'](()=>void 0x0);return(0x0,g['jsxs'])(_0x3b3607(0x24a),{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[(0x0,g[_0x3b3607(0x1d7)])(f[_0x3b3607(0x2af)],{'className':'univer-max-h-40\x20univer-text-base','defaultValue':U(_0x2e6fbd[_0x3b3607(0x240)]),'rows':0x8,'onBlur':_0x10c88c=>_0x228881({..._0x2e6fbd,'document':se(_0x2e6fbd[_0x3b3607(0x240)],_0x10c88c[_0x3b3607(0x242)]['value'])})[_0x3b3607(0x2a3)](()=>void 0x0)}),(0x0,g['jsx'])(n[_0x3b3607(0x347)],{'emptyLabel':_0x2c9a04['t'](_0x3b3607(0xd0)),'label':_0x2c9a04['t'](_0x3b3607(0xd0)),'pickerFallbackValue':_0x1ba2db[_0x3b3607(0x416)][0x0],'resetLabel':_0x2c9a04['t'](_0x3b3607(0x11d)),'value':_0x1e37c0[_0x3b3607(0x47b)]??null,'onChange':_0x216bd8=>_0x21fa15({'backgroundColor':_0x216bd8??void 0x0})}),(0x0,g[_0x3b3607(0x1d7)])(n[_0x3b3607(0x347)],{'emptyLabel':_0x2c9a04['t'](_0x3b3607(0x1fa)),'label':_0x2c9a04['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x1ba2db[_0x3b3607(0x416)][0x3e8],'resetLabel':_0x2c9a04['t'](_0x3b3607(0x11d)),'value':_0x1e37c0['textColor']??null,'onChange':_0x3b76ca=>_0x21fa15({'textColor':_0x3b76ca??void 0x0})}),(0x0,g['jsx'])(Me,{'label':_0x2c9a04['t'](_0x3b3607(0x18f)),'children':(0x0,g[_0x3b3607(0x1d7)])(f[_0x3b3607(0x3f1)],{'items':[{'value':_0x3b3607(0x3d4),'label':_0x2c9a04['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x3b3607(0x15d),'label':_0x2c9a04['t'](_0x3b3607(0x32e))},{'value':_0x3b3607(0x2e8),'label':_0x2c9a04['t'](_0x3b3607(0x214))}],'value':_0x1e37c0['alignment'],'onChange':_0x4b81da=>_0x21fa15({'alignment':_0x4b81da})})}),(0x0,g[_0x3b3607(0x2f3)])(Me,{'label':_0x2c9a04['t'](_0x3b3607(0x87)),'children':[(0x0,g[_0x3b3607(0x1d7)])(f[_0x3b3607(0x3f1)],{'items':[{'value':_0x3b3607(0x1c0),'label':_0x2c9a04['t'](_0x3b3607(0x491))},{'value':'custom','label':_0x2c9a04['t'](_0x3b3607(0x298))}],'value':_0x1e37c0[_0x3b3607(0x156)],'onChange':_0x4219ed=>_0x21fa15({'fontSizeMode':_0x4219ed})}),_0x1e37c0['fontSizeMode']===_0x3b3607(0x459)&&(0x0,g[_0x3b3607(0x1d7)])(f['InputNumber'],{'className':_0x3b3607(0x21b),'min':0xa,'max':0x78,'value':_0x1e37c0[_0x3b3607(0x174)],'onChange':_0x75a31=>_0x21fa15({'fontSize':_0x75a31??0x12,'fontSizeMode':_0x3b3607(0x459)})})]})]});}function je({message:_0x495f91}){const _0x58753a=_0x16f285;return(0x0,g[_0x58753a(0x1d7)])('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x495f91});}function Me({children:_0x46cc6d,label:_0x23dc35}){const _0x4d49e7=_0x16f285;return(0x0,g['jsxs'])(_0x4d49e7(0x24a),{'role':'group','aria-':!0x0,'className':_0x4d49e7(0x474),'children':[(0x0,g['jsx'])(_0x4d49e7(0x42b),{'children':_0x23dc35}),_0x46cc6d]});}function Ne(_0x117804){const _0x4f7014=_0x16f285;return(_0x117804==null?void 0x0:_0x117804['type'])===a[_0x4f7014(0x17b)]['Pivot']&&typeof _0x117804[_0x4f7014(0x84)]==_0x4f7014(0x396)&&_0x117804['config']!==null&&'pivot'in _0x117804[_0x4f7014(0x84)]&&_0x4f7014(0x3ef)in _0x117804[_0x4f7014(0x84)];}function Pe(_0x39c861){const _0x3bfcc2=_0x16f285;switch(_0x39c861[_0x3bfcc2(0x430)]){case e[_0x3bfcc2(0x127)][_0x3bfcc2(0x380)]:return _0x3bfcc2(0x1ab);case e['BaseDashboardWidgetType']['TableFilter']:return _0x3bfcc2(0x445);case e[_0x3bfcc2(0x127)]['Text']:return'bases-dashboard-ui.dashboard.text';case e['BaseDashboardWidgetType'][_0x3bfcc2(0x17d)]:return'bases-dashboard-ui.dashboard.image';case e[_0x3bfcc2(0x127)][_0x3bfcc2(0x2c0)]:return _0x3bfcc2(0x341);}}function Fe({onDelete:_0x3f33b2,onEdit:_0xd963ca,onMoveUp:_0x2d4be2,onMoveDown:_0x513c20}){const _0xa4d7b=_0x16f285;let [_0x1fce64,_0x50975f]=(0x0,h['useState'])(!0x1),_0x3a49d0=(0x0,m[_0xa4d7b(0x15f)])(a[_0xa4d7b(0x28c)]),_0x4afef0=_0x3a49d0['t'](_0xa4d7b(0x182)),_0x55c326=_0x3a49d0['t'](_0xa4d7b(0x11c)),_0x201cab=_0x3a49d0['t'](_0xa4d7b(0xa7)),_0x686871=[{'type':_0xa4d7b(0x43c),'children':(0x0,g['jsxs'])(_0xa4d7b(0x42b),{'className':_0xa4d7b(0x2be),'children':[(0x0,g[_0xa4d7b(0x1d7)])(s[_0xa4d7b(0x3dc)],{'className':_0xa4d7b(0x3fb),'aria-hidden':'true'}),(0x0,g[_0xa4d7b(0x1d7)])(_0xa4d7b(0x42b),{'children':_0x4afef0})]}),'onSelect':_0xd963ca},..._0x2d4be2?[{'type':'item','children':(0x0,g['jsxs'])(_0xa4d7b(0x42b),{'className':_0xa4d7b(0x2be),'children':[(0x0,g[_0xa4d7b(0x1d7)])(s['ArrowUpIcon'],{'className':'univer-size-4','aria-hidden':_0xa4d7b(0x1e7)}),(0x0,g[_0xa4d7b(0x1d7)])(_0xa4d7b(0x42b),{'children':_0x3a49d0['t'](_0xa4d7b(0x224))})]}),'onSelect':_0x2d4be2}]:[],..._0x513c20?[{'type':_0xa4d7b(0x43c),'children':(0x0,g[_0xa4d7b(0x2f3)])(_0xa4d7b(0x42b),{'className':_0xa4d7b(0x2be),'children':[(0x0,g[_0xa4d7b(0x1d7)])(s[_0xa4d7b(0x3b3)],{'className':_0xa4d7b(0x3fb),'aria-hidden':'true'}),(0x0,g[_0xa4d7b(0x1d7)])(_0xa4d7b(0x42b),{'children':_0x3a49d0['t'](_0xa4d7b(0xcf))})]}),'onSelect':_0x513c20}]:[],{'type':_0xa4d7b(0x40f)},{'type':_0xa4d7b(0x43c),'variant':'destructive','children':(0x0,g[_0xa4d7b(0x2f3)])(_0xa4d7b(0x42b),{'className':_0xa4d7b(0x2be),'children':[(0x0,g[_0xa4d7b(0x1d7)])(s[_0xa4d7b(0x1cd)],{'className':_0xa4d7b(0x3fb),'aria-hidden':'true'}),(0x0,g[_0xa4d7b(0x1d7)])('span',{'children':_0x55c326})]}),'onSelect':_0x3f33b2}];return(0x0,g[_0xa4d7b(0x1d7)])(f[_0xa4d7b(0x338)],{'open':_0x1fce64,'onOpenChange':_0x50975f,'align':_0xa4d7b(0x3d1),'sideOffset':0x4,'items':_0x686871[_0xa4d7b(0x201)](_0x9a9857=>({..._0x9a9857,'className':_0x9a9857[_0xa4d7b(0x430)]===_0xa4d7b(0x43c)?_0xa4d7b(0x2bd):void 0x0})),'children':(0x0,g[_0xa4d7b(0x1d7)])(f[_0xa4d7b(0x1bb)],{'type':'button','size':_0xa4d7b(0x362),'variant':_0xa4d7b(0x326),'onPointerDown':_0x2522d1=>_0x2522d1[_0xa4d7b(0x477)](),'onClick':()=>_0x50975f(_0x49cc0c=>!_0x49cc0c),'title':_0x201cab,'aria-label':_0x201cab,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':(0x0,g[_0xa4d7b(0x1d7)])(s[_0xa4d7b(0x106)],{'className':_0xa4d7b(0x3fb),'aria-hidden':_0xa4d7b(0x1e7)})})});}function Ie({dashboardId:_0x4fbc01,presentation:_0x2cdcd7=!0x1,unitId:_0x559397}){const _0x341276=_0x16f285;let _0x1eccc6=(0x0,m['useDependency'])(a[_0x341276(0x31a)]),_0xbb53c7=(0x0,m[_0x341276(0x15f)])(a[_0x341276(0x3c3)]);(0x0,m[_0x341276(0x49b)])(_0xbb53c7[_0x341276(0x118)],0x0);let _0x18cdf4=(0x0,m['useDependency'])(a[_0x341276(0x384)]),_0x557705=(0x0,m['useDependency'])(u[_0x341276(0x25b)]),_0x450247=(0x0,m['useDependency'])(a[_0x341276(0x124)]),_0x478bc5=(0x0,m['useDependency'])(a[_0x341276(0x365)]),_0x1dc21d=(0x0,m['useDependency'])(a[_0x341276(0x28c)]),_0x5975b1=(0x0,m[_0x341276(0x15f)])(e[_0x341276(0x88)]),_0x28b649=(0x0,m[_0x341276(0x15f)])(a[_0x341276(0x142)]),[_0xc02dab,_0x3cfc4c]=(0x0,h[_0x341276(0x450)])(!0x1),[_0x283575,_0x50a87d]=(0x0,h[_0x341276(0x450)])(),[_0x1fbf26,_0xcffee9]=(0x0,h[_0x341276(0x450)])(!0x1),[_0x1074d8,_0x55b437]=(0x0,h[_0x341276(0x450)])(()=>new Map()),_0x13a269=(0x0,h[_0x341276(0x485)])((_0x5db4c4,_0x184a58)=>{_0x55b437(_0x55711d=>{let _0x59c6b7=new Map(_0x55711d);return _0x184a58?_0x59c6b7['set'](_0x5db4c4,_0x184a58):_0x59c6b7['delete'](_0x5db4c4),_0x59c6b7;});},[]),_0x3d0645=(0x0,m[_0x341276(0x49b)])(()=>_0x5975b1[_0x341276(0x431)][_0x341276(0x312)]((0x0,c[_0x341276(0x201)])(()=>_0x5975b1[_0x341276(0x244)](_0x559397,_0x4fbc01))),_0x5975b1[_0x341276(0x244)](_0x559397,_0x4fbc01),!0x1,[_0x4fbc01,_0x5975b1,_0x559397]),_0x9089cb=_0x478bc5[_0x341276(0x2d6)](_0x559397,a[_0x341276(0x1c6)]['UNIVER_BASE']),_0x12c509=(0x0,m[_0x341276(0x49b)])(()=>_0x28b649[_0x341276(0x13a)],{'undos':0x0,'redos':0x0},!0x1,[_0x28b649]),_0x292c24=w(_0x559397,_0x4fbc01);if((0x0,h[_0x341276(0x2e0)])(()=>{const _0x1f71e5=_0x341276;_0x478bc5[_0x1f71e5(0x3cc)](_0x559397),_0x478bc5['focusUnit'](_0x559397);},[_0x478bc5,_0x559397]),!_0x3d0645||!_0x9089cb)return null;let _0x28819f={'unitId':_0x559397,'objectId':(0x0,l[_0x341276(0x446)])(_0x4fbc01),'objectType':p[_0x341276(0x245)][_0x341276(0x10d)]},_0xf70492=(_0x2e6633,_0x174a19)=>{const _0x2dc642=_0x341276;let _0x39638a=[..._0x3d0645[_0x2dc642(0x2f8)]],_0x2785fe=_0x39638a['indexOf'](_0x2e6633),_0x482681=_0x2785fe+_0x174a19;if(!(_0x2785fe<0x0||_0x482681<0x0||_0x482681>=_0x39638a['length']))return[_0x39638a[_0x2785fe],_0x39638a[_0x482681]]=[_0x39638a[_0x482681],_0x39638a[_0x2785fe]],_0x18cdf4[_0x2dc642(0x363)](e[_0x2dc642(0x1b3)]['id'],{'unitId':_0x559397,'dashboard':{..._0x3d0645,'widgetOrder':_0x39638a}});},_0x37a887=_0x130af5=>_0x18cdf4[_0x341276(0x363)](e[_0x341276(0x1e9)]['id'],{'unitId':_0x559397,'dashboardId':_0x4fbc01,'widget':_0x130af5})[_0x341276(0x2a3)](()=>void 0x0),_0x13350f=(_0x1236f7,_0x2cc548,_0x1dadcd)=>{const _0x5caf05=_0x341276;let _0x2a818f=Math[_0x5caf05(0xe9)](0x0,..._0x3d0645['widgetOrder'][_0x5caf05(0x351)](_0x47309c=>{const _0x2b3702=_0x5caf05;var _0x54b83f;let _0x8ed7fb=(_0x54b83f=_0x3d0645[_0x2b3702(0x1c8)][_0x47309c])==null?void 0x0:_0x54b83f['layout'];return _0x8ed7fb?[_0x8ed7fb[_0x2b3702(0x348)]+_0x8ed7fb[_0x2b3702(0x441)]]:[];})),_0x2695b0=_0x5caf05(0x217)+(0x0,a[_0x5caf05(0x40c)])(0x8),_0x1c3b29={'column':0x0,'row':_0x2a818f,'columnSpan':_0x2cc548,'rowSpan':_0x1dadcd};switch(_0x1236f7[_0x5caf05(0x430)]){case e[_0x5caf05(0x127)]['PivotChart']:return _0x37a887({..._0x1236f7,'id':_0x2695b0,'layout':_0x1c3b29});case e[_0x5caf05(0x127)]['TableFilter']:return _0x37a887({..._0x1236f7,'id':_0x2695b0,'layout':_0x1c3b29});case e[_0x5caf05(0x127)][_0x5caf05(0x2ec)]:return _0x37a887({..._0x1236f7,'id':_0x2695b0,'layout':_0x1c3b29});case e['BaseDashboardWidgetType']['Image']:return _0x37a887({..._0x1236f7,'id':_0x2695b0,'layout':_0x1c3b29});case e['BaseDashboardWidgetType'][_0x5caf05(0x2c0)]:return _0x37a887({..._0x1236f7,'id':_0x2695b0,'layout':_0x1c3b29});}},_0x180de4=_0x9089cb[_0x341276(0x1fc)](),_0x5f418a=_0x180de4[_0x341276(0x406)][_0x341276(0x351)](_0x12f21b=>{const _0x4034de=_0x341276;let _0x4a1fbd=_0x180de4[_0x4034de(0x252)][_0x12f21b];if(!_0x4a1fbd)return[];let _0x445c80=_0x4a1fbd[_0x4034de(0x27b)]['flatMap'](_0x45f070=>{const _0xd17f9a=_0x4034de;let _0x3c2805=_0x4a1fbd[_0xd17f9a(0x2dc)][_0x45f070];return We(_0x3c2805)?[{'type':_0xd17f9a(0x43c),'children':_0x3c2805[_0xd17f9a(0x99)],'onSelect':()=>_0x13350f({'type':e[_0xd17f9a(0x127)][_0xd17f9a(0x380)],'tableId':_0x12f21b,'pivotViewId':_0x45f070,'chart':{..._0x3c2805[_0xd17f9a(0x84)][_0xd17f9a(0x3ef)]}},0x6,0xa)}]:[];});return[{'type':_0x4034de(0x3b6),'children':_0x4a1fbd[_0x4034de(0x99)],'options':[..._0x445c80,..._0x445c80['length']?[{'type':_0x4034de(0x40f)}]:[],{'type':'item','children':_0x1dc21d['t'](_0x4034de(0x445)),'onSelect':()=>_0x13350f({'type':e[_0x4034de(0x127)][_0x4034de(0xfc)],'tableId':_0x12f21b,'filter':null},0x6,0x8)}]}];}),_0x4cad42=[..._0x5f418a,..._0x5f418a[_0x341276(0x444)]?[{'type':_0x341276(0x40f)}]:[],{'type':_0x341276(0x43c),'children':_0x1dc21d['t'](_0x341276(0x42e)),'onSelect':()=>_0x13350f({'type':e[_0x341276(0x127)][_0x341276(0x2ec)],'document':Be()},0x4,0x6)},{'type':_0x341276(0x43c),'children':_0x1dc21d['t'](_0x341276(0xd2)),'onSelect':()=>Ve(_0x557705)[_0x341276(0x1ba)](_0x81f333=>_0x81f333&&_0x13350f({'type':e['BaseDashboardWidgetType'][_0x341276(0x17d)],'source':_0x81f333[_0x341276(0x2fe)],'sourceType':_0x81f333['sourceType'],'alt':_0x81f333[_0x341276(0x99)],'displayMode':_0x341276(0x234)},0x4,0x6))},{'type':'item','children':_0x1dc21d['t'](_0x341276(0x341)),'onSelect':()=>{const _0x40bb7d=_0x341276;let _0x59fe1e=_0x180de4[_0x40bb7d(0x406)][_0x40bb7d(0x132)](_0x3fd49c=>_0x180de4[_0x40bb7d(0x252)][_0x3fd49c]);_0x59fe1e&&_0x13350f({'type':e['BaseDashboardWidgetType'][_0x40bb7d(0x2c0)],'tableId':_0x59fe1e,'shapeType':d['ShapeTypeEnum'][_0x40bb7d(0x22a)],'shapeData':(0x0,i[_0x40bb7d(0x435)])(),'description':_0x1dc21d['t'](_0x40bb7d(0x341))},0x4,0x6);}}],_0x37b9ea=_0x283575?_0x3d0645[_0x341276(0x1c8)][_0x283575]:void 0x0,_0x1b5776=()=>_0xcffee9(_0x7d5ef3=>!_0x7d5ef3),_0x3ec16e=_0x2cdcd7||_0x1fbf26,_0x139cd9=_0x292c24&&!_0x3ec16e;return(0x0,g[_0x341276(0x1d7)])(ue,{'children':(0x0,g[_0x341276(0x2f3)])('div',{'className':_0x341276(0x40d)+(_0x1fbf26?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x341276(0x280))+_0x341276(0x2c7),'children':[_0x1fbf26&&(0x0,g[_0x341276(0x1d7)])(f[_0x341276(0x1bb)],{'onClick':()=>_0xcffee9(!0x1),'children':_0x1dc21d['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x3ec16e&&(0x0,g['jsxs'])(_0x341276(0xab),{'className':_0x341276(0x200),'children':[(0x0,g[_0x341276(0x1d7)])(s[_0x341276(0x3af)],{'className':_0x341276(0x3de)}),(0x0,g[_0x341276(0x1d7)])('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x3d0645[_0x341276(0x99)]}),_0xbb53c7[_0x341276(0x2d3)](_0x28819f)&&(0x0,g['jsx'])(f[_0x341276(0x1bb)],{'variant':_0x341276(0x326),'disabled':!_0xbb53c7[_0x341276(0x461)](_0x28819f),'aria-label':_0x1dc21d['t'](_0x341276(0xda)),'onClick':()=>{const _0x3dd76f=_0x341276;(0x0,m[_0x3dd76f(0x123)])(_0x1eccc6,{'target':_0x28819f,'name':_0x3d0645[_0x3dd76f(0x99)],'commandId':l[_0x3dd76f(0x157)]['id'],'exists':()=>!!_0x5975b1[_0x3dd76f(0x244)](_0x559397,_0x4fbc01)});},'children':(0x0,g[_0x341276(0x1d7)])(s[_0x341276(0x144)],{})}),(0x0,g[_0x341276(0x1d7)])(t[_0x341276(0x188)],{'unitId':_0x559397}),(0x0,g[_0x341276(0x1d7)])(f[_0x341276(0x1bb)],{'type':_0x341276(0x28a),'size':'small','variant':_0x341276(0x326),'aria-label':_0x1dc21d['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x292c24||_0x12c509[_0x341276(0x16f)]===0x0,'onClick':()=>_0x18cdf4[_0x341276(0x363)](a[_0x341276(0x2a7)]['id'])['catch'](()=>void 0x0),'children':(0x0,g['jsx'])(s[_0x341276(0x229)],{})}),(0x0,g[_0x341276(0x1d7)])(f[_0x341276(0x1bb)],{'type':'button','size':_0x341276(0x362),'variant':_0x341276(0x326),'aria-label':_0x1dc21d['t'](_0x341276(0x1e1)),'disabled':!_0x292c24||_0x12c509[_0x341276(0x48d)]===0x0,'onClick':()=>_0x18cdf4[_0x341276(0x363)](a['RedoCommand']['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x341276(0x1d7)])(s[_0x341276(0x3cf)],{})}),(0x0,g['jsx'])(f['Button'],{'type':_0x341276(0x28a),'size':_0x341276(0x362),'variant':_0x341276(0x326),'aria-label':_0x1dc21d['t'](_0x341276(0x25f)),'onClick':_0x1b5776,'children':(0x0,g[_0x341276(0x1d7)])(s['ExpandIcon'],{})}),(0x0,g[_0x341276(0x1d7)])(de,{'items':_0x4cad42,'children':(0x0,g['jsxs'])(f[_0x341276(0x1bb)],{'variant':_0x341276(0x149),'disabled':!_0x292c24,'children':[(0x0,g[_0x341276(0x1d7)])(s[_0x341276(0xc2)],{}),_0x1dc21d['t'](_0x341276(0x134))]})})]}),(0x0,g[_0x341276(0x2f3)])('div',{'className':_0x341276(0xaa),'children':[(0x0,g[_0x341276(0x1d7)])('div',{'className':_0x341276(0x2da),'children':(0x0,g[_0x341276(0x1d7)])(le,{'dashboard':_0x3d0645,'editable':_0x139cd9,'widgetLabel':_0xcf29b4=>_0x1dc21d['t'](Ue(_0xcf29b4[_0x341276(0x430)])),'selectedWidgetId':_0x139cd9?_0x283575:void 0x0,'onSelectWidget':_0x139cd9?_0x20ef54=>{_0x50a87d(_0x20ef54),_0x20ef54||_0x3cfc4c(!0x1);}:void 0x0,'renderWidget':_0x9c0552=>(0x0,g['jsx'])(Le,{'base':_0x9089cb,'dashboard':_0x3d0645,'unitId':_0x559397,'widget':_0x9c0552,'onChange':_0x37a887,'onChartRuntimeChange':_0x13a269}),'renderWidgetActions':_0xc9933e=>(0x0,g[_0x341276(0x1d7)])(Fe,{'onMoveUp':_0x3d0645[_0x341276(0x2f8)][_0x341276(0x1e2)](_0xc9933e['id'])>0x0?()=>_0xf70492(_0xc9933e['id'],-0x1):void 0x0,'onMoveDown':_0x3d0645['widgetOrder'][_0x341276(0x1e2)](_0xc9933e['id'])<_0x3d0645[_0x341276(0x2f8)][_0x341276(0x444)]-0x1?()=>_0xf70492(_0xc9933e['id'],0x1):void 0x0,'onEdit':()=>{_0x50a87d(_0xc9933e['id']),_0x3cfc4c(!0x0);},'onDelete':()=>{const _0x256403=_0x341276;_0x283575===_0xc9933e['id']&&(_0x50a87d(void 0x0),_0x3cfc4c(!0x1)),_0x18cdf4[_0x256403(0x363)](e[_0x256403(0x371)]['id'],{'unitId':_0x559397,'dashboardId':_0x4fbc01,'widgetId':_0xc9933e['id']})[_0x256403(0x2a3)](()=>void 0x0);}})})}),_0x139cd9&&_0xc02dab&&_0x37b9ea&&(0x0,g[_0x341276(0x1d7)])(De,{'base':_0x9089cb,'chartRuntime':_0x1074d8['get'](_0x37b9ea['id']),'unitId':_0x559397,'widget':_0x37b9ea,'onChange':_0x37a887,'onClose':()=>_0x3cfc4c(!0x1),'onSelectBackgroundImage':()=>He(_0x450247),'onSelectImage':()=>Ve(_0x557705)})]})]})});}function Le({base:_0x47af2c,dashboard:_0x305458,onChange:_0x2e23c1,onChartRuntimeChange:_0x327ce1,unitId:_0xd90068,widget:_0x1e9f87}){const _0x408207=_0x16f285;let _0x50f2ee=(0x0,h[_0x408207(0x4a4)])(()=>_0x305458[_0x408207(0x2f8)]['flatMap'](_0x5cb1ea=>{const _0x2cf237=_0x408207;let _0x9b70fd=_0x305458[_0x2cf237(0x1c8)][_0x5cb1ea];return(_0x9b70fd==null?void 0x0:_0x9b70fd[_0x2cf237(0x430)])===e[_0x2cf237(0x127)][_0x2cf237(0xfc)]&&_0x9b70fd['tableId']===(_0x2cf237(0x135)in _0x1e9f87?_0x1e9f87['tableId']:'')&&_0x9b70fd['filter']?[_0x9b70fd[_0x2cf237(0x39e)]]:[];}),[_0x305458,_0x1e9f87]);switch(_0x1e9f87[_0x408207(0x430)]){case e[_0x408207(0x127)]['PivotChart']:return(0x0,g[_0x408207(0x1d7)])(ie,{'filters':_0x50f2ee,'unitId':_0xd90068,'widget':_0x1e9f87,'onRuntimeChange':_0x327ce1});case e['BaseDashboardWidgetType'][_0x408207(0xfc)]:return(0x0,g[_0x408207(0x1d7)])(Te,{'fields':Re(_0x47af2c,_0x1e9f87[_0x408207(0x135)]),'filter':_0x1e9f87[_0x408207(0x39e)],'onChange':_0x50a680=>_0x2e23c1({..._0x1e9f87,'filter':_0x50a680})[_0x408207(0x2a3)](()=>void 0x0)});case e[_0x408207(0x127)][_0x408207(0x2ec)]:return(0x0,g['jsx'])(ce,{'widget':_0x1e9f87});case e[_0x408207(0x127)][_0x408207(0x17d)]:return(0x0,g[_0x408207(0x1d7)])(ze,{'widget':_0x1e9f87});case e[_0x408207(0x127)][_0x408207(0x2c0)]:return(0x0,g[_0x408207(0x1d7)])(M,{'dashboardId':_0x305458['id'],'unitId':_0xd90068,'widget':_0x1e9f87});}}function Re(_0xdb0f62,_0x49eecb){const _0x2a1372=_0x16f285;let _0xa94d21=_0xdb0f62[_0x2a1372(0x1fc)]()[_0x2a1372(0x252)][_0x49eecb],_0x328893=_0xa94d21==null?void 0x0:_0xa94d21['viewOrder'][_0x2a1372(0x132)](_0x3d4e07=>_0xa94d21['views'][_0x3d4e07]),_0x3bc177=_0x328893?_0xa94d21==null?void 0x0:_0xa94d21[_0x2a1372(0x2dc)][_0x328893]:void 0x0;return _0xa94d21&&_0x3bc177?(0x0,t['toMenuFields'])(_0xa94d21,_0x3bc177):[];}function ze({widget:_0x5d2bbf}){const _0x4d4334=_0x16f285;let _0x539d27=(0x0,m[_0x4d4334(0x15f)])(u[_0x4d4334(0x25b)]),[_0x231f40,_0x5f10bc]=(0x0,h[_0x4d4334(0x450)])(_0x5d2bbf[_0x4d4334(0x263)]===a[_0x4d4334(0x1f5)][_0x4d4334(0x382)]?'':_0x5d2bbf[_0x4d4334(0x2fe)]);return(0x0,h['useEffect'])(()=>{const _0x2be146=_0x4d4334;let _0x1ef9e8=!0x0;return _0x539d27['getAttachmentUrl'](_0x5d2bbf['source'],_0x5d2bbf['sourceType'])[_0x2be146(0x1ba)](_0x437182=>{_0x1ef9e8&&_0x5f10bc(_0x437182);})[_0x2be146(0x2a3)](()=>void 0x0),()=>{_0x1ef9e8=!0x1;};},[_0x539d27,_0x5d2bbf[_0x4d4334(0x2fe)],_0x5d2bbf[_0x4d4334(0x263)]]),_0x231f40?(0x0,g[_0x4d4334(0x1d7)])(_0x4d4334(0x24a),{'role':_0x5d2bbf[_0x4d4334(0x166)]?_0x4d4334(0x114):void 0x0,'aria-label':_0x5d2bbf['alt']||void 0x0,'data-dashboard-image':_0x5d2bbf['id'],'className':_0x4d4334(0x161),'style':E(_0x231f40,_0x5d2bbf[_0x4d4334(0x1b0)])}):null;}function Be(){const _0x3bc95d=_0x16f285;let _0x39be11=(0x0,a[_0x3bc95d(0x1d8)])(new Set());return{'id':_0x3bc95d(0x31e)+(0x0,a['generateRandomId'])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x39be11}]},'documentStyle':{}};}function Ve(_0x1cd910){return new Promise(_0x4f27ec=>{const _0x465305=_0x2d20;let _0x4be4b1=document[_0x465305(0x2b3)](_0x465305(0x449));_0x4be4b1[_0x465305(0x430)]=_0x465305(0x2b8),_0x4be4b1['accept']=_0x465305(0x1ad),_0x4be4b1[_0x465305(0x313)]('change',()=>{const _0x16d710=_0x465305;var _0x125585;let _0x3f608c=(_0x125585=_0x4be4b1[_0x16d710(0xcb)])==null?void 0x0:_0x125585[0x0];_0x3f608c?_0x1cd910['saveAttachment'](_0x3f608c)[_0x16d710(0x1ba)](_0x248c73=>{const _0x5d1c62=_0x16d710;!_0x248c73[_0x5d1c62(0x2fe)]||_0x248c73['sourceType']===void 0x0?_0x4f27ec(null):_0x4f27ec({'name':_0x248c73[_0x5d1c62(0x99)],'source':_0x248c73['source'],'sourceType':_0x248c73['sourceType']});})[_0x16d710(0x2a3)](()=>_0x4f27ec(null)):_0x4f27ec(null);},{'once':!0x0}),_0x4be4b1[_0x465305(0x483)]();});}function He(_0x5c2813){return new Promise(_0x349d44=>{const _0x234e96=_0x2d20;let _0x37d373=document[_0x234e96(0x2b3)](_0x234e96(0x449));_0x37d373[_0x234e96(0x430)]=_0x234e96(0x2b8),_0x37d373[_0x234e96(0x4a3)]=_0x234e96(0x1ad),_0x37d373[_0x234e96(0x313)](_0x234e96(0x3ea),()=>{const _0x1f6b2f=_0x234e96;var _0x392b91;let _0x17ef76=(_0x392b91=_0x37d373[_0x1f6b2f(0xcb)])==null?void 0x0:_0x392b91[0x0];_0x17ef76?_0x5c2813[_0x1f6b2f(0x282)](_0x17ef76)[_0x1f6b2f(0x1ba)](_0x5e5ebd=>{const _0x23405d=_0x1f6b2f;if(!(_0x5e5ebd!=null&&_0x5e5ebd[_0x23405d(0x2fe)]))_0x349d44(null);else{if(_0x5e5ebd[_0x23405d(0xe6)]){let _0x27268e=new Image();_0x27268e[_0x23405d(0x370)]=_0x5e5ebd[_0x23405d(0xe6)],_0x5c2813[_0x23405d(0xba)](_0x5e5ebd[_0x23405d(0x2fe)],_0x5e5ebd[_0x23405d(0x346)],_0x27268e);}_0x349d44({'source':_0x5e5ebd[_0x23405d(0x2fe)],'sourceType':_0x5e5ebd[_0x23405d(0x346)]});}})[_0x1f6b2f(0x2a3)](()=>_0x349d44(null)):_0x349d44(null);},{'once':!0x0}),_0x37d373[_0x234e96(0x483)]();});}function Ue(_0x1ee530){const _0x38e84b=_0x16f285;switch(_0x1ee530){case e[_0x38e84b(0x127)][_0x38e84b(0x380)]:return _0x38e84b(0x1ab);case e[_0x38e84b(0x127)][_0x38e84b(0xfc)]:return _0x38e84b(0x445);case e[_0x38e84b(0x127)]['Text']:return _0x38e84b(0x42e);case e[_0x38e84b(0x127)]['Image']:return _0x38e84b(0xd2);case e[_0x38e84b(0x127)]['FormulaShape']:return _0x38e84b(0x341);}}function We(_0x1a1e86){const _0x3f4340=_0x16f285;return(_0x1a1e86==null?void 0x0:_0x1a1e86[_0x3f4340(0x430)])===a[_0x3f4340(0x17b)][_0x3f4340(0x349)]&&typeof _0x1a1e86[_0x3f4340(0x84)]==_0x3f4340(0x396)&&_0x1a1e86[_0x3f4340(0x84)]!==null&&'pivot'in _0x1a1e86[_0x3f4340(0x84)]&&_0x3f4340(0x3ef)in _0x1a1e86[_0x3f4340(0x84)];}function Ge({pivot:_0x521ec5,view:_0xa9d19c}){const _0x8c1b42=_0x16f285;let _0x3ef1bd=(0x0,m[_0x8c1b42(0x15f)])(a['LocaleService']),_0x22e5de=(0x0,h[_0x8c1b42(0x4a4)])(()=>Ke(_0xa9d19c,_0x521ec5,_0x3ef1bd['t'](_0x8c1b42(0x172))),[_0x3ef1bd,_0x521ec5,_0xa9d19c]);return(0x0,g[_0x8c1b42(0x2f3)])('div',{'className':_0x8c1b42(0x262),'children':[_0x22e5de[_0x8c1b42(0x436)][_0x8c1b42(0x444)]>0x0&&(0x0,g['jsx'])('table',{'className':_0x8c1b42(0x1fd),'children':(0x0,g[_0x8c1b42(0x1d7)])(_0x8c1b42(0x296),{'children':qe(_0x22e5de['pageRows'])})}),(0x0,g[_0x8c1b42(0x2f3)])('table',{'className':_0x8c1b42(0x152),'children':[_0x22e5de[_0x8c1b42(0xcd)]>0x0&&(0x0,g[_0x8c1b42(0x1d7)])(_0x8c1b42(0x170),{'className':_0x8c1b42(0x246),'children':qe(_0x22e5de[_0x8c1b42(0x233)]['slice'](0x0,_0x22e5de[_0x8c1b42(0xcd)]))}),(0x0,g[_0x8c1b42(0x1d7)])(_0x8c1b42(0x296),{'children':qe(_0x22e5de[_0x8c1b42(0x233)][_0x8c1b42(0x137)](_0x22e5de[_0x8c1b42(0xcd)]))})]})]});}function Ke(_0xb607c6,_0x6e4ffb,_0xf45b2c){const _0x426ae6=_0x16f285;let _0x553ca2=_0xb607c6[_0x426ae6(0x43e)][_0x426ae6(0x400)],_0x5be2b5=_0xb607c6['rowView'][_0x426ae6(0x27a)],_0x7135b1=_0xb607c6[_0x426ae6(0xf1)]['rowCount'],_0x569e1b=_0xb607c6[_0x426ae6(0xf1)][_0x426ae6(0x27a)],_0x4cd76d=Array[_0x426ae6(0x1d1)]({'length':_0x553ca2+_0x7135b1},(_0x1b461c,_0x44e284)=>Array[_0x426ae6(0x1d1)]({'length':_0x5be2b5+_0x569e1b},(_0xe8fffb,_0x38cbf6)=>{const _0x3f460b=_0x426ae6;var _0x13dda3,_0x283205;if(_0x44e284<_0x553ca2&&_0x38cbf6<_0x5be2b5)return Je(_0xb607c6[_0x3f460b(0x13d)],_0x44e284,_0x38cbf6,void 0x0,_0xf45b2c,!0x0,!0x1,'corner:'+_0x44e284+':'+_0x38cbf6);if(_0x44e284<_0x553ca2){var _0x3b2bf5;let _0x3de76a=_0x38cbf6-_0x5be2b5,_0x331f3d=(_0x3b2bf5=_0xb607c6[_0x3f460b(0x43e)][_0x3f460b(0x30d)][_0x44e284])==null?void 0x0:_0x3b2bf5[_0x3f460b(0x15e)];return Je(_0xb607c6[_0x3f460b(0x43e)],_0x44e284,_0x3de76a,_0x331f3d?_0xb607c6['formatMap'][_0x331f3d]:void 0x0,_0xf45b2c,!0x0,Ze(_0xb607c6[_0x3f460b(0x43e)][_0x3f460b(0x29d)][_0x3de76a]),_0x3f460b(0x324)+_0x44e284+':'+_0x3de76a);}if(_0x38cbf6<_0x5be2b5){var _0x2af3e1;let _0x4915aa=_0x44e284-_0x553ca2,_0x230905=(_0x2af3e1=_0xb607c6[_0x3f460b(0xb8)][_0x3f460b(0x30d)][_0x38cbf6])==null?void 0x0:_0x2af3e1[_0x3f460b(0x15e)];return Je(_0xb607c6[_0x3f460b(0xb8)],_0x4915aa,_0x38cbf6,_0x230905?_0xb607c6[_0x3f460b(0x4a2)][_0x230905]:void 0x0,_0xf45b2c,!0x0,Ze(_0xb607c6[_0x3f460b(0xb8)][_0x3f460b(0x29d)][_0x4915aa]),'row:'+_0x4915aa+':'+_0x38cbf6);}let _0x11690f=_0x44e284-_0x553ca2,_0x3b59d8=_0x38cbf6-_0x5be2b5,_0x5ebdb3=Math[_0x3f460b(0xe9)](((_0x13dda3=_0xb607c6[_0x3f460b(0xb8)][_0x3f460b(0x29d)][_0x11690f])==null?void 0x0:_0x13dda3['valueIndex'])??-0x1,((_0x283205=_0xb607c6[_0x3f460b(0x43e)][_0x3f460b(0x29d)][_0x3b59d8])==null?void 0x0:_0x283205[_0x3f460b(0x1a3)])??-0x1),_0x4fc743=_0x6e4ffb['valueFields'][_0x5ebdb3<0x0?0x0:_0x5ebdb3];return Je(_0xb607c6[_0x3f460b(0xf1)],_0x11690f,_0x3b59d8,_0x4fc743?_0xb607c6[_0x3f460b(0x4a2)][_0x4fc743]:void 0x0,_0xf45b2c,!0x1,Ze(_0xb607c6[_0x3f460b(0xb8)][_0x3f460b(0x29d)][_0x11690f])||Ze(_0xb607c6[_0x3f460b(0x43e)][_0x3f460b(0x29d)][_0x3b59d8]),'data:'+_0x11690f+':'+_0x3b59d8);}));return{'headerColumnCount':_0x5be2b5,'headerRowCount':_0x553ca2,'pageRows':_0xb607c6[_0x426ae6(0xf2)][_0x426ae6(0x1e8)]<0x0||_0xb607c6[_0x426ae6(0xf2)][_0x426ae6(0x235)]<0x0?[]:Array[_0x426ae6(0x1d1)]({'length':_0xb607c6[_0x426ae6(0xf2)][_0x426ae6(0x1e8)]+0x1},(_0x4f883f,_0x354c2b)=>Array[_0x426ae6(0x1d1)]({'length':_0xb607c6[_0x426ae6(0xf2)][_0x426ae6(0x235)]+0x1},(_0x9d0426,_0x2c9d1f)=>Je(_0xb607c6[_0x426ae6(0xf2)],_0x354c2b,_0x2c9d1f,void 0x0,_0xf45b2c,!0x0,!0x1,_0x426ae6(0x394)+_0x354c2b+':'+_0x2c9d1f))),'rows':_0x4cd76d};}function qe(_0x4621b2){const _0x2adfba=_0x16f285;return _0x4621b2[_0x2adfba(0x201)](_0x4faea0=>{const _0x4d159e=_0x2adfba;var _0x493afd;return(0x0,g[_0x4d159e(0x1d7)])('tr',{'children':_0x4faea0[_0x4d159e(0x201)](_0x588087=>{const _0x33efb3=_0x4d159e;let _0x212959=_0x588087[_0x33efb3(0x3dd)]?'th':'td';return(0x0,g['jsx'])(_0x212959,{'className':_0x33efb3(0x226)+(_0x588087[_0x33efb3(0x3cb)]?_0x33efb3(0x2ca):'')+_0x33efb3(0x2c5)+(_0x588087[_0x33efb3(0x3dd)]?'':_0x33efb3(0x111))+_0x33efb3(0x241),'children':_0x588087['value']},_0x588087[_0x33efb3(0x254)]);})},(_0x493afd=_0x4faea0[0x0])==null?void 0x0:_0x493afd[_0x4d159e(0x254)]);});}function Je(_0x4b330b,_0xb748e7,_0x4c6ab2,_0x4e16cd,_0x103dda,_0x36e90b,_0x58c37d,_0x1d9c1d){const _0x61a728=_0x16f285;var _0x1d5642;let _0x1f4bc3=(_0x1d5642=_0x4b330b[_0x61a728(0xaf)][_0xb748e7])==null?void 0x0:_0x1d5642[_0x4c6ab2],_0x10e3c3=_0x1f4bc3==null?void 0x0:_0x1f4bc3['s'],_0x521146=_0x58c37d||_0x10e3c3===y[_0x61a728(0x44a)][_0x61a728(0xd8)]||_0x10e3c3===y[_0x61a728(0x44a)][_0x61a728(0x27c)];return{'isHeader':_0x36e90b,'isTotal':_0x521146||_0x10e3c3===y['PivotCellStyleTypeEnum'][_0x61a728(0x37b)],'key':_0x1d9c1d,'style':_0x10e3c3,'value':_0x521146&&Xe(_0x1f4bc3==null?void 0x0:_0x1f4bc3['v'])?_0x103dda:Ye(_0x1f4bc3,_0x4e16cd)};}function Ye(_0x169ae0,_0x349494){const _0x290137=_0x16f285;let _0x18d81c=_0x169ae0==null?void 0x0:_0x169ae0['v'];return(0x0,y[_0x290137(0x419)])(_0x18d81c)?String(_0x18d81c[_0x290137(0x44c)]??_0x18d81c['prefix']??''):(0x0,y[_0x290137(0x22d)])(_0x18d81c)?'#'+_0x18d81c[_0x290137(0x393)]:_0x349494&&typeof _0x18d81c==_0x290137(0x390)?a['numfmt'][_0x290137(0x3e5)](_0x349494,_0x18d81c):String(_0x18d81c??'');}function Xe(_0x4fb290){return _0x4fb290===void 0x0||_0x4fb290==='';}function Ze(_0x5126d9){const _0x5cbd2f=_0x16f285;return!!(_0x5126d9!=null&&_0x5126d9[_0x5cbd2f(0x3d6)]||_0x5126d9!=null&&_0x5126d9[_0x5cbd2f(0xd6)]||_0x5126d9!=null&&_0x5126d9[_0x5cbd2f(0x480)]||(_0x5126d9==null?void 0x0:_0x5126d9[_0x5cbd2f(0x17c)])===_0x5cbd2f(0x12a));}const Qe=[{'area':y['PivotTableFiledAreaEnum'][_0x16f285(0x198)],'key':_0x16f285(0x184),'label':_0x16f285(0xca)},{'area':y['PivotTableFiledAreaEnum'][_0x16f285(0x119)],'key':_0x16f285(0x36a),'label':_0x16f285(0x2cf)},{'area':y['PivotTableFiledAreaEnum']['Row'],'key':_0x16f285(0x3e2),'label':_0x16f285(0x2a8)},{'area':y[_0x16f285(0x34d)][_0x16f285(0x41a)],'key':_0x16f285(0x3e3),'label':_0x16f285(0x2fa)}],$e=[{'value':y[_0x16f285(0x48b)][_0x16f285(0x32c)],'localeKey':_0x16f285(0x2d4)},{'value':y['PivotSubtotalTypeEnum'][_0x16f285(0x267)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':y[_0x16f285(0x48b)][_0x16f285(0x117)],'localeKey':_0x16f285(0x49a)},{'value':y[_0x16f285(0x48b)]['average'],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':y[_0x16f285(0x48b)][_0x16f285(0xe9)],'localeKey':_0x16f285(0x18e)},{'value':y[_0x16f285(0x48b)]['min'],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':y[_0x16f285(0x48b)][_0x16f285(0x3fe)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0x16f285(0x48b)][_0x16f285(0x3ee)],'localeKey':_0x16f285(0x1a9)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x473)],'localeKey':_0x16f285(0x197)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x301)],'localeKey':_0x16f285(0x47a)},{'value':y[_0x16f285(0x48b)]['varp'],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function et(_0x1287d1){const _0x4521fb=_0x16f285;let {config:_0x1d52b9,onChange:_0x1c5b9b,table:_0x340e77}=_0x1287d1,_0x42c9c1=(0x0,m['useDependency'])(a[_0x4521fb(0x28c)]),[_0x481eb4,_0x1a0023]=(0x0,h[_0x4521fb(0x450)])(_0x4521fb(0x34a)),[_0x409831,_0x4a0db0]=(0x0,h[_0x4521fb(0x450)])(''),[_0x4f7fb5,_0x4e3200]=(0x0,h[_0x4521fb(0x450)])(null),[_0x21ff42,_0x3c0768]=(0x0,h[_0x4521fb(0x450)])(null),[_0x4d9201,_0xb6f486]=(0x0,h['useState'])(null),[_0x3153d5,_0x16f889]=(0x0,h[_0x4521fb(0x450)])(null),_0x2ab618=(0x0,h[_0x4521fb(0x232)])(null),_0x3a96a3=(0x0,h[_0x4521fb(0x4a4)])(()=>_0x340e77[_0x4521fb(0x1e4)][_0x4521fb(0x351)](_0x20e4a5=>{const _0x35381c=_0x4521fb;let _0x237d24=_0x340e77['fields'][_0x20e4a5];return _0x237d24&&_0x237d24[_0x35381c(0x29a)]!==!0x0&&_0x237d24[_0x35381c(0x430)]!==a[_0x35381c(0x357)][_0x35381c(0xdc)]?[_0x237d24]:[];})[_0x4521fb(0x39e)](_0x5b9714=>_0x5b9714[_0x4521fb(0x99)][_0x4521fb(0x38f)]()[_0x4521fb(0x8c)](_0x409831[_0x4521fb(0x306)]()[_0x4521fb(0x38f)]())),[_0x409831,_0x340e77]),_0xaac7c1=_0x3630ad=>{const _0x569cba=_0x4521fb;let _0x50d6d1=(0x0,e[_0x569cba(0x2f4)])(_0x340e77,_0x1d52b9[_0x569cba(0x418)]);try{_0x3630ad(_0x50d6d1),_0x1c5b9b({'pivot':_0x50d6d1[_0x569cba(0x424)]()});}finally{_0x50d6d1[_0x569cba(0x23e)]();}},_0x451fa3=(_0x3be226,_0x28ab06)=>{_0x4f7fb5&&(_0xaac7c1(_0xaf29e0=>{const _0x5389b5=_0x2d20;if(_0x4f7fb5[_0x5389b5(0x79)]===_0x5389b5(0x48e)){let _0x1b69ba=_0xaf29e0['getFieldPositionInfoById'](_0x4f7fb5['id']),_0x5934e8=_0x1b69ba['area']===_0x3be226&&_0x1b69ba[_0x5389b5(0xa3)]<_0x28ab06?_0x28ab06-0x1:_0x28ab06;_0xaf29e0[_0x5389b5(0x288)](_0x4f7fb5['id'],_0x3be226,_0x5934e8);}else ct(_0xaf29e0,_0x4f7fb5['id'],_0x3be226,_0x28ab06);}),_0x4e3200(null),_0x3c0768(null));};return(0x0,g['jsxs'])(_0x4521fb(0x24a),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[(0x0,g['jsx'])(n[_0x4521fb(0x286)],{'ariaLabel':_0x42c9c1['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x4521fb(0x21f),'items':[{'label':_0x42c9c1['t'](_0x4521fb(0x204)),'panelId':_0x4521fb(0x412),'value':_0x4521fb(0x34a)},{'label':_0x42c9c1['t'](_0x4521fb(0x1b9)),'panelId':_0x4521fb(0x34f),'value':_0x4521fb(0x19e)}],'value':_0x481eb4,'onChange':_0x1a0023}),(0x0,g[_0x4521fb(0x1d7)])(_0x4521fb(0x24a),{'ref':_0x2ab618,'className':(0x0,f[_0x4521fb(0x19b)])(_0x4521fb(0x23a),f['scrollbarClassName']),'onDragOver':_0x254dde=>{const _0x45f7b5=_0x4521fb;let _0x1f17de=_0x2ab618['current'];if(!_0x1f17de)return;let _0x419e85=_0x1f17de[_0x45f7b5(0x1b2)]();_0x254dde[_0x45f7b5(0x36f)]<_0x419e85[_0x45f7b5(0x32b)]+0x30?_0x1f17de[_0x45f7b5(0x2cb)]-=0x10:_0x254dde[_0x45f7b5(0x36f)]>_0x419e85[_0x45f7b5(0x1d6)]-0x30&&(_0x1f17de[_0x45f7b5(0x2cb)]+=0x10);},'children':_0x481eb4===_0x4521fb(0x19e)?(0x0,g[_0x4521fb(0x1d7)])(st,{'config':_0x1d52b9,'commit':_0xaac7c1}):(0x0,g[_0x4521fb(0x2f3)])(_0x4521fb(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g['jsxs'])(_0x4521fb(0x24a),{'children':[(0x0,g[_0x4521fb(0x1d7)])('div',{'className':_0x4521fb(0x167),'children':_0x42c9c1['t'](_0x4521fb(0x3a5))}),(0x0,g[_0x4521fb(0x1d7)])(f[_0x4521fb(0x3cd)],{'allowClear':!0x0,'slot':(0x0,g[_0x4521fb(0x1d7)])(s['SearchIcon'],{}),'value':_0x409831,'placeholder':_0x42c9c1['t'](_0x4521fb(0x158)),'onChange':_0x4a0db0}),(0x0,g[_0x4521fb(0x1d7)])(_0x4521fb(0x24a),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x3a96a3['map'](_0x13b07c=>(0x0,g['jsx'])(tt,{'config':_0x1d52b9,'field':_0x13b07c,'onAdd':_0x25add8=>_0xaac7c1(_0x373980=>ct(_0x373980,_0x13b07c['id'],_0x25add8,_0x373980['getFieldCountByArea'](_0x25add8))),'onCheckedChange':_0x447232=>_0xaac7c1(_0x10ed93=>{const _0x2b7b0d=_0x4521fb;let _0x54fc22=_0x10ed93[_0x2b7b0d(0x29c)](_0x13b07c['id']);if(!_0x447232)_0x54fc22[_0x2b7b0d(0x26f)](_0x321fb6=>_0x10ed93[_0x2b7b0d(0x8e)](_0x321fb6['getId']()));else{if(_0x54fc22['length']===0x0){let _0x566d39=ut(_0x13b07c)?y[_0x2b7b0d(0x34d)]['Value']:y['PivotTableFiledAreaEnum'][_0x2b7b0d(0x176)];_0x10ed93[_0x2b7b0d(0x494)](_0x13b07c['id'],_0x566d39);}}}),'onDragStart':()=>_0x4e3200({'kind':_0x4521fb(0x2fe),'id':_0x13b07c['id']})},_0x13b07c['id']))})]}),(0x0,g[_0x4521fb(0x1d7)])('div',{'className':_0x4521fb(0x228),'children':Qe[_0x4521fb(0x201)](_0x49eea5=>(0x0,g[_0x4521fb(0x1d7)])(rt,{'area':_0x49eea5[_0x4521fb(0x223)],'dropTarget':_0x21ff42,'fields':_0x1d52b9[_0x4521fb(0x418)][_0x49eea5['key']],'label':_0x42c9c1['t'](_0x49eea5['label']),'snapshot':_0x1d52b9[_0x4521fb(0x418)],'onDragEnd':()=>{_0x4e3200(null),_0x3c0768(null);},'onDragStart':_0x5a9feb=>_0x4e3200({'kind':'field','id':_0x5a9feb,'area':_0x49eea5[_0x4521fb(0x223)]}),'onDragOver':_0x3a5faa=>_0x3c0768({'area':_0x49eea5[_0x4521fb(0x223)],'index':_0x3a5faa}),'onDrop':_0x149e71=>_0x451fa3(_0x49eea5[_0x4521fb(0x223)],_0x149e71),'onFilter':_0xb6f486,'onMove':(_0x20c89f,_0xc06804,_0x597878)=>_0xaac7c1(_0xcc4c69=>_0xcc4c69['updateFieldPosition'](_0x20c89f,_0xc06804,_0x597878)),'onRemove':_0x455337=>_0xaac7c1(_0x505ba5=>_0x505ba5[_0x4521fb(0x8e)](_0x455337)),'onSettings':_0x16f889},_0x49eea5['area']))}),_0x4d9201&&(0x0,g['jsx'])(at,{'fieldId':_0x4d9201,'snapshot':_0x1d52b9[_0x4521fb(0x418)],'table':_0x340e77,'onCancel':()=>_0xb6f486(null),'onCommit':(_0x5572fb,_0x1f7640)=>{_0xaac7c1(_0xeaacea=>{const _0x5c7453=_0x2d20;let _0x166a4a=_0xeaacea[_0x5c7453(0x3ff)](_0x4d9201),_0x4fca65=(_0x166a4a==null?void 0x0:_0x166a4a['items'])??[];_0xeaacea[_0x5c7453(0x96)](_0x4d9201,{'type':y[_0x5c7453(0x309)][_0x5c7453(0x2f0)],'list':_0x5572fb,'isAll':_0x5572fb[_0x5c7453(0x444)]===_0x4fca65['length']}),_0xeaacea[_0x5c7453(0x1e3)](_0x4d9201,_0x1f7640===void 0x0?void 0x0:{'type':_0x1f7640});}),_0xb6f486(null);}},_0x4d9201),_0x3153d5&&(0x0,g[_0x4521fb(0x1d7)])(ot,{'field':_0x1d52b9['pivot'][_0x4521fb(0x190)][_0x3153d5],'onCancel':()=>_0x16f889(null),'onCommit':(_0x327a82,_0x31a980,_0x5b3473)=>{_0xaac7c1(_0x488c69=>{const _0x4d015f=_0x2d20;_0x488c69['renameField'](_0x3153d5,_0x327a82),_0x488c69[_0x4d015f(0x26b)](_0x3153d5,_0x31a980),_0x488c69[_0x4d015f(0x171)](_0x3153d5,_0x5b3473||void 0x0);}),_0x16f889(null);}},_0x3153d5)]})})]});}function tt(_0x34a2bb){const _0x2cb390=_0x16f285;let {config:_0x435e3b,field:_0x1db35f,onAdd:_0x353aa5,onCheckedChange:_0x566a4c,onDragStart:_0x1205d2}=_0x34a2bb,_0x10b3c5=(0x0,m[_0x2cb390(0x15f)])(a[_0x2cb390(0x28c)]),_0x13da2b=[...Object[_0x2cb390(0xe3)](_0x435e3b[_0x2cb390(0x418)][_0x2cb390(0x3a3)]),...Object['values'](_0x435e3b[_0x2cb390(0x418)][_0x2cb390(0x190)])]['some'](_0x36c271=>_0x36c271[_0x2cb390(0x1dd)]===_0x1db35f['id']),_0xc70dbe=Qe['map'](_0x2aaba3=>({'type':_0x2cb390(0x43c),'children':_0x10b3c5['t'](dt(_0x2aaba3['area'])),'onSelect':()=>_0x353aa5(_0x2aaba3['area'])}));return(0x0,g[_0x2cb390(0x2f3)])(_0x2cb390(0x24a),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x2cb390(0x45e),'onDragStart':_0x1205d2,'children':[(0x0,g[_0x2cb390(0x1d7)])(f['Checkbox'],{'checked':_0x13da2b,'onChange':_0x17e669=>_0x566a4c(!!_0x17e669)}),(0x0,g[_0x2cb390(0x1d7)])(nt,{'field':_0x1db35f}),(0x0,g[_0x2cb390(0x1d7)])(_0x2cb390(0x42b),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x1db35f[_0x2cb390(0x99)]}),(0x0,g[_0x2cb390(0x1d7)])(de,{'align':'end','items':_0xc70dbe,'children':(0x0,g[_0x2cb390(0x1d7)])(f[_0x2cb390(0x1bb)],{'variant':_0x2cb390(0x326),'aria-label':_0x10b3c5['t'](_0x2cb390(0xce)),'children':(0x0,g[_0x2cb390(0x1d7)])(s[_0x2cb390(0xde)],{})})})]});}function nt({field:_0x428e83}){const _0x39aae7=_0x16f285;return ut(_0x428e83)?(0x0,g[_0x39aae7(0x1d7)])(s['NumberIcon'],{'className':_0x39aae7(0x25d)}):_0x428e83[_0x39aae7(0x430)]===a['BaseFieldType'][_0x39aae7(0x231)]||_0x428e83['type']===a[_0x39aae7(0x357)][_0x39aae7(0x21c)]||_0x428e83['type']===a[_0x39aae7(0x357)][_0x39aae7(0x2a9)]?(0x0,g[_0x39aae7(0x1d7)])(s[_0x39aae7(0x168)],{'className':_0x39aae7(0x25d)}):(0x0,g['jsx'])(s[_0x39aae7(0x381)],{'className':_0x39aae7(0x25d)});}function rt(_0x49d03c){const _0x4be16f=_0x16f285;let {area:_0x12e977,dropTarget:_0x2205b7,fields:_0x31442d,label:_0x1e2119,snapshot:_0xda6fb2}=_0x49d03c,_0x4085de=(0x0,m['useDependency'])(a[_0x4be16f(0x28c)]);return(0x0,g[_0x4be16f(0x2f3)])('section',{'className':(0x0,f[_0x4be16f(0x19b)])(_0x4be16f(0x15a),f[_0x4be16f(0x169)]),'onDragOver':_0x520353=>{const _0x533cfc=_0x4be16f;_0x520353[_0x533cfc(0x477)](),_0x49d03c[_0x533cfc(0xfa)](_0x31442d[_0x533cfc(0x444)]);},'onDrop':_0x3ba71e=>{const _0x35e0ea=_0x4be16f;_0x3ba71e[_0x35e0ea(0x477)](),_0x49d03c[_0x35e0ea(0x150)]((_0x2205b7==null?void 0x0:_0x2205b7[_0x35e0ea(0x223)])===_0x12e977?_0x2205b7[_0x35e0ea(0xa3)]:_0x31442d[_0x35e0ea(0x444)]);},'children':[(0x0,g[_0x4be16f(0x1d7)])(_0x4be16f(0x24a),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x1e2119}),(0x0,g[_0x4be16f(0x2f3)])(_0x4be16f(0x24a),{'className':_0x4be16f(0x28f),'children':[_0x31442d[_0x4be16f(0x201)]((_0x11c1da,_0x541f96)=>{const _0x598c70=_0x4be16f;let _0x4411d6=_0xda6fb2[_0x598c70(0x3a3)][_0x11c1da]??_0xda6fb2[_0x598c70(0x190)][_0x11c1da];if(!_0x4411d6)return null;let _0x35eb23=(_0x2205b7==null?void 0x0:_0x2205b7[_0x598c70(0x223)])===_0x12e977&&_0x2205b7[_0x598c70(0xa3)]===_0x541f96;return(0x0,g[_0x598c70(0x2f3)])('div',{'onDragOver':_0x274e00=>{const _0x3bc919=_0x598c70;_0x274e00['preventDefault'](),_0x274e00[_0x3bc919(0x3bd)]();let _0xf79bb1=_0x274e00[_0x3bc919(0x3b8)][_0x3bc919(0x1b2)]();_0x49d03c[_0x3bc919(0xfa)](_0x541f96+ +(_0x274e00[_0x3bc919(0x36f)]>_0xf79bb1[_0x3bc919(0x32b)]+_0xf79bb1[_0x3bc919(0xd4)]/0x2));},'onDrop':_0x52352a=>{const _0xdcda9c=_0x598c70;_0x52352a[_0xdcda9c(0x477)](),_0x52352a[_0xdcda9c(0x3bd)](),_0x49d03c[_0xdcda9c(0x150)]((_0x2205b7==null?void 0x0:_0x2205b7[_0xdcda9c(0x223)])===_0x12e977?_0x2205b7[_0xdcda9c(0xa3)]:_0x541f96);},'children':[_0x35eb23&&(0x0,g[_0x598c70(0x1d7)])(_0x598c70(0x24a),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),(0x0,g[_0x598c70(0x1d7)])(it,{'area':_0x12e977,'field':_0x4411d6,'onDragEnd':_0x49d03c[_0x598c70(0x287)],'onDragStart':()=>_0x49d03c['onDragStart'](_0x11c1da),'onFilter':()=>_0x49d03c[_0x598c70(0x138)](_0x11c1da),'onMove':_0x3c4fb4=>_0x49d03c[_0x598c70(0x3ba)](_0x11c1da,_0x3c4fb4,0x0),'onMoveUp':_0x541f96>0x0?()=>_0x49d03c[_0x598c70(0x3ba)](_0x11c1da,_0x12e977,_0x541f96-0x1):void 0x0,'onMoveDown':_0x541f96<_0x31442d[_0x598c70(0x444)]-0x1?()=>_0x49d03c[_0x598c70(0x3ba)](_0x11c1da,_0x12e977,_0x541f96+0x1):void 0x0,'onRemove':()=>_0x49d03c[_0x598c70(0x3bf)](_0x11c1da),'onSettings':()=>_0x49d03c['onSettings'](_0x11c1da)})]},_0x11c1da);}),(_0x2205b7==null?void 0x0:_0x2205b7[_0x4be16f(0x223)])===_0x12e977&&_0x2205b7[_0x4be16f(0xa3)]===_0x31442d[_0x4be16f(0x444)]&&(0x0,g[_0x4be16f(0x1d7)])(_0x4be16f(0x24a),{'className':_0x4be16f(0x42f)}),_0x31442d[_0x4be16f(0x444)]===0x0&&(0x0,g[_0x4be16f(0x1d7)])(_0x4be16f(0x24a),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x4085de['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function it(_0x545bd2){const _0x3c05c1=_0x16f285;let _0x2384ae=(0x0,m[_0x3c05c1(0x15f)])(a[_0x3c05c1(0x28c)]),_0xcec7b=_0x545bd2['area']===y[_0x3c05c1(0x34d)]['Value'],_0xecfe19=[...Qe[_0x3c05c1(0x39e)](_0x347182=>_0x347182[_0x3c05c1(0x223)]!==_0x545bd2[_0x3c05c1(0x223)])[_0x3c05c1(0x201)](_0x264fa7=>({'type':_0x3c05c1(0x43c),'children':_0x2384ae['t'](dt(_0x264fa7[_0x3c05c1(0x223)])),'onSelect':()=>_0x545bd2['onMove'](_0x264fa7['area'])})),..._0x545bd2[_0x3c05c1(0x334)]?[{'type':_0x3c05c1(0x43c),'children':_0x2384ae['t'](_0x3c05c1(0x224)),'onSelect':_0x545bd2[_0x3c05c1(0x334)]}]:[],..._0x545bd2[_0x3c05c1(0x41d)]?[{'type':_0x3c05c1(0x43c),'children':_0x2384ae['t'](_0x3c05c1(0xcf)),'onSelect':_0x545bd2[_0x3c05c1(0x41d)]}]:[],{'type':'item','children':_0x2384ae['t'](_0x3c05c1(0xee)),'onSelect':_0x545bd2[_0x3c05c1(0x3bf)]},{'type':_0x3c05c1(0x43c),'children':_0x2384ae['t'](_0xcec7b?'bases-dashboard-ui.pivot.fieldSettings':_0x3c05c1(0x20d)),'onSelect':_0xcec7b?_0x545bd2[_0x3c05c1(0x3f8)]:_0x545bd2[_0x3c05c1(0x138)]}];return(0x0,g[_0x3c05c1(0x2f3)])(_0x3c05c1(0x24a),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x3c05c1(0x3ce),'onDragEnd':_0x545bd2[_0x3c05c1(0x287)],'onDragStart':_0x545bd2['onDragStart'],'children':[(0x0,g[_0x3c05c1(0x1d7)])(f[_0x3c05c1(0x44b)],{'title':_0x545bd2['field']['displayName'],'children':(0x0,g[_0x3c05c1(0x1d7)])('span',{'className':_0x3c05c1(0x39c),'children':_0x545bd2['field']['displayName']})}),(0x0,g[_0x3c05c1(0x1d7)])(de,{'align':_0x3c05c1(0x3d1),'items':_0xecfe19,'children':(0x0,g[_0x3c05c1(0x1d7)])(f[_0x3c05c1(0x1bb)],{'variant':'text','aria-label':_0x2384ae['t'](_0x3c05c1(0xce)),'children':(0x0,g[_0x3c05c1(0x1d7)])(s[_0x3c05c1(0xde)],{})})})]});}function at(_0x3ae2fd){const _0x45acc9=_0x16f285;var _0x496c57,_0x43affa;let _0x4e55f7=(0x0,m[_0x45acc9(0x15f)])(a[_0x45acc9(0x28c)]),{format:_0x44d30,items:_0x1705e7,itemTypes:_0x50d8c2}=(0x0,h['useMemo'])(()=>{const _0x5e9704=_0x45acc9;let _0x19b454=(0x0,e[_0x5e9704(0x2f4)])(_0x3ae2fd[_0x5e9704(0x3b5)],_0x3ae2fd[_0x5e9704(0x367)]);try{let _0x2d068e=_0x19b454[_0x5e9704(0x3ff)](_0x3ae2fd['fieldId']);return{'format':_0x2d068e==null?void 0x0:_0x2d068e[_0x5e9704(0x3e5)],'items':[...(_0x2d068e==null?void 0x0:_0x2d068e[_0x5e9704(0x109)])??[]],'itemTypes':[...(_0x2d068e==null?void 0x0:_0x2d068e[_0x5e9704(0x97)])??[]]};}finally{_0x19b454[_0x5e9704(0x23e)]();}},[_0x3ae2fd[_0x45acc9(0x26c)],_0x3ae2fd[_0x45acc9(0x367)],_0x3ae2fd[_0x45acc9(0x3b5)]]),_0x2b5ce8=(_0x496c57=_0x3ae2fd[_0x45acc9(0x367)][_0x45acc9(0x3a3)][_0x3ae2fd[_0x45acc9(0x26c)]])==null?void 0x0:_0x496c57[_0x45acc9(0x1a5)],[_0x1c8f39,_0x423892]=(0x0,h[_0x45acc9(0x450)])((_0x2b5ce8==null?void 0x0:_0x2b5ce8[_0x45acc9(0x430)])===y[_0x45acc9(0x309)][_0x45acc9(0x2f0)]?_0x2b5ce8[_0x45acc9(0xc0)]:_0x1705e7),[_0x593acf,_0x4e457e]=(0x0,h[_0x45acc9(0x450)])((_0x43affa=_0x3ae2fd[_0x45acc9(0x367)][_0x45acc9(0x3a3)][_0x3ae2fd[_0x45acc9(0x26c)]])==null||(_0x43affa=_0x43affa[_0x45acc9(0x37d)])==null?void 0x0:_0x43affa[_0x45acc9(0x430)]),_0x2e6ca6=_0x1c8f39[_0x45acc9(0x444)]===_0x1705e7['length'],_0x799d8b=(0x0,g[_0x45acc9(0x2f3)])(_0x45acc9(0x47e),{'className':(0x0,f[_0x45acc9(0x19b)])(_0x45acc9(0x3ae),f[_0x45acc9(0x169)]),'children':[(0x0,g[_0x45acc9(0x1d7)])(_0x45acc9(0x24a),{'className':_0x45acc9(0xeb),'children':_0x4e55f7['t'](_0x45acc9(0x20d))}),(0x0,g[_0x45acc9(0x2f3)])(_0x45acc9(0x24a),{'className':_0x45acc9(0x3b4),'children':[(0x0,g[_0x45acc9(0x2f3)])(f['Button'],{'className':_0x45acc9(0x366),'variant':_0x593acf===y[_0x45acc9(0xc7)][_0x45acc9(0x434)]?_0x45acc9(0x149):_0x45acc9(0x3f0),'onClick':()=>_0x4e457e(y[_0x45acc9(0xc7)][_0x45acc9(0x434)]),'children':[(0x0,g['jsx'])(s[_0x45acc9(0xe5)],{}),_0x4e55f7['t'](_0x45acc9(0x3a1))]}),(0x0,g['jsxs'])(f['Button'],{'className':_0x45acc9(0x366),'variant':_0x593acf===y[_0x45acc9(0xc7)][_0x45acc9(0xa5)]?_0x45acc9(0x149):'default','onClick':()=>_0x4e457e(y['PivotDataFieldSortOperatorEnum'][_0x45acc9(0xa5)]),'children':[(0x0,g[_0x45acc9(0x1d7)])(s[_0x45acc9(0x203)],{}),_0x4e55f7['t'](_0x45acc9(0x3b2))]})]}),(0x0,g[_0x45acc9(0x2f3)])(_0x45acc9(0x24a),{'className':_0x45acc9(0x20c),'children':[(0x0,g[_0x45acc9(0x2f3)])(_0x45acc9(0x1d9),{'className':_0x45acc9(0x386),'children':[(0x0,g[_0x45acc9(0x1d7)])(f['Checkbox'],{'checked':_0x2e6ca6,'indeterminate':_0x1c8f39[_0x45acc9(0x444)]>0x0&&!_0x2e6ca6,'onChange':()=>_0x423892(_0x2e6ca6?[]:_0x1705e7)}),_0x4e55f7['t'](_0x45acc9(0x148))]}),_0x1705e7[_0x45acc9(0x201)]((_0x16a785,_0x1abada)=>(0x0,g[_0x45acc9(0x2f3)])('label',{'className':_0x45acc9(0x386),'children':[(0x0,g['jsx'])(f[_0x45acc9(0x42d)],{'checked':_0x1c8f39[_0x45acc9(0x8c)](_0x16a785),'onChange':()=>_0x423892(_0x4f6260=>_0x4f6260[_0x45acc9(0x8c)](_0x16a785)?_0x4f6260[_0x45acc9(0x39e)](_0x4ef614=>_0x4ef614!==_0x16a785):[..._0x4f6260,_0x16a785])}),(0x0,g[_0x45acc9(0x1d7)])('span',{'className':_0x45acc9(0x291),'children':lt(_0x16a785,_0x50d8c2[_0x1abada],_0x44d30,_0x4e55f7['t'](_0x45acc9(0x29b)))})]},_0x16a785))]}),(0x0,g['jsxs'])('div',{'className':_0x45acc9(0x273),'children':[(0x0,g[_0x45acc9(0x1d7)])(f[_0x45acc9(0x1bb)],{'variant':_0x45acc9(0x16b),'onClick':()=>_0x3ae2fd[_0x45acc9(0x299)](_0x1705e7,_0x593acf),'children':_0x4e55f7['t']('bases-dashboard-ui.pivot.clearFilter')}),(0x0,g['jsxs'])(_0x45acc9(0x24a),{'className':_0x45acc9(0x3f5),'children':[(0x0,g['jsx'])(f['Button'],{'onClick':_0x3ae2fd[_0x45acc9(0x24f)],'children':_0x4e55f7['t']('bases-dashboard-ui.pivot.cancel')}),(0x0,g[_0x45acc9(0x1d7)])(f[_0x45acc9(0x1bb)],{'variant':_0x45acc9(0x149),'disabled':_0x1c8f39['length']===0x0,'onClick':()=>_0x3ae2fd['onCommit'](_0x1c8f39,_0x593acf),'children':_0x4e55f7['t'](_0x45acc9(0x17a))})]})]})]});return(0x0,g['jsx'])(t[_0x45acc9(0x45a)],{'title':_0x4e55f7['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x3ae2fd[_0x45acc9(0x24f)],'children':_0x799d8b});}function ot(_0x27acb7){const _0xd8aaa8=_0x16f285;var _0x3340b9,_0x16616a,_0x33d8d0;let _0x4bffbd=(0x0,m[_0xd8aaa8(0x15f)])(a[_0xd8aaa8(0x28c)]),[_0x286a87,_0x1286a5]=(0x0,h[_0xd8aaa8(0x450)])(((_0x3340b9=_0x27acb7[_0xd8aaa8(0x48e)])==null?void 0x0:_0x3340b9[_0xd8aaa8(0x2e2)])??''),[_0x2ad77b,_0x506720]=(0x0,h[_0xd8aaa8(0x450)])(((_0x16616a=_0x27acb7[_0xd8aaa8(0x48e)])==null?void 0x0:_0x16616a[_0xd8aaa8(0x102)])??y[_0xd8aaa8(0x48b)][_0xd8aaa8(0x32c)]),[_0x31e3b2,_0x1a2cfa]=(0x0,h[_0xd8aaa8(0x450)])(((_0x33d8d0=_0x27acb7[_0xd8aaa8(0x48e)])==null?void 0x0:_0x33d8d0[_0xd8aaa8(0x3e5)])??'');if(!_0x27acb7['field'])return null;let _0x4c14c3=(0x0,g[_0xd8aaa8(0x2f3)])(_0xd8aaa8(0x47e),{'className':(0x0,f[_0xd8aaa8(0x19b)])(_0xd8aaa8(0x1d4),f[_0xd8aaa8(0x169)]),'children':[(0x0,g[_0xd8aaa8(0x1d7)])(_0xd8aaa8(0x24a),{'className':_0xd8aaa8(0xc5),'children':_0x4bffbd['t'](_0xd8aaa8(0xce))}),(0x0,g[_0xd8aaa8(0x2f3)])(_0xd8aaa8(0x1d9),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4bffbd['t']('bases-dashboard-ui.pivot.displayName'),(0x0,g[_0xd8aaa8(0x1d7)])(f['Input'],{'value':_0x286a87,'onChange':_0x1286a5})]}),(0x0,g['jsxs'])(_0xd8aaa8(0x1d9),{'className':_0xd8aaa8(0x41f),'children':[_0x4bffbd['t'](_0xd8aaa8(0x186)),(0x0,g[_0xd8aaa8(0x1d7)])(G,{'value':String(_0x2ad77b),'options':$e['map'](_0x2ef6b7=>({'value':String(_0x2ef6b7[_0xd8aaa8(0x44c)]),'label':_0x4bffbd['t'](_0x2ef6b7[_0xd8aaa8(0x43f)])})),'onChange':_0x4ff06b=>{const _0x3d027c=_0xd8aaa8;let _0x3c27c6=$e[_0x3d027c(0x132)](_0x38a590=>String(_0x38a590['value'])===_0x4ff06b);_0x3c27c6&&_0x506720(_0x3c27c6[_0x3d027c(0x44c)]);}})]}),(0x0,g[_0xd8aaa8(0x2f3)])(_0xd8aaa8(0x1d9),{'className':_0xd8aaa8(0x41f),'children':[_0x4bffbd['t']('bases-dashboard-ui.pivot.numberFormat'),(0x0,g[_0xd8aaa8(0x1d7)])(f[_0xd8aaa8(0x3cd)],{'value':_0x31e3b2,'onChange':_0x1a2cfa})]}),(0x0,g[_0xd8aaa8(0x2f3)])(_0xd8aaa8(0x24a),{'className':_0xd8aaa8(0x243),'children':[(0x0,g['jsx'])(f['Button'],{'onClick':_0x27acb7[_0xd8aaa8(0x24f)],'children':_0x4bffbd['t']('bases-dashboard-ui.pivot.cancel')}),(0x0,g[_0xd8aaa8(0x1d7)])(f['Button'],{'variant':_0xd8aaa8(0x149),'disabled':!_0x286a87[_0xd8aaa8(0x306)](),'onClick':()=>_0x27acb7[_0xd8aaa8(0x299)](_0x286a87[_0xd8aaa8(0x306)](),_0x2ad77b,_0x31e3b2),'children':_0x4bffbd['t']('bases-dashboard-ui.pivot.confirm')})]})]});return(0x0,g[_0xd8aaa8(0x1d7)])(t[_0xd8aaa8(0x45a)],{'title':_0x4bffbd['t'](_0xd8aaa8(0xce)),'onClose':_0x27acb7[_0xd8aaa8(0x24f)],'children':_0x4c14c3});}function st(_0x4f6b62){const _0x4843e4=_0x16f285;let {config:_0x5eeb95,commit:_0x12fec3}=_0x4f6b62,_0x55a2c9=(0x0,m['useDependency'])(a[_0x4843e4(0x28c)]),_0x4bb827=_0x5eeb95[_0x4843e4(0x418)][_0x4843e4(0x19e)],_0x14a028=_0x48d7a2=>_0x12fec3(_0x2cc26b=>_0x2cc26b[_0x4843e4(0xc4)]({..._0x2cc26b[_0x4843e4(0x3df)](),..._0x48d7a2}));return(0x0,g['jsxs'])(_0x4843e4(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g[_0x4843e4(0x2f3)])(_0x4843e4(0x1d9),{'className':_0x4843e4(0x499),'children':[_0x55a2c9['t'](_0x4843e4(0x1df)),(0x0,g['jsx'])(G,{'className':_0x4843e4(0x32a),'value':String(_0x5eeb95[_0x4843e4(0x418)]['layout']),'options':[{'value':String(y[_0x4843e4(0x3f9)][_0x4843e4(0x344)]),'label':_0x55a2c9['t'](_0x4843e4(0x340))},{'value':String(y['PivotLayoutTypeEnum'][_0x4843e4(0x3b1)]),'label':_0x55a2c9['t'](_0x4843e4(0x212))},{'value':String(y['PivotLayoutTypeEnum'][_0x4843e4(0x86)]),'label':_0x55a2c9['t'](_0x4843e4(0x1a0))}],'onChange':_0x100f36=>{const _0x5e5ffb=_0x4843e4;let _0x33f6a=[y[_0x5e5ffb(0x3f9)][_0x5e5ffb(0x344)],y[_0x5e5ffb(0x3f9)][_0x5e5ffb(0x3b1)],y[_0x5e5ffb(0x3f9)][_0x5e5ffb(0x86)]]['find'](_0xa55ac6=>String(_0xa55ac6)===_0x100f36);_0x33f6a!==void 0x0&&_0x12fec3(_0x28a937=>_0x28a937['setLayout'](_0x33f6a));}})]}),[{'key':_0x4843e4(0x15b),'label':_0x4843e4(0x78),'defaultValue':!0x1},{'key':_0x4843e4(0x251),'label':_0x4843e4(0x14f),'defaultValue':!0x1},{'key':_0x4843e4(0x49e),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x4843e4(0x277),'label':_0x4843e4(0x3ab),'defaultValue':!0x0},{'key':_0x4843e4(0x30a),'label':_0x4843e4(0xb2),'defaultValue':!0x0},{'key':_0x4843e4(0x14a),'label':_0x4843e4(0xef),'defaultValue':!0x0}][_0x4843e4(0x201)](_0x8a0b2c=>(0x0,g['jsxs'])(_0x4843e4(0x1d9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x4843e4(0x1d7)])(f[_0x4843e4(0x42d)],{'checked':!!(_0x4bb827[_0x8a0b2c[_0x4843e4(0x254)]]??_0x8a0b2c[_0x4843e4(0x24d)]),'disabled':_0x8a0b2c[_0x4843e4(0x254)]==='repeatRowLabels'&&_0x5eeb95[_0x4843e4(0x418)][_0x4843e4(0x3c1)]===y['PivotLayoutTypeEnum'][_0x4843e4(0x3b1)],'onChange':_0x5722b2=>_0x14a028({[_0x8a0b2c[_0x4843e4(0x254)]]:!!_0x5722b2})}),_0x55a2c9['t'](_0x8a0b2c[_0x4843e4(0x1d9)])]},_0x8a0b2c['key'])),_0x5eeb95[_0x4843e4(0x418)]['layout']===y['PivotLayoutTypeEnum'][_0x4843e4(0x86)]&&(0x0,g[_0x4843e4(0x2f3)])(_0x4843e4(0x1d9),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x55a2c9['t'](_0x4843e4(0x35c)),(0x0,g[_0x4843e4(0x1d7)])(G,{'className':_0x4843e4(0x32a),'value':String(_0x4bb827[_0x4843e4(0x467)]??y[_0x4843e4(0x281)][_0x4843e4(0x32b)]),'options':[{'value':String(y[_0x4843e4(0x281)][_0x4843e4(0x32b)]),'label':_0x55a2c9['t'](_0x4843e4(0x1a6))},{'value':String(y['PivotSubtotalPositionEnum'][_0x4843e4(0x1d6)]),'label':_0x55a2c9['t'](_0x4843e4(0x352))}],'onChange':_0x51bf3=>{const _0x1dd3b1=_0x4843e4;let _0x6cf4f1=[y[_0x1dd3b1(0x281)][_0x1dd3b1(0x32b)],y['PivotSubtotalPositionEnum'][_0x1dd3b1(0x1d6)]][_0x1dd3b1(0x132)](_0xd21715=>String(_0xd21715)===_0x51bf3);_0x6cf4f1!==void 0x0&&_0x14a028({'rowSubtotalPosition':_0x6cf4f1});}})]}),(0x0,g[_0x4843e4(0x2f3)])('label',{'className':_0x4843e4(0x499),'children':[_0x55a2c9['t'](_0x4843e4(0x276)),(0x0,g['jsx'])(G,{'className':_0x4843e4(0x32a),'value':String(_0x5eeb95[_0x4843e4(0x418)][_0x4843e4(0x360)]===y[_0x4843e4(0x45b)][_0x4843e4(0x487)]?y['PivotTableValuePositionEnum'][_0x4843e4(0x119)]:_0x5eeb95[_0x4843e4(0x418)][_0x4843e4(0x360)]),'options':[{'value':String(y[_0x4843e4(0x45b)][_0x4843e4(0x119)]),'label':_0x55a2c9['t'](_0x4843e4(0x2cf))},{'value':String(y[_0x4843e4(0x45b)]['Row']),'label':_0x55a2c9['t'](_0x4843e4(0x2a8))}],'onChange':_0x4d6991=>{const _0x489061=_0x4843e4;let _0x541be5=[y['PivotTableValuePositionEnum'][_0x489061(0x119)],y[_0x489061(0x45b)][_0x489061(0x176)]]['find'](_0x22776b=>String(_0x22776b)===_0x4d6991);_0x541be5!==void 0x0&&_0x12fec3(_0x3cab22=>_0x3cab22[_0x489061(0x33d)](_0x541be5,_0x3cab22[_0x489061(0x14c)]()<0x0?0x0:_0x3cab22[_0x489061(0x14c)]()));}})]}),(0x0,g[_0x4843e4(0x2f3)])('label',{'className':_0x4843e4(0x499),'children':[_0x55a2c9['t'](_0x4843e4(0x399)),(0x0,g[_0x4843e4(0x1d7)])(f['InputNumber'],{'className':_0x4843e4(0x1bf),'min':0x1,'max':0x14,'value':_0x4bb827[_0x4843e4(0x10c)]??0x1,'onChange':_0x3eb438=>{const _0x3f63b9=_0x4843e4;let _0x1227c1=Number(_0x3eb438);Number[_0x3f63b9(0xb4)](_0x1227c1)&&_0x1227c1>=0x1&&_0x14a028({'pageWrap':_0x1227c1});}})]}),(0x0,g['jsxs'])(_0x4843e4(0x1d9),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x55a2c9['t'](_0x4843e4(0x45d)),(0x0,g[_0x4843e4(0x1d7)])(G,{'className':_0x4843e4(0x32a),'value':String(_0x4bb827['pageOverThenDown']??!0x1),'options':[{'value':_0x4843e4(0x1ae),'label':_0x55a2c9['t'](_0x4843e4(0x429))},{'value':_0x4843e4(0x1e7),'label':_0x55a2c9['t'](_0x4843e4(0xd9))}],'onChange':_0x25e3c0=>_0x14a028({'pageOverThenDown':_0x25e3c0===_0x4843e4(0x1e7)})})]})]});}function ct(_0x3846c4,_0x477070,_0x547cf4,_0x4c5da6){const _0x13d492=_0x16f285;let _0x4b861b=_0x3846c4[_0x13d492(0x29c)](_0x477070)[_0x13d492(0x132)](_0x849ca4=>_0x3846c4['getFieldPositionInfoById'](_0x849ca4[_0x13d492(0x181)]())[_0x13d492(0x223)]!==y['PivotTableFiledAreaEnum']['Value']);_0x547cf4!==y[_0x13d492(0x34d)][_0x13d492(0x41a)]&&_0x4b861b?_0x3846c4[_0x13d492(0x288)](_0x4b861b[_0x13d492(0x181)](),_0x547cf4,_0x4c5da6):_0x3846c4['addFieldWithSourceId'](_0x477070,_0x547cf4,_0x4c5da6);}function lt(_0x508f27,_0x5267f4,_0x2ea359,_0x2135ae){const _0x2fa521=_0x16f285;return _0x5267f4===y['PivotDataFieldDataTypeEnum'][_0x2fa521(0x10f)]?_0x2135ae:_0x5267f4===y[_0x2fa521(0x25e)][_0x2fa521(0x125)]&&_0x2ea359?a['numfmt'][_0x2fa521(0x3e5)](_0x2ea359,Number(_0x508f27)):_0x508f27;}function ut(_0x49c765){const _0xb0682=_0x16f285;return _0x49c765['type']===a['BaseFieldType'][_0xb0682(0x2cd)]||_0x49c765[_0xb0682(0x430)]===a['BaseFieldType'][_0xb0682(0x46e)]||_0x49c765[_0xb0682(0x430)]===a[_0xb0682(0x357)][_0xb0682(0x141)]||_0x49c765[_0xb0682(0x430)]===a[_0xb0682(0x357)][_0xb0682(0x364)];}function dt(_0x27c75e){const _0x422d1e=_0x16f285;switch(_0x27c75e){case y[_0x422d1e(0x34d)][_0x422d1e(0x176)]:return _0x422d1e(0x327);case y['PivotTableFiledAreaEnum'][_0x422d1e(0x119)]:return _0x422d1e(0x2c6);case y['PivotTableFiledAreaEnum'][_0x422d1e(0x41a)]:return _0x422d1e(0x1f0);default:return'bases-dashboard-ui.pivot.addToFilter';}}function ft({config:_0x55ead6,onChange:_0x545e88,runtime:_0xc97f81,table:_0x362646}){const _0x4b79c1=_0x16f285;let _0x217e22=(0x0,m[_0x4b79c1(0x15f)])(a[_0x4b79c1(0x28c)]),[_0x564726,_0x8425c0]=(0x0,h[_0x4b79c1(0x450)])('chart');return(0x0,g[_0x4b79c1(0x2f3)])(_0x4b79c1(0x45f),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x4b79c1(0x1d7)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x217e22['t']('bases-dashboard-ui.pivot.name'),'className':_0x4b79c1(0x278),'items':[{'label':_0x217e22['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x4b79c1(0x302),'value':'chart'},{'label':_0x217e22['t'](_0x4b79c1(0x1ec)),'panelId':'base-pivot-table-configuration','value':_0x4b79c1(0x418)}],'value':_0x564726,'variant':_0x4b79c1(0x155),'onChange':_0x8425c0}),(0x0,g['jsx'])('div',{'className':_0x4b79c1(0x455),'children':_0x564726===_0x4b79c1(0x3ef)?_0xc97f81&&(0x0,g[_0x4b79c1(0x1d7)])(he,{'config':_0x55ead6,'runtime':_0xc97f81,'tableName':_0x362646[_0x4b79c1(0x99)],'onChange':_0x545e88}):(0x0,g['jsx'])(et,{'config':_0x55ead6,'table':_0x362646,'onChange':_0x545e88})})]});}function pt({tableId:_0x54b57a,unitId:_0x5022a2,viewId:_0xd65617}){const _0x2f004f=_0x16f285;let [_0x1ff2a8,_0x7bd3ff]=(0x0,h[_0x2f004f(0x450)])(!0x1),_0x44a4cd=(0x0,m[_0x2f004f(0x15f)])(a[_0x2f004f(0x384)]),_0x3e2a86=(0x0,m[_0x2f004f(0x15f)])(a[_0x2f004f(0x365)]),_0x8c17aa=(0x0,m['useDependency'])(a[_0x2f004f(0x3c2)]),_0x18d9af=(0x0,m['useDependency'])(a[_0x2f004f(0x28c)]),_0x52d090=(0x0,m[_0x2f004f(0x15f)])(e[_0x2f004f(0x2f7)]),[_0x426ae1,_0x26b35c]=(0x0,h[_0x2f004f(0x450)])(null),[_0x3ea0cd,_0x498c81]=(0x0,h['useState'])(null),_0x53ba4e=(0x0,h[_0x2f004f(0x232)])(_0x2f004f(0x3c5)+(0x0,a[_0x2f004f(0x40c)])(0x8)),[_0x369cd9,_0x2d507c]=(0x0,h[_0x2f004f(0x450)])(!0x1),_0x17b8af=_0x3e2a86[_0x2f004f(0x2d6)](_0x5022a2,a[_0x2f004f(0x1c6)]['UNIVER_BASE']),_0xd7e0eb=_0x17b8af==null?void 0x0:_0x17b8af[_0x2f004f(0x1fc)]()[_0x2f004f(0x252)][_0x54b57a],_0x50c394=_0xd7e0eb==null?void 0x0:_0xd7e0eb['views'][_0xd65617],_0xd593de=mt(_0x50c394),_0x496887=T(_0x5022a2,_0x54b57a,_0xd65617);if((0x0,h[_0x2f004f(0x2e0)])(()=>{const _0x2e4341=_0x2f004f;if(!_0xd593de)return;let _0x1f5997=_0x53ba4e[_0x2e4341(0x1af)];return _0x52d090[_0x2e4341(0x1b4)](_0x1f5997,{'unitId':_0x5022a2,'tableId':_0x54b57a,'viewId':_0xd65617,'filters':[]}),()=>{const _0x312238=_0x2e4341;_0x52d090[_0x312238(0x32d)](_0x5022a2,_0x1f5997);};},[_0xd593de,_0x52d090,_0x54b57a,_0x5022a2,_0xd65617]),(0x0,h['useEffect'])(()=>{const _0x426249=_0x2f004f;if(!mt(_0x50c394))return;let _0x46768a=!0x0,_0x4410df={'unitId':_0x5022a2,'tableId':_0x54b57a,'viewId':_0xd65617,'filters':[_0x50c394[_0x426249(0x39e)]??null]};return _0x52d090[_0x426249(0xb0)](_0x5022a2,_0x53ba4e[_0x426249(0x1af)],_0x4410df)[_0x426249(0x1ba)](_0x4cb817=>{const _0x170785=_0x426249;_0x46768a&&_0x4cb817&&(_0x26b35c(_0x4cb817),_0x498c81(_0x52d090[_0x170785(0x2b6)](_0x5022a2,_0x53ba4e['current'])??null),_0x2d507c(!0x1));})[_0x426249(0x2a3)](_0x2aea49=>{const _0x1720d7=_0x426249;_0x8c17aa['error'](_0x1720d7(0x2e7),_0x2aea49),_0x46768a&&(_0x26b35c(null),_0x2d507c(!0x0));}),()=>{_0x46768a=!0x1;};},[_0x8c17aa,_0x52d090,_0x54b57a,_0x5022a2,_0x50c394,_0xd65617]),!_0xd7e0eb||!mt(_0x50c394))return null;let _0x1aa6f2=_0x52d090[_0x2f004f(0x2b6)](_0x5022a2,_0x53ba4e[_0x2f004f(0x1af)])===_0x3ea0cd?_0x3ea0cd:null,_0x44a940=_0x426ae1?(0x0,g[_0x2f004f(0x2f3)])(_0x2f004f(0x24a),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x50c394[_0x2f004f(0x84)][_0x2f004f(0x1b0)]==='chart-and-table'?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x2f004f(0x249)},'children':[_0x50c394[_0x2f004f(0x84)][_0x2f004f(0x1b0)]!==_0x2f004f(0x3b5)&&_0x1aa6f2&&(0x0,g[_0x2f004f(0x1d7)])(_0x2f004f(0x24a),{'className':_0x2f004f(0x1c4),'children':(0x0,g[_0x2f004f(0x1d7)])(re,{'isRowDirection':(0x0,e[_0x2f004f(0x332)])(_0x50c394['config'][_0x2f004f(0x3ef)][_0x2f004f(0xa4)]),'runtime':_0x1aa6f2})}),_0x50c394['config'][_0x2f004f(0x1b0)]!==_0x2f004f(0x3ef)&&(0x0,g[_0x2f004f(0x1d7)])('div',{'className':_0x2f004f(0x339),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x50c394[_0x2f004f(0x84)]['pivot'],'view':_0x426ae1['view']})})]}):(0x0,g['jsx'])(_0x2f004f(0x24a),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x369cd9?_0x18d9af['t'](_0x2f004f(0x308)):_0x18d9af['t'](_0x2f004f(0x2df))}),_0x2685f4=(0x0,g[_0x2f004f(0x1d7)])(ft,{'config':_0x50c394['config'],'runtime':_0x1aa6f2,'table':_0xd7e0eb,'onChange':_0x5b6fdb=>{const _0x2060ba=_0x2f004f;_0x3e2a86[_0x2060ba(0x3cc)](_0x5022a2),_0x3e2a86[_0x2060ba(0x284)](_0x5022a2),_0x44a4cd[_0x2060ba(0x363)](e['UpdateBasePivotViewCommand']['id'],{'unitId':_0x5022a2,'tableId':_0x54b57a,'viewId':_0xd65617,'patch':_0x5b6fdb})[_0x2060ba(0x2a3)](_0x5c11ee=>_0x8c17aa['error'](_0x2060ba(0x1f9),_0x5c11ee));}});return(0x0,g[_0x2f004f(0x1d7)])(ue,{'children':(0x0,g[_0x2f004f(0x2f3)])(_0x2f004f(0x24a),{'className':_0x2f004f(0x1f1),'children':[_0x496887&&(0x0,g[_0x2f004f(0x1d7)])(f[_0x2f004f(0x1bb)],{'onClick':()=>_0x7bd3ff(!0x0),'children':_0x18d9af['t']('bases-dashboard-ui.pivot.chartConfiguration')}),(0x0,g[_0x2f004f(0x1d7)])(_0x2f004f(0x24a),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x44a940}),_0x496887&&_0x1ff2a8&&(0x0,g[_0x2f004f(0x1d7)])(t['BaseMobileDrawer'],{'title':_0x18d9af['t']('bases-dashboard-ui.pivot.name'),'onClose':()=>_0x7bd3ff(!0x1),'children':_0x2685f4})]})});}function mt(_0x2eb43d){const _0x4f9291=_0x16f285;return(_0x2eb43d==null?void 0x0:_0x2eb43d[_0x4f9291(0x430)])===a[_0x4f9291(0x17b)][_0x4f9291(0x349)]&&typeof _0x2eb43d[_0x4f9291(0x84)]==_0x4f9291(0x396)&&_0x2eb43d[_0x4f9291(0x84)]!==null&&_0x4f9291(0x418)in _0x2eb43d[_0x4f9291(0x84)]&&'chart'in _0x2eb43d[_0x4f9291(0x84)]&&_0x4f9291(0x1b0)in _0x2eb43d[_0x4f9291(0x84)];}let ht=class extends a[_0x16f285(0x33e)]{constructor(_0x35bad1,_0x59954f,_0x5a0d68,_0x52a0f6,_0x8ec55a,_0x5a5aa6){const _0x1360e5=_0x16f285;super(),this['disposeWithMe'](_0x59954f[_0x1360e5(0x34e)]({'type':a[_0x1360e5(0x17b)][_0x1360e5(0x349)],'renderMode':_0x1360e5(0x337),'icon':s[_0x1360e5(0x1c2)],'component':pt,'menu':{get 'label'(){const _0x99010e=_0x1360e5;return _0x5a5aa6['t'](_0x99010e(0xa0));},get 'description'(){const _0x415b8f=_0x1360e5;return _0x5a5aa6['t'](_0x415b8f(0x1a7));},get 'defaultName'(){return _0x5a5aa6['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x1360e5(0x37f)](_0x35bad1[_0x1360e5(0x34e)](gt(_0x5a0d68,_0x52a0f6,_0x8ec55a,_0x5a5aa6)));}};ht=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t[_0x16f285(0x307)]),N(0x2,(0x0,a[_0x16f285(0xdb)])(e[_0x16f285(0x88)])),N(0x3,a[_0x16f285(0x384)]),N(0x4,a[_0x16f285(0x112)]),N(0x5,(0x0,a[_0x16f285(0xdb)])(a[_0x16f285(0x28c)]))],ht);function gt(_0x49dd7a,_0x55ef44,_0x5127b6,_0x1dff69){const _0x5bbeb5=_0x16f285;return{'change$':(0x0,c[_0x5bbeb5(0x1c3)])(_0x49dd7a['change$'],_0x5127b6[_0x5bbeb5(0x49c)]),'component':Ie,get 'labels'(){const _0x324b8a=_0x5bbeb5;return{'add':_0x1dff69['t'](_0x324b8a(0xd7)),'configure':_0x2f431d=>_0x1dff69['t']('bases-dashboard-ui.dashboard.configure',_0x2f431d),'delete':_0x1dff69['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x1dff69['t'](_0x324b8a(0x31c)),'rename':_0x1dff69['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x1dff69['t'](_0x324b8a(0x426)),'section':_0x1dff69['t'](_0x324b8a(0x259))};},'getItems':_0x57daf1=>{const _0x5c1290=_0x5bbeb5;let _0x26936f=_0x49dd7a[_0x5c1290(0x1bc)](_0x57daf1);return _0x26936f[_0x5c1290(0xa2)][_0x5c1290(0x351)](_0x297858=>{const _0x3fefa2=_0x5c1290;let _0x432338=_0x26936f[_0x3fefa2(0x1e5)][_0x297858];return _0x432338?[{'id':_0x432338['id'],'name':_0x432338['name'],'readonly':!(0x0,e['canEditBaseDashboard'])(_0x5127b6,_0x57daf1,_0x432338['id'])}]:[];});},'create':async _0x5f2389=>{const _0x5de630=_0x5bbeb5;let _0x2a7499=_0x49dd7a[_0x5de630(0x1bc)](_0x5f2389),_0x5362b5=_0x5de630(0x2f2)+(0x0,a['generateRandomId'])(0x8),_0xd25779=_t(_0x2a7499['dashboardOrder'][_0x5de630(0x351)](_0x297941=>{const _0x458b04=_0x5de630;let _0x2a1484=_0x2a7499[_0x458b04(0x1e5)][_0x297941];return _0x2a1484?[_0x2a1484['name']]:[];}),_0x21c21a=>_0x1dff69['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x21c21a)));return await _0x55ef44[_0x5de630(0x363)](e['CreateBaseDashboardCommand']['id'],{'unitId':_0x5f2389,'dashboard':{'id':_0x5362b5,'name':_0xd25779,'widgetOrder':[],'widgets':{}}})?_0x5362b5:null;},'rename':async(_0x5430e4,_0x4afc45,_0x445145)=>{const _0x4d67dc=_0x5bbeb5;let _0x27635a=_0x49dd7a[_0x4d67dc(0x244)](_0x5430e4,_0x4afc45);return!!(_0x27635a&&await _0x55ef44[_0x4d67dc(0x363)](e['UpdateBaseDashboardCommand']['id'],{'unitId':_0x5430e4,'dashboard':{..._0x27635a,'name':_0x445145}}));},'remove':(_0xdefcf1,_0x810cd9)=>_0x55ef44[_0x5bbeb5(0x363)](e['DeleteBaseDashboardCommand']['id'],{'unitId':_0xdefcf1,'dashboardId':_0x810cd9})};}function _t(_0x52fa98,_0x3920d5){const _0xa3617b=_0x16f285;let _0x1a0eb2=new Set(_0x52fa98),_0x5d0d6d=_0x1a0eb2[_0xa3617b(0x2b9)]+0x1,_0x8dd3bc=_0x3920d5(_0x5d0d6d);for(;_0x1a0eb2[_0xa3617b(0x3b0)](_0x8dd3bc);)_0x5d0d6d+=0x1,_0x8dd3bc=_0x3920d5(_0x5d0d6d);return _0x8dd3bc;}let Y=class extends a[_0x16f285(0xe2)]{constructor(_0x1817a7=C,_0x225b07,_0xda1326){const _0x2f5f58=_0x16f285;super(),this[_0x2f5f58(0x248)]=_0x1817a7,this[_0x2f5f58(0x353)]=_0x225b07,this[_0x2f5f58(0x3ad)]=_0xda1326;let {..._0x20192b}=(0x0,a[_0x2f5f58(0x1c3)])({},C,this[_0x2f5f58(0x248)]);this[_0x2f5f58(0x3ad)]['setConfig'](S,_0x20192b);}[_0x16f285(0x41c)](){const _0x4f4934=_0x16f285;this[_0x4f4934(0x353)][_0x4f4934(0x3be)]([F]),this[_0x4f4934(0x353)][_0x4f4934(0x3be)]([W]),this[_0x4f4934(0x353)]['add']([ht]);}['onReady'](){const _0x5cf005=_0x16f285;(0x0,a[_0x5cf005(0xd3)])(this[_0x5cf005(0x353)],[[F],[W],[ht]]);}};B(Y,_0x16f285(0x430),a['UniverInstanceType'][_0x16f285(0x12b)]),B(Y,_0x16f285(0x16c),'BASE_DASHBOARD_UI_PLUGIN'),B(Y,_0x16f285(0x47c),b),B(Y,_0x16f285(0x103),x),Y=P([(0x0,a[_0x16f285(0x437)])(r[_0x16f285(0x39d)],e[_0x16f285(0x462)],t[_0x16f285(0x305)],n[_0x16f285(0x14d)],i[_0x16f285(0x129)],o[_0x16f285(0x147)]),N(0x1,(0x0,a['Inject'])(a[_0x16f285(0x31a)])),N(0x2,a[_0x16f285(0x40a)])],Y);function vt(_0x4831fe,_0x5a7a51,_0x123cdb,_0x2829e3){const _0x3f9d12=_0x16f285;let _0x5754cb={..._0x4831fe};if(_0x5a7a51['includes']('w')){let _0xab4528=_0x4831fe['column']+_0x4831fe[_0x3f9d12(0x266)];_0x5754cb['column']=Math['max'](0x0,Math[_0x3f9d12(0x2a0)](_0xab4528-0x1,_0x4831fe[_0x3f9d12(0x373)]+_0x123cdb)),_0x5754cb['columnSpan']=_0xab4528-_0x5754cb['column'];}else _0x5a7a51[_0x3f9d12(0x8c)]('e')&&(_0x5754cb[_0x3f9d12(0x266)]=Math[_0x3f9d12(0xe9)](0x1,Math[_0x3f9d12(0x2a0)](e['BASES_DASHBOARD_GRID_COLUMNS']-_0x4831fe[_0x3f9d12(0x373)],_0x4831fe[_0x3f9d12(0x266)]+_0x123cdb)));if(_0x5a7a51[_0x3f9d12(0x8c)]('n')){let _0x5b1ccd=_0x4831fe[_0x3f9d12(0x348)]+_0x4831fe[_0x3f9d12(0x441)];_0x5754cb[_0x3f9d12(0x348)]=Math['max'](0x0,Math[_0x3f9d12(0x2a0)](_0x5b1ccd-0x1,_0x4831fe['row']+_0x2829e3)),_0x5754cb[_0x3f9d12(0x441)]=_0x5b1ccd-_0x5754cb['row'];}else _0x5a7a51['includes']('s')&&(_0x5754cb[_0x3f9d12(0x441)]=Math['max'](0x1,_0x4831fe[_0x3f9d12(0x441)]+_0x2829e3));return _0x5754cb;}function yt(_0x5c1ff4){const _0x29c9dc=_0x16f285;let _0x4a587b=Math[_0x29c9dc(0xe9)](0x1,Math[_0x29c9dc(0x2a0)](e['BASES_DASHBOARD_GRID_COLUMNS'],Math[_0x29c9dc(0x19a)](_0x5c1ff4[_0x29c9dc(0x266)])));return{'column':Math[_0x29c9dc(0xe9)](0x0,Math['min'](e[_0x29c9dc(0x322)]-_0x4a587b,Math[_0x29c9dc(0x19a)](_0x5c1ff4[_0x29c9dc(0x373)]))),'row':Math[_0x29c9dc(0xe9)](0x0,Math[_0x29c9dc(0x19a)](_0x5c1ff4[_0x29c9dc(0x348)])),'columnSpan':_0x4a587b,'rowSpan':Math[_0x29c9dc(0xe9)](0x1,Math['round'](_0x5c1ff4['rowSpan']))};}function bt(_0x5d42f8,_0xdb6170,_0xf787e7){const _0x49e374=_0x16f285;let _0x2b6ed2=new Map(_0x5d42f8),_0x163bdc=yt(_0xf787e7);_0x2b6ed2[_0x49e374(0x1e6)](_0xdb6170,_0x163bdc);let _0x238800=[[_0xdb6170,_0x163bdc]];for(let [_0x366a6d,_0x178a3a]of _0x2b6ed2){if(_0x366a6d===_0xdb6170)continue;let _0x703f82=yt(_0x178a3a);for(;_0x238800[_0x49e374(0x153)](([,_0x5da4f5])=>St(_0x703f82,_0x5da4f5));)_0x703f82={..._0x703f82,'row':_0x703f82['row']+0x1};for(;_0x703f82[_0x49e374(0x348)]>0x0;){let _0x2db48f={..._0x703f82,'row':_0x703f82[_0x49e374(0x348)]-0x1};if(_0x238800[_0x49e374(0x153)](([,_0x57ed29])=>St(_0x2db48f,_0x57ed29)))break;_0x703f82=_0x2db48f;}_0x238800['push']([_0x366a6d,_0x703f82]),_0x2b6ed2[_0x49e374(0x1e6)](_0x366a6d,_0x703f82);}return _0x2b6ed2;}function xt(_0x2cc980,_0x203ade,_0x39dfab,_0x5cd3f8=0x38,_0x249272=0x16){const _0x256eb2=_0x16f285;return _0x2cc980<_0x203ade+_0x5cd3f8?-Math['ceil'](_0x249272*(0x1-Math[_0x256eb2(0xe9)](0x0,_0x2cc980-_0x203ade)/_0x5cd3f8)):_0x2cc980>_0x39dfab-_0x5cd3f8?Math[_0x256eb2(0x1aa)](_0x249272*(0x1-Math[_0x256eb2(0xe9)](0x0,_0x39dfab-_0x2cc980)/_0x5cd3f8)):0x0;}function St(_0x1135ab,_0x27917c){const _0x1c3a3a=_0x16f285;return _0x1135ab[_0x1c3a3a(0x373)]<_0x27917c['column']+_0x27917c[_0x1c3a3a(0x266)]&&_0x1135ab['column']+_0x1135ab[_0x1c3a3a(0x266)]>_0x27917c[_0x1c3a3a(0x373)]&&_0x1135ab[_0x1c3a3a(0x348)]<_0x27917c[_0x1c3a3a(0x348)]+_0x27917c[_0x1c3a3a(0x441)]&&_0x1135ab[_0x1c3a3a(0x348)]+_0x1135ab[_0x1c3a3a(0x441)]>_0x27917c[_0x1c3a3a(0x348)];}const Ct=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x16f285(0x23d)},{'direction':'ne','className':_0x16f285(0x46b)},{'direction':'e','className':_0x16f285(0x3ed)},{'direction':'se','className':_0x16f285(0x18a)},{'direction':'s','className':_0x16f285(0x19d)},{'direction':'sw','className':_0x16f285(0x120)},{'direction':'w','className':_0x16f285(0x35e)}];function wt({dashboard:_0x304d59,dragLabel:_0x3a590d,editable:_0x482fd5=!0x0,onLayoutsCommit:_0x1271ac,onSelectWidget:_0x555b07,renderWidget:_0x233f4c,renderWidgetActions:_0x42f628,resizeLabel:_0x5245a9,selectedWidgetId:_0x158d5b,widgetLabel:_0x1e25fa}){const _0x5b8be9=_0x16f285;let _0x54194e=(0x0,h[_0x5b8be9(0x232)])(null),_0x323590=(0x0,h[_0x5b8be9(0x232)])(null),[_0x296ac8,_0x3d99fa]=(0x0,h[_0x5b8be9(0x450)])(!0x1),_0x7ca61f=(0x0,h[_0x5b8be9(0x4a4)])(()=>new Map(_0x304d59[_0x5b8be9(0x2f8)][_0x5b8be9(0x351)](_0xa82b3b=>{const _0x1d36c6=_0x5b8be9;let _0x4b43db=_0x304d59[_0x1d36c6(0x1c8)][_0xa82b3b];return _0x4b43db?[[_0xa82b3b,_0x4b43db[_0x1d36c6(0x3c1)]]]:[];})),[_0x304d59]),[_0x399fec,_0x58bfce]=(0x0,h[_0x5b8be9(0x450)])(_0x7ca61f);(0x0,h[_0x5b8be9(0x2e0)])(()=>{const _0x37e265=_0x5b8be9;_0x323590[_0x37e265(0x1af)]||_0x58bfce(_0x7ca61f);},[_0x7ca61f]),(0x0,h[_0x5b8be9(0x2e0)])(()=>{const _0x20f97e=_0x5b8be9;if(!_0x296ac8)return;let _0x22871f=_0x3dc782=>{const _0xddad35=_0x2d20;let _0x3775d2=_0x54194e[_0xddad35(0x1af)];if(!_0x3775d2)return null;let _0x4e35dd=_0x3775d2[_0xddad35(0x1b2)](),_0x2e07b8=Math[_0xddad35(0xe9)](0x1,(_0x4e35dd[_0xddad35(0x316)]-0x8*(e[_0xddad35(0x322)]-0x1))/e['BASES_DASHBOARD_GRID_COLUMNS']),_0x33cabd=Math[_0xddad35(0x19a)]((_0x3775d2[_0xddad35(0x2cb)]-_0x3dc782[_0xddad35(0x126)])/(e[_0xddad35(0x479)]+0x8)),_0x4fc468=Math['round']((_0x3dc782[_0xddad35(0x2d5)]-_0x3dc782[_0xddad35(0x472)])/(_0x2e07b8+0x8)),_0xc64ca=Math[_0xddad35(0x19a)]((_0x3dc782['pointerY']-_0x3dc782[_0xddad35(0x3e1)])/(e['BASES_DASHBOARD_DEFAULT_ROW_HEIGHT']+0x8))+_0x33cabd,_0x1376de=_0x3dc782[_0xddad35(0x7a)]===_0xddad35(0x1de)?{..._0x3dc782[_0xddad35(0x218)],'column':_0x3dc782[_0xddad35(0x218)][_0xddad35(0x373)]+_0x4fc468,'row':_0x3dc782[_0xddad35(0x218)]['row']+_0xc64ca}:vt(_0x3dc782['initial'],_0x3dc782[_0xddad35(0x76)]??'se',_0x4fc468,_0xc64ca),_0x4e11dd=bt(_0x3dc782[_0xddad35(0x3a9)],_0x3dc782['id'],_0x1376de);return _0x58bfce(_0x4e11dd),_0x4e11dd;},_0x90f424=_0x3175ee=>{const _0x2d7f50=_0x2d20;let _0xbe918=_0x323590[_0x2d7f50(0x1af)];if(!_0xbe918)return;let _0x463e3a={..._0xbe918,'pointerX':_0x3175ee[_0x2d7f50(0x1b7)],'pointerY':_0x3175ee['clientY']};_0x323590[_0x2d7f50(0x1af)]=_0x463e3a;},_0xe922d0=()=>{const _0x156e29=_0x2d20;let _0x190230=_0x323590[_0x156e29(0x1af)],_0x2278ff=_0x190230?_0x22871f(_0x190230):null;_0x323590[_0x156e29(0x1af)]=null,_0x3d99fa(!0x1),_0x2278ff&&_0x1271ac(_0x2278ff);},_0x50c178=0x0,_0x40f2ea=()=>{const _0x4c03f0=_0x2d20;let _0x2b21d=_0x54194e['current'],_0x1dfb79=_0x323590[_0x4c03f0(0x1af)];if(_0x2b21d&&_0x1dfb79){let _0x123913=_0x2b21d[_0x4c03f0(0x1b2)](),_0x2ecc1c=xt(_0x1dfb79[_0x4c03f0(0xa8)],_0x123913['top'],_0x123913['bottom']);_0x2ecc1c!==0x0&&(_0x2b21d['scrollTop']+=_0x2ecc1c),_0x22871f(_0x1dfb79),_0x50c178=requestAnimationFrame(_0x40f2ea);}};return _0x50c178=requestAnimationFrame(_0x40f2ea),window[_0x20f97e(0x313)](_0x20f97e(0x146),_0x90f424),window['addEventListener'](_0x20f97e(0x3ca),_0xe922d0),()=>{const _0x6700d3=_0x20f97e;cancelAnimationFrame(_0x50c178),window[_0x6700d3(0x325)](_0x6700d3(0x146),_0x90f424),window[_0x6700d3(0x325)](_0x6700d3(0x3ca),_0xe922d0);};},[_0x296ac8,_0x1271ac]);let _0x112ec1=Math[_0x5b8be9(0xe9)](0x8,...Array[_0x5b8be9(0x1d1)](_0x399fec[_0x5b8be9(0xe3)]())[_0x5b8be9(0x201)](_0x48f81c=>_0x48f81c[_0x5b8be9(0x348)]+_0x48f81c[_0x5b8be9(0x441)])),_0x2042f1=(_0x1dbf07,_0x2c6329,_0x37f097,_0x502edd)=>{const _0x44f5a9=_0x5b8be9;_0x1dbf07[_0x44f5a9(0x477)](),_0x1dbf07[_0x44f5a9(0x3bd)]();let _0x32580f=_0x54194e[_0x44f5a9(0x1af)],_0xa48349={'id':_0x2c6329['id'],'mode':_0x37f097,'pointerX':_0x1dbf07[_0x44f5a9(0x1b7)],'pointerY':_0x1dbf07[_0x44f5a9(0x36f)],'startX':_0x1dbf07[_0x44f5a9(0x1b7)],'startY':_0x1dbf07['clientY'],'startScrollTop':(_0x32580f==null?void 0x0:_0x32580f[_0x44f5a9(0x2cb)])??0x0,'initial':_0x399fec[_0x44f5a9(0x22e)](_0x2c6329['id'])??_0x2c6329['layout'],'initialLayouts':new Map(_0x399fec),'resizeDirection':_0x502edd};_0x323590['current']=_0xa48349,_0x3d99fa(!0x0);};return(0x0,g['jsx'])(_0x5b8be9(0x24a),{'ref':_0x54194e,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x5b8be9(0x19b)])(_0x5b8be9(0x236),f[_0x5b8be9(0x36e)]),'onClick':_0x482fd5?_0x39c4fa=>{const _0x426a5a=_0x5b8be9;if(!(_0x39c4fa[_0x426a5a(0x242)]instanceof Node)||!_0x39c4fa[_0x426a5a(0x3b8)]['contains'](_0x39c4fa['target']))return;let _0x2b613e=_0x39c4fa[_0x426a5a(0x242)]instanceof Element?_0x39c4fa['target']:_0x39c4fa['target']['parentElement'];_0x2b613e!=null&&_0x2b613e[_0x426a5a(0x160)](_0x426a5a(0x4a1))||_0x555b07==null||_0x555b07();}:void 0x0,'children':(0x0,g[_0x5b8be9(0x1d7)])('div',{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-12\x20univer-pb-6','style':{'gap':0x8,'gridAutoRows':e[_0x5b8be9(0x479)],'minHeight':_0x112ec1*(e[_0x5b8be9(0x479)]+0x8)},'children':_0x304d59[_0x5b8be9(0x2f8)]['map'](_0x119a44=>{const _0x1291e5=_0x5b8be9;var _0x12356f;let _0x228978=_0x304d59['widgets'][_0x119a44],_0x149475=_0x399fec[_0x1291e5(0x22e)](_0x119a44);return!_0x228978||!_0x149475?null:(0x0,g[_0x1291e5(0x2f3)])(_0x1291e5(0x1ed),{'data-dashboard-widget':_0x228978['id'],'aria-label':_0x228978[_0x1291e5(0x2ba)]??_0x1e25fa(_0x228978),'className':(0x0,f[_0x1291e5(0x19b)])('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x228978[_0x1291e5(0x430)]===e['BaseDashboardWidgetType'][_0x1291e5(0x17d)]||_0x228978[_0x1291e5(0x430)]===e[_0x1291e5(0x127)][_0x1291e5(0x2c0)]?_0x1291e5(0xfd):_0x1291e5(0x1bd),_0x482fd5&&_0x158d5b===_0x228978['id']?_0x1291e5(0x13f):_0x1291e5(0x89)),'style':{'gridColumn':_0x149475[_0x1291e5(0x373)]+0x1+_0x1291e5(0x3c6)+_0x149475[_0x1291e5(0x266)],'gridRow':_0x149475['row']+0x1+_0x1291e5(0x3c6)+_0x149475['rowSpan']},'tabIndex':_0x482fd5?0x0:void 0x0,'onClick':_0x482fd5?()=>_0x555b07==null?void 0x0:_0x555b07(_0x228978['id']):void 0x0,'onFocus':_0x482fd5?()=>_0x555b07==null?void 0x0:_0x555b07(_0x228978['id']):void 0x0,'children':[_0x482fd5&&(0x0,g[_0x1291e5(0x1d7)])('button',{'type':_0x1291e5(0x28a),'aria-label':_0x3a590d,'data-dashboard-drag-handle':_0x228978['id'],'className':(0x0,f[_0x1291e5(0x19b)])(_0x1291e5(0x7d),_0x296ac8&&((_0x12356f=_0x323590[_0x1291e5(0x1af)])==null?void 0x0:_0x12356f['id'])===_0x228978['id']&&_0x323590['current'][_0x1291e5(0x7a)]===_0x1291e5(0x1de)?_0x1291e5(0x3a6):_0x1291e5(0x3b9)),'onPointerDown':_0x2e9937=>_0x2042f1(_0x2e9937,_0x228978,_0x1291e5(0x1de)),'children':(0x0,g[_0x1291e5(0x1d7)])(s['GripVerticalIcon'],{'className':_0x1291e5(0x3bb),'aria-hidden':'true'})}),_0x482fd5&&(0x0,g[_0x1291e5(0x1d7)])(_0x1291e5(0x24a),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x42f628==null?void 0x0:_0x42f628(_0x228978)}),(0x0,g[_0x1291e5(0x1d7)])(_0x1291e5(0x24a),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x233f4c(_0x228978)}),_0x482fd5&&Ct['map'](({className:_0x2c6289,direction:_0x214980})=>{const _0x21dcc9=_0x1291e5;let _0x383ab9=_0x214980[_0x21dcc9(0x444)]===0x2;return(0x0,g['jsx'])(_0x21dcc9(0x28a),{'type':_0x21dcc9(0x28a),'aria-label':_0x5245a9,'data-dashboard-resize-handle':_0x214980,'data-dashboard-resize-control':_0x383ab9?_0x214980:void 0x0,'data-dashboard-resize-edge':_0x383ab9?void 0x0:_0x214980,'className':(0x0,f[_0x21dcc9(0x19b)])(_0x21dcc9(0x2eb),_0x383ab9?_0x21dcc9(0x10a):_0x21dcc9(0x4a7),_0x2c6289,_0x158d5b===_0x228978['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x17c07f=>_0x2042f1(_0x17c07f,_0x228978,_0x21dcc9(0x289),_0x214980)},_0x214980);})]},_0x228978['id']);})})});}var Tt;const X={'axis':{...n[_0x16f285(0x469)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n['DEFAULT_CHART_FUNNEL_VALUES'],'heatmap':n['DEFAULT_CHART_HEATMAP_VALUES'],'indicatorLine':n[_0x16f285(0x39f)],'legend':n[_0x16f285(0x2bb)],'lineAndArea':n[_0x16f285(0x9e)],'pareto':n['DEFAULT_CHART_PARETO_VALUES'],'pie':n[_0x16f285(0x2d9)],'radar':n[_0x16f285(0x409)],'relation':{...n[_0x16f285(0x116)],'useValueAsSymbolSize':!0x0},'series':{...n[_0x16f285(0x2b5)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_[_0x16f285(0xf7)][_0x16f285(0x49d)])==null?void 0x0:Tt[_0x16f285(0x191)])??!0x1}},'style':n[_0x16f285(0x257)],'titles':n['DEFAULT_CHART_TITLE_VALUES'],'trendline':n['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...n[_0x16f285(0x440)],'useSubtotal':!0x0},'waterfallStyle':n[_0x16f285(0x3aa)],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},Et=[_[_0x16f285(0x22f)][_0x16f285(0x2e6)],_[_0x16f285(0x22f)][_0x16f285(0x330)],_[_0x16f285(0x22f)][_0x16f285(0x422)],_[_0x16f285(0x22f)][_0x16f285(0x1ea)],_['ChartTypeBits'][_0x16f285(0x2e9)],_[_0x16f285(0x22f)]['Relation'],_[_0x16f285(0x22f)][_0x16f285(0x32f)],_[_0x16f285(0x22f)][_0x16f285(0x470)],_[_0x16f285(0x22f)][_0x16f285(0x3a2)],_[_0x16f285(0x22f)]['Candlestick'],_[_0x16f285(0x22f)]['Histogram'],_[_0x16f285(0x22f)][_0x16f285(0x3eb)],_[_0x16f285(0x22f)][_0x16f285(0x7c)],_[_0x16f285(0x22f)][_0x16f285(0x372)],_[_0x16f285(0x22f)][_0x16f285(0x18b)]];function Dt(_0x3dc4ef){const _0x320dd3=_0x16f285;let {config:_0x5f2b38,onChange:_0x13fa09,runtime:_0x33ca88,tableName:_0x29deba}=_0x3dc4ef,_0x56ce30=(0x0,m[_0x320dd3(0x15f)])(W),_0x396c5f=(0x0,m[_0x320dd3(0x15f)])(a['LocaleService']),[_0x2b2b9a,_0xf4d00a]=(0x0,h[_0x320dd3(0x450)])(n[_0x320dd3(0x222)]['Data']),_0x57e645=(0x0,h[_0x320dd3(0x4a4)])(()=>new n[(_0x320dd3(0x143))](_0x33ca88[_0x320dd3(0x238)],{'commit':_0x1fa29f=>{const _0x5dbb08=_0x320dd3;var _0x92a650;let _0x353852=_0x33ca88[_0x5dbb08(0x238)],_0x52cd00=(0x0,_[_0x5dbb08(0x268)])(_0x1fa29f,{'series':(_0x92a650=_0x353852[_0x5dbb08(0x84)])==null?void 0x0:_0x92a650['series'],'currentChartType':_0x353852['chartType'],'currentStyle':_0x353852[_0x5dbb08(0x468)],'currentContext':_0x353852['context'],'currentDataAggregation':_0x353852['dataAggregation']});_0x13fa09({'chart':Ot(_0x5f2b38[_0x5dbb08(0x3ef)],_0x52cd00)});}}),[_0x5f2b38[_0x320dd3(0x3ef)],_0x13fa09,_0x33ca88]),_0x4afc9d=(0x0,h[_0x320dd3(0x4a4)])(()=>(0x0,n['buildChartTypeSelectOptions'])(n[_0x320dd3(0x38d)][_0x320dd3(0x201)](_0x3010c5=>({..._0x3010c5,'label':_0x396c5f['t'](Mt(_0x3010c5[_0x320dd3(0x392)]))}))),[_0x396c5f]);return(0x0,g[_0x320dd3(0x1d7)])(n['ChartEditorProvider'],{'chartUIService':_0x56ce30,'hostAdapter':_0x57e645,'children':(0x0,g[_0x320dd3(0x2f3)])('div',{'className':_0x320dd3(0x33f),'children':[(0x0,g[_0x320dd3(0x1d7)])(n[_0x320dd3(0x286)],{'ariaLabel':_0x396c5f['t'](_0x320dd3(0x414)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x396c5f['t'](_0x320dd3(0x4a5)),'panelId':'base-pivot-chart-setup','value':n[_0x320dd3(0x222)][_0x320dd3(0x9b)]},{'label':_0x396c5f['t'](_0x320dd3(0x3d0)),'panelId':_0x320dd3(0x405),'value':n[_0x320dd3(0x222)]['Style']}],'value':_0x2b2b9a,'onChange':_0xf4d00a}),_0x2b2b9a===n[_0x320dd3(0x222)][_0x320dd3(0x9b)]?(0x0,g[_0x320dd3(0x1d7)])(n[_0x320dd3(0x41b)],{'id':_0x320dd3(0x451),'label':_0x396c5f['t'](_0x320dd3(0x4a5)),'children':(0x0,g[_0x320dd3(0x2f3)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,g[_0x320dd3(0x1d7)])(n[_0x320dd3(0x131)],{'options':_0x4afc9d}),(0x0,g['jsx'])(n[_0x320dd3(0x28b)],{}),(0x0,g['jsx'])(n['ChartThemeField'],{}),(0x0,g[_0x320dd3(0x1d7)])(kt,{}),(0x0,g[_0x320dd3(0x1d7)])(n[_0x320dd3(0x1ac)],{}),(0x0,g[_0x320dd3(0x2f3)])(_0x320dd3(0x24a),{'children':[(0x0,g[_0x320dd3(0x1d7)])(n['ChartEditBlockTitle'],{'title':_0x396c5f['t']('bases-dashboard-ui.pivot.dataSource')}),(0x0,g[_0x320dd3(0x1d7)])(f[_0x320dd3(0x3cd)],{'disabled':!0x0,'value':_0x29deba})]}),(0x0,g[_0x320dd3(0x1d7)])(n['ChartCommonDataMappingSection'],{'orientationControl':(0x0,g[_0x320dd3(0x1d7)])(f[_0x320dd3(0x1bb)],{'size':_0x320dd3(0x362),'onClick':()=>_0x13fa09({'chart':{..._0x5f2b38['chart'],'orient':_0x5f2b38[_0x320dd3(0x3ef)][_0x320dd3(0xa4)]==='row'?_0x320dd3(0x373):_0x320dd3(0x348)}}),'children':_0x396c5f['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),(0x0,g['jsx'])(n[_0x320dd3(0xfe)],{}),(0x0,g[_0x320dd3(0x1d7)])(n['ChartWaterfallSetupFields'],{'defaultValues':X[_0x320dd3(0x295)]}),(0x0,g['jsxs'])(_0x320dd3(0x24a),{'children':[(0x0,g[_0x320dd3(0x1d7)])(n['ChartEditBlockTitle'],{'title':_0x396c5f['t'](_0x320dd3(0x2a6))}),(0x0,g[_0x320dd3(0x1d7)])(f['Select'],{'value':_0x5f2b38['displayMode'],'options':[{'value':_0x320dd3(0x133),'label':_0x396c5f['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':'chart','label':_0x396c5f['t'](_0x320dd3(0x260))},{'value':_0x320dd3(0x3b5),'label':_0x396c5f['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x1ba200=>{const _0x1bdb02=_0x320dd3;(_0x1ba200===_0x1bdb02(0x133)||_0x1ba200===_0x1bdb02(0x3ef)||_0x1ba200==='table')&&_0x13fa09({'displayMode':_0x1ba200});}})]})]})}):(0x0,g[_0x320dd3(0x1d7)])(n[_0x320dd3(0x41b)],{'id':_0x320dd3(0x405),'label':_0x396c5f['t'](_0x320dd3(0x3d0)),'children':(0x0,g[_0x320dd3(0x1d7)])(At,{})})]})});}function Ot(_0x36bdba,_0x9f68cf){const _0x125205=_0x16f285;return{..._0x36bdba,'type':_0x9f68cf[_0x125205(0x20a)]??_0x36bdba['type'],'style':_0x9f68cf[_0x125205(0x468)]??_0x36bdba[_0x125205(0x468)],'context':_0x9f68cf[_0x125205(0x1f7)]??_0x36bdba[_0x125205(0x1f7)],'dataAggregation':_0x9f68cf[_0x125205(0x255)]??_0x36bdba[_0x125205(0x255)]};}function kt(){const _0x467eac=_0x16f285;let _0x58a0ae=(0x0,n[_0x467eac(0x10b)])();return(0x0,g[_0x467eac(0x1d7)])(n[_0x467eac(0x9f)],{'visible':Et[_0x467eac(0x448)](_0x43eec6=>!_[_0x467eac(0x432)][_0x467eac(0x115)](_0x58a0ae,_0x43eec6))});}function Z(_0x448c63){const _0x3be564=_0x16f285;return(0x0,g[_0x3be564(0x2f3)])(n[_0x3be564(0x4aa)],{'id':_0x448c63['id'],'children':[(0x0,g[_0x3be564(0x1d7)])(n['ChartSectionAccordionTrigger'],{'children':_0x448c63[_0x3be564(0x1d9)]}),(0x0,g[_0x3be564(0x1d7)])(n[_0x3be564(0x13c)],{'children':_0x448c63[_0x3be564(0x3db)]})]});}function At(){const _0x1a2976=_0x16f285;let _0x1517c2=(0x0,m['useDependency'])(a[_0x1a2976(0x28c)]),_0x28fc10=(0x0,n[_0x1a2976(0x10b)])(),_0x357d43=(0x0,n[_0x1a2976(0x42a)])(),[_0x5bec2e,_0x3d02c0]=(0x0,h[_0x1a2976(0x450)])(null),_0x34765d=_['chartBitsUtils'][_0x1a2976(0x115)](_0x28fc10,_[_0x1a2976(0x22f)][_0x1a2976(0x2f9)]),_0x26e838=_0x28fc10===_[_0x1a2976(0x22f)]['Radar'],_0x4c43b0=_0x28fc10===_['ChartTypeBits'][_0x1a2976(0x422)],_0x3d70cc=_0x28fc10===_[_0x1a2976(0x22f)][_0x1a2976(0x2e9)],_0x5532d9=_[_0x1a2976(0x432)]['baseOn'](_0x28fc10,_[_0x1a2976(0x22f)][_0x1a2976(0xb5)]),_0x4d23f7=_0x28fc10===_[_0x1a2976(0x22f)][_0x1a2976(0x1c1)],_0x4d1320=_0x28fc10===_[_0x1a2976(0x22f)][_0x1a2976(0x2bf)],_0x6a2140=_0x28fc10===_[_0x1a2976(0x22f)]['Pareto'],_0x5e046e=_0x28fc10===_[_0x1a2976(0x22f)][_0x1a2976(0x470)],_0x2974d9=(0x0,n[_0x1a2976(0x410)])(_0x28fc10,n[_0x1a2976(0x2b0)][_0x1a2976(0x9a)])&&!_0x5532d9&&!_0x6a2140,_0x7ed411=jt(_0x28fc10,_0x1517c2);return(0x0,g['jsxs'])(n[_0x1a2976(0x3a0)],{'value':_0x5bec2e,'onChange':_0x3d02c0,'children':[(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x26a)],'label':_0x1517c2['t'](_0x1a2976(0x151)),'children':(0x0,g['jsx'])(n[_0x1a2976(0x104)],{'defaultValues':X['style']})}),(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)]['ChartAndAxisTitles'],'label':_0x1517c2['t'](_0x1a2976(0xac)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x15c)],{'commitMode':'blur','defaultValues':X[_0x1a2976(0x18d)]})}),(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x239)],{'section':_0x1a2976(0x16d)}),_0x2974d9&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x303)],'label':_0x1517c2['t'](_0x1a2976(0x285)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x24b)],{'defaultValues':X[_0x1a2976(0x421)],'NumberFormatField':n[_0x1a2976(0x2b4)]})}),_0x4d1320&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x1a1)],'label':_0x1517c2['t'](_0x1a2976(0x3b7)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x20e)],{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x1564b9,target:_0x1eb091})=>_0x1eb091===_[_0x1a2976(0x369)][_0x1a2976(0x37b)]?_0x1517c2['t'](_0x1a2976(0x377)):_0x1564b9?_0x1564b9+'-('+_0x1517c2['t']('bases-dashboard-ui.chart.'+(_0x1eb091===_['ChartWaterfallStyleTarget'][_0x1a2976(0xbc)]?_0x1a2976(0x9c):_0x1a2976(0x408)))+')':'','NumberFormatField':n[_0x1a2976(0x2b4)]})}),_0x6a2140&&(0x0,g[_0x1a2976(0x2f3)])(g[_0x1a2976(0x20f)],{'children':[(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0xf6)],'label':_0x1517c2['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x27d)],{'defaultValues':X[_0x1a2976(0x315)],'NumberFormatField':n[_0x1a2976(0x2b4)],'showDataPointEditor':!0x0,'target':_0x1a2976(0x292)})}),(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection'][_0x1a2976(0x3e8)],'label':_0x1517c2['t'](_0x1a2976(0xb7)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x27d)],{'defaultValues':X[_0x1a2976(0x315)],'NumberFormatField':n[_0x1a2976(0x2b4)],'showDataPointEditor':!0x1,'target':_0x1a2976(0x2c1)})})]}),_0x34765d&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x258)],'label':_0x1517c2['t'](_0x1a2976(0x2a2)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x36d)],{'defaultValues':X[_0x1a2976(0x2ee)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x4c43b0&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x422)],'label':_0x1517c2['t'](_0x1a2976(0xc8)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x336)],{'defaultValues':X[_0x1a2976(0x272)]})}),_0x26e838&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection'][_0x1a2976(0x330)],'label':_0x1517c2['t'](_0x1a2976(0x27e)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x1ca)],{'defaultValues':X[_0x1a2976(0xa6)]})}),_0x3d70cc&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection']['Funnel'],'label':_0x1517c2['t']('bases-dashboard-ui.chart.section.funnel'),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x173)],{'defaultValues':X[_0x1a2976(0x320)],'gapControl':_0x1a2976(0x38c)})}),_0x5e046e&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x470)],'label':_0x1517c2['t'](_0x1a2976(0x189)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x30f)],{'defaultValues':X[_0x1a2976(0x443)]})}),_0x4d23f7&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection'][_0x1a2976(0x1c1)],'label':_0x1517c2['t'](_0x1a2976(0x496)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x2c2)],{'defaultValues':X[_0x1a2976(0xb3)]})}),(0x0,n['chartTypeSupportsLineAndAreaStyle'])(_0x28fc10)&&(0x0,g['jsx'])(Z,{'id':n[_0x1a2976(0x265)]['LineAndArea'],'label':_0x1517c2['t'](_[_0x1a2976(0x432)][_0x1a2976(0x115)](_0x28fc10,_['ChartTypeBits']['Area'])?_0x1a2976(0x47f):_0x1a2976(0x44e)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x46c)],{'defaultValues':X['lineAndArea'],'lineStyleControl':'segmented'})}),(0x0,n[_0x1a2976(0x410)])(_0x28fc10,n[_0x1a2976(0x2b0)]['Legend'])&&(0x0,g['jsx'])(Z,{'id':n[_0x1a2976(0x265)]['Legend'],'label':_0x1517c2['t'](_0x1a2976(0x304)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x110)],{'defaultValues':X[_0x1a2976(0x213)]})}),(0x0,n['chartTypeSupportsCapability'])(_0x28fc10,n['ChartEditorCapability'][_0x1a2976(0xc9)])&&(0x0,g[_0x1a2976(0x2f3)])(g[_0x1a2976(0x20f)],{'children':[(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection'][_0x1a2976(0x489)],'label':_0x1517c2['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':(0x0,g[_0x1a2976(0x1d7)])(n['ChartAxisSection'],{'axis':'x','defaultValues':X['axis'],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x2ed)],'label':_0x1517c2['t'](_0x1a2976(0x8a)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x2ab)],{'axis':'y','defaultValues':X['axis'],'NumberFormatField':n[_0x1a2976(0x2b4)]})}),(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x239)],{'section':_0x1a2976(0x180)}),_0x357d43&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)]['RightVerticalAxis'],'label':_0x1517c2['t'](_0x1a2976(0x33b)),'children':(0x0,g[_0x1a2976(0x1d7)])(n['ChartAxisSection'],{'axis':_0x1a2976(0x379),'defaultValues':X[_0x1a2976(0x11b)],'NumberFormatField':n[_0x1a2976(0x2b4)]})}),(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n['ChartEditPanelSection']['GridlinesAndTicks'],'label':_0x1517c2['t'](_0x1a2976(0xdf)),'children':(0x0,g['jsx'])(n['ChartGridlinesAndTicksSection'],{'defaultValues':X[_0x1a2976(0x11b)]})})]}),(0x0,n[_0x1a2976(0x410)])(_0x28fc10,n[_0x1a2976(0x2b0)][_0x1a2976(0x81)])&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x81)],'label':_0x1517c2['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':(0x0,g['jsx'])(n[_0x1a2976(0x3a7)],{'defaultValues':X[_0x1a2976(0x345)]})}),(0x0,_[_0x1a2976(0x250)])(_0x28fc10)&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':n[_0x1a2976(0x265)][_0x1a2976(0x92)],'label':_0x1517c2['t'](_0x1a2976(0x387)),'children':(0x0,g[_0x1a2976(0x1d7)])(n[_0x1a2976(0x2f5)],{'defaultValues':X['trendline']})}),_0x7ed411&&(0x0,g[_0x1a2976(0x1d7)])(Z,{'id':_0x7ed411['id'],'label':_0x7ed411['label'],'children':(0x0,g['jsx'])(n['ChartTypeSpecificStyleSection'],{})})]});}function jt(_0x38acd9,_0x1ac3aa){const _0x332190=_0x16f285;let _0x3987b4={[_[_0x332190(0x22f)][_0x332190(0x210)]]:{'id':n[_0x332190(0x265)][_0x332190(0x210)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_[_0x332190(0x22f)][_0x332190(0x38e)]]:{'id':n[_0x332190(0x265)]['Histogram'],'localeKey':_0x332190(0x35d)},[_['ChartTypeBits'][_0x332190(0x3eb)]]:{'id':n[_0x332190(0x265)][_0x332190(0x3eb)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_[_0x332190(0x22f)][_0x332190(0x7c)]]:{'id':n[_0x332190(0x265)][_0x332190(0x7c)],'localeKey':_0x332190(0x376)},[_[_0x332190(0x22f)]['Gauge']]:{'id':n[_0x332190(0x265)][_0x332190(0x372)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_['ChartTypeBits'][_0x332190(0x18b)]]:{'id':n['ChartEditPanelSection'][_0x332190(0x18b)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x38acd9];return _0x3987b4?{'id':_0x3987b4['id'],'label':_0x1ac3aa['t'](_0x3987b4[_0x332190(0x43f)])}:null;}function Mt(_0x146de6){const _0x1e5e59=_0x16f285;return _0x1e5e59(0x108)+_0x146de6;}function Nt({onChange:_0x5125e3,onEditData:_0x2b397c,runtime:_0x4e47a2,sourceChart:_0x4b8837,sourceName:_0x318eb4,widget:_0x4d4f46}){const _0x5010c4=_0x16f285;let _0x2b5ab5=(0x0,m['useDependency'])(W),_0x5695b1=(0x0,m['useDependency'])(a[_0x5010c4(0x28c)]),[_0x18414f,_0xae3dcd]=(0x0,h[_0x5010c4(0x450)])(n['ChartEditPanelTab'][_0x5010c4(0x9b)]),_0x344a47=_0x4d4f46[_0x5010c4(0x3ef)]??_0x4b8837,_0x240f48=(0x0,h[_0x5010c4(0x4a4)])(()=>new n[(_0x5010c4(0x143))](_0x4e47a2[_0x5010c4(0x238)],{'commit':_0x1363c4=>{const _0x21a351=_0x5010c4;var _0x5a4f8a;let _0xaaaf1=_0x4e47a2[_0x21a351(0x238)],_0xe539db=(0x0,_[_0x21a351(0x268)])(_0x1363c4,{'series':(_0x5a4f8a=_0xaaaf1[_0x21a351(0x84)])==null?void 0x0:_0x5a4f8a[_0x21a351(0x421)],'currentChartType':_0xaaaf1[_0x21a351(0x20a)],'currentStyle':_0xaaaf1[_0x21a351(0x468)],'currentContext':_0xaaaf1['context'],'currentDataAggregation':_0xaaaf1[_0x21a351(0x255)]});_0x5125e3({..._0x4d4f46,'chart':Ot(_0x344a47,_0xe539db)})[_0x21a351(0x2a3)](()=>void 0x0);}}),[_0x344a47,_0x5125e3,_0x4e47a2,_0x4d4f46]),_0x5df7d7=(0x0,h[_0x5010c4(0x4a4)])(()=>(0x0,n['buildChartTypeSelectOptions'])(n[_0x5010c4(0x38d)][_0x5010c4(0x201)](_0x1e69d1=>({..._0x1e69d1,'label':_0x5695b1['t'](Pt(_0x1e69d1[_0x5010c4(0x392)]))}))),[_0x5695b1]);return(0x0,g[_0x5010c4(0x1d7)])(n['ChartEditorProvider'],{'chartUIService':_0x2b5ab5,'hostAdapter':_0x240f48,'children':(0x0,g['jsxs'])(_0x5010c4(0x24a),{'data-dashboard-chart-inspector':!0x0,'className':_0x5010c4(0x452),'children':[(0x0,g[_0x5010c4(0x1d7)])(n[_0x5010c4(0x286)],{'ariaLabel':_0x5695b1['t'](_0x5010c4(0x414)),'className':_0x5010c4(0x21f),'items':[{'label':_0x5695b1['t'](_0x5010c4(0x4a5)),'panelId':'dashboard-chart-setup','value':n[_0x5010c4(0x222)]['Data']},{'label':_0x5695b1['t'](_0x5010c4(0x3d0)),'panelId':_0x5010c4(0x113),'value':n['ChartEditPanelTab'][_0x5010c4(0x14e)]}],'value':_0x18414f,'onChange':_0xae3dcd}),_0x18414f===n[_0x5010c4(0x222)][_0x5010c4(0x9b)]?(0x0,g['jsx'])(n['ChartEditPanel'],{'id':_0x5010c4(0x1a4),'label':_0x5695b1['t'](_0x5010c4(0x4a5)),'children':(0x0,g[_0x5010c4(0x2f3)])(_0x5010c4(0x24a),{'className':_0x5010c4(0x1f3),'children':[(0x0,g[_0x5010c4(0x1d7)])(n[_0x5010c4(0x131)],{'options':_0x5df7d7}),(0x0,g[_0x5010c4(0x1d7)])(n[_0x5010c4(0x28b)],{}),(0x0,g['jsx'])(n['ChartThemeField'],{}),(0x0,g[_0x5010c4(0x1d7)])(kt,{}),(0x0,g[_0x5010c4(0x1d7)])(n[_0x5010c4(0x1ac)],{}),(0x0,g[_0x5010c4(0x2f3)])('div',{'children':[(0x0,g[_0x5010c4(0x1d7)])(n[_0x5010c4(0x1ff)],{'title':_0x5695b1['t'](_0x5010c4(0x486))}),(0x0,g[_0x5010c4(0x1d7)])(f[_0x5010c4(0x3cd)],{'disabled':!0x0,'value':_0x318eb4}),(0x0,g['jsx'])(f[_0x5010c4(0x1bb)],{'className':_0x5010c4(0x26e),'onClick':_0x2b397c,'children':_0x5695b1['t'](_0x5010c4(0x2c3))})]})]})}):(0x0,g[_0x5010c4(0x1d7)])(n['ChartEditPanel'],{'id':'dashboard-chart-style','label':_0x5695b1['t']('bases-dashboard-ui.chart.common.customize'),'children':(0x0,g[_0x5010c4(0x1d7)])(At,{})})]})});}function Pt(_0x5a30c3){const _0xd9191c=_0x16f285;return _0xd9191c(0x108)+_0x5a30c3;}const Ft=['general',_0x16f285(0x390),_0x16f285(0x253),'currency',_0x16f285(0x42c),_0x16f285(0x3b1)];function It({base:_0x47299d,onChange:_0xd45229,onSelectBackgroundImage:_0x1905cc,widget:_0x295a8b}){const _0x330eba=_0x16f285;var _0x761fe;let _0x4d6a7b=(0x0,m['useDependency'])(a[_0x330eba(0x28c)]),_0x27fa55=(0x0,m[_0x330eba(0x15f)])(a[_0x330eba(0x2b2)]),_0x48e00c=(0x0,m[_0x330eba(0x49b)])(()=>_0x27fa55[_0x330eba(0x230)],_0x27fa55[_0x330eba(0x11f)](),!0x1,[_0x27fa55]),_0x1abc61=(0x0,m['useObservable'])(()=>_0x27fa55['darkMode$'],_0x27fa55[_0x330eba(0x37e)],!0x1,[_0x27fa55]),[_0x51d4ae,_0x348f01]=(0x0,h['useState'])(_0x330eba(0xaf)),[_0x175664,_0x43d0cf]=(0x0,h[_0x330eba(0x450)])(!0x1),_0x3f446c=k(_0x295a8b),_0x2bd002=_0x47299d[_0x330eba(0x1fc)]()[_0x330eba(0x252)][_0x295a8b[_0x330eba(0x135)]],_0x229e4c=_0x2bd002==null?void 0x0:_0x2bd002[_0x330eba(0x27b)]['find'](_0x125851=>_0x2bd002[_0x330eba(0x2dc)][_0x125851]),_0x3ae215=_0x229e4c?_0x2bd002==null?void 0x0:_0x2bd002[_0x330eba(0x2dc)][_0x229e4c]:void 0x0,_0x1a594e=_0x2bd002&&_0x3ae215?(0x0,t[_0x330eba(0xf3)])(_0x47299d[_0x330eba(0x1fc)](),_0x2bd002,_0x3ae215)[_0x330eba(0x201)](_0x14bf0a=>({..._0x14bf0a,'current':!0x1})):[],_0x938042=((_0x761fe=_0x295a8b['shapeData']['formulaBinding'])==null?void 0x0:_0x761fe[_0x330eba(0x2b1)])??'',_0x4e328b=_0x50b859=>_0xd45229(A(_0x295a8b,_0x50b859))[_0x330eba(0x2a3)](()=>void 0x0),_0x902478=_0x1aa5b9=>_0xd45229({..._0x295a8b,'description':_0x1aa5b9})[_0x330eba(0x2a3)](()=>void 0x0);return(0x0,g[_0x330eba(0x2f3)])('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x330eba(0x452),'children':[(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x3f1)],{'className':'univer-m-3','items':[{'value':_0x330eba(0xaf),'label':_0x4d6a7b['t'](_0x330eba(0xd1))},{'value':_0x330eba(0x468),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x51d4ae,'onChange':_0x348f01}),(0x0,g[_0x330eba(0x1d7)])(_0x330eba(0x24a),{'className':_0x330eba(0x1b1),'children':_0x51d4ae===_0x330eba(0xaf)?(0x0,g['jsxs'])(_0x330eba(0x24a),{'className':_0x330eba(0x29e),'children':[(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.description'),'children':(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x3cd)],{'value':_0x295a8b[_0x330eba(0x3e6)]??_0x295a8b[_0x330eba(0x2ba)]??'','onChange':_0x902478,'onBlur':_0x328bca=>_0x902478(_0x328bca[_0x330eba(0x242)][_0x330eba(0x44c)])})}),(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x486)),'children':(0x0,g['jsx'])(f[_0x330eba(0x3cd)],{'disabled':!0x0,'value':(_0x2bd002==null?void 0x0:_0x2bd002['name'])??_0x4d6a7b['t'](_0x330eba(0x2e5))})}),(0x0,g[_0x330eba(0x2f3)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x209)),'children':[(0x0,g['jsx'])(f[_0x330eba(0x3cd)],{'disabled':!0x0,'value':(0x0,t['formulaToEditorFormula'])(_0x938042,_0x1a594e)}),(0x0,g['jsx'])(f[_0x330eba(0x1bb)],{'className':_0x330eba(0x26e),'onClick':()=>_0x43d0cf(!0x0),'children':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):(0x0,g[_0x330eba(0x2f3)])('div',{'className':_0x330eba(0x29e),'children':[(0x0,g[_0x330eba(0x1d7)])(n[_0x330eba(0x347)],{'emptyLabel':_0x4d6a7b['t'](_0x330eba(0xd0)),'label':_0x4d6a7b['t'](_0x330eba(0xd0)),'pickerFallbackValue':_0x1abc61?_0x48e00c['gray'][0x384]:_0x48e00c[_0x330eba(0x416)][0x0],'resetLabel':_0x4d6a7b['t'](_0x330eba(0x11d)),'value':_0x3f446c['backgroundColor']??null,'onChange':_0x1380a9=>_0x4e328b({'backgroundColor':_0x1380a9??void 0x0})}),(0x0,g[_0x330eba(0x2f3)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x48f)),'children':[(0x0,g[_0x330eba(0x2f3)])(_0x330eba(0x24a),{'className':_0x330eba(0x3f5),'children':[(0x0,g[_0x330eba(0x2f3)])(f[_0x330eba(0x1bb)],{'className':_0x330eba(0x366),'onClick':()=>{const _0x45eb7e=_0x330eba;_0x1905cc()[_0x45eb7e(0x1ba)](_0x4fe154=>{const _0x371e26=_0x45eb7e;if(_0x4fe154){var _0x7d3c5a;return _0x4e328b({'backgroundImage':{..._0x4fe154,'fit':((_0x7d3c5a=_0x3f446c[_0x371e26(0x388)])==null?void 0x0:_0x7d3c5a[_0x371e26(0x317)])??'cover'}});}})['catch'](()=>void 0x0);},'children':[(0x0,g[_0x330eba(0x1d7)])(s[_0x330eba(0xc2)],{}),_0x3f446c['backgroundImage']?_0x4d6a7b['t'](_0x330eba(0x495)):_0x4d6a7b['t'](_0x330eba(0x19f))]}),_0x3f446c[_0x330eba(0x388)]&&(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x1bb)],{'aria-label':_0x4d6a7b['t'](_0x330eba(0x1dc)),'title':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x4e328b({'backgroundImage':void 0x0}),'children':(0x0,g[_0x330eba(0x1d7)])(s['DeleteIcon'],{})})]}),_0x3f446c[_0x330eba(0x388)]&&(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x3f1)],{'className':_0x330eba(0x21b),'items':[{'value':_0x330eba(0x234),'label':_0x4d6a7b['t'](_0x330eba(0x3e0))},{'value':'contain','label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x3f446c[_0x330eba(0x388)][_0x330eba(0x317)],'onChange':_0x32c526=>_0x4e328b({'backgroundImage':_0x3f446c[_0x330eba(0x388)]?{..._0x3f446c['backgroundImage'],'fit':_0x32c526}:void 0x0})})]}),(0x0,g[_0x330eba(0x1d7)])(n[_0x330eba(0x347)],{'emptyLabel':_0x4d6a7b['t'](_0x330eba(0x1fa)),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x1abc61?_0x48e00c['gray'][0x32]:_0x48e00c[_0x330eba(0x416)][0x3e8],'resetLabel':_0x4d6a7b['t'](_0x330eba(0x11d)),'value':_0x3f446c['textColor']??null,'onChange':_0x207382=>_0x4e328b({'textColor':_0x207382??void 0x0})}),(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x18f)),'children':(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x3f1)],{'items':[{'value':_0x330eba(0x3d4),'label':_0x4d6a7b['t'](_0x330eba(0x208))},{'value':'center','label':_0x4d6a7b['t'](_0x330eba(0x32e))},{'value':_0x330eba(0x2e8),'label':_0x4d6a7b['t'](_0x330eba(0x214))}],'value':_0x3f446c['alignment'],'onChange':_0x1e3eeb=>_0x4e328b({'alignment':_0x1e3eeb})})}),(0x0,g['jsxs'])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x87)),'children':[(0x0,g['jsx'])(f['Segmented'],{'items':[{'value':_0x330eba(0x1c0),'label':_0x4d6a7b['t'](_0x330eba(0x491))},{'value':_0x330eba(0x459),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x3f446c['fontSizeMode'],'onChange':_0x4538af=>_0x4e328b({'fontSizeMode':_0x4538af})}),_0x3f446c[_0x330eba(0x156)]===_0x330eba(0x459)&&(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x39a)],{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x3f446c['fontSize'],'onChange':_0x527b48=>_0x4e328b({'fontSize':_0x527b48??0x28,'fontSizeMode':_0x330eba(0x459)})})]}),(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x343)),'children':(0x0,g[_0x330eba(0x1d7)])(f['Select'],{'value':_0x3f446c['numberFormat'],'options':[{'value':_0x330eba(0xcc),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x330eba(0x390),'label':_0x4d6a7b['t'](_0x330eba(0xed))},{'value':_0x330eba(0x253),'label':_0x4d6a7b['t'](_0x330eba(0x1cb))},{'value':_0x330eba(0x2d1),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x330eba(0x42c),'label':_0x4d6a7b['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x330eba(0x3b1),'label':_0x4d6a7b['t'](_0x330eba(0x12c))}],'onChange':_0x6b55b9=>{const _0x465af6=_0x330eba;let _0x8730fc=Ft[_0x465af6(0x132)](_0x414330=>_0x414330===_0x6b55b9);_0x8730fc&&_0x4e328b({'numberFormat':_0x8730fc});}})}),_0x3f446c[_0x330eba(0x9d)]===_0x330eba(0x2d1)&&(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x2de)),'children':(0x0,g['jsx'])(f[_0x330eba(0x3cd)],{'value':_0x3f446c['currency'],'onChange':_0x404b02=>_0x4e328b({'currency':_0x404b02[_0x330eba(0x137)](0x0,0x3)[_0x330eba(0x482)]()})})}),_0x3f446c[_0x330eba(0x9d)]!==_0x330eba(0xcc)&&(0x0,g[_0x330eba(0x1d7)])(Q,{'label':_0x4d6a7b['t'](_0x330eba(0x98)),'children':(0x0,g['jsx'])(f[_0x330eba(0x39a)],{'min':0x0,'max':0x8,'value':_0x3f446c[_0x330eba(0x45c)],'onChange':_0x369122=>_0x4e328b({'decimalPlaces':_0x369122??0x0})})})]})}),_0x175664&&(0x0,g[_0x330eba(0x1d7)])(f[_0x330eba(0x475)],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x330eba(0x1d7)])(t['FormulaEditorPanel'],{'tables':_0x1a594e,'formula':(0x0,t['formulaToEditorFormula'])(_0x938042,_0x1a594e),'onCancel':()=>_0x43d0cf(!0x1),'onSave':_0x92c316=>{const _0x745605=_0x330eba;let _0xa1b4f6=_0x295a8b[_0x745605(0x1d5)][_0x745605(0xb6)]??{'formula':''};return _0xd45229({..._0x295a8b,'shapeData':{..._0x295a8b[_0x745605(0x1d5)],'formulaBinding':{..._0xa1b4f6,'formula':(0x0,t[_0x745605(0x47d)])(_0x92c316,_0x1a594e)}}})['then'](()=>_0x43d0cf(!0x1))[_0x745605(0x2a3)](()=>void 0x0);}})})]});}function Q({children:_0x2baaea,label:_0x5da6e9}){const _0x1042ce=_0x16f285;return(0x0,g[_0x1042ce(0x2f3)])(_0x1042ce(0x24a),{'role':_0x1042ce(0x21a),'aria-label':_0x5da6e9,'className':_0x1042ce(0x474),'children':[(0x0,g[_0x1042ce(0x1d7)])(_0x1042ce(0x42b),{'children':_0x5da6e9}),_0x2baaea]});}const Lt={[a[_0x16f285(0x10e)]['IS']]:_0x16f285(0x3fd),[a['BaseFilterOperator'][_0x16f285(0x2fb)]]:_0x16f285(0x1fb),[a[_0x16f285(0x10e)][_0x16f285(0x11e)]]:_0x16f285(0xc1),[a['BaseFilterOperator'][_0x16f285(0x466)]]:'bases-dashboard-ui.operators.notContains',[a['BaseFilterOperator'][_0x16f285(0xf0)]]:_0x16f285(0x2d0),[a['BaseFilterOperator']['IS_NOT_EMPTY']]:_0x16f285(0x3da),[a[_0x16f285(0x10e)][_0x16f285(0x318)]]:_0x16f285(0xc6),[a[_0x16f285(0x10e)][_0x16f285(0x3a8)]]:_0x16f285(0x4a0),[a[_0x16f285(0x10e)][_0x16f285(0x333)]]:_0x16f285(0xe1),[a[_0x16f285(0x10e)]['LESS_THAN_OR_EQUAL']]:_0x16f285(0x95),[a[_0x16f285(0x10e)][_0x16f285(0x1f8)]]:'bases-dashboard-ui.operators.before',[a[_0x16f285(0x10e)][_0x16f285(0x3e9)]]:_0x16f285(0x41e)};function Rt({disabled:_0x4e0257,fields:_0x142c25,filter:_0x4e1ad9,onChange:_0xb55e19}){const _0x3439e7=_0x16f285;let _0x4e6f2d=(0x0,m[_0x3439e7(0x15f)])(a['LocaleService']),_0x3163d3=(_0x4e1ad9==null?void 0x0:_0x4e1ad9[_0x3439e7(0x3ec)])??[];return _0x3163d3['length']?(0x0,g[_0x3439e7(0x1d7)])(_0x3439e7(0x24a),{'className':_0x3439e7(0x2ff),'children':_0x3163d3[_0x3439e7(0x201)]((_0x2cb1ba,_0x418c2d)=>{const _0x5bb2e2=_0x3439e7;let _0x784e7d=_0x142c25[_0x5bb2e2(0x132)](_0x2b81cc=>_0x2b81cc['id']===_0x2cb1ba[_0x5bb2e2(0x26c)]);return(0x0,g[_0x5bb2e2(0x2f3)])(_0x5bb2e2(0x24a),{'className':_0x5bb2e2(0x300),'children':[(0x0,g[_0x5bb2e2(0x2f3)])(_0x5bb2e2(0x24a),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[(0x0,g[_0x5bb2e2(0x1d7)])(_0x5bb2e2(0x42b),{'className':_0x5bb2e2(0x457),'children':(_0x784e7d==null?void 0x0:_0x784e7d['name'])??_0x2cb1ba[_0x5bb2e2(0x26c)]}),(0x0,g[_0x5bb2e2(0x1d7)])('span',{'className':'univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','children':_0x4e6f2d['t'](Lt[_0x2cb1ba['operator']])})]}),Kt(_0x2cb1ba[_0x5bb2e2(0x460)])&&(0x0,g[_0x5bb2e2(0x1d7)])(Bt,{'disabled':_0x4e0257,'field':_0x784e7d,'value':_0x2cb1ba[_0x5bb2e2(0xec)],'onChange':_0x471201=>_0xb55e19(Ut(_0x4e1ad9,_0x418c2d,{'operand':_0x471201}))})]},Yt(_0x3163d3,_0x2cb1ba,_0x418c2d));})}):(0x0,g[_0x3439e7(0x2f3)])(_0x3439e7(0x24a),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[(0x0,g[_0x3439e7(0x1d7)])(s[_0x3439e7(0x492)],{'className':'univer-mx-auto\x20univer-size-6'}),(0x0,g[_0x3439e7(0x1d7)])('span',{'className':'univer-text-sm','children':_0x4e6f2d['t']('bases-dashboard-ui.dashboard.tableFilter')})]});}function zt({fields:_0x4b59a0,filter:_0x2b8722,onChange:_0xf9273f,onClear:_0x55afc7}){const _0x4397df=_0x16f285;let _0x23465b=(0x0,m['useDependency'])(a[_0x4397df(0x28c)]),_0x52dab9=(_0x2b8722==null?void 0x0:_0x2b8722['conditions'])??[];return(0x0,g[_0x4397df(0x2f3)])(_0x4397df(0x24a),{'data-dashboard-filter-inspector':!0x0,'className':_0x4397df(0x1b8),'children':[_0x52dab9[_0x4397df(0x201)]((_0x3bfe5c,_0x1eb92e)=>{const _0x210676=_0x4397df;let _0x140f6a=_0x4b59a0[_0x210676(0x132)](_0x10a9c4=>_0x10a9c4['id']===_0x3bfe5c['fieldId'])??_0x4b59a0[0x0],_0x233b88=Wt(_0x140f6a);return(0x0,g[_0x210676(0x2f3)])(_0x210676(0x47e),{'className':_0x210676(0x136),'children':[(0x0,g['jsxs'])(_0x210676(0x24a),{'className':_0x210676(0x43d),'children':[(0x0,g['jsx'])(f[_0x210676(0x2b7)],{'value':_0x3bfe5c[_0x210676(0x26c)],'options':_0x4b59a0['map'](_0x5d58e=>({'value':_0x5d58e['id'],'label':_0x5d58e[_0x210676(0x99)]})),'onChange':_0x1f0ec6=>{const _0x35fd33=_0x210676;let _0x3ab771=_0x4b59a0[_0x35fd33(0x132)](_0x1064da=>_0x1064da['id']===_0x1f0ec6);if(!_0x3ab771)return;let _0xd5c6ad=Wt(_0x3ab771)[0x0];_0xf9273f(Ut(_0x2b8722,_0x1eb92e,Ht(_0x3ab771,_0xd5c6ad)));}}),(0x0,g['jsx'])(f[_0x210676(0x1bb)],{'type':_0x210676(0x28a),'variant':_0x210676(0x326),'aria-label':_0x23465b['t'](_0x210676(0xf9)),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0xf9273f(Vt(_0x2b8722,_0x52dab9[_0x210676(0x39e)]((_0x29855f,_0x3ea507)=>_0x3ea507!==_0x1eb92e))),'children':(0x0,g[_0x210676(0x1d7)])(s[_0x210676(0x321)],{})})]}),(0x0,g[_0x210676(0x1d7)])(f[_0x210676(0x2b7)],{'value':_0x3bfe5c[_0x210676(0x460)],'options':_0x233b88['map'](_0x15c651=>({'value':_0x15c651,'label':_0x23465b['t'](Lt[_0x15c651])})),'onChange':_0x52662c=>{const _0x35fd00=_0x210676;let _0x1d08e5=_0x233b88[_0x35fd00(0x132)](_0x4e2886=>_0x4e2886===_0x52662c);_0x1d08e5&&_0xf9273f(Ut(_0x2b8722,_0x1eb92e,{'operator':_0x1d08e5,'operand':Gt(_0x140f6a)}));}}),Kt(_0x3bfe5c['operator'])&&(0x0,g[_0x210676(0x1d7)])(Bt,{'field':_0x140f6a,'value':_0x3bfe5c[_0x210676(0xec)],'onChange':_0x404b2e=>_0xf9273f(Ut(_0x2b8722,_0x1eb92e,{'operand':_0x404b2e}))})]},Yt(_0x52dab9,_0x3bfe5c,_0x1eb92e));}),(0x0,g[_0x4397df(0x2f3)])(f[_0x4397df(0x1bb)],{'type':_0x4397df(0x28a),'variant':_0x4397df(0x326),'className':_0x4397df(0x193),'disabled':!_0x4b59a0[_0x4397df(0x444)],'onClick':()=>{let _0x25d8ae=_0x4b59a0[0x0];if(!_0x25d8ae)return;let _0x11251b=Wt(_0x25d8ae)[0x0];_0xf9273f(Vt(_0x2b8722,[..._0x52dab9,Ht(_0x25d8ae,_0x11251b)]));},'children':[(0x0,g[_0x4397df(0x1d7)])(s[_0x4397df(0xc2)],{}),_0x23465b['t'](_0x4397df(0x43a))]}),_0x52dab9[_0x4397df(0x444)]>0x0&&(0x0,g['jsx'])(f[_0x4397df(0x1bb)],{'type':_0x4397df(0x28a),'variant':_0x4397df(0x326),'className':_0x4397df(0x3d7),'onClick':_0x55afc7,'children':_0x23465b['t'](_0x4397df(0x2f1))})]});}function Bt({disabled:_0x211f79,field:_0x249824,onChange:_0xd6c2ed,value:_0x46bba1}){const _0x36fb2c=_0x16f285;let _0xd74786=(0x0,m[_0x36fb2c(0x15f)])(a['LocaleService']),[_0x50fbbe,_0x1455a4]=(0x0,h['useState'])({'value':_0x46bba1,'text':String(_0x46bba1??'')});Object['is'](_0x50fbbe[_0x36fb2c(0x44c)],_0x46bba1)||_0x1455a4({'value':_0x46bba1,'text':String(_0x46bba1??'')});let _0x16fc11=_0x50fbbe[_0x36fb2c(0x326)],_0x3e1629=_0x4cfa92=>_0x1455a4({'value':_0x46bba1,'text':_0x4cfa92}),_0x2b9d7c=_0x249824==null?void 0x0:_0x249824[_0x36fb2c(0x430)];if(_0x2b9d7c===a['BaseFieldType'][_0x36fb2c(0x42d)]){let _0x25ef94=_0x46bba1===!0x0||_0x46bba1===_0x36fb2c(0x1e7);return(0x0,g[_0x36fb2c(0x2f3)])(f[_0x36fb2c(0x1bb)],{'type':'button','variant':_0x36fb2c(0x3f0),'disabled':_0x211f79,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0xd6c2ed(!_0x25ef94),'children':[(0x0,g['jsx'])(f[_0x36fb2c(0x42d)],{'checked':_0x25ef94,'disabled':_0x211f79,'onChange':()=>void 0x0}),_0x25ef94?_0xd74786['t'](_0x36fb2c(0x178)):_0xd74786['t'](_0x36fb2c(0x433))]});}return Xt(_0x2b9d7c)?_0x211f79?(0x0,g[_0x36fb2c(0x1d7)])(f[_0x36fb2c(0x1bb)],{'type':_0x36fb2c(0x28a),'variant':_0x36fb2c(0x3f0),'className':'univer-w-full','disabled':!0x0,'children':(0x0,a['dateKit'])(_0x46bba1==null||_0x46bba1===''?void 0x0:String(_0x46bba1))[_0x36fb2c(0x3e5)](_0x36fb2c(0x1db))}):(0x0,g[_0x36fb2c(0x1d7)])(f[_0x36fb2c(0x25a)],{'className':_0x36fb2c(0x3d7),'value':(0x0,a[_0x36fb2c(0x121)])(_0x46bba1==null||_0x46bba1===''?void 0x0:String(_0x46bba1))['toDate'](),'onValueChange':_0x4a02e6=>_0xd6c2ed((0x0,a[_0x36fb2c(0x121)])(_0x4a02e6)[_0x36fb2c(0x3e5)]('YYYY-MM-DD'))}):Qt(_0x249824)?(0x0,g[_0x36fb2c(0x1d7)])(f[_0x36fb2c(0x498)],{'className':_0x36fb2c(0x3d7),'disabled':_0x211f79,'value':Array['isArray'](_0x46bba1)?_0x46bba1[_0x36fb2c(0x201)](String):[],'options':qt(_0x249824),'onChange':_0xd6c2ed}):_0x2b9d7c===a['BaseFieldType'][_0x36fb2c(0x25c)]||_0x2b9d7c===a[_0x36fb2c(0x357)][_0x36fb2c(0xd5)]||_0x2b9d7c===a[_0x36fb2c(0x357)][_0x36fb2c(0x162)]?(0x0,g['jsx'])(f[_0x36fb2c(0x2b7)],{'className':_0x36fb2c(0x3d7),'disabled':_0x211f79,'value':String(_0x46bba1??''),'options':[{'value':'','label':_0xd74786['t'](_0x36fb2c(0x354))},...qt(_0x249824)],'onChange':_0xd6c2ed}):Zt(_0x2b9d7c)?(0x0,g[_0x36fb2c(0x1d7)])(f['Input'],{'className':_0x36fb2c(0x3d7),'disabled':_0x211f79,'inputMode':_0x36fb2c(0x270),'value':_0x16fc11,'aria-invalid':_0x16fc11!==''&&!Number[_0x36fb2c(0xb4)](Number(_0x16fc11)),'onChange':_0x355a7c=>{const _0x58d78e=_0x36fb2c;_0x3e1629(_0x355a7c),_0x355a7c===''?_0xd6c2ed(''):Number[_0x58d78e(0xb4)](Number(_0x355a7c))&&_0xd6c2ed(Number(_0x355a7c));},'onBlur':()=>_0x3e1629(String(_0x46bba1??''))}):(0x0,g['jsx'])(f['Input'],{'disabled':_0x211f79,'value':String(_0x46bba1??''),'placeholder':_0xd74786['t'](_0x36fb2c(0x83)),'onChange':_0xd6c2ed});}function Vt(_0x28123e,_0x3f4167){const _0x5d36c6=_0x16f285;return{'conjunction':(_0x28123e==null?void 0x0:_0x28123e[_0x5d36c6(0x16a)])??a['BaseFilterConjunction']['AND'],'conditions':_0x3f4167};}function Ht(_0x45a04c,_0x2318c8){return Kt(_0x2318c8)?{'fieldId':_0x45a04c['id'],'operator':_0x2318c8,'operand':Gt(_0x45a04c)}:{'fieldId':_0x45a04c['id'],'operator':_0x2318c8};}function Ut(_0x54c247,_0x2f7857,_0x5b09af){const _0x2ceb6d=_0x16f285;return Vt(_0x54c247,((_0x54c247==null?void 0x0:_0x54c247[_0x2ceb6d(0x3ec)])??[])[_0x2ceb6d(0x201)]((_0x496333,_0x3b455e)=>_0x3b455e===_0x2f7857?{..._0x496333,..._0x5b09af}:_0x496333));}function Wt(_0x30d263){const _0x568ab3=_0x16f285;let _0x4ad4cf=[a[_0x568ab3(0x10e)][_0x568ab3(0xf0)],a[_0x568ab3(0x10e)][_0x568ab3(0x7b)]];switch(_0x30d263==null?void 0x0:_0x30d263[_0x568ab3(0x430)]){case a[_0x568ab3(0x357)][_0x568ab3(0x2cd)]:case a[_0x568ab3(0x357)][_0x568ab3(0x46e)]:case a[_0x568ab3(0x357)][_0x568ab3(0x141)]:case a[_0x568ab3(0x357)]['Rating']:return[a[_0x568ab3(0x10e)]['IS'],a[_0x568ab3(0x10e)][_0x568ab3(0x2fb)],a[_0x568ab3(0x10e)]['GREATER_THAN'],a[_0x568ab3(0x10e)]['LESS_THAN'],..._0x4ad4cf];case a[_0x568ab3(0x357)]['Date']:case a[_0x568ab3(0x357)]['CreatedAt']:case a['BaseFieldType'][_0x568ab3(0x2a9)]:return[a[_0x568ab3(0x10e)]['IS'],a['BaseFilterOperator'][_0x568ab3(0x2fb)],a[_0x568ab3(0x10e)]['BEFORE'],a[_0x568ab3(0x10e)][_0x568ab3(0x3e9)],..._0x4ad4cf];case a['BaseFieldType']['Checkbox']:return[a[_0x568ab3(0x10e)]['IS'],a[_0x568ab3(0x10e)][_0x568ab3(0x2fb)]];default:return[a['BaseFilterOperator']['IS'],a[_0x568ab3(0x10e)][_0x568ab3(0x2fb)],a[_0x568ab3(0x10e)][_0x568ab3(0x11e)],a[_0x568ab3(0x10e)][_0x568ab3(0x466)],..._0x4ad4cf];}}function Gt(_0x59eff9){const _0x50f473=_0x16f285;return _0x59eff9?_0x59eff9[_0x50f473(0x430)]===a[_0x50f473(0x357)]['Checkbox']?!0x1:Xt(_0x59eff9[_0x50f473(0x430)])?(0x0,a[_0x50f473(0x121)])()[_0x50f473(0x3e5)](_0x50f473(0x1db)):Qt(_0x59eff9)?[]:'':'';}function Kt(_0x394ddb){const _0x2216b7=_0x16f285;return _0x394ddb!==a['BaseFilterOperator']['IS_EMPTY']&&_0x394ddb!==a[_0x2216b7(0x10e)][_0x2216b7(0x7b)];}function qt(_0x26a594){const _0x387f60=_0x16f285;var _0x5b1658;return(Array[_0x387f60(0x39b)](_0x26a594==null||(_0x5b1658=_0x26a594[_0x387f60(0x84)])==null?void 0x0:_0x5b1658[_0x387f60(0x19e)])?_0x26a594[_0x387f60(0x84)][_0x387f60(0x19e)]:[])[_0x387f60(0x201)]((_0x1e3206,_0x1d4cdc)=>{const _0x31eb05=_0x387f60;if(typeof _0x1e3206==_0x31eb05(0x439))return{'label':_0x1e3206,'value':_0x1e3206};if(!Jt(_0x1e3206))return{'label':String(_0x1d4cdc+0x1),'value':String(_0x1d4cdc+0x1)};let _0x131b31=_0x1e3206,_0x34dfeb=String(_0x131b31[_0x31eb05(0x99)]??_0x131b31['id']??_0x1d4cdc+0x1),_0x274456=String(_0x131b31['id']??_0x34dfeb);return{'label':_0x34dfeb,'value':/^opt-\d+$/[_0x31eb05(0x3a4)](_0x274456)?_0x34dfeb:_0x274456};});}function Jt(_0x28c11c){const _0x575876=_0x16f285;return typeof _0x28c11c==_0x575876(0x396)&&!!_0x28c11c;}function Yt(_0x5e54fe,_0x33041d,_0x34f0f7){const _0x4cee8f=_0x16f285;let _0x1b3825=JSON[_0x4cee8f(0xfb)](_0x33041d);return _0x1b3825+'-'+_0x5e54fe[_0x4cee8f(0x137)](0x0,_0x34f0f7)['filter'](_0x2e6ea0=>JSON[_0x4cee8f(0xfb)](_0x2e6ea0)===_0x1b3825)['length'];}function Xt(_0x353a98){const _0x14b7dd=_0x16f285;return _0x353a98===a['BaseFieldType']['Date']||_0x353a98===a[_0x14b7dd(0x357)][_0x14b7dd(0x21c)]||_0x353a98===a[_0x14b7dd(0x357)]['UpdatedAt'];}function Zt(_0x5d0ea3){const _0x58eb3b=_0x16f285;return _0x5d0ea3===a[_0x58eb3b(0x357)][_0x58eb3b(0x2cd)]||_0x5d0ea3===a[_0x58eb3b(0x357)]['Currency']||_0x5d0ea3===a['BaseFieldType'][_0x58eb3b(0x141)]||_0x5d0ea3===a[_0x58eb3b(0x357)][_0x58eb3b(0x364)];}function Qt(_0x437d33){const _0x405852=_0x16f285;var _0x5482b5;return(_0x437d33==null?void 0x0:_0x437d33[_0x405852(0x430)])===a[_0x405852(0x357)][_0x405852(0x411)]||(_0x437d33==null?void 0x0:_0x437d33[_0x405852(0x430)])===a[_0x405852(0x357)][_0x405852(0xd5)]||(_0x437d33==null?void 0x0:_0x437d33[_0x405852(0x430)])===a[_0x405852(0x357)][_0x405852(0x162)]&&((_0x5482b5=_0x437d33[_0x405852(0x84)])==null?void 0x0:_0x5482b5['allowMultiple'])===!0x0;}function $t({base:_0x342e2f,chartRuntime:_0x3e2bc6,onChange:_0x3aa328,onClose:_0x13dfd5,onSelectBackgroundImage:_0x4fb015,onSelectImage:_0x20b457,unitId:_0xfcd74b,widget:_0x195035}){const _0x67723f=_0x16f285;let _0x261ea6=(0x0,m[_0x67723f(0x15f)])(a[_0x67723f(0x384)]),_0x1ec03c=(0x0,m['useDependency'])(a[_0x67723f(0x28c)]),_0x592ebf=_0x342e2f['getSnapshot'](),_0x1f2836=_0x67723f(0x135)in _0x195035?_0x592ebf['tables'][_0x195035[_0x67723f(0x135)]]:void 0x0,_0x51d626=_0x195035[_0x67723f(0x430)]===e[_0x67723f(0x127)][_0x67723f(0x380)]?_0x1f2836==null?void 0x0:_0x1f2836[_0x67723f(0x2dc)][_0x195035[_0x67723f(0x329)]]:void 0x0,_0x3eebbe=_0x1ec03c['t'](sn(_0x195035));return(0x0,g['jsxs'])(_0x67723f(0x45f),{'data-dashboard-inspector':!0x0,'className':_0x67723f(0x283),'children':[(0x0,g[_0x67723f(0x2f3)])('header',{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[(0x0,g['jsx'])('h3',{'className':_0x67723f(0x2d8),'children':_0x3eebbe}),(0x0,g[_0x67723f(0x1d7)])(f[_0x67723f(0x1bb)],{'type':_0x67723f(0x28a),'size':_0x67723f(0x362),'variant':_0x67723f(0x326),'aria-label':_0x1ec03c['t'](_0x67723f(0x195)),'onClick':_0x13dfd5,'children':(0x0,g[_0x67723f(0x1d7)])(s['CloseIcon'],{})})]}),_0x195035[_0x67723f(0x430)]===e[_0x67723f(0x127)][_0x67723f(0x380)]&&(on(_0x51d626)&&_0x3e2bc6?(0x0,g[_0x67723f(0x1d7)])(Nt,{'runtime':_0x3e2bc6,'sourceChart':_0x51d626[_0x67723f(0x84)]['chart'],'sourceName':((_0x1f2836==null?void 0x0:_0x1f2836[_0x67723f(0x99)])??'')+_0x67723f(0xf8)+_0x51d626['name'],'widget':_0x195035,'onChange':_0x3aa328,'onEditData':()=>{const _0x588ec4=_0x67723f;_0x261ea6['executeCommand'](t[_0x588ec4(0x19c)]['id'],{'unitId':_0xfcd74b,'tableId':_0x195035['tableId'],'viewId':_0x195035['pivotViewId']})[_0x588ec4(0x2a3)](()=>void 0x0);}}):(0x0,g[_0x67723f(0x1d7)])(rn,{'message':on(_0x51d626)?_0x1ec03c['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x1ec03c['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x195035[_0x67723f(0x430)]===e[_0x67723f(0x127)][_0x67723f(0x2c0)]&&(0x0,g[_0x67723f(0x1d7)])(It,{'base':_0x342e2f,'widget':_0x195035,'onChange':_0x3aa328,'onSelectBackgroundImage':_0x4fb015}),_0x195035['type']===e[_0x67723f(0x127)][_0x67723f(0xfc)]&&(0x0,g[_0x67723f(0x1d7)])(tn,{'base':_0x342e2f,'onChange':_0x3aa328,'widget':_0x195035}),_0x195035[_0x67723f(0x430)]===e[_0x67723f(0x127)][_0x67723f(0x2ec)]&&(0x0,g[_0x67723f(0x1d7)])(nn,{'onChange':_0x3aa328,'widget':_0x195035}),_0x195035[_0x67723f(0x430)]===e[_0x67723f(0x127)]['Image']&&(0x0,g[_0x67723f(0x1d7)])(en,{'onChange':_0x3aa328,'onSelectImage':_0x20b457,'widget':_0x195035})]});}function en({onChange:_0x2e4a4a,onSelectImage:_0x198691,widget:_0x1e670d}){const _0xc250bc=_0x16f285;let _0x39fc5a=(0x0,m[_0xc250bc(0x15f)])(a[_0xc250bc(0x28c)]);return(0x0,g[_0xc250bc(0x2f3)])(_0xc250bc(0x24a),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[(0x0,g[_0xc250bc(0x2f3)])(f[_0xc250bc(0x1bb)],{'className':'univer-w-full','onClick':()=>_0x198691()[_0xc250bc(0x1ba)](_0x2aeea3=>_0x2aeea3&&_0x2e4a4a({..._0x1e670d,'source':_0x2aeea3[_0xc250bc(0x2fe)],'sourceType':_0x2aeea3[_0xc250bc(0x263)],'alt':_0x2aeea3[_0xc250bc(0x99)]}))['catch'](()=>void 0x0),'children':[(0x0,g['jsx'])(s[_0xc250bc(0xc2)],{}),_0x39fc5a['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),(0x0,g['jsxs'])(_0xc250bc(0x1d9),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0xc250bc(0x1d7)])(_0xc250bc(0x42b),{'children':_0x39fc5a['t'](_0xc250bc(0x48f))}),(0x0,g[_0xc250bc(0x1d7)])(f['Segmented'],{'items':[{'value':_0xc250bc(0x234),'label':_0x39fc5a['t'](_0xc250bc(0x3e0))},{'value':_0xc250bc(0x3c9),'label':_0x39fc5a['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0xc250bc(0x275),'label':_0x39fc5a['t']('bases-dashboard-ui.dashboardInspector.originalSize')}],'value':_0x1e670d[_0xc250bc(0x1b0)]??_0xc250bc(0x234),'onChange':_0x4c8caa=>_0x2e4a4a({..._0x1e670d,'displayMode':_0x4c8caa})[_0xc250bc(0x2a3)](()=>void 0x0)})]})]});}function tn({base:_0xe12fc7,onChange:_0xf9dba8,widget:_0x1755f0}){const _0x2ca9dd=_0x16f285;let _0x3c51ed=_0xe12fc7['getSnapshot']()['tables'][_0x1755f0[_0x2ca9dd(0x135)]],_0x24a441=_0x3c51ed==null?void 0x0:_0x3c51ed['viewOrder']['find'](_0x2b991f=>_0x3c51ed[_0x2ca9dd(0x2dc)][_0x2b991f]),_0x57a6a2=_0x24a441?_0x3c51ed==null?void 0x0:_0x3c51ed[_0x2ca9dd(0x2dc)][_0x24a441]:void 0x0,_0x5c8d1c=_0x3c51ed&&_0x57a6a2?(0x0,t[_0x2ca9dd(0x49f)])(_0x3c51ed,_0x57a6a2):[];return(0x0,g[_0x2ca9dd(0x1d7)])(zt,{'fields':_0x5c8d1c,'filter':_0x1755f0[_0x2ca9dd(0x39e)],'onChange':_0x1b36af=>_0xf9dba8({..._0x1755f0,'filter':_0x1b36af})['catch'](()=>void 0x0),'onClear':()=>_0xf9dba8({..._0x1755f0,'filter':null})[_0x2ca9dd(0x2a3)](()=>void 0x0)});}function nn({onChange:_0x455eaf,widget:_0x5b1477}){const _0x30bee6=_0x16f285;let _0x2595a8=(0x0,m['useDependency'])(a[_0x30bee6(0x28c)]),_0x513a08=(0x0,m[_0x30bee6(0x15f)])(a[_0x30bee6(0x2b2)]),_0x4367e5=(0x0,m[_0x30bee6(0x49b)])(()=>_0x513a08[_0x30bee6(0x230)],_0x513a08[_0x30bee6(0x11f)](),!0x1,[_0x513a08]),_0x38645c=oe(_0x5b1477),_0x260a9e=_0x4875ff=>_0x455eaf({..._0x5b1477,'appearance':{..._0x38645c,..._0x4875ff}})[_0x30bee6(0x2a3)](()=>void 0x0);return(0x0,g[_0x30bee6(0x2f3)])('div',{'className':_0x30bee6(0x2d2),'children':[(0x0,g[_0x30bee6(0x1d7)])(f[_0x30bee6(0x2af)],{'defaultValue':U(_0x5b1477[_0x30bee6(0x240)]),'rows':0x8,'onBlur':_0x3d881e=>_0x455eaf({..._0x5b1477,'document':se(_0x5b1477[_0x30bee6(0x240)],_0x3d881e[_0x30bee6(0x242)][_0x30bee6(0x44c)])})[_0x30bee6(0x2a3)](()=>void 0x0)}),(0x0,g[_0x30bee6(0x1d7)])(n[_0x30bee6(0x347)],{'emptyLabel':_0x2595a8['t'](_0x30bee6(0xd0)),'label':_0x2595a8['t'](_0x30bee6(0xd0)),'pickerFallbackValue':_0x4367e5['gray'][0x0],'resetLabel':_0x2595a8['t'](_0x30bee6(0x11d)),'value':_0x38645c[_0x30bee6(0x47b)]??null,'onChange':_0x5d7772=>_0x260a9e({'backgroundColor':_0x5d7772??void 0x0})}),(0x0,g[_0x30bee6(0x1d7)])(n[_0x30bee6(0x347)],{'emptyLabel':_0x2595a8['t'](_0x30bee6(0x1fa)),'label':_0x2595a8['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x4367e5['gray'][0x3e8],'resetLabel':_0x2595a8['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x38645c[_0x30bee6(0xa9)]??null,'onChange':_0x35e49c=>_0x260a9e({'textColor':_0x35e49c??void 0x0})}),(0x0,g['jsx'])(an,{'label':_0x2595a8['t'](_0x30bee6(0x18f)),'children':(0x0,g[_0x30bee6(0x1d7)])(f[_0x30bee6(0x3f1)],{'items':[{'value':_0x30bee6(0x3d4),'label':_0x2595a8['t'](_0x30bee6(0x208))},{'value':_0x30bee6(0x15d),'label':_0x2595a8['t'](_0x30bee6(0x32e))},{'value':_0x30bee6(0x2e8),'label':_0x2595a8['t'](_0x30bee6(0x214))}],'value':_0x38645c[_0x30bee6(0x355)],'onChange':_0x4ebbc5=>_0x260a9e({'alignment':_0x4ebbc5})})}),(0x0,g['jsxs'])(an,{'label':_0x2595a8['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x30bee6(0x1d7)])(f[_0x30bee6(0x3f1)],{'items':[{'value':_0x30bee6(0x1c0),'label':_0x2595a8['t'](_0x30bee6(0x491))},{'value':_0x30bee6(0x459),'label':_0x2595a8['t'](_0x30bee6(0x298))}],'value':_0x38645c['fontSizeMode'],'onChange':_0x8f0833=>_0x260a9e({'fontSizeMode':_0x8f0833})}),_0x38645c['fontSizeMode']===_0x30bee6(0x459)&&(0x0,g[_0x30bee6(0x1d7)])(f[_0x30bee6(0x39a)],{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x38645c[_0x30bee6(0x174)],'onChange':_0x3f7175=>_0x260a9e({'fontSize':_0x3f7175??0x12,'fontSizeMode':'custom'})})]})]});}function rn({message:_0x295aeb}){const _0x3a2f6b=_0x16f285;return(0x0,g[_0x3a2f6b(0x1d7)])(_0x3a2f6b(0x24a),{'className':_0x3a2f6b(0x24c),'children':_0x295aeb});}function an({children:_0x312326,label:_0x3c323d}){const _0x56e366=_0x16f285;return(0x0,g[_0x56e366(0x2f3)])(_0x56e366(0x24a),{'role':_0x56e366(0x21a),'aria-':!0x0,'className':_0x56e366(0x474),'children':[(0x0,g[_0x56e366(0x1d7)])('span',{'children':_0x3c323d}),_0x312326]});}function on(_0x58ed7f){const _0x1fd114=_0x16f285;return(_0x58ed7f==null?void 0x0:_0x58ed7f[_0x1fd114(0x430)])===a[_0x1fd114(0x17b)][_0x1fd114(0x349)]&&typeof _0x58ed7f[_0x1fd114(0x84)]==_0x1fd114(0x396)&&_0x58ed7f['config']!==null&&_0x1fd114(0x418)in _0x58ed7f[_0x1fd114(0x84)]&&_0x1fd114(0x3ef)in _0x58ed7f[_0x1fd114(0x84)];}function sn(_0x49edcd){const _0x483df2=_0x16f285;switch(_0x49edcd['type']){case e[_0x483df2(0x127)][_0x483df2(0x380)]:return _0x483df2(0x1ab);case e[_0x483df2(0x127)][_0x483df2(0xfc)]:return _0x483df2(0x445);case e['BaseDashboardWidgetType'][_0x483df2(0x2ec)]:return _0x483df2(0x42e);case e[_0x483df2(0x127)]['Image']:return _0x483df2(0xd2);case e['BaseDashboardWidgetType'][_0x483df2(0x2c0)]:return _0x483df2(0x341);}}function cn({onDelete:_0x4d70e4,onEdit:_0x113023}){const _0x4c8b2b=_0x16f285;let _0x35ad9a=(0x0,m[_0x4c8b2b(0x15f)])(a[_0x4c8b2b(0x28c)]),_0x4a31af=_0x35ad9a['t']('bases-dashboard-ui.dashboard.editWidget'),_0x3cf231=_0x35ad9a['t'](_0x4c8b2b(0x11c)),_0x42d68c=_0x35ad9a['t'](_0x4c8b2b(0xa7));return(0x0,g[_0x4c8b2b(0x1d7)])(f[_0x4c8b2b(0x338)],{'items':[{'type':_0x4c8b2b(0x43c),'children':(0x0,g[_0x4c8b2b(0x2f3)])(_0x4c8b2b(0x42b),{'className':_0x4c8b2b(0x2be),'children':[(0x0,g[_0x4c8b2b(0x1d7)])(s['PenIcon'],{'className':_0x4c8b2b(0x3fb),'aria-hidden':'true'}),(0x0,g['jsx'])(_0x4c8b2b(0x42b),{'children':_0x4a31af})]}),'onSelect':_0x113023},{'type':'separator'},{'type':_0x4c8b2b(0x43c),'variant':'destructive','children':(0x0,g[_0x4c8b2b(0x2f3)])(_0x4c8b2b(0x42b),{'className':_0x4c8b2b(0x2be),'children':[(0x0,g[_0x4c8b2b(0x1d7)])(s[_0x4c8b2b(0x1cd)],{'className':'univer-size-4','aria-hidden':_0x4c8b2b(0x1e7)}),(0x0,g[_0x4c8b2b(0x1d7)])(_0x4c8b2b(0x42b),{'children':_0x3cf231})]}),'onSelect':_0x4d70e4}],'children':(0x0,g[_0x4c8b2b(0x1d7)])(f['Button'],{'type':_0x4c8b2b(0x28a),'size':_0x4c8b2b(0x362),'variant':_0x4c8b2b(0x326),'title':_0x42d68c,'aria-label':_0x42d68c,'className':_0x4c8b2b(0x465),'children':(0x0,g[_0x4c8b2b(0x1d7)])(s[_0x4c8b2b(0x106)],{'className':_0x4c8b2b(0x3fb),'aria-hidden':_0x4c8b2b(0x1e7)})})});}function ln({dashboardId:_0x1845e7,presentation:_0x2379ad=!0x1,unitId:_0x56a3a6}){const _0x57920b=_0x16f285;let _0x422c4a=(0x0,m[_0x57920b(0x15f)])(a[_0x57920b(0x384)]),_0x5e8c13=(0x0,m['useDependency'])(u[_0x57920b(0x25b)]),_0x59916b=(0x0,m[_0x57920b(0x15f)])(a['IImageIoService']),_0x18725b=(0x0,m[_0x57920b(0x15f)])(a[_0x57920b(0x365)]),_0x5cd0de=(0x0,m[_0x57920b(0x15f)])(a[_0x57920b(0x28c)]),_0x4ab829=(0x0,m[_0x57920b(0x15f)])(e['BaseDashboardResourceService']),_0x139810=(0x0,m[_0x57920b(0x15f)])(a['IUndoRedoService']),_0x4e4110=(0x0,h[_0x57920b(0x232)])(null),[_0x1c7ac8,_0x1c1b47]=(0x0,h['useState'])(!0x1),[_0x59e86f,_0x58b6e8]=(0x0,h['useState'])(),[_0xca986f,_0x4e5e02]=(0x0,h[_0x57920b(0x450)])(!0x1),[_0x5249bb,_0x47c28e]=(0x0,h[_0x57920b(0x450)])(()=>new Map()),_0x58df26=(0x0,h[_0x57920b(0x485)])((_0x27c1fa,_0x2eb5c8)=>{_0x47c28e(_0x2d4cbe=>{let _0x460cef=new Map(_0x2d4cbe);return _0x2eb5c8?_0x460cef['set'](_0x27c1fa,_0x2eb5c8):_0x460cef['delete'](_0x27c1fa),_0x460cef;});},[]),_0x46674c=(0x0,m[_0x57920b(0x49b)])(()=>_0x4ab829[_0x57920b(0x431)][_0x57920b(0x312)]((0x0,c[_0x57920b(0x201)])(()=>_0x4ab829[_0x57920b(0x244)](_0x56a3a6,_0x1845e7))),_0x4ab829[_0x57920b(0x244)](_0x56a3a6,_0x1845e7),!0x1,[_0x1845e7,_0x4ab829,_0x56a3a6]),_0x1da212=_0x18725b[_0x57920b(0x2d6)](_0x56a3a6,a[_0x57920b(0x1c6)][_0x57920b(0x12b)]),_0x3950af=(0x0,m['useObservable'])(()=>_0x139810[_0x57920b(0x13a)],{'undos':0x0,'redos':0x0},!0x1,[_0x139810]),_0x38cca0=w(_0x56a3a6,_0x1845e7);if((0x0,h[_0x57920b(0x2e0)])(()=>{const _0x32731a=_0x57920b;_0x18725b[_0x32731a(0x3cc)](_0x56a3a6),_0x18725b['focusUnit'](_0x56a3a6);},[_0x18725b,_0x56a3a6]),(0x0,h[_0x57920b(0x2e0)])(()=>{const _0x30db93=_0x57920b;let _0x4cbbba=_0x4e4110[_0x30db93(0x1af)],_0x25b23c=_0x4cbbba==null?void 0x0:_0x4cbbba[_0x30db93(0xc3)];if(!_0x4cbbba||!_0x25b23c)return;let _0x2da954=()=>_0x4e5e02(_0x25b23c[_0x30db93(0x3f6)]===_0x25b23c[_0x30db93(0x1f2)]),_0x3ff593=_0x24f2ac=>{const _0x43ae1a=_0x30db93;_0x24f2ac[_0x43ae1a(0x254)]===_0x43ae1a(0x319)&&!_0x24f2ac['defaultPrevented']&&_0x25b23c[_0x43ae1a(0x3f6)]===_0x25b23c['documentElement']&&_0x25b23c[_0x43ae1a(0x1b6)]()[_0x43ae1a(0x2a3)](_0x2da954);};return _0x25b23c[_0x30db93(0x313)]('fullscreenchange',_0x2da954),_0x25b23c[_0x30db93(0x313)](_0x30db93(0x2ae),_0x3ff593),()=>{const _0x2984ce=_0x30db93;_0x25b23c['removeEventListener'](_0x2984ce(0x425),_0x2da954),_0x25b23c[_0x2984ce(0x325)]('keydown',_0x3ff593);};},[]),!_0x46674c||!_0x1da212)return null;let _0x1ef1b1=_0x26a638=>_0x422c4a[_0x57920b(0x363)](e[_0x57920b(0x1e9)]['id'],{'unitId':_0x56a3a6,'dashboardId':_0x1845e7,'widget':_0x26a638})[_0x57920b(0x2a3)](()=>void 0x0),_0x3a3967=(_0x49d70d,_0x32aff9,_0x24c58e)=>{const _0x15e9f9=_0x57920b;let _0x2ddce3=Math[_0x15e9f9(0xe9)](0x0,..._0x46674c['widgetOrder']['flatMap'](_0x51e201=>{const _0x153113=_0x15e9f9;var _0x361e22;let _0x7d0eff=(_0x361e22=_0x46674c['widgets'][_0x51e201])==null?void 0x0:_0x361e22[_0x153113(0x3c1)];return _0x7d0eff?[_0x7d0eff[_0x153113(0x348)]+_0x7d0eff['rowSpan']]:[];})),_0xc4e1ef='dashboard-widget-'+(0x0,a[_0x15e9f9(0x40c)])(0x8),_0x2d9015={'column':0x0,'row':_0x2ddce3,'columnSpan':_0x32aff9,'rowSpan':_0x24c58e};switch(_0x49d70d['type']){case e['BaseDashboardWidgetType']['PivotChart']:return _0x1ef1b1({..._0x49d70d,'id':_0xc4e1ef,'layout':_0x2d9015});case e['BaseDashboardWidgetType']['TableFilter']:return _0x1ef1b1({..._0x49d70d,'id':_0xc4e1ef,'layout':_0x2d9015});case e[_0x15e9f9(0x127)][_0x15e9f9(0x2ec)]:return _0x1ef1b1({..._0x49d70d,'id':_0xc4e1ef,'layout':_0x2d9015});case e['BaseDashboardWidgetType']['Image']:return _0x1ef1b1({..._0x49d70d,'id':_0xc4e1ef,'layout':_0x2d9015});case e[_0x15e9f9(0x127)][_0x15e9f9(0x2c0)]:return _0x1ef1b1({..._0x49d70d,'id':_0xc4e1ef,'layout':_0x2d9015});}},_0xf6045f=_0x1da212[_0x57920b(0x1fc)](),_0xd9e469=_0xf6045f[_0x57920b(0x406)][_0x57920b(0x351)](_0x194dec=>{const _0x2b2c14=_0x57920b;let _0x4b2652=_0xf6045f['tables'][_0x194dec];if(!_0x4b2652)return[];let _0x13de25=_0x4b2652[_0x2b2c14(0x27b)][_0x2b2c14(0x351)](_0x304ac2=>{const _0x5c1fc2=_0x2b2c14;let _0x4df051=_0x4b2652['views'][_0x304ac2];return _n(_0x4df051)?[{'type':_0x5c1fc2(0x43c),'children':_0x4df051['name'],'onSelect':()=>_0x3a3967({'type':e[_0x5c1fc2(0x127)][_0x5c1fc2(0x380)],'tableId':_0x194dec,'pivotViewId':_0x304ac2,'chart':{..._0x4df051[_0x5c1fc2(0x84)][_0x5c1fc2(0x3ef)]}},0x6,0xa)}]:[];});return[{'type':_0x2b2c14(0x3b6),'children':_0x4b2652[_0x2b2c14(0x99)],'options':[..._0x13de25,..._0x13de25[_0x2b2c14(0x444)]?[{'type':_0x2b2c14(0x40f)}]:[],{'type':_0x2b2c14(0x43c),'children':_0x5cd0de['t'](_0x2b2c14(0x445)),'onSelect':()=>_0x3a3967({'type':e[_0x2b2c14(0x127)][_0x2b2c14(0xfc)],'tableId':_0x194dec,'filter':null},0x6,0x8)}]}];}),_0x433996=[..._0xd9e469,..._0xd9e469['length']?[{'type':_0x57920b(0x40f)}]:[],{'type':_0x57920b(0x43c),'children':_0x5cd0de['t'](_0x57920b(0x42e)),'onSelect':()=>_0x3a3967({'type':e[_0x57920b(0x127)][_0x57920b(0x2ec)],'document':pn()},0x4,0x6)},{'type':'item','children':_0x5cd0de['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>mn(_0x5e8c13)[_0x57920b(0x1ba)](_0x1efd41=>_0x1efd41&&_0x3a3967({'type':e[_0x57920b(0x127)][_0x57920b(0x17d)],'source':_0x1efd41['source'],'sourceType':_0x1efd41[_0x57920b(0x263)],'alt':_0x1efd41['name'],'displayMode':_0x57920b(0x234)},0x4,0x6))},{'type':_0x57920b(0x43c),'children':_0x5cd0de['t'](_0x57920b(0x341)),'onSelect':()=>{const _0x78bfb6=_0x57920b;let _0xdff56c=_0xf6045f[_0x78bfb6(0x406)]['find'](_0x19f809=>_0xf6045f[_0x78bfb6(0x252)][_0x19f809]);_0xdff56c&&_0x3a3967({'type':e[_0x78bfb6(0x127)][_0x78bfb6(0x2c0)],'tableId':_0xdff56c,'shapeType':d[_0x78bfb6(0x358)]['RoundRect'],'shapeData':(0x0,i['createFormulaShapeData'])(),'description':_0x5cd0de['t'](_0x78bfb6(0x341))},0x4,0x6);}}],_0x231276=_0x59e86f?_0x46674c[_0x57920b(0x1c8)][_0x59e86f]:void 0x0,_0x49486f=async()=>{const _0x8d360e=_0x57920b;let _0x3d235a=_0x4e4110[_0x8d360e(0x1af)];if(!_0x3d235a)return;let _0x46a913=_0x3d235a['ownerDocument'];_0x46a913['fullscreenElement']===_0x46a913['documentElement']?await _0x46a913['exitFullscreen']():await _0x46a913[_0x8d360e(0x1f2)][_0x8d360e(0x402)]();},_0x3c0339=_0x2379ad||_0xca986f,_0x750fe0=_0x38cca0&&!_0x3c0339;return(0x0,g[_0x57920b(0x2f3)])(_0x57920b(0x24a),{'ref':_0x4e4110,'className':_0x57920b(0xad)+(_0xca986f?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x57920b(0x280))+_0x57920b(0x3d5),'children':[!_0x3c0339&&(0x0,g[_0x57920b(0x2f3)])(_0x57920b(0xab),{'className':_0x57920b(0x220),'children':[(0x0,g['jsx'])(s['ChartIcon'],{'className':'univer-size-5\x20univer-text-primary-600'}),(0x0,g['jsx'])('h2',{'className':_0x57920b(0x2d8),'children':_0x46674c['name']}),(0x0,g[_0x57920b(0x1d7)])(m[_0x57920b(0x227)],{'target':{'unitId':_0x56a3a6,'objectId':(0x0,l[_0x57920b(0x446)])(_0x1845e7),'objectType':p[_0x57920b(0x245)]['BaseDashboard']},'name':_0x46674c[_0x57920b(0x99)],'commandId':l['SetBasePermissionCommand']['id'],'exists':()=>!!_0x4ab829['getDashboard'](_0x56a3a6,_0x1845e7)},_0x56a3a6+'/'+_0x1845e7),(0x0,g[_0x57920b(0x1d7)])(t[_0x57920b(0x188)],{'unitId':_0x56a3a6}),(0x0,g[_0x57920b(0x1d7)])(f[_0x57920b(0x1bb)],{'type':_0x57920b(0x28a),'size':_0x57920b(0x362),'variant':_0x57920b(0x326),'aria-label':_0x5cd0de['t'](_0x57920b(0x105)),'disabled':!_0x38cca0||_0x3950af[_0x57920b(0x16f)]===0x0,'onClick':()=>_0x422c4a[_0x57920b(0x363)](a['UndoCommand']['id'])[_0x57920b(0x2a3)](()=>void 0x0),'children':(0x0,g[_0x57920b(0x1d7)])(s[_0x57920b(0x229)],{})}),(0x0,g[_0x57920b(0x1d7)])(f['Button'],{'type':_0x57920b(0x28a),'size':'small','variant':_0x57920b(0x326),'aria-label':_0x5cd0de['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x38cca0||_0x3950af[_0x57920b(0x48d)]===0x0,'onClick':()=>_0x422c4a[_0x57920b(0x363)](a[_0x57920b(0x2c8)]['id'])[_0x57920b(0x2a3)](()=>void 0x0),'children':(0x0,g[_0x57920b(0x1d7)])(s['RedoIcon'],{})}),(0x0,g[_0x57920b(0x1d7)])(f[_0x57920b(0x1bb)],{'type':_0x57920b(0x28a),'size':_0x57920b(0x362),'variant':_0x57920b(0x326),'aria-label':_0x5cd0de['t'](_0x57920b(0x25f)),'onClick':()=>_0x49486f()[_0x57920b(0x2a3)](()=>void 0x0),'children':(0x0,g['jsx'])(s['ExpandIcon'],{})}),(0x0,g[_0x57920b(0x1d7)])(f[_0x57920b(0x338)],{'items':_0x433996,'children':(0x0,g[_0x57920b(0x2f3)])(f[_0x57920b(0x1bb)],{'variant':_0x57920b(0x149),'disabled':!_0x38cca0,'children':[(0x0,g[_0x57920b(0x1d7)])(s[_0x57920b(0xc2)],{}),_0x5cd0de['t'](_0x57920b(0x134))]})})]}),(0x0,g[_0x57920b(0x2f3)])(_0x57920b(0x24a),{'className':_0x57920b(0xaa),'children':[(0x0,g[_0x57920b(0x1d7)])(_0x57920b(0x24a),{'className':_0x57920b(0x2da),'children':(0x0,g[_0x57920b(0x1d7)])(wt,{'dashboard':_0x46674c,'dragLabel':_0x5cd0de['t']('bases-dashboard-ui.dashboardInspector.dragWidget'),'editable':_0x750fe0,'resizeLabel':_0x5cd0de['t'](_0x57920b(0x3c7)),'widgetLabel':_0x35f1e8=>_0x5cd0de['t'](gn(_0x35f1e8[_0x57920b(0x430)])),'selectedWidgetId':_0x750fe0?_0x59e86f:void 0x0,'onSelectWidget':_0x750fe0?_0x44400e=>{_0x58b6e8(_0x44400e),_0x44400e||_0x1c1b47(!0x1);}:void 0x0,'onLayoutsCommit':_0x3386fc=>{const _0x3de11a=_0x57920b;let _0x3def64={..._0x46674c[_0x3de11a(0x1c8)]};_0x3386fc[_0x3de11a(0x26f)]((_0x1fb31d,_0x1b6fed)=>{let _0x134dae=_0x3def64[_0x1b6fed];_0x134dae&&(_0x3def64[_0x1b6fed]={..._0x134dae,'layout':_0x1fb31d});}),_0x422c4a['executeCommand'](e[_0x3de11a(0x1b3)]['id'],{'unitId':_0x56a3a6,'dashboard':{..._0x46674c,'widgets':_0x3def64}})['catch'](()=>void 0x0);},'renderWidget':_0x2c9629=>(0x0,g[_0x57920b(0x1d7)])(un,{'base':_0x1da212,'dashboard':_0x46674c,'unitId':_0x56a3a6,'widget':_0x2c9629,'onChange':_0x1ef1b1,'onChartRuntimeChange':_0x58df26}),'renderWidgetActions':_0x41c158=>(0x0,g[_0x57920b(0x1d7)])(cn,{'onEdit':()=>{_0x58b6e8(_0x41c158['id']),_0x1c1b47(!0x0);},'onDelete':()=>{const _0x2c36bf=_0x57920b;_0x59e86f===_0x41c158['id']&&(_0x58b6e8(void 0x0),_0x1c1b47(!0x1)),_0x422c4a[_0x2c36bf(0x363)](e[_0x2c36bf(0x371)]['id'],{'unitId':_0x56a3a6,'dashboardId':_0x1845e7,'widgetId':_0x41c158['id']})[_0x2c36bf(0x2a3)](()=>void 0x0);}})})}),_0x750fe0&&_0x1c7ac8&&_0x231276&&(0x0,g['jsx'])($t,{'base':_0x1da212,'chartRuntime':_0x5249bb[_0x57920b(0x22e)](_0x231276['id']),'unitId':_0x56a3a6,'widget':_0x231276,'onChange':_0x1ef1b1,'onClose':()=>_0x1c1b47(!0x1),'onSelectBackgroundImage':()=>hn(_0x59916b),'onSelectImage':()=>mn(_0x5e8c13)})]})]});}function un({base:_0x268956,dashboard:_0x3dae99,onChange:_0x299e24,onChartRuntimeChange:_0x182860,unitId:_0x155706,widget:_0x2cb172}){const _0x267320=_0x16f285;let _0x2569aa=(0x0,h[_0x267320(0x4a4)])(()=>_0x3dae99['widgetOrder']['flatMap'](_0x175386=>{const _0x4e6c44=_0x267320;let _0x374675=_0x3dae99['widgets'][_0x175386];return(_0x374675==null?void 0x0:_0x374675[_0x4e6c44(0x430)])===e[_0x4e6c44(0x127)][_0x4e6c44(0xfc)]&&_0x374675[_0x4e6c44(0x135)]===(_0x4e6c44(0x135)in _0x2cb172?_0x2cb172[_0x4e6c44(0x135)]:'')&&_0x374675['filter']?[_0x374675[_0x4e6c44(0x39e)]]:[];}),[_0x3dae99,_0x2cb172]);switch(_0x2cb172[_0x267320(0x430)]){case e['BaseDashboardWidgetType'][_0x267320(0x380)]:return(0x0,g[_0x267320(0x1d7)])(ie,{'filters':_0x2569aa,'unitId':_0x155706,'widget':_0x2cb172,'onRuntimeChange':_0x182860});case e[_0x267320(0x127)][_0x267320(0xfc)]:return(0x0,g['jsx'])(Rt,{'fields':dn(_0x268956,_0x2cb172[_0x267320(0x135)]),'filter':_0x2cb172[_0x267320(0x39e)],'onChange':_0x2d6874=>_0x299e24({..._0x2cb172,'filter':_0x2d6874})['catch'](()=>void 0x0)});case e[_0x267320(0x127)][_0x267320(0x2ec)]:return(0x0,g[_0x267320(0x1d7)])(ce,{'widget':_0x2cb172});case e['BaseDashboardWidgetType']['Image']:return(0x0,g[_0x267320(0x1d7)])(fn,{'widget':_0x2cb172});case e[_0x267320(0x127)]['FormulaShape']:return(0x0,g[_0x267320(0x1d7)])(M,{'dashboardId':_0x3dae99['id'],'unitId':_0x155706,'widget':_0x2cb172});}}function dn(_0x566edb,_0x2ab348){const _0x13f41f=_0x16f285;let _0x118a9b=_0x566edb[_0x13f41f(0x1fc)]()[_0x13f41f(0x252)][_0x2ab348],_0x2016c1=_0x118a9b==null?void 0x0:_0x118a9b[_0x13f41f(0x27b)]['find'](_0x4f19bc=>_0x118a9b['views'][_0x4f19bc]),_0x2b430a=_0x2016c1?_0x118a9b==null?void 0x0:_0x118a9b[_0x13f41f(0x2dc)][_0x2016c1]:void 0x0;return _0x118a9b&&_0x2b430a?(0x0,t[_0x13f41f(0x49f)])(_0x118a9b,_0x2b430a):[];}function fn({widget:_0x58e083}){const _0x20fc7a=_0x16f285;let _0x25315c=(0x0,m[_0x20fc7a(0x15f)])(u['IAttachmentIoService']),[_0x27cf83,_0x372adf]=(0x0,h[_0x20fc7a(0x450)])(_0x58e083[_0x20fc7a(0x263)]===a[_0x20fc7a(0x1f5)][_0x20fc7a(0x382)]?'':_0x58e083['source']);return(0x0,h[_0x20fc7a(0x2e0)])(()=>{const _0x356df6=_0x20fc7a;let _0x3b86d8=!0x0;return _0x25315c[_0x356df6(0x442)](_0x58e083[_0x356df6(0x2fe)],_0x58e083['sourceType'])['then'](_0x185189=>{_0x3b86d8&&_0x372adf(_0x185189);})['catch'](()=>void 0x0),()=>{_0x3b86d8=!0x1;};},[_0x25315c,_0x58e083[_0x20fc7a(0x2fe)],_0x58e083['sourceType']]),_0x27cf83?(0x0,g[_0x20fc7a(0x1d7)])(_0x20fc7a(0x24a),{'role':_0x58e083[_0x20fc7a(0x166)]?_0x20fc7a(0x114):void 0x0,'aria-label':_0x58e083['alt']||void 0x0,'data-dashboard-image':_0x58e083['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x27cf83,_0x58e083[_0x20fc7a(0x1b0)])}):null;}function pn(){const _0x1c5cf9=_0x16f285;let _0x45e5a7=(0x0,a[_0x1c5cf9(0x1d8)])(new Set());return{'id':_0x1c5cf9(0x31e)+(0x0,a['generateRandomId'])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x45e5a7}]},'documentStyle':{}};}function mn(_0x95cd80){return new Promise(_0x40f29b=>{const _0xa5b052=_0x2d20;let _0x3f9d4e=document['createElement'](_0xa5b052(0x449));_0x3f9d4e[_0xa5b052(0x430)]=_0xa5b052(0x2b8),_0x3f9d4e[_0xa5b052(0x4a3)]=_0xa5b052(0x1ad),_0x3f9d4e['addEventListener'](_0xa5b052(0x3ea),()=>{const _0x33f33b=_0xa5b052;var _0x49cc65;let _0x325e8e=(_0x49cc65=_0x3f9d4e[_0x33f33b(0xcb)])==null?void 0x0:_0x49cc65[0x0];_0x325e8e?_0x95cd80[_0x33f33b(0x23c)](_0x325e8e)[_0x33f33b(0x1ba)](_0x1a6718=>{const _0x214cb7=_0x33f33b;!_0x1a6718[_0x214cb7(0x2fe)]||_0x1a6718[_0x214cb7(0x263)]===void 0x0?_0x40f29b(null):_0x40f29b({'name':_0x1a6718[_0x214cb7(0x99)],'source':_0x1a6718['source'],'sourceType':_0x1a6718[_0x214cb7(0x263)]});})[_0x33f33b(0x2a3)](()=>_0x40f29b(null)):_0x40f29b(null);},{'once':!0x0}),_0x3f9d4e[_0xa5b052(0x483)]();});}function hn(_0xa688e8){return new Promise(_0x512da0=>{const _0x3d8212=_0x2d20;let _0x85dc8e=document[_0x3d8212(0x2b3)]('input');_0x85dc8e['type']=_0x3d8212(0x2b8),_0x85dc8e[_0x3d8212(0x4a3)]=_0x3d8212(0x1ad),_0x85dc8e[_0x3d8212(0x313)]('change',()=>{const _0x44dc20=_0x3d8212;var _0x3ddb73;let _0x2da706=(_0x3ddb73=_0x85dc8e['files'])==null?void 0x0:_0x3ddb73[0x0];_0x2da706?_0xa688e8[_0x44dc20(0x282)](_0x2da706)['then'](_0x39eff4=>{const _0x5a0c70=_0x44dc20;if(!(_0x39eff4!=null&&_0x39eff4['source']))_0x512da0(null);else{if(_0x39eff4['base64Cache']){let _0x5d5871=new Image();_0x5d5871[_0x5a0c70(0x370)]=_0x39eff4[_0x5a0c70(0xe6)],_0xa688e8[_0x5a0c70(0xba)](_0x39eff4[_0x5a0c70(0x2fe)],_0x39eff4[_0x5a0c70(0x346)],_0x5d5871);}_0x512da0({'source':_0x39eff4['source'],'sourceType':_0x39eff4['imageSourceType']});}})['catch'](()=>_0x512da0(null)):_0x512da0(null);},{'once':!0x0}),_0x85dc8e[_0x3d8212(0x483)]();});}function gn(_0x3e75b7){const _0x5ed646=_0x16f285;switch(_0x3e75b7){case e[_0x5ed646(0x127)]['PivotChart']:return _0x5ed646(0x1ab);case e['BaseDashboardWidgetType']['TableFilter']:return _0x5ed646(0x445);case e[_0x5ed646(0x127)][_0x5ed646(0x2ec)]:return _0x5ed646(0x42e);case e[_0x5ed646(0x127)][_0x5ed646(0x17d)]:return'bases-dashboard-ui.dashboard.image';case e['BaseDashboardWidgetType']['FormulaShape']:return _0x5ed646(0x341);}}function _n(_0x294f5d){const _0x4ad7ea=_0x16f285;return(_0x294f5d==null?void 0x0:_0x294f5d['type'])===a[_0x4ad7ea(0x17b)][_0x4ad7ea(0x349)]&&typeof _0x294f5d['config']==_0x4ad7ea(0x396)&&_0x294f5d[_0x4ad7ea(0x84)]!==null&&_0x4ad7ea(0x418)in _0x294f5d[_0x4ad7ea(0x84)]&&_0x4ad7ea(0x3ef)in _0x294f5d[_0x4ad7ea(0x84)];}const vn=[{'area':y[_0x16f285(0x34d)]['Filter'],'key':_0x16f285(0x184),'label':_0x16f285(0xca)},{'area':y[_0x16f285(0x34d)][_0x16f285(0x119)],'key':_0x16f285(0x36a),'label':'bases-dashboard-ui.pivot.columns'},{'area':y['PivotTableFiledAreaEnum']['Row'],'key':_0x16f285(0x3e2),'label':'bases-dashboard-ui.pivot.rows'},{'area':y[_0x16f285(0x34d)][_0x16f285(0x41a)],'key':'valueFields','label':'bases-dashboard-ui.pivot.values'}],yn=[{'value':y[_0x16f285(0x48b)][_0x16f285(0x32c)],'localeKey':_0x16f285(0x2d4)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x267)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':y[_0x16f285(0x48b)][_0x16f285(0x117)],'localeKey':_0x16f285(0x49a)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x183)],'localeKey':_0x16f285(0xbe)},{'value':y['PivotSubtotalTypeEnum'][_0x16f285(0xe9)],'localeKey':_0x16f285(0x18e)},{'value':y['PivotSubtotalTypeEnum'][_0x16f285(0x2a0)],'localeKey':_0x16f285(0x29f)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x3fe)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y['PivotSubtotalTypeEnum']['stdDev'],'localeKey':_0x16f285(0x1a9)},{'value':y[_0x16f285(0x48b)][_0x16f285(0x473)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':y[_0x16f285(0x48b)][_0x16f285(0x301)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':y[_0x16f285(0x48b)][_0x16f285(0xb1)],'localeKey':_0x16f285(0x3d8)}];function bn(_0x5a3d7f){const _0x62aba=_0x16f285;let {config:_0x5e9b54,onChange:_0x185667,table:_0x7b00f}=_0x5a3d7f,_0x54734f=(0x0,m['useDependency'])(a['LocaleService']),[_0x5100b3,_0x392f43]=(0x0,h['useState'])('fields'),[_0x7768a,_0x2fbe5a]=(0x0,h[_0x62aba(0x450)])(''),[_0x17da9c,_0x458fab]=(0x0,h[_0x62aba(0x450)])(null),[_0x39c15d,_0x573e85]=(0x0,h['useState'])(null),[_0x104649,_0x555b60]=(0x0,h[_0x62aba(0x450)])(null),[_0x7a07f7,_0x4acef0]=(0x0,h['useState'])(null),_0x3aab45=(0x0,h[_0x62aba(0x232)])(null),_0x2a6fb8=(0x0,h[_0x62aba(0x4a4)])(()=>_0x7b00f[_0x62aba(0x1e4)][_0x62aba(0x351)](_0x81ff91=>{const _0x381d5a=_0x62aba;let _0x2b55e7=_0x7b00f[_0x381d5a(0x34a)][_0x81ff91];return _0x2b55e7&&_0x2b55e7['system']!==!0x0&&_0x2b55e7[_0x381d5a(0x430)]!==a[_0x381d5a(0x357)][_0x381d5a(0xdc)]?[_0x2b55e7]:[];})[_0x62aba(0x39e)](_0x304a8a=>_0x304a8a[_0x62aba(0x99)][_0x62aba(0x38f)]()[_0x62aba(0x8c)](_0x7768a['trim']()[_0x62aba(0x38f)]())),[_0x7768a,_0x7b00f]),_0x309b01=_0x4ef403=>{const _0x495471=_0x62aba;let _0x1f79bb=(0x0,e[_0x495471(0x2f4)])(_0x7b00f,_0x5e9b54[_0x495471(0x418)]);try{_0x4ef403(_0x1f79bb),_0x185667({'pivot':_0x1f79bb[_0x495471(0x424)]()});}finally{_0x1f79bb['dispose']();}},_0xc52913=(_0x25e269,_0xd6cc86)=>{_0x17da9c&&(_0x309b01(_0x1ccef5=>{const _0x53e537=_0x2d20;if(_0x17da9c[_0x53e537(0x79)]===_0x53e537(0x48e)){let _0x416790=_0x1ccef5[_0x53e537(0x331)](_0x17da9c['id']),_0x1b841f=_0x416790['area']===_0x25e269&&_0x416790[_0x53e537(0xa3)]<_0xd6cc86?_0xd6cc86-0x1:_0xd6cc86;_0x1ccef5[_0x53e537(0x288)](_0x17da9c['id'],_0x25e269,_0x1b841f);}else On(_0x1ccef5,_0x17da9c['id'],_0x25e269,_0xd6cc86);}),_0x458fab(null),_0x573e85(null));};return(0x0,g[_0x62aba(0x2f3)])(_0x62aba(0x24a),{'className':_0x62aba(0x3d2),'children':[(0x0,g[_0x62aba(0x1d7)])(n[_0x62aba(0x286)],{'ariaLabel':_0x54734f['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x54734f['t'](_0x62aba(0x204)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x54734f['t']('bases-dashboard-ui.pivot.options'),'panelId':'base-pivot-options','value':_0x62aba(0x19e)}],'value':_0x5100b3,'onChange':_0x392f43}),(0x0,g[_0x62aba(0x1d7)])(_0x62aba(0x24a),{'ref':_0x3aab45,'className':(0x0,f['clsx'])(_0x62aba(0x23a),f[_0x62aba(0x36e)]),'onDragOver':_0x375ecf=>{const _0x55e79a=_0x62aba;let _0x2fd665=_0x3aab45[_0x55e79a(0x1af)];if(!_0x2fd665)return;let _0x4a8a44=_0x2fd665[_0x55e79a(0x1b2)]();_0x375ecf['clientY']<_0x4a8a44[_0x55e79a(0x32b)]+0x30?_0x2fd665[_0x55e79a(0x2cb)]-=0x10:_0x375ecf[_0x55e79a(0x36f)]>_0x4a8a44[_0x55e79a(0x1d6)]-0x30&&(_0x2fd665['scrollTop']+=0x10);},'children':_0x5100b3===_0x62aba(0x19e)?(0x0,g[_0x62aba(0x1d7)])(Dn,{'config':_0x5e9b54,'commit':_0x309b01}):(0x0,g[_0x62aba(0x2f3)])(_0x62aba(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g[_0x62aba(0x2f3)])(_0x62aba(0x24a),{'children':[(0x0,g[_0x62aba(0x1d7)])(_0x62aba(0x24a),{'className':_0x62aba(0x167),'children':_0x54734f['t']('bases-dashboard-ui.pivot.sourceFields')}),(0x0,g[_0x62aba(0x1d7)])(f[_0x62aba(0x3cd)],{'allowClear':!0x0,'slot':(0x0,g[_0x62aba(0x1d7)])(s[_0x62aba(0x1f6)],{}),'value':_0x7768a,'placeholder':_0x54734f['t'](_0x62aba(0x158)),'onChange':_0x2fbe5a}),(0x0,g['jsx'])('div',{'className':_0x62aba(0x85),'children':_0x2a6fb8[_0x62aba(0x201)](_0x560230=>(0x0,g['jsx'])(xn,{'config':_0x5e9b54,'field':_0x560230,'onAdd':_0x418de8=>_0x309b01(_0x1a368d=>On(_0x1a368d,_0x560230['id'],_0x418de8,_0x1a368d[_0x62aba(0x1cc)](_0x418de8))),'onCheckedChange':_0x49afa6=>_0x309b01(_0x5e69c9=>{const _0x308ae6=_0x62aba;let _0xe5086e=_0x5e69c9['getTableFieldsByDataFieldId'](_0x560230['id']);if(!_0x49afa6)_0xe5086e['forEach'](_0x1cbbba=>_0x5e69c9['removeField'](_0x1cbbba[_0x308ae6(0x181)]()));else{if(_0xe5086e['length']===0x0){let _0x2e1f16=An(_0x560230)?y[_0x308ae6(0x34d)]['Value']:y['PivotTableFiledAreaEnum'][_0x308ae6(0x176)];_0x5e69c9[_0x308ae6(0x494)](_0x560230['id'],_0x2e1f16);}}}),'onDragStart':()=>_0x458fab({'kind':_0x62aba(0x2fe),'id':_0x560230['id']})},_0x560230['id']))})]}),(0x0,g['jsx'])(_0x62aba(0x24a),{'className':_0x62aba(0x27f),'children':vn['map'](_0x205d4d=>(0x0,g[_0x62aba(0x1d7)])(Cn,{'area':_0x205d4d[_0x62aba(0x223)],'dropTarget':_0x39c15d,'fields':_0x5e9b54[_0x62aba(0x418)][_0x205d4d['key']],'label':_0x54734f['t'](_0x205d4d[_0x62aba(0x1d9)]),'snapshot':_0x5e9b54['pivot'],'onDragEnd':()=>{_0x458fab(null),_0x573e85(null);},'onDragStart':_0x2048df=>_0x458fab({'kind':_0x62aba(0x48e),'id':_0x2048df,'area':_0x205d4d[_0x62aba(0x223)]}),'onDragOver':_0x5d5ea2=>_0x573e85({'area':_0x205d4d[_0x62aba(0x223)],'index':_0x5d5ea2}),'onDrop':_0xe39a3b=>_0xc52913(_0x205d4d[_0x62aba(0x223)],_0xe39a3b),'onFilter':_0x555b60,'onRemove':_0x30e494=>_0x309b01(_0x391fb2=>_0x391fb2[_0x62aba(0x8e)](_0x30e494)),'onSettings':_0x4acef0},_0x205d4d[_0x62aba(0x223)]))}),_0x104649&&(0x0,g['jsx'])(Tn,{'fieldId':_0x104649,'snapshot':_0x5e9b54['pivot'],'table':_0x7b00f,'onCancel':()=>_0x555b60(null),'onCommit':(_0x5d5f72,_0x1db65a)=>{_0x309b01(_0x31e0c0=>{const _0xf13bb9=_0x2d20;let _0x6c0d74=_0x31e0c0[_0xf13bb9(0x3ff)](_0x104649),_0x54c229=(_0x6c0d74==null?void 0x0:_0x6c0d74[_0xf13bb9(0x109)])??[];_0x31e0c0[_0xf13bb9(0x96)](_0x104649,{'type':y['PivotFilterTypeEnum']['ManualFilter'],'list':_0x5d5f72,'isAll':_0x5d5f72[_0xf13bb9(0x444)]===_0x54c229['length']}),_0x31e0c0[_0xf13bb9(0x1e3)](_0x104649,_0x1db65a===void 0x0?void 0x0:{'type':_0x1db65a});}),_0x555b60(null);}},_0x104649),_0x7a07f7&&(0x0,g[_0x62aba(0x1d7)])(En,{'field':_0x5e9b54[_0x62aba(0x418)][_0x62aba(0x190)][_0x7a07f7],'onCancel':()=>_0x4acef0(null),'onCommit':(_0x5cdf75,_0x505923,_0x10c14f)=>{_0x309b01(_0x6810f2=>{const _0x3b6d0b=_0x2d20;_0x6810f2[_0x3b6d0b(0x427)](_0x7a07f7,_0x5cdf75),_0x6810f2['setSubtotalType'](_0x7a07f7,_0x505923),_0x6810f2[_0x3b6d0b(0x171)](_0x7a07f7,_0x10c14f||void 0x0);}),_0x4acef0(null);}},_0x7a07f7)]})})]});}function xn(_0x4b7c51){const _0x5590bf=_0x16f285;let {config:_0x13afd5,field:_0x4760e0,onAdd:_0x3bb11a,onCheckedChange:_0x2df6fe,onDragStart:_0x437309}=_0x4b7c51,_0x134552=(0x0,m['useDependency'])(a['LocaleService']),_0x454009=[...Object['values'](_0x13afd5[_0x5590bf(0x418)]['dimension']),...Object[_0x5590bf(0xe3)](_0x13afd5[_0x5590bf(0x418)][_0x5590bf(0x190)])][_0x5590bf(0x153)](_0x52534d=>_0x52534d[_0x5590bf(0x1dd)]===_0x4760e0['id']),_0x2a4937=vn[_0x5590bf(0x201)](_0xeccca1=>({'type':_0x5590bf(0x43c),'children':_0x134552['t'](jn(_0xeccca1[_0x5590bf(0x223)])),'onSelect':()=>_0x3bb11a(_0xeccca1[_0x5590bf(0x223)])}));return(0x0,g[_0x5590bf(0x2f3)])(_0x5590bf(0x24a),{'draggable':!0x0,'className':_0x5590bf(0x45e),'onDragStart':_0x437309,'children':[(0x0,g['jsx'])(s[_0x5590bf(0x38b)],{'className':_0x5590bf(0x25d)}),(0x0,g[_0x5590bf(0x1d7)])(f['Checkbox'],{'checked':_0x454009,'onChange':_0x207f03=>_0x2df6fe(!!_0x207f03)}),(0x0,g[_0x5590bf(0x1d7)])(Sn,{'field':_0x4760e0}),(0x0,g['jsx'])(_0x5590bf(0x42b),{'className':_0x5590bf(0x39c),'children':_0x4760e0[_0x5590bf(0x99)]}),(0x0,g[_0x5590bf(0x1d7)])(f[_0x5590bf(0x338)],{'align':'end','items':_0x2a4937,'children':(0x0,g['jsx'])(_0x5590bf(0x42b),{'className':_0x5590bf(0xf4),'children':(0x0,g['jsx'])(s[_0x5590bf(0xde)],{})})})]});}function Sn({field:_0x28cf8e}){const _0x4b8dd3=_0x16f285;return An(_0x28cf8e)?(0x0,g[_0x4b8dd3(0x1d7)])(s[_0x4b8dd3(0x3c0)],{'className':_0x4b8dd3(0x25d)}):_0x28cf8e[_0x4b8dd3(0x430)]===a[_0x4b8dd3(0x357)][_0x4b8dd3(0x231)]||_0x28cf8e[_0x4b8dd3(0x430)]===a[_0x4b8dd3(0x357)]['CreatedAt']||_0x28cf8e[_0x4b8dd3(0x430)]===a[_0x4b8dd3(0x357)][_0x4b8dd3(0x2a9)]?(0x0,g[_0x4b8dd3(0x1d7)])(s[_0x4b8dd3(0x168)],{'className':_0x4b8dd3(0x25d)}):(0x0,g[_0x4b8dd3(0x1d7)])(s[_0x4b8dd3(0x381)],{'className':'univer-text-gray-400'});}function Cn(_0x1a0c6b){const _0x219a8a=_0x16f285;let {area:_0x43817c,dropTarget:_0x5efb11,fields:_0x2b9b0f,label:_0x14dba9,snapshot:_0x37ff81}=_0x1a0c6b,_0x5cb64b=(0x0,m[_0x219a8a(0x15f)])(a[_0x219a8a(0x28c)]);return(0x0,g['jsxs'])(_0x219a8a(0x47e),{'className':(0x0,f[_0x219a8a(0x19b)])('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',f[_0x219a8a(0x169)]),'onDragOver':_0x4b22b5=>{const _0x15a742=_0x219a8a;_0x4b22b5['preventDefault'](),_0x1a0c6b[_0x15a742(0xfa)](_0x2b9b0f['length']);},'onDrop':_0x3bf021=>{const _0x2fd8e6=_0x219a8a;_0x3bf021[_0x2fd8e6(0x477)](),_0x1a0c6b['onDrop']((_0x5efb11==null?void 0x0:_0x5efb11[_0x2fd8e6(0x223)])===_0x43817c?_0x5efb11[_0x2fd8e6(0xa3)]:_0x2b9b0f[_0x2fd8e6(0x444)]);},'children':[(0x0,g[_0x219a8a(0x1d7)])(_0x219a8a(0x24a),{'className':_0x219a8a(0x22b),'children':_0x14dba9}),(0x0,g[_0x219a8a(0x2f3)])('div',{'className':_0x219a8a(0x28f),'children':[_0x2b9b0f[_0x219a8a(0x201)]((_0x2c7421,_0x525617)=>{const _0x527abb=_0x219a8a;let _0x4a855c=_0x37ff81[_0x527abb(0x3a3)][_0x2c7421]??_0x37ff81[_0x527abb(0x190)][_0x2c7421];if(!_0x4a855c)return null;let _0x3d3caa=(_0x5efb11==null?void 0x0:_0x5efb11['area'])===_0x43817c&&_0x5efb11['index']===_0x525617;return(0x0,g[_0x527abb(0x2f3)])('div',{'onDragOver':_0x4eb3ea=>{const _0x25b404=_0x527abb;_0x4eb3ea['preventDefault'](),_0x4eb3ea[_0x25b404(0x3bd)]();let _0x278ec0=_0x4eb3ea[_0x25b404(0x3b8)][_0x25b404(0x1b2)]();_0x1a0c6b[_0x25b404(0xfa)](_0x525617+ +(_0x4eb3ea['clientY']>_0x278ec0[_0x25b404(0x32b)]+_0x278ec0[_0x25b404(0xd4)]/0x2));},'onDrop':_0x44cddf=>{const _0x10aa4a=_0x527abb;_0x44cddf[_0x10aa4a(0x477)](),_0x44cddf[_0x10aa4a(0x3bd)](),_0x1a0c6b[_0x10aa4a(0x150)]((_0x5efb11==null?void 0x0:_0x5efb11[_0x10aa4a(0x223)])===_0x43817c?_0x5efb11['index']:_0x525617);},'children':[_0x3d3caa&&(0x0,g[_0x527abb(0x1d7)])(_0x527abb(0x24a),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),(0x0,g[_0x527abb(0x1d7)])(wn,{'area':_0x43817c,'field':_0x4a855c,'onDragEnd':_0x1a0c6b[_0x527abb(0x287)],'onDragStart':()=>_0x1a0c6b[_0x527abb(0x1a2)](_0x2c7421),'onFilter':()=>_0x1a0c6b['onFilter'](_0x2c7421),'onRemove':()=>_0x1a0c6b[_0x527abb(0x3bf)](_0x2c7421),'onSettings':()=>_0x1a0c6b['onSettings'](_0x2c7421)})]},_0x2c7421);}),(_0x5efb11==null?void 0x0:_0x5efb11[_0x219a8a(0x223)])===_0x43817c&&_0x5efb11[_0x219a8a(0xa3)]===_0x2b9b0f[_0x219a8a(0x444)]&&(0x0,g[_0x219a8a(0x1d7)])(_0x219a8a(0x24a),{'className':_0x219a8a(0x42f)}),_0x2b9b0f[_0x219a8a(0x444)]===0x0&&(0x0,g[_0x219a8a(0x1d7)])(_0x219a8a(0x24a),{'className':_0x219a8a(0x256),'children':_0x5cb64b['t']('bases-dashboard-ui.pivot.dropFieldsHere')})]})]});}function wn(_0xcd9f5f){const _0x564f3a=_0x16f285;let _0x404a5b=(0x0,m[_0x564f3a(0x15f)])(a['LocaleService']),_0x1cd104=_0xcd9f5f[_0x564f3a(0x223)]===y[_0x564f3a(0x34d)]['Value'],_0x37a6f6=[{'type':_0x564f3a(0x43c),'children':_0x404a5b['t'](_0x564f3a(0xee)),'onSelect':_0xcd9f5f[_0x564f3a(0x3bf)]},{'type':'item','children':_0x404a5b['t'](_0x1cd104?_0x564f3a(0xce):_0x564f3a(0x20d)),'onSelect':_0x1cd104?_0xcd9f5f[_0x564f3a(0x3f8)]:_0xcd9f5f['onFilter']}];return(0x0,g['jsxs'])(_0x564f3a(0x24a),{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0xcd9f5f['onDragEnd'],'onDragStart':_0xcd9f5f['onDragStart'],'children':[(0x0,g['jsx'])(s[_0x564f3a(0x38b)],{'className':_0x564f3a(0x25d)}),(0x0,g['jsx'])(f[_0x564f3a(0x44b)],{'title':_0xcd9f5f['field']['displayName'],'children':(0x0,g[_0x564f3a(0x1d7)])('span',{'className':_0x564f3a(0x39c),'children':_0xcd9f5f['field'][_0x564f3a(0x2e2)]})}),(0x0,g[_0x564f3a(0x1d7)])(f[_0x564f3a(0x338)],{'align':_0x564f3a(0x3d1),'items':_0x37a6f6,'children':(0x0,g[_0x564f3a(0x1d7)])('span',{'className':_0x564f3a(0xf4),'children':(0x0,g[_0x564f3a(0x1d7)])(s[_0x564f3a(0xde)],{})})})]});}function Tn(_0x354862){const _0x421e9a=_0x16f285;var _0x4cc94f,_0x4ecb68;let _0x226a42=(0x0,m['useDependency'])(a[_0x421e9a(0x28c)]),{format:_0x2b717b,items:_0x23b361,itemTypes:_0x468c4d}=(0x0,h['useMemo'])(()=>{const _0x329560=_0x421e9a;let _0x2cb723=(0x0,e[_0x329560(0x2f4)])(_0x354862[_0x329560(0x3b5)],_0x354862[_0x329560(0x367)]);try{let _0x514a75=_0x2cb723[_0x329560(0x3ff)](_0x354862[_0x329560(0x26c)]);return{'format':_0x514a75==null?void 0x0:_0x514a75['format'],'items':[...(_0x514a75==null?void 0x0:_0x514a75[_0x329560(0x109)])??[]],'itemTypes':[...(_0x514a75==null?void 0x0:_0x514a75[_0x329560(0x97)])??[]]};}finally{_0x2cb723[_0x329560(0x23e)]();}},[_0x354862[_0x421e9a(0x26c)],_0x354862[_0x421e9a(0x367)],_0x354862['table']]),_0xa0b505=(_0x4cc94f=_0x354862[_0x421e9a(0x367)][_0x421e9a(0x3a3)][_0x354862['fieldId']])==null?void 0x0:_0x4cc94f[_0x421e9a(0x1a5)],[_0xd517bf,_0x5a28ea]=(0x0,h['useState'])((_0xa0b505==null?void 0x0:_0xa0b505[_0x421e9a(0x430)])===y[_0x421e9a(0x309)][_0x421e9a(0x2f0)]?_0xa0b505[_0x421e9a(0xc0)]:_0x23b361),[_0x4f222f,_0x461ba6]=(0x0,h[_0x421e9a(0x450)])((_0x4ecb68=_0x354862['snapshot'][_0x421e9a(0x3a3)][_0x354862['fieldId']])==null||(_0x4ecb68=_0x4ecb68['sortInfo'])==null?void 0x0:_0x4ecb68['type']),_0x75038d=_0xd517bf[_0x421e9a(0x444)]===_0x23b361['length'];return(0x0,g[_0x421e9a(0x2f3)])(_0x421e9a(0x47e),{'className':(0x0,f[_0x421e9a(0x19b)])('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x421e9a(0x169)]),'children':[(0x0,g[_0x421e9a(0x1d7)])(_0x421e9a(0x24a),{'className':_0x421e9a(0xeb),'children':_0x226a42['t'](_0x421e9a(0x20d))}),(0x0,g[_0x421e9a(0x2f3)])('div',{'className':_0x421e9a(0x3b4),'children':[(0x0,g[_0x421e9a(0x2f3)])(f[_0x421e9a(0x1bb)],{'className':_0x421e9a(0x366),'variant':_0x4f222f===y[_0x421e9a(0xc7)][_0x421e9a(0x434)]?_0x421e9a(0x149):_0x421e9a(0x3f0),'onClick':()=>_0x461ba6(y[_0x421e9a(0xc7)][_0x421e9a(0x434)]),'children':[(0x0,g[_0x421e9a(0x1d7)])(s[_0x421e9a(0xe5)],{}),_0x226a42['t'](_0x421e9a(0x3a1))]}),(0x0,g['jsxs'])(f['Button'],{'className':_0x421e9a(0x366),'variant':_0x4f222f===y[_0x421e9a(0xc7)][_0x421e9a(0xa5)]?_0x421e9a(0x149):_0x421e9a(0x3f0),'onClick':()=>_0x461ba6(y[_0x421e9a(0xc7)][_0x421e9a(0xa5)]),'children':[(0x0,g['jsx'])(s[_0x421e9a(0x203)],{}),_0x226a42['t'](_0x421e9a(0x3b2))]})]}),(0x0,g[_0x421e9a(0x2f3)])('div',{'className':_0x421e9a(0x20c),'children':[(0x0,g[_0x421e9a(0x2f3)])('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x421e9a(0x1d7)])(f['Checkbox'],{'checked':_0x75038d,'indeterminate':_0xd517bf['length']>0x0&&!_0x75038d,'onChange':()=>_0x5a28ea(_0x75038d?[]:_0x23b361)}),_0x226a42['t'](_0x421e9a(0x148))]}),_0x23b361[_0x421e9a(0x201)]((_0x9332ae,_0x9bed76)=>(0x0,g[_0x421e9a(0x2f3)])('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x421e9a(0x1d7)])(f[_0x421e9a(0x42d)],{'checked':_0xd517bf['includes'](_0x9332ae),'onChange':()=>_0x5a28ea(_0x1e43cd=>_0x1e43cd[_0x421e9a(0x8c)](_0x9332ae)?_0x1e43cd[_0x421e9a(0x39e)](_0x492a2f=>_0x492a2f!==_0x9332ae):[..._0x1e43cd,_0x9332ae])}),(0x0,g['jsx'])('span',{'className':_0x421e9a(0x291),'children':kn(_0x9332ae,_0x468c4d[_0x9bed76],_0x2b717b,_0x226a42['t'](_0x421e9a(0x29b)))})]},_0x9332ae))]}),(0x0,g[_0x421e9a(0x2f3)])(_0x421e9a(0x24a),{'className':_0x421e9a(0x273),'children':[(0x0,g[_0x421e9a(0x1d7)])(f[_0x421e9a(0x1bb)],{'variant':_0x421e9a(0x16b),'onClick':()=>_0x354862[_0x421e9a(0x299)](_0x23b361,_0x4f222f),'children':_0x226a42['t'](_0x421e9a(0x1d2))}),(0x0,g['jsxs'])(_0x421e9a(0x24a),{'className':'univer-flex\x20univer-gap-2','children':[(0x0,g['jsx'])(f[_0x421e9a(0x1bb)],{'onClick':_0x354862[_0x421e9a(0x24f)],'children':_0x226a42['t']('bases-dashboard-ui.pivot.cancel')}),(0x0,g[_0x421e9a(0x1d7)])(f['Button'],{'variant':_0x421e9a(0x149),'disabled':_0xd517bf['length']===0x0,'onClick':()=>_0x354862[_0x421e9a(0x299)](_0xd517bf,_0x4f222f),'children':_0x226a42['t'](_0x421e9a(0x17a))})]})]})]});}function En(_0x2106a8){const _0x5a3262=_0x16f285;var _0x57a543,_0x519ee6,_0x31ed69;let _0x2730f0=(0x0,m[_0x5a3262(0x15f)])(a[_0x5a3262(0x28c)]),[_0x54006e,_0x37d836]=(0x0,h[_0x5a3262(0x450)])(((_0x57a543=_0x2106a8[_0x5a3262(0x48e)])==null?void 0x0:_0x57a543['displayName'])??''),[_0x3adaee,_0x16b57b]=(0x0,h[_0x5a3262(0x450)])(((_0x519ee6=_0x2106a8['field'])==null?void 0x0:_0x519ee6[_0x5a3262(0x102)])??y[_0x5a3262(0x48b)][_0x5a3262(0x32c)]),[_0x5beda9,_0x1418d2]=(0x0,h['useState'])(((_0x31ed69=_0x2106a8[_0x5a3262(0x48e)])==null?void 0x0:_0x31ed69[_0x5a3262(0x3e5)])??'');return _0x2106a8[_0x5a3262(0x48e)]?(0x0,g[_0x5a3262(0x2f3)])('section',{'className':(0x0,f[_0x5a3262(0x19b)])(_0x5a3262(0x1d4),f[_0x5a3262(0x169)]),'children':[(0x0,g[_0x5a3262(0x1d7)])(_0x5a3262(0x24a),{'className':_0x5a3262(0xc5),'children':_0x2730f0['t'](_0x5a3262(0xce))}),(0x0,g[_0x5a3262(0x2f3)])(_0x5a3262(0x1d9),{'className':_0x5a3262(0x41f),'children':[_0x2730f0['t'](_0x5a3262(0x21e)),(0x0,g['jsx'])(f['Input'],{'value':_0x54006e,'onChange':_0x37d836})]}),(0x0,g[_0x5a3262(0x2f3)])(_0x5a3262(0x1d9),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x2730f0['t'](_0x5a3262(0x186)),(0x0,g[_0x5a3262(0x1d7)])(f['Select'],{'value':String(_0x3adaee),'options':yn[_0x5a3262(0x201)](_0x33a234=>({'value':String(_0x33a234[_0x5a3262(0x44c)]),'label':_0x2730f0['t'](_0x33a234[_0x5a3262(0x43f)])})),'onChange':_0x5067ed=>{const _0x1f6b10=_0x5a3262;let _0x1ca5e8=yn[_0x1f6b10(0x132)](_0x9c6c55=>String(_0x9c6c55[_0x1f6b10(0x44c)])===_0x5067ed);_0x1ca5e8&&_0x16b57b(_0x1ca5e8[_0x1f6b10(0x44c)]);}})]}),(0x0,g[_0x5a3262(0x2f3)])(_0x5a3262(0x1d9),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x2730f0['t'](_0x5a3262(0x219)),(0x0,g[_0x5a3262(0x1d7)])(f[_0x5a3262(0x3cd)],{'value':_0x5beda9,'onChange':_0x1418d2})]}),(0x0,g['jsxs'])(_0x5a3262(0x24a),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[(0x0,g[_0x5a3262(0x1d7)])(f[_0x5a3262(0x1bb)],{'onClick':_0x2106a8[_0x5a3262(0x24f)],'children':_0x2730f0['t'](_0x5a3262(0x91))}),(0x0,g['jsx'])(f[_0x5a3262(0x1bb)],{'variant':'primary','disabled':!_0x54006e['trim'](),'onClick':()=>_0x2106a8[_0x5a3262(0x299)](_0x54006e[_0x5a3262(0x306)](),_0x3adaee,_0x5beda9),'children':_0x2730f0['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x494978){const _0x448677=_0x16f285;let {config:_0xb721da,commit:_0x166a1f}=_0x494978,_0x626c2a=(0x0,m[_0x448677(0x15f)])(a[_0x448677(0x28c)]),_0x5917a9=_0xb721da['pivot']['options'],_0x15ecb4=_0x10a957=>_0x166a1f(_0x5773a3=>_0x5773a3['setOptions']({..._0x5773a3[_0x448677(0x3df)](),..._0x10a957}));return(0x0,g[_0x448677(0x2f3)])(_0x448677(0x24a),{'className':_0x448677(0x1ee),'children':[(0x0,g['jsxs'])(_0x448677(0x1d9),{'className':_0x448677(0x499),'children':[_0x626c2a['t'](_0x448677(0x1df)),(0x0,g[_0x448677(0x1d7)])(f['Select'],{'className':'univer-w-36','value':String(_0xb721da[_0x448677(0x418)][_0x448677(0x3c1)]),'options':[{'value':String(y[_0x448677(0x3f9)][_0x448677(0x344)]),'label':_0x626c2a['t'](_0x448677(0x340))},{'value':String(y[_0x448677(0x3f9)][_0x448677(0x3b1)]),'label':_0x626c2a['t'](_0x448677(0x212))},{'value':String(y[_0x448677(0x3f9)]['outline']),'label':_0x626c2a['t'](_0x448677(0x1a0))}],'onChange':_0x575220=>{const _0x4cefdb=_0x448677;let _0x1f2226=[y[_0x4cefdb(0x3f9)]['tabular'],y[_0x4cefdb(0x3f9)][_0x4cefdb(0x3b1)],y[_0x4cefdb(0x3f9)][_0x4cefdb(0x86)]][_0x4cefdb(0x132)](_0x3fcc65=>String(_0x3fcc65)===_0x575220);_0x1f2226!==void 0x0&&_0x166a1f(_0x49db2a=>_0x49db2a[_0x4cefdb(0xe7)](_0x1f2226));}})]}),[{'key':_0x448677(0x15b),'label':_0x448677(0x78),'defaultValue':!0x1},{'key':_0x448677(0x251),'label':_0x448677(0x14f),'defaultValue':!0x1},{'key':_0x448677(0x49e),'label':_0x448677(0x2db),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x448677(0x3ab),'defaultValue':!0x0},{'key':'showColSubtotal','label':_0x448677(0xb2),'defaultValue':!0x0},{'key':_0x448677(0x14a),'label':_0x448677(0xef),'defaultValue':!0x0}][_0x448677(0x201)](_0x8e75ed=>(0x0,g['jsxs'])('label',{'className':_0x448677(0xf5),'children':[(0x0,g['jsx'])(f[_0x448677(0x42d)],{'checked':!!(_0x5917a9[_0x8e75ed[_0x448677(0x254)]]??_0x8e75ed[_0x448677(0x24d)]),'disabled':_0x8e75ed[_0x448677(0x254)]===_0x448677(0x15b)&&_0xb721da[_0x448677(0x418)]['layout']===y[_0x448677(0x3f9)]['compact'],'onChange':_0x5bac5e=>_0x15ecb4({[_0x8e75ed[_0x448677(0x254)]]:!!_0x5bac5e})}),_0x626c2a['t'](_0x8e75ed[_0x448677(0x1d9)])]},_0x8e75ed['key'])),_0xb721da[_0x448677(0x418)]['layout']===y['PivotLayoutTypeEnum'][_0x448677(0x86)]&&(0x0,g['jsxs'])(_0x448677(0x1d9),{'className':_0x448677(0x499),'children':[_0x626c2a['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),(0x0,g[_0x448677(0x1d7)])(f[_0x448677(0x2b7)],{'className':_0x448677(0x32a),'value':String(_0x5917a9[_0x448677(0x467)]??y[_0x448677(0x281)]['top']),'options':[{'value':String(y[_0x448677(0x281)][_0x448677(0x32b)]),'label':_0x626c2a['t'](_0x448677(0x1a6))},{'value':String(y['PivotSubtotalPositionEnum'][_0x448677(0x1d6)]),'label':_0x626c2a['t'](_0x448677(0x352))}],'onChange':_0x49d398=>{const _0x102b57=_0x448677;let _0x591a7a=[y[_0x102b57(0x281)][_0x102b57(0x32b)],y[_0x102b57(0x281)][_0x102b57(0x1d6)]][_0x102b57(0x132)](_0x15af30=>String(_0x15af30)===_0x49d398);_0x591a7a!==void 0x0&&_0x15ecb4({'rowSubtotalPosition':_0x591a7a});}})]}),(0x0,g[_0x448677(0x2f3)])('label',{'className':_0x448677(0x499),'children':[_0x626c2a['t']('bases-dashboard-ui.pivot.valuePosition'),(0x0,g[_0x448677(0x1d7)])(f[_0x448677(0x2b7)],{'className':_0x448677(0x32a),'value':String(_0xb721da['pivot']['valuePosition']===y[_0x448677(0x45b)][_0x448677(0x487)]?y[_0x448677(0x45b)][_0x448677(0x119)]:_0xb721da[_0x448677(0x418)][_0x448677(0x360)]),'options':[{'value':String(y[_0x448677(0x45b)]['Column']),'label':_0x626c2a['t'](_0x448677(0x2cf))},{'value':String(y[_0x448677(0x45b)][_0x448677(0x176)]),'label':_0x626c2a['t'](_0x448677(0x2a8))}],'onChange':_0x1ac813=>{const _0x31a349=_0x448677;let _0x54b1c9=[y[_0x31a349(0x45b)][_0x31a349(0x119)],y['PivotTableValuePositionEnum'][_0x31a349(0x176)]][_0x31a349(0x132)](_0x33768f=>String(_0x33768f)===_0x1ac813);_0x54b1c9!==void 0x0&&_0x166a1f(_0x15e5f2=>_0x15e5f2[_0x31a349(0x33d)](_0x54b1c9,_0x15e5f2[_0x31a349(0x14c)]()<0x0?0x0:_0x15e5f2[_0x31a349(0x14c)]()));}})]}),(0x0,g[_0x448677(0x2f3)])(_0x448677(0x1d9),{'className':_0x448677(0x499),'children':[_0x626c2a['t'](_0x448677(0x399)),(0x0,g['jsx'])(f[_0x448677(0x39a)],{'className':_0x448677(0x1bf),'min':0x1,'max':0x14,'value':_0x5917a9[_0x448677(0x10c)]??0x1,'onChange':_0x212f49=>{const _0x30959a=_0x448677;let _0x5df17f=Number(_0x212f49);Number[_0x30959a(0xb4)](_0x5df17f)&&_0x5df17f>=0x1&&_0x15ecb4({'pageWrap':_0x5df17f});}})]}),(0x0,g[_0x448677(0x2f3)])(_0x448677(0x1d9),{'className':_0x448677(0x499),'children':[_0x626c2a['t']('bases-dashboard-ui.pivot.pageDirection'),(0x0,g['jsx'])(f[_0x448677(0x2b7)],{'className':_0x448677(0x32a),'value':String(_0x5917a9[_0x448677(0x139)]??!0x1),'options':[{'value':'false','label':_0x626c2a['t'](_0x448677(0x429))},{'value':'true','label':_0x626c2a['t'](_0x448677(0xd9))}],'onChange':_0xd56450=>_0x15ecb4({'pageOverThenDown':_0xd56450===_0x448677(0x1e7)})})]})]});}function On(_0x4dcca0,_0x344c76,_0x1c7edb,_0x354d2a){const _0x492e3e=_0x16f285;let _0x1f9691=_0x4dcca0['getTableFieldsByDataFieldId'](_0x344c76)[_0x492e3e(0x132)](_0x3b1589=>_0x4dcca0[_0x492e3e(0x331)](_0x3b1589[_0x492e3e(0x181)]())[_0x492e3e(0x223)]!==y[_0x492e3e(0x34d)][_0x492e3e(0x41a)]);_0x1c7edb!==y[_0x492e3e(0x34d)]['Value']&&_0x1f9691?_0x4dcca0[_0x492e3e(0x288)](_0x1f9691[_0x492e3e(0x181)](),_0x1c7edb,_0x354d2a):_0x4dcca0[_0x492e3e(0x494)](_0x344c76,_0x1c7edb,_0x354d2a);}function kn(_0x3c1e2f,_0x14333f,_0x57feb8,_0x3c14c9){const _0x4c5e65=_0x16f285;return _0x14333f===y[_0x4c5e65(0x25e)][_0x4c5e65(0x10f)]?_0x3c14c9:_0x14333f===y[_0x4c5e65(0x25e)][_0x4c5e65(0x125)]&&_0x57feb8?a['numfmt'][_0x4c5e65(0x3e5)](_0x57feb8,Number(_0x3c1e2f)):_0x3c1e2f;}function An(_0x555356){const _0x19d625=_0x16f285;return _0x555356[_0x19d625(0x430)]===a[_0x19d625(0x357)][_0x19d625(0x2cd)]||_0x555356[_0x19d625(0x430)]===a['BaseFieldType'][_0x19d625(0x46e)]||_0x555356['type']===a[_0x19d625(0x357)][_0x19d625(0x141)]||_0x555356['type']===a['BaseFieldType'][_0x19d625(0x364)];}function jn(_0x1312df){const _0x99f381=_0x16f285;switch(_0x1312df){case y['PivotTableFiledAreaEnum']['Row']:return _0x99f381(0x327);case y['PivotTableFiledAreaEnum']['Column']:return _0x99f381(0x2c6);case y[_0x99f381(0x34d)][_0x99f381(0x41a)]:return _0x99f381(0x1f0);default:return'bases-dashboard-ui.pivot.addToFilter';}}function _0x131f(){const _0x42cdff=['rowCount','bases-dashboard-ui.chart.section.funnel','requestFullscreen','rgb','createChartInstance','base-pivot-chart-style','tableOrder','bases-dashboard-ui.dashboard.configure','waterfall.negative','DEFAULT_CHART_RADAR_VALUES','IConfigService','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','generateRandomId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','buildChartTypeSelectOptions','separator','chartTypeSupportsCapability','MultiSelect','base-pivot-fields','constructor','bases-dashboard-ui.chart.common.editChart','trendline','gray','37852LXHLSf','pivot','isPrefixValue','Value','ChartEditPanel','onStarting','onMoveDown','bases-dashboard-ui.operators.after','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','bases-dashboard-ui.dashboardInspector.originalSize','series','WordCloud','transparent','toJSON','fullscreenchange','bases-dashboard-ui.dashboard.search','renameField','BaseMobileFilterPanel','bases-dashboard-ui.pivot.downThenAcross','useChartEditorHasRightAxis','span','grouped','Checkbox','bases-dashboard-ui.dashboard.text','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','type','change$','chartBitsUtils','bases-dashboard-ui.dashboardInspector.unchecked','ascending','createFormulaShapeData','pageRows','DependentOn','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','string','bases-dashboard-ui.dashboardInspector.newCondition','BASE_DASHBOARD_UI_PLUGIN','item','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','colView','localeKey','DEFAULT_CHART_WATERFALL_SETUP_VALUES','rowSpan','getAttachmentUrl','heatmap','length','bases-dashboard-ui.dashboard.tableFilter','getBaseDashboardPermissionObjectId','stroke','every','input','PivotCellStyleTypeEnum','Tooltip','value','Area','bases-dashboard-ui.chart.chartTypes.line','ChartTypeSpecificStyleSection','useState','base-pivot-chart-setup','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','px\x20solid\x20','doc','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','SolidFill','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','bases-dashboard-ui.chart.section.paretoBar','custom','BaseMobileDrawer','PivotTableValuePositionEnum','decimalPlaces','bases-dashboard-ui.pivot.pageDirection','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','aside','operator','canView','UniverBaseDashboardPlugin','toStringTag','radius','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','NOT_CONTAINS','rowSubtotalPosition','style','DEFAULT_CHART_AXIS_VALUES','symbol','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','ChartLineAndAreaSection','bases-dashboard-ui.dashboardInspector.description','Currency','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Heatmap','renderTransition','startX','stdDevp','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Dialog','observe','preventDefault','ChartSectionAccordionTrigger','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','bases-dashboard-ui.pivot.variance','backgroundColor','packageName','normalizeEditorFormulaForConfig','section','bases-dashboard-ui.chart.chartTypes.area','isSubtotal','dataModel','toUpperCase','click','AND','useCallback','bases-dashboard-ui.dashboardInspector.dataSource','None','ChartAndAxisTitles','HorizontalAxis','UniverBaseDashboardUIPlugin','PivotSubtotalTypeEnum','matchMedia','redos','field','bases-dashboard-ui.dashboardInspector.backgroundImage','markNotReady','bases-dashboard-ui.dashboardInspector.autoFit','FilterIcon','ChartCommonDataMappingSection','addFieldWithSourceId','bases-dashboard-ui.dashboardInspector.replaceImage','bases-dashboard-ui.chart.section.relation','bases-dashboard-ui.chart.common.horizontalAxis','MultipleSelect','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.pivot.countNumbers','useObservable','permissionPointUpdate$','allSeriesStyle','showRowSubtotal','toMenuFields','bases-dashboard-ui.operators.greaterThanOrEqual','[data-dashboard-widget]','formatMap','accept','useMemo','bases-dashboard-ui.chart.common.setup','onReady','univer-border-0\x20univer-bg-transparent','url(','Legend','ChartSectionAccordionItem','resizeDirection','590jrYUno','bases-dashboard-ui.pivot.repeatRowLabels','kind','mode','IS_NOT_EMPTY','Sunburst','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','ensureMount','bases-dashboard-ui.chart.','shapeText','IndicatorLine','appearance','bases-dashboard-ui.dashboardInspector.enterValue','config','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','outline','bases-dashboard-ui.dashboardInspector.textSize','BaseDashboardResourceService','univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.chart.common.verticalAxis','DeleteBaseDashboardCommand','includes','baseChartDataAnimationDuration','removeField','boxSizing','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.cancel','Trendline','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','replace','bases-dashboard-ui.operators.lessThanOrEqual','setLabelFilterInfo','itemTypes','bases-dashboard-ui.dashboardInspector.decimalPlaces','name','GeneralSeries','Data','waterfall.positive','numberFormat','DEFAULT_CHART_LINE_AND_AREA_VALUES','ChartGradientFillField','bases-dashboard-ui.pivot.name','clientHeight','dashboardOrder','index','orient','descending','radar','bases-dashboard-ui.dashboard.widgetActions','pointerY','textColor','univer-flex\x20univer-min-h-0\x20univer-flex-1','header','bases-dashboard-ui.chart.common.chartAndAxisTitles','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','UniverBaseDashboardMobileUIPlugin','data','refreshChartRuntime','varp','bases-dashboard-ui.pivot.showColumnSubtotal','relation','isFinite','Bubble','formulaBinding','bases-dashboard-ui.chart.section.paretoLine','rowView','1499134BdFTrL','addImageSourceCache','213976cetZGw','Positive','match','bases-dashboard-ui.pivot.average','0\x200','list','bases-dashboard-ui.operators.contains','IncreaseIcon','ownerDocument','setOptions','univer-text-sm\x20univer-font-medium','bases-dashboard-ui.operators.greaterThan','PivotDataFieldSortOperatorEnum','bases-dashboard-ui.chart.section.wordCloud','Axes','bases-dashboard-ui.pivot.filters','files','general','headerRowCount','bases-dashboard-ui.pivot.fieldSettings','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.dashboard.image','touchDependencies','height','Group','isTopTotal','bases-dashboard-ui.dashboard.add','GrandTotal','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.mobile.permissions','Inject','RecordId','dataset','MoreDownIcon','bases-dashboard-ui.chart.section.gridlinesAndTicks','bases-dashboard-ui.pivot.tableOnly','bases-dashboard-ui.operators.lessThan','Plugin','values','prototype','AscendingIcon','base64Cache','setLayout','scrollWidth','max','chartId','univer-mb-3\x20univer-text-sm\x20univer-font-medium','operand','bases-dashboard-ui.dashboardInspector.number','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.pivot.showColumnGrandTotal','IS_EMPTY','dataView','pageView','toFormulaMenuTables','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','ParetoBarSeries','RTLChartStyle','\x20/\x20','bases-dashboard-ui.dashboardInspector.delete','onDragOver','stringify','TableFilter','univer-bg-transparent\x20dark:!univer-bg-transparent','ChartTypeSpecificDataSection','checkMounted','border-box','bases-dashboard-ui.dashboardInspector.contain','subtotal','version','ChartStyleSection','bases-dashboard-ui.dashboard.undo','MoreHorizontalIcon','217231foCfmj','bases-dashboard-ui.chart.chartTypes.','items','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','useChartEditorChartType','pageWrap','BaseDashboard','BaseFilterOperator','blank','ChartLegendSection','univer-text-right','IPermissionService','dashboard-chart-style','img','baseOn','DEFAULT_CHART_RELATION_VALUES','countNums','changed$','Column','bind','axis','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.dashboardInspector.reset','CONTAINS','getCurrentTheme','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','dateKit','_element','openObjectPermissionDialog','IImageIoService','date','startScrollTop','BaseDashboardWidgetType','call','UniverShapeEditorPlugin','grandTotal','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.compact','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','fillType','ChartGridlinesAndTicksSection','result','ChartTypeField','find','chart-and-table','bases-dashboard-ui.dashboard.addWidget','tableId','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','slice','onFilter','pageOverThenDown','undoRedoStatus$','blur','ChartSectionAccordionContent','cornerView','bases-dashboard-ui.dashboardInspector.currency','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','MobileChartEditorProvider','Progress','IUndoRedoService','ChartHostAdapter','ProtectIcon','no-repeat','pointermove','UniverDocsUIPlugin','bases-dashboard-ui.pivot.selectAll','primary','showColGrandTotal','decorate','getValueIndex','UniverChartMobileUIPlugin','Style','bases-dashboard-ui.pivot.repeatColumnLabels','onDrop','bases-dashboard-ui.chart.common.chartStyle','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','some','bases-dashboard-ui.pivot.chartConfiguration','segmented','fontSizeMode','SetBasePermissionCommand','bases-dashboard-ui.pivot.searchFields','General','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','repeatRowLabels','ChartTitlesSection','center','tableFieldId','useDependency','closest','univer-h-full\x20univer-w-full\x20univer-bg-transparent','Person','IBaseDashboardUIExtensionRegistryService','hidden','borderRadius','alt','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','CalendarIcon','borderClassName','conjunction','link','pluginName','view','BaseMobileFilterOperand','undos','thead','setFieldFormat','bases-dashboard-ui.pivot.grandTotal','ChartFunnelStyleSection','fontSize','border','Row','overflow','bases-dashboard-ui.dashboardInspector.checked','debounce','bases-dashboard-ui.pivot.confirm','BaseViewType','rowType','Image','IChartRenderModelManagerService','scrollHeight','depthAxis','getId','bases-dashboard-ui.dashboard.editWidget','average','filterFields','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.pivot.summarizeBy','ChartWaterfallSetupFields','BaseUnitCollaborationStatus','bases-dashboard-ui.chart.common.heatmap','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','Chord','data$','titles','bases-dashboard-ui.pivot.max','bases-dashboard-ui.dashboardInspector.alignment','measure','rightYAxis','syncLayout','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.close','documentStyle','bases-dashboard-ui.pivot.stdDevPopulation','Filter','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','round','clsx','ActivateBaseViewOperation','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','options','bases-dashboard-ui.dashboardInspector.uploadImage','bases-dashboard-ui.pivot.layoutOutline','WaterfallSeries','onDragStart','valueIndex','dashboard-chart-setup','filterInfo','bases-dashboard-ui.pivot.top','bases-dashboard-ui.pivot.description','baseChartDataAnimation','bases-dashboard-ui.pivot.stdDev','ceil','bases-dashboard-ui.dashboard.pivotChart','ChartStackField','image/*','false','current','displayMode','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','getBoundingClientRect','UpdateBaseDashboardCommand','acquireChartRuntime','bases-dashboard-ui.dashboardInspector.general','exitFullscreen','clientX','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','bases-dashboard-ui.pivot.options','then','Button','getResource','univer-bg-gray-0\x20dark:!univer-bg-gray-900','resolveChartRuntimeStyle','univer-w-24','auto','Relation','PivotTableIcon','merge','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createPortal','UniverInstanceType','DEFAULT_CHART_TITLE_VALUES','widgets','bases-dashboard-ui.chart.common.switchRowColumn','ChartRadarStyleSection','bases-dashboard-ui.dashboardInspector.percent','getFieldCountByArea','DeleteIcon','clientWidth','CHART_DATA_UPDATE_ANIMATION_DURATION','setConfig','from','bases-dashboard-ui.pivot.clearFilter','DEFAULT_CHART_FUNNEL_VALUES','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','shapeData','bottom','jsx','createParagraphId','label','univer-grid\x20univer-gap-2\x20univer-p-3','YYYY-MM-DD','bases-dashboard-ui.dashboardInspector.removeImage','dataFieldId','move','bases-dashboard-ui.pivot.layout','SolidLine','bases-dashboard-ui.dashboard.redo','indexOf','setSortInfo','fieldOrder','dashboards','set','true','lastRow','UpsertBaseDashboardWidgetCommand','Scatter','Module','bases-dashboard-ui.pivot.pivotConfiguration','article','univer-flex\x20univer-flex-col\x20univer-gap-4','parentElement','bases-dashboard-ui.pivot.addToValue','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','documentElement','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','RightVerticalAxis','ImageSourceType','SearchIcon','context','BEFORE','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.operators.isNot','getSnapshot','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','univer-text-sm','ChartEditBlockTitle','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','map','Pareto','DescendingIcon','bases-dashboard-ui.pivot.fields','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','ChartThemeField','3736224WPrApG','bases-dashboard-ui.dashboardInspector.left','bases-dashboard-ui.dashboardInspector.formula','chartType','getDirection','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','bases-dashboard-ui.pivot.filterField','ChartWaterfallStyleSection','Fragment','Candlestick','join','bases-dashboard-ui.pivot.layoutCompact','legend','bases-dashboard-ui.dashboardInspector.right','defineProperty','markReady','dashboard-widget-','initial','bases-dashboard-ui.pivot.numberFormat','group','univer-mt-2','CreatedAt','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.displayName','univer-shrink-0\x20univer-px-3','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','USD','ChartEditPanelTab','area','bases-dashboard-ui.mobile.moveUp','paragraphId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ObjectPermissionButton','univer-grid\x20univer-gap-3','UndoIcon','RoundRect','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-m-3','isErrorValue','get','ChartTypeBits','currentTheme$','Date','useRef','rows','cover','lastCol','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','ILayoutService','model','ChartThreeDSection','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','bases-dashboard-ui.chart.section.candlestick','saveAttachment','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','dispose','color','document','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','target','univer-flex\x20univer-justify-end\x20univer-gap-2','getDashboard','UnitObject','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','ShapeFormulaService','_config','minmax(0,\x201fr)','div','ChartSeriesSection','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','defaultValue','chartRowDirection','onCancel','chartTypeCanUseTrendLine','repeatColLabels','tables','percent','key','dataAggregation','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','DEFAULT_CHART_STYLE_VALUES','PieStyle','bases-dashboard-ui.dashboard.section','DatePicker','IAttachmentIoService','SingleSelect','univer-text-gray-400','PivotDataFieldDataTypeEnum','bases-dashboard-ui.dashboard.fullScreen','bases-dashboard-ui.pivot.chartOnly','floor','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','sourceType','_chartThemeService','ChartEditPanelSection','columnSpan','count','toChartModelUpdate','visibilityState','ChartStyle','setSubtotalType','fieldId','rootContainerElement','univer-mt-2\x20univer-w-full','forEach','decimal','presentationChanged$','wordCloud','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','MobileDialog','original','bases-dashboard-ui.pivot.valuePosition','showRowGrandTotal','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','iterator','colCount','viewOrder','MultipleGrandTotal','ChartParetoSeriesSection','bases-dashboard-ui.chart.section.radar','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','univer-relative\x20univer-z-10','PivotSubtotalPositionEnum','saveImage','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','focusUnit','bases-dashboard-ui.chart.common.series','ChartEditPanelTabs','onDragEnd','updateFieldPosition','resize','button','ChartTypeSpecificSetupSection','LocaleService','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','fill','univer-flex\x20univer-flex-col','body','univer-truncate','barStyle','CreateBaseDashboardCommand','bases-dashboard-ui.chart.section.indicatorLine','waterfall','tbody','function','bases-dashboard-ui.dashboardInspector.custom','onCommit','system','bases-dashboard-ui.pivot.blank','getTableFieldsByDataFieldId','info','univer-grid\x20univer-gap-4','bases-dashboard-ui.pivot.min','min','5PqaJja','bases-dashboard-ui.chart.section.pie','catch','_localeService','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','bases-dashboard-ui.pivot.display','UndoCommand','bases-dashboard-ui.pivot.rows','UpdatedAt','isConnected','ChartAxisSection','combineLatest','getRuntimeContext','keydown','Textarea','ChartEditorCapability','formula','ThemeService','createElement','ChartNumberFormatAtom','DEFAULT_CHART_SERIES_VALUES','getChartRuntime','Select','file','size','title','DEFAULT_CHART_LEGEND_VALUES','shapeId','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-flex\x20univer-items-center\x20univer-gap-2','Waterfall','FormulaShape','cumulativeLineStyle','ChartRelationStyleSection','bases-dashboard-ui.dashboardInspector.editData','DEFAULT_CHART_HEATMAP_VALUES','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.addToColumn','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','RedoCommand','render','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','scrollTop','bases-dashboard-ui.dashboardInspector.editFormula','Number','unsubscribe','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.operators.isEmpty','currency','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','supports','bases-dashboard-ui.pivot.sum','pointerX','getUnit','disconnect','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','DEFAULT_CHART_PIE_VALUES','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.showRowSubtotal','views','DEFAULT_CHART_TRENDLINE_VALUES','bases-dashboard-ui.dashboardInspector.currencyCode','bases-dashboard-ui.pivot.calculating','useEffect','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','displayName','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','matches','bases-dashboard-ui.dashboardInspector.sourceUnavailable','Line','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','right','Funnel','DEFAULT_CHART_WORD_CLOUD_VALUES','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','Text','VerticalAxis','pie','createRenderInput','ManualFilter','bases-dashboard-ui.dashboardInspector.clear','dashboard-','jsxs','createBasePivotTable','ChartTrendlineSection','bases-dashboard-ui.pivot.chartAndTable','BaseChartRuntimeService','widgetOrder','Pie','bases-dashboard-ui.pivot.values','IS_NOT','formulaToEditorFormula','ChartViewStateRegistry','source','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','var','base-pivot-chart-configuration','Series','bases-dashboard-ui.chart.common.legend','UniverBasesMobileUIPlugin','trim','IBaseViewUIRegistryService','bases-dashboard-ui.pivot.calculationFailed','PivotFilterTypeEnum','showColSubtotal','6mkoeaC','darkMode$','headerMap','chartTypeSupportsLineAndAreaStyle','ChartHeatmapStyleSection','executeChartUpdateConfig','direction$','pipe','addEventListener','MobileSelect','pareto','width','fit','GREATER_THAN','Escape','Injector','getImageSourceCache','bases-dashboard-ui.dashboard.new','253583SJVKbd','dashboard-text-','getPresentation','funnel','CloseIcon','BASES_DASHBOARD_GRID_COLUMNS','subUnitId','column:','removeEventListener','text','bases-dashboard-ui.pivot.addToRow','style$','pivotViewId','univer-w-36','top','sum','releaseChartRuntime','bases-dashboard-ui.dashboardInspector.center','Sankey','Radar','getFieldPositionInfoById','resolveBasePivotChartRowDirection','LESS_THAN','onMoveUp','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','ChartWordCloudStyleSection','dom','DropdownMenu','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.chart.common.rightVerticalAxis','canEditBasePivotView','updateValuePosition','Disposable','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.layoutTabular','bases-dashboard-ui.dashboard.formulaShape','flex-start','bases-dashboard-ui.dashboardInspector.numberFormat','tabular','indicatorLine','imageSourceType','ChartColorField','row','Pivot','fields','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.dashboard.delete','PivotTableFiledAreaEnum','register','base-pivot-options','ChartRenderMode','flatMap','bases-dashboard-ui.pivot.bottom','_injector','bases-dashboard-ui.dashboardInspector.selectOption','alignment','skip','BaseFieldType','ShapeTypeEnum','shapeType','bases-dashboard-ui.chart.section.gauge','getResult','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.chart.section.histogram','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','2300382QBKUtw','valuePosition','bases-dashboard-ui.dashboardInspector.loading','small','executeCommand','Rating','IUniverInstanceService','univer-flex-1','snapshot','Base\x20dashboard\x20chart\x20','ChartWaterfallStyleTarget','columnFields','canEditBaseDashboard','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','ChartPieStyleSection','scrollbarClassName','clientY','src','RemoveBaseDashboardWidgetCommand','Gauge','column','config$','#,##0','bases-dashboard-ui.chart.section.sunburst','bases-dashboard-ui.chart.waterfall.subtotal','textStyle','rightY','setStyle','Subtotal','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','sortInfo','darkMode','disposeWithMe','PivotChart','TextIcon','UUID','contain','ICommandService','subscribe','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.chart.common.trendline','backgroundImage','LineAndArea','lineAndArea','GripVerticalIcon','select','CHART_TYPE_CATALOG','Histogram','toLocaleLowerCase','number','DEFAULT_CHART_PARETO_VALUES','labelId','errorType','page:','paragraphs','object','contains','_renderModelManager','bases-dashboard-ui.pivot.pageWrap','InputNumber','isArray','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','UniverLicensePlugin','filter','DEFAULT_CHART_INDICATOR_LINE_VALUES','ChartSectionAccordion','bases-dashboard-ui.pivot.ascending','Boxplot','dimension','test','bases-dashboard-ui.pivot.sourceFields','univer-cursor-grabbing','ChartIndicatorLineSection','GREATER_THAN_OR_EQUAL','initialLayouts','DEFAULT_CHART_WATERFALL_STYLE_VALUES','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.chart.section.treemap','_configService','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','ChartIcon','has','compact','bases-dashboard-ui.pivot.descending','ArrowDownIcon','univer-flex','table','subItem','bases-dashboard-ui.chart.section.waterfall','currentTarget','univer-cursor-grab','onMove','univer-size-5\x20univer-rotate-90','presentation','stopPropagation','add','onRemove','NumberIcon','layout','ILogService','ObjectPermissionService','univer-mx-auto\x20univer-size-6','base-pivot-chart-','\x20/\x20span\x20','bases-dashboard-ui.dashboard.resizeWidget','flex-end','repeat','pointerup','isTotal','setCurrentUnitForType','Input','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','RedoIcon','bases-dashboard-ui.chart.common.customize','end','univer-flex\x20univer-min-h-full\x20univer-flex-col','renderRevision','left','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isBottomTotal','univer-w-full','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.isNotEmpty','children','PenIcon','isHeader','univer-size-5\x20univer-text-primary-600','getOptions','bases-dashboard-ui.dashboardInspector.cover','startY','rowFields','valueFields','getOwnPropertyDescriptor','format','description','dataStream','ParetoLineSeries','AFTER','change','Treemap','conditions','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','stdDev','chart','default','Segmented','entries','innerHeight','lineStrokeType','univer-flex\x20univer-gap-2','fullscreenElement','_createContext','onSettings','PivotLayoutTypeEnum','45vPSNGP','univer-size-4','ChartEditorProvider','bases-dashboard-ui.operators.is','product','getDataFieldByTableId'];_0x131f=function(){return _0x42cdff;};return _0x131f();}function Mn({config:_0x12758e,onChange:_0x246740,runtime:_0x40a538,table:_0x1ee7fe}){const _0x138c62=_0x16f285;let _0x2ee5e3=(0x0,m[_0x138c62(0x15f)])(a[_0x138c62(0x28c)]),[_0x470fae,_0x3bb195]=(0x0,h['useState'])(_0x138c62(0x3ef));return(0x0,g[_0x138c62(0x2f3)])(_0x138c62(0x45f),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x138c62(0x1d7)])(n[_0x138c62(0x286)],{'ariaLabel':_0x2ee5e3['t']('bases-dashboard-ui.pivot.name'),'className':_0x138c62(0x278),'items':[{'label':_0x2ee5e3['t'](_0x138c62(0x154)),'panelId':'base-pivot-chart-configuration','value':_0x138c62(0x3ef)},{'label':_0x2ee5e3['t'](_0x138c62(0x1ec)),'panelId':'base-pivot-table-configuration','value':_0x138c62(0x418)}],'value':_0x470fae,'variant':_0x138c62(0x155),'onChange':_0x3bb195}),(0x0,g['jsx'])('div',{'className':_0x138c62(0x455),'children':_0x470fae==='chart'?_0x40a538&&(0x0,g['jsx'])(Dt,{'config':_0x12758e,'runtime':_0x40a538,'tableName':_0x1ee7fe[_0x138c62(0x99)],'onChange':_0x246740}):(0x0,g[_0x138c62(0x1d7)])(bn,{'config':_0x12758e,'table':_0x1ee7fe,'onChange':_0x246740})})]});}function Nn({tableId:_0x54128d,unitId:_0x5bd375,viewId:_0x259eb6}){const _0x1f1801=_0x16f285;let _0x29e053=(0x0,m[_0x1f1801(0x15f)])(a['ICommandService']),_0x229a1b=(0x0,m[_0x1f1801(0x15f)])(a[_0x1f1801(0x365)]),_0x5525e0=(0x0,m[_0x1f1801(0x15f)])(a[_0x1f1801(0x3c2)]),_0x5d7f32=(0x0,m['useDependency'])(a[_0x1f1801(0x28c)]),_0x602c8=(0x0,m[_0x1f1801(0x15f)])(e[_0x1f1801(0x2f7)]),[_0x1049fa,_0x1acbf3]=(0x0,h[_0x1f1801(0x450)])(null),[_0x534f95,_0x2aa646]=(0x0,h[_0x1f1801(0x450)])(null),_0x296f62=(0x0,h[_0x1f1801(0x232)])(_0x1f1801(0x3c5)+(0x0,a[_0x1f1801(0x40c)])(0x8)),[_0xdc4b55,_0x11f0cd]=(0x0,h['useState'])(!0x1),_0x17c4c9=_0x229a1b[_0x1f1801(0x2d6)](_0x5bd375,a[_0x1f1801(0x1c6)]['UNIVER_BASE']),_0xbd727=_0x17c4c9==null?void 0x0:_0x17c4c9['getSnapshot']()[_0x1f1801(0x252)][_0x54128d],_0x93cc3b=_0xbd727==null?void 0x0:_0xbd727[_0x1f1801(0x2dc)][_0x259eb6],_0x5e8455=Pn(_0x93cc3b),_0x1c2161=T(_0x5bd375,_0x54128d,_0x259eb6);if((0x0,h[_0x1f1801(0x2e0)])(()=>{const _0x92854=_0x1f1801;if(!_0x5e8455)return;let _0x1ad609=_0x296f62[_0x92854(0x1af)];return _0x602c8[_0x92854(0x1b4)](_0x1ad609,{'unitId':_0x5bd375,'tableId':_0x54128d,'viewId':_0x259eb6,'filters':[]}),()=>{const _0x1b3b99=_0x92854;_0x602c8[_0x1b3b99(0x32d)](_0x5bd375,_0x1ad609);};},[_0x5e8455,_0x602c8,_0x54128d,_0x5bd375,_0x259eb6]),(0x0,h['useEffect'])(()=>{const _0x25455f=_0x1f1801;if(!Pn(_0x93cc3b))return;let _0x5e8728=!0x0,_0x4d401b={'unitId':_0x5bd375,'tableId':_0x54128d,'viewId':_0x259eb6,'filters':[_0x93cc3b[_0x25455f(0x39e)]??null]};return _0x602c8['refreshChartRuntime'](_0x5bd375,_0x296f62[_0x25455f(0x1af)],_0x4d401b)['then'](_0x4391a4=>{const _0x1a4f0e=_0x25455f;_0x5e8728&&_0x4391a4&&(_0x1acbf3(_0x4391a4),_0x2aa646(_0x602c8[_0x1a4f0e(0x2b6)](_0x5bd375,_0x296f62['current'])??null),_0x11f0cd(!0x1));})[_0x25455f(0x2a3)](_0x22c89c=>{const _0x32f4ca=_0x25455f;_0x5525e0['error'](_0x32f4ca(0x2e7),_0x22c89c),_0x5e8728&&(_0x1acbf3(null),_0x11f0cd(!0x0));}),()=>{_0x5e8728=!0x1;};},[_0x5525e0,_0x602c8,_0x54128d,_0x5bd375,_0x93cc3b,_0x259eb6]),!_0xbd727||!Pn(_0x93cc3b))return null;let _0x36b799=_0x602c8[_0x1f1801(0x2b6)](_0x5bd375,_0x296f62[_0x1f1801(0x1af)])===_0x534f95?_0x534f95:null,_0x2a83a9=_0x1049fa?(0x0,g[_0x1f1801(0x2f3)])(_0x1f1801(0x24a),{'className':_0x1f1801(0x28d),'style':{'gridTemplateRows':_0x93cc3b[_0x1f1801(0x84)][_0x1f1801(0x1b0)]===_0x1f1801(0x133)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x1f1801(0x249)},'children':[_0x93cc3b[_0x1f1801(0x84)][_0x1f1801(0x1b0)]!==_0x1f1801(0x3b5)&&_0x36b799&&(0x0,g[_0x1f1801(0x1d7)])(_0x1f1801(0x24a),{'className':_0x1f1801(0x1c4),'children':(0x0,g[_0x1f1801(0x1d7)])(re,{'isRowDirection':(0x0,e[_0x1f1801(0x332)])(_0x93cc3b[_0x1f1801(0x84)]['chart'][_0x1f1801(0xa4)]),'runtime':_0x36b799})}),_0x93cc3b['config']['displayMode']!==_0x1f1801(0x3ef)&&(0x0,g['jsx'])(_0x1f1801(0x24a),{'className':_0x1f1801(0x339),'children':(0x0,g[_0x1f1801(0x1d7)])(Ge,{'pivot':_0x93cc3b[_0x1f1801(0x84)][_0x1f1801(0x418)],'view':_0x1049fa[_0x1f1801(0x16d)]})})]}):(0x0,g[_0x1f1801(0x1d7)])(_0x1f1801(0x24a),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0xdc4b55?_0x5d7f32['t'](_0x1f1801(0x308)):_0x5d7f32['t']('bases-dashboard-ui.pivot.calculating')});return(0x0,g[_0x1f1801(0x2f3)])(_0x1f1801(0x24a),{'className':_0x1f1801(0x2a5),'children':[(0x0,g[_0x1f1801(0x1d7)])('div',{'className':_0x1f1801(0x335),'children':_0x2a83a9}),_0x1c2161&&(0x0,g[_0x1f1801(0x1d7)])(Mn,{'config':_0x93cc3b['config'],'runtime':_0x36b799,'table':_0xbd727,'onChange':_0x3227c3=>{const _0x5bac76=_0x1f1801;_0x29e053[_0x5bac76(0x363)](e['UpdateBasePivotViewCommand']['id'],{'unitId':_0x5bd375,'tableId':_0x54128d,'viewId':_0x259eb6,'patch':_0x3227c3})[_0x5bac76(0x2a3)](_0xd4ba59=>_0x5525e0['error'](_0x5bac76(0x1f9),_0xd4ba59));}})]});}function Pn(_0xe6cf8){const _0x74268e=_0x16f285;return(_0xe6cf8==null?void 0x0:_0xe6cf8['type'])===a[_0x74268e(0x17b)][_0x74268e(0x349)]&&typeof _0xe6cf8[_0x74268e(0x84)]==_0x74268e(0x396)&&_0xe6cf8[_0x74268e(0x84)]!==null&&'pivot'in _0xe6cf8[_0x74268e(0x84)]&&_0x74268e(0x3ef)in _0xe6cf8['config']&&_0x74268e(0x1b0)in _0xe6cf8[_0x74268e(0x84)];}let Fn=class extends a[_0x16f285(0x33e)]{constructor(_0x4d2d52,_0x4b6d6f,_0x3d3cc2,_0x1d48f7,_0x5be6f6,_0xba0eeb){const _0x2aa47e=_0x16f285;super(),this[_0x2aa47e(0x37f)](_0x4b6d6f[_0x2aa47e(0x34e)]({'type':a[_0x2aa47e(0x17b)][_0x2aa47e(0x349)],'renderMode':_0x2aa47e(0x337),'icon':s[_0x2aa47e(0x1c2)],'component':Nn,'menu':{get 'label'(){return _0xba0eeb['t']('bases-dashboard-ui.pivot.name');},get 'description'(){return _0xba0eeb['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x41881a=_0x2aa47e;return _0xba0eeb['t'](_0x41881a(0x185));}}})),this[_0x2aa47e(0x37f)](_0x4d2d52[_0x2aa47e(0x34e)](In(_0x3d3cc2,_0x1d48f7,_0x5be6f6,_0xba0eeb)));}};Fn=P([N(0x0,t[_0x16f285(0x163)]),N(0x1,t[_0x16f285(0x307)]),N(0x2,(0x0,a[_0x16f285(0xdb)])(e[_0x16f285(0x88)])),N(0x3,a[_0x16f285(0x384)]),N(0x4,a[_0x16f285(0x112)]),N(0x5,(0x0,a[_0x16f285(0xdb)])(a[_0x16f285(0x28c)]))],Fn);function In(_0x4e4871,_0x3e442c,_0x5c5509,_0xcb5aef){const _0x4f93af=_0x16f285;return{'change$':(0x0,c[_0x4f93af(0x1c3)])(_0x4e4871[_0x4f93af(0x431)],_0x5c5509['permissionPointUpdate$']),'component':ln,get 'labels'(){const _0x2af554=_0x4f93af;return{'add':_0xcb5aef['t'](_0x2af554(0xd7)),'configure':_0x8815c=>_0xcb5aef['t'](_0x2af554(0x407),_0x8815c),'delete':_0xcb5aef['t'](_0x2af554(0x34c)),'new':_0xcb5aef['t']('bases-dashboard-ui.dashboard.new'),'rename':_0xcb5aef['t']('bases-dashboard-ui.dashboard.rename'),'search':_0xcb5aef['t'](_0x2af554(0x426)),'section':_0xcb5aef['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x4aa988=>{const _0x419d6a=_0x4f93af;let _0x5bbc85=_0x4e4871[_0x419d6a(0x1bc)](_0x4aa988);return _0x5bbc85[_0x419d6a(0xa2)][_0x419d6a(0x351)](_0x4d2a46=>{const _0x23d855=_0x419d6a;let _0x2cb282=_0x5bbc85[_0x23d855(0x1e5)][_0x4d2a46];return _0x2cb282?[{'id':_0x2cb282['id'],'name':_0x2cb282['name'],'readonly':!(0x0,e[_0x23d855(0x36b)])(_0x5c5509,_0x4aa988,_0x2cb282['id'])}]:[];});},'create':async _0x4a736e=>{const _0x159649=_0x4f93af;let _0x20f6b9=_0x4e4871[_0x159649(0x1bc)](_0x4a736e),_0x56db8c=_0x159649(0x2f2)+(0x0,a[_0x159649(0x40c)])(0x8),_0x206ac2=Ln(_0x20f6b9['dashboardOrder'][_0x159649(0x351)](_0x5bb6b3=>{const _0x4999fb=_0x159649;let _0x1d0693=_0x20f6b9[_0x4999fb(0x1e5)][_0x5bb6b3];return _0x1d0693?[_0x1d0693[_0x4999fb(0x99)]]:[];}),_0x37f708=>_0xcb5aef['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x37f708)));return await _0x3e442c[_0x159649(0x363)](e[_0x159649(0x293)]['id'],{'unitId':_0x4a736e,'dashboard':{'id':_0x56db8c,'name':_0x206ac2,'widgetOrder':[],'widgets':{}}})?_0x56db8c:null;},'rename':async(_0x74ae9,_0x322140,_0x4f9a59)=>{const _0x20c7aa=_0x4f93af;let _0x5db951=_0x4e4871['getDashboard'](_0x74ae9,_0x322140);return!!(_0x5db951&&await _0x3e442c['executeCommand'](e[_0x20c7aa(0x1b3)]['id'],{'unitId':_0x74ae9,'dashboard':{..._0x5db951,'name':_0x4f9a59}}));},'remove':(_0x5b420f,_0x4a2cee)=>_0x3e442c[_0x4f93af(0x363)](e[_0x4f93af(0x8b)]['id'],{'unitId':_0x5b420f,'dashboardId':_0x4a2cee})};}function Ln(_0x45449f,_0x2330d3){const _0x2fccde=_0x16f285;let _0x38aebe=new Set(_0x45449f),_0x25aa65=_0x38aebe[_0x2fccde(0x2b9)]+0x1,_0x43aa79=_0x2330d3(_0x25aa65);for(;_0x38aebe[_0x2fccde(0x3b0)](_0x43aa79);)_0x25aa65+=0x1,_0x43aa79=_0x2330d3(_0x25aa65);return _0x43aa79;}let $=class extends a['Plugin']{constructor(_0x25af26=C,_0x4a4358,_0xefc07e){const _0x8e0538=_0x16f285;super(),this[_0x8e0538(0x248)]=_0x25af26,this[_0x8e0538(0x353)]=_0x4a4358,this['_configService']=_0xefc07e;let {..._0x559aee}=(0x0,a[_0x8e0538(0x1c3)])({},C,this[_0x8e0538(0x248)]);this[_0x8e0538(0x3ad)][_0x8e0538(0x1d0)](S,_0x559aee);}[_0x16f285(0x41c)](){const _0x269948=_0x16f285;this['_injector'][_0x269948(0x3be)]([F]),this[_0x269948(0x353)]['add']([W]),this[_0x269948(0x353)][_0x269948(0x3be)]([Fn]);}[_0x16f285(0x4a6)](){const _0x8b6222=_0x16f285;(0x0,a[_0x8b6222(0xd3)])(this[_0x8b6222(0x353)],[[F],[W],[Fn]]);}};B($,_0x16f285(0x430),a[_0x16f285(0x1c6)][_0x16f285(0x12b)]),B($,'pluginName',_0x16f285(0x43b)),B($,_0x16f285(0x47c),b),B($,_0x16f285(0x103),x),$=P([(0x0,a[_0x16f285(0x437)])(r[_0x16f285(0x39d)],e[_0x16f285(0x462)],t['UniverBasesUIPlugin'],n['UniverChartUIPlugin'],i[_0x16f285(0x129)],o[_0x16f285(0x147)]),N(0x1,(0x0,a[_0x16f285(0xdb)])(a['Injector'])),N(0x2,a['IConfigService'])],$),Object[_0x16f285(0x215)](exports,_0x16f285(0xae),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x16f285(0x215)](exports,_0x16f285(0x48a),{'enumerable':!0x0,'get':function(){return $;}});